konsolpro-custom-ui 0.0.442 → 0.0.444

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
@@ -35,7 +35,7 @@ var E = (e, t, r) => new Promise((o, a) => {
35
35
  }, l = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(i, s);
36
36
  l((r = r.apply(e, t)).next());
37
37
  });
38
- import { jsx as n, jsxs as C, Fragment as ve } from "react/jsx-runtime";
38
+ import { jsx as n, jsxs as k, Fragment as ve } from "react/jsx-runtime";
39
39
  import * as dt from "@radix-ui/react-accordion";
40
40
  import * as ke from "react";
41
41
  import v, { lazy as ir, Suspense as sr, useMemo as ie, useState as ce, useCallback as Q, createContext as zt, useContext as Pt, useEffect as he, useRef as de, createElement as ko, useLayoutEffect as kt, forwardRef as To, useImperativeHandle as Xr, memo as Ot, useSyncExternalStore as en } from "react";
@@ -115,6 +115,9 @@ const jo = {
115
115
  DownloadIcon: _(() => E(null, null, function* () {
116
116
  return import("../chunks/download-icon-BvWPcT7W.js");
117
117
  })),
118
+ DownloadUpdatedIcon: _(() => E(null, null, function* () {
119
+ return import("../chunks/download-updated-icon-DpF2qSRS.js");
120
+ })),
118
121
  HomeIcon: _(() => E(null, null, function* () {
119
122
  return import("../chunks/home-icon-Mag5Wxqq.js");
120
123
  })),
@@ -650,7 +653,7 @@ function xd(i) {
650
653
  "visibleButton"
651
654
  ]);
652
655
  const f = r != null ? r : {}, { className: l } = f, c = V(f, ["className"]);
653
- return /* @__PURE__ */ n(dt.Header, { className: "flex w-full", children: /* @__PURE__ */ C(
656
+ return /* @__PURE__ */ n(dt.Header, { className: "flex w-full", children: /* @__PURE__ */ k(
654
657
  dt.Trigger,
655
658
  F(N({
656
659
  "data-slot": "accordion-trigger",
@@ -715,7 +718,7 @@ const Yo = ge("flex-col items-center justify-center", {
715
718
  }), _e = v.forwardRef(
716
719
  (s, i) => {
717
720
  var l = s, { size: e = 16, show: t, children: r, className: o } = l, a = V(l, ["size", "show", "children", "className"]);
718
- return /* @__PURE__ */ C("span", F(N({ ref: i, className: Yo({ show: t }) }, a), { children: [
721
+ return /* @__PURE__ */ k("span", F(N({ ref: i, className: Yo({ show: t }) }, a), { children: [
719
722
  /* @__PURE__ */ n(
720
723
  Y,
721
724
  {
@@ -866,7 +869,7 @@ const cn = ge(
866
869
  }
867
870
  }, oe = v.forwardRef(
868
871
  (I, b) => {
869
- var T = I, {
872
+ var S = I, {
870
873
  className: e,
871
874
  variant: t = "primary",
872
875
  size: r = "md",
@@ -883,7 +886,7 @@ const cn = ge(
883
886
  "data-testid": g,
884
887
  type: p,
885
888
  onClick: y
886
- } = T, h = V(T, [
889
+ } = S, h = V(S, [
887
890
  "className",
888
891
  "variant",
889
892
  "size",
@@ -902,9 +905,9 @@ const cn = ge(
902
905
  "onClick"
903
906
  ]);
904
907
  var W;
905
- const A = o ? Rt : "button", w = !!d, D = u && !w, R = u && w, S = u || w;
906
- let k;
907
- R ? k = "disabled-loading" : D ? k = "loading" : w && (k = "disabled");
908
+ const A = o ? Rt : "button", w = !!d, D = u && !w, R = u && w, C = u || w;
909
+ let T;
910
+ R ? T = "disabled-loading" : D ? T = "loading" : w && (T = "disabled");
908
911
  const z = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", L = () => /* @__PURE__ */ n(
909
912
  _e,
910
913
  {
@@ -914,7 +917,7 @@ const cn = ge(
914
917
  z()
915
918
  )
916
919
  }
917
- ), B = () => l ? u ? L() : /* @__PURE__ */ n(Y, N({ icon: l }, f)) : null, H = /* @__PURE__ */ C(ve, { children: [
920
+ ), B = () => l ? u ? L() : /* @__PURE__ */ n(Y, N({ icon: l }, f)) : null, H = /* @__PURE__ */ k(ve, { children: [
918
921
  s === "start" && B(),
919
922
  u ? /* @__PURE__ */ n("div", { className: "invisible", children: c }) : c,
920
923
  u && !l && L(),
@@ -938,13 +941,13 @@ const cn = ge(
938
941
  e
939
942
  ),
940
943
  disabled: w,
941
- "aria-disabled": S || void 0,
944
+ "aria-disabled": C || void 0,
942
945
  "aria-busy": u || void 0,
943
946
  ref: b,
944
- "data-state": k,
947
+ "data-state": T,
945
948
  type: D && !o ? "button" : p,
946
949
  onClick: (M) => {
947
- if (S) {
950
+ if (C) {
948
951
  M.preventDefault(), M.stopPropagation();
949
952
  return;
950
953
  }
@@ -1010,11 +1013,11 @@ const Or = ge("", {
1010
1013
  ]);
1011
1014
  const [u, d] = ce(!1), x = ie(() => i ? typeof i == "boolean" ? {} : i : null, [i]), g = Q(
1012
1015
  (h) => E(null, null, function* () {
1013
- var I, T, A, w, D;
1016
+ var I, S, A, w, D;
1014
1017
  if (!x)
1015
1018
  return;
1016
1019
  h.preventDefault(), h.stopPropagation(), h.nativeEvent.stopImmediatePropagation();
1017
- const b = (A = (T = x.text) != null ? T : (I = h.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? A : "";
1020
+ const b = (A = (S = x.text) != null ? S : (I = h.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? A : "";
1018
1021
  try {
1019
1022
  yield navigator.clipboard.writeText(b), (w = x.onCopy) == null || w.call(x), d(!0), setTimeout(() => d(!1), (D = x.duration) != null ? D : 1500);
1020
1023
  } catch (R) {
@@ -1025,7 +1028,7 @@ const Or = ge("", {
1025
1028
  let p = o;
1026
1029
  t && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(t) && !o && (p = "bold");
1027
1030
  const y = a;
1028
- return x ? /* @__PURE__ */ C(
1031
+ return x ? /* @__PURE__ */ k(
1029
1032
  y,
1030
1033
  F(N({
1031
1034
  ref: l,
@@ -1261,7 +1264,7 @@ function Qo({
1261
1264
  className: f,
1262
1265
  triggerClassName: u
1263
1266
  }) {
1264
- return /* @__PURE__ */ C(fn, { open: o, onOpenChange: a, children: [
1267
+ return /* @__PURE__ */ k(fn, { open: o, onOpenChange: a, children: [
1265
1268
  /* @__PURE__ */ n(mn, { asChild: !0, children: /* @__PURE__ */ n(
1266
1269
  oe,
1267
1270
  {
@@ -1351,7 +1354,7 @@ const ta = {
1351
1354
  "data-testid"
1352
1355
  ]);
1353
1356
  const p = ta[e];
1354
- return /* @__PURE__ */ C(
1357
+ return /* @__PURE__ */ k(
1355
1358
  "div",
1356
1359
  F(N({
1357
1360
  ref: d,
@@ -1365,13 +1368,13 @@ const ta = {
1365
1368
  }, u), {
1366
1369
  children: [
1367
1370
  /* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n("div", { className: m("h-full w-1 rounded-lg", p.stripe) }) }),
1368
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-1", children: [
1369
- /* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */ C("div", { className: "flex w-full flex-col md:flex-rowitems-start justify-between gap-2", children: [
1370
- /* @__PURE__ */ C("div", { className: "flex w-full flex-row items-start gap-2", children: [
1371
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-1", children: [
1372
+ /* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */ k("div", { className: "flex w-full flex-col md:flex-rowitems-start justify-between gap-2", children: [
1373
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-row items-start gap-2", children: [
1371
1374
  /* @__PURE__ */ n("div", { className: "flex h-5 w-4 items-center justify-center", children: /* @__PURE__ */ n(Y, { icon: p.iconName, className: m(p.icon) }) }),
1372
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-1", children: [
1373
- /* @__PURE__ */ C("div", { className: "flex w-full gap-2", children: [
1374
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-0.5", children: [
1375
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-1", children: [
1376
+ /* @__PURE__ */ k("div", { className: "flex w-full gap-2", children: [
1377
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-0.5", children: [
1375
1378
  /* @__PURE__ */ n(
1376
1379
  K,
1377
1380
  {
@@ -1382,7 +1385,7 @@ const ta = {
1382
1385
  ),
1383
1386
  r && /* @__PURE__ */ n(K, { variant: "p2", children: r })
1384
1387
  ] }),
1385
- (a || s) && /* @__PURE__ */ C("div", { className: "flex flex-row items-start gap-1", children: [
1388
+ (a || s) && /* @__PURE__ */ k("div", { className: "flex flex-row items-start gap-1", children: [
1386
1389
  a && /* @__PURE__ */ n("div", { className: "hidden gap-1 md:flex", children: a }),
1387
1390
  s && /* @__PURE__ */ n(
1388
1391
  oe,
@@ -1437,7 +1440,7 @@ const ct = v.forwardRef((o, r) => {
1437
1440
  ct.displayName = Ce.displayName;
1438
1441
  const na = v.forwardRef((o, r) => {
1439
1442
  var a = o, { className: e } = a, t = V(a, ["className"]);
1440
- return /* @__PURE__ */ C("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1443
+ return /* @__PURE__ */ k("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1441
1444
  /* @__PURE__ */ n(Y, { icon: "SearchIcon" }),
1442
1445
  /* @__PURE__ */ n(
1443
1446
  Ce.Input,
@@ -1565,13 +1568,13 @@ const Ae = v.forwardRef(
1565
1568
  suffix: h,
1566
1569
  showErrorMessage: b = !0,
1567
1570
  onClear: I,
1568
- showStepperButtons: T = !1,
1571
+ showStepperButtons: S = !1,
1569
1572
  onStepDown: A,
1570
1573
  onStepUp: w,
1571
1574
  onChange: D,
1572
1575
  value: R,
1573
- "data-testid": S
1574
- } = B, k = V(B, [
1576
+ "data-testid": C
1577
+ } = B, T = V(B, [
1575
1578
  "className",
1576
1579
  "type",
1577
1580
  "size",
@@ -1599,7 +1602,7 @@ const Ae = v.forwardRef(
1599
1602
  "data-testid"
1600
1603
  ]);
1601
1604
  const H = v.useRef(null), W = R != null && R.toString().length > 0, M = I && W && !d, P = W ? ia(String(R)) : null, G = Math.max(
1602
- Br(k.step),
1605
+ Br(T.step),
1603
1606
  Br(R)
1604
1607
  ), O = v.useCallback(
1605
1608
  ($) => {
@@ -1621,17 +1624,17 @@ const Ae = v.forwardRef(
1621
1624
  var ye;
1622
1625
  if (d)
1623
1626
  return;
1624
- const te = Number((ye = k.step) != null ? ye : 1);
1627
+ const te = Number((ye = T.step) != null ? ye : 1);
1625
1628
  if (!Number.isFinite(te) || te === 0)
1626
1629
  return;
1627
1630
  const j = P != null ? P : 0, J = la(
1628
1631
  j + $ * te,
1629
- k.min,
1630
- k.max
1632
+ T.min,
1633
+ T.max
1631
1634
  ), ne = sa(J, G);
1632
1635
  Z(ne);
1633
1636
  },
1634
- [G, d, P, k.max, k.min, k.step, Z]
1637
+ [G, d, P, T.max, T.min, T.step, Z]
1635
1638
  ), U = v.useCallback(() => {
1636
1639
  if (A) {
1637
1640
  A();
@@ -1645,7 +1648,7 @@ const Ae = v.forwardRef(
1645
1648
  }
1646
1649
  re(1);
1647
1650
  }, [re, w]);
1648
- return /* @__PURE__ */ C("div", { className: m(f && "w-full"), children: [
1651
+ return /* @__PURE__ */ k("div", { className: m(f && "w-full"), children: [
1649
1652
  a && /* @__PURE__ */ n(
1650
1653
  K,
1651
1654
  {
@@ -1658,7 +1661,7 @@ const Ae = v.forwardRef(
1658
1661
  children: a
1659
1662
  }
1660
1663
  ),
1661
- /* @__PURE__ */ C(
1664
+ /* @__PURE__ */ k(
1662
1665
  "div",
1663
1666
  {
1664
1667
  className: m(
@@ -1720,16 +1723,16 @@ const Ae = v.forwardRef(
1720
1723
  onChange: D,
1721
1724
  disabled: d,
1722
1725
  autoFocus: y,
1723
- "data-testid": S
1724
- }, k)
1726
+ "data-testid": C
1727
+ }, T)
1725
1728
  ),
1726
- (g || o || l || i || h || M || T) && /* @__PURE__ */ C(
1729
+ (g || o || l || i || h || M || S) && /* @__PURE__ */ k(
1727
1730
  "div",
1728
1731
  {
1729
1732
  className: m(
1730
1733
  "flex shrink-0 items-center gap-1.5",
1731
- !T && r === "md" && "pr-2.5",
1732
- !T && r === "lg" && "pr-3"
1734
+ !S && r === "md" && "pr-2.5",
1735
+ !S && r === "lg" && "pr-3"
1733
1736
  ),
1734
1737
  children: [
1735
1738
  h && /* @__PURE__ */ n("div", { className: m("font-graphik flex items-center text-[16px]", d && "text-secondary opacity-50"), children: h }),
@@ -1790,7 +1793,7 @@ const Ae = v.forwardRef(
1790
1793
  size: 16
1791
1794
  }
1792
1795
  ),
1793
- T && /* @__PURE__ */ C(
1796
+ S && /* @__PURE__ */ k(
1794
1797
  "div",
1795
1798
  {
1796
1799
  className: m("flex items-center gap-[2px]", {
@@ -2014,40 +2017,40 @@ function vd({
2014
2017
  }) {
2015
2018
  var R;
2016
2019
  const [g, p] = v.useState(!1), [y, h] = v.useState(
2017
- t && ((R = e.find((S) => S.value === t)) == null ? void 0 : R.label) || ""
2020
+ t && ((R = e.find((C) => C.value === t)) == null ? void 0 : R.label) || ""
2018
2021
  ), b = v.useRef(null), I = v.useMemo(() => e.filter(
2019
- (S) => S.label.toLowerCase().includes(y.toLowerCase())
2022
+ (C) => C.label.toLowerCase().includes(y.toLowerCase())
2020
2023
  ), [e, y]);
2021
2024
  v.useEffect(() => {
2022
2025
  if (t) {
2023
- const S = e.find((k) => k.value === t);
2024
- h((S == null ? void 0 : S.label) || "");
2026
+ const C = e.find((T) => T.value === t);
2027
+ h((C == null ? void 0 : C.label) || "");
2025
2028
  }
2026
2029
  }, [t]);
2027
- const T = v.useCallback(
2028
- (S) => {
2029
- const k = e.find((z) => z.value === S);
2030
- k && (r(k.value, k), h(k.label)), p(!1);
2030
+ const S = v.useCallback(
2031
+ (C) => {
2032
+ const T = e.find((z) => z.value === C);
2033
+ T && (r(T.value, T), h(T.label)), p(!1);
2031
2034
  },
2032
2035
  [e, r]
2033
2036
  ), A = v.useCallback(
2034
- (S) => {
2035
- h(S.target.value), a == null || a(S.target.value), p(!0);
2037
+ (C) => {
2038
+ h(C.target.value), a == null || a(C.target.value), p(!0);
2036
2039
  },
2037
2040
  []
2038
2041
  ), w = v.useCallback(() => {
2039
2042
  g ? p(!1) : (p(!0), setTimeout(() => {
2040
- var S;
2041
- (S = b.current) == null || S.focus();
2043
+ var C;
2044
+ (C = b.current) == null || C.focus();
2042
2045
  }, 0));
2043
- }, [g]), D = v.useCallback((S) => {
2044
- p(S), S && setTimeout(() => {
2045
- var k;
2046
- (k = b.current) == null || k.focus();
2046
+ }, [g]), D = v.useCallback((C) => {
2047
+ p(C), C && setTimeout(() => {
2048
+ var T;
2049
+ (T = b.current) == null || T.focus();
2047
2050
  }, 0);
2048
2051
  }, []);
2049
- return /* @__PURE__ */ n(qe, { open: g, onOpenChange: D, children: /* @__PURE__ */ C("div", { className: "relative", children: [
2050
- /* @__PURE__ */ n(Wt, { asChild: !0, children: /* @__PURE__ */ C("div", { className: "w-full", children: [
2052
+ return /* @__PURE__ */ n(qe, { open: g, onOpenChange: D, children: /* @__PURE__ */ k("div", { className: "relative", children: [
2053
+ /* @__PURE__ */ n(Wt, { asChild: !0, children: /* @__PURE__ */ k("div", { className: "w-full", children: [
2051
2054
  c && /* @__PURE__ */ n(
2052
2055
  K,
2053
2056
  {
@@ -2081,17 +2084,17 @@ function vd({
2081
2084
  {
2082
2085
  className: "w-[var(--radix-popover-trigger-width)] p-0",
2083
2086
  align: "start",
2084
- children: /* @__PURE__ */ n(ct, { shouldFilter: !1, children: /* @__PURE__ */ C(ut, { children: [
2087
+ children: /* @__PURE__ */ n(ct, { shouldFilter: !1, children: /* @__PURE__ */ k(ut, { children: [
2085
2088
  /* @__PURE__ */ n(Mt, { children: i }),
2086
- /* @__PURE__ */ n(ft, { children: I.map((S) => /* @__PURE__ */ n(
2089
+ /* @__PURE__ */ n(ft, { children: I.map((C) => /* @__PURE__ */ n(
2087
2090
  _t,
2088
2091
  {
2089
- value: S.value,
2090
- onSelect: T,
2092
+ value: C.value,
2093
+ onSelect: S,
2091
2094
  className: "flex flex-col items-start py-2",
2092
- children: d ? d(S) : /* @__PURE__ */ n("div", { children: S.label })
2095
+ children: d ? d(C) : /* @__PURE__ */ n("div", { children: C.label })
2093
2096
  },
2094
- S.value
2097
+ C.value
2095
2098
  )) })
2096
2099
  ] }) })
2097
2100
  }
@@ -2156,7 +2159,7 @@ const fa = {
2156
2159
  large: "-top-1.5 -right-0.5",
2157
2160
  extra: "-top-1 -right-1"
2158
2161
  }[r];
2159
- return /* @__PURE__ */ C(
2162
+ return /* @__PURE__ */ k(
2160
2163
  Qe.Root,
2161
2164
  F(N({
2162
2165
  ref: l,
@@ -2394,7 +2397,7 @@ const za = ({
2394
2397
  className: a
2395
2398
  }) => {
2396
2399
  const i = Re(e).getTime() === Re(/* @__PURE__ */ new Date()).getTime();
2397
- return /* @__PURE__ */ C(
2400
+ return /* @__PURE__ */ k(
2398
2401
  "button",
2399
2402
  {
2400
2403
  type: "button",
@@ -2408,7 +2411,7 @@ const za = ({
2408
2411
  ),
2409
2412
  children: [
2410
2413
  r && /* @__PURE__ */ n("div", { className: "absolute right-1 top-1", children: r(e) }),
2411
- /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center gap-0.5", children: [
2414
+ /* @__PURE__ */ k("div", { className: "flex flex-col items-center justify-center gap-0.5", children: [
2412
2415
  /* @__PURE__ */ n(K, { variant: "p3", weight: "medium", children: e.getDate() }),
2413
2416
  /* @__PURE__ */ n(K, { variant: "p1", textColor: "secondary", children: i ? "Сегодня" : yn(e) })
2414
2417
  ] })
@@ -2438,9 +2441,9 @@ const za = ({
2438
2441
  t && "border-default bg-white border-1",
2439
2442
  a
2440
2443
  ),
2441
- children: /* @__PURE__ */ C("div", { className: "flex flex-col items-start justify-start gap-2", children: [
2442
- /* @__PURE__ */ C("div", { className: "flex flex-row items-center justify-center gap-1", children: [
2443
- /* @__PURE__ */ C(K, { variant: "p3", weight: "medium", children: [
2444
+ children: /* @__PURE__ */ k("div", { className: "flex flex-col items-start justify-start gap-2", children: [
2445
+ /* @__PURE__ */ k("div", { className: "flex flex-row items-center justify-center gap-1", children: [
2446
+ /* @__PURE__ */ k(K, { variant: "p3", weight: "medium", children: [
2444
2447
  i,
2445
2448
  " ",
2446
2449
  l
@@ -2556,29 +2559,29 @@ const Id = (f) => {
2556
2559
  ]);
2557
2560
  const { days: d, selectedDate: x, setSelectedDate: g } = _a(F(N({}, c), {
2558
2561
  onChange: e
2559
- })), p = de(null), y = Q((T) => {
2562
+ })), p = de(null), y = Q((S) => {
2560
2563
  const A = p.current;
2561
2564
  if (A) {
2562
2565
  const w = Pa * Fe;
2563
- A.scrollBy({ left: T > 0 ? w : -546, behavior: "smooth" });
2566
+ A.scrollBy({ left: S > 0 ? w : -546, behavior: "smooth" });
2564
2567
  }
2565
- }, []), h = (T) => T.getTime() === x.getTime(), b = Q((T, A = !1) => {
2568
+ }, []), h = (S) => S.getTime() === x.getTime(), b = Q((S, A = !1) => {
2566
2569
  if (p.current && d.length > 0) {
2567
- const w = d.findIndex((D) => D.getTime() === Re(T).getTime());
2570
+ const w = d.findIndex((D) => D.getTime() === Re(S).getTime());
2568
2571
  if (w !== -1) {
2569
- const D = p.current.offsetWidth, S = window.innerWidth < vn ? w * Fe : w * Fe - D / 2 + Fe / 2;
2570
- A ? p.current.scrollTo({ left: Math.max(0, S), behavior: "smooth" }) : p.current.scrollLeft = Math.max(0, S);
2572
+ const D = p.current.offsetWidth, C = window.innerWidth < vn ? w * Fe : w * Fe - D / 2 + Fe / 2;
2573
+ A ? p.current.scrollTo({ left: Math.max(0, C), behavior: "smooth" }) : p.current.scrollLeft = Math.max(0, C);
2571
2574
  }
2572
2575
  }
2573
2576
  }, [d]);
2574
2577
  he(() => {
2575
2578
  if (d.length > 0) {
2576
- const T = Re(/* @__PURE__ */ new Date());
2577
- b(T);
2579
+ const S = Re(/* @__PURE__ */ new Date());
2580
+ b(S);
2578
2581
  }
2579
2582
  }, []), he(() => {
2580
2583
  if (i && d.length > 0 && p.current) {
2581
- const T = setTimeout(() => {
2584
+ const S = setTimeout(() => {
2582
2585
  var A;
2583
2586
  if (i.mode === "date")
2584
2587
  b(i.date, !0);
@@ -2597,7 +2600,7 @@ const Id = (f) => {
2597
2600
  s == null || s();
2598
2601
  }, 500);
2599
2602
  }, 50);
2600
- return () => clearTimeout(T);
2603
+ return () => clearTimeout(S);
2601
2604
  }
2602
2605
  }, [i, d, s, b]);
2603
2606
  const I = de([]);
@@ -2607,18 +2610,18 @@ const Id = (f) => {
2607
2610
  if (D > 0)
2608
2611
  p.current.scrollLeft += D * Fe;
2609
2612
  else if (D === -1) {
2610
- const R = A.getTime(), S = w.getTime();
2611
- if (S < R) {
2612
- const k = Math.round((R - S) / 864e5);
2613
- p.current.scrollLeft += k * Fe;
2613
+ const R = A.getTime(), C = w.getTime();
2614
+ if (C < R) {
2615
+ const T = Math.round((R - C) / 864e5);
2616
+ p.current.scrollLeft += T * Fe;
2614
2617
  } else {
2615
- const k = Math.round((S - R) / 864e5);
2616
- p.current.scrollLeft = Math.max(0, p.current.scrollLeft - k * Fe);
2618
+ const T = Math.round((C - R) / 864e5);
2619
+ p.current.scrollLeft = Math.max(0, p.current.scrollLeft - T * Fe);
2617
2620
  }
2618
2621
  }
2619
2622
  }
2620
2623
  I.current = [...d];
2621
- }, [d]), /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
2624
+ }, [d]), /* @__PURE__ */ k("div", { className: "flex items-center gap-2.5", children: [
2622
2625
  o && /* @__PURE__ */ n(
2623
2626
  oe,
2624
2627
  {
@@ -2639,16 +2642,16 @@ const Id = (f) => {
2639
2642
  scrollbarWidth: "none",
2640
2643
  msOverflowStyle: "none"
2641
2644
  },
2642
- children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((T) => /* @__PURE__ */ n(
2645
+ children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((S) => /* @__PURE__ */ n(
2643
2646
  za,
2644
2647
  {
2645
- date: T,
2646
- selected: h(T),
2647
- onClick: () => g(T),
2648
+ date: S,
2649
+ selected: h(S),
2650
+ onClick: () => g(S),
2648
2651
  renderBadge: r,
2649
2652
  className: t
2650
2653
  },
2651
- T.toISOString()
2654
+ S.toISOString()
2652
2655
  )) })
2653
2656
  }
2654
2657
  ),
@@ -2727,7 +2730,7 @@ const dr = v.forwardRef((l, s) => {
2727
2730
  });
2728
2731
  dr.displayName = "SelectItem";
2729
2732
  const cr = v.forwardRef(
2730
- (A, T) => {
2733
+ (A, S) => {
2731
2734
  var w = A, {
2732
2735
  className: e,
2733
2736
  children: t,
@@ -2767,7 +2770,7 @@ const cr = v.forwardRef(
2767
2770
  "onClear",
2768
2771
  "inlineSelect"
2769
2772
  ]);
2770
- const D = f || u && u.length > 0, R = v.useRef(null), [S, k] = v.useState(2);
2773
+ const D = f || u && u.length > 0, R = v.useRef(null), [C, T] = v.useState(2);
2771
2774
  return v.useLayoutEffect(() => {
2772
2775
  if (!D || !(u != null && u.length) || !R.current)
2773
2776
  return;
@@ -2785,14 +2788,14 @@ const cr = v.forwardRef(
2785
2788
  else
2786
2789
  break;
2787
2790
  }
2788
- k(Math.max(1, re));
2791
+ T(Math.max(1, re));
2789
2792
  };
2790
2793
  z();
2791
2794
  const L = new ResizeObserver(z);
2792
2795
  return L.observe(R.current), () => {
2793
2796
  L.disconnect();
2794
2797
  };
2795
- }, [u, c, a, D]), /* @__PURE__ */ C("div", { className: "w-full", children: [
2798
+ }, [u, c, a, D]), /* @__PURE__ */ k("div", { className: "w-full", children: [
2796
2799
  o && /* @__PURE__ */ n(
2797
2800
  K,
2798
2801
  {
@@ -2809,10 +2812,10 @@ const cr = v.forwardRef(
2809
2812
  "div",
2810
2813
  {
2811
2814
  className: m("relative flex items-center", s && "w-full"),
2812
- children: /* @__PURE__ */ C(
2815
+ children: /* @__PURE__ */ k(
2813
2816
  Se.Trigger,
2814
2817
  F(N({
2815
- ref: T,
2818
+ ref: S,
2816
2819
  className: m(
2817
2820
  "font-graphik group flex items-center",
2818
2821
  !l && [
@@ -2848,8 +2851,8 @@ const cr = v.forwardRef(
2848
2851
  {
2849
2852
  ref: R,
2850
2853
  className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${b ? "" : "pr-2"}`,
2851
- children: D && (u != null && u.length) ? /* @__PURE__ */ C("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
2852
- u.slice(0, S).map((z) => /* @__PURE__ */ C(
2854
+ children: D && (u != null && u.length) ? /* @__PURE__ */ k("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
2855
+ u.slice(0, C).map((z) => /* @__PURE__ */ k(
2853
2856
  "div",
2854
2857
  {
2855
2858
  className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
@@ -2885,14 +2888,14 @@ const cr = v.forwardRef(
2885
2888
  },
2886
2889
  z
2887
2890
  )),
2888
- u.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ C(K, { variant: "p2", children: [
2891
+ u.length > C && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ k(K, { variant: "p2", children: [
2889
2892
  "+",
2890
- u.length - S
2893
+ u.length - C
2891
2894
  ] }) })
2892
2895
  ] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: t })
2893
2896
  }
2894
2897
  ),
2895
- /* @__PURE__ */ C("div", { className: "flex items-center gap-1.5", children: [
2898
+ /* @__PURE__ */ k("div", { className: "flex items-center gap-1.5", children: [
2896
2899
  c && /* @__PURE__ */ n(
2897
2900
  "div",
2898
2901
  {
@@ -2997,7 +3000,7 @@ const Sd = Se.Group, Wa = v.forwardRef((i, a) => {
2997
3000
  "size",
2998
3001
  "data-testid"
2999
3002
  ]);
3000
- return /* @__PURE__ */ n(Se.Portal, { children: /* @__PURE__ */ C(
3003
+ return /* @__PURE__ */ n(Se.Portal, { children: /* @__PURE__ */ k(
3001
3004
  Se.Content,
3002
3005
  F(N({
3003
3006
  ref: c,
@@ -3153,7 +3156,7 @@ const Cd = ({
3153
3156
  const h = new Date(c.getFullYear(), c.getMonth(), 1);
3154
3157
  return Vr(h);
3155
3158
  }, [c, u]), p = (h) => {
3156
- const b = x.find((T) => T.value === h);
3159
+ const b = x.find((S) => S.value === h);
3157
3160
  if (!b)
3158
3161
  return;
3159
3162
  d(h);
@@ -3166,7 +3169,7 @@ const Cd = ({
3166
3169
  }
3167
3170
  return Qt(c);
3168
3171
  }, [o, c]);
3169
- return /* @__PURE__ */ C(Ka, { value: g, onValueChange: p, children: [
3172
+ return /* @__PURE__ */ k(Ka, { value: g, onValueChange: p, children: [
3170
3173
  /* @__PURE__ */ n(
3171
3174
  cr,
3172
3175
  {
@@ -3271,8 +3274,8 @@ const Ua = window.innerWidth < vn, $a = {
3271
3274
  e
3272
3275
  )
3273
3276
  }, c), {
3274
- children: /* @__PURE__ */ C("div", { className: "flex w-full items-start gap-3 md:justify-between", children: [
3275
- x && /* @__PURE__ */ C("div", { className: "flex-shrink-0", children: [
3277
+ children: /* @__PURE__ */ k("div", { className: "flex w-full items-start gap-3 md:justify-between", children: [
3278
+ x && /* @__PURE__ */ k("div", { className: "flex-shrink-0", children: [
3276
3279
  /* @__PURE__ */ n(
3277
3280
  "img",
3278
3281
  {
@@ -3292,8 +3295,8 @@ const Ua = window.innerWidth < vn, $a = {
3292
3295
  }
3293
3296
  )
3294
3297
  ] }),
3295
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col items-start gap-3 md:flex-row md:justify-between md:gap-1", children: [
3296
- /* @__PURE__ */ C("div", { className: "flex flex-1 flex-col gap-1", children: [
3298
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col items-start gap-3 md:flex-row md:justify-between md:gap-1", children: [
3299
+ /* @__PURE__ */ k("div", { className: "flex flex-1 flex-col gap-1", children: [
3297
3300
  /* @__PURE__ */ n(K, { variant: "p3", weight: "medium", children: r }),
3298
3301
  o
3299
3302
  ] }),
@@ -3312,7 +3315,7 @@ const Ua = window.innerWidth < vn, $a = {
3312
3315
  )
3313
3316
  ] })
3314
3317
  })
3315
- ) : /* @__PURE__ */ C(
3318
+ ) : /* @__PURE__ */ k(
3316
3319
  Ze,
3317
3320
  F(N({
3318
3321
  ref: f,
@@ -3328,8 +3331,8 @@ const Ua = window.innerWidth < vn, $a = {
3328
3331
  )
3329
3332
  }, c), {
3330
3333
  children: [
3331
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-3", children: [
3332
- /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-1", children: [
3334
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-3", children: [
3335
+ /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-1", children: [
3333
3336
  /* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between", children: /* @__PURE__ */ n(
3334
3337
  K,
3335
3338
  {
@@ -3343,7 +3346,7 @@ const Ua = window.innerWidth < vn, $a = {
3343
3346
  ] }),
3344
3347
  a && /* @__PURE__ */ n("div", { className: "z-11", children: a })
3345
3348
  ] }),
3346
- x && /* @__PURE__ */ C(ve, { children: [
3349
+ x && /* @__PURE__ */ k(ve, { children: [
3347
3350
  /* @__PURE__ */ n(
3348
3351
  "div",
3349
3352
  {
@@ -3466,43 +3469,45 @@ function Qa(e) {
3466
3469
  id: l,
3467
3470
  onCheckedChange: c,
3468
3471
  ref: f,
3469
- "data-testid": u
3470
- } = e, d = o === "md" ? 16 : 24, x = v.useId(), g = l || x, p = i || !1, [y, h] = v.useState(!1), b = s !== void 0, I = b ? s : y, T = () => I === !0 ? "checked" : I === "indeterminate" ? "indeterminate" : "unchecked", A = (D) => {
3471
- b && c ? c(D) : b || h(D);
3472
- }, w = /* @__PURE__ */ n(
3472
+ "aria-label": u,
3473
+ "data-testid": d
3474
+ } = e, x = o === "md" ? 16 : 24, g = v.useId(), p = l || g, y = i || !1, [h, b] = v.useState(!1), I = s !== void 0, S = I ? s : h, A = () => S === !0 ? "checked" : S === "indeterminate" ? "indeterminate" : "unchecked", w = (R) => {
3475
+ I && c ? c(R) : I || b(R);
3476
+ }, D = /* @__PURE__ */ n(
3473
3477
  zr.Root,
3474
3478
  {
3475
3479
  ref: f,
3476
- id: g,
3480
+ id: p,
3477
3481
  className: m(
3478
- Za({ size: o, state: T(), isDisabled: p }),
3482
+ Za({ size: o, state: A(), isDisabled: y }),
3479
3483
  r || (a ? void 0 : t)
3480
3484
  ),
3481
- disabled: p,
3482
- checked: I,
3483
- onCheckedChange: A,
3484
- "data-testid": u,
3485
- children: /* @__PURE__ */ C(zr.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
3486
- I === "indeterminate" && /* @__PURE__ */ n("div", { className: Ja({ size: o }) }),
3487
- I === !0 && /* @__PURE__ */ n(Y, { icon: "DoneIcon", size: d, className: "text-white" })
3485
+ disabled: y,
3486
+ checked: S,
3487
+ onCheckedChange: w,
3488
+ "aria-label": u,
3489
+ "data-testid": d,
3490
+ children: /* @__PURE__ */ k(zr.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
3491
+ S === "indeterminate" && /* @__PURE__ */ n("div", { className: Ja({ size: o }) }),
3492
+ S === !0 && /* @__PURE__ */ n(Y, { icon: "DoneIcon", size: x, className: "text-white" })
3488
3493
  ] })
3489
3494
  }
3490
3495
  );
3491
- return a ? /* @__PURE__ */ C("div", { className: m("items-top flex flex-row space-x-2", t), children: [
3492
- /* @__PURE__ */ n("div", { className: m(o === "md" && "pt-0.5"), children: w }),
3496
+ return a ? /* @__PURE__ */ k("div", { className: m("items-top flex flex-row space-x-2", t), children: [
3497
+ /* @__PURE__ */ n("div", { className: m(o === "md" && "pt-0.5"), children: D }),
3493
3498
  /* @__PURE__ */ n(
3494
3499
  "label",
3495
3500
  {
3496
- htmlFor: g,
3501
+ htmlFor: p,
3497
3502
  className: m(
3498
3503
  "font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
3499
- p && "cursor-not-allowed opacity-40",
3504
+ y && "cursor-not-allowed opacity-40",
3500
3505
  o === "lg" && "pt-0.5"
3501
3506
  ),
3502
3507
  children: a
3503
3508
  }
3504
3509
  )
3505
- ] }) : w;
3510
+ ] }) : D;
3506
3511
  }
3507
3512
  const fr = v.forwardRef(
3508
3513
  (e, t) => /* @__PURE__ */ n(Qa, F(N({}, e), { ref: t }))
@@ -3536,19 +3541,19 @@ const fr = v.forwardRef(
3536
3541
  return (R = b.current) == null ? void 0 : R.focus();
3537
3542
  });
3538
3543
  }, [y]);
3539
- const [I, T] = v.useState(""), A = v.useCallback((R) => {
3544
+ const [I, S] = v.useState(""), A = v.useCallback((R) => {
3540
3545
  if (typeof R == "string")
3541
3546
  return R;
3542
3547
  if (v.isValidElement(R)) {
3543
- const S = R.props;
3544
- return typeof S.children == "string" ? S.children : Array.isArray(S.children) ? S.children.map(A).join(" ") : A(S.children);
3548
+ const C = R.props;
3549
+ return typeof C.children == "string" ? C.children : Array.isArray(C.children) ? C.children.map(A).join(" ") : A(C.children);
3545
3550
  }
3546
3551
  return "";
3547
3552
  }, []), w = v.useMemo(() => I ? e.filter((R) => A(R.label).toLowerCase().includes(I.toLowerCase())) : e, [e, I, A]);
3548
- return /* @__PURE__ */ C("div", { className: "w-full", children: [
3553
+ return /* @__PURE__ */ k("div", { className: "w-full", children: [
3549
3554
  a && /* @__PURE__ */ n(K, { variant: "p3", weight: "medium", className: "mb-2.5", children: a }),
3550
- /* @__PURE__ */ C(Ie.Root, { open: y, onOpenChange: h, modal: !0, children: [
3551
- /* @__PURE__ */ n(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ C(
3555
+ /* @__PURE__ */ k(Ie.Root, { open: y, onOpenChange: h, modal: !0, children: [
3556
+ /* @__PURE__ */ n(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ k(
3552
3557
  oe,
3553
3558
  {
3554
3559
  variant: "dashed",
@@ -3591,7 +3596,7 @@ const fr = v.forwardRef(
3591
3596
  ]
3592
3597
  }
3593
3598
  ) }),
3594
- /* @__PURE__ */ C(
3599
+ /* @__PURE__ */ k(
3595
3600
  Ie.Content,
3596
3601
  {
3597
3602
  "data-testid": "dropdown",
@@ -3612,7 +3617,7 @@ const fr = v.forwardRef(
3612
3617
  {
3613
3618
  ref: b,
3614
3619
  value: I,
3615
- onChange: (R) => T(R.target.value),
3620
+ onChange: (R) => S(R.target.value),
3616
3621
  placeholder: i,
3617
3622
  size: "md",
3618
3623
  type: "border",
@@ -3623,7 +3628,7 @@ const fr = v.forwardRef(
3623
3628
  }
3624
3629
  }
3625
3630
  ),
3626
- /* @__PURE__ */ C("div", { className: "max-h-60 overflow-y-auto", children: [
3631
+ /* @__PURE__ */ k("div", { className: "max-h-60 overflow-y-auto", children: [
3627
3632
  w.length === 0 && /* @__PURE__ */ n("div", { className: "text-muted-foreground px-3 py-2 text-sm", children: g }),
3628
3633
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: w.map((R) => /* @__PURE__ */ n(
3629
3634
  "div",
@@ -3637,10 +3642,10 @@ const fr = v.forwardRef(
3637
3642
  qa[o]
3638
3643
  ),
3639
3644
  onClick: () => {
3640
- r(R.value), h(!1), T("");
3645
+ r(R.value), h(!1), S("");
3641
3646
  },
3642
- onKeyDown: (S) => {
3643
- (S.key === "Enter" || S.key === " ") && (S.preventDefault(), r(R.value), h(!1), T(""));
3647
+ onKeyDown: (C) => {
3648
+ (C.key === "Enter" || C.key === " ") && (C.preventDefault(), r(R.value), h(!1), S(""));
3644
3649
  },
3645
3650
  tabIndex: 0,
3646
3651
  role: "option",
@@ -3679,22 +3684,22 @@ function ei({
3679
3684
  onOpenChange: c
3680
3685
  }) {
3681
3686
  const f = Q((h, b) => {
3682
- const { type: I, changes: T } = b;
3687
+ const { type: I, changes: S } = b;
3683
3688
  switch (I) {
3684
3689
  case xe.stateChangeTypes.ItemClick:
3685
3690
  case xe.stateChangeTypes.InputKeyDownEnter:
3686
3691
  case xe.stateChangeTypes.InputKeyDownEscape:
3687
3692
  case xe.stateChangeTypes.InputBlur:
3688
- return F(N({}, T), {
3693
+ return F(N({}, S), {
3689
3694
  // Сохраняем inputValue из изменений, но предотвращаем вызов onInputValueChange
3690
- inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
3695
+ inputValue: S.selectedItem ? s(S.selectedItem.value) : S.inputValue || ""
3691
3696
  });
3692
3697
  case xe.stateChangeTypes.FunctionSelectItem:
3693
- return F(N({}, T), {
3694
- inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
3698
+ return F(N({}, S), {
3699
+ inputValue: S.selectedItem ? s(S.selectedItem.value) : S.inputValue || ""
3695
3700
  });
3696
3701
  default:
3697
- return T;
3702
+ return S;
3698
3703
  }
3699
3704
  }, [s]), y = xe({
3700
3705
  items: e,
@@ -3718,8 +3723,8 @@ function ei({
3718
3723
  const b = x(h);
3719
3724
  return F(N({}, b), {
3720
3725
  onBlur: (I) => {
3721
- var T;
3722
- (T = b.onBlur) == null || T.call(b, I), a == null || a(I);
3726
+ var S;
3727
+ (S = b.onBlur) == null || S.call(b, I), a == null || a(I);
3723
3728
  }
3724
3729
  });
3725
3730
  }, [x, a]);
@@ -3778,17 +3783,17 @@ function ri({
3778
3783
  onClear: b,
3779
3784
  clearable: I
3780
3785
  }) {
3781
- const T = Q(x, []), A = ie(() => r ? {
3786
+ const S = Q(x, []), A = ie(() => r ? {
3782
3787
  value: r,
3783
- label: T(r)
3784
- } : null, [r, T]), w = ei({
3788
+ label: S(r)
3789
+ } : null, [r, S]), w = ei({
3785
3790
  items: t,
3786
3791
  value: A,
3787
3792
  onChange: o,
3788
3793
  onSearch: a,
3789
3794
  onBlur: i,
3790
3795
  disabled: f,
3791
- getLabel: T,
3796
+ getLabel: S,
3792
3797
  isOpen: y,
3793
3798
  onOpenChange: h
3794
3799
  }), D = ti(w.isOpen, g, p), R = ie(() => ({
@@ -3817,7 +3822,7 @@ function ri({
3817
3822
  onBlur: i,
3818
3823
  loading: g,
3819
3824
  items: t,
3820
- getLabel: T,
3825
+ getLabel: S,
3821
3826
  onClear: b,
3822
3827
  clearable: I
3823
3828
  }), [
@@ -3831,7 +3836,7 @@ function ri({
3831
3836
  d,
3832
3837
  i,
3833
3838
  t,
3834
- T,
3839
+ S,
3835
3840
  h
3836
3841
  ]);
3837
3842
  return /* @__PURE__ */ n(In.Provider, { value: R, children: e });
@@ -3971,7 +3976,7 @@ const ni = [
3971
3976
  selectedItem: c,
3972
3977
  disabled: f
3973
3978
  } = gt();
3974
- return /* @__PURE__ */ n("div", { className: m("flex items-center gap-1.5", pi[e]), children: i ? /* @__PURE__ */ n(_e, { size: 12 }) : /* @__PURE__ */ C(ve, { children: [
3979
+ return /* @__PURE__ */ n("div", { className: m("flex items-center gap-1.5", pi[e]), children: i ? /* @__PURE__ */ n(_e, { size: 12 }) : /* @__PURE__ */ k(ve, { children: [
3975
3980
  o && /* @__PURE__ */ n(
3976
3981
  Y,
3977
3982
  {
@@ -4137,7 +4142,7 @@ function Et(s) {
4137
4142
  "viewportProps",
4138
4143
  "relative"
4139
4144
  ]);
4140
- return /* @__PURE__ */ C(
4145
+ return /* @__PURE__ */ k(
4141
4146
  lt.Root,
4142
4147
  F(N({
4143
4148
  "data-slot": "scroll-area",
@@ -4257,9 +4262,9 @@ function gi({
4257
4262
  return y;
4258
4263
  if (_r(y.type, "Item"))
4259
4264
  try {
4260
- const b = y.props, I = Xt(b.option), T = i.get(I);
4261
- if (T) {
4262
- const { item: A, index: w } = T, D = s === I;
4265
+ const b = y.props, I = Xt(b.option), S = i.get(I);
4266
+ if (S) {
4267
+ const { item: A, index: w } = S, D = s === I;
4263
4268
  return /* @__PURE__ */ n(
4264
4269
  mr,
4265
4270
  F(N({
@@ -4291,7 +4296,7 @@ function gi({
4291
4296
  relative: !1,
4292
4297
  viewPortClassName: t == null ? void 0 : t.scrollAreaViewport,
4293
4298
  viewportProps: { onScroll: x.onScroll },
4294
- children: /* @__PURE__ */ C(
4299
+ children: /* @__PURE__ */ k(
4295
4300
  "div",
4296
4301
  {
4297
4302
  className: m(
@@ -4404,7 +4409,7 @@ function bi({
4404
4409
  loading: h = !1,
4405
4410
  isOpen: b,
4406
4411
  onOpenChange: I,
4407
- showErrorMessage: T = !0,
4412
+ showErrorMessage: S = !0,
4408
4413
  clearable: A,
4409
4414
  onClear: w
4410
4415
  }) {
@@ -4429,7 +4434,7 @@ function bi({
4429
4434
  onOpenChange: I,
4430
4435
  clearable: A,
4431
4436
  onClear: w,
4432
- children: /* @__PURE__ */ C("div", { className: "w-full", children: [
4437
+ children: /* @__PURE__ */ k("div", { className: "w-full", children: [
4433
4438
  f && /* @__PURE__ */ n(
4434
4439
  K,
4435
4440
  {
@@ -4439,7 +4444,7 @@ function bi({
4439
4444
  children: f
4440
4445
  }
4441
4446
  ),
4442
- /* @__PURE__ */ C(Dn, { children: [
4447
+ /* @__PURE__ */ k(Dn, { children: [
4443
4448
  /* @__PURE__ */ n(En, { "data-testid": p }),
4444
4449
  /* @__PURE__ */ n(Cn, {})
4445
4450
  ] }),
@@ -4454,7 +4459,7 @@ function bi({
4454
4459
  }
4455
4460
  ) }),
4456
4461
  d && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
4457
- Gt(u) && T && /* @__PURE__ */ n(K, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: u })
4462
+ Gt(u) && S && /* @__PURE__ */ n(K, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: u })
4458
4463
  ] })
4459
4464
  }
4460
4465
  );
@@ -4484,24 +4489,24 @@ function xi({
4484
4489
  inputValueOnSelect: d,
4485
4490
  inputValueOnClose: x
4486
4491
  }) {
4487
- const g = de(null), p = de(!1), y = de(f != null ? f : ""), h = Q((k, z) => {
4492
+ const g = de(null), p = de(!1), y = de(f != null ? f : ""), h = Q((T, z) => {
4488
4493
  var H, W;
4489
4494
  const { type: L, changes: B } = z;
4490
4495
  switch (L) {
4491
4496
  case xe.stateChangeTypes.ItemClick:
4492
4497
  case xe.stateChangeTypes.InputKeyDownEnter:
4493
4498
  case xe.stateChangeTypes.FunctionSelectItem: {
4494
- const M = ((H = k == null ? void 0 : k.inputValue) != null ? H : "").trim().length > 0;
4499
+ const M = ((H = T == null ? void 0 : T.inputValue) != null ? H : "").trim().length > 0;
4495
4500
  return F(N({}, B), {
4496
4501
  isOpen: u ? !0 : B.isOpen,
4497
- inputValue: d === "clear" ? "" : d === "preserve" ? (k == null ? void 0 : k.inputValue) || "" : B.selectedItem ? s(B.selectedItem.value) : B.inputValue || "",
4498
- highlightedIndex: M ? 0 : (W = k == null ? void 0 : k.highlightedIndex) != null ? W : B.highlightedIndex
4502
+ inputValue: d === "clear" ? "" : d === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : B.selectedItem ? s(B.selectedItem.value) : B.inputValue || "",
4503
+ highlightedIndex: M ? 0 : (W = T == null ? void 0 : T.highlightedIndex) != null ? W : B.highlightedIndex
4499
4504
  });
4500
4505
  }
4501
4506
  case xe.stateChangeTypes.InputKeyDownEscape:
4502
4507
  case xe.stateChangeTypes.InputBlur:
4503
4508
  return F(N({}, B), {
4504
- inputValue: x === "clear" ? "" : x === "preserve" ? (k == null ? void 0 : k.inputValue) || "" : B.selectedItem ? s(B.selectedItem.value) : B.inputValue || ""
4509
+ inputValue: x === "clear" ? "" : x === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : B.selectedItem ? s(B.selectedItem.value) : B.inputValue || ""
4505
4510
  });
4506
4511
  default:
4507
4512
  return B;
@@ -4511,46 +4516,46 @@ function xi({
4511
4516
  stateReducer: h,
4512
4517
  defaultHighlightedIndex: 0,
4513
4518
  isOpen: l,
4514
- onIsOpenChange: (k) => {
4519
+ onIsOpenChange: (T) => {
4515
4520
  var z;
4516
- if (c == null || c(k.isOpen), !k.isOpen) {
4521
+ if (c == null || c(T.isOpen), !T.isOpen) {
4517
4522
  if (x === "preserve")
4518
4523
  return;
4519
4524
  (z = g.current) == null || z.call(
4520
4525
  g,
4521
- x === "clear" ? "" : k.selectedItem ? s(k.selectedItem.value) : ""
4526
+ x === "clear" ? "" : T.selectedItem ? s(T.selectedItem.value) : ""
4522
4527
  );
4523
4528
  }
4524
4529
  },
4525
- itemToString: (k) => k ? s(k == null ? void 0 : k.value) : "",
4526
- onInputValueChange: ({ inputValue: k, type: z }) => {
4527
- i || z === xe.stateChangeTypes.InputChange && (o == null || o(k != null ? k : ""));
4530
+ itemToString: (T) => T ? s(T == null ? void 0 : T.value) : "",
4531
+ onInputValueChange: ({ inputValue: T, type: z }) => {
4532
+ i || z === xe.stateChangeTypes.InputChange && (o == null || o(T != null ? T : ""));
4528
4533
  },
4529
- onSelectedItemChange: ({ selectedItem: k }) => {
4534
+ onSelectedItemChange: ({ selectedItem: T }) => {
4530
4535
  if (i)
4531
4536
  return;
4532
- const z = (k == null ? void 0 : k.value) !== void 0 && (k == null ? void 0 : k.value) !== null ? k.value : null;
4537
+ const z = (T == null ? void 0 : T.value) !== void 0 && (T == null ? void 0 : T.value) !== null ? T.value : null;
4533
4538
  r == null || r(z);
4534
4539
  }
4535
4540
  };
4536
4541
  t !== void 0 && (b.selectedItem = t), f !== void 0 && (b.inputValue = f);
4537
- const S = xe(b), {
4542
+ const C = xe(b), {
4538
4543
  selectItem: I,
4539
- setInputValue: T,
4544
+ setInputValue: S,
4540
4545
  setHighlightedIndex: A,
4541
4546
  getInputProps: w
4542
- } = S, D = V(S, [
4547
+ } = C, D = V(C, [
4543
4548
  "selectItem",
4544
4549
  "setInputValue",
4545
4550
  "setHighlightedIndex",
4546
4551
  "getInputProps"
4547
4552
  ]);
4548
- g.current = T, he(() => {
4549
- const k = !!D.isOpen, z = f != null ? f : "", L = k && !p.current, B = k && y.current.trim().length > 0 && z.trim().length === 0;
4550
- (L || B) && A(0), p.current = k, y.current = z;
4553
+ g.current = S, he(() => {
4554
+ const T = !!D.isOpen, z = f != null ? f : "", L = T && !p.current, B = T && y.current.trim().length > 0 && z.trim().length === 0;
4555
+ (L || B) && A(0), p.current = T, y.current = z;
4551
4556
  }, [D.isOpen, f, A]);
4552
- const R = Q((k) => {
4553
- const z = w(k);
4557
+ const R = Q((T) => {
4558
+ const z = w(T);
4554
4559
  return F(N({}, z), {
4555
4560
  onBlur: (L) => {
4556
4561
  var B;
@@ -4561,7 +4566,7 @@ function xi({
4561
4566
  return F(N({}, D), {
4562
4567
  selectItem: I,
4563
4568
  getInputProps: R,
4564
- setInputValue: T,
4569
+ setInputValue: S,
4565
4570
  setHighlightedIndex: A
4566
4571
  });
4567
4572
  }
@@ -4613,27 +4618,27 @@ function vi({
4613
4618
  error: h,
4614
4619
  placeholder: b = "Поиск...",
4615
4620
  getLabel: I,
4616
- getKey: T,
4621
+ getKey: S,
4617
4622
  loading: A = !1,
4618
4623
  isOpen: w,
4619
4624
  onOpenChange: D,
4620
4625
  onClear: R,
4621
- clearable: S
4626
+ clearable: C
4622
4627
  }) {
4623
- const k = Q(I, [I]), z = ie(() => {
4628
+ const T = Q(I, [I]), z = ie(() => {
4624
4629
  if (r !== void 0)
4625
4630
  return r === null ? null : {
4626
4631
  value: r,
4627
- label: k(r)
4632
+ label: T(r)
4628
4633
  };
4629
- }, [r, k]), L = xi({
4634
+ }, [r, T]), L = xi({
4630
4635
  items: t,
4631
4636
  value: z,
4632
4637
  onChange: o,
4633
4638
  onSearch: a,
4634
4639
  onBlur: i,
4635
4640
  disabled: y,
4636
- getLabel: k,
4641
+ getLabel: T,
4637
4642
  isOpen: w,
4638
4643
  onOpenChange: D,
4639
4644
  inputValue: s,
@@ -4667,10 +4672,10 @@ function vi({
4667
4672
  onBlur: i,
4668
4673
  loading: A,
4669
4674
  items: t,
4670
- getLabel: k,
4671
- getKey: T,
4675
+ getLabel: T,
4676
+ getKey: S,
4672
4677
  onClear: R,
4673
- clearable: S,
4678
+ clearable: C,
4674
4679
  isItemSelected: u,
4675
4680
  hasSelection: d
4676
4681
  }), [
@@ -4684,11 +4689,11 @@ function vi({
4684
4689
  b,
4685
4690
  i,
4686
4691
  t,
4687
- k,
4688
4692
  T,
4693
+ S,
4689
4694
  D,
4690
4695
  R,
4691
- S,
4696
+ C,
4692
4697
  u,
4693
4698
  d
4694
4699
  ]);
@@ -4704,7 +4709,7 @@ const On = () => {
4704
4709
  loading: i,
4705
4710
  disabled: s
4706
4711
  } = bt();
4707
- return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(_e, { size: 12 }) : /* @__PURE__ */ C(ve, { children: [
4712
+ return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(_e, { size: 12 }) : /* @__PURE__ */ k(ve, { children: [
4708
4713
  o && /* @__PURE__ */ n(
4709
4714
  Y,
4710
4715
  {
@@ -4785,27 +4790,27 @@ function wi({
4785
4790
  return I;
4786
4791
  if (Hr(I.type, "Item"))
4787
4792
  try {
4788
- const T = I.props, A = s(T.option), w = f.get(A);
4793
+ const S = I.props, A = s(S.option), w = f.get(A);
4789
4794
  if (w) {
4790
- const { item: D, index: R } = w, S = i ? i(D.value) : u === A, k = a({ item: D, index: R }), z = typeof T.children == "function" ? T.children(N({
4791
- isSelected: S,
4792
- className: T.className
4793
- }, k)) : T.children;
4795
+ const { item: D, index: R } = w, C = i ? i(D.value) : u === A, T = a({ item: D, index: R }), z = typeof S.children == "function" ? S.children(N({
4796
+ isSelected: C,
4797
+ className: S.className
4798
+ }, T)) : S.children;
4794
4799
  return /* @__PURE__ */ n(
4795
4800
  mr,
4796
4801
  F(N({
4797
- isSelected: S,
4798
- className: m(T.className, l, c)
4799
- }, k), {
4800
- children: /* @__PURE__ */ C("div", { className: "flex w-full items-center gap-2", children: [
4802
+ isSelected: C,
4803
+ className: m(S.className, l, c)
4804
+ }, T), {
4805
+ children: /* @__PURE__ */ k("div", { className: "flex w-full items-center gap-2", children: [
4801
4806
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: z }),
4802
- S && /* @__PURE__ */ n(Y, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
4807
+ C && /* @__PURE__ */ n(Y, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
4803
4808
  ] })
4804
4809
  }),
4805
4810
  A
4806
4811
  );
4807
4812
  }
4808
- } catch (T) {
4813
+ } catch (S) {
4809
4814
  return null;
4810
4815
  }
4811
4816
  return I;
@@ -4816,7 +4821,7 @@ function wi({
4816
4821
  relative: !1,
4817
4822
  viewPortClassName: t == null ? void 0 : t.scrollAreaViewport,
4818
4823
  viewportProps: { onScroll: y.onScroll },
4819
- children: /* @__PURE__ */ C(
4824
+ children: /* @__PURE__ */ k(
4820
4825
  "div",
4821
4826
  {
4822
4827
  className: m(
@@ -4929,12 +4934,12 @@ function Ii({
4929
4934
  D.disconnect();
4930
4935
  };
4931
4936
  }, [r, a, e]);
4932
- const I = e.slice(0, h), T = Math.max(0, e.length - h), A = x({
4937
+ const I = e.slice(0, h), S = Math.max(0, e.length - h), A = x({
4933
4938
  onKeyDown: (w) => {
4934
4939
  !u && w.key === "Backspace" && w.currentTarget.value === "" && e.length > 0 && (w.preventDefault(), t(e[e.length - 1])), i == null || i(w);
4935
4940
  }
4936
4941
  });
4937
- return /* @__PURE__ */ C(
4942
+ return /* @__PURE__ */ k(
4938
4943
  "div",
4939
4944
  {
4940
4945
  ref: y,
@@ -4944,20 +4949,20 @@ function Ii({
4944
4949
  "pr-2"
4945
4950
  ),
4946
4951
  onMouseDown: (w) => {
4947
- var S;
4952
+ var C;
4948
4953
  if (u)
4949
4954
  return;
4950
4955
  const D = w.target;
4951
- (D == null ? void 0 : D.closest('button,[role="button"]')) !== null || (w.preventDefault(), (S = p.current) == null || S.focus(), g == null || g(!0));
4956
+ (D == null ? void 0 : D.closest('button,[role="button"]')) !== null || (w.preventDefault(), (C = p.current) == null || C.focus(), g == null || g(!0));
4952
4957
  },
4953
4958
  children: [
4954
4959
  I.map((w) => {
4955
4960
  var z;
4956
4961
  const D = r(w), R = () => {
4957
4962
  u || t(w);
4958
- }, S = (L) => {
4963
+ }, C = (L) => {
4959
4964
  const B = L == null ? void 0 : L.classNames;
4960
- return /* @__PURE__ */ C(
4965
+ return /* @__PURE__ */ k(
4961
4966
  "div",
4962
4967
  {
4963
4968
  className: m(
@@ -5000,16 +5005,16 @@ function Ii({
5000
5005
  ]
5001
5006
  }
5002
5007
  );
5003
- }, k = (z = s == null ? void 0 : s({
5008
+ }, T = (z = s == null ? void 0 : s({
5004
5009
  option: w,
5005
5010
  label: D,
5006
5011
  disabled: u,
5007
5012
  remove: R,
5008
- renderDefaultTag: S
5009
- })) != null ? z : S();
5010
- return /* @__PURE__ */ n(v.Fragment, { children: k }, o(w));
5013
+ renderDefaultTag: C
5014
+ })) != null ? z : C();
5015
+ return /* @__PURE__ */ n(v.Fragment, { children: T }, o(w));
5011
5016
  }),
5012
- T > 0 && /* @__PURE__ */ n(
5017
+ S > 0 && /* @__PURE__ */ n(
5013
5018
  "div",
5014
5019
  {
5015
5020
  className: m(
@@ -5027,9 +5032,9 @@ function Ii({
5027
5032
  var D;
5028
5033
  u || (w.preventDefault(), w.stopPropagation(), (D = p.current) == null || D.focus(), g == null || g(!0));
5029
5034
  },
5030
- children: /* @__PURE__ */ C(K, { variant: "p2", children: [
5035
+ children: /* @__PURE__ */ k(K, { variant: "p2", children: [
5031
5036
  "+",
5032
- T
5037
+ S
5033
5038
  ] })
5034
5039
  }
5035
5040
  ),
@@ -5074,13 +5079,13 @@ function Si({
5074
5079
  getKey: h = Ni,
5075
5080
  loading: b = !1,
5076
5081
  onInputKeyDown: I,
5077
- isOpen: T,
5082
+ isOpen: S,
5078
5083
  onOpenChange: A,
5079
5084
  showErrorMessage: w = !0,
5080
5085
  clearable: D = !0,
5081
5086
  onClear: R,
5082
- maxTags: S = 4,
5083
- renderSelectedTag: k
5087
+ maxTags: C = 4,
5088
+ renderSelectedTag: T
5084
5089
  }) {
5085
5090
  const { items: z } = Ln(e, y), L = ie(() => t || [], [t]), B = ie(() => new Set(L.map(h)), [L, h]), [H, W] = ce(""), M = Q(() => {
5086
5091
  W(""), o == null || o("");
@@ -5116,7 +5121,7 @@ function Si({
5116
5121
  error: u,
5117
5122
  placeholder: x,
5118
5123
  loading: b,
5119
- isOpen: T,
5124
+ isOpen: S,
5120
5125
  onOpenChange: Z,
5121
5126
  clearable: D,
5122
5127
  onClear: O,
@@ -5125,7 +5130,7 @@ function Si({
5125
5130
  inputValueOnClose: "preserve",
5126
5131
  isItemSelected: (U) => B.has(h(U)),
5127
5132
  hasSelection: L.length > 0,
5128
- children: /* @__PURE__ */ C("div", { className: "w-full", children: [
5133
+ children: /* @__PURE__ */ k("div", { className: "w-full", children: [
5129
5134
  f && /* @__PURE__ */ n(
5130
5135
  K,
5131
5136
  {
@@ -5135,7 +5140,7 @@ function Si({
5135
5140
  children: f
5136
5141
  }
5137
5142
  ),
5138
- /* @__PURE__ */ C(Bn, { children: [
5143
+ /* @__PURE__ */ k(Bn, { children: [
5139
5144
  /* @__PURE__ */ n(
5140
5145
  Ii,
5141
5146
  {
@@ -5143,9 +5148,9 @@ function Si({
5143
5148
  onRemove: G,
5144
5149
  getLabel: y,
5145
5150
  getKey: h,
5146
- maxTags: S,
5151
+ maxTags: C,
5147
5152
  onInputKeyDown: I,
5148
- renderSelectedTag: k,
5153
+ renderSelectedTag: T,
5149
5154
  "data-testid": p
5150
5155
  }
5151
5156
  ),
@@ -5178,7 +5183,7 @@ const Ci = {
5178
5183
  inactiveClassName: "bg-default opacity-40"
5179
5184
  };
5180
5185
  function Hn(e) {
5181
- const T = e || {}, { indicators: t, defaultActive: r = 0 } = T, o = V(T, ["indicators", "defaultActive"]), a = N({
5186
+ const S = e || {}, { indicators: t, defaultActive: r = 0 } = S, o = V(S, ["indicators", "defaultActive"]), a = N({
5182
5187
  align: "start",
5183
5188
  loop: !1,
5184
5189
  slidesToScroll: 1,
@@ -5244,7 +5249,7 @@ function Ri({
5244
5249
  textClassName: o
5245
5250
  }) {
5246
5251
  const { active: a } = Kt(), i = e[a] || {};
5247
- return /* @__PURE__ */ C("div", { className: m(t), children: [
5252
+ return /* @__PURE__ */ k("div", { className: m(t), children: [
5248
5253
  i.title && /* @__PURE__ */ n("div", { className: m(r), children: i.title }),
5249
5254
  i.text && /* @__PURE__ */ n("div", { className: m(o), children: i.text })
5250
5255
  ] });
@@ -5255,7 +5260,7 @@ function Mi({
5255
5260
  titleClassName: r,
5256
5261
  textClassName: o
5257
5262
  }) {
5258
- return /* @__PURE__ */ C("div", { className: m(t), children: [
5263
+ return /* @__PURE__ */ k("div", { className: m(t), children: [
5259
5264
  e.title && /* @__PURE__ */ n("div", { className: m(r), children: e.title }),
5260
5265
  e.text && /* @__PURE__ */ n("div", { className: m(o), children: e.text })
5261
5266
  ] });
@@ -5328,7 +5333,7 @@ function Di({
5328
5333
  children: t
5329
5334
  }
5330
5335
  );
5331
- return /* @__PURE__ */ C(
5336
+ return /* @__PURE__ */ k(
5332
5337
  "div",
5333
5338
  {
5334
5339
  className: m(
@@ -5381,7 +5386,7 @@ function Ei({
5381
5386
  children: i
5382
5387
  }
5383
5388
  );
5384
- return /* @__PURE__ */ C(
5389
+ return /* @__PURE__ */ k(
5385
5390
  "div",
5386
5391
  {
5387
5392
  className: m(
@@ -5529,8 +5534,8 @@ function Md(x) {
5529
5534
  "hideDisabledButtons"
5530
5535
  ]);
5531
5536
  const p = !!(i || s);
5532
- return /* @__PURE__ */ C(Ct.Root, { options: r, className: m("group", o), children: [
5533
- /* @__PURE__ */ C("div", { className: "relative", children: [
5537
+ return /* @__PURE__ */ k(Ct.Root, { options: r, className: m("group", o), children: [
5538
+ /* @__PURE__ */ k("div", { className: "relative", children: [
5534
5539
  /* @__PURE__ */ n(
5535
5540
  Ct.Items,
5536
5541
  N({
@@ -5561,7 +5566,7 @@ function Dd({
5561
5566
  className: a
5562
5567
  }) {
5563
5568
  const i = Hn(t);
5564
- return /* @__PURE__ */ C("div", { className: m("relative w-full", a), children: [
5569
+ return /* @__PURE__ */ k("div", { className: m("relative w-full", a), children: [
5565
5570
  r(i, e),
5566
5571
  o && o(i, e)
5567
5572
  ] });
@@ -5654,7 +5659,7 @@ function Un(s) {
5654
5659
  IconRight: () => /* @__PURE__ */ n(Y, { icon: "ArrowRightIcon" }),
5655
5660
  CaptionLabel: ({ displayMonth: c }) => {
5656
5661
  const f = a ? Pe(c, "MMM", { locale: a }) : c.toLocaleString("ru-RU", { month: "long" }).slice(0, 3), u = c.getFullYear();
5657
- return /* @__PURE__ */ C(K, { variant: "p2", weight: "medium", className: "font-graphik", children: [
5662
+ return /* @__PURE__ */ k(K, { variant: "p2", weight: "medium", className: "font-graphik", children: [
5658
5663
  f,
5659
5664
  " ",
5660
5665
  u
@@ -5961,7 +5966,7 @@ function Ad() {
5961
5966
  }
5962
5967
  function Ji(e) {
5963
5968
  var D;
5964
- const [t, r] = v.useState(null), [o, a] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, c] = v.useState(!1), [f, u] = v.useState(e.hideFooter), [d, x] = v.useState(!1), [g, p] = v.useState(e.width), y = v.useContext(wt), h = (D = y == null ? void 0 : y.nextBaseZIndex) != null ? D : e.baseZIndex, b = h + 1, I = h + 2, T = h + 3, A = v.useMemo(() => !l && i ? "top" : "none", [l, i]), w = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
5969
+ const [t, r] = v.useState(null), [o, a] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, c] = v.useState(!1), [f, u] = v.useState(e.hideFooter), [d, x] = v.useState(!1), [g, p] = v.useState(e.width), y = v.useContext(wt), h = (D = y == null ? void 0 : y.nextBaseZIndex) != null ? D : e.baseZIndex, b = h + 1, I = h + 2, S = h + 3, A = v.useMemo(() => !l && i ? "top" : "none", [l, i]), w = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
5965
5970
  return v.useEffect(() => {
5966
5971
  p(e.width);
5967
5972
  }, [e.width]), v.useEffect(() => {
@@ -5972,12 +5977,12 @@ function Ji(e) {
5972
5977
  c(t.scrollTop > 0);
5973
5978
  };
5974
5979
  t.addEventListener("scroll", R);
5975
- const S = new ResizeObserver(() => {
5976
- const k = t.scrollHeight > t.clientHeight;
5977
- s(k);
5980
+ const C = new ResizeObserver(() => {
5981
+ const T = t.scrollHeight > t.clientHeight;
5982
+ s(T);
5978
5983
  });
5979
- return S.observe(t), () => {
5980
- t.removeEventListener("scroll", R), S.disconnect();
5984
+ return C.observe(t), () => {
5985
+ t.removeEventListener("scroll", R), C.disconnect();
5981
5986
  };
5982
5987
  }
5983
5988
  }, [t]), {
@@ -6000,7 +6005,7 @@ function Ji(e) {
6000
6005
  baseZIndex: h,
6001
6006
  overlayZIndex: b,
6002
6007
  containerZIndex: I,
6003
- nextBaseZIndex: T
6008
+ nextBaseZIndex: S
6004
6009
  };
6005
6010
  }
6006
6011
  const Qi = {
@@ -6062,7 +6067,7 @@ function es(s) {
6062
6067
  const { TopHeaderTeleporter: c, setHasTopHeader: f } = jt(), u = v.useContext(wt);
6063
6068
  return v.useEffect(() => (f(!0), () => {
6064
6069
  f(!1);
6065
- }), [f]), /* @__PURE__ */ n(c.Source, { children: /* @__PURE__ */ C(
6070
+ }), [f]), /* @__PURE__ */ n(c.Source, { children: /* @__PURE__ */ k(
6066
6071
  "div",
6067
6072
  F(N({}, i), {
6068
6073
  "data-testid": o,
@@ -6073,7 +6078,7 @@ function es(s) {
6073
6078
  e
6074
6079
  ),
6075
6080
  children: [
6076
- /* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-2.5", children: [
6081
+ /* @__PURE__ */ k("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-2.5", children: [
6077
6082
  t && /* @__PURE__ */ n(K, { as: "p", variant: "p1", weight: "normal", children: t }),
6078
6083
  r && /* @__PURE__ */ n(K, { as: "div", variant: "h1", children: r })
6079
6084
  ] }),
@@ -6090,7 +6095,7 @@ function es(s) {
6090
6095
  }
6091
6096
  function ts(e) {
6092
6097
  const { ContentTeleporter: t } = jt(), r = v.useContext(wt), o = r == null ? void 0 : r.statusImage;
6093
- return o ? /* @__PURE__ */ C(t.Source, { children: [
6098
+ return o ? /* @__PURE__ */ k(t.Source, { children: [
6094
6099
  /* @__PURE__ */ n(
6095
6100
  pe.Close,
6096
6101
  {
@@ -6155,11 +6160,11 @@ function pe(p) {
6155
6160
  TopHeaderTeleporter: It()
6156
6161
  }),
6157
6162
  []
6158
- ), I = b.TitleTeleporter.useTargetRef(), T = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, R] = v.useState(!1), S = D ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6163
+ ), I = b.TitleTeleporter.useTargetRef(), S = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, R] = v.useState(!1), C = D ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6159
6164
  Je,
6160
6165
  {
6161
- ref: (k) => {
6162
- h.setContentElement(k), A(k);
6166
+ ref: (T) => {
6167
+ h.setContentElement(T), A(T);
6163
6168
  },
6164
6169
  className: m(
6165
6170
  "min-h-0 rounded-t-[10px] bg-white px-4 pt-4 md:pt-6 md:px-6",
@@ -6169,8 +6174,8 @@ function pe(p) {
6169
6174
  ) }) : /* @__PURE__ */ n(
6170
6175
  Je,
6171
6176
  {
6172
- ref: (k) => {
6173
- h.setContentElement(k), A(k);
6177
+ ref: (T) => {
6178
+ h.setContentElement(T), A(T);
6174
6179
  },
6175
6180
  className: m(e == null ? void 0 : e.content)
6176
6181
  }
@@ -6181,16 +6186,16 @@ function pe(p) {
6181
6186
  value: F(N({}, b), {
6182
6187
  setHasTopHeader: R
6183
6188
  }),
6184
- children: /* @__PURE__ */ C(wt.Provider, { value: h, children: [
6189
+ children: /* @__PURE__ */ k(wt.Provider, { value: h, children: [
6185
6190
  r && /* @__PURE__ */ n(et, { children: r }),
6186
- /* @__PURE__ */ C(yt, { children: [
6191
+ /* @__PURE__ */ k(yt, { children: [
6187
6192
  i && /* @__PURE__ */ n(
6188
6193
  tt,
6189
6194
  {
6190
6195
  style: { zIndex: h.overlayZIndex }
6191
6196
  }
6192
6197
  ),
6193
- /* @__PURE__ */ C(
6198
+ /* @__PURE__ */ k(
6194
6199
  rt,
6195
6200
  {
6196
6201
  style: { zIndex: h.containerZIndex },
@@ -6203,7 +6208,7 @@ function pe(p) {
6203
6208
  padding: d ? "none" : "md",
6204
6209
  children: [
6205
6210
  /* @__PURE__ */ n("div", { ref: w }),
6206
- !d && !D && /* @__PURE__ */ C(
6211
+ !d && !D && /* @__PURE__ */ k(
6207
6212
  Yn,
6208
6213
  {
6209
6214
  shadow: h.shadowHeader,
@@ -6225,12 +6230,12 @@ function pe(p) {
6225
6230
  ]
6226
6231
  }
6227
6232
  ),
6228
- S,
6233
+ C,
6229
6234
  !h.isHideFooter && /* @__PURE__ */ n(
6230
6235
  br,
6231
6236
  {
6232
6237
  shadow: h.shadowFooter,
6233
- ref: T,
6238
+ ref: S,
6234
6239
  className: m(
6235
6240
  d && "mx-0 pb-4 md:pb-6 md:px-12",
6236
6241
  e == null ? void 0 : e.footer
@@ -6326,7 +6331,7 @@ function Fd({
6326
6331
  disabledDays: d,
6327
6332
  "data-testid": x
6328
6333
  }) {
6329
- const [g, p] = v.useState(e), [y, h] = v.useState(we(e)), b = Ut(), [I, T] = v.useState(!1), A = v.useRef(null), w = s != null, D = i === "custom" ? "md" : i;
6334
+ const [g, p] = v.useState(e), [y, h] = v.useState(we(e)), b = Ut(), [I, S] = v.useState(!1), A = v.useRef(null), w = s != null, D = i === "custom" ? "md" : i;
6330
6335
  v.useEffect(() => {
6331
6336
  p(e), h(we(e));
6332
6337
  }, [e]);
@@ -6335,9 +6340,9 @@ function Fd({
6335
6340
  p(P), h(we(P)), t == null || t(P);
6336
6341
  },
6337
6342
  [t]
6338
- ), S = (P) => {
6339
- P && (R(P), b === "mobile" && T(!1));
6340
- }, k = () => {
6343
+ ), C = (P) => {
6344
+ P && (R(P), b === "mobile" && S(!1));
6345
+ }, T = () => {
6341
6346
  R(void 0), u == null || u();
6342
6347
  }, z = (P) => {
6343
6348
  const G = P.target.value;
@@ -6351,7 +6356,7 @@ function Fd({
6351
6356
  const P = At(y);
6352
6357
  y && (!P || mt(P, d)) && h(we(g));
6353
6358
  }, B = () => {
6354
- r || T(!0);
6359
+ r || S(!0);
6355
6360
  }, H = (P) => {
6356
6361
  var O;
6357
6362
  const G = P.target;
@@ -6406,13 +6411,13 @@ function Fd({
6406
6411
  {
6407
6412
  mode: "single",
6408
6413
  selected: g,
6409
- onSelect: S,
6414
+ onSelect: C,
6410
6415
  locale: Me,
6411
6416
  className: "font-graphik",
6412
6417
  disabled: d
6413
6418
  }
6414
6419
  );
6415
- return /* @__PURE__ */ C("div", { className: a, children: [
6420
+ return /* @__PURE__ */ k("div", { className: a, children: [
6416
6421
  c && /* @__PURE__ */ n(
6417
6422
  K,
6418
6423
  {
@@ -6425,11 +6430,11 @@ function Fd({
6425
6430
  children: c
6426
6431
  }
6427
6432
  ),
6428
- b === "mobile" ? /* @__PURE__ */ C(
6433
+ b === "mobile" ? /* @__PURE__ */ k(
6429
6434
  pe,
6430
6435
  {
6431
6436
  open: I,
6432
- onOpenChange: r ? void 0 : T,
6437
+ onOpenChange: r ? void 0 : S,
6433
6438
  width: "md",
6434
6439
  hideFooter: !f,
6435
6440
  trigger: /* @__PURE__ */ n(
@@ -6448,7 +6453,7 @@ function Fd({
6448
6453
  w && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
6449
6454
  ),
6450
6455
  "data-testid": "date-picker-trigger",
6451
- children: /* @__PURE__ */ C("div", { className: "flex w-full items-center", "data-testid": x, children: [
6456
+ children: /* @__PURE__ */ k("div", { className: "flex w-full items-center", "data-testid": x, children: [
6452
6457
  /* @__PURE__ */ n(
6453
6458
  "div",
6454
6459
  {
@@ -6461,7 +6466,7 @@ function Fd({
6461
6466
  children: g ? we(g) : o
6462
6467
  }
6463
6468
  ),
6464
- /* @__PURE__ */ C("div", { className: "flex items-center gap-1.5", children: [
6469
+ /* @__PURE__ */ k("div", { className: "flex items-center gap-1.5", children: [
6465
6470
  /* @__PURE__ */ n(
6466
6471
  Y,
6467
6472
  {
@@ -6500,7 +6505,7 @@ function Fd({
6500
6505
  f && /* @__PURE__ */ n(pe.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
6501
6506
  oe,
6502
6507
  {
6503
- onClick: k,
6508
+ onClick: T,
6504
6509
  variant: "text",
6505
6510
  disabled: !g,
6506
6511
  className: "w-full",
@@ -6509,14 +6514,14 @@ function Fd({
6509
6514
  ) }) })
6510
6515
  ]
6511
6516
  }
6512
- ) : /* @__PURE__ */ C(
6517
+ ) : /* @__PURE__ */ k(
6513
6518
  qe,
6514
6519
  {
6515
6520
  open: I,
6516
- onOpenChange: r ? void 0 : T,
6521
+ onOpenChange: r ? void 0 : S,
6517
6522
  children: [
6518
6523
  /* @__PURE__ */ n("div", { ref: A, children: /* @__PURE__ */ n(xn, { className: "block", children: W() }) }),
6519
- /* @__PURE__ */ C(
6524
+ /* @__PURE__ */ k(
6520
6525
  We,
6521
6526
  {
6522
6527
  className: "w-auto rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
@@ -6529,7 +6534,7 @@ function Fd({
6529
6534
  f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
6530
6535
  oe,
6531
6536
  {
6532
- onClick: k,
6537
+ onClick: T,
6533
6538
  variant: "text",
6534
6539
  size: "sm",
6535
6540
  className: "w-full",
@@ -6722,11 +6727,11 @@ function Ld(y) {
6722
6727
  var Te;
6723
6728
  const [b, I] = v.useState(
6724
6729
  er(t)
6725
- ), [T, A] = v.useState(
6730
+ ), [S, A] = v.useState(
6726
6731
  we(Ft(t == null ? void 0 : t.from))
6727
6732
  ), [w, D] = v.useState(
6728
6733
  we(Ft(t == null ? void 0 : t.to))
6729
- ), [R, S] = v.useState(!1), k = v.useRef(null), z = Ut(), L = ns[r], B = ps(r), H = c === "custom" ? "md" : c, W = {
6734
+ ), [R, C] = v.useState(!1), T = v.useRef(null), z = Ut(), L = ns[r], B = ps(r), H = c === "custom" ? "md" : c, W = {
6730
6735
  from: (a == null ? void 0 : a.from) || L.placeholder,
6731
6736
  to: (a == null ? void 0 : a.to) || L.placeholder
6732
6737
  }, M = v.useMemo(() => {
@@ -6749,7 +6754,7 @@ function Ld(y) {
6749
6754
  },
6750
6755
  [o]
6751
6756
  ), U = (q) => {
6752
- re(q), q != null && q.from && (q != null && q.to) && z === "mobile" && S(!1);
6757
+ re(q), q != null && q.from && (q != null && q.to) && z === "mobile" && C(!1);
6753
6758
  }, X = () => {
6754
6759
  re(void 0), d == null || d();
6755
6760
  }, $ = (q, se) => {
@@ -6767,15 +6772,15 @@ function Ld(y) {
6767
6772
  to: q === "to" ? Oe : b == null ? void 0 : b.to
6768
6773
  });
6769
6774
  }, te = (q) => {
6770
- const se = q === "from" ? T : w, Ne = At(se);
6775
+ const se = q === "from" ? S : w, Ne = At(se);
6771
6776
  se && (!Ne || mt(Ne, x)) && (q === "from" ? A(we(b == null ? void 0 : b.from)) : D(we(b == null ? void 0 : b.to)));
6772
6777
  }, j = () => {
6773
- f || S(!0);
6778
+ f || C(!0);
6774
6779
  }, J = (q) => {
6775
6780
  var Ne;
6776
6781
  const se = q.target;
6777
- se instanceof Node && ((Ne = k.current) != null && Ne.contains(se)) && q.preventDefault();
6778
- }, ne = (q) => g ? `${g}-${q}` : void 0, ye = (q) => /* @__PURE__ */ C(
6782
+ se instanceof Node && ((Ne = T.current) != null && Ne.contains(se)) && q.preventDefault();
6783
+ }, ne = (q) => g ? `${g}-${q}` : void 0, ye = (q) => /* @__PURE__ */ k(
6779
6784
  "div",
6780
6785
  {
6781
6786
  className: m(
@@ -6791,12 +6796,12 @@ function Ld(y) {
6791
6796
  "data-testid": g,
6792
6797
  onClick: j,
6793
6798
  children: [
6794
- /* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 items-center", children: [
6799
+ /* @__PURE__ */ k("div", { className: "flex min-w-0 flex-1 items-center", children: [
6795
6800
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", "data-testid": "date-range-start", children: /* @__PURE__ */ n(
6796
6801
  pt,
6797
6802
  {
6798
6803
  mask: or,
6799
- value: T,
6804
+ value: S,
6800
6805
  onChange: (se) => $("from", se),
6801
6806
  onBlur: () => te("from"),
6802
6807
  onFocus: j,
@@ -6849,7 +6854,7 @@ function Ld(y) {
6849
6854
  }
6850
6855
  ) })
6851
6856
  ] }),
6852
- /* @__PURE__ */ C("div", { className: m("flex shrink-0 items-center gap-1.5", c === "md" ? "pr-2.5" : "pr-3"), children: [
6857
+ /* @__PURE__ */ k("div", { className: m("flex shrink-0 items-center gap-1.5", c === "md" ? "pr-2.5" : "pr-3"), children: [
6853
6858
  /* @__PURE__ */ n(
6854
6859
  oe,
6855
6860
  {
@@ -6893,7 +6898,7 @@ function Ld(y) {
6893
6898
  disabled: x
6894
6899
  }
6895
6900
  );
6896
- return /* @__PURE__ */ C("div", F(N({ className: e }, p), { children: [
6901
+ return /* @__PURE__ */ k("div", F(N({ className: e }, p), { children: [
6897
6902
  l && /* @__PURE__ */ n(
6898
6903
  K,
6899
6904
  {
@@ -6906,11 +6911,11 @@ function Ld(y) {
6906
6911
  children: l
6907
6912
  }
6908
6913
  ),
6909
- z === "mobile" ? /* @__PURE__ */ C(
6914
+ z === "mobile" ? /* @__PURE__ */ k(
6910
6915
  pe,
6911
6916
  {
6912
6917
  open: R,
6913
- onOpenChange: f ? void 0 : S,
6918
+ onOpenChange: f ? void 0 : C,
6914
6919
  width: "md",
6915
6920
  trigger: /* @__PURE__ */ n(
6916
6921
  oe,
@@ -6927,8 +6932,8 @@ function Ld(y) {
6927
6932
  P() && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
6928
6933
  ),
6929
6934
  "data-testid": g,
6930
- children: /* @__PURE__ */ C("div", { className: "flex w-full items-center", children: [
6931
- /* @__PURE__ */ C(
6935
+ children: /* @__PURE__ */ k("div", { className: "flex w-full items-center", children: [
6936
+ /* @__PURE__ */ k(
6932
6937
  "div",
6933
6938
  {
6934
6939
  className: m(
@@ -6963,7 +6968,7 @@ function Ld(y) {
6963
6968
  ]
6964
6969
  }
6965
6970
  ),
6966
- /* @__PURE__ */ C("div", { className: "ml-2 flex items-center gap-1.5", children: [
6971
+ /* @__PURE__ */ k("div", { className: "ml-2 flex items-center gap-1.5", children: [
6967
6972
  /* @__PURE__ */ n(
6968
6973
  Y,
6969
6974
  {
@@ -7012,9 +7017,9 @@ function Ld(y) {
7012
7017
  ) }) })
7013
7018
  ]
7014
7019
  }
7015
- ) : /* @__PURE__ */ C(qe, { open: R, onOpenChange: S, children: [
7016
- /* @__PURE__ */ n("div", { ref: k, children: /* @__PURE__ */ n(xn, { className: "block", children: ye() }) }),
7017
- /* @__PURE__ */ C(
7020
+ ) : /* @__PURE__ */ k(qe, { open: R, onOpenChange: C, children: [
7021
+ /* @__PURE__ */ n("div", { ref: T, children: /* @__PURE__ */ n(xn, { className: "block", children: ye() }) }),
7022
+ /* @__PURE__ */ k(
7018
7023
  We,
7019
7024
  {
7020
7025
  className: "w-screen rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] sm:w-auto",
@@ -7309,8 +7314,8 @@ function Ns({
7309
7314
  baseZIndex: y = 50,
7310
7315
  width: h
7311
7316
  }) {
7312
- const [b, I] = v.useState(null), { headerShadow: T, footerShadow: A } = vs(b);
7313
- return /* @__PURE__ */ C(
7317
+ const [b, I] = v.useState(null), { headerShadow: S, footerShadow: A } = vs(b);
7318
+ return /* @__PURE__ */ k(
7314
7319
  le.Root,
7315
7320
  {
7316
7321
  open: e,
@@ -7318,7 +7323,7 @@ function Ns({
7318
7323
  onOpenChange: r,
7319
7324
  children: [
7320
7325
  o && /* @__PURE__ */ n(Jn, { asChild: !0, children: o }),
7321
- /* @__PURE__ */ C(le.Portal, { children: [
7326
+ /* @__PURE__ */ k(le.Portal, { children: [
7322
7327
  f && /* @__PURE__ */ n(
7323
7328
  Qn,
7324
7329
  {
@@ -7326,7 +7331,7 @@ function Ns({
7326
7331
  className: g == null ? void 0 : g.overlay
7327
7332
  }
7328
7333
  ),
7329
- /* @__PURE__ */ C(
7334
+ /* @__PURE__ */ k(
7330
7335
  qn,
7331
7336
  {
7332
7337
  side: a,
@@ -7337,10 +7342,10 @@ function Ns({
7337
7342
  style: { zIndex: y + 2 },
7338
7343
  className: m(x, g == null ? void 0 : g.content),
7339
7344
  children: [
7340
- (i || c) && /* @__PURE__ */ C(
7345
+ (i || c) && /* @__PURE__ */ k(
7341
7346
  Xn,
7342
7347
  {
7343
- shadow: T,
7348
+ shadow: S,
7344
7349
  className: g == null ? void 0 : g.header,
7345
7350
  children: [
7346
7351
  i && /* @__PURE__ */ n(eo, { className: m("min-w-0 flex-1", g == null ? void 0 : g.title), children: i }),
@@ -7403,33 +7408,33 @@ const oo = v.forwardRef(
7403
7408
  "onClear"
7404
7409
  ]);
7405
7410
  const [h, b] = ce(() => e == null || e === "" ? "" : String(e)), I = Q(
7406
- (S) => o === "comma" ? S.replace(/\./g, ",") : S.replace(/,/g, "."),
7411
+ (C) => o === "comma" ? C.replace(/\./g, ",") : C.replace(/,/g, "."),
7407
7412
  [o]
7408
- ), T = Q(
7409
- (S) => {
7410
- if (S === "" && c)
7413
+ ), S = Q(
7414
+ (C) => {
7415
+ if (C === "" && c)
7411
7416
  return "";
7412
- let k = S.replace(/[^\d.,\-]/g, "");
7413
- if (l ? (k.match(/-/g) || []).length > 1 && (k = k.replace(/-/g, ""), S.startsWith("-") && (k = `-${k}`)) : k = k.replace(/-/g, ""), k = I(k), (k.match(/[.,]/g) || []).length > 1) {
7414
- const L = k.search(/[.,]/);
7415
- k = k.substring(0, L + 1) + k.substring(L + 1).replace(/[.,]/g, "");
7417
+ let T = C.replace(/[^\d.,\-]/g, "");
7418
+ if (l ? (T.match(/-/g) || []).length > 1 && (T = T.replace(/-/g, ""), C.startsWith("-") && (T = `-${T}`)) : T = T.replace(/-/g, ""), T = I(T), (T.match(/[.,]/g) || []).length > 1) {
7419
+ const L = T.search(/[.,]/);
7420
+ T = T.substring(0, L + 1) + T.substring(L + 1).replace(/[.,]/g, "");
7416
7421
  }
7417
7422
  if (r !== void 0 && r >= 0) {
7418
- const L = k.search(/[.,]/);
7423
+ const L = T.search(/[.,]/);
7419
7424
  if (L !== -1) {
7420
- const B = k.substring(0, L), W = k.substring(L + 1).substring(0, r);
7421
- k = B + k[L] + W;
7425
+ const B = T.substring(0, L), W = T.substring(L + 1).substring(0, r);
7426
+ T = B + T[L] + W;
7422
7427
  }
7423
7428
  }
7424
- return a && (k = a(k)), k;
7429
+ return a && (T = a(T)), T;
7425
7430
  },
7426
7431
  [r, o, l, c, I, a]
7427
7432
  ), A = Q(
7428
- (S) => !(i !== void 0 && S < i || s !== void 0 && S > s),
7433
+ (C) => !(i !== void 0 && C < i || s !== void 0 && C > s),
7429
7434
  [i, s]
7430
7435
  ), w = Q(
7431
- (S) => {
7432
- const k = S.target.value, z = T(k);
7436
+ (C) => {
7437
+ const T = C.target.value, z = S(T);
7433
7438
  if (b(z), z === "") {
7434
7439
  t == null || t(c ? "" : 0);
7435
7440
  return;
@@ -7437,10 +7442,10 @@ const oo = v.forwardRef(
7437
7442
  const L = o === "comma" ? z.replace(/,/g, ".") : z, B = Number.parseFloat(L);
7438
7443
  Number.isNaN(B) ? t == null || t(z) : A(B) ? t == null || t(B) : t == null || t(z);
7439
7444
  },
7440
- [T, A, t, o, c]
7445
+ [S, A, t, o, c]
7441
7446
  ), D = Q(
7442
- (S) => {
7443
- const { key: k, ctrlKey: z, metaKey: L } = S;
7447
+ (C) => {
7448
+ const { key: T, ctrlKey: z, metaKey: L } = C;
7444
7449
  if (z || L || [
7445
7450
  "Backspace",
7446
7451
  "Delete",
@@ -7453,50 +7458,50 @@ const oo = v.forwardRef(
7453
7458
  "ArrowDown",
7454
7459
  "Home",
7455
7460
  "End"
7456
- ].includes(k)) {
7457
- f == null || f(S);
7461
+ ].includes(T)) {
7462
+ f == null || f(C);
7458
7463
  return;
7459
7464
  }
7460
- if (/^\d$/.test(k)) {
7461
- f == null || f(S);
7465
+ if (/^\d$/.test(T)) {
7466
+ f == null || f(C);
7462
7467
  return;
7463
7468
  }
7464
- if (k === "." || k === ",") {
7465
- if (o === "dot" && k === "." || o === "comma" && k === ",") {
7466
- f == null || f(S);
7469
+ if (T === "." || T === ",") {
7470
+ if (o === "dot" && T === "." || o === "comma" && T === ",") {
7471
+ f == null || f(C);
7467
7472
  return;
7468
7473
  }
7469
- S.preventDefault();
7470
- const B = S.currentTarget, H = B.selectionStart || 0, W = B.value.substring(0, H) + (o === "dot" ? "." : ",") + B.value.substring(H), M = T(W);
7474
+ C.preventDefault();
7475
+ const B = C.currentTarget, H = B.selectionStart || 0, W = B.value.substring(0, H) + (o === "dot" ? "." : ",") + B.value.substring(H), M = S(W);
7471
7476
  b(M), t == null || t(M);
7472
7477
  return;
7473
7478
  }
7474
- if (k === "-" && l) {
7475
- const B = S.currentTarget;
7479
+ if (T === "-" && l) {
7480
+ const B = C.currentTarget;
7476
7481
  if ((B.selectionStart || 0) === 0 && !B.value.includes("-")) {
7477
- f == null || f(S);
7482
+ f == null || f(C);
7478
7483
  return;
7479
7484
  }
7480
7485
  }
7481
- S.preventDefault();
7486
+ C.preventDefault();
7482
7487
  },
7483
- [l, f, o, T, b, t]
7488
+ [l, f, o, S, b, t]
7484
7489
  ), R = Q(
7485
- (S) => {
7486
- const k = S.clipboardData.getData("text"), z = T(k);
7487
- if (z !== k) {
7488
- S.preventDefault();
7489
- const L = S.currentTarget, B = L.selectionStart || 0, H = L.selectionEnd || 0, W = L.value.substring(0, B) + z + L.value.substring(H), M = T(W);
7490
+ (C) => {
7491
+ const T = C.clipboardData.getData("text"), z = S(T);
7492
+ if (z !== T) {
7493
+ C.preventDefault();
7494
+ const L = C.currentTarget, B = L.selectionStart || 0, H = L.selectionEnd || 0, W = L.value.substring(0, B) + z + L.value.substring(H), M = S(W);
7490
7495
  b(M), t == null || t(M);
7491
7496
  }
7492
- u == null || u(S);
7497
+ u == null || u(C);
7493
7498
  },
7494
- [T, t, u]
7499
+ [S, t, u]
7495
7500
  );
7496
7501
  return v.useEffect(() => {
7497
7502
  if (e != null) {
7498
- const S = String(e);
7499
- S !== h && b(S);
7503
+ const C = String(e);
7504
+ C !== h && b(C);
7500
7505
  }
7501
7506
  }, [e, h]), /* @__PURE__ */ n(
7502
7507
  Ae,
@@ -7549,25 +7554,25 @@ const ao = v.forwardRef(
7549
7554
  "iconSize",
7550
7555
  "iconClassName"
7551
7556
  ]);
7552
- const T = (S) => {
7557
+ const S = (C) => {
7553
7558
  if (s) {
7554
- S.preventDefault(), S.stopPropagation();
7559
+ C.preventDefault(), C.stopPropagation();
7555
7560
  return;
7556
7561
  }
7557
- a == null || a(S);
7558
- }, A = (S) => {
7559
- if (s && (S.key === "Enter" || S.key === " ")) {
7560
- S.preventDefault(), S.stopPropagation();
7562
+ a == null || a(C);
7563
+ }, A = (C) => {
7564
+ if (s && (C.key === "Enter" || C.key === " ")) {
7565
+ C.preventDefault(), C.stopPropagation();
7561
7566
  return;
7562
7567
  }
7563
- i == null || i(S);
7568
+ i == null || i(C);
7564
7569
  }, w = m(
7565
7570
  "inline-flex items-center whitespace-break-spaces no-underline font-graphik border-0 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
7566
7571
  "data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
7567
7572
  e
7568
7573
  );
7569
7574
  if (!d) {
7570
- const S = r;
7575
+ const C = r;
7571
7576
  return c ? /* @__PURE__ */ n(
7572
7577
  Rt,
7573
7578
  F(N({
@@ -7578,10 +7583,10 @@ const ao = v.forwardRef(
7578
7583
  "aria-disabled": s || void 0,
7579
7584
  "data-disabled": s || void 0,
7580
7585
  tabIndex: s ? -1 : l,
7581
- onClick: T,
7586
+ onClick: S,
7582
7587
  onKeyDown: A
7583
7588
  }, y), {
7584
- children: S
7589
+ children: C
7585
7590
  })
7586
7591
  ) : /* @__PURE__ */ n(
7587
7592
  "a",
@@ -7595,15 +7600,15 @@ const ao = v.forwardRef(
7595
7600
  "aria-disabled": s || void 0,
7596
7601
  "data-disabled": s || void 0,
7597
7602
  tabIndex: s ? -1 : l,
7598
- onClick: T,
7603
+ onClick: S,
7599
7604
  onKeyDown: A,
7600
7605
  "data-cy": f,
7601
7606
  "data-testid": u,
7602
- children: S
7607
+ children: C
7603
7608
  })
7604
7609
  );
7605
7610
  }
7606
- const D = /* @__PURE__ */ n(Y, { icon: d, size: g, className: m("shrink-0", p) }), R = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
7611
+ const D = /* @__PURE__ */ n(Y, { icon: d, size: g, className: m("shrink-0", p) }), R = /* @__PURE__ */ k("span", { className: "inline-flex items-center gap-2", children: [
7607
7612
  x === "left" && D,
7608
7613
  /* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: r }),
7609
7614
  x === "right" && D
@@ -7621,7 +7626,7 @@ const ao = v.forwardRef(
7621
7626
  "aria-disabled": s || void 0,
7622
7627
  "data-disabled": s || void 0,
7623
7628
  tabIndex: s ? -1 : l,
7624
- onClick: T,
7629
+ onClick: S,
7625
7630
  onKeyDown: A
7626
7631
  }, y), {
7627
7632
  children: R
@@ -7637,7 +7642,7 @@ const ao = v.forwardRef(
7637
7642
  "aria-disabled": s || void 0,
7638
7643
  "data-disabled": s || void 0,
7639
7644
  tabIndex: s ? -1 : l,
7640
- onClick: T,
7645
+ onClick: S,
7641
7646
  onKeyDown: A,
7642
7647
  className: m(
7643
7648
  w,
@@ -7705,7 +7710,7 @@ const Cs = v.forwardRef(
7705
7710
  const b = g.current;
7706
7711
  b && b.removeEventListener("scroll", h);
7707
7712
  };
7708
- }, []), /* @__PURE__ */ C(Ss, { children: [
7713
+ }, []), /* @__PURE__ */ k(Ss, { children: [
7709
7714
  !s && /* @__PURE__ */ n(io, {}),
7710
7715
  /* @__PURE__ */ n(
7711
7716
  le.Content,
@@ -7725,7 +7730,7 @@ const Cs = v.forwardRef(
7725
7730
  e
7726
7731
  )
7727
7732
  }, f), {
7728
- children: /* @__PURE__ */ C(
7733
+ children: /* @__PURE__ */ k(
7729
7734
  "div",
7730
7735
  {
7731
7736
  className: m(
@@ -7840,8 +7845,8 @@ const Bd = ({
7840
7845
  return /* @__PURE__ */ n("div", { className: m("w-full", o), children: s.map((f, u) => {
7841
7846
  var p;
7842
7847
  const d = f === r, x = u === s.length - 1, g = (p = t == null ? void 0 : t[u]) == null ? void 0 : p.content;
7843
- return /* @__PURE__ */ C("div", { className: m("flex", !g && "justify-center"), children: [
7844
- /* @__PURE__ */ C("div", { className: "relative mr-3 flex flex-col items-center", children: [
7848
+ return /* @__PURE__ */ k("div", { className: m("flex", !g && "justify-center"), children: [
7849
+ /* @__PURE__ */ k("div", { className: "relative mr-3 flex flex-col items-center", children: [
7845
7850
  /* @__PURE__ */ n("div", { className: "bg-muted flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full", children: /* @__PURE__ */ n(
7846
7851
  K,
7847
7852
  {
@@ -7932,9 +7937,9 @@ const Vd = To((e, t) => {
7932
7937
  resend: "Отправить код повторно",
7933
7938
  sms: "Отправить СМС через"
7934
7939
  }
7935
- } = e, p = e["data-cy"], y = e["data-testid"], [h, b] = ce(0), [I, T] = ce(
7940
+ } = e, p = e["data-cy"], y = e["data-testid"], [h, b] = ce(0), [I, S] = ce(
7936
7941
  Array.from({ length: r }, () => "")
7937
- ), [A, w] = ce(d ? x : 0), [D, R] = ce(!!d), [S, k] = ce(c), [z, L] = ce(f), B = (j) => {
7942
+ ), [A, w] = ce(d ? x : 0), [D, R] = ce(!!d), [C, T] = ce(c), [z, L] = ce(f), B = (j) => {
7938
7943
  const J = Math.max(Math.min(r - 1, j), 0);
7939
7944
  b(J);
7940
7945
  };
@@ -7948,15 +7953,15 @@ const Vd = To((e, t) => {
7948
7953
  j && clearInterval(j);
7949
7954
  };
7950
7955
  }, [A, D]), he(() => {
7951
- k(c), L(f);
7956
+ T(c), L(f);
7952
7957
  }, [c, f]);
7953
7958
  const H = () => {
7954
7959
  d && !D && (d(), w(x), R(!0));
7955
7960
  }, W = (j) => {
7956
7961
  var ne;
7957
- S && (k(!1), L("")), T(j);
7962
+ C && (T(!1), L("")), S(j);
7958
7963
  const J = j.join("");
7959
- o(J), J.length === r && ((ne = e.onComplete) == null || ne.call(e, J), l && (T(Array.from({ length: r }, () => "")), b(0)));
7964
+ o(J), J.length === r && ((ne = e.onComplete) == null || ne.call(e, J), l && (S(Array.from({ length: r }, () => "")), b(0)));
7960
7965
  }, M = (j) => !Number.isNaN(Number.parseInt(j, 10)) && j.trim().length === 1, P = () => {
7961
7966
  B(h + 1);
7962
7967
  }, G = () => {
@@ -7999,7 +8004,7 @@ const Vd = To((e, t) => {
7999
8004
  }, te = () => {
8000
8005
  s || b(-1);
8001
8006
  };
8002
- return /* @__PURE__ */ C("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
8007
+ return /* @__PURE__ */ k("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
8003
8008
  u && /* @__PURE__ */ n(K, { variant: "h5", weight: "medium", children: u }),
8004
8009
  /* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((j, J) => /* @__PURE__ */ n(
8005
8010
  Ls,
@@ -8018,15 +8023,15 @@ const Vd = To((e, t) => {
8018
8023
  isDisabled: i,
8019
8024
  className: m(
8020
8025
  "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",
8021
- S && "border-destructive focus:border-destructive"
8026
+ C && "border-destructive focus:border-destructive"
8022
8027
  ),
8023
8028
  "data-cy": p && `${p}-${J}`,
8024
8029
  "data-testid": y && `${y}-${J}`
8025
8030
  },
8026
8031
  J
8027
8032
  )) }),
8028
- S && z && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "font-cofo", children: z }),
8029
- d && /* @__PURE__ */ n("div", { children: D ? /* @__PURE__ */ C(K, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
8033
+ C && z && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "font-cofo", children: z }),
8034
+ d && /* @__PURE__ */ n("div", { children: D ? /* @__PURE__ */ k(K, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
8030
8035
  g.sms,
8031
8036
  " ",
8032
8037
  "0:",
@@ -8079,7 +8084,7 @@ const _d = ({
8079
8084
  showQuickJumper: l = !1,
8080
8085
  locale: c
8081
8086
  }) => {
8082
- var T, A;
8087
+ var S, A;
8083
8088
  const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), u = Gr(e || 1, 1, f), d = ie(
8084
8089
  () => [{ type: "prev" }, ...Ps(u, f), { type: "next" }],
8085
8090
  [u, f]
@@ -8110,10 +8115,10 @@ const _d = ({
8110
8115
  return;
8111
8116
  const w = typeof x == "number" ? x : Number(x);
8112
8117
  Number.isFinite(w) && (p(w), g(""));
8113
- }, b = (T = c == null ? void 0 : c.jump_to) != null ? T : "Перейти на", I = (A = c == null ? void 0 : c.page) != null ? A : "страницу";
8114
- return /* @__PURE__ */ C("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
8118
+ }, b = (S = c == null ? void 0 : c.jump_to) != null ? S : "Перейти на", I = (A = c == null ? void 0 : c.page) != null ? A : "страницу";
8119
+ return /* @__PURE__ */ k("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
8115
8120
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((w, D) => {
8116
- const R = zs(w, f), S = w.type === "page" && w.page === u, k = `${w.type}-${w.type === "page" ? w.page : D}`, z = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8121
+ const R = zs(w, f), C = w.type === "page" && w.page === u, T = `${w.type}-${w.type === "page" ? w.page : D}`, z = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8117
8122
  oe,
8118
8123
  {
8119
8124
  variant: "text",
@@ -8144,21 +8149,21 @@ const _d = ({
8144
8149
  className: m(
8145
8150
  "h-8 w-8 min-w-8 rounded-md px-0 hover:bg-default-background focus:bg-default-background",
8146
8151
  {
8147
- "border-1 border-solid border-border-primary bg-background text-primary hover:bg-background focus:bg-background": S,
8148
- "text-default": !S
8152
+ "border-1 border-solid border-border-primary bg-background text-primary hover:bg-background focus:bg-background": C,
8153
+ "text-default": !C
8149
8154
  }
8150
8155
  ),
8151
- isActive: S,
8156
+ isActive: C,
8152
8157
  disabled: i,
8153
- "aria-current": S ? "page" : void 0,
8158
+ "aria-current": C ? "page" : void 0,
8154
8159
  "aria-label": `Page ${w.page}`,
8155
8160
  onClick: () => y(w),
8156
8161
  children: String(w.page)
8157
8162
  }
8158
8163
  );
8159
- return /* @__PURE__ */ n("span", { "data-testid": R, children: z }, k);
8164
+ return /* @__PURE__ */ n("span", { "data-testid": R, children: z }, T);
8160
8165
  }) }),
8161
- l && /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
8166
+ l && /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
8162
8167
  /* @__PURE__ */ n(K, { variant: "p2", textColor: "secondary", children: b }),
8163
8168
  /* @__PURE__ */ n(
8164
8169
  oo,
@@ -9004,7 +9009,7 @@ const so = ke.forwardRef(
9004
9009
  "inputSize",
9005
9010
  "isLoading"
9006
9011
  ]);
9007
- const x = Ut(), g = s != null ? s : i, p = () => /* @__PURE__ */ n(ct, { children: /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */ C(
9012
+ const x = Ut(), g = s != null ? s : i, p = () => /* @__PURE__ */ n(ct, { children: /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */ k(
9008
9013
  _t,
9009
9014
  {
9010
9015
  onSelect: () => a(y),
@@ -9016,7 +9021,7 @@ const so = ke.forwardRef(
9016
9021
  },
9017
9022
  h
9018
9023
  )) }) }) });
9019
- return /* @__PURE__ */ C("div", { className: "relative flex-1", children: [
9024
+ return /* @__PURE__ */ k("div", { className: "relative flex-1", children: [
9020
9025
  /* @__PURE__ */ n(
9021
9026
  pt,
9022
9027
  F(N({
@@ -9036,8 +9041,8 @@ const so = ke.forwardRef(
9036
9041
  onPaste: (y) => {
9037
9042
  y.preventDefault();
9038
9043
  const h = y.clipboardData.getData("text/plain"), b = y.target, I = Le.parsePhoneNumber(h);
9039
- let T = "";
9040
- !(I != null && I.country) && (h.startsWith("+8") || h.startsWith("8")) ? T = `+${h.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && h.startsWith("7") ? T = `+${h}` : T = h, b.value = T;
9044
+ let S = "";
9045
+ !(I != null && I.country) && (h.startsWith("+8") || h.startsWith("8")) ? S = `+${h.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && h.startsWith("7") ? S = `+${h}` : S = h, b.value = S;
9041
9046
  const A = F(N({}, y), {
9042
9047
  target: b
9043
9048
  });
@@ -9050,8 +9055,8 @@ const so = ke.forwardRef(
9050
9055
  })
9051
9056
  ),
9052
9057
  l && /* @__PURE__ */ n(_e, { size: 16, className: "absolute top-1/2 right-2 -translate-y-1/2 text-default" }),
9053
- !l && t && t.length > 1 && /* @__PURE__ */ C(ve, { children: [
9054
- x === "mobile" && /* @__PURE__ */ C(xt, { children: [
9058
+ !l && t && t.length > 1 && /* @__PURE__ */ k(ve, { children: [
9059
+ x === "mobile" && /* @__PURE__ */ k(xt, { children: [
9055
9060
  /* @__PURE__ */ n(et, { asChild: !0, children: /* @__PURE__ */ n(
9056
9061
  oe,
9057
9062
  {
@@ -9062,7 +9067,7 @@ const so = ke.forwardRef(
9062
9067
  children: /* @__PURE__ */ n(Y, { icon: "UnfoldIcon", className: "size-4" })
9063
9068
  }
9064
9069
  ) }),
9065
- /* @__PURE__ */ C(yt, { children: [
9070
+ /* @__PURE__ */ k(yt, { children: [
9066
9071
  /* @__PURE__ */ n(tt, {}),
9067
9072
  /* @__PURE__ */ n(
9068
9073
  rt,
@@ -9075,7 +9080,7 @@ const so = ke.forwardRef(
9075
9080
  )
9076
9081
  ] })
9077
9082
  ] }),
9078
- x !== "mobile" && /* @__PURE__ */ C(qe, { children: [
9083
+ x !== "mobile" && /* @__PURE__ */ k(qe, { children: [
9079
9084
  /* @__PURE__ */ n(Wt, { asChild: !0, children: /* @__PURE__ */ n(
9080
9085
  oe,
9081
9086
  {
@@ -9124,7 +9129,7 @@ function Lt({ country: e, countryName: t }) {
9124
9129
  );
9125
9130
  }
9126
9131
  const Ur = Ot(
9127
- ({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */ C(_t, { className: "w-auto gap-2 hover:bg-muted transition-colors", onSelect: () => r(e), children: [
9132
+ ({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */ k(_t, { className: "w-auto gap-2 hover:bg-muted transition-colors", onSelect: () => r(e), children: [
9128
9133
  /* @__PURE__ */ n(Lt, { country: e, countryName: t }),
9129
9134
  /* @__PURE__ */ n("span", { className: "flex-1 text-[14px]", children: t }),
9130
9135
  /* @__PURE__ */ n("span", { className: "text-foreground/50", children: `+${Le.getCountryCallingCode(e)}` })
@@ -9148,16 +9153,16 @@ const Ur = Ot(
9148
9153
  if (!d)
9149
9154
  return o;
9150
9155
  const I = d.toLowerCase();
9151
- return o.filter(({ value: T, label: A }) => {
9156
+ return o.filter(({ value: S, label: A }) => {
9152
9157
  var R;
9153
- if (!T)
9158
+ if (!S)
9154
9159
  return !1;
9155
- const w = ((R = s[T]) == null ? void 0 : R.toLowerCase()) || A.toLowerCase(), D = Le.getCountryCallingCode(T);
9156
- return w.includes(I) || T.toLowerCase().includes(I) || `+${D}`.includes(I);
9160
+ const w = ((R = s[S]) == null ? void 0 : R.toLowerCase()) || A.toLowerCase(), D = Le.getCountryCallingCode(S);
9161
+ return w.includes(I) || S.toLowerCase().includes(I) || `+${D}`.includes(I);
9157
9162
  });
9158
9163
  }, [o, d]);
9159
- return /* @__PURE__ */ C(ve, { children: [
9160
- g === "mobile" && /* @__PURE__ */ C(xt, { open: f, onOpenChange: u, children: [
9164
+ return /* @__PURE__ */ k(ve, { children: [
9165
+ g === "mobile" && /* @__PURE__ */ k(xt, { open: f, onOpenChange: u, children: [
9161
9166
  /* @__PURE__ */ n(
9162
9167
  et,
9163
9168
  {
@@ -9166,7 +9171,7 @@ const Ur = Ot(
9166
9171
  className: m("border-none bg-white pr-0.5 pl-1", {
9167
9172
  "bg-muted": e
9168
9173
  }),
9169
- children: /* @__PURE__ */ C(
9174
+ children: /* @__PURE__ */ k(
9170
9175
  oe,
9171
9176
  {
9172
9177
  type: "button",
@@ -9201,9 +9206,9 @@ const Ur = Ot(
9201
9206
  )
9202
9207
  }
9203
9208
  ),
9204
- /* @__PURE__ */ C(yt, { children: [
9209
+ /* @__PURE__ */ k(yt, { children: [
9205
9210
  /* @__PURE__ */ n(tt, {}),
9206
- /* @__PURE__ */ n(rt, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Je, { children: /* @__PURE__ */ C(ct, { shouldFilter: !0, className: "rounded-xl", children: [
9211
+ /* @__PURE__ */ n(rt, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Je, { children: /* @__PURE__ */ k(ct, { shouldFilter: !0, className: "rounded-xl", children: [
9207
9212
  /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
9208
9213
  Dt,
9209
9214
  {
@@ -9216,12 +9221,12 @@ const Ur = Ot(
9216
9221
  onChange: (I) => x(I.target.value)
9217
9222
  }
9218
9223
  ) }),
9219
- /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ C(Et, { className: "h-60", children: [
9220
- h.length > 0 && /* @__PURE__ */ n(ft, { children: h.map(({ value: I, label: T }) => I ? /* @__PURE__ */ n(
9224
+ /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ k(Et, { className: "h-60", children: [
9225
+ h.length > 0 && /* @__PURE__ */ n(ft, { children: h.map(({ value: I, label: S }) => I ? /* @__PURE__ */ n(
9221
9226
  Ur,
9222
9227
  {
9223
9228
  country: I,
9224
- countryName: s[I] || T,
9229
+ countryName: s[I] || S,
9225
9230
  onChange: y
9226
9231
  },
9227
9232
  I
@@ -9231,7 +9236,7 @@ const Ur = Ot(
9231
9236
  ] }) }) })
9232
9237
  ] })
9233
9238
  ] }),
9234
- g !== "mobile" && /* @__PURE__ */ C(qe, { open: f, onOpenChange: u, children: [
9239
+ g !== "mobile" && /* @__PURE__ */ k(qe, { open: f, onOpenChange: u, children: [
9235
9240
  /* @__PURE__ */ n(
9236
9241
  Wt,
9237
9242
  {
@@ -9239,7 +9244,7 @@ const Ur = Ot(
9239
9244
  className: m("border-none bg-white pr-0.5 pl-1", {
9240
9245
  "bg-muted": e
9241
9246
  }),
9242
- children: /* @__PURE__ */ C(
9247
+ children: /* @__PURE__ */ k(
9243
9248
  oe,
9244
9249
  {
9245
9250
  type: "button",
@@ -9279,7 +9284,7 @@ const Ur = Ot(
9279
9284
  {
9280
9285
  align: "start",
9281
9286
  className: "rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] md:w-[400px] lg:w-[252px]",
9282
- children: /* @__PURE__ */ C(ct, { shouldFilter: !0, className: "rounded-xl", children: [
9287
+ children: /* @__PURE__ */ k(ct, { shouldFilter: !0, className: "rounded-xl", children: [
9283
9288
  /* @__PURE__ */ n(
9284
9289
  Dt,
9285
9290
  {
@@ -9291,17 +9296,17 @@ const Ur = Ot(
9291
9296
  onChange: (I) => x(I.target.value)
9292
9297
  }
9293
9298
  ),
9294
- /* @__PURE__ */ n(ut, { className: "border-border", children: /* @__PURE__ */ C(
9299
+ /* @__PURE__ */ n(ut, { className: "border-border", children: /* @__PURE__ */ k(
9295
9300
  Et,
9296
9301
  {
9297
9302
  className: "h-60",
9298
9303
  onWheel: (I) => I.stopPropagation(),
9299
9304
  children: [
9300
- h.length > 0 && /* @__PURE__ */ n(ft, { children: h.map(({ value: I, label: T }) => I ? /* @__PURE__ */ n(
9305
+ h.length > 0 && /* @__PURE__ */ n(ft, { children: h.map(({ value: I, label: S }) => I ? /* @__PURE__ */ n(
9301
9306
  Ur,
9302
9307
  {
9303
9308
  country: I,
9304
- countryName: s[I] || T,
9309
+ countryName: s[I] || S,
9305
9310
  onChange: y
9306
9311
  },
9307
9312
  I
@@ -9348,7 +9353,7 @@ const Ur = Ot(
9348
9353
  "isLoading"
9349
9354
  ]);
9350
9355
  var B, H;
9351
- const [b, I] = ke.useState(() => ""), [T, A] = ke.useState([]), [w, D] = ke.useState(c), R = (() => {
9356
+ const [b, I] = ke.useState(() => ""), [S, A] = ke.useState([]), [w, D] = ke.useState(c), R = (() => {
9352
9357
  switch (u) {
9353
9358
  case "en":
9354
9359
  return Bo;
@@ -9360,7 +9365,7 @@ const Ur = Ot(
9360
9365
  default:
9361
9366
  return Bs;
9362
9367
  }
9363
- })(), S = Os[u];
9368
+ })(), C = Os[u];
9364
9369
  ke.useEffect(() => {
9365
9370
  if (s && s !== "+7") {
9366
9371
  const P = Le.parsePhoneNumber(s);
@@ -9372,7 +9377,7 @@ const Ur = Ot(
9372
9377
  const W = jr(s, c), M = tr(W);
9373
9378
  D(W), I(M[0]), A(M);
9374
9379
  }, [c, t, s]);
9375
- const k = (W) => {
9380
+ const T = (W) => {
9376
9381
  const M = Gs(W), P = jr(
9377
9382
  M,
9378
9383
  w != null ? w : c
@@ -9395,7 +9400,7 @@ const Ur = Ot(
9395
9400
  }, L = (W) => {
9396
9401
  I(W);
9397
9402
  };
9398
- return /* @__PURE__ */ C(ve, { children: [
9403
+ return /* @__PURE__ */ k(ve, { children: [
9399
9404
  o && /* @__PURE__ */ n(K, { variant: d === "md" ? "p2" : "p3", weight: "medium", className: "mb-1.5", children: o }),
9400
9405
  /* @__PURE__ */ n(
9401
9406
  Le.default,
@@ -9419,16 +9424,16 @@ const Ur = Ot(
9419
9424
  countrySelectProps: {
9420
9425
  defaultCountry: (H = w != null ? w : c) != null ? H : ht,
9421
9426
  locale: R,
9422
- translations: S,
9427
+ translations: C,
9423
9428
  inputSize: d,
9424
9429
  onCountrySelect: z
9425
9430
  },
9426
9431
  inputComponent: so,
9427
9432
  labels: R,
9428
9433
  smartCaret: !1,
9429
- onChange: k,
9434
+ onChange: T,
9430
9435
  mask: b,
9431
- masks: T,
9436
+ masks: S,
9432
9437
  inputSize: d,
9433
9438
  isLoading: x,
9434
9439
  onMaskChange: L,
@@ -9464,8 +9469,8 @@ const Ur = Ot(
9464
9469
  "className"
9465
9470
  ]);
9466
9471
  return /* @__PURE__ */ n(K, N({ textColor: "secondary", className: e }, t));
9467
- }, $s = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => /* @__PURE__ */ C("div", { className: "flex", children: [
9468
- /* @__PURE__ */ C("div", { className: "relative mr-3 flex flex-col items-center", children: [
9472
+ }, $s = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => /* @__PURE__ */ k("div", { className: "flex", children: [
9473
+ /* @__PURE__ */ k("div", { className: "relative mr-3 flex flex-col items-center", children: [
9469
9474
  /* @__PURE__ */ n(
9470
9475
  "div",
9471
9476
  {
@@ -9478,7 +9483,7 @@ const Ur = Ot(
9478
9483
  ),
9479
9484
  o < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
9480
9485
  ] }),
9481
- /* @__PURE__ */ C("div", { className: "flex-1 pb-4", children: [
9486
+ /* @__PURE__ */ k("div", { className: "flex-1 pb-4", children: [
9482
9487
  r.title,
9483
9488
  r.additional
9484
9489
  ] })
@@ -9583,7 +9588,7 @@ const Zs = ge(
9583
9588
  "onBlur",
9584
9589
  "data-testid"
9585
9590
  ]);
9586
- const b = o || !1, I = a || !1, T = v.useId(), A = s || `${T}-radio`;
9591
+ const b = o || !1, I = a || !1, S = v.useId(), A = s || `${S}-radio`;
9587
9592
  return /* @__PURE__ */ n(
9588
9593
  "label",
9589
9594
  {
@@ -9592,7 +9597,7 @@ const Zs = ge(
9592
9597
  "select-none",
9593
9598
  I ? "cursor-not-allowed opacity-40" : "cursor-pointer"
9594
9599
  ),
9595
- children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
9600
+ children: /* @__PURE__ */ k("div", { className: "flex items-center gap-2.5", children: [
9596
9601
  /* @__PURE__ */ n(
9597
9602
  Bt.Item,
9598
9603
  F(N({
@@ -9622,7 +9627,7 @@ const Zs = ge(
9622
9627
  Js.displayName = Bt.Item.displayName;
9623
9628
  const Qs = v.forwardRef((s, i) => {
9624
9629
  var l = s, { className: e, label: t, error: r, size: o = "md" } = l, a = V(l, ["className", "label", "error", "size"]);
9625
- return /* @__PURE__ */ C("div", { className: "w-full", children: [
9630
+ return /* @__PURE__ */ k("div", { className: "w-full", children: [
9626
9631
  t && /* @__PURE__ */ n(
9627
9632
  K,
9628
9633
  {
@@ -9673,8 +9678,8 @@ function Xs({ className: e }) {
9673
9678
  );
9674
9679
  }
9675
9680
  const el = v.forwardRef(
9676
- (T, I) => {
9677
- var A = T, {
9681
+ (S, I) => {
9682
+ var A = S, {
9678
9683
  value: e,
9679
9684
  defaultValue: t = 0,
9680
9685
  count: r = 5,
@@ -9711,18 +9716,18 @@ const el = v.forwardRef(
9711
9716
  "aria-label",
9712
9717
  "data-testid"
9713
9718
  ]);
9714
- const w = Math.max(Math.round(r), 1), D = e !== void 0, [R, S] = v.useState(
9719
+ const w = Math.max(Math.round(r), 1), D = e !== void 0, [R, C] = v.useState(
9715
9720
  () => at(t, w)
9716
- ), [k, z] = v.useState(null), [L, B] = v.useState(
9721
+ ), [T, z] = v.useState(null), [L, B] = v.useState(
9717
9722
  at(e != null ? e : t, w) || 1
9718
9723
  ), H = v.useRef([]), W = at(
9719
9724
  D ? e : R,
9720
9725
  w
9721
- ), M = k != null ? k : W, P = typeof i == "number" ? i : qs[i], G = (U) => {
9726
+ ), M = T != null ? T : W, P = typeof i == "number" ? i : qs[i], G = (U) => {
9722
9727
  if (o)
9723
9728
  return;
9724
9729
  const X = at(U, w), $ = a && X === W ? 0 : X;
9725
- D || S($), $ !== W && (g == null || g($));
9730
+ D || C($), $ !== W && (g == null || g($));
9726
9731
  }, O = (U) => {
9727
9732
  var $;
9728
9733
  const X = at(U, w) || 1;
@@ -9871,7 +9876,7 @@ const tl = ge(
9871
9876
  "children",
9872
9877
  "data-testid"
9873
9878
  ]);
9874
- const u = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(Y, { icon: t }) : null, d = /* @__PURE__ */ C(ve, { children: [
9879
+ const u = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(Y, { icon: t }) : null, d = /* @__PURE__ */ k(ve, { children: [
9875
9880
  r === "start" && u(),
9876
9881
  a,
9877
9882
  r === "end" && u()
@@ -9956,7 +9961,7 @@ const nl = v.forwardRef(
9956
9961
  ]);
9957
9962
  const [g, p] = v.useState(!1), y = l !== void 0 ? l : g, h = () => {
9958
9963
  l !== void 0 || p(!g), i == null || i();
9959
- }, b = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(Y, { icon: r }) : null, I = /* @__PURE__ */ C(ve, { children: [
9964
+ }, b = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(Y, { icon: r }) : null, I = /* @__PURE__ */ k(ve, { children: [
9960
9965
  o === "start" && b(),
9961
9966
  a && /* @__PURE__ */ n(
9962
9967
  "span",
@@ -10007,8 +10012,8 @@ function Hd({
10007
10012
  "aria-valuenow": t,
10008
10013
  children: e.map((a, i) => {
10009
10014
  const s = i < t, l = i === t, c = i === e.length - 1;
10010
- return /* @__PURE__ */ C(ve, { children: [
10011
- /* @__PURE__ */ C(
10015
+ return /* @__PURE__ */ k(ve, { children: [
10016
+ /* @__PURE__ */ k(
10012
10017
  "div",
10013
10018
  {
10014
10019
  className: "flex items-center flex-shrink-0",
@@ -10133,7 +10138,7 @@ const ol = ge(
10133
10138
  }, h = (b) => {
10134
10139
  l && (l(b, p.current), p.current = void 0);
10135
10140
  };
10136
- return /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
10141
+ return /* @__PURE__ */ k("div", { className: "flex items-center gap-2.5", children: [
10137
10142
  /* @__PURE__ */ n(
10138
10143
  nr.Root,
10139
10144
  F(N({
@@ -10199,7 +10204,7 @@ function fo({
10199
10204
  }) {
10200
10205
  var a, i;
10201
10206
  const r = (a = e == null ? void 0 : e.emptyTitle) != null ? a : "Всё чисто", o = (i = e == null ? void 0 : e.emptyDescription) != null ? i : "Добавьте что-нибудь, чтобы начать работу";
10202
- return e != null && e.emptyText ? /* @__PURE__ */ C(
10207
+ return e != null && e.emptyText ? /* @__PURE__ */ k(
10203
10208
  "div",
10204
10209
  {
10205
10210
  className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
@@ -10218,7 +10223,7 @@ function fo({
10218
10223
  /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1", children: /* @__PURE__ */ n(K, { variant: "h4", weight: "medium", children: e.emptyText }) })
10219
10224
  ]
10220
10225
  }
10221
- ) : /* @__PURE__ */ C(
10226
+ ) : /* @__PURE__ */ k(
10222
10227
  "div",
10223
10228
  {
10224
10229
  className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
@@ -10234,7 +10239,7 @@ function fo({
10234
10239
  draggable: !1
10235
10240
  }
10236
10241
  ),
10237
- /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-1", children: [
10242
+ /* @__PURE__ */ k("div", { className: "flex flex-col items-center gap-1", children: [
10238
10243
  /* @__PURE__ */ n(K, { variant: "h4", weight: "medium", children: r }),
10239
10244
  /* @__PURE__ */ n(K, { variant: "p2", children: o })
10240
10245
  ] })
@@ -10311,14 +10316,14 @@ function fl({
10311
10316
  rowDataTestId: g,
10312
10317
  cellDataTestId: p
10313
10318
  }) {
10314
- const y = e.getRowModel().rows, [h, b] = ce(() => /* @__PURE__ */ new Set()), I = de(null), T = de(/* @__PURE__ */ new Map());
10319
+ const y = e.getRowModel().rows, [h, b] = ce(() => /* @__PURE__ */ new Set()), I = de(null), S = de(/* @__PURE__ */ new Map());
10315
10320
  return he(() => () => {
10316
- T.current.forEach((A) => {
10321
+ S.current.forEach((A) => {
10317
10322
  window.clearTimeout(A);
10318
- }), T.current.clear();
10323
+ }), S.current.clear();
10319
10324
  }, []), he(() => {
10320
10325
  if (!d) {
10321
- I.current = null, b(/* @__PURE__ */ new Set()), T.current.forEach((R) => window.clearTimeout(R)), T.current.clear();
10326
+ I.current = null, b(/* @__PURE__ */ new Set()), S.current.forEach((R) => window.clearTimeout(R)), S.current.clear();
10322
10327
  return;
10323
10328
  }
10324
10329
  const A = y.map((R) => R.id);
@@ -10328,44 +10333,44 @@ function fl({
10328
10333
  }
10329
10334
  const w = I.current, D = A.filter((R) => !w.has(R));
10330
10335
  I.current = new Set(A), D.length !== 0 && (b((R) => {
10331
- const S = new Set(R);
10332
- return D.forEach((k) => S.add(k)), S;
10336
+ const C = new Set(R);
10337
+ return D.forEach((T) => C.add(T)), C;
10333
10338
  }), D.forEach((R) => {
10334
- const S = T.current.get(R);
10335
- S && window.clearTimeout(S);
10336
- const k = window.setTimeout(() => {
10339
+ const C = S.current.get(R);
10340
+ C && window.clearTimeout(C);
10341
+ const T = window.setTimeout(() => {
10337
10342
  b((z) => {
10338
10343
  if (!z.has(R))
10339
10344
  return z;
10340
10345
  const L = new Set(z);
10341
10346
  return L.delete(R), L;
10342
- }), T.current.delete(R);
10347
+ }), S.current.delete(R);
10343
10348
  }, 1400);
10344
- T.current.set(R, k);
10349
+ S.current.set(R, T);
10345
10350
  }));
10346
10351
  }, [d, y]), y.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": x, children: /* @__PURE__ */ n("tr", { "data-testid": g, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, o), className: "p-0", children: /* @__PURE__ */ n(fo, { locale: l }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": x, children: y.map((A) => {
10347
10352
  var H, W, M, P;
10348
- const w = A.index, D = (H = s == null ? void 0 : s(A.original, w)) != null ? H : {}, R = typeof D.onClick == "function", S = D.onClick, k = d && h.has(A.id), z = (G) => {
10353
+ const w = A.index, D = (H = s == null ? void 0 : s(A.original, w)) != null ? H : {}, R = typeof D.onClick == "function", C = D.onClick, T = d && h.has(A.id), z = (G) => {
10349
10354
  var O;
10350
10355
  (O = D.onKeyDown) == null || O.call(D, G), R && (G.key !== "Enter" && G.key !== " " || (G.preventDefault(), G.currentTarget.click()));
10351
10356
  }, L = m(
10352
10357
  "group transition-colors",
10353
- k && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10358
+ T && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10354
10359
  // Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
10355
10360
  (s || R) && "cursor-pointer",
10356
10361
  D.className
10357
10362
  ), B = m(
10358
10363
  "bg-background group-hover:bg-[#F6F6F7]",
10359
- k && "bg-primary/5 group-hover:bg-primary/10"
10364
+ T && "bg-primary/5 group-hover:bg-primary/10"
10360
10365
  );
10361
10366
  return /* @__PURE__ */ n(
10362
10367
  "tr",
10363
10368
  F(N({
10364
10369
  "data-testid": g
10365
10370
  }, D), {
10366
- "data-new": k ? "true" : void 0,
10371
+ "data-new": T ? "true" : void 0,
10367
10372
  className: L,
10368
- onClick: S,
10373
+ onClick: C,
10369
10374
  onKeyDown: R ? z : D.onKeyDown,
10370
10375
  role: R ? (W = D.role) != null ? W : "button" : D.role,
10371
10376
  tabIndex: R ? (M = D.tabIndex) != null ? M : 0 : D.tabIndex,
@@ -10490,8 +10495,8 @@ function bl({
10490
10495
  scrollState: c
10491
10496
  }) {
10492
10497
  return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((u) => {
10493
- var S, k;
10494
- const d = u.column.columnDef.meta, x = u.column.getCanSort(), g = u.column.getIsSorted(), p = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, u.column.id, s), b = wr(d == null ? void 0 : d.fixed, u.column.id, l, c), I = typeof a == "number" ? `${a}px` : a, T = x ? u.column.getToggleSortingHandler() : void 0, A = u.isPlaceholder ? null : dn(u.column.columnDef.header, u.getContext()), w = t.findIndex((z, L) => Ye(z, L) === u.column.id), D = w >= 0 ? t[w] : void 0, R = typeof (D == null ? void 0 : D.title) == "function" ? D.title({
10498
+ var C, T;
10499
+ const d = u.column.columnDef.meta, x = u.column.getCanSort(), g = u.column.getIsSorted(), p = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, u.column.id, s), b = wr(d == null ? void 0 : d.fixed, u.column.id, l, c), I = typeof a == "number" ? `${a}px` : a, S = x ? u.column.getToggleSortingHandler() : void 0, A = u.isPlaceholder ? null : dn(u.column.columnDef.header, u.getContext()), w = t.findIndex((z, L) => Ye(z, L) === u.column.id), D = w >= 0 ? t[w] : void 0, R = typeof (D == null ? void 0 : D.title) == "function" ? D.title({
10495
10500
  sortColumns: r.map((z) => ({
10496
10501
  column: { dataIndex: z.id, key: z.id, columnKey: z.id },
10497
10502
  order: z.desc ? "descend" : "ascend"
@@ -10500,7 +10505,7 @@ function bl({
10500
10505
  return /* @__PURE__ */ n(
10501
10506
  "th",
10502
10507
  {
10503
- "data-testid": (S = d == null ? void 0 : d["data-testid"]) != null ? S : `column-${u.column.id}`,
10508
+ "data-testid": (C = d == null ? void 0 : d["data-testid"]) != null ? C : `column-${u.column.id}`,
10504
10509
  className: m(
10505
10510
  "bg-[#FBFBFB] align-middle",
10506
10511
  y,
@@ -10519,12 +10524,12 @@ function bl({
10519
10524
  maxWidth: d == null ? void 0 : d.maxWidth
10520
10525
  }), h), {
10521
10526
  boxShadow: yr(
10522
- (k = d == null ? void 0 : d.headerStyle) == null ? void 0 : k.boxShadow,
10527
+ (T = d == null ? void 0 : d.headerStyle) == null ? void 0 : T.boxShadow,
10523
10528
  b
10524
10529
  )
10525
10530
  }),
10526
- onClick: T,
10527
- children: /* @__PURE__ */ C("div", { className: m("flex w-full items-center gap-2", sl(d == null ? void 0 : d.align)), children: [
10531
+ onClick: S,
10532
+ children: /* @__PURE__ */ k("div", { className: m("flex w-full items-center gap-2", sl(d == null ? void 0 : d.align)), children: [
10528
10533
  R,
10529
10534
  x && /* @__PURE__ */ n("span", { title: p, className: "inline-flex items-center", children: /* @__PURE__ */ n(
10530
10535
  Y,
@@ -10578,12 +10583,12 @@ function yl({
10578
10583
  }, l = (L) => {
10579
10584
  const B = new Set(L.map((H) => String(H)));
10580
10585
  return e.getCoreRowModel().rows.filter((H) => B.has(H.id)).map((H) => H.original);
10581
- }, c = e.getRowModel().rows, f = c.filter((L) => !s(L.original)).map((L) => L.id), u = f.reduce((L, B) => t.isSelected(B) ? L + 1 : L, 0), d = f.length > 0 && u === f.length, x = u > 0 && !d, g = d ? !0 : x ? "indeterminate" : !1, p = ((z = a == null ? void 0 : a.allRowKeys) != null ? z : []).map((L) => String(L)), y = p.length > 0 ? p : f, h = y.reduce((L, B) => t.isSelected(B) ? L + 1 : L, 0), b = y.length > 0 && h === y.length, I = h > 0 && !b, T = b ? !0 : I ? "indeterminate" : !1, A = (L, B, H) => {
10586
+ }, c = e.getRowModel().rows, f = c.filter((L) => !s(L.original)).map((L) => L.id), u = f.reduce((L, B) => t.isSelected(B) ? L + 1 : L, 0), d = f.length > 0 && u === f.length, x = u > 0 && !d, g = d ? !0 : x ? "indeterminate" : !1, p = ((z = a == null ? void 0 : a.allRowKeys) != null ? z : []).map((L) => String(L)), y = p.length > 0 ? p : f, h = y.reduce((L, B) => t.isSelected(B) ? L + 1 : L, 0), b = y.length > 0 && h === y.length, I = h > 0 && !b, S = b ? !0 : I ? "indeterminate" : !1, A = (L, B, H) => {
10582
10587
  var G, O;
10583
10588
  const W = r.current, M = t.getKeys(), P = B ? Array.from(new Map([...M, ...L].map((Z) => [String(Z), Z])).values()) : M.filter((Z) => !new Set(L.map((re) => String(re))).has(String(Z)));
10584
10589
  W.isControlled || (t.setKeys(P), W.setInternalSelectedRowKeys(P)), (O = (G = W.rowSelection) == null ? void 0 : G.onChange) == null || O.call(G, P, l(P), { type: H });
10585
10590
  };
10586
- return /* @__PURE__ */ n(fr, { checked: i === "all" ? T : g, onCheckedChange: i === "all" ? (L) => {
10591
+ return /* @__PURE__ */ n(fr, { checked: i === "all" ? S : g, onCheckedChange: i === "all" ? (L) => {
10587
10592
  var M, P;
10588
10593
  const B = L === !0, H = r.current, W = (P = (M = H.rowSelection) == null ? void 0 : M.allRowKeys) != null && P.length ? H.rowSelection.allRowKeys : c.map((G) => H.getRowKeyValue(G.original, G.index));
10589
10594
  A(W != null ? W : [], B, "all");
@@ -10633,12 +10638,12 @@ function vl({
10633
10638
  const y = o.current, h = p === !0;
10634
10639
  if (c)
10635
10640
  return;
10636
- const b = y.getRowKeyValue(i, t.index), I = String(b), T = e.getRowModel().rows, A = y.lastRowSelectionKeyRef.current == null ? null : String(y.lastRowSelectionKeyRef.current), w = T.findIndex((M) => String(y.getRowKeyValue(M.original, M.index)) === I), D = A == null ? -1 : T.findIndex((M) => String(y.getRowKeyValue(M.original, M.index)) === A), R = y.rowSelectionShiftKeyRef.current && w >= 0 && D >= 0, S = R ? T.slice(Math.min(D, w), Math.max(D, w) + 1).filter((M) => {
10641
+ const b = y.getRowKeyValue(i, t.index), I = String(b), S = e.getRowModel().rows, A = y.lastRowSelectionKeyRef.current == null ? null : String(y.lastRowSelectionKeyRef.current), w = S.findIndex((M) => String(y.getRowKeyValue(M.original, M.index)) === I), D = A == null ? -1 : S.findIndex((M) => String(y.getRowKeyValue(M.original, M.index)) === A), R = y.rowSelectionShiftKeyRef.current && w >= 0 && D >= 0, C = R ? S.slice(Math.min(D, w), Math.max(D, w) + 1).filter((M) => {
10637
10642
  var P, G, O;
10638
10643
  return !((O = (G = (P = y.rowSelection) == null ? void 0 : P.getCheckboxProps) == null ? void 0 : G.call(P, M.original)) != null && O.disabled);
10639
- }).map((M) => y.getRowKeyValue(M.original, M.index)) : [b], k = new Set(S.map((M) => String(M))), z = r.getKeys(), L = h ? Array.from(new Map([...z, ...S].map((M) => [String(M), M])).values()) : z.filter((M) => !k.has(String(M)));
10644
+ }).map((M) => y.getRowKeyValue(M.original, M.index)) : [b], T = new Set(C.map((M) => String(M))), z = r.getKeys(), L = h ? Array.from(new Map([...z, ...C].map((M) => [String(M), M])).values()) : z.filter((M) => !T.has(String(M)));
10640
10645
  y.isControlled || (r.setKeys(L), y.setInternalSelectedRowKeys(L));
10641
- const B = R && S.length > 1 ? "range" : "row";
10646
+ const B = R && C.length > 1 ? "range" : "row";
10642
10647
  (W = (H = y.rowSelection) == null ? void 0 : H.onChange) == null || W.call(H, L, f(L), { type: B }), y.lastRowSelectionKeyRef.current = b, y.rowSelectionShiftKeyRef.current = !1;
10643
10648
  },
10644
10649
  "aria-label": `Выбрать строку ${s}`,
@@ -10739,13 +10744,13 @@ function Gd({
10739
10744
  rowKey: h,
10740
10745
  rowSelection: b,
10741
10746
  highlightNewRows: I = !1,
10742
- pagination: T,
10747
+ pagination: S,
10743
10748
  showHeader: A = !0,
10744
10749
  showSorterTooltip: w = !0,
10745
10750
  onRow: D,
10746
10751
  locale: R,
10747
- tbodyDataTestId: S,
10748
- rowDataTestId: k = "item",
10752
+ tbodyDataTestId: C,
10753
+ rowDataTestId: T = "item",
10749
10754
  cellDataTestId: z
10750
10755
  }) {
10751
10756
  var Rr, Mr, Dr;
@@ -10901,8 +10906,8 @@ function Gd({
10901
10906
  fixedShadowEdges: Te,
10902
10907
  scrollState: je,
10903
10908
  highlightNewRows: I,
10904
- tbodyDataTestId: S,
10905
- rowDataTestId: k,
10909
+ tbodyDataTestId: C,
10910
+ rowDataTestId: T,
10906
10911
  cellDataTestId: z
10907
10912
  }), [
10908
10913
  L,
@@ -10915,8 +10920,8 @@ function Gd({
10915
10920
  Te,
10916
10921
  je,
10917
10922
  I,
10918
- S,
10919
- k,
10923
+ C,
10924
+ T,
10920
10925
  z
10921
10926
  ]), Cr = de(null), Ue = Cr.current, vo = !!(Ue && Ue.selectedRowKeysSignature !== Ir && Sl(Ue.inputs, Sr)), kr = Ue ? vo ? Ue.version : Ue.version + 1 : 0;
10922
10927
  kt(() => {
@@ -10932,7 +10937,7 @@ function Gd({
10932
10937
  P.current = !1;
10933
10938
  }));
10934
10939
  }, []);
10935
- return /* @__PURE__ */ C(
10940
+ return /* @__PURE__ */ k(
10936
10941
  "div",
10937
10942
  {
10938
10943
  className: m(
@@ -10951,7 +10956,7 @@ function Gd({
10951
10956
  ),
10952
10957
  style: xo,
10953
10958
  onScroll: () => Tr("header"),
10954
- children: /* @__PURE__ */ C(
10959
+ children: /* @__PURE__ */ k(
10955
10960
  "table",
10956
10961
  {
10957
10962
  className: m(
@@ -10994,7 +10999,7 @@ function Gd({
10994
10999
  ),
10995
11000
  style: yo,
10996
11001
  onScroll: () => Tr("body"),
10997
- children: /* @__PURE__ */ C(
11002
+ children: /* @__PURE__ */ k(
10998
11003
  "table",
10999
11004
  {
11000
11005
  className: m(
@@ -11044,8 +11049,8 @@ function Gd({
11044
11049
  fixedShadowEdges: Te,
11045
11050
  scrollState: je,
11046
11051
  highlightNewRows: I,
11047
- tbodyDataTestId: S,
11048
- rowDataTestId: k,
11052
+ tbodyDataTestId: C,
11053
+ rowDataTestId: T,
11049
11054
  cellDataTestId: z
11050
11055
  }
11051
11056
  )
@@ -11076,8 +11081,8 @@ function Cl({
11076
11081
  className: "animate-pulse",
11077
11082
  role: "status",
11078
11083
  "aria-label": "Загрузка карточки",
11079
- children: /* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-3", children: [
11080
- /* @__PURE__ */ C("div", { className: "flex w-full items-start justify-between gap-3", children: [
11084
+ children: /* @__PURE__ */ k("div", { className: "flex w-full flex-col gap-3", children: [
11085
+ /* @__PURE__ */ k("div", { className: "flex w-full items-start justify-between gap-3", children: [
11081
11086
  /* @__PURE__ */ n(
11082
11087
  "div",
11083
11088
  {
@@ -11094,7 +11099,7 @@ function Cl({
11094
11099
  )
11095
11100
  ] }),
11096
11101
  /* @__PURE__ */ n("div", { className: "h-px w-full bg-default-background/70" }),
11097
- /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: a }).map((c, f) => /* @__PURE__ */ C(
11102
+ /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: a }).map((c, f) => /* @__PURE__ */ k(
11098
11103
  "div",
11099
11104
  {
11100
11105
  className: "flex w-full items-center justify-between gap-3",
@@ -11117,7 +11122,7 @@ function Cl({
11117
11122
  },
11118
11123
  `card_skeleton_${l}_${f}`
11119
11124
  )) }),
11120
- /* @__PURE__ */ C("div", { className: "flex w-full items-center justify-end gap-2 pt-1", children: [
11125
+ /* @__PURE__ */ k("div", { className: "flex w-full items-center justify-end gap-2 pt-1", children: [
11121
11126
  /* @__PURE__ */ n(
11122
11127
  "div",
11123
11128
  {
@@ -11156,10 +11161,10 @@ function Kd({
11156
11161
  linesCount: 6
11157
11162
  }
11158
11163
  ) }) : u.length === 0 ? /* @__PURE__ */ n("div", { className: o, "aria-busy": t, children: /* @__PURE__ */ n(fo, { locale: a }) }) : /* @__PURE__ */ n("div", { className: m("flex flex-col gap-2", o), "aria-busy": t, children: u.map((d, x) => {
11159
- var T, A, w, D, R;
11160
- const g = (T = s == null ? void 0 : s(d, x)) != null ? T : {}, p = typeof g.onClick == "function", y = (A = i == null ? void 0 : i(d, x)) != null ? A : x, h = g.onClick, b = (S) => {
11161
- var k;
11162
- (k = g.onKeyDown) == null || k.call(g, S), p && (S.key !== "Enter" && S.key !== " " || (S.preventDefault(), S.currentTarget.click()));
11164
+ var S, A, w, D, R;
11165
+ const g = (S = s == null ? void 0 : s(d, x)) != null ? S : {}, p = typeof g.onClick == "function", y = (A = i == null ? void 0 : i(d, x)) != null ? A : x, h = g.onClick, b = (C) => {
11166
+ var T;
11167
+ (T = g.onKeyDown) == null || T.call(g, C), p && (C.key !== "Enter" && C.key !== " " || (C.preventDefault(), C.currentTarget.click()));
11163
11168
  }, I = m(
11164
11169
  p && "cursor-pointer hover:bg-[#F6F6F7]",
11165
11170
  p && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
@@ -11195,7 +11200,7 @@ function jd({
11195
11200
  const s = (l, c) => {
11196
11201
  r(l, c);
11197
11202
  };
11198
- return /* @__PURE__ */ C(qe, { children: [
11203
+ return /* @__PURE__ */ k(qe, { children: [
11199
11204
  /* @__PURE__ */ n(Wt, { asChild: !0, children: /* @__PURE__ */ n(
11200
11205
  oe,
11201
11206
  {
@@ -11210,20 +11215,20 @@ function jd({
11210
11215
  title: o
11211
11216
  }
11212
11217
  ) }),
11213
- /* @__PURE__ */ C(
11218
+ /* @__PURE__ */ k(
11214
11219
  We,
11215
11220
  {
11216
11221
  align: "end",
11217
11222
  sideOffset: 8,
11218
11223
  className: "w-72 rounded-lg border border-border bg-popover p-1 shadow-md",
11219
11224
  children: [
11220
- e && /* @__PURE__ */ C("div", { className: "px-3 pt-2", children: [
11225
+ e && /* @__PURE__ */ k("div", { className: "px-3 pt-2", children: [
11221
11226
  /* @__PURE__ */ n(K, { weight: "bold", children: e }),
11222
11227
  /* @__PURE__ */ n(hs, { className: "mt-2" })
11223
11228
  ] }),
11224
11229
  /* @__PURE__ */ n("div", { className: "flex flex-col", "data-testid": a, children: t.map((l) => {
11225
11230
  const c = () => s(l.key, !l.enabled);
11226
- return /* @__PURE__ */ C(
11231
+ return /* @__PURE__ */ k(
11227
11232
  "label",
11228
11233
  {
11229
11234
  className: m(
@@ -11324,7 +11329,7 @@ const Ml = v.forwardRef(
11324
11329
  "disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400 disabled:shadow-none",
11325
11330
  r
11326
11331
  ), g = () => o ? v.isValidElement(o) ? o : /* @__PURE__ */ n(Y, { icon: o }) : null;
11327
- return /* @__PURE__ */ C(
11332
+ return /* @__PURE__ */ k(
11328
11333
  Ve.Trigger,
11329
11334
  F(N({
11330
11335
  ref: f,
@@ -11419,7 +11424,7 @@ const El = ge(
11419
11424
  "className",
11420
11425
  "data-testid"
11421
11426
  ]);
11422
- const g = () => a ? /* @__PURE__ */ n(Y, N({ icon: a, size: 12 }, i)) : null, p = /* @__PURE__ */ C(ve, { children: [
11427
+ const g = () => a ? /* @__PURE__ */ n(Y, N({ icon: a, size: 12 }, i)) : null, p = /* @__PURE__ */ k(ve, { children: [
11423
11428
  o === "start" && g(),
11424
11429
  s,
11425
11430
  o === "end" && g()
@@ -11514,9 +11519,9 @@ const Ll = v.forwardRef(
11514
11519
  "size"
11515
11520
  ]);
11516
11521
  const h = Fl(s, l, x.placeholder, x.value);
11517
- return Xr(g, () => h.current, [h]), /* @__PURE__ */ C("div", { className: "w-full", children: [
11522
+ return Xr(g, () => h.current, [h]), /* @__PURE__ */ k("div", { className: "w-full", children: [
11518
11523
  o && /* @__PURE__ */ n(K, { variant: "p2", weight: "medium", className: "mb-1.5", children: o }),
11519
- /* @__PURE__ */ C(
11524
+ /* @__PURE__ */ k(
11520
11525
  "div",
11521
11526
  {
11522
11527
  className: m(
@@ -11620,7 +11625,7 @@ function $d({
11620
11625
  }, y = (h) => {
11621
11626
  f == null || f(h), d && !Jr(d) && (x(""), t == null || t(void 0));
11622
11627
  };
11623
- return /* @__PURE__ */ C("div", { className: m("w-full", a), children: [
11628
+ return /* @__PURE__ */ k("div", { className: m("w-full", a), children: [
11624
11629
  c && /* @__PURE__ */ n(
11625
11630
  K,
11626
11631
  {
@@ -11633,7 +11638,7 @@ function $d({
11633
11638
  children: c
11634
11639
  }
11635
11640
  ),
11636
- /* @__PURE__ */ C("div", { className: "relative flex w-full items-center", children: [
11641
+ /* @__PURE__ */ k("div", { className: "relative flex w-full items-center", children: [
11637
11642
  /* @__PURE__ */ n(
11638
11643
  "input",
11639
11644
  {
@@ -11662,7 +11667,7 @@ function $d({
11662
11667
  "data-testid": u
11663
11668
  }
11664
11669
  ),
11665
- /* @__PURE__ */ C("div", { className: "pointer-events-none absolute right-3 flex items-center", children: [
11670
+ /* @__PURE__ */ k("div", { className: "pointer-events-none absolute right-3 flex items-center", children: [
11666
11671
  /* @__PURE__ */ n(Y, { icon: "TimeIcon", className: "text-muted-foreground" }),
11667
11672
  s && /* @__PURE__ */ n(
11668
11673
  Y,
@@ -11705,7 +11710,7 @@ function Yd({
11705
11710
  hasToError: () => H(s) ? !0 : W(s) && !!s.to,
11706
11711
  getErrorText: () => H(s) ? s : W(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
11707
11712
  };
11708
- }, [s]), { hasAnyError: I, hasFromError: T, hasToError: A, getErrorText: w } = b;
11713
+ }, [s]), { hasAnyError: I, hasFromError: S, hasToError: A, getErrorText: w } = b;
11709
11714
  v.useEffect(() => {
11710
11715
  x((e == null ? void 0 : e.from) || ""), p((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
11711
11716
  }, [e]);
@@ -11719,24 +11724,24 @@ function Yd({
11719
11724
  return !1;
11720
11725
  const [M, P] = H.split(":").map(Number);
11721
11726
  return M >= 0 && M <= 23 && P >= 0 && P <= 59;
11722
- }, S = (H, W) => {
11727
+ }, C = (H, W) => {
11723
11728
  const M = {
11724
11729
  from: H || void 0,
11725
11730
  to: W || void 0
11726
11731
  };
11727
11732
  !M.from && !M.to ? t == null || t(void 0) : t == null || t(M);
11728
- }, k = (H) => {
11733
+ }, T = (H) => {
11729
11734
  const W = D(H.target.value, y.current);
11730
- x(W), y.current = W, (W === "" || W.length === 5 && R(W)) && S(W, g);
11735
+ x(W), y.current = W, (W === "" || W.length === 5 && R(W)) && C(W, g);
11731
11736
  }, z = (H) => {
11732
11737
  const W = D(H.target.value, h.current);
11733
- p(W), h.current = W, (W === "" || W.length === 5 && R(W)) && S(d, W);
11738
+ p(W), h.current = W, (W === "" || W.length === 5 && R(W)) && C(d, W);
11734
11739
  }, L = (H) => {
11735
- f == null || f(H), d && !R(d) && (x(""), S("", g));
11740
+ f == null || f(H), d && !R(d) && (x(""), C("", g));
11736
11741
  }, B = (H) => {
11737
- f == null || f(H), g && !R(g) && (p(""), S(d, ""));
11742
+ f == null || f(H), g && !R(g) && (p(""), C(d, ""));
11738
11743
  };
11739
- return /* @__PURE__ */ C("div", { className: m("w-full", a), children: [
11744
+ return /* @__PURE__ */ k("div", { className: m("w-full", a), children: [
11740
11745
  c && /* @__PURE__ */ n(
11741
11746
  K,
11742
11747
  {
@@ -11749,7 +11754,7 @@ function Yd({
11749
11754
  children: c
11750
11755
  }
11751
11756
  ),
11752
- /* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */ C(
11757
+ /* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */ k(
11753
11758
  "div",
11754
11759
  {
11755
11760
  className: m(
@@ -11767,13 +11772,13 @@ function Yd({
11767
11772
  }
11768
11773
  ),
11769
11774
  children: [
11770
- /* @__PURE__ */ C("div", { className: "flex w-full items-center", children: [
11775
+ /* @__PURE__ */ k("div", { className: "flex w-full items-center", children: [
11771
11776
  /* @__PURE__ */ n(
11772
11777
  "input",
11773
11778
  {
11774
11779
  type: "text",
11775
11780
  value: d,
11776
- onChange: k,
11781
+ onChange: T,
11777
11782
  onBlur: L,
11778
11783
  placeholder: r.from,
11779
11784
  disabled: o,
@@ -11782,7 +11787,7 @@ function Yd({
11782
11787
  "font-graphik w-0 flex-1 border-none bg-transparent outline-none",
11783
11788
  "placeholder:text-muted-foreground",
11784
11789
  "[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
11785
- T() && "text-destructive",
11790
+ S() && "text-destructive",
11786
11791
  {
11787
11792
  "block h-auto p-0 text-[14px] leading-5": i === "md",
11788
11793
  "block h-auto p-0 text-[16px] leading-[22px]": i === "lg",
@@ -11824,7 +11829,7 @@ function Yd({
11824
11829
  }
11825
11830
  )
11826
11831
  ] }),
11827
- /* @__PURE__ */ C("div", { className: "pointer-events-none ml-2 flex items-center gap-1.5", children: [
11832
+ /* @__PURE__ */ k("div", { className: "pointer-events-none ml-2 flex items-center gap-1.5", children: [
11828
11833
  /* @__PURE__ */ n(Y, { icon: "TimeIcon", className: "text-muted-foreground" }),
11829
11834
  I() && /* @__PURE__ */ n(
11830
11835
  Y,
@@ -11844,8 +11849,8 @@ function Yd({
11844
11849
  }
11845
11850
  const Zd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => {
11846
11851
  const a = r.active && !r.completed ? r.color : void 0;
11847
- return /* @__PURE__ */ C("div", { className: "flex", children: [
11848
- /* @__PURE__ */ C("div", { className: "relative mr-4 flex flex-col items-center", children: [
11852
+ return /* @__PURE__ */ k("div", { className: "flex", children: [
11853
+ /* @__PURE__ */ k("div", { className: "relative mr-4 flex flex-col items-center", children: [
11849
11854
  /* @__PURE__ */ n(
11850
11855
  "div",
11851
11856
  {
@@ -11860,8 +11865,8 @@ const Zd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className:
11860
11865
  ),
11861
11866
  o < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
11862
11867
  ] }),
11863
- /* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */ C("div", { className: "flex items-start justify-between", children: [
11864
- /* @__PURE__ */ C("div", { className: "flex-1", children: [
11868
+ /* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */ k("div", { className: "flex items-start justify-between", children: [
11869
+ /* @__PURE__ */ k("div", { className: "flex-1", children: [
11865
11870
  /* @__PURE__ */ n(
11866
11871
  K,
11867
11872
  {
@@ -12203,7 +12208,7 @@ const Hl = v.forwardRef(
12203
12208
  "side",
12204
12209
  "children"
12205
12210
  ]);
12206
- return /* @__PURE__ */ n(ze.Portal, { children: /* @__PURE__ */ C(
12211
+ return /* @__PURE__ */ n(ze.Portal, { children: /* @__PURE__ */ k(
12207
12212
  ze.Content,
12208
12213
  F(N({
12209
12214
  ref: s,
@@ -12375,7 +12380,7 @@ function ho({
12375
12380
  return null;
12376
12381
  },
12377
12382
  [e, g, t]
12378
- ), T = Q(
12383
+ ), S = Q(
12379
12384
  (M, P) => {
12380
12385
  x == null || x({
12381
12386
  file: M,
@@ -12392,7 +12397,7 @@ function ho({
12392
12397
  const O = F(N({}, G), {
12393
12398
  status: "uploading"
12394
12399
  });
12395
- P = P.map((Z) => Z.uid === G.uid ? O : Z), T(O, P);
12400
+ P = P.map((Z) => Z.uid === G.uid ? O : Z), S(O, P);
12396
12401
  try {
12397
12402
  const Z = new FormData();
12398
12403
  Z.append(s, G.originFileObj);
@@ -12412,27 +12417,27 @@ function ho({
12412
12417
  response: X,
12413
12418
  error: te
12414
12419
  });
12415
- P = P.map((J) => J.uid === G.uid ? j : J), T(j, P), i == null || i(te);
12420
+ P = P.map((J) => J.uid === G.uid ? j : J), S(j, P), i == null || i(te);
12416
12421
  continue;
12417
12422
  }
12418
12423
  const $ = F(N({}, O), {
12419
12424
  status: "done",
12420
12425
  response: X
12421
12426
  });
12422
- P = P.map((te) => te.uid === G.uid ? $ : te), T($, P);
12427
+ P = P.map((te) => te.uid === G.uid ? $ : te), S($, P);
12423
12428
  } catch (Z) {
12424
12429
  const re = qr(Z, g), U = F(N({}, O), {
12425
12430
  status: "error",
12426
12431
  error: re
12427
12432
  });
12428
- P = P.map((X) => X.uid === G.uid ? U : X), T(U, P), i == null || i(re);
12433
+ P = P.map((X) => X.uid === G.uid ? U : X), S(U, P), i == null || i(re);
12429
12434
  }
12430
12435
  }
12431
12436
  }),
12432
12437
  [
12433
12438
  l,
12434
12439
  f,
12435
- T,
12440
+ S,
12436
12441
  u,
12437
12442
  g,
12438
12443
  c,
@@ -12463,12 +12468,12 @@ function ho({
12463
12468
  ), R = Q(() => {
12464
12469
  var M;
12465
12470
  r || (M = h.current) == null || M.click();
12466
- }, [r]), S = Q(
12471
+ }, [r]), C = Q(
12467
12472
  (M) => {
12468
12473
  a == null || a(M);
12469
12474
  },
12470
12475
  [a]
12471
- ), k = Q(
12476
+ ), T = Q(
12472
12477
  (M) => {
12473
12478
  M.preventDefault(), M.stopPropagation(), b.current += 1, M.dataTransfer.items && M.dataTransfer.items.length > 0 && y(!0);
12474
12479
  },
@@ -12506,7 +12511,7 @@ function ho({
12506
12511
  return F(N({}, P), {
12507
12512
  onDragEnter: (G) => {
12508
12513
  var O;
12509
- (O = M.onDragEnter) == null || O.call(M, G), G.defaultPrevented || k(G);
12514
+ (O = M.onDragEnter) == null || O.call(M, G), G.defaultPrevented || T(G);
12510
12515
  },
12511
12516
  onDragLeave: (G) => {
12512
12517
  var O;
@@ -12522,14 +12527,14 @@ function ho({
12522
12527
  }
12523
12528
  });
12524
12529
  },
12525
- [H, k, z, L, B]
12530
+ [H, T, z, L, B]
12526
12531
  );
12527
12532
  return ie(
12528
12533
  () => ({
12529
12534
  isDragging: p,
12530
12535
  inputRef: h,
12531
12536
  handleInputChange: D,
12532
- handleDeleteFile: S,
12537
+ handleDeleteFile: C,
12533
12538
  handleTriggerClick: R,
12534
12539
  getTriggerProps: H,
12535
12540
  getDropzoneProps: W
@@ -12537,7 +12542,7 @@ function ho({
12537
12542
  [
12538
12543
  W,
12539
12544
  H,
12540
- S,
12545
+ C,
12541
12546
  D,
12542
12547
  R,
12543
12548
  p
@@ -12565,13 +12570,13 @@ const go = v.forwardRef(
12565
12570
  dropzoneText: h,
12566
12571
  hint: b,
12567
12572
  buttonText: I,
12568
- errorText: T,
12573
+ errorText: S,
12569
12574
  locale: A = "ru",
12570
12575
  name: w,
12571
12576
  action: D,
12572
12577
  method: R,
12573
- data: S,
12574
- headers: k,
12578
+ data: C,
12579
+ headers: T,
12575
12580
  withCredentials: z,
12576
12581
  onChange: L,
12577
12582
  "data-testId": B
@@ -12593,8 +12598,8 @@ const go = v.forwardRef(
12593
12598
  name: w,
12594
12599
  action: D,
12595
12600
  method: R,
12596
- data: S,
12597
- headers: k,
12601
+ data: C,
12602
+ headers: T,
12598
12603
  withCredentials: z,
12599
12604
  onChange: L,
12600
12605
  locale: A
@@ -12604,7 +12609,7 @@ const go = v.forwardRef(
12604
12609
  const te = 1024, j = ["Bytes", "KB", "MB", "GB"], J = Math.floor(Math.log($) / Math.log(te));
12605
12610
  return `${Math.round($ / Lr(te, J))} ${j[J]}`;
12606
12611
  };
12607
- return /* @__PURE__ */ C(
12612
+ return /* @__PURE__ */ k(
12608
12613
  "div",
12609
12614
  {
12610
12615
  ref: H,
@@ -12623,8 +12628,8 @@ const go = v.forwardRef(
12623
12628
  disabled: o
12624
12629
  }
12625
12630
  ),
12626
- (d.length === 0 || p) && /* @__PURE__ */ C("div", { className: "flex flex-col gap-1.5", children: [
12627
- /* @__PURE__ */ C(
12631
+ (d.length === 0 || p) && /* @__PURE__ */ k("div", { className: "flex flex-col gap-1.5", children: [
12632
+ /* @__PURE__ */ k(
12628
12633
  "div",
12629
12634
  F(N({}, U({
12630
12635
  className: m(
@@ -12636,9 +12641,9 @@ const go = v.forwardRef(
12636
12641
  )
12637
12642
  })), {
12638
12643
  children: [
12639
- /* @__PURE__ */ C("div", { className: m("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
12644
+ /* @__PURE__ */ k("div", { className: m("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
12640
12645
  /* @__PURE__ */ n(Y, { icon: "UploadIcon", size: 32, className: "text-secondary" }),
12641
- /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
12646
+ /* @__PURE__ */ k("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
12642
12647
  /* @__PURE__ */ n(
12643
12648
  K,
12644
12649
  {
@@ -12650,7 +12655,7 @@ const go = v.forwardRef(
12650
12655
  ),
12651
12656
  /* @__PURE__ */ n(K, { variant: "p2", textColor: "secondary", className: "text-center", children: W.dragHere })
12652
12657
  ] }),
12653
- T && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "text-center", children: T })
12658
+ S && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "text-center", children: S })
12654
12659
  ] }),
12655
12660
  l && /* @__PURE__ */ n(oe, { variant: "dashed", size: "md", disabled: o, children: P })
12656
12661
  ]
@@ -12669,7 +12674,7 @@ const go = v.forwardRef(
12669
12674
  g && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(Ys, { value: x }) }),
12670
12675
  d.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: d.map(($) => {
12671
12676
  const te = $.status === "error", j = te ? "FileErrorIcon" : "FileSuccessIcon";
12672
- return /* @__PURE__ */ C(
12677
+ return /* @__PURE__ */ k(
12673
12678
  Ze,
12674
12679
  {
12675
12680
  bordered: !0,
@@ -12680,7 +12685,7 @@ const go = v.forwardRef(
12680
12685
  justify: "between",
12681
12686
  className: m("group transition-colors border-border"),
12682
12687
  children: [
12683
- /* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
12688
+ /* @__PURE__ */ k("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
12684
12689
  /* @__PURE__ */ n(
12685
12690
  Y,
12686
12691
  {
@@ -12688,7 +12693,7 @@ const go = v.forwardRef(
12688
12693
  size: 24
12689
12694
  }
12690
12695
  ),
12691
- /* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 flex-col", children: [
12696
+ /* @__PURE__ */ k("div", { className: "flex min-w-0 flex-1 flex-col", children: [
12692
12697
  /* @__PURE__ */ n(K, { variant: "p2", className: "truncate", children: $.name }),
12693
12698
  (te ? !!$.error : $.size !== void 0) && /* @__PURE__ */ n(
12694
12699
  K,
@@ -12745,7 +12750,7 @@ function jl({
12745
12750
  children: h,
12746
12751
  className: b,
12747
12752
  onClick: I,
12748
- buttonProps: T
12753
+ buttonProps: S
12749
12754
  }) {
12750
12755
  const { inputRef: A, handleInputChange: w, handleTriggerClick: D, getTriggerProps: R } = ho({
12751
12756
  accept: t,
@@ -12764,7 +12769,7 @@ function jl({
12764
12769
  onChange: p,
12765
12770
  locale: y
12766
12771
  });
12767
- return /* @__PURE__ */ C(ve, { children: [
12772
+ return /* @__PURE__ */ k(ve, { children: [
12768
12773
  /* @__PURE__ */ n(
12769
12774
  "input",
12770
12775
  {
@@ -12787,11 +12792,11 @@ function jl({
12787
12792
  })
12788
12793
  ) : /* @__PURE__ */ n(
12789
12794
  oe,
12790
- F(N({}, T), {
12791
- className: m(b, T == null ? void 0 : T.className),
12795
+ F(N({}, S), {
12796
+ className: m(b, S == null ? void 0 : S.className),
12792
12797
  disabled: a,
12793
- onClick: (S) => {
12794
- I == null || I(S), S.defaultPrevented || D();
12798
+ onClick: (C) => {
12799
+ I == null || I(C), C.defaultPrevented || D();
12795
12800
  },
12796
12801
  children: h != null ? h : $t[y].selectFile
12797
12802
  })