konsolpro-custom-ui 0.0.411 → 0.0.413

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.
package/dist/lib/index.js CHANGED
@@ -38,7 +38,7 @@ var T = (e, t, r) => new Promise((a, o) => {
38
38
  import { jsx as n, jsxs as C, Fragment as ge } from "react/jsx-runtime";
39
39
  import * as lt from "@radix-ui/react-accordion";
40
40
  import * as ke from "react";
41
- import v, { lazy as ar, Suspense as or, useMemo as te, useState as ne, useCallback as Y, createContext as Ft, useContext as Lt, useEffect as ue, useRef as pe, createElement as ra, useLayoutEffect as na, forwardRef as aa, useImperativeHandle as Ur, memo as Kr } from "react";
41
+ import v, { lazy as ar, Suspense as or, useMemo as te, useState as ae, useCallback as $, createContext as Ft, useContext as Lt, useEffect as ue, useRef as pe, createElement as ra, useLayoutEffect as na, forwardRef as aa, useImperativeHandle as Ur, memo as Kr } from "react";
42
42
  import { Slot as Tt } from "@radix-ui/react-slot";
43
43
  import { cva as he } from "class-variance-authority";
44
44
  import { clsx as oa } from "clsx";
@@ -65,7 +65,7 @@ import * as zt from "@radix-ui/react-toggle-group";
65
65
  import * as ye from "@radix-ui/react-select";
66
66
  import * as tr from "@radix-ui/react-switch";
67
67
  import * as Ge from "@radix-ui/react-tabs";
68
- import { toast as ie, Toaster as pa } from "sonner";
68
+ import { toast as se, Toaster as pa } from "sonner";
69
69
  import * as _e from "@radix-ui/react-tooltip";
70
70
  import { useFloating as $r, offset as Yr, flip as Zr, shift as Jr, size as Qr, autoUpdate as Xr, useTransitionStyles as qr } from "@floating-ui/react";
71
71
  import { useCombobox as me } from "downshift";
@@ -458,89 +458,89 @@ function U({
458
458
  }
459
459
  ) : null;
460
460
  }
461
- function oe(e) {
461
+ function ie(e) {
462
462
  return ar(() => T(null, null, function* () {
463
463
  return { default: (yield e()).ReactComponent };
464
464
  }));
465
465
  }
466
466
  const va = {
467
- AlfaIcon: oe(() => T(null, null, function* () {
467
+ AlfaIcon: ie(() => T(null, null, function* () {
468
468
  return import("../chunks/alfa-icon-Cx0WqCux.js");
469
469
  })),
470
- BaltiyskiyIcon: oe(() => T(null, null, function* () {
470
+ BaltiyskiyIcon: ie(() => T(null, null, function* () {
471
471
  return import("../chunks/baltiyskiy-icon-CXAJY9LH.js");
472
472
  })),
473
- EuropaIcon: oe(() => T(null, null, function* () {
473
+ EuropaIcon: ie(() => T(null, null, function* () {
474
474
  return import("../chunks/europa-icon-DbElF2Uc.js");
475
475
  })),
476
- GazpromIcon: oe(() => T(null, null, function* () {
476
+ GazpromIcon: ie(() => T(null, null, function* () {
477
477
  return import("../chunks/gazprom-icon-CRfKLTvP.js");
478
478
  })),
479
- HomeIcon: oe(() => T(null, null, function* () {
479
+ HomeIcon: ie(() => T(null, null, function* () {
480
480
  return import("../chunks/home-icon-Dc6LzbVw.js");
481
481
  })),
482
- MkbIcon: oe(() => T(null, null, function* () {
482
+ MkbIcon: ie(() => T(null, null, function* () {
483
483
  return import("../chunks/mkb-icon-CEkVt-7P.js");
484
484
  })),
485
- MtsIcon: oe(() => T(null, null, function* () {
485
+ MtsIcon: ie(() => T(null, null, function* () {
486
486
  return import("../chunks/mts-icon-Bq4YDYEy.js");
487
487
  })),
488
- OtkritieIcon: oe(() => T(null, null, function* () {
488
+ OtkritieIcon: ie(() => T(null, null, function* () {
489
489
  return import("../chunks/otkritie-icon-yGwVocEY.js");
490
490
  })),
491
- OtpIcon: oe(() => T(null, null, function* () {
491
+ OtpIcon: ie(() => T(null, null, function* () {
492
492
  return import("../chunks/otp-icon-BQQXMe3b.js");
493
493
  })),
494
- PsbIcon: oe(() => T(null, null, function* () {
494
+ PsbIcon: ie(() => T(null, null, function* () {
495
495
  return import("../chunks/psb-icon-CxKzLVG5.js");
496
496
  })),
497
- QiwiIcon: oe(() => T(null, null, function* () {
497
+ QiwiIcon: ie(() => T(null, null, function* () {
498
498
  return import("../chunks/qiwi-icon-B795Q_fW.js");
499
499
  })),
500
- RaiffeisenIcon: oe(() => T(null, null, function* () {
500
+ RaiffeisenIcon: ie(() => T(null, null, function* () {
501
501
  return import("../chunks/raiffeisen-icon-CgcBX8eY.js");
502
502
  })),
503
- RussianStandartIcon: oe(
503
+ RussianStandartIcon: ie(
504
504
  () => T(null, null, function* () {
505
505
  return import("../chunks/russian-standart-icon-CI8j1Do6.js");
506
506
  })
507
507
  ),
508
- SaintPetersburgIcon: oe(
508
+ SaintPetersburgIcon: ie(
509
509
  () => T(null, null, function* () {
510
510
  return import("../chunks/saint-petersburg-icon-DbffjI2W.js");
511
511
  })
512
512
  ),
513
- SberIcon: oe(() => T(null, null, function* () {
513
+ SberIcon: ie(() => T(null, null, function* () {
514
514
  return import("../chunks/sber-icon-b7d9_o7J.js");
515
515
  })),
516
- SkbIcon: oe(() => T(null, null, function* () {
516
+ SkbIcon: ie(() => T(null, null, function* () {
517
517
  return import("../chunks/skb-icon-BgDQolTL.js");
518
518
  })),
519
- TbankIcon: oe(() => T(null, null, function* () {
519
+ TbankIcon: ie(() => T(null, null, function* () {
520
520
  return import("../chunks/tbank-icon-ByKW0pBb.js");
521
521
  })),
522
- TochkaIcon: oe(() => T(null, null, function* () {
522
+ TochkaIcon: ie(() => T(null, null, function* () {
523
523
  return import("../chunks/tochka-icon-CoQ_r9Lz.js");
524
524
  })),
525
- TrustIcon: oe(() => T(null, null, function* () {
525
+ TrustIcon: ie(() => T(null, null, function* () {
526
526
  return import("../chunks/trust-icon-DcfUVGZ_.js");
527
527
  })),
528
- UniIcon: oe(() => T(null, null, function* () {
528
+ UniIcon: ie(() => T(null, null, function* () {
529
529
  return import("../chunks/uni-icon-gK006vr0.js");
530
530
  })),
531
- UralsibIcon: oe(() => T(null, null, function* () {
531
+ UralsibIcon: ie(() => T(null, null, function* () {
532
532
  return import("../chunks/uralsib-icon-C-ZbdvlL.js");
533
533
  })),
534
- UralskiyIcon: oe(() => T(null, null, function* () {
534
+ UralskiyIcon: ie(() => T(null, null, function* () {
535
535
  return import("../chunks/uralskiy-icon-Djqv-ZYN.js");
536
536
  })),
537
- VozrozhdenieIcon: oe(() => T(null, null, function* () {
537
+ VozrozhdenieIcon: ie(() => T(null, null, function* () {
538
538
  return import("../chunks/vozrozhdenie-icon-CCMRNn95.js");
539
539
  })),
540
- VtbIcon: oe(() => T(null, null, function* () {
540
+ VtbIcon: ie(() => T(null, null, function* () {
541
541
  return import("../chunks/vtb-icon-BtfO1_Gx.js");
542
542
  })),
543
- YandexIcon: oe(() => T(null, null, function* () {
543
+ YandexIcon: ie(() => T(null, null, function* () {
544
544
  return import("../chunks/yandex-icon-CepqpI49.js");
545
545
  }))
546
546
  };
@@ -663,7 +663,7 @@ function El(i) {
663
663
  children: [
664
664
  t,
665
665
  a && /* @__PURE__ */ n(
666
- J,
666
+ Q,
667
667
  w({
668
668
  variant: "text",
669
669
  iconOnly: !0,
@@ -879,7 +879,7 @@ const tn = he(
879
879
  hover: "bg-[#0476F0]",
880
880
  active: "bg-[#1B37D6]"
881
881
  }
882
- }, J = v.forwardRef(
882
+ }, Q = v.forwardRef(
883
883
  (g, h) => {
884
884
  var N = g, {
885
885
  className: e,
@@ -960,7 +960,7 @@ const tn = he(
960
960
  );
961
961
  }
962
962
  );
963
- J.displayName = "Button";
963
+ Q.displayName = "Button";
964
964
  const Er = he("", {
965
965
  variants: {
966
966
  variant: {
@@ -1012,7 +1012,7 @@ const Er = he("", {
1012
1012
  "as",
1013
1013
  "copyable"
1014
1014
  ]);
1015
- const [d, u] = ne(!1), b = te(() => i ? typeof i == "boolean" ? {} : i : null, [i]), x = Y(
1015
+ const [d, u] = ae(!1), b = te(() => i ? typeof i == "boolean" ? {} : i : null, [i]), x = $(
1016
1016
  (h) => T(null, null, function* () {
1017
1017
  var N, M, I, k, R;
1018
1018
  if (!b)
@@ -1267,7 +1267,7 @@ function Ca({
1267
1267
  }) {
1268
1268
  return /* @__PURE__ */ C(nn, { open: a, onOpenChange: o, children: [
1269
1269
  /* @__PURE__ */ n(an, { asChild: !0, children: /* @__PURE__ */ n(
1270
- J,
1270
+ Q,
1271
1271
  {
1272
1272
  variant: "text",
1273
1273
  iconOnly: !0,
@@ -1389,7 +1389,7 @@ const Ma = {
1389
1389
  (o || s) && /* @__PURE__ */ C("div", { className: "flex flex-row items-start gap-1", children: [
1390
1390
  o && /* @__PURE__ */ n("div", { className: "hidden gap-1 md:flex", children: o }),
1391
1391
  s && /* @__PURE__ */ n(
1392
- J,
1392
+ Q,
1393
1393
  {
1394
1394
  type: "button",
1395
1395
  variant: "text",
@@ -1602,53 +1602,53 @@ const Fe = v.forwardRef(
1602
1602
  "value",
1603
1603
  "data-testid"
1604
1604
  ]);
1605
- const P = v.useRef(null), A = E != null && E.toString().length > 0, O = N && A && !u, G = A ? Fa(String(E)) : null, V = Math.max(
1605
+ const P = v.useRef(null), A = E != null && E.toString().length > 0, O = N && A && !u, W = A ? Fa(String(E)) : null, V = Math.max(
1606
1606
  Ar(F.step),
1607
1607
  Ar(E)
1608
- ), K = v.useCallback(
1609
- (X) => {
1610
- if (P.current = X, typeof z == "function") {
1611
- z(X);
1608
+ ), Y = v.useCallback(
1609
+ (q) => {
1610
+ if (P.current = q, typeof z == "function") {
1611
+ z(q);
1612
1612
  return;
1613
1613
  }
1614
- z && (z.current = X);
1614
+ z && (z.current = q);
1615
1615
  },
1616
1616
  [z]
1617
- ), W = v.useCallback((X) => {
1618
- const ae = P.current;
1619
- ae && (ae.value = X, R && R({
1620
- target: ae,
1621
- currentTarget: ae
1617
+ ), G = v.useCallback((q) => {
1618
+ const oe = P.current;
1619
+ oe && (oe.value = q, R && R({
1620
+ target: oe,
1621
+ currentTarget: oe
1622
1622
  }));
1623
- }, [R]), q = v.useCallback(
1624
- (X) => {
1623
+ }, [R]), J = v.useCallback(
1624
+ (q) => {
1625
1625
  var Le;
1626
1626
  if (u)
1627
1627
  return;
1628
- const ae = Number((Le = F.step) != null ? Le : 1);
1629
- if (!Number.isFinite(ae) || ae === 0)
1628
+ const oe = Number((Le = F.step) != null ? Le : 1);
1629
+ if (!Number.isFinite(oe) || oe === 0)
1630
1630
  return;
1631
- const $ = G != null ? G : 0, Z = Pa(
1632
- $ + X * ae,
1631
+ const K = W != null ? W : 0, Z = Pa(
1632
+ K + q * oe,
1633
1633
  F.min,
1634
1634
  F.max
1635
1635
  ), be = La(Z, V);
1636
- W(be);
1636
+ G(be);
1637
1637
  },
1638
- [V, u, G, F.max, F.min, F.step, W]
1638
+ [V, u, W, F.max, F.min, F.step, G]
1639
1639
  ), re = v.useCallback(() => {
1640
1640
  if (I) {
1641
1641
  I();
1642
1642
  return;
1643
1643
  }
1644
- q(-1);
1645
- }, [q, I]), se = v.useCallback(() => {
1644
+ J(-1);
1645
+ }, [J, I]), ne = v.useCallback(() => {
1646
1646
  if (k) {
1647
1647
  k();
1648
1648
  return;
1649
1649
  }
1650
- q(1);
1651
- }, [q, k]);
1650
+ J(1);
1651
+ }, [J, k]);
1652
1652
  return /* @__PURE__ */ C("div", { className: p(f && "w-full"), children: [
1653
1653
  o && /* @__PURE__ */ n(
1654
1654
  _,
@@ -1718,7 +1718,7 @@ const Fe = v.forwardRef(
1718
1718
  },
1719
1719
  e
1720
1720
  ),
1721
- ref: K,
1721
+ ref: Y,
1722
1722
  value: E,
1723
1723
  onChange: R,
1724
1724
  disabled: u,
@@ -1726,7 +1726,7 @@ const Fe = v.forwardRef(
1726
1726
  "data-testid": S
1727
1727
  }, F)
1728
1728
  ),
1729
- (x || a || l || i || h || O || M) && /* @__PURE__ */ C("div", { className: "flex flex-1 items-center gap-1.5 pr-2.5", children: [
1729
+ (x || a || l || i || h || O || M) && /* @__PURE__ */ C("div", { className: "flex shrink-0 items-center gap-1.5 pr-2.5", children: [
1730
1730
  h && /* @__PURE__ */ n("div", { className: "font-graphik flex items-center text-[16px]", children: h }),
1731
1731
  x && /* @__PURE__ */ n(
1732
1732
  "div",
@@ -1785,9 +1785,9 @@ const Fe = v.forwardRef(
1785
1785
  size: 16
1786
1786
  }
1787
1787
  ),
1788
- M && /* @__PURE__ */ C("div", { className: "ml-auto flex items-center gap-[2px]", children: [
1788
+ M && /* @__PURE__ */ C("div", { className: "flex items-center gap-[2px]", children: [
1789
1789
  /* @__PURE__ */ n(
1790
- J,
1790
+ Q,
1791
1791
  {
1792
1792
  type: "button",
1793
1793
  variant: "default",
@@ -1800,14 +1800,14 @@ const Fe = v.forwardRef(
1800
1800
  }
1801
1801
  ),
1802
1802
  /* @__PURE__ */ n(
1803
- J,
1803
+ Q,
1804
1804
  {
1805
1805
  type: "button",
1806
1806
  variant: "default",
1807
1807
  size: "sm",
1808
1808
  iconOnly: !0,
1809
1809
  icon: "AddIcon",
1810
- onClick: se,
1810
+ onClick: ne,
1811
1811
  disabled: u,
1812
1812
  "aria-label": "Увеличить значение"
1813
1813
  }
@@ -1847,7 +1847,7 @@ const za = v.forwardRef(
1847
1847
  size: i,
1848
1848
  iconPosition: "right",
1849
1849
  icon: /* @__PURE__ */ n(
1850
- J,
1850
+ Q,
1851
1851
  {
1852
1852
  variant: "text",
1853
1853
  iconOnly: !0,
@@ -2402,7 +2402,7 @@ const io = ({
2402
2402
  ue(() => {
2403
2403
  l && l.reInit();
2404
2404
  }, [e, l]);
2405
- const c = Y(() => t ? e.findIndex(
2405
+ const c = $(() => t ? e.findIndex(
2406
2406
  (u) => Ee(u).getTime() === Ee(t).getTime()
2407
2407
  ) : -1, [e, t]);
2408
2408
  ue(() => {
@@ -2411,7 +2411,7 @@ const io = ({
2411
2411
  const u = c();
2412
2412
  u >= 0 && l.scrollTo(u);
2413
2413
  }, [l, c]);
2414
- const f = Y(
2414
+ const f = $(
2415
2415
  (u) => {
2416
2416
  r == null || r(u);
2417
2417
  },
@@ -2451,7 +2451,7 @@ function fo({
2451
2451
  months: r,
2452
2452
  onChange: a
2453
2453
  }) {
2454
- const o = pe(it(/* @__PURE__ */ new Date())), i = it(e || t || o.current), [s, l] = ne(i), c = te(() => {
2454
+ const o = pe(it(/* @__PURE__ */ new Date())), i = it(e || t || o.current), [s, l] = ae(i), c = te(() => {
2455
2455
  if (r && r.length > 0)
2456
2456
  return r;
2457
2457
  const u = o.current;
@@ -2491,13 +2491,13 @@ const zl = (f) => {
2491
2491
  ]);
2492
2492
  const { days: u, selectedDate: b, setSelectedDate: x } = fo(D(w({}, c), {
2493
2493
  onChange: e
2494
- })), m = pe(null), y = Y((M) => {
2494
+ })), m = pe(null), y = $((M) => {
2495
2495
  const I = m.current;
2496
2496
  if (I) {
2497
2497
  const k = so * Be;
2498
2498
  I.scrollBy({ left: M > 0 ? k : -546, behavior: "smooth" });
2499
2499
  }
2500
- }, []), h = (M) => M.getTime() === b.getTime(), g = Y((M, I = !1) => {
2500
+ }, []), h = (M) => M.getTime() === b.getTime(), g = $((M, I = !1) => {
2501
2501
  if (m.current && u.length > 0) {
2502
2502
  const k = u.findIndex((R) => R.getTime() === Ee(M).getTime());
2503
2503
  if (k !== -1) {
@@ -2555,7 +2555,7 @@ const zl = (f) => {
2555
2555
  N.current = [...u];
2556
2556
  }, [u]), /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
2557
2557
  a && /* @__PURE__ */ n(
2558
- J,
2558
+ Q,
2559
2559
  {
2560
2560
  icon: "ArrowLeftIcon",
2561
2561
  variant: "text",
@@ -2588,7 +2588,7 @@ const zl = (f) => {
2588
2588
  }
2589
2589
  ),
2590
2590
  a && /* @__PURE__ */ n(
2591
- J,
2591
+ Q,
2592
2592
  {
2593
2593
  icon: "ArrowRightIcon",
2594
2594
  variant: "text",
@@ -2709,17 +2709,17 @@ const lr = v.forwardRef(
2709
2709
  const H = E.current;
2710
2710
  if (!H)
2711
2711
  return;
2712
- const P = H.offsetWidth, A = c ? 60 : 0, O = 20, G = o ? 20 : 0, W = P - A - O - G - 16 - 30;
2713
- let q = 0, re = 0;
2714
- const se = 12, X = 20, ae = 4, $ = 7;
2712
+ const P = H.offsetWidth, A = c ? 60 : 0, O = 20, W = o ? 20 : 0, G = P - A - O - W - 16 - 30;
2713
+ let J = 0, re = 0;
2714
+ const ne = 12, q = 20, oe = 4, K = 7;
2715
2715
  for (let Z = 0; Z < d.length; Z++) {
2716
- const Le = d[Z].length * $, Me = se + Le + X + ae;
2717
- if (re + Me <= W)
2718
- re += Me, q = Z + 1;
2716
+ const Le = d[Z].length * K, Me = ne + Le + q + oe;
2717
+ if (re + Me <= G)
2718
+ re += Me, J = Z + 1;
2719
2719
  else
2720
2720
  break;
2721
2721
  }
2722
- F(Math.max(1, q));
2722
+ F(Math.max(1, J));
2723
2723
  };
2724
2724
  z();
2725
2725
  const j = new ResizeObserver(z);
@@ -3067,7 +3067,7 @@ const Ol = ({
3067
3067
  className: o,
3068
3068
  testIds: i
3069
3069
  }) => {
3070
- const s = /* @__PURE__ */ new Date(), l = e || s, [c, f] = ne(l), [d, u] = ne("");
3070
+ const s = /* @__PURE__ */ new Date(), l = e || s, [c, f] = ae(l), [d, u] = ae("");
3071
3071
  ue(() => {
3072
3072
  e && f(e);
3073
3073
  }, [e]);
@@ -3117,26 +3117,26 @@ function _l({
3117
3117
  defaultValue: t,
3118
3118
  onChange: r
3119
3119
  } = {}) {
3120
- const a = e || t || /* @__PURE__ */ new Date(), [o, i] = ne(a), [s, l] = ne(
3120
+ const a = e || t || /* @__PURE__ */ new Date(), [o, i] = ae(a), [s, l] = ae(
3121
3121
  () => St(a)
3122
- ), [c, f] = ne(), d = v.useRef(!1);
3122
+ ), [c, f] = ae(), d = v.useRef(!1);
3123
3123
  ue(() => {
3124
3124
  d.current || (r == null || r(a), d.current = !0);
3125
3125
  }, [r, a]), ue(() => {
3126
3126
  e && i(e);
3127
3127
  }, [e]);
3128
- const u = Y((y) => {
3128
+ const u = $((y) => {
3129
3129
  i(y);
3130
3130
  const h = St(y);
3131
3131
  JSON.stringify(s) !== JSON.stringify(h) && l(h), r == null || r(y);
3132
- }, [r, s]), b = Y((y) => {
3132
+ }, [r, s]), b = $((y) => {
3133
3133
  if (l(y), y.length > 0) {
3134
3134
  const h = Math.floor(y.length / 2), g = y[h], N = new Date(g.year, g.month, 1);
3135
3135
  f({ date: N, timestamp: Date.now(), mode: "monthStart" });
3136
3136
  }
3137
- }, []), x = Y(() => {
3137
+ }, []), x = $(() => {
3138
3138
  f(void 0);
3139
- }, []), m = Y(() => {
3139
+ }, []), m = $(() => {
3140
3140
  const y = /* @__PURE__ */ new Date();
3141
3141
  i(y);
3142
3142
  const h = St(y);
@@ -3230,7 +3230,7 @@ const xo = window.innerWidth < un, yo = {
3230
3230
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: o })
3231
3231
  ] }),
3232
3232
  s && /* @__PURE__ */ n(
3233
- J,
3233
+ Q,
3234
3234
  {
3235
3235
  variant: "text",
3236
3236
  size: "sm",
@@ -3306,7 +3306,7 @@ const xo = window.innerWidth < un, yo = {
3306
3306
  )
3307
3307
  ] }),
3308
3308
  /* @__PURE__ */ n("div", { className: "absolute top-4 right-4", children: s && /* @__PURE__ */ n(
3309
- J,
3309
+ Q,
3310
3310
  {
3311
3311
  variant: "text",
3312
3312
  size: "sm",
@@ -3479,7 +3479,7 @@ const rr = v.forwardRef(
3479
3479
  o && /* @__PURE__ */ n(_, { variant: "p3", weight: "medium", className: "mb-2.5", children: o }),
3480
3480
  /* @__PURE__ */ C(xe.Root, { open: y, onOpenChange: h, modal: !0, children: [
3481
3481
  /* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ C(
3482
- J,
3482
+ Q,
3483
3483
  {
3484
3484
  variant: "dashed",
3485
3485
  disabled: f,
@@ -3606,7 +3606,7 @@ function So({
3606
3606
  isOpen: l,
3607
3607
  onOpenChange: c
3608
3608
  }) {
3609
- const f = Y((h, g) => {
3609
+ const f = $((h, g) => {
3610
3610
  const { type: N, changes: M } = g;
3611
3611
  switch (N) {
3612
3612
  case me.stateChangeTypes.ItemClick:
@@ -3642,7 +3642,7 @@ function So({
3642
3642
  const g = (h == null ? void 0 : h.value) !== void 0 && (h == null ? void 0 : h.value) !== null ? h.value : null;
3643
3643
  r == null || r(g);
3644
3644
  }
3645
- }), { selectItem: d, setInputValue: u, getInputProps: b } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]), m = Y((h) => {
3645
+ }), { selectItem: d, setInputValue: u, getInputProps: b } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]), m = $((h) => {
3646
3646
  const g = b(h);
3647
3647
  return D(w({}, g), {
3648
3648
  onBlur: (N) => {
@@ -3705,7 +3705,7 @@ function Mo({
3705
3705
  onClear: h,
3706
3706
  clearable: g
3707
3707
  }) {
3708
- const N = Y(b, []), M = te(() => r ? {
3708
+ const N = $(b, []), M = te(() => r ? {
3709
3709
  value: r,
3710
3710
  label: N(r)
3711
3711
  } : null, [r, N]), I = So({
@@ -3935,7 +3935,7 @@ const Eo = [
3935
3935
  }
3936
3936
  ),
3937
3937
  l && c && /* @__PURE__ */ n(
3938
- J,
3938
+ Q,
3939
3939
  {
3940
3940
  type: "button",
3941
3941
  variant: "text",
@@ -4028,7 +4028,7 @@ const wn = v.forwardRef(
4028
4028
  error: d,
4029
4029
  isOpen: u,
4030
4030
  refs: b
4031
- } = mt(), x = Y((m) => {
4031
+ } = mt(), x = $((m) => {
4032
4032
  typeof a == "function" ? a(m) : a && (a.current = m), b.reference.current !== m && m !== null && b.setReference(m);
4033
4033
  }, [a, b]);
4034
4034
  return /* @__PURE__ */ n(
@@ -4258,7 +4258,7 @@ const Cn = v.forwardRef(
4258
4258
  refs: c,
4259
4259
  floatingStyles: f,
4260
4260
  transitionStyles: d
4261
- } = mt(), u = v.Children.count(e) > 0, b = Y((x) => {
4261
+ } = mt(), u = v.Children.count(e) > 0, b = $((x) => {
4262
4262
  typeof a == "function" ? a(x) : a && (a.current = x), c.floating.current !== x && x !== null && c.setFloating(x);
4263
4263
  }, [a, c]);
4264
4264
  return /* @__PURE__ */ n(
@@ -4411,7 +4411,7 @@ function Uo({
4411
4411
  inputValueOnSelect: u,
4412
4412
  inputValueOnClose: b
4413
4413
  }) {
4414
- const x = pe(null), m = Y((R, E) => {
4414
+ const x = pe(null), m = $((R, E) => {
4415
4415
  const { type: S, changes: F } = E;
4416
4416
  switch (S) {
4417
4417
  case me.stateChangeTypes.ItemClick:
@@ -4458,7 +4458,7 @@ function Uo({
4458
4458
  t !== void 0 && (y.selectedItem = t), f !== void 0 && (y.inputValue = f);
4459
4459
  const k = me(y), { selectItem: h, setInputValue: g, getInputProps: N } = k, M = B(k, ["selectItem", "setInputValue", "getInputProps"]);
4460
4460
  x.current = g;
4461
- const I = Y((R) => {
4461
+ const I = $((R) => {
4462
4462
  const E = N(R);
4463
4463
  return D(w({}, E), {
4464
4464
  onBlur: (S) => {
@@ -4527,7 +4527,7 @@ function $o({
4527
4527
  onClear: R,
4528
4528
  clearable: E
4529
4529
  }) {
4530
- const S = Y(N, [N]), F = te(() => {
4530
+ const S = $(N, [N]), F = te(() => {
4531
4531
  if (r !== void 0)
4532
4532
  return r === null ? null : {
4533
4533
  value: r,
@@ -4643,7 +4643,7 @@ const Rn = v.forwardRef(
4643
4643
  error: d,
4644
4644
  isOpen: u,
4645
4645
  refs: b
4646
- } = pt(), x = Y((m) => {
4646
+ } = pt(), x = $((m) => {
4647
4647
  typeof a == "function" ? a(m) : a && (a.current = m), b.reference.current !== m && m !== null && b.setReference(m);
4648
4648
  }, [a, b]);
4649
4649
  return /* @__PURE__ */ n(
@@ -4751,7 +4751,7 @@ const An = v.forwardRef(
4751
4751
  refs: c,
4752
4752
  floatingStyles: f,
4753
4753
  transitionStyles: d
4754
- } = pt(), u = v.Children.count(e) > 0, b = Y((x) => {
4754
+ } = pt(), u = v.Children.count(e) > 0, b = $((x) => {
4755
4755
  typeof a == "function" ? a(x) : a && (a.current = x), c.floating.current !== x && x !== null && c.setFloating(x);
4756
4756
  }, [a, c]);
4757
4757
  return /* @__PURE__ */ n(
@@ -4796,7 +4796,7 @@ function Jo({
4796
4796
  placeholder: d,
4797
4797
  getInputProps: u,
4798
4798
  onOpenChange: b
4799
- } = pt(), x = pe(null), m = pe(null), [y, h] = ne(2);
4799
+ } = pt(), x = pe(null), m = pe(null), [y, h] = ae(2);
4800
4800
  na(() => {
4801
4801
  if (!e.length || !m.current)
4802
4802
  return;
@@ -4806,16 +4806,16 @@ function Jo({
4806
4806
  return;
4807
4807
  const j = R.offsetWidth - 56 - 30 - 8;
4808
4808
  let H = 0, P = 0;
4809
- const A = 12, O = 20, G = 4, V = 7;
4810
- for (let W = 0; W < e.length; W++) {
4811
- const re = r(e[W]).length * V, se = A + re + O + G;
4812
- if (P + se <= j)
4813
- P += se, H = W + 1;
4809
+ const A = 12, O = 20, W = 4, V = 7;
4810
+ for (let G = 0; G < e.length; G++) {
4811
+ const re = r(e[G]).length * V, ne = A + re + O + W;
4812
+ if (P + ne <= j)
4813
+ P += ne, H = G + 1;
4814
4814
  else
4815
4815
  break;
4816
4816
  }
4817
- const K = Math.max(1, H);
4818
- h(o ? Math.min(K, o) : K);
4817
+ const Y = Math.max(1, H);
4818
+ h(o ? Math.min(Y, o) : Y);
4819
4819
  };
4820
4820
  I();
4821
4821
  const k = new ResizeObserver(I);
@@ -4952,18 +4952,18 @@ function Qo({
4952
4952
  onClear: E,
4953
4953
  maxTags: S = 4
4954
4954
  }) {
4955
- const { items: F } = kn(e, y), z = te(() => t || [], [t]), j = te(() => new Set(z.map(h)), [z, h]), [H, P] = ne(""), A = Y((W) => {
4956
- const q = h(W), se = j.has(q) ? z.filter((X) => h(X) !== q) : [...z, W];
4957
- r == null || r(se);
4958
- }, [h, r, z, j]), O = Y((W) => {
4959
- const q = h(W);
4960
- r == null || r(z.filter((re) => h(re) !== q));
4961
- }, [h, r, z]), G = Y(() => {
4955
+ const { items: F } = kn(e, y), z = te(() => t || [], [t]), j = te(() => new Set(z.map(h)), [z, h]), [H, P] = ae(""), A = $((G) => {
4956
+ const J = h(G), ne = j.has(J) ? z.filter((q) => h(q) !== J) : [...z, G];
4957
+ r == null || r(ne);
4958
+ }, [h, r, z, j]), O = $((G) => {
4959
+ const J = h(G);
4960
+ r == null || r(z.filter((re) => h(re) !== J));
4961
+ }, [h, r, z]), W = $(() => {
4962
4962
  r == null || r([]), E == null || E();
4963
- }, [r, E]), V = Y((W) => {
4964
- I == null || I(W), W || (P(""), a == null || a(""));
4965
- }, [I, a]), K = Y((W) => {
4966
- P(W), a == null || a(W);
4963
+ }, [r, E]), V = $((G) => {
4964
+ I == null || I(G), G || (P(""), a == null || a(""));
4965
+ }, [I, a]), Y = $((G) => {
4966
+ P(G), a == null || a(G);
4967
4967
  }, [a]);
4968
4968
  return /* @__PURE__ */ n(
4969
4969
  $o,
@@ -4971,10 +4971,10 @@ function Qo({
4971
4971
  getLabel: y,
4972
4972
  items: F,
4973
4973
  inputValue: H,
4974
- onChange: (W) => {
4975
- W && A(W);
4974
+ onChange: (G) => {
4975
+ G && A(G);
4976
4976
  },
4977
- onSearch: K,
4977
+ onSearch: Y,
4978
4978
  onBlur: o,
4979
4979
  size: i,
4980
4980
  fullWidth: s,
@@ -4986,11 +4986,11 @@ function Qo({
4986
4986
  isOpen: M,
4987
4987
  onOpenChange: V,
4988
4988
  clearable: R,
4989
- onClear: G,
4989
+ onClear: W,
4990
4990
  keepOpenOnSelect: !0,
4991
4991
  inputValueOnSelect: "preserve",
4992
4992
  inputValueOnClose: "preserve",
4993
- isItemSelected: (W) => j.has(h(W)),
4993
+ isItemSelected: (G) => j.has(h(G)),
4994
4994
  hasSelection: z.length > 0,
4995
4995
  children: /* @__PURE__ */ C("div", { className: "w-full", children: [
4996
4996
  f && /* @__PURE__ */ n(
@@ -5049,7 +5049,7 @@ function Fn(e) {
5049
5049
  loop: !1,
5050
5050
  slidesToScroll: 1,
5051
5051
  containScroll: "trimSnaps"
5052
- }, a), i = w(w({}, Xo), t), [s, l] = ir(o), [c, f] = ne(r), [d, u] = ne(!1), [b, x] = ne(!1), m = Y(() => {
5052
+ }, a), i = w(w({}, Xo), t), [s, l] = ir(o), [c, f] = ae(r), [d, u] = ae(!1), [b, x] = ae(!1), m = $(() => {
5053
5053
  l && (f(l.selectedScrollSnap()), u(l.canScrollNext()), x(l.canScrollPrev()));
5054
5054
  }, [l]);
5055
5055
  ue(() => {
@@ -5058,13 +5058,13 @@ function Fn(e) {
5058
5058
  l.off("select", m), l.off("reInit", m);
5059
5059
  };
5060
5060
  }, [l, m, r]);
5061
- const y = Y((I) => {
5061
+ const y = $((I) => {
5062
5062
  l && l.scrollTo(I);
5063
- }, [l]), h = Y(() => {
5063
+ }, [l]), h = $(() => {
5064
5064
  l && l.scrollNext();
5065
- }, [l]), g = Y(() => {
5065
+ }, [l]), g = $(() => {
5066
5066
  l && l.scrollPrev();
5067
- }, [l]), N = Y((I) => {
5067
+ }, [l]), N = $((I) => {
5068
5068
  y(I);
5069
5069
  }, [y]);
5070
5070
  return {
@@ -5734,7 +5734,7 @@ pr.displayName = "Footer";
5734
5734
  const bt = v.forwardRef((o, a) => {
5735
5735
  var i = o, { className: e, dataTestId: t = "close-button" } = i, r = B(i, ["className", "dataTestId"]);
5736
5736
  return /* @__PURE__ */ n(ce.Close, { asChild: !0, children: /* @__PURE__ */ n(
5737
- J,
5737
+ Q,
5738
5738
  D(w({}, r), {
5739
5739
  ref: a,
5740
5740
  "data-testid": t,
@@ -6123,7 +6123,7 @@ function Ul({
6123
6123
  width: "md",
6124
6124
  hideFooter: !f,
6125
6125
  trigger: /* @__PURE__ */ n(
6126
- J,
6126
+ Q,
6127
6127
  {
6128
6128
  variant: "dashed",
6129
6129
  disabled: r,
@@ -6204,7 +6204,7 @@ function Ul({
6204
6204
  }
6205
6205
  ) }),
6206
6206
  f && /* @__PURE__ */ n(le.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
6207
- J,
6207
+ Q,
6208
6208
  {
6209
6209
  onClick: M,
6210
6210
  variant: "text",
@@ -6222,7 +6222,7 @@ function Ul({
6222
6222
  onOpenChange: r ? void 0 : g,
6223
6223
  children: [
6224
6224
  /* @__PURE__ */ n(Je, { asChild: !0, children: /* @__PURE__ */ n(
6225
- J,
6225
+ Q,
6226
6226
  {
6227
6227
  variant: "dashed",
6228
6228
  disabled: r,
@@ -6303,7 +6303,7 @@ function Ul({
6303
6303
  }
6304
6304
  ),
6305
6305
  f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
6306
- J,
6306
+ Q,
6307
6307
  {
6308
6308
  onClick: M,
6309
6309
  variant: "text",
@@ -6492,12 +6492,12 @@ function Kl(y) {
6492
6492
  from: (o == null ? void 0 : o.from) || R.placeholder,
6493
6493
  to: (o == null ? void 0 : o.to) || R.placeholder
6494
6494
  }, F = v.useMemo(() => {
6495
- const V = (X) => typeof X == "string", K = (X) => typeof X == "object" && X !== null;
6495
+ const V = (q) => typeof q == "string", Y = (q) => typeof q == "object" && q !== null;
6496
6496
  return {
6497
6497
  hasAnyError: () => i ? V(i) ? !0 : !!(i.from || i.to) : !1,
6498
- hasFromError: () => V(i) ? !0 : K(i) && !!i.from,
6499
- hasToError: () => V(i) ? !0 : K(i) && !!i.to,
6500
- getErrorText: () => V(i) ? i : K(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
6498
+ hasFromError: () => V(i) ? !0 : Y(i) && !!i.from,
6499
+ hasToError: () => V(i) ? !0 : Y(i) && !!i.to,
6500
+ getErrorText: () => V(i) ? i : Y(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
6501
6501
  };
6502
6502
  }, [i]), { hasAnyError: z, hasFromError: j, hasToError: H, getErrorText: P } = F;
6503
6503
  v.useEffect(() => {
@@ -6507,7 +6507,7 @@ function Kl(y) {
6507
6507
  N(V), a == null || a(V), V != null && V.from && (V != null && V.to) && k === "mobile" && I(!1);
6508
6508
  }, O = () => {
6509
6509
  N(void 0), a == null || a(void 0), u == null || u();
6510
- }, G = () => {
6510
+ }, W = () => {
6511
6511
  switch (c) {
6512
6512
  case "md":
6513
6513
  return "rounded-lg";
@@ -6537,7 +6537,7 @@ function Kl(y) {
6537
6537
  onOpenChange: f ? void 0 : I,
6538
6538
  width: "md",
6539
6539
  trigger: /* @__PURE__ */ n(
6540
- J,
6540
+ Q,
6541
6541
  {
6542
6542
  variant: "dashed",
6543
6543
  disabled: f,
@@ -6545,7 +6545,7 @@ function Kl(y) {
6545
6545
  iconPosition: "end",
6546
6546
  className: p(
6547
6547
  "group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
6548
- G(),
6548
+ W(),
6549
6549
  c === "lg" ? "px-3" : "px-2.5",
6550
6550
  z() ? "hover:text-destructive" : "",
6551
6551
  {
@@ -6644,7 +6644,7 @@ function Kl(y) {
6644
6644
  }
6645
6645
  ) }),
6646
6646
  d && /* @__PURE__ */ n(le.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[44px] w-full items-center justify-center", children: /* @__PURE__ */ n(
6647
- J,
6647
+ Q,
6648
6648
  {
6649
6649
  onClick: O,
6650
6650
  variant: "text",
@@ -6657,7 +6657,7 @@ function Kl(y) {
6657
6657
  }
6658
6658
  ) : /* @__PURE__ */ C(Ze, { open: M, onOpenChange: I, children: [
6659
6659
  /* @__PURE__ */ n(Je, { asChild: !0, children: /* @__PURE__ */ n(
6660
- J,
6660
+ Q,
6661
6661
  {
6662
6662
  variant: "dashed",
6663
6663
  disabled: f,
@@ -6665,7 +6665,7 @@ function Kl(y) {
6665
6665
  iconPosition: "end",
6666
6666
  className: p(
6667
6667
  "group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
6668
- G(),
6668
+ W(),
6669
6669
  c === "lg" ? "px-3" : "px-2.5",
6670
6670
  z() ? "hover:text-destructive" : "",
6671
6671
  {
@@ -6767,7 +6767,7 @@ function Kl(y) {
6767
6767
  }
6768
6768
  ),
6769
6769
  d && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
6770
- J,
6770
+ Q,
6771
6771
  {
6772
6772
  onClick: O,
6773
6773
  variant: "text",
@@ -6817,10 +6817,10 @@ const _n = v.forwardRef(
6817
6817
  "onPaste",
6818
6818
  "onClear"
6819
6819
  ]);
6820
- const [h, g] = ne(() => e == null || e === "" ? "" : String(e)), N = Y(
6820
+ const [h, g] = ae(() => e == null || e === "" ? "" : String(e)), N = $(
6821
6821
  (S) => a === "comma" ? S.replace(/\./g, ",") : S.replace(/,/g, "."),
6822
6822
  [a]
6823
- ), M = Y(
6823
+ ), M = $(
6824
6824
  (S) => {
6825
6825
  if (S === "" && c)
6826
6826
  return "";
@@ -6839,10 +6839,10 @@ const _n = v.forwardRef(
6839
6839
  return o && (F = o(F)), F;
6840
6840
  },
6841
6841
  [r, a, l, c, N, o]
6842
- ), I = Y(
6842
+ ), I = $(
6843
6843
  (S) => !(i !== void 0 && S < i || s !== void 0 && S > s),
6844
6844
  [i, s]
6845
- ), k = Y(
6845
+ ), k = $(
6846
6846
  (S) => {
6847
6847
  const F = S.target.value, z = M(F);
6848
6848
  if (g(z), z === "") {
@@ -6853,7 +6853,7 @@ const _n = v.forwardRef(
6853
6853
  Number.isNaN(H) ? t == null || t(z) : I(H) ? t == null || t(H) : t == null || t(z);
6854
6854
  },
6855
6855
  [M, I, t, a, c]
6856
- ), R = Y(
6856
+ ), R = $(
6857
6857
  (S) => {
6858
6858
  const { key: F, ctrlKey: z, metaKey: j } = S;
6859
6859
  if (z || j || [
@@ -6896,7 +6896,7 @@ const _n = v.forwardRef(
6896
6896
  S.preventDefault();
6897
6897
  },
6898
6898
  [l, f, a, M, g, t]
6899
- ), E = Y(
6899
+ ), E = $(
6900
6900
  (S) => {
6901
6901
  const F = S.clipboardData.getData("text"), z = M(F);
6902
6902
  if (z !== F) {
@@ -7158,7 +7158,7 @@ const Gi = v.forwardRef(
7158
7158
  "fullScreen",
7159
7159
  "width"
7160
7160
  ]);
7161
- const x = pe(null), [m, y] = ne(!1);
7161
+ const x = pe(null), [m, y] = ae(!1);
7162
7162
  return ue(() => {
7163
7163
  const h = () => {
7164
7164
  x.current && y(x.current.scrollTop > 0);
@@ -7234,7 +7234,7 @@ const Gi = v.forwardRef(
7234
7234
  ),
7235
7235
  asChild: !0,
7236
7236
  children: /* @__PURE__ */ n(
7237
- J,
7237
+ Q,
7238
7238
  {
7239
7239
  variant: "text",
7240
7240
  className: "text-secondary",
@@ -7357,76 +7357,76 @@ const Jl = aa((e, t) => {
7357
7357
  resend: "Отправить код повторно",
7358
7358
  sms: "Отправить СМС через"
7359
7359
  }
7360
- } = e, m = e["data-cy"], y = e["data-testid"], [h, g] = ne(0), [N, M] = ne(
7360
+ } = e, m = e["data-cy"], y = e["data-testid"], [h, g] = ae(0), [N, M] = ae(
7361
7361
  Array.from({ length: r }, () => "")
7362
- ), [I, k] = ne(u ? b : 0), [R, E] = ne(!!u), [S, F] = ne(c), [z, j] = ne(f), H = ($) => {
7363
- const Z = Math.max(Math.min(r - 1, $), 0);
7362
+ ), [I, k] = ae(u ? b : 0), [R, E] = ae(!!u), [S, F] = ae(c), [z, j] = ae(f), H = (K) => {
7363
+ const Z = Math.max(Math.min(r - 1, K), 0);
7364
7364
  g(Z);
7365
7365
  };
7366
7366
  Ur(t, () => ({
7367
7367
  focusInput: H
7368
7368
  })), ue(() => {
7369
- let $;
7370
- return R && I > 0 ? $ = setInterval(() => {
7369
+ let K;
7370
+ return R && I > 0 ? K = setInterval(() => {
7371
7371
  k((Z) => Z - 1);
7372
7372
  }, 1e3) : I === 0 && E(!1), () => {
7373
- $ && clearInterval($);
7373
+ K && clearInterval(K);
7374
7374
  };
7375
7375
  }, [I, R]), ue(() => {
7376
7376
  F(c), j(f);
7377
7377
  }, [c, f]);
7378
7378
  const P = () => {
7379
7379
  u && !R && (u(), k(b), E(!0));
7380
- }, A = ($) => {
7380
+ }, A = (K) => {
7381
7381
  var be;
7382
- S && (F(!1), j("")), M($);
7383
- const Z = $.join("");
7382
+ S && (F(!1), j("")), M(K);
7383
+ const Z = K.join("");
7384
7384
  a(Z), Z.length === r && ((be = e.onComplete) == null || be.call(e, Z), l && (M(Array.from({ length: r }, () => "")), g(0)));
7385
- }, O = ($) => !Number.isNaN(Number.parseInt($, 10)) && $.trim().length === 1, G = () => {
7385
+ }, O = (K) => !Number.isNaN(Number.parseInt(K, 10)) && K.trim().length === 1, W = () => {
7386
7386
  H(h + 1);
7387
7387
  }, V = () => {
7388
7388
  H(h - 1);
7389
- }, K = ($) => {
7389
+ }, Y = (K) => {
7390
7390
  const Z = [...N];
7391
- Z[h] = $[0] || "", A(Z);
7392
- }, W = ($) => {
7393
- if ($.preventDefault(), i || s)
7391
+ Z[h] = K[0] || "", A(Z);
7392
+ }, G = (K) => {
7393
+ if (K.preventDefault(), i || s)
7394
7394
  return;
7395
7395
  let Z = h;
7396
- const be = $.clipboardData.getData("text/plain").slice(0, r - h).split(""), Le = [...N];
7396
+ const be = K.clipboardData.getData("text/plain").slice(0, r - h).split(""), Le = [...N];
7397
7397
  for (let Me = 0; Me < r; ++Me)
7398
7398
  Me >= h && be.length > 0 && (Le[Me] = be.shift(), Z++);
7399
7399
  g(Z), H(Z), A(Le);
7400
- }, q = ($) => (Z) => {
7400
+ }, J = (K) => (Z) => {
7401
7401
  if (s)
7402
7402
  return;
7403
7403
  const { value: be } = Z.target;
7404
- if ($ === 0 && be.length === r) {
7404
+ if (K === 0 && be.length === r) {
7405
7405
  A(be.split(""));
7406
7406
  return;
7407
7407
  }
7408
- O(be) && K(be);
7409
- }, re = ($) => {
7410
- s || ($.keyCode === Ui || $.key === "Backspace" ? ($.preventDefault(), K(""), V()) : $.keyCode === Yi || $.key === "Delete" ? ($.preventDefault(), K("")) : $.keyCode === Ki || $.key === "ArrowLeft" ? ($.preventDefault(), V()) : $.keyCode === $i || $.key === "ArrowRight" ? ($.preventDefault(), G()) : ($.keyCode === Zi || $.key === " " || $.key === "Spacebar" || $.key === "Space") && $.preventDefault());
7411
- }, se = ($) => {
7408
+ O(be) && Y(be);
7409
+ }, re = (K) => {
7410
+ s || (K.keyCode === Ui || K.key === "Backspace" ? (K.preventDefault(), Y(""), V()) : K.keyCode === Yi || K.key === "Delete" ? (K.preventDefault(), Y("")) : K.keyCode === Ki || K.key === "ArrowLeft" ? (K.preventDefault(), V()) : K.keyCode === $i || K.key === "ArrowRight" ? (K.preventDefault(), W()) : (K.keyCode === Zi || K.key === " " || K.key === "Spacebar" || K.key === "Space") && K.preventDefault());
7411
+ }, ne = (K) => {
7412
7412
  if (!s) {
7413
- if (O($.currentTarget.value)) {
7414
- G();
7413
+ if (O(K.currentTarget.value)) {
7414
+ W();
7415
7415
  return;
7416
7416
  }
7417
7417
  if (o) {
7418
- const { nativeEvent: Z } = $;
7419
- Z.data === null && Z.inputType === "deleteContentBackward" && ($.preventDefault(), K(""), V());
7418
+ const { nativeEvent: Z } = K;
7419
+ Z.data === null && Z.inputType === "deleteContentBackward" && (K.preventDefault(), Y(""), V());
7420
7420
  }
7421
7421
  }
7422
- }, X = ($) => (Z) => {
7423
- s || (g($), Z.target.select());
7424
- }, ae = () => {
7422
+ }, q = (K) => (Z) => {
7423
+ s || (g(K), Z.target.select());
7424
+ }, oe = () => {
7425
7425
  s || g(-1);
7426
7426
  };
7427
7427
  return /* @__PURE__ */ C("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
7428
7428
  d && /* @__PURE__ */ n(_, { variant: "h5", weight: "medium", children: d }),
7429
- /* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map(($, Z) => /* @__PURE__ */ n(
7429
+ /* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((K, Z) => /* @__PURE__ */ n(
7430
7430
  Ji,
7431
7431
  {
7432
7432
  index: Z,
@@ -7434,12 +7434,12 @@ const Jl = aa((e, t) => {
7434
7434
  loading: s,
7435
7435
  focus: h === Z,
7436
7436
  value: N[Z],
7437
- onChange: q(Z),
7437
+ onChange: J(Z),
7438
7438
  onKeyDown: re,
7439
- onInput: se,
7440
- onPaste: W,
7441
- onFocus: X(Z),
7442
- onBlur: ae,
7439
+ onInput: ne,
7440
+ onPaste: G,
7441
+ onFocus: q(Z),
7442
+ onBlur: oe,
7443
7443
  isDisabled: i,
7444
7444
  className: p(
7445
7445
  "flex flex-1 [appearance:textfield] items-center justify-center text-center text-lg [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
@@ -7508,7 +7508,7 @@ const Ql = ({
7508
7508
  const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), d = zr(e || 1, 1, f), u = te(
7509
7509
  () => [{ type: "prev" }, ...Xi(d, f), { type: "next" }],
7510
7510
  [d, f]
7511
- ), [b, x] = ne("");
7511
+ ), [b, x] = ae("");
7512
7512
  if (s && f <= 1)
7513
7513
  return null;
7514
7514
  const m = (k) => {
@@ -7539,7 +7539,7 @@ const Ql = ({
7539
7539
  return /* @__PURE__ */ C("div", { className: p("flex items-center justify-between gap-3 flex-wrap", o), "data-testid": "paginator", children: [
7540
7540
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: u.map((k, R) => {
7541
7541
  const E = Qi(k, f), S = k.type === "page" && k.page === d, F = `${k.type}-${k.type === "page" ? k.page : R}`, z = k.type === "prev" || k.type === "next" ? /* @__PURE__ */ n(
7542
- J,
7542
+ Q,
7543
7543
  {
7544
7544
  variant: "text",
7545
7545
  size: "md",
@@ -7551,7 +7551,7 @@ const Ql = ({
7551
7551
  onClick: () => y(k)
7552
7552
  }
7553
7553
  ) : k.type === "jump-prev" || k.type === "jump-next" ? /* @__PURE__ */ n(
7554
- J,
7554
+ Q,
7555
7555
  {
7556
7556
  variant: "text",
7557
7557
  size: "md",
@@ -7562,7 +7562,7 @@ const Ql = ({
7562
7562
  children: "…"
7563
7563
  }
7564
7564
  ) : /* @__PURE__ */ n(
7565
- J,
7565
+ Q,
7566
7566
  {
7567
7567
  variant: "text",
7568
7568
  size: "md",
@@ -7601,7 +7601,7 @@ const Ql = ({
7601
7601
  }
7602
7602
  ),
7603
7603
  /* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children: N }),
7604
- /* @__PURE__ */ n(J, { variant: "default", onClick: h, disabled: i, children: "OK" })
7604
+ /* @__PURE__ */ n(Q, { variant: "default", onClick: h, disabled: i, children: "OK" })
7605
7605
  ] })
7606
7606
  ] });
7607
7607
  }, qi = {
@@ -8478,7 +8478,7 @@ const jn = ke.forwardRef(
8478
8478
  !l && t && t.length > 1 && /* @__PURE__ */ C(ge, { children: [
8479
8479
  b === "mobile" && /* @__PURE__ */ C(ht, { children: [
8480
8480
  /* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
8481
- J,
8481
+ Q,
8482
8482
  {
8483
8483
  type: "button",
8484
8484
  variant: "text",
@@ -8502,7 +8502,7 @@ const jn = ke.forwardRef(
8502
8502
  ] }),
8503
8503
  b !== "mobile" && /* @__PURE__ */ C(Ze, { children: [
8504
8504
  /* @__PURE__ */ n(Je, { asChild: !0, children: /* @__PURE__ */ n(
8505
- J,
8505
+ Q,
8506
8506
  {
8507
8507
  type: "button",
8508
8508
  variant: "text",
@@ -8591,7 +8591,7 @@ const Vr = Kr(
8591
8591
  "bg-muted": e
8592
8592
  }),
8593
8593
  children: /* @__PURE__ */ C(
8594
- J,
8594
+ Q,
8595
8595
  {
8596
8596
  type: "button",
8597
8597
  variant: "default",
@@ -8664,7 +8664,7 @@ const Vr = Kr(
8664
8664
  "bg-muted": e
8665
8665
  }),
8666
8666
  children: /* @__PURE__ */ C(
8667
- J,
8667
+ Q,
8668
8668
  {
8669
8669
  type: "button",
8670
8670
  variant: "default",
@@ -8804,8 +8804,8 @@ const Vr = Kr(
8804
8804
  k(O), g(V[0]), M(V);
8805
8805
  }
8806
8806
  t == null || t(A);
8807
- const G = Oe.isPossiblePhoneNumber(A);
8808
- c == null || c(G);
8807
+ const W = Oe.isPossiblePhoneNumber(A);
8808
+ c == null || c(W);
8809
8809
  }, F = (P) => {
8810
8810
  if (!P)
8811
8811
  return;
@@ -9566,7 +9566,7 @@ function Cs({
9566
9566
  tbodyDataTestId: c,
9567
9567
  rowDataTestId: f
9568
9568
  }) {
9569
- const d = e.getRowModel().rows, [u, b] = ne(() => /* @__PURE__ */ new Set()), x = pe(null), m = pe(/* @__PURE__ */ new Map());
9569
+ const d = e.getRowModel().rows, [u, b] = ae(() => /* @__PURE__ */ new Set()), x = pe(null), m = pe(/* @__PURE__ */ new Map());
9570
9570
  return ue(() => () => {
9571
9571
  m.current.forEach((y) => {
9572
9572
  window.clearTimeout(y);
@@ -9626,8 +9626,8 @@ function Cs({
9626
9626
  tabIndex: N ? (z = g.tabIndex) != null ? z : 0 : g.tabIndex,
9627
9627
  "aria-label": N ? (j = g["aria-label"]) != null ? j : "Открыть строку" : g["aria-label"],
9628
9628
  children: y.getVisibleCells().map((H) => {
9629
- var se, X, ae;
9630
- const P = H.column.columnDef.meta, A = y.original, O = h === d.length - 1, G = en(H.column.columnDef.cell, H.getContext()), V = (se = P == null ? void 0 : P.cellStyle) == null ? void 0 : se.call(P, A, h), K = (X = P == null ? void 0 : P.cellClassName) == null ? void 0 : X.call(P, A, h), W = hr(P == null ? void 0 : P.align), q = br(P == null ? void 0 : P.fixed, H.column.id, o), re = xr(P == null ? void 0 : P.fixed, H.column.id, i, s);
9629
+ var ne, q, oe;
9630
+ const P = H.column.columnDef.meta, A = y.original, O = h === d.length - 1, W = en(H.column.columnDef.cell, H.getContext()), V = (ne = P == null ? void 0 : P.cellStyle) == null ? void 0 : ne.call(P, A, h), Y = (q = P == null ? void 0 : P.cellClassName) == null ? void 0 : q.call(P, A, h), G = hr(P == null ? void 0 : P.align), J = br(P == null ? void 0 : P.fixed, H.column.id, o), re = xr(P == null ? void 0 : P.fixed, H.column.id, i, s);
9631
9631
  return /* @__PURE__ */ n(
9632
9632
  "td",
9633
9633
  {
@@ -9635,9 +9635,9 @@ function Cs({
9635
9635
  className: p(
9636
9636
  "align-top border-b border-default-background p-2",
9637
9637
  E,
9638
- W,
9638
+ G,
9639
9639
  P == null ? void 0 : P.className,
9640
- K,
9640
+ Y,
9641
9641
  O && "border-b-0",
9642
9642
  ((P == null ? void 0 : P.fixed) === "left" || (P == null ? void 0 : P.fixed) === "right") && "sticky z-10"
9643
9643
  ),
@@ -9645,13 +9645,13 @@ function Cs({
9645
9645
  width: P == null ? void 0 : P.width,
9646
9646
  minWidth: P == null ? void 0 : P.minWidth,
9647
9647
  maxWidth: P == null ? void 0 : P.maxWidth
9648
- }, V), q), {
9648
+ }, V), J), {
9649
9649
  boxShadow: gr(
9650
- (ae = V == null ? void 0 : V.boxShadow) != null ? ae : void 0,
9650
+ (oe = V == null ? void 0 : V.boxShadow) != null ? oe : void 0,
9651
9651
  re
9652
9652
  )
9653
9653
  }),
9654
- children: G
9654
+ children: W
9655
9655
  },
9656
9656
  H.id
9657
9657
  );
@@ -9849,7 +9849,7 @@ const Es = {
9849
9849
  canScrollRight: !1
9850
9850
  };
9851
9851
  function As(e, t) {
9852
- const [r, a] = ne(Es);
9852
+ const [r, a] = ae(Es);
9853
9853
  return ue(() => {
9854
9854
  const o = e.current;
9855
9855
  if (!o)
@@ -9889,12 +9889,12 @@ function ed({
9889
9889
  rowDataTestId: R = "item"
9890
9890
  }) {
9891
9891
  var yr, vr, wr;
9892
- const E = (yr = c != null ? c : f) != null ? yr : [], S = !!r, F = Math.max(1, Math.floor(a != null ? a : 10)), z = pe(null), j = !!m, H = (vr = m == null ? void 0 : m.selectAllMode) != null ? vr : (m == null ? void 0 : m.selectAllScope) === "all" ? "all" : "page", [P, A] = ne(
9892
+ const E = (yr = c != null ? c : f) != null ? yr : [], S = !!r, F = Math.max(1, Math.floor(a != null ? a : 10)), z = pe(null), j = !!m, H = (vr = m == null ? void 0 : m.selectAllMode) != null ? vr : (m == null ? void 0 : m.selectAllScope) === "all" ? "all" : "page", [P, A] = ae(
9893
9893
  () => {
9894
- var Q;
9895
- return (Q = m == null ? void 0 : m.defaultSelectedRowKeys) != null ? Q : [];
9894
+ var X;
9895
+ return (X = m == null ? void 0 : m.defaultSelectedRowKeys) != null ? X : [];
9896
9896
  }
9897
- ), O = (m == null ? void 0 : m.selectedRowKeys) !== void 0, G = (wr = m == null ? void 0 : m.selectedRowKeys) != null ? wr : P, V = te(() => new Set(G.map((Q) => String(Q))), [G]), K = te(() => j ? {
9897
+ ), O = (m == null ? void 0 : m.selectedRowKeys) !== void 0, W = (wr = m == null ? void 0 : m.selectedRowKeys) != null ? wr : P, V = te(() => new Set(W.map((X) => String(X))), [W]), Y = te(() => j ? {
9898
9898
  key: "__row_selection__",
9899
9899
  title: null,
9900
9900
  width: 44,
@@ -9904,28 +9904,28 @@ function ed({
9904
9904
  align: "center",
9905
9905
  className: "p-2",
9906
9906
  "data-testid": "table-row-selection"
9907
- } : null, [j]), W = te(() => K ? [K, ...l] : l, [l, K]), q = te(
9908
- () => W.some((Q) => typeof Q.width == "number"),
9909
- [W]
9907
+ } : null, [j]), G = te(() => Y ? [Y, ...l] : l, [l, Y]), J = te(
9908
+ () => G.some((X) => typeof X.width == "number"),
9909
+ [G]
9910
9910
  ), re = te(
9911
- () => W.some((Q) => Q.fixed === "left" || Q.fixed === "right"),
9912
- [W]
9913
- ), se = te(
9914
- () => Ns(W, Ue),
9915
- [W]
9916
- ), X = te(
9917
- () => Is(W, Ue),
9918
- [W]
9919
- ), ae = te(() => (Q, de) => {
9911
+ () => G.some((X) => X.fixed === "left" || X.fixed === "right"),
9912
+ [G]
9913
+ ), ne = te(
9914
+ () => Ns(G, Ue),
9915
+ [G]
9916
+ ), q = te(
9917
+ () => Is(G, Ue),
9918
+ [G]
9919
+ ), oe = te(() => (X, de) => {
9920
9920
  if (typeof x == "function")
9921
- return x(Q);
9921
+ return x(X);
9922
9922
  if (x) {
9923
- const ee = Q == null ? void 0 : Q[x];
9923
+ const ee = X == null ? void 0 : X[x];
9924
9924
  return ee != null ? ee : de;
9925
9925
  }
9926
9926
  return de;
9927
- }, [x]), $ = te(() => {
9928
- const Q = j ? [
9927
+ }, [x]), K = te(() => {
9928
+ const X = j ? [
9929
9929
  {
9930
9930
  id: "__row_selection__",
9931
9931
  enableSorting: !1,
@@ -9945,20 +9945,20 @@ function ed({
9945
9945
  return !((we = (Pe = m == null ? void 0 : m.getCheckboxProps) == null ? void 0 : Pe.call(m, fe.original)) == null ? void 0 : we.disabled);
9946
9946
  }).map((fe) => fe.id), Ve = Se.reduce((fe, Ae) => V.has(Ae) ? fe + 1 : fe, 0), He = Se.length > 0 && Ve === Se.length, Nr = Ve > 0 && !He, yt = He ? !0 : Nr ? "indeterminate" : !1, et = ((Ir = m == null ? void 0 : m.allRowKeys) != null ? Ir : []).map((fe) => String(fe)), Ce = et.length > 0 ? et : Se, vt = Ce.reduce((fe, Ae) => V.has(Ae) ? fe + 1 : fe, 0), tt = Ce.length > 0 && vt === Ce.length, $t = vt > 0 && !tt, wt = tt ? !0 : $t ? "indeterminate" : !1, rt = (fe, Ae, Pe) => {
9947
9947
  var ze;
9948
- const we = Ae ? Array.from(new Map([...G, ...fe].map((Re) => [String(Re), Re])).values()) : G.filter((Re) => !new Set(fe.map((Yt) => String(Yt))).has(String(Re)));
9948
+ const we = Ae ? Array.from(new Map([...W, ...fe].map((Re) => [String(Re), Re])).values()) : W.filter((Re) => !new Set(fe.map((Yt) => String(Yt))).has(String(Re)));
9949
9949
  O || A(we);
9950
9950
  const at = ee.table.getCoreRowModel().rows.filter((Re) => new Set(we.map((Yt) => String(Yt))).has(Re.id)).map((Re) => Re.original);
9951
9951
  (ze = m == null ? void 0 : m.onChange) == null || ze.call(m, we, at, { type: Pe });
9952
9952
  };
9953
9953
  return /* @__PURE__ */ n(rr, { checked: H === "all" ? wt : yt, onCheckedChange: H === "all" ? (fe) => {
9954
9954
  var we, at;
9955
- const Ae = fe === !0, Pe = (at = (we = m == null ? void 0 : m.allRowKeys) != null && we.length ? m.allRowKeys : ve.map((ze) => ae(ze.original, ze.index))) != null ? at : [];
9955
+ const Ae = fe === !0, Pe = (at = (we = m == null ? void 0 : m.allRowKeys) != null && we.length ? m.allRowKeys : ve.map((ze) => oe(ze.original, ze.index))) != null ? at : [];
9956
9956
  rt(Pe, Ae, "all");
9957
9957
  } : (fe) => {
9958
9958
  const Ae = fe === !0, Pe = ve.filter((we) => {
9959
9959
  var ze, Re;
9960
9960
  return !((Re = (ze = m == null ? void 0 : m.getCheckboxProps) == null ? void 0 : ze.call(m, we.original)) == null ? void 0 : Re.disabled);
9961
- }).map((we) => ae(we.original, we.index));
9961
+ }).map((we) => oe(we.original, we.index));
9962
9962
  rt(Pe, Ae, "page");
9963
9963
  }, "aria-label": H === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": H === "all" ? "table-select-all" : "table-select-page" });
9964
9964
  },
@@ -9985,7 +9985,7 @@ function ed({
9985
9985
  const vt = Ce === !0;
9986
9986
  if (Ve)
9987
9987
  return;
9988
- const tt = ae(ve, ee.row.index), $t = String(tt), wt = vt ? Array.from(new Map([...G, tt].map((nt) => [String(nt), nt])).values()) : G.filter((nt) => String(nt) !== $t);
9988
+ const tt = oe(ve, ee.row.index), $t = String(tt), wt = vt ? Array.from(new Map([...W, tt].map((nt) => [String(nt), nt])).values()) : W.filter((nt) => String(nt) !== $t);
9989
9989
  O || A(wt), (rt = m == null ? void 0 : m.onChange) == null || rt.call(m, wt, [ve], { type: "row" });
9990
9990
  },
9991
9991
  "aria-label": `Выбрать строку ${Se}`,
@@ -9997,7 +9997,7 @@ function ed({
9997
9997
  }
9998
9998
  }
9999
9999
  ] : [], de = l.map((ee, ve) => Ts(ee, ve));
10000
- return [...Q, ...de];
10000
+ return [...X, ...de];
10001
10001
  }, [
10002
10002
  l,
10003
10003
  j,
@@ -10005,17 +10005,17 @@ function ed({
10005
10005
  m,
10006
10006
  H,
10007
10007
  V,
10008
- G,
10009
- ae
10010
- ]), [Z, be] = ne(() => {
10011
- const Q = l.findIndex((Se) => Se.defaultSortOrder), de = Q >= 0 ? l[Q] : void 0, ee = de == null ? void 0 : de.defaultSortOrder, ve = de ? Ue(de, Q) : void 0;
10008
+ W,
10009
+ oe
10010
+ ]), [Z, be] = ae(() => {
10011
+ const X = l.findIndex((Se) => Se.defaultSortOrder), de = X >= 0 ? l[X] : void 0, ee = de == null ? void 0 : de.defaultSortOrder, ve = de ? Ue(de, X) : void 0;
10012
10012
  return !ve || !ee ? [] : [{ id: ve, desc: ee === "descend" }];
10013
10013
  }), Me = ha(D(w({
10014
10014
  data: E,
10015
- columns: $,
10015
+ columns: K,
10016
10016
  state: { sorting: Z },
10017
- onSortingChange: (Q) => {
10018
- const de = typeof Q == "function" ? Q(Z) : Q;
10017
+ onSortingChange: (X) => {
10018
+ const de = typeof X == "function" ? X(Z) : X;
10019
10019
  be(de);
10020
10020
  const ee = de[0], ve = ee ? ee.desc ? "descend" : "ascend" : void 0, Se = {
10021
10021
  columnKey: ee == null ? void 0 : ee.id,
@@ -10028,22 +10028,22 @@ function ed({
10028
10028
  getCoreRowModel: ba(),
10029
10029
  enableSortingRemoval: !0
10030
10030
  }, b ? { getSortedRowModel: ga() } : {}), {
10031
- getRowId: x ? (Q, de) => {
10031
+ getRowId: x ? (X, de) => {
10032
10032
  if (typeof x == "function")
10033
- return String(x(Q));
10034
- const ee = Q == null ? void 0 : Q[x];
10033
+ return String(x(X));
10034
+ const ee = X == null ? void 0 : X[x];
10035
10035
  return ee != null ? String(ee) : String(de);
10036
10036
  } : void 0
10037
10037
  })), Xn = te(() => {
10038
- const Q = {};
10039
- return (o == null ? void 0 : o.y) != null && (Q.maxHeight = typeof o.y == "number" ? `${o.y}px` : o.y), Q;
10040
- }, [o == null ? void 0 : o.y]), Ht = te(() => W.reduce((Q, de) => {
10038
+ const X = {};
10039
+ return (o == null ? void 0 : o.y) != null && (X.maxHeight = typeof o.y == "number" ? `${o.y}px` : o.y), X;
10040
+ }, [o == null ? void 0 : o.y]), Ht = te(() => G.reduce((X, de) => {
10041
10041
  const ee = typeof de.width == "number" ? de.width : typeof de.minWidth == "number" ? de.minWidth : 0;
10042
- return Q + ee;
10043
- }, 0), [W]), Ut = te(() => (o == null ? void 0 : o.x) === "max-content" ? "max-content" : typeof (o == null ? void 0 : o.x) == "number" ? `${o.x}px` : typeof (o == null ? void 0 : o.x) == "string" ? o.x : Ht > 0 ? `${Ht}px` : "max-content", [o == null ? void 0 : o.x, Ht]), Kt = As(z, [
10044
- W,
10042
+ return X + ee;
10043
+ }, 0), [G]), Ut = te(() => (o == null ? void 0 : o.x) === "max-content" ? "max-content" : typeof (o == null ? void 0 : o.x) == "number" ? `${o.x}px` : typeof (o == null ? void 0 : o.x) == "string" ? o.x : Ht > 0 ? `${Ht}px` : "max-content", [o == null ? void 0 : o.x, Ht]), Kt = As(z, [
10044
+ G,
10045
10045
  Ut,
10046
- q,
10046
+ J,
10047
10047
  re
10048
10048
  ]);
10049
10049
  return /* @__PURE__ */ n(
@@ -10078,7 +10078,7 @@ function ed({
10078
10078
  ),
10079
10079
  style: Ut ? { minWidth: Ut } : void 0,
10080
10080
  children: [
10081
- /* @__PURE__ */ n(ks, { columns: W }),
10081
+ /* @__PURE__ */ n(ks, { columns: G }),
10082
10082
  g && /* @__PURE__ */ n(
10083
10083
  Ms,
10084
10084
  {
@@ -10087,8 +10087,8 @@ function ed({
10087
10087
  sorting: Z,
10088
10088
  stickyHeader: i,
10089
10089
  showSorterTooltip: N,
10090
- stickyOffsets: X,
10091
- fixedShadowEdges: se,
10090
+ stickyOffsets: q,
10091
+ fixedShadowEdges: ne,
10092
10092
  scrollState: Kt
10093
10093
  }
10094
10094
  ),
@@ -10097,19 +10097,19 @@ function ed({
10097
10097
  {
10098
10098
  table: Me,
10099
10099
  rowsCount: F,
10100
- stickyOffsets: X,
10101
- fixedShadowEdges: se,
10100
+ stickyOffsets: q,
10101
+ fixedShadowEdges: ne,
10102
10102
  scrollState: Kt
10103
10103
  }
10104
10104
  ) }) : /* @__PURE__ */ n(
10105
10105
  Cs,
10106
10106
  {
10107
10107
  table: Me,
10108
- columnsCount: W.length,
10108
+ columnsCount: G.length,
10109
10109
  onRow: M,
10110
10110
  locale: I,
10111
- stickyOffsets: X,
10112
- fixedShadowEdges: se,
10111
+ stickyOffsets: q,
10112
+ fixedShadowEdges: ne,
10113
10113
  scrollState: Kt,
10114
10114
  highlightNewRows: y,
10115
10115
  tbodyDataTestId: k,
@@ -10263,7 +10263,7 @@ function rd({
10263
10263
  };
10264
10264
  return /* @__PURE__ */ C(Ze, { children: [
10265
10265
  /* @__PURE__ */ n(Je, { asChild: !0, children: /* @__PURE__ */ n(
10266
- J,
10266
+ Q,
10267
10267
  {
10268
10268
  type: "button",
10269
10269
  variant: "text",
@@ -10764,7 +10764,7 @@ function od({
10764
10764
  "data-testid": d
10765
10765
  }) {
10766
10766
  const [u, b] = v.useState((e == null ? void 0 : e.from) || ""), [x, m] = v.useState((e == null ? void 0 : e.to) || ""), y = v.useRef((e == null ? void 0 : e.from) || ""), h = v.useRef((e == null ? void 0 : e.to) || ""), g = v.useMemo(() => {
10767
- const P = (W) => typeof W == "string", A = (W) => typeof W == "object" && W !== null;
10767
+ const P = (G) => typeof G == "string", A = (G) => typeof G == "object" && G !== null;
10768
10768
  return {
10769
10769
  hasAnyError: () => s ? P(s) ? !0 : !!(s.from || s.to) : !1,
10770
10770
  hasFromError: () => P(s) ? !0 : A(s) && !!s.from,
@@ -10776,15 +10776,15 @@ function od({
10776
10776
  b((e == null ? void 0 : e.from) || ""), m((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
10777
10777
  }, [e]);
10778
10778
  const R = (P, A) => {
10779
- const O = P.replace(/\D/g, ""), G = A.replace(/\D/g, ""), V = Hs(P, A);
10780
- return O.length === 0 ? "" : V === "removed" && O.length === 2 && G.length === 3 ? `${O}:` : V === "removed" && O.length === 2 && G.length === 2 && A.includes(":") ? O[0] : V === "removed" && O.length === 1 ? O : V === "added" && O.length === 2 && G.length === 1 ? `${O}:` : O.length === 1 || O.length === 2 ? O : O.length <= 4 ? `${O.slice(0, 2)}:${O.slice(2)}` : `${O.slice(0, 2)}:${O.slice(2, 4)}`;
10779
+ const O = P.replace(/\D/g, ""), W = A.replace(/\D/g, ""), V = Hs(P, A);
10780
+ return O.length === 0 ? "" : V === "removed" && O.length === 2 && W.length === 3 ? `${O}:` : V === "removed" && O.length === 2 && W.length === 2 && A.includes(":") ? O[0] : V === "removed" && O.length === 1 ? O : V === "added" && O.length === 2 && W.length === 1 ? `${O}:` : O.length === 1 || O.length === 2 ? O : O.length <= 4 ? `${O.slice(0, 2)}:${O.slice(2)}` : `${O.slice(0, 2)}:${O.slice(2, 4)}`;
10781
10781
  }, E = (P) => {
10782
10782
  if (!P)
10783
10783
  return !0;
10784
10784
  if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(P))
10785
10785
  return !1;
10786
- const [O, G] = P.split(":").map(Number);
10787
- return O >= 0 && O <= 23 && G >= 0 && G <= 59;
10786
+ const [O, W] = P.split(":").map(Number);
10787
+ return O >= 0 && O <= 23 && W >= 0 && W <= 59;
10788
10788
  }, S = (P, A) => {
10789
10789
  const O = {
10790
10790
  from: P || void 0,
@@ -10980,7 +10980,7 @@ function ot(e, t, r) {
10980
10980
  return a.length === 0 ? (t && t(e), [r || "Произошла ошибка"]) : a;
10981
10981
  }
10982
10982
  function Us(e, t) {
10983
- return ie(e, t);
10983
+ return se(e, t);
10984
10984
  }
10985
10985
  const sd = Object.assign(Us, {
10986
10986
  success: (e, t) => {
@@ -10990,13 +10990,13 @@ const sd = Object.assign(Us, {
10990
10990
  t == null ? void 0 : t.defaultMessage
10991
10991
  );
10992
10992
  return r.length > 1 ? r.map((a) => (() => {
10993
- const i = ie.success(
10993
+ const i = se.success(
10994
10994
  /* @__PURE__ */ n(
10995
10995
  "div",
10996
10996
  {
10997
- onClick: () => ie.dismiss(i),
10997
+ onClick: () => se.dismiss(i),
10998
10998
  onKeyDown: (s) => {
10999
- (s.key === "Enter" || s.key === " ") && ie.dismiss(i);
10999
+ (s.key === "Enter" || s.key === " ") && se.dismiss(i);
11000
11000
  },
11001
11001
  role: "button",
11002
11002
  tabIndex: 0,
@@ -11010,7 +11010,7 @@ const sd = Object.assign(Us, {
11010
11010
  })
11011
11011
  );
11012
11012
  return i;
11013
- })()) : ie.success(r[0], t);
11013
+ })()) : se.success(r[0], t);
11014
11014
  },
11015
11015
  error: (e, t) => {
11016
11016
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
@@ -11019,13 +11019,13 @@ const sd = Object.assign(Us, {
11019
11019
  t == null ? void 0 : t.defaultMessage
11020
11020
  );
11021
11021
  return r.length > 1 ? r.map((a) => (() => {
11022
- const i = ie.error(
11022
+ const i = se.error(
11023
11023
  /* @__PURE__ */ n(
11024
11024
  "div",
11025
11025
  {
11026
- onClick: () => ie.dismiss(i),
11026
+ onClick: () => se.dismiss(i),
11027
11027
  onKeyDown: (s) => {
11028
- (s.key === "Enter" || s.key === " ") && ie.dismiss(i);
11028
+ (s.key === "Enter" || s.key === " ") && se.dismiss(i);
11029
11029
  },
11030
11030
  role: "button",
11031
11031
  tabIndex: 0,
@@ -11039,7 +11039,7 @@ const sd = Object.assign(Us, {
11039
11039
  })
11040
11040
  );
11041
11041
  return i;
11042
- })()) : ie.error(r[0], t);
11042
+ })()) : se.error(r[0], t);
11043
11043
  },
11044
11044
  info: (e, t) => {
11045
11045
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
@@ -11048,14 +11048,14 @@ const sd = Object.assign(Us, {
11048
11048
  t == null ? void 0 : t.defaultMessage
11049
11049
  );
11050
11050
  return r.length > 1 ? r.map((a) => (() => {
11051
- const i = ie.info(
11051
+ const i = se.info(
11052
11052
  // Обертка с обработчиком клика для закрытия
11053
11053
  /* @__PURE__ */ n(
11054
11054
  "div",
11055
11055
  {
11056
- onClick: () => ie.dismiss(i),
11056
+ onClick: () => se.dismiss(i),
11057
11057
  onKeyDown: (s) => {
11058
- (s.key === "Enter" || s.key === " ") && ie.dismiss(i);
11058
+ (s.key === "Enter" || s.key === " ") && se.dismiss(i);
11059
11059
  },
11060
11060
  role: "button",
11061
11061
  tabIndex: 0,
@@ -11070,7 +11070,7 @@ const sd = Object.assign(Us, {
11070
11070
  })
11071
11071
  );
11072
11072
  return i;
11073
- })()) : ie.info(r[0], t);
11073
+ })()) : se.info(r[0], t);
11074
11074
  },
11075
11075
  warning: (e, t) => {
11076
11076
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
@@ -11079,14 +11079,14 @@ const sd = Object.assign(Us, {
11079
11079
  t == null ? void 0 : t.defaultMessage
11080
11080
  );
11081
11081
  return r.length > 1 ? r.map((a) => (() => {
11082
- const i = ie.warning(
11082
+ const i = se.warning(
11083
11083
  // Обертка с обработчиком клика для закрытия
11084
11084
  /* @__PURE__ */ n(
11085
11085
  "div",
11086
11086
  {
11087
- onClick: () => ie.dismiss(i),
11087
+ onClick: () => se.dismiss(i),
11088
11088
  onKeyDown: (s) => {
11089
- (s.key === "Enter" || s.key === " ") && ie.dismiss(i);
11089
+ (s.key === "Enter" || s.key === " ") && se.dismiss(i);
11090
11090
  },
11091
11091
  role: "button",
11092
11092
  tabIndex: 0,
@@ -11100,7 +11100,7 @@ const sd = Object.assign(Us, {
11100
11100
  })
11101
11101
  );
11102
11102
  return i;
11103
- })()) : ie.warning(r[0], t);
11103
+ })()) : se.warning(r[0], t);
11104
11104
  },
11105
11105
  loading: (e, t) => {
11106
11106
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
@@ -11109,13 +11109,13 @@ const sd = Object.assign(Us, {
11109
11109
  t == null ? void 0 : t.defaultMessage
11110
11110
  );
11111
11111
  return r.length > 1 ? r.map((a) => (() => {
11112
- const i = ie.loading(
11112
+ const i = se.loading(
11113
11113
  /* @__PURE__ */ n(
11114
11114
  "div",
11115
11115
  {
11116
- onClick: () => ie.dismiss(i),
11116
+ onClick: () => se.dismiss(i),
11117
11117
  onKeyDown: (s) => {
11118
- (s.key === "Enter" || s.key === " ") && ie.dismiss(i);
11118
+ (s.key === "Enter" || s.key === " ") && se.dismiss(i);
11119
11119
  },
11120
11120
  role: "button",
11121
11121
  tabIndex: 0,
@@ -11128,10 +11128,10 @@ const sd = Object.assign(Us, {
11128
11128
  })
11129
11129
  );
11130
11130
  return i;
11131
- })()) : ie.loading(r[0], t);
11131
+ })()) : se.loading(r[0], t);
11132
11132
  },
11133
11133
  dismiss: (e) => {
11134
- ie.dismiss(e);
11134
+ se.dismiss(e);
11135
11135
  },
11136
11136
  promise(e, i) {
11137
11137
  var s = i, {
@@ -11143,7 +11143,7 @@ const sd = Object.assign(Us, {
11143
11143
  "success",
11144
11144
  "error"
11145
11145
  ]);
11146
- return ie.promise(e, w({
11146
+ return se.promise(e, w({
11147
11147
  loading: t,
11148
11148
  success: r,
11149
11149
  error: a
@@ -11361,20 +11361,20 @@ function Jn({
11361
11361
  withCredentials: u = !1,
11362
11362
  onChange: b
11363
11363
  }) {
11364
- const [x, m] = ne(!1), y = pe(null), h = pe(0), g = Y(
11364
+ const [x, m] = ae(!1), y = pe(null), h = pe(0), g = $(
11365
11365
  (A) => {
11366
11366
  var O;
11367
11367
  if (e) {
11368
- const G = e.split(",").map((W) => W.trim()), V = `.${(O = A.name.split(".").pop()) == null ? void 0 : O.toLowerCase()}`;
11369
- if (!G.some(
11370
- (W) => W === V || W.includes("*") && A.type.match(W.replace("*", ".*"))
11368
+ const W = e.split(",").map((G) => G.trim()), V = `.${(O = A.name.split(".").pop()) == null ? void 0 : O.toLowerCase()}`;
11369
+ if (!W.some(
11370
+ (G) => G === V || G.includes("*") && A.type.match(G.replace("*", ".*"))
11371
11371
  ))
11372
- return `Только ${G.join(" или ")} файлы`;
11372
+ return `Только ${W.join(" или ")} файлы`;
11373
11373
  }
11374
11374
  return t && A.size > t ? `Максимальный размер файла ${(t / 1024 / 1024).toFixed(2)}MB` : null;
11375
11375
  },
11376
11376
  [e, t]
11377
- ), N = Y(
11377
+ ), N = $(
11378
11378
  (A, O) => {
11379
11379
  b == null || b({
11380
11380
  file: A,
@@ -11382,49 +11382,49 @@ function Jn({
11382
11382
  });
11383
11383
  },
11384
11384
  [b]
11385
- ), M = Y(
11385
+ ), M = $(
11386
11386
  (A) => T(null, null, function* () {
11387
11387
  if (!l)
11388
11388
  return;
11389
11389
  let O = A.map(Qs);
11390
- for (const G of O) {
11391
- const V = D(w({}, G), {
11390
+ for (const W of O) {
11391
+ const V = D(w({}, W), {
11392
11392
  status: "uploading"
11393
11393
  });
11394
- O = O.map((K) => K.uid === G.uid ? V : K), N(V, O);
11394
+ O = O.map((Y) => Y.uid === W.uid ? V : Y), N(V, O);
11395
11395
  try {
11396
- const K = new FormData();
11397
- K.append(s, G.originFileObj);
11398
- const W = typeof f == "function" ? yield f(G.originFileObj) : f;
11399
- W && Object.entries(W).forEach(([X, ae]) => {
11400
- Zn(K, X, ae);
11396
+ const Y = new FormData();
11397
+ Y.append(s, W.originFileObj);
11398
+ const G = typeof f == "function" ? yield f(W.originFileObj) : f;
11399
+ G && Object.entries(G).forEach(([q, oe]) => {
11400
+ Zn(Y, q, oe);
11401
11401
  });
11402
- const q = yield fetch(l, {
11402
+ const J = yield fetch(l, {
11403
11403
  method: c,
11404
11404
  headers: d,
11405
11405
  credentials: u ? "include" : "same-origin",
11406
- body: K
11407
- }), re = yield Js(q);
11408
- if (!q.ok) {
11409
- const X = Hr(re) || q.statusText, ae = D(w({}, V), {
11406
+ body: Y
11407
+ }), re = yield Js(J);
11408
+ if (!J.ok) {
11409
+ const q = Hr(re) || J.statusText, oe = D(w({}, V), {
11410
11410
  status: "error",
11411
11411
  response: re,
11412
- error: X
11412
+ error: q
11413
11413
  });
11414
- O = O.map(($) => $.uid === G.uid ? ae : $), N(ae, O), i == null || i(X);
11414
+ O = O.map((K) => K.uid === W.uid ? oe : K), N(oe, O), i == null || i(q);
11415
11415
  continue;
11416
11416
  }
11417
- const se = D(w({}, V), {
11417
+ const ne = D(w({}, V), {
11418
11418
  status: "done",
11419
11419
  response: re
11420
11420
  });
11421
- O = O.map((X) => X.uid === G.uid ? se : X), N(se, O);
11422
- } catch (K) {
11423
- const W = Hr(K), q = D(w({}, V), {
11421
+ O = O.map((q) => q.uid === W.uid ? ne : q), N(ne, O);
11422
+ } catch (Y) {
11423
+ const G = Hr(Y), J = D(w({}, V), {
11424
11424
  status: "error",
11425
- error: W
11425
+ error: G
11426
11426
  });
11427
- O = O.map((re) => re.uid === G.uid ? q : re), N(q, O), i == null || i(W);
11427
+ O = O.map((re) => re.uid === W.uid ? J : re), N(J, O), i == null || i(G);
11428
11428
  }
11429
11429
  }
11430
11430
  }),
@@ -11438,85 +11438,85 @@ function Jn({
11438
11438
  i,
11439
11439
  u
11440
11440
  ]
11441
- ), I = Y(
11441
+ ), I = $(
11442
11442
  (A) => {
11443
11443
  if (!A || A.length === 0 || r)
11444
11444
  return;
11445
- const G = Array.from(A);
11446
- for (const V of G) {
11447
- const K = g(V);
11448
- if (K) {
11449
- i == null || i(K);
11445
+ const W = Array.from(A);
11446
+ for (const V of W) {
11447
+ const Y = g(V);
11448
+ if (Y) {
11449
+ i == null || i(Y);
11450
11450
  return;
11451
11451
  }
11452
11452
  }
11453
- a == null || a(G), l && M(G);
11453
+ a == null || a(W), l && M(W);
11454
11454
  },
11455
11455
  [l, r, i, a, M, g]
11456
- ), k = Y(
11456
+ ), k = $(
11457
11457
  (A) => {
11458
11458
  I(A.target.files), A.target.value = "";
11459
11459
  },
11460
11460
  [I]
11461
- ), R = Y(() => {
11461
+ ), R = $(() => {
11462
11462
  var A;
11463
11463
  r || (A = y.current) == null || A.click();
11464
- }, [r]), E = Y(
11464
+ }, [r]), E = $(
11465
11465
  (A) => {
11466
11466
  o == null || o(A);
11467
11467
  },
11468
11468
  [o]
11469
- ), S = Y(
11469
+ ), S = $(
11470
11470
  (A) => {
11471
11471
  A.preventDefault(), A.stopPropagation(), h.current += 1, A.dataTransfer.items && A.dataTransfer.items.length > 0 && m(!0);
11472
11472
  },
11473
11473
  []
11474
- ), F = Y((A) => {
11474
+ ), F = $((A) => {
11475
11475
  A.preventDefault(), A.stopPropagation(), h.current -= 1, h.current <= 0 && (h.current = 0, m(!1));
11476
- }, []), z = Y((A) => {
11476
+ }, []), z = $((A) => {
11477
11477
  A.preventDefault(), A.stopPropagation();
11478
- }, []), j = Y(
11478
+ }, []), j = $(
11479
11479
  (A) => {
11480
11480
  A.preventDefault(), A.stopPropagation(), h.current = 0, m(!1), I(A.dataTransfer.files);
11481
11481
  },
11482
11482
  [I]
11483
- ), H = Y(
11483
+ ), H = $(
11484
11484
  (A = {}) => {
11485
- var O, G;
11485
+ var O, W;
11486
11486
  return D(w({}, A), {
11487
11487
  role: (O = A.role) != null ? O : "button",
11488
- tabIndex: (G = A.tabIndex) != null ? G : r ? -1 : 0,
11488
+ tabIndex: (W = A.tabIndex) != null ? W : r ? -1 : 0,
11489
11489
  "aria-disabled": r || A["aria-disabled"],
11490
11490
  onClick: (V) => {
11491
- var K;
11492
- (K = A.onClick) == null || K.call(A, V), V.defaultPrevented || R();
11491
+ var Y;
11492
+ (Y = A.onClick) == null || Y.call(A, V), V.defaultPrevented || R();
11493
11493
  },
11494
11494
  onKeyDown: (V) => {
11495
- var K;
11496
- (K = A.onKeyDown) == null || K.call(A, V), !(V.defaultPrevented || r) && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), R());
11495
+ var Y;
11496
+ (Y = A.onKeyDown) == null || Y.call(A, V), !(V.defaultPrevented || r) && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), R());
11497
11497
  }
11498
11498
  });
11499
11499
  },
11500
11500
  [r, R]
11501
- ), P = Y(
11501
+ ), P = $(
11502
11502
  (A = {}) => {
11503
11503
  const O = H(A);
11504
11504
  return D(w({}, O), {
11505
- onDragEnter: (G) => {
11505
+ onDragEnter: (W) => {
11506
11506
  var V;
11507
- (V = A.onDragEnter) == null || V.call(A, G), G.defaultPrevented || S(G);
11507
+ (V = A.onDragEnter) == null || V.call(A, W), W.defaultPrevented || S(W);
11508
11508
  },
11509
- onDragLeave: (G) => {
11509
+ onDragLeave: (W) => {
11510
11510
  var V;
11511
- (V = A.onDragLeave) == null || V.call(A, G), G.defaultPrevented || F(G);
11511
+ (V = A.onDragLeave) == null || V.call(A, W), W.defaultPrevented || F(W);
11512
11512
  },
11513
- onDragOver: (G) => {
11513
+ onDragOver: (W) => {
11514
11514
  var V;
11515
- (V = A.onDragOver) == null || V.call(A, G), G.defaultPrevented || z(G);
11515
+ (V = A.onDragOver) == null || V.call(A, W), W.defaultPrevented || z(W);
11516
11516
  },
11517
- onDrop: (G) => {
11517
+ onDrop: (W) => {
11518
11518
  var V;
11519
- (V = A.onDrop) == null || V.call(A, G), G.defaultPrevented || j(G);
11519
+ (V = A.onDrop) == null || V.call(A, W), W.defaultPrevented || j(W);
11520
11520
  }
11521
11521
  });
11522
11522
  },
@@ -11548,9 +11548,9 @@ const Qn = v.forwardRef(
11548
11548
  multiple: t = !1,
11549
11549
  maxSize: r,
11550
11550
  disabled: a = !1,
11551
- direction: o = "row",
11551
+ direction: o = "col",
11552
11552
  justify: i = "center",
11553
- align: s = "start",
11553
+ align: s = "center",
11554
11554
  isShowButton: l = !1,
11555
11555
  onUpload: c,
11556
11556
  onDelete: f,
@@ -11560,24 +11560,25 @@ const Qn = v.forwardRef(
11560
11560
  isUploading: x = !1,
11561
11561
  allowUploadMore: m = !1,
11562
11562
  classNames: y,
11563
- dropzoneText: h = "Нажмите или перетащите сюда для загрузки",
11564
- buttonText: g = "Выбрать файл",
11565
- errorText: N,
11566
- name: M,
11567
- action: I,
11568
- method: k,
11569
- data: R,
11570
- headers: E,
11571
- withCredentials: S,
11572
- onChange: F,
11573
- "data-testId": z
11574
- }, j) => {
11563
+ dropzoneText: h = "Добавьте файл для загрузки",
11564
+ hint: g,
11565
+ buttonText: N = "Выбрать файл",
11566
+ errorText: M,
11567
+ name: I,
11568
+ action: k,
11569
+ method: R,
11570
+ data: E,
11571
+ headers: S,
11572
+ withCredentials: F,
11573
+ onChange: z,
11574
+ "data-testId": j
11575
+ }, H) => {
11575
11576
  const {
11576
- isDragging: H,
11577
- inputRef: P,
11578
- handleInputChange: A,
11579
- handleDeleteFile: O,
11580
- getDropzoneProps: G
11577
+ isDragging: P,
11578
+ inputRef: A,
11579
+ handleInputChange: O,
11580
+ handleDeleteFile: W,
11581
+ getDropzoneProps: V
11581
11582
  } = Jn({
11582
11583
  accept: e,
11583
11584
  multiple: t,
@@ -11586,65 +11587,84 @@ const Qn = v.forwardRef(
11586
11587
  onUpload: c,
11587
11588
  onDelete: f,
11588
11589
  onError: d,
11589
- name: M,
11590
- action: I,
11591
- method: k,
11592
- data: R,
11593
- headers: E,
11594
- withCredentials: S,
11595
- onChange: F
11596
- }), V = (K) => {
11597
- if (K === 0)
11590
+ name: I,
11591
+ action: k,
11592
+ method: R,
11593
+ data: E,
11594
+ headers: S,
11595
+ withCredentials: F,
11596
+ onChange: z
11597
+ }), Y = (G) => {
11598
+ if (G === 0)
11598
11599
  return "0 Bytes";
11599
- const W = 1024, q = ["Bytes", "KB", "MB", "GB"], re = Math.floor(Math.log(K) / Math.log(W));
11600
- return `${Math.round(K / Tr(W, re))} ${q[re]}`;
11600
+ const J = 1024, re = ["Bytes", "KB", "MB", "GB"], ne = Math.floor(Math.log(G) / Math.log(J));
11601
+ return `${Math.round(G / Tr(J, ne))} ${re[ne]}`;
11601
11602
  };
11602
11603
  return /* @__PURE__ */ C(
11603
11604
  "div",
11604
11605
  {
11605
- ref: j,
11606
- className: p("h-full w-full flex flex-col gap-2", y == null ? void 0 : y.container),
11607
- "data-testId": z,
11606
+ ref: H,
11607
+ className: p("h-full w-full flex flex-col gap-4", y == null ? void 0 : y.container),
11608
+ "data-testId": j,
11608
11609
  children: [
11609
11610
  /* @__PURE__ */ n(
11610
11611
  "input",
11611
11612
  {
11612
- ref: P,
11613
+ ref: A,
11613
11614
  type: "file",
11614
11615
  accept: e,
11615
11616
  multiple: t,
11616
- onChange: A,
11617
+ onChange: O,
11617
11618
  className: "hidden",
11618
11619
  disabled: a
11619
11620
  }
11620
11621
  ),
11621
- (u.length === 0 || m) && /* @__PURE__ */ C(
11622
- "div",
11623
- D(w({}, G({
11624
- className: p(
11625
- `flex flex-${o} w-full ${u.length === 0 ? "h-full" : "h-auto"} items-${s} justify-${i} border-border hover:border-primary gap-1.5 rounded-xl border-1 border-dashed bg-white p-3 transition-colors duration-200`,
11626
- !a && "cursor-pointer",
11627
- a && "pointer-events-none opacity-64",
11628
- H && "border-primary",
11629
- y == null ? void 0 : y.dropzone
11630
- )
11631
- })), {
11632
- children: [
11633
- /* @__PURE__ */ C("div", { className: p("flex flex-col items-center gap-2", y == null ? void 0 : y.dropzoneContainer), children: [
11634
- /* @__PURE__ */ C(_, { variant: "p2", className: p("text-secondary font-cofo text-center", y == null ? void 0 : y.dropzoneText), children: [
11635
- /* @__PURE__ */ n(U, { icon: "AttachFileIcon", size: 16, className: "text-secondary align-top" }),
11636
- " ",
11637
- h
11622
+ (u.length === 0 || m) && /* @__PURE__ */ C("div", { className: "flex flex-col gap-1.5", children: [
11623
+ /* @__PURE__ */ C(
11624
+ "div",
11625
+ D(w({}, V({
11626
+ className: p(
11627
+ `flex flex-${o} w-full ${u.length === 0 ? "h-full" : "h-auto"} items-${s} justify-${i} border-border hover:border-primary gap-2.5 rounded-xl border-1 border-dashed bg-white p-4 transition-colors duration-200`,
11628
+ !a && "cursor-pointer",
11629
+ a && "pointer-events-none opacity-64",
11630
+ P && "border-primary",
11631
+ y == null ? void 0 : y.dropzone
11632
+ )
11633
+ })), {
11634
+ children: [
11635
+ /* @__PURE__ */ C("div", { className: p("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
11636
+ /* @__PURE__ */ n(U, { icon: "UploadIcon", size: 32, className: "text-secondary" }),
11637
+ /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
11638
+ /* @__PURE__ */ n(
11639
+ _,
11640
+ {
11641
+ variant: "p3",
11642
+ weight: "medium",
11643
+ className: p("text-center", y == null ? void 0 : y.dropzoneText),
11644
+ children: h
11645
+ }
11646
+ ),
11647
+ /* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", className: "text-center", children: "или перетащите сюда" })
11648
+ ] }),
11649
+ M && /* @__PURE__ */ n(_, { variant: "p2", textColor: "destructive", className: "text-center", children: M })
11638
11650
  ] }),
11639
- N && /* @__PURE__ */ n(_, { variant: "p1", className: "text-negative font-cofo", children: N })
11640
- ] }),
11641
- l && /* @__PURE__ */ n(J, { variant: "dashed", size: "md", disabled: a, children: g })
11642
- ]
11643
- })
11644
- ),
11651
+ l && /* @__PURE__ */ n(Q, { variant: "dashed", size: "md", disabled: a, children: N })
11652
+ ]
11653
+ })
11654
+ ),
11655
+ g && /* @__PURE__ */ n(
11656
+ _,
11657
+ {
11658
+ variant: "p1",
11659
+ textColor: "secondary",
11660
+ className: p("font-cofo", y == null ? void 0 : y.hint),
11661
+ children: g
11662
+ }
11663
+ )
11664
+ ] }),
11645
11665
  x && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(ds, { value: b }) }),
11646
- u.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((K) => {
11647
- const W = K.status === "error", q = W ? "FileErrorIcon" : "FileSuccessIcon";
11666
+ u.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((G) => {
11667
+ const J = G.status === "error", re = J ? "FileErrorIcon" : "FileSuccessIcon";
11648
11668
  return /* @__PURE__ */ C(
11649
11669
  Ke,
11650
11670
  {
@@ -11660,40 +11680,40 @@ const Qn = v.forwardRef(
11660
11680
  /* @__PURE__ */ n(
11661
11681
  U,
11662
11682
  {
11663
- icon: q,
11683
+ icon: re,
11664
11684
  size: 24
11665
11685
  }
11666
11686
  ),
11667
11687
  /* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 flex-col", children: [
11668
- /* @__PURE__ */ n(_, { variant: "p2", className: "truncate", children: K.name }),
11669
- (W ? !!K.error : K.size !== void 0) && /* @__PURE__ */ n(
11688
+ /* @__PURE__ */ n(_, { variant: "p2", className: "truncate", children: G.name }),
11689
+ (J ? !!G.error : G.size !== void 0) && /* @__PURE__ */ n(
11670
11690
  _,
11671
11691
  {
11672
11692
  variant: "p2",
11673
11693
  className: p(
11674
- W ? "text-destructive" : "text-secondary"
11694
+ J ? "text-destructive" : "text-secondary"
11675
11695
  ),
11676
- children: W ? K.error : V(K.size)
11696
+ children: J ? G.error : Y(G.size)
11677
11697
  }
11678
11698
  )
11679
11699
  ] })
11680
11700
  ] }),
11681
11701
  /* @__PURE__ */ n(
11682
- J,
11702
+ Q,
11683
11703
  {
11684
11704
  variant: "text",
11685
11705
  size: "sm",
11686
11706
  iconOnly: !0,
11687
11707
  icon: "DeleteIcon",
11688
- onClick: (re) => {
11689
- re.stopPropagation(), O(K.id);
11708
+ onClick: (ne) => {
11709
+ ne.stopPropagation(), W(G.id);
11690
11710
  },
11691
- "aria-label": `Удалить ${K.name}`
11711
+ "aria-label": `Удалить ${G.name}`
11692
11712
  }
11693
11713
  )
11694
11714
  ]
11695
11715
  },
11696
- K.id
11716
+ G.id
11697
11717
  );
11698
11718
  }) })
11699
11719
  ]
@@ -11760,7 +11780,7 @@ function Xs({
11760
11780
  children: y
11761
11781
  })
11762
11782
  ) : /* @__PURE__ */ n(
11763
- J,
11783
+ Q,
11764
11784
  D(w({}, N), {
11765
11785
  className: p(h, N == null ? void 0 : N.className),
11766
11786
  disabled: o,
@@ -11790,7 +11810,7 @@ export {
11790
11810
  Ka as AvatarFallback,
11791
11811
  Ua as AvatarImage,
11792
11812
  vo as Banner,
11793
- J as Button,
11813
+ Q as Button,
11794
11814
  Be as CARD_WIDTH,
11795
11815
  io as CalendarDayCard,
11796
11816
  zl as CalendarStrip,