konsolpro-custom-ui 0.0.451 → 0.0.452

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
@@ -918,16 +918,16 @@ const mr = ye(
918
918
  "onClick"
919
919
  ]);
920
920
  var H;
921
- const A = o ? Et : "button", w = !!d, D = c && !w, R = c && w, k = c || w;
922
- let T;
923
- R ? T = "disabled-loading" : D ? T = "loading" : w && (T = "disabled");
924
- const B = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", F = () => /* @__PURE__ */ n(
921
+ const A = o ? Et : "button", w = !!d, D = c && !w, T = c && w, k = c || w;
922
+ let R;
923
+ T ? R = "disabled-loading" : D ? R = "loading" : w && (R = "disabled");
924
+ const z = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", F = () => /* @__PURE__ */ n(
925
925
  Ge,
926
926
  {
927
927
  size: 16,
928
928
  className: m(
929
929
  "absolute left-[50%] -translate-x-1/2",
930
- B()
930
+ z()
931
931
  )
932
932
  }
933
933
  ), V = () => l ? c ? F() : /* @__PURE__ */ n(Z, I({ icon: l }, f)) : null, W = /* @__PURE__ */ C(we, { children: [
@@ -947,7 +947,7 @@ const mr = ye(
947
947
  iconOnly: a,
948
948
  isActive: i,
949
949
  isLoading: c,
950
- isLoadingAndDisabled: R,
950
+ isLoadingAndDisabled: T,
951
951
  iconPosition: s
952
952
  }),
953
953
  x && ((H = ea[t]) == null ? void 0 : H[x]),
@@ -957,7 +957,7 @@ const mr = ye(
957
957
  "aria-disabled": k || void 0,
958
958
  "aria-busy": c || void 0,
959
959
  ref: b,
960
- "data-state": T,
960
+ "data-state": R,
961
961
  type: D && !o ? "button" : p,
962
962
  onClick: (M) => {
963
963
  if (k) {
@@ -1033,7 +1033,7 @@ const Hr = ye("", {
1033
1033
  const b = (A = (N = x.text) != null ? N : (S = g.currentTarget.textContent) == null ? void 0 : S.trim()) != null ? A : "";
1034
1034
  try {
1035
1035
  yield navigator.clipboard.writeText(b), (w = x.onCopy) == null || w.call(x), d(!0), setTimeout(() => d(!1), (D = x.duration) != null ? D : 1500);
1036
- } catch (R) {
1036
+ } catch (T) {
1037
1037
  }
1038
1038
  }),
1039
1039
  [x]
@@ -1560,7 +1560,7 @@ function ma(e, t, r) {
1560
1560
  return Number.isFinite(o) && (i = Math.max(i, Number(o))), Number.isFinite(a) && (i = Math.min(i, Number(a))), i;
1561
1561
  }
1562
1562
  const Le = y.forwardRef(
1563
- (F, B) => {
1563
+ (F, z) => {
1564
1564
  var V = F, {
1565
1565
  className: e,
1566
1566
  type: t,
@@ -1585,9 +1585,9 @@ const Le = y.forwardRef(
1585
1585
  onStepDown: A,
1586
1586
  onStepUp: w,
1587
1587
  onChange: D,
1588
- value: R,
1588
+ value: T,
1589
1589
  "data-testid": k
1590
- } = V, T = _(V, [
1590
+ } = V, R = _(V, [
1591
1591
  "className",
1592
1592
  "type",
1593
1593
  "size",
@@ -1614,18 +1614,18 @@ const Le = y.forwardRef(
1614
1614
  "value",
1615
1615
  "data-testid"
1616
1616
  ]);
1617
- const W = y.useRef(null), H = R != null && R.toString().length > 0, M = S && H && !d, P = H ? ua(String(R)) : null, G = Math.max(
1618
- Wr(T.step),
1619
- Wr(R)
1620
- ), z = y.useCallback(
1617
+ const W = y.useRef(null), H = T != null && T.toString().length > 0, M = S && H && !d, B = H ? ua(String(T)) : null, G = Math.max(
1618
+ Wr(R.step),
1619
+ Wr(T)
1620
+ ), P = y.useCallback(
1621
1621
  (U) => {
1622
- if (W.current = U, typeof B == "function") {
1623
- B(U);
1622
+ if (W.current = U, typeof z == "function") {
1623
+ z(U);
1624
1624
  return;
1625
1625
  }
1626
- B && (B.current = U);
1626
+ z && (z.current = U);
1627
1627
  },
1628
- [B]
1628
+ [z]
1629
1629
  ), Y = y.useCallback((U) => {
1630
1630
  const Q = W.current;
1631
1631
  Q && (Q.value = U, D && D({
@@ -1637,17 +1637,17 @@ const Le = y.forwardRef(
1637
1637
  var ge;
1638
1638
  if (d)
1639
1639
  return;
1640
- const Q = Number((ge = T.step) != null ? ge : 1);
1640
+ const Q = Number((ge = R.step) != null ? ge : 1);
1641
1641
  if (!Number.isFinite(Q) || Q === 0)
1642
1642
  return;
1643
- const j = P != null ? P : 0, J = ma(
1643
+ const j = B != null ? B : 0, J = ma(
1644
1644
  j + U * Q,
1645
- T.min,
1646
- T.max
1645
+ R.min,
1646
+ R.max
1647
1647
  ), ne = fa(J, G);
1648
1648
  Y(ne);
1649
1649
  },
1650
- [G, d, P, T.max, T.min, T.step, Y]
1650
+ [G, d, B, R.max, R.min, R.step, Y]
1651
1651
  ), $ = y.useCallback(() => {
1652
1652
  if (A) {
1653
1653
  A();
@@ -1731,13 +1731,13 @@ const Le = y.forwardRef(
1731
1731
  },
1732
1732
  e
1733
1733
  ),
1734
- ref: z,
1735
- value: R,
1734
+ ref: P,
1735
+ value: T,
1736
1736
  onChange: D,
1737
1737
  disabled: d,
1738
1738
  autoFocus: v,
1739
1739
  "data-testid": k
1740
- }, T)
1740
+ }, R)
1741
1741
  ),
1742
1742
  (h || o || l || i || g || M || N) && /* @__PURE__ */ C(
1743
1743
  "div",
@@ -2028,22 +2028,22 @@ function Rd({
2028
2028
  renderOption: d,
2029
2029
  size: x = "md"
2030
2030
  }) {
2031
- var R;
2031
+ var T;
2032
2032
  const [h, p] = y.useState(!1), [v, g] = y.useState(
2033
- t && ((R = e.find((k) => k.value === t)) == null ? void 0 : R.label) || ""
2033
+ t && ((T = e.find((k) => k.value === t)) == null ? void 0 : T.label) || ""
2034
2034
  ), b = y.useRef(null), S = y.useMemo(() => e.filter(
2035
2035
  (k) => k.label.toLowerCase().includes(v.toLowerCase())
2036
2036
  ), [e, v]);
2037
2037
  y.useEffect(() => {
2038
2038
  if (t) {
2039
- const k = e.find((T) => T.value === t);
2039
+ const k = e.find((R) => R.value === t);
2040
2040
  g((k == null ? void 0 : k.label) || "");
2041
2041
  }
2042
2042
  }, [t]);
2043
2043
  const N = y.useCallback(
2044
2044
  (k) => {
2045
- const T = e.find((B) => B.value === k);
2046
- T && (r(T.value, T), g(T.label)), p(!1);
2045
+ const R = e.find((z) => z.value === k);
2046
+ R && (r(R.value, R), g(R.label)), p(!1);
2047
2047
  },
2048
2048
  [e, r]
2049
2049
  ), A = y.useCallback(
@@ -2058,8 +2058,8 @@ function Rd({
2058
2058
  }, 0));
2059
2059
  }, [h]), D = y.useCallback((k) => {
2060
2060
  p(k), k && setTimeout(() => {
2061
- var T;
2062
- (T = b.current) == null || T.focus();
2061
+ var R;
2062
+ (R = b.current) == null || R.focus();
2063
2063
  }, 0);
2064
2064
  }, []);
2065
2065
  return /* @__PURE__ */ n(Xe, { open: h, onOpenChange: D, children: /* @__PURE__ */ C("div", { className: "relative", children: [
@@ -2603,10 +2603,10 @@ const Ed = (f) => {
2603
2603
  i.date.getFullYear(),
2604
2604
  i.date.getMonth(),
2605
2605
  1
2606
- )), D = d.findIndex((R) => R.getTime() === w.getTime());
2606
+ )), D = d.findIndex((T) => T.getTime() === w.getTime());
2607
2607
  if (D !== -1) {
2608
- const R = D * Pe;
2609
- (A = p.current) == null || A.scrollTo({ left: Math.max(0, R), behavior: "smooth" });
2608
+ const T = D * Pe;
2609
+ (A = p.current) == null || A.scrollTo({ left: Math.max(0, T), behavior: "smooth" });
2610
2610
  }
2611
2611
  }
2612
2612
  setTimeout(() => {
@@ -2619,17 +2619,17 @@ const Ed = (f) => {
2619
2619
  const S = de([]);
2620
2620
  return xe(() => {
2621
2621
  if (p.current && d.length > 0 && S.current.length > 0) {
2622
- const A = S.current[0], w = d[0], D = d.findIndex((R) => R.getTime() === A.getTime());
2622
+ const A = S.current[0], w = d[0], D = d.findIndex((T) => T.getTime() === A.getTime());
2623
2623
  if (D > 0)
2624
2624
  p.current.scrollLeft += D * Pe;
2625
2625
  else if (D === -1) {
2626
- const R = A.getTime(), k = w.getTime();
2627
- if (k < R) {
2628
- const T = Math.round((R - k) / 864e5);
2629
- p.current.scrollLeft += T * Pe;
2626
+ const T = A.getTime(), k = w.getTime();
2627
+ if (k < T) {
2628
+ const R = Math.round((T - k) / 864e5);
2629
+ p.current.scrollLeft += R * Pe;
2630
2630
  } else {
2631
- const T = Math.round((k - R) / 864e5);
2632
- p.current.scrollLeft = Math.max(0, p.current.scrollLeft - T * Pe);
2631
+ const R = Math.round((k - T) / 864e5);
2632
+ p.current.scrollLeft = Math.max(0, p.current.scrollLeft - R * Pe);
2633
2633
  }
2634
2634
  }
2635
2635
  }
@@ -2783,15 +2783,15 @@ const hr = y.forwardRef(
2783
2783
  "onClear",
2784
2784
  "inlineSelect"
2785
2785
  ]);
2786
- const D = f || c && c.length > 0, R = y.useRef(null), [k, T] = y.useState(2);
2786
+ const D = f || c && c.length > 0, T = y.useRef(null), [k, R] = y.useState(2);
2787
2787
  return y.useLayoutEffect(() => {
2788
- if (!D || !(c != null && c.length) || !R.current)
2788
+ if (!D || !(c != null && c.length) || !T.current)
2789
2789
  return;
2790
- const B = () => {
2791
- const V = R.current;
2790
+ const z = () => {
2791
+ const V = T.current;
2792
2792
  if (!V)
2793
2793
  return;
2794
- const W = V.offsetWidth, H = u ? 60 : 0, M = 20, P = a ? 20 : 0, Y = W - H - M - P - 16 - 30;
2794
+ const W = V.offsetWidth, H = u ? 60 : 0, M = 20, B = a ? 20 : 0, Y = W - H - M - B - 16 - 30;
2795
2795
  let re = 0, $ = 0;
2796
2796
  const ee = 12, U = 20, Q = 4, j = 7;
2797
2797
  for (let J = 0; J < c.length; J++) {
@@ -2801,11 +2801,11 @@ const hr = y.forwardRef(
2801
2801
  else
2802
2802
  break;
2803
2803
  }
2804
- T(Math.max(1, re));
2804
+ R(Math.max(1, re));
2805
2805
  };
2806
- B();
2807
- const F = new ResizeObserver(B);
2808
- return F.observe(R.current), () => {
2806
+ z();
2807
+ const F = new ResizeObserver(z);
2808
+ return F.observe(T.current), () => {
2809
2809
  F.disconnect();
2810
2810
  };
2811
2811
  }, [c, u, a, D]), /* @__PURE__ */ C("div", { className: "w-full", children: [
@@ -2862,15 +2862,15 @@ const hr = y.forwardRef(
2862
2862
  /* @__PURE__ */ n(
2863
2863
  "div",
2864
2864
  {
2865
- ref: R,
2865
+ ref: T,
2866
2866
  className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${b ? "" : "pr-2"}`,
2867
2867
  children: D && (c != null && c.length) ? /* @__PURE__ */ C("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
2868
- c.slice(0, k).map((B) => /* @__PURE__ */ C(
2868
+ c.slice(0, k).map((z) => /* @__PURE__ */ C(
2869
2869
  "div",
2870
2870
  {
2871
2871
  className: "flex flex-shrink-0 items-center gap-1 rounded border border-[var(--selected-filter-border)] bg-[var(--selected-filter-bg)] px-1.5 py-0.5 text-sm text-[var(--selected-filter-fg)]",
2872
2872
  children: [
2873
- /* @__PURE__ */ n(K, { variant: "p2", className: "text-[var(--selected-filter-fg)]", children: B }),
2873
+ /* @__PURE__ */ n(K, { variant: "p2", className: "text-[var(--selected-filter-fg)]", children: z }),
2874
2874
  /* @__PURE__ */ n(
2875
2875
  "div",
2876
2876
  {
@@ -2878,7 +2878,7 @@ const hr = y.forwardRef(
2878
2878
  x || (F.preventDefault(), F.stopPropagation());
2879
2879
  },
2880
2880
  onClick: (F) => {
2881
- x || (F.preventDefault(), F.stopPropagation(), d == null || d(B));
2881
+ x || (F.preventDefault(), F.stopPropagation(), d == null || d(z));
2882
2882
  },
2883
2883
  onMouseDown: (F) => {
2884
2884
  x || (F.preventDefault(), F.stopPropagation());
@@ -2899,7 +2899,7 @@ const hr = y.forwardRef(
2899
2899
  )
2900
2900
  ]
2901
2901
  },
2902
- B
2902
+ z
2903
2903
  )),
2904
2904
  c.length > k && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded border border-[var(--selected-filter-border)] bg-[var(--selected-filter-bg)] px-2 py-0.5 text-sm text-[var(--selected-filter-fg)]", children: /* @__PURE__ */ C(K, { variant: "p2", className: "text-[var(--selected-filter-fg)]", children: [
2905
2905
  "+",
@@ -2929,17 +2929,17 @@ const hr = y.forwardRef(
2929
2929
  v && /* @__PURE__ */ n(
2930
2930
  "div",
2931
2931
  {
2932
- onPointerDown: (B) => {
2933
- x || (B.preventDefault(), B.stopPropagation());
2932
+ onPointerDown: (z) => {
2933
+ x || (z.preventDefault(), z.stopPropagation());
2934
2934
  },
2935
- onClick: (B) => {
2936
- x || (B.preventDefault(), B.stopPropagation(), g == null || g());
2935
+ onClick: (z) => {
2936
+ x || (z.preventDefault(), z.stopPropagation(), g == null || g());
2937
2937
  },
2938
- onMouseDown: (B) => {
2939
- x || (B.preventDefault(), B.stopPropagation());
2938
+ onMouseDown: (z) => {
2939
+ x || (z.preventDefault(), z.stopPropagation());
2940
2940
  },
2941
- onKeyDown: (B) => {
2942
- x || (B.key === "Enter" || B.key === " ") && (B.preventDefault(), B.stopPropagation(), g == null || g());
2941
+ onKeyDown: (z) => {
2942
+ x || (z.key === "Enter" || z.key === " ") && (z.preventDefault(), z.stopPropagation(), g == null || g());
2943
2943
  },
2944
2944
  className: m(
2945
2945
  "flex cursor-pointer items-center justify-center rounded-full p-[2px] hover:bg-muted transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1",
@@ -3491,8 +3491,8 @@ function ri(e) {
3491
3491
  ref: f,
3492
3492
  "aria-label": c,
3493
3493
  "data-testid": d
3494
- } = e, x = o === "md" ? 16 : 24, h = y.useId(), p = l || h, v = i || !1, [g, b] = y.useState(!1), S = s !== void 0, N = S ? s : g, A = () => N === !0 ? "checked" : N === "indeterminate" ? "indeterminate" : "unchecked", w = (R) => {
3495
- S && u ? u(R) : S || b(R);
3494
+ } = e, x = o === "md" ? 16 : 24, h = y.useId(), p = l || h, v = i || !1, [g, b] = y.useState(!1), S = s !== void 0, N = S ? s : g, A = () => N === !0 ? "checked" : N === "indeterminate" ? "indeterminate" : "unchecked", w = (T) => {
3495
+ S && u ? u(T) : S || b(T);
3496
3496
  }, D = /* @__PURE__ */ n(
3497
3497
  Vr.Root,
3498
3498
  {
@@ -3557,19 +3557,19 @@ const br = y.forwardRef(
3557
3557
  const [v, g] = y.useState(!1), b = y.useRef(null);
3558
3558
  y.useEffect(() => {
3559
3559
  v && requestAnimationFrame(() => {
3560
- var R;
3561
- return (R = b.current) == null ? void 0 : R.focus();
3560
+ var T;
3561
+ return (T = b.current) == null ? void 0 : T.focus();
3562
3562
  });
3563
3563
  }, [v]);
3564
- const [S, N] = y.useState(""), A = y.useCallback((R) => {
3565
- if (typeof R == "string")
3566
- return R;
3567
- if (y.isValidElement(R)) {
3568
- const k = R.props;
3564
+ const [S, N] = y.useState(""), A = y.useCallback((T) => {
3565
+ if (typeof T == "string")
3566
+ return T;
3567
+ if (y.isValidElement(T)) {
3568
+ const k = T.props;
3569
3569
  return typeof k.children == "string" ? k.children : Array.isArray(k.children) ? k.children.map(A).join(" ") : A(k.children);
3570
3570
  }
3571
3571
  return "";
3572
- }, []), w = y.useMemo(() => S ? e.filter((R) => A(R.label).toLowerCase().includes(S.toLowerCase())) : e, [e, S, A]);
3572
+ }, []), w = y.useMemo(() => S ? e.filter((T) => A(T.label).toLowerCase().includes(S.toLowerCase())) : e, [e, S, A]);
3573
3573
  return /* @__PURE__ */ C("div", { className: "w-full", children: [
3574
3574
  a && /* @__PURE__ */ n(K, { variant: "p3", weight: "medium", className: "mb-2.5", children: a }),
3575
3575
  /* @__PURE__ */ C(Se.Root, { open: v, onOpenChange: g, modal: !0, children: [
@@ -3602,7 +3602,7 @@ const br = y.forwardRef(
3602
3602
  "flex-1 truncate text-left",
3603
3603
  !t && "text-muted-foreground"
3604
3604
  ),
3605
- children: t ? (D = e.find((R) => R.value === t)) == null ? void 0 : D.label : d
3605
+ children: t ? (D = e.find((T) => T.value === t)) == null ? void 0 : D.label : d
3606
3606
  }
3607
3607
  ),
3608
3608
  /* @__PURE__ */ n(
@@ -3637,43 +3637,43 @@ const br = y.forwardRef(
3637
3637
  {
3638
3638
  ref: b,
3639
3639
  value: S,
3640
- onChange: (R) => N(R.target.value),
3640
+ onChange: (T) => N(T.target.value),
3641
3641
  placeholder: i,
3642
3642
  size: "md",
3643
3643
  type: "border",
3644
3644
  className: "-mt-1 w-[calc(100%+8px)]",
3645
3645
  autoFocus: !0,
3646
- onKeyDown: (R) => {
3647
- R.key === "Escape" && (g(!1), R.stopPropagation());
3646
+ onKeyDown: (T) => {
3647
+ T.key === "Escape" && (g(!1), T.stopPropagation());
3648
3648
  }
3649
3649
  }
3650
3650
  ),
3651
3651
  /* @__PURE__ */ C("div", { className: "max-h-60 overflow-y-auto", children: [
3652
3652
  w.length === 0 && /* @__PURE__ */ n("div", { className: "text-muted-foreground px-3 py-2 text-sm", children: h }),
3653
- /* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: w.map((R) => /* @__PURE__ */ n(
3653
+ /* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: w.map((T) => /* @__PURE__ */ n(
3654
3654
  "div",
3655
3655
  {
3656
3656
  className: m(
3657
3657
  "font-graphik flex cursor-pointer items-center rounded-md px-3 transition-colors select-none",
3658
3658
  "box-border outline-none",
3659
3659
  // Разные ховеры для выбранного и невыбранного элемента
3660
- t !== R.value && "hover:bg-option-hover",
3661
- t === R.value && "bg-primary-10 font-medium hover:bg-option-selected-hover",
3660
+ t !== T.value && "hover:bg-option-hover",
3661
+ t === T.value && "bg-primary-10 font-medium hover:bg-option-selected-hover",
3662
3662
  ni[o]
3663
3663
  ),
3664
3664
  onClick: () => {
3665
- r(R.value), g(!1), N("");
3665
+ r(T.value), g(!1), N("");
3666
3666
  },
3667
3667
  onKeyDown: (k) => {
3668
- (k.key === "Enter" || k.key === " ") && (k.preventDefault(), r(R.value), g(!1), N(""));
3668
+ (k.key === "Enter" || k.key === " ") && (k.preventDefault(), r(T.value), g(!1), N(""));
3669
3669
  },
3670
3670
  tabIndex: 0,
3671
3671
  role: "option",
3672
3672
  "data-testid": "option",
3673
- "aria-selected": t === R.value,
3674
- children: R.label
3673
+ "aria-selected": t === T.value,
3674
+ children: T.label
3675
3675
  },
3676
- R.value
3676
+ T.value
3677
3677
  )) })
3678
3678
  ] })
3679
3679
  ]
@@ -3816,7 +3816,7 @@ function si({
3816
3816
  getLabel: N,
3817
3817
  isOpen: v,
3818
3818
  onOpenChange: g
3819
- }), D = ii(w.isOpen, h, p), R = se(() => ({
3819
+ }), D = ii(w.isOpen, h, p), T = se(() => ({
3820
3820
  // Combobox состояние
3821
3821
  getInputProps: w.getInputProps,
3822
3822
  getItemProps: w.getItemProps,
@@ -3859,7 +3859,7 @@ function si({
3859
3859
  N,
3860
3860
  g
3861
3861
  ]);
3862
- return /* @__PURE__ */ n(Tn.Provider, { value: R, children: e });
3862
+ return /* @__PURE__ */ n(Tn.Provider, { value: T, children: e });
3863
3863
  }
3864
3864
  const jt = {
3865
3865
  xs: {
@@ -4433,13 +4433,13 @@ function Ni({
4433
4433
  clearable: A,
4434
4434
  onClear: w
4435
4435
  }) {
4436
- const { items: D } = On(e, v), R = se(() => t, [t]);
4436
+ const { items: D } = On(e, v), T = se(() => t, [t]);
4437
4437
  return /* @__PURE__ */ n(
4438
4438
  si,
4439
4439
  {
4440
4440
  getLabel: v,
4441
4441
  items: D,
4442
- value: R,
4442
+ value: T,
4443
4443
  onChange: r,
4444
4444
  onSearch: o,
4445
4445
  onBlur: a,
@@ -4509,24 +4509,24 @@ function Ii({
4509
4509
  inputValueOnSelect: d,
4510
4510
  inputValueOnClose: x
4511
4511
  }) {
4512
- const h = de(null), p = de(!1), v = de(f != null ? f : ""), g = X((T, B) => {
4512
+ const h = de(null), p = de(!1), v = de(f != null ? f : ""), g = X((R, z) => {
4513
4513
  var W, H;
4514
- const { type: F, changes: V } = B;
4514
+ const { type: F, changes: V } = z;
4515
4515
  switch (F) {
4516
4516
  case ve.stateChangeTypes.ItemClick:
4517
4517
  case ve.stateChangeTypes.InputKeyDownEnter:
4518
4518
  case ve.stateChangeTypes.FunctionSelectItem: {
4519
- const M = ((W = T == null ? void 0 : T.inputValue) != null ? W : "").trim().length > 0;
4519
+ const M = ((W = R == null ? void 0 : R.inputValue) != null ? W : "").trim().length > 0;
4520
4520
  return L(I({}, V), {
4521
4521
  isOpen: c ? !0 : V.isOpen,
4522
- inputValue: d === "clear" ? "" : d === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : V.selectedItem ? s(V.selectedItem.value) : V.inputValue || "",
4523
- highlightedIndex: M ? 0 : (H = T == null ? void 0 : T.highlightedIndex) != null ? H : V.highlightedIndex
4522
+ inputValue: d === "clear" ? "" : d === "preserve" ? (R == null ? void 0 : R.inputValue) || "" : V.selectedItem ? s(V.selectedItem.value) : V.inputValue || "",
4523
+ highlightedIndex: M ? 0 : (H = R == null ? void 0 : R.highlightedIndex) != null ? H : V.highlightedIndex
4524
4524
  });
4525
4525
  }
4526
4526
  case ve.stateChangeTypes.InputKeyDownEscape:
4527
4527
  case ve.stateChangeTypes.InputBlur:
4528
4528
  return L(I({}, V), {
4529
- inputValue: x === "clear" ? "" : x === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : V.selectedItem ? s(V.selectedItem.value) : V.inputValue || ""
4529
+ inputValue: x === "clear" ? "" : x === "preserve" ? (R == null ? void 0 : R.inputValue) || "" : V.selectedItem ? s(V.selectedItem.value) : V.inputValue || ""
4530
4530
  });
4531
4531
  default:
4532
4532
  return V;
@@ -4536,26 +4536,26 @@ function Ii({
4536
4536
  stateReducer: g,
4537
4537
  defaultHighlightedIndex: 0,
4538
4538
  isOpen: l,
4539
- onIsOpenChange: (T) => {
4540
- var B;
4541
- if (u == null || u(T.isOpen), !T.isOpen) {
4539
+ onIsOpenChange: (R) => {
4540
+ var z;
4541
+ if (u == null || u(R.isOpen), !R.isOpen) {
4542
4542
  if (x === "preserve")
4543
4543
  return;
4544
- (B = h.current) == null || B.call(
4544
+ (z = h.current) == null || z.call(
4545
4545
  h,
4546
- x === "clear" ? "" : T.selectedItem ? s(T.selectedItem.value) : ""
4546
+ x === "clear" ? "" : R.selectedItem ? s(R.selectedItem.value) : ""
4547
4547
  );
4548
4548
  }
4549
4549
  },
4550
- itemToString: (T) => T ? s(T == null ? void 0 : T.value) : "",
4551
- onInputValueChange: ({ inputValue: T, type: B }) => {
4552
- i || B === ve.stateChangeTypes.InputChange && (o == null || o(T != null ? T : ""));
4550
+ itemToString: (R) => R ? s(R == null ? void 0 : R.value) : "",
4551
+ onInputValueChange: ({ inputValue: R, type: z }) => {
4552
+ i || z === ve.stateChangeTypes.InputChange && (o == null || o(R != null ? R : ""));
4553
4553
  },
4554
- onSelectedItemChange: ({ selectedItem: T }) => {
4554
+ onSelectedItemChange: ({ selectedItem: R }) => {
4555
4555
  if (i)
4556
4556
  return;
4557
- const B = (T == null ? void 0 : T.value) !== void 0 && (T == null ? void 0 : T.value) !== null ? T.value : null;
4558
- r == null || r(B);
4557
+ const z = (R == null ? void 0 : R.value) !== void 0 && (R == null ? void 0 : R.value) !== null ? R.value : null;
4558
+ r == null || r(z);
4559
4559
  }
4560
4560
  };
4561
4561
  t !== void 0 && (b.selectedItem = t), f !== void 0 && (b.inputValue = f);
@@ -4571,21 +4571,21 @@ function Ii({
4571
4571
  "getInputProps"
4572
4572
  ]);
4573
4573
  h.current = N, xe(() => {
4574
- const T = !!D.isOpen, B = f != null ? f : "", F = T && !p.current, V = T && v.current.trim().length > 0 && B.trim().length === 0;
4575
- (F || V) && A(0), p.current = T, v.current = B;
4574
+ const R = !!D.isOpen, z = f != null ? f : "", F = R && !p.current, V = R && v.current.trim().length > 0 && z.trim().length === 0;
4575
+ (F || V) && A(0), p.current = R, v.current = z;
4576
4576
  }, [D.isOpen, f, A]);
4577
- const R = X((T) => {
4578
- const B = w(T);
4579
- return L(I({}, B), {
4577
+ const T = X((R) => {
4578
+ const z = w(R);
4579
+ return L(I({}, z), {
4580
4580
  onBlur: (F) => {
4581
4581
  var V;
4582
- (V = B.onBlur) == null || V.call(B, F), a == null || a(F);
4582
+ (V = z.onBlur) == null || V.call(z, F), a == null || a(F);
4583
4583
  }
4584
4584
  });
4585
4585
  }, [w, a]);
4586
4586
  return L(I({}, D), {
4587
4587
  selectItem: S,
4588
- getInputProps: R,
4588
+ getInputProps: T,
4589
4589
  setInputValue: N,
4590
4590
  setHighlightedIndex: A
4591
4591
  });
@@ -4642,23 +4642,23 @@ function Ci({
4642
4642
  loading: A = !1,
4643
4643
  isOpen: w,
4644
4644
  onOpenChange: D,
4645
- onClear: R,
4645
+ onClear: T,
4646
4646
  clearable: k
4647
4647
  }) {
4648
- const T = X(S, [S]), B = se(() => {
4648
+ const R = X(S, [S]), z = se(() => {
4649
4649
  if (r !== void 0)
4650
4650
  return r === null ? null : {
4651
4651
  value: r,
4652
- label: T(r)
4652
+ label: R(r)
4653
4653
  };
4654
- }, [r, T]), F = Ii({
4654
+ }, [r, R]), F = Ii({
4655
4655
  items: t,
4656
- value: B,
4656
+ value: z,
4657
4657
  onChange: o,
4658
4658
  onSearch: a,
4659
4659
  onBlur: i,
4660
4660
  disabled: v,
4661
- getLabel: T,
4661
+ getLabel: R,
4662
4662
  isOpen: w,
4663
4663
  onOpenChange: D,
4664
4664
  inputValue: s,
@@ -4692,9 +4692,9 @@ function Ci({
4692
4692
  onBlur: i,
4693
4693
  loading: A,
4694
4694
  items: t,
4695
- getLabel: T,
4695
+ getLabel: R,
4696
4696
  getKey: N,
4697
- onClear: R,
4697
+ onClear: T,
4698
4698
  clearable: k,
4699
4699
  isItemSelected: c,
4700
4700
  hasSelection: d
@@ -4709,10 +4709,10 @@ function Ci({
4709
4709
  b,
4710
4710
  i,
4711
4711
  t,
4712
- T,
4712
+ R,
4713
4713
  N,
4714
4714
  D,
4715
- R,
4715
+ T,
4716
4716
  k,
4717
4717
  c,
4718
4718
  d
@@ -4812,18 +4812,18 @@ function ki({
4812
4812
  try {
4813
4813
  const N = S.props, A = s(N.option), w = f.get(A);
4814
4814
  if (w) {
4815
- const { item: D, index: R } = w, k = i ? i(D.value) : c === A, T = a({ item: D, index: R }), B = typeof N.children == "function" ? N.children(I({
4815
+ const { item: D, index: T } = w, k = i ? i(D.value) : c === A, R = a({ item: D, index: T }), z = typeof N.children == "function" ? N.children(I({
4816
4816
  isSelected: k,
4817
4817
  className: N.className
4818
- }, T)) : N.children;
4818
+ }, R)) : N.children;
4819
4819
  return /* @__PURE__ */ n(
4820
4820
  xr,
4821
4821
  L(I({
4822
4822
  isSelected: k,
4823
4823
  className: m(N.className, l, u)
4824
- }, T), {
4824
+ }, R), {
4825
4825
  children: /* @__PURE__ */ C("div", { className: "flex w-full items-center gap-2", children: [
4826
- /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: B }),
4826
+ /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: z }),
4827
4827
  k && /* @__PURE__ */ n(Z, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
4828
4828
  ] })
4829
4829
  }),
@@ -4932,14 +4932,14 @@ function Ri({
4932
4932
  if (!e.length || !v.current)
4933
4933
  return;
4934
4934
  const w = () => {
4935
- const R = v.current;
4936
- if (!R)
4935
+ const T = v.current;
4936
+ if (!T)
4937
4937
  return;
4938
- const V = R.offsetWidth - 56 - 30 - 8;
4938
+ const V = T.offsetWidth - 56 - 30 - 8;
4939
4939
  let W = 0, H = 0;
4940
- const M = 12, P = 20, G = 4, z = 7;
4940
+ const M = 12, B = 20, G = 4, P = 7;
4941
4941
  for (let re = 0; re < e.length; re++) {
4942
- const ee = r(e[re]).length * z, U = M + ee + P + G;
4942
+ const ee = r(e[re]).length * P, U = M + ee + B + G;
4943
4943
  if (H + U <= V)
4944
4944
  H += U, W = re + 1;
4945
4945
  else
@@ -4977,8 +4977,8 @@ function Ri({
4977
4977
  },
4978
4978
  children: [
4979
4979
  S.map((w) => {
4980
- var B;
4981
- const D = r(w), R = () => {
4980
+ var z;
4981
+ const D = r(w), T = () => {
4982
4982
  c || t(w);
4983
4983
  }, k = (F) => {
4984
4984
  const V = F == null ? void 0 : F.classNames;
@@ -5002,7 +5002,7 @@ function Ri({
5002
5002
  c || (W.preventDefault(), W.stopPropagation());
5003
5003
  },
5004
5004
  onClick: (W) => {
5005
- c || (W.preventDefault(), W.stopPropagation(), R());
5005
+ c || (W.preventDefault(), W.stopPropagation(), T());
5006
5006
  },
5007
5007
  className: m(
5008
5008
  "flex cursor-pointer items-center rounded p-0.5 hover:bg-[var(--selected-filter-remove-hover-bg)]",
@@ -5025,14 +5025,14 @@ function Ri({
5025
5025
  ]
5026
5026
  }
5027
5027
  );
5028
- }, T = (B = s == null ? void 0 : s({
5028
+ }, R = (z = s == null ? void 0 : s({
5029
5029
  option: w,
5030
5030
  label: D,
5031
5031
  disabled: c,
5032
- remove: R,
5032
+ remove: T,
5033
5033
  renderDefaultTag: k
5034
- })) != null ? B : k();
5035
- return /* @__PURE__ */ n(y.Fragment, { children: T }, o(w));
5034
+ })) != null ? z : k();
5035
+ return /* @__PURE__ */ n(y.Fragment, { children: R }, o(w));
5036
5036
  }),
5037
5037
  N > 0 && /* @__PURE__ */ n(
5038
5038
  "div",
@@ -5095,7 +5095,7 @@ function Mi({
5095
5095
  placeholder: x = "Поиск...",
5096
5096
  disabled: h = !1,
5097
5097
  "data-testid": p,
5098
- getLabel: v = (B) => typeof B == "object" && B !== null && "label" in B ? B.label : "",
5098
+ getLabel: v = (z) => typeof z == "object" && z !== null && "label" in z ? z.label : "",
5099
5099
  getKey: g = Ti,
5100
5100
  loading: b = !1,
5101
5101
  onInputKeyDown: S,
@@ -5103,21 +5103,21 @@ function Mi({
5103
5103
  onOpenChange: A,
5104
5104
  showErrorMessage: w = !0,
5105
5105
  clearable: D = !0,
5106
- onClear: R,
5106
+ onClear: T,
5107
5107
  maxTags: k = 4,
5108
- renderSelectedTag: T
5108
+ renderSelectedTag: R
5109
5109
  }) {
5110
- const { items: B } = On(e, v), F = se(() => t || [], [t]), V = se(() => new Set(F.map(g)), [F, g]), [W, H] = ue(""), M = X(() => {
5110
+ const { items: z } = On(e, v), F = se(() => t || [], [t]), V = se(() => new Set(F.map(g)), [F, g]), [W, H] = ue(""), M = X(() => {
5111
5111
  H(""), o == null || o("");
5112
- }, [o]), P = X(($) => {
5112
+ }, [o]), B = X(($) => {
5113
5113
  const ee = g($), Q = V.has(ee) ? F.filter((j) => g(j) !== ee) : [...F, $];
5114
5114
  r == null || r(Q), M();
5115
5115
  }, [M, g, r, F, V]), G = X(($) => {
5116
5116
  const ee = g($);
5117
5117
  r == null || r(F.filter((U) => g(U) !== ee));
5118
- }, [g, r, F]), z = X(() => {
5119
- r == null || r([]), R == null || R();
5120
- }, [r, R]), Y = X(($) => {
5118
+ }, [g, r, F]), P = X(() => {
5119
+ r == null || r([]), T == null || T();
5120
+ }, [r, T]), Y = X(($) => {
5121
5121
  A == null || A($), $ || (H(""), o == null || o(""));
5122
5122
  }, [A, o]), re = X(($) => {
5123
5123
  H($), o == null || o($);
@@ -5127,10 +5127,10 @@ function Mi({
5127
5127
  {
5128
5128
  getLabel: v,
5129
5129
  getKey: g,
5130
- items: B,
5130
+ items: z,
5131
5131
  inputValue: W,
5132
5132
  onChange: ($) => {
5133
- $ && P($);
5133
+ $ && B($);
5134
5134
  },
5135
5135
  onSearch: re,
5136
5136
  onBlur: a,
@@ -5144,7 +5144,7 @@ function Mi({
5144
5144
  isOpen: N,
5145
5145
  onOpenChange: Y,
5146
5146
  clearable: D,
5147
- onClear: z,
5147
+ onClear: P,
5148
5148
  keepOpenOnSelect: !0,
5149
5149
  inputValueOnSelect: "clear",
5150
5150
  inputValueOnClose: "preserve",
@@ -5170,7 +5170,7 @@ function Mi({
5170
5170
  getKey: g,
5171
5171
  maxTags: k,
5172
5172
  onInputKeyDown: S,
5173
- renderSelectedTag: T,
5173
+ renderSelectedTag: R,
5174
5174
  "data-testid": p
5175
5175
  }
5176
5176
  ),
@@ -5993,16 +5993,16 @@ function ts(e) {
5993
5993
  c(e.hideFooter);
5994
5994
  }, [e.hideFooter]), y.useEffect(() => {
5995
5995
  if (t) {
5996
- const R = () => {
5996
+ const T = () => {
5997
5997
  u(t.scrollTop > 0);
5998
5998
  };
5999
- t.addEventListener("scroll", R);
5999
+ t.addEventListener("scroll", T);
6000
6000
  const k = new ResizeObserver(() => {
6001
- const T = t.scrollHeight > t.clientHeight;
6002
- s(T);
6001
+ const R = t.scrollHeight > t.clientHeight;
6002
+ s(R);
6003
6003
  });
6004
6004
  return k.observe(t), () => {
6005
- t.removeEventListener("scroll", R), k.disconnect();
6005
+ t.removeEventListener("scroll", T), k.disconnect();
6006
6006
  };
6007
6007
  }
6008
6008
  }, [t]), {
@@ -6180,31 +6180,32 @@ function ce(p) {
6180
6180
  TopHeaderTeleporter: kt()
6181
6181
  }),
6182
6182
  []
6183
- ), S = b.TitleTeleporter.useTargetRef(), N = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, R] = y.useState(!1), k = D ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6183
+ ), S = b.TitleTeleporter.useTargetRef(), N = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, T] = y.useState(!1), k = !d && !(e != null && e.content), R = D ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6184
6184
  Qe,
6185
6185
  {
6186
- ref: (T) => {
6187
- g.setContentElement(T), A(T);
6186
+ ref: (z) => {
6187
+ g.setContentElement(z), A(z);
6188
6188
  },
6189
6189
  className: m(
6190
6190
  "min-h-0 rounded-t-[10px] bg-white px-4 pt-4 md:pt-6 md:px-6",
6191
+ k && "-mb-0.5 scroll-py-0.5 pb-0.5",
6191
6192
  e == null ? void 0 : e.content
6192
6193
  )
6193
6194
  }
6194
6195
  ) }) : /* @__PURE__ */ n(
6195
6196
  Qe,
6196
6197
  {
6197
- ref: (T) => {
6198
- g.setContentElement(T), A(T);
6198
+ ref: (z) => {
6199
+ g.setContentElement(z), A(z);
6199
6200
  },
6200
- className: m(e == null ? void 0 : e.content)
6201
+ className: m(k && "-m-0.5 scroll-py-0.5 p-0.5", e == null ? void 0 : e.content)
6201
6202
  }
6202
6203
  );
6203
6204
  return /* @__PURE__ */ n(Nt, L(I({}, h), { children: /* @__PURE__ */ n(
6204
6205
  Xn.Provider,
6205
6206
  {
6206
6207
  value: L(I({}, b), {
6207
- setHasTopHeader: R
6208
+ setHasTopHeader: T
6208
6209
  }),
6209
6210
  children: /* @__PURE__ */ C(ot.Provider, { value: g, children: [
6210
6211
  r && /* @__PURE__ */ n(tt, { children: r }),
@@ -6250,7 +6251,7 @@ function ce(p) {
6250
6251
  ]
6251
6252
  }
6252
6253
  ),
6253
- k,
6254
+ R,
6254
6255
  !g.isHideFooter && /* @__PURE__ */ n(
6255
6256
  wr,
6256
6257
  {
@@ -6373,13 +6374,13 @@ function ls({
6373
6374
  classNames: h
6374
6375
  }) {
6375
6376
  var ne, ge, he, Ie, q, ae;
6376
- const [p, v] = y.useState(o), g = r !== void 0, b = g ? r : p, S = e.length, N = e[b], A = b === 0, w = b === S - 1, D = y.useContext(ot), R = (ne = D == null ? void 0 : D.nextBaseZIndex) != null ? ne : u, k = !!(N != null && N.content), [T, B] = y.useState(null), [F, V] = y.useState(null), [W, H] = y.useState(null), M = ss({
6377
- scene: T,
6377
+ const [p, v] = y.useState(o), g = r !== void 0, b = g ? r : p, S = e.length, N = e[b], A = b === 0, w = b === S - 1, D = y.useContext(ot), T = (ne = D == null ? void 0 : D.nextBaseZIndex) != null ? ne : u, k = !!(N != null && N.content), [R, z] = y.useState(null), [F, V] = y.useState(null), [W, H] = y.useState(null), M = ss({
6378
+ scene: R,
6378
6379
  canvas: F,
6379
6380
  highlight: N == null ? void 0 : N.highlight,
6380
6381
  step: b,
6381
6382
  topInset: k && (ge = W == null ? void 0 : W.offsetHeight) != null ? ge : 0
6382
- }), P = (he = x == null ? void 0 : x.blur) != null ? he : 16, G = (Ie = x == null ? void 0 : x.background) != null ? Ie : "rgba(255,255,255,0.85)", z = y.useCallback(
6383
+ }), B = (he = x == null ? void 0 : x.blur) != null ? he : 16, G = (Ie = x == null ? void 0 : x.background) != null ? Ie : "rgba(255,255,255,0.85)", P = y.useCallback(
6383
6384
  (be) => {
6384
6385
  const De = Math.min(Math.max(be, 0), S - 1);
6385
6386
  g || v(De), a == null || a(De);
@@ -6395,12 +6396,12 @@ function ls({
6395
6396
  total: S,
6396
6397
  isFirst: A,
6397
6398
  isLast: w,
6398
- next: () => z(b + 1),
6399
- prev: () => z(b - 1),
6400
- goTo: z,
6399
+ next: () => P(b + 1),
6400
+ prev: () => P(b - 1),
6401
+ goTo: P,
6401
6402
  close: Y
6402
6403
  }),
6403
- [b, S, A, w, z, Y]
6404
+ [b, S, A, w, P, Y]
6404
6405
  );
6405
6406
  if (!N)
6406
6407
  return null;
@@ -6413,7 +6414,7 @@ function ls({
6413
6414
  i == null || i(), Y();
6414
6415
  return;
6415
6416
  }
6416
- z(b + 1);
6417
+ P(b + 1);
6417
6418
  }, U = (q = N.primaryLabel) != null ? q : w ? "Готово" : "Дальше", Q = I(I({}, d), N.highlightStyle), j = {
6418
6419
  "--tour-hl": Q.border === !1 ? "transparent" : Q.border,
6419
6420
  "--tour-hl-halo": Q.halo === !1 ? "transparent" : Q.halo,
@@ -6481,11 +6482,11 @@ function ls({
6481
6482
  return /* @__PURE__ */ C(ce.Dialog, { open: s, onOpenChange: re, children: [
6482
6483
  t && /* @__PURE__ */ n(ce.Trigger, { children: t }),
6483
6484
  /* @__PURE__ */ C(ce.Portal, { children: [
6484
- /* @__PURE__ */ n(ce.Overlay, { style: { zIndex: R + 1 } }),
6485
+ /* @__PURE__ */ n(ce.Overlay, { style: { zIndex: T + 1 } }),
6485
6486
  /* @__PURE__ */ n(
6486
6487
  ce.Container,
6487
6488
  {
6488
- style: { zIndex: R + 2 },
6489
+ style: { zIndex: T + 2 },
6489
6490
  width: "sm",
6490
6491
  padding: "none",
6491
6492
  overflow: !0,
@@ -6511,8 +6512,8 @@ function ls({
6511
6512
  ),
6512
6513
  style: k ? {
6513
6514
  backgroundColor: G,
6514
- backdropFilter: P ? `blur(${P}px)` : void 0,
6515
- WebkitBackdropFilter: P ? `blur(${P}px)` : void 0
6515
+ backdropFilter: B ? `blur(${B}px)` : void 0,
6516
+ WebkitBackdropFilter: B ? `blur(${B}px)` : void 0
6516
6517
  } : void 0,
6517
6518
  children: [
6518
6519
  A ? /* @__PURE__ */ n("div", { className: "h-8 w-8" }) : /* @__PURE__ */ n(
@@ -6524,7 +6525,7 @@ function ls({
6524
6525
  icon: "ArrowBackIcon",
6525
6526
  "aria-label": "Назад",
6526
6527
  className: "h-8 w-8",
6527
- onClick: () => z(b - 1),
6528
+ onClick: () => P(b - 1),
6528
6529
  "data-testid": `${c}-back`
6529
6530
  }
6530
6531
  ),
@@ -6554,7 +6555,7 @@ function ls({
6554
6555
  /* @__PURE__ */ n(
6555
6556
  "div",
6556
6557
  {
6557
- ref: B,
6558
+ ref: z,
6558
6559
  "data-testid": `${c}-scene`,
6559
6560
  className: m(
6560
6561
  "no-scrollbar min-h-0 flex-1 overflow-y-auto pt-14",
@@ -6656,38 +6657,38 @@ function Wd({
6656
6657
  y.useEffect(() => {
6657
6658
  p(e), g(Ne(e));
6658
6659
  }, [e]);
6659
- const R = y.useCallback(
6660
- (P) => {
6661
- p(P), g(Ne(P)), t == null || t(P);
6660
+ const T = y.useCallback(
6661
+ (B) => {
6662
+ p(B), g(Ne(B)), t == null || t(B);
6662
6663
  },
6663
6664
  [t]
6664
- ), k = (P) => {
6665
- P && (R(P), b === "mobile" && N(!1));
6666
- }, T = () => {
6667
- R(void 0), c == null || c();
6668
- }, B = (P) => {
6669
- const G = P.target.value;
6665
+ ), k = (B) => {
6666
+ B && (T(B), b === "mobile" && N(!1));
6667
+ }, R = () => {
6668
+ T(void 0), c == null || c();
6669
+ }, z = (B) => {
6670
+ const G = B.target.value;
6670
6671
  if (g(G), !G) {
6671
- R(void 0);
6672
+ T(void 0);
6672
6673
  return;
6673
6674
  }
6674
- const z = zt(G);
6675
- z && !bt(z, d) && R(z);
6675
+ const P = zt(G);
6676
+ P && !bt(P, d) && T(P);
6676
6677
  }, F = () => {
6677
- const P = zt(v);
6678
- v && (!P || bt(P, d)) && g(Ne(h));
6678
+ const B = zt(v);
6679
+ v && (!B || bt(B, d)) && g(Ne(h));
6679
6680
  }, V = () => {
6680
6681
  r || N(!0);
6681
- }, W = (P) => {
6682
- var z;
6683
- const G = P.target;
6684
- G instanceof Node && ((z = A.current) != null && z.contains(G)) && P.preventDefault();
6685
- }, H = (P) => /* @__PURE__ */ n(
6682
+ }, W = (B) => {
6683
+ var P;
6684
+ const G = B.target;
6685
+ G instanceof Node && ((P = A.current) != null && P.contains(G)) && B.preventDefault();
6686
+ }, H = (B) => /* @__PURE__ */ n(
6686
6687
  xt,
6687
6688
  {
6688
6689
  mask: lr,
6689
6690
  value: v,
6690
- onChange: B,
6691
+ onChange: z,
6691
6692
  onBlur: F,
6692
6693
  onFocus: V,
6693
6694
  disabled: r,
@@ -6826,7 +6827,7 @@ function Wd({
6826
6827
  f && /* @__PURE__ */ n(ce.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
6827
6828
  oe,
6828
6829
  {
6829
- onClick: T,
6830
+ onClick: R,
6830
6831
  variant: "text",
6831
6832
  disabled: !h,
6832
6833
  className: "w-full",
@@ -6848,14 +6849,14 @@ function Wd({
6848
6849
  className: "w-auto rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
6849
6850
  align: "start",
6850
6851
  sideOffset: 4,
6851
- onOpenAutoFocus: (P) => P.preventDefault(),
6852
+ onOpenAutoFocus: (B) => B.preventDefault(),
6852
6853
  onInteractOutside: W,
6853
6854
  children: [
6854
6855
  M,
6855
6856
  f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
6856
6857
  oe,
6857
6858
  {
6858
- onClick: T,
6859
+ onClick: R,
6859
6860
  variant: "text",
6860
6861
  size: "sm",
6861
6862
  className: "w-full",
@@ -7052,7 +7053,7 @@ function Gd(v) {
7052
7053
  Ne(Pt(t == null ? void 0 : t.from))
7053
7054
  ), [w, D] = y.useState(
7054
7055
  Ne(Pt(t == null ? void 0 : t.to))
7055
- ), [R, k] = y.useState(!1), T = y.useRef(null), B = Jt(), F = cs[r], V = ws(r), W = u === "custom" ? "md" : u, H = {
7056
+ ), [T, k] = y.useState(!1), R = y.useRef(null), z = Jt(), F = cs[r], V = ws(r), W = u === "custom" ? "md" : u, H = {
7056
7057
  from: (a == null ? void 0 : a.from) || F.placeholder,
7057
7058
  to: (a == null ? void 0 : a.to) || F.placeholder
7058
7059
  }, M = y.useMemo(() => {
@@ -7063,7 +7064,7 @@ function Gd(v) {
7063
7064
  hasToError: () => q(i) ? !0 : ae(i) && !!i.to,
7064
7065
  getErrorText: () => q(i) ? i : ae(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
7065
7066
  };
7066
- }, [i]), { hasAnyError: P, hasFromError: G, hasToError: z, getErrorText: Y } = M;
7067
+ }, [i]), { hasAnyError: B, hasFromError: G, hasToError: P, getErrorText: Y } = M;
7067
7068
  y.useEffect(() => {
7068
7069
  const q = or(t);
7069
7070
  S(q), A(Ne(q == null ? void 0 : q.from)), D(Ne(q == null ? void 0 : q.to));
@@ -7075,7 +7076,7 @@ function Gd(v) {
7075
7076
  },
7076
7077
  [o]
7077
7078
  ), $ = (q) => {
7078
- re(q), q != null && q.from && (q != null && q.to) && B === "mobile" && k(!1);
7079
+ re(q), q != null && q.from && (q != null && q.to) && z === "mobile" && k(!1);
7079
7080
  }, ee = () => {
7080
7081
  re(void 0), d == null || d();
7081
7082
  }, U = (q, ae) => {
@@ -7100,7 +7101,7 @@ function Gd(v) {
7100
7101
  }, J = (q) => {
7101
7102
  var be;
7102
7103
  const ae = q.target;
7103
- ae instanceof Node && ((be = T.current) != null && be.contains(ae)) && q.preventDefault();
7104
+ ae instanceof Node && ((be = R.current) != null && be.contains(ae)) && q.preventDefault();
7104
7105
  }, ne = (q) => h ? `${h}-${q}` : void 0, ge = (q) => /* @__PURE__ */ C(
7105
7106
  "div",
7106
7107
  {
@@ -7109,10 +7110,10 @@ function Gd(v) {
7109
7110
  u === "md" && "h-8",
7110
7111
  u === "lg" && "h-10 rounded-xl",
7111
7112
  f && "bg-muted cursor-not-allowed",
7112
- !f && !P() && "hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus",
7113
- R && !P() && "border-primary shadow-focus",
7114
- P() && "border-destructive hover:border-destructive focus-within:border-destructive",
7115
- P() && R && "shadow-error"
7113
+ !f && !B() && "hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus",
7114
+ T && !B() && "border-primary shadow-focus",
7115
+ B() && "border-destructive hover:border-destructive focus-within:border-destructive",
7116
+ B() && T && "shadow-error"
7116
7117
  ),
7117
7118
  "data-testid": h,
7118
7119
  onClick: j,
@@ -7146,8 +7147,8 @@ function Gd(v) {
7146
7147
  icon: "ArrowForwardIcon",
7147
7148
  className: m(
7148
7149
  "text-muted-foreground mx-1.5 shrink-0 group-focus-within:text-default",
7149
- R && !f && !P() && "text-default",
7150
- b && (b.from || b.to) && !f && !P() && "text-default",
7150
+ T && !f && !B() && "text-default",
7151
+ b && (b.from || b.to) && !f && !B() && "text-default",
7151
7152
  f && "text-muted-foreground"
7152
7153
  )
7153
7154
  }
@@ -7169,7 +7170,7 @@ function Gd(v) {
7169
7170
  className: m(
7170
7171
  "min-w-0 px-2.5 text-left text-[16px] leading-[22px] focus:placeholder:text-default",
7171
7172
  u === "lg" && "px-3",
7172
- z() && "text-destructive"
7173
+ P() && "text-destructive"
7173
7174
  ),
7174
7175
  containerClassName: "h-auto border-0 bg-transparent hover:border-0 focus-within:border-0 focus-within:shadow-none"
7175
7176
  }
@@ -7187,9 +7188,9 @@ function Gd(v) {
7187
7188
  className: m(
7188
7189
  "text-muted-foreground size-4 bg-transparent p-0 hover:bg-transparent focus:bg-transparent group-focus-within:text-default",
7189
7190
  f && "text-muted-foreground",
7190
- R && !f && !P() && "text-default",
7191
- b && (b.from || b.to) && !f && !P() && "text-default",
7192
- P() && "!text-destructive"
7191
+ T && !f && !B() && "text-default",
7192
+ b && (b.from || b.to) && !f && !B() && "text-default",
7193
+ B() && "!text-destructive"
7193
7194
  ),
7194
7195
  disabled: f,
7195
7196
  onMouseDown: (ae) => ae.preventDefault(),
@@ -7197,7 +7198,7 @@ function Gd(v) {
7197
7198
  "aria-label": "Открыть календарь"
7198
7199
  }
7199
7200
  ),
7200
- P() && /* @__PURE__ */ n(
7201
+ B() && /* @__PURE__ */ n(
7201
7202
  Z,
7202
7203
  {
7203
7204
  icon: "ErrorFillIcon",
@@ -7232,10 +7233,10 @@ function Gd(v) {
7232
7233
  children: l
7233
7234
  }
7234
7235
  ),
7235
- B === "mobile" ? /* @__PURE__ */ C(
7236
+ z === "mobile" ? /* @__PURE__ */ C(
7236
7237
  ce,
7237
7238
  {
7238
- open: R,
7239
+ open: T,
7239
7240
  onOpenChange: f ? void 0 : k,
7240
7241
  width: "md",
7241
7242
  trigger: /* @__PURE__ */ n(
@@ -7248,9 +7249,9 @@ function Gd(v) {
7248
7249
  className: m(
7249
7250
  "group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
7250
7251
  u === "lg" ? "px-3 rounded-xl" : "px-2.5 rounded-lg",
7251
- R && !P() && "border-primary shadow-focus",
7252
- P() && R && "border-destructive shadow-error",
7253
- P() && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
7252
+ T && !B() && "border-primary shadow-focus",
7253
+ B() && T && "border-destructive shadow-error",
7254
+ B() && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
7254
7255
  ),
7255
7256
  "data-testid": h,
7256
7257
  children: /* @__PURE__ */ C("div", { className: "flex w-full items-center", children: [
@@ -7260,7 +7261,7 @@ function Gd(v) {
7260
7261
  className: m(
7261
7262
  "flex w-full items-center justify-between",
7262
7263
  b ? "text-foreground" : "text-muted-foreground",
7263
- R && !f && "!text-default"
7264
+ T && !f && "!text-default"
7264
7265
  ),
7265
7266
  children: [
7266
7267
  /* @__PURE__ */ n(
@@ -7281,7 +7282,7 @@ function Gd(v) {
7281
7282
  "data-testid": "date-range-end",
7282
7283
  className: m(
7283
7284
  "flex-1 text-left",
7284
- z() && "text-destructive"
7285
+ P() && "text-destructive"
7285
7286
  ),
7286
7287
  children: b != null && b.to ? Ne(b.to) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: H.to })
7287
7288
  }
@@ -7296,15 +7297,15 @@ function Gd(v) {
7296
7297
  className: m(
7297
7298
  "group-focus-within:text-foreground text-muted-foreground transition-colors",
7298
7299
  f && "text-muted-foreground",
7299
- R && !f && !P() && "!text-default",
7300
- b && (b.from || b.to) && !f && !P() && "text-default",
7301
- P() && "!group-focus-within:!text-destructive !text-destructive"
7300
+ T && !f && !B() && "!text-default",
7301
+ b && (b.from || b.to) && !f && !B() && "text-default",
7302
+ B() && "!group-focus-within:!text-destructive !text-destructive"
7302
7303
  ),
7303
7304
  icon: "CalendarIcon",
7304
7305
  size: 16
7305
7306
  }
7306
7307
  ),
7307
- P() && /* @__PURE__ */ n(
7308
+ B() && /* @__PURE__ */ n(
7308
7309
  Z,
7309
7310
  {
7310
7311
  icon: "ErrorFillIcon",
@@ -7338,8 +7339,8 @@ function Gd(v) {
7338
7339
  ) }) })
7339
7340
  ]
7340
7341
  }
7341
- ) : /* @__PURE__ */ C(Xe, { open: R, onOpenChange: k, children: [
7342
- /* @__PURE__ */ n("div", { ref: T, children: /* @__PURE__ */ n(Nn, { className: "block", children: ge() }) }),
7342
+ ) : /* @__PURE__ */ C(Xe, { open: T, onOpenChange: k, children: [
7343
+ /* @__PURE__ */ n("div", { ref: R, children: /* @__PURE__ */ n(Nn, { className: "block", children: ge() }) }),
7343
7344
  /* @__PURE__ */ C(
7344
7345
  Ke,
7345
7346
  {
@@ -7365,8 +7366,8 @@ function Gd(v) {
7365
7366
  }
7366
7367
  )
7367
7368
  ] }),
7368
- s && !P() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
7369
- P() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: Y() })
7369
+ s && !B() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
7370
+ B() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: Y() })
7370
7371
  ] }));
7371
7372
  }
7372
7373
  function Ns({ className: e }) {
@@ -7735,19 +7736,19 @@ const co = y.forwardRef(
7735
7736
  (k) => {
7736
7737
  if (k === "" && u)
7737
7738
  return "";
7738
- let T = k.replace(/[^\d.,\-]/g, "");
7739
- if (l ? (T.match(/-/g) || []).length > 1 && (T = T.replace(/-/g, ""), k.startsWith("-") && (T = `-${T}`)) : T = T.replace(/-/g, ""), T = S(T), (T.match(/[.,]/g) || []).length > 1) {
7740
- const F = T.search(/[.,]/);
7741
- T = T.substring(0, F + 1) + T.substring(F + 1).replace(/[.,]/g, "");
7739
+ let R = k.replace(/[^\d.,\-]/g, "");
7740
+ if (l ? (R.match(/-/g) || []).length > 1 && (R = R.replace(/-/g, ""), k.startsWith("-") && (R = `-${R}`)) : R = R.replace(/-/g, ""), R = S(R), (R.match(/[.,]/g) || []).length > 1) {
7741
+ const F = R.search(/[.,]/);
7742
+ R = R.substring(0, F + 1) + R.substring(F + 1).replace(/[.,]/g, "");
7742
7743
  }
7743
7744
  if (r !== void 0 && r >= 0) {
7744
- const F = T.search(/[.,]/);
7745
+ const F = R.search(/[.,]/);
7745
7746
  if (F !== -1) {
7746
- const V = T.substring(0, F), H = T.substring(F + 1).substring(0, r);
7747
- T = V + T[F] + H;
7747
+ const V = R.substring(0, F), H = R.substring(F + 1).substring(0, r);
7748
+ R = V + R[F] + H;
7748
7749
  }
7749
7750
  }
7750
- return a && (T = a(T)), T;
7751
+ return a && (R = a(R)), R;
7751
7752
  },
7752
7753
  [r, o, l, u, S, a]
7753
7754
  ), A = X(
@@ -7755,19 +7756,19 @@ const co = y.forwardRef(
7755
7756
  [i, s]
7756
7757
  ), w = X(
7757
7758
  (k) => {
7758
- const T = k.target.value, B = N(T);
7759
- if (b(B), B === "") {
7759
+ const R = k.target.value, z = N(R);
7760
+ if (b(z), z === "") {
7760
7761
  t == null || t(u ? "" : 0);
7761
7762
  return;
7762
7763
  }
7763
- const F = o === "comma" ? B.replace(/,/g, ".") : B, V = Number.parseFloat(F);
7764
- Number.isNaN(V) ? t == null || t(B) : A(V) ? t == null || t(V) : t == null || t(B);
7764
+ const F = o === "comma" ? z.replace(/,/g, ".") : z, V = Number.parseFloat(F);
7765
+ Number.isNaN(V) ? t == null || t(z) : A(V) ? t == null || t(V) : t == null || t(z);
7765
7766
  },
7766
7767
  [N, A, t, o, u]
7767
7768
  ), D = X(
7768
7769
  (k) => {
7769
- const { key: T, ctrlKey: B, metaKey: F } = k;
7770
- if (B || F || [
7770
+ const { key: R, ctrlKey: z, metaKey: F } = k;
7771
+ if (z || F || [
7771
7772
  "Backspace",
7772
7773
  "Delete",
7773
7774
  "Tab",
@@ -7779,16 +7780,16 @@ const co = y.forwardRef(
7779
7780
  "ArrowDown",
7780
7781
  "Home",
7781
7782
  "End"
7782
- ].includes(T)) {
7783
+ ].includes(R)) {
7783
7784
  f == null || f(k);
7784
7785
  return;
7785
7786
  }
7786
- if (/^\d$/.test(T)) {
7787
+ if (/^\d$/.test(R)) {
7787
7788
  f == null || f(k);
7788
7789
  return;
7789
7790
  }
7790
- if (T === "." || T === ",") {
7791
- if (o === "dot" && T === "." || o === "comma" && T === ",") {
7791
+ if (R === "." || R === ",") {
7792
+ if (o === "dot" && R === "." || o === "comma" && R === ",") {
7792
7793
  f == null || f(k);
7793
7794
  return;
7794
7795
  }
@@ -7797,7 +7798,7 @@ const co = y.forwardRef(
7797
7798
  b(M), t == null || t(M);
7798
7799
  return;
7799
7800
  }
7800
- if (T === "-" && l) {
7801
+ if (R === "-" && l) {
7801
7802
  const V = k.currentTarget;
7802
7803
  if ((V.selectionStart || 0) === 0 && !V.value.includes("-")) {
7803
7804
  f == null || f(k);
@@ -7807,12 +7808,12 @@ const co = y.forwardRef(
7807
7808
  k.preventDefault();
7808
7809
  },
7809
7810
  [l, f, o, N, b, t]
7810
- ), R = X(
7811
+ ), T = X(
7811
7812
  (k) => {
7812
- const T = k.clipboardData.getData("text"), B = N(T);
7813
- if (B !== T) {
7813
+ const R = k.clipboardData.getData("text"), z = N(R);
7814
+ if (z !== R) {
7814
7815
  k.preventDefault();
7815
- const F = k.currentTarget, V = F.selectionStart || 0, W = F.selectionEnd || 0, H = F.value.substring(0, V) + B + F.value.substring(W), M = N(H);
7816
+ const F = k.currentTarget, V = F.selectionStart || 0, W = F.selectionEnd || 0, H = F.value.substring(0, V) + z + F.value.substring(W), M = N(H);
7816
7817
  b(M), t == null || t(M);
7817
7818
  }
7818
7819
  c == null || c(k);
@@ -7832,7 +7833,7 @@ const co = y.forwardRef(
7832
7833
  value: g,
7833
7834
  onChange: w,
7834
7835
  onKeyDown: D,
7835
- onPaste: R,
7836
+ onPaste: T,
7836
7837
  onClear: d,
7837
7838
  inputMode: "decimal"
7838
7839
  })
@@ -7929,7 +7930,7 @@ const uo = y.forwardRef(
7929
7930
  })
7930
7931
  );
7931
7932
  }
7932
- const D = /* @__PURE__ */ n(Z, { icon: d, size: h, className: m("shrink-0", p) }), R = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
7933
+ const D = /* @__PURE__ */ n(Z, { icon: d, size: h, className: m("shrink-0", p) }), T = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
7933
7934
  x === "left" && D,
7934
7935
  /* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: r }),
7935
7936
  x === "right" && D
@@ -7950,7 +7951,7 @@ const uo = y.forwardRef(
7950
7951
  onClick: N,
7951
7952
  onKeyDown: A
7952
7953
  }, v), {
7953
- children: R
7954
+ children: T
7954
7955
  })
7955
7956
  ) : /* @__PURE__ */ n(
7956
7957
  "a",
@@ -7972,7 +7973,7 @@ const uo = y.forwardRef(
7972
7973
  ),
7973
7974
  "data-cy": f,
7974
7975
  "data-testid": c,
7975
- children: R
7976
+ children: T
7976
7977
  })
7977
7978
  );
7978
7979
  }
@@ -8260,7 +8261,7 @@ const Yd = Do((e, t) => {
8260
8261
  }
8261
8262
  } = e, p = e["data-cy"], v = e["data-testid"], [g, b] = ue(0), [S, N] = ue(
8262
8263
  Array.from({ length: r }, () => "")
8263
- ), [A, w] = ue(d ? x : 0), [D, R] = ue(!!d), [k, T] = ue(u), [B, F] = ue(f), V = (j) => {
8264
+ ), [A, w] = ue(d ? x : 0), [D, T] = ue(!!d), [k, R] = ue(u), [z, F] = ue(f), V = (j) => {
8264
8265
  const J = Math.max(Math.min(r - 1, j), 0);
8265
8266
  b(J);
8266
8267
  };
@@ -8270,24 +8271,24 @@ const Yd = Do((e, t) => {
8270
8271
  let j;
8271
8272
  return D && A > 0 ? j = setInterval(() => {
8272
8273
  w((J) => J - 1);
8273
- }, 1e3) : A === 0 && R(!1), () => {
8274
+ }, 1e3) : A === 0 && T(!1), () => {
8274
8275
  j && clearInterval(j);
8275
8276
  };
8276
8277
  }, [A, D]), xe(() => {
8277
- T(u), F(f);
8278
+ R(u), F(f);
8278
8279
  }, [u, f]);
8279
8280
  const W = () => {
8280
- d && !D && (d(), w(x), R(!0));
8281
+ d && !D && (d(), w(x), T(!0));
8281
8282
  }, H = (j) => {
8282
8283
  var ne;
8283
- k && (T(!1), F("")), N(j);
8284
+ k && (R(!1), F("")), N(j);
8284
8285
  const J = j.join("");
8285
8286
  o(J), J.length === r && ((ne = e.onComplete) == null || ne.call(e, J), l && (N(Array.from({ length: r }, () => "")), b(0)));
8286
- }, M = (j) => !Number.isNaN(Number.parseInt(j, 10)) && j.trim().length === 1, P = () => {
8287
+ }, M = (j) => !Number.isNaN(Number.parseInt(j, 10)) && j.trim().length === 1, B = () => {
8287
8288
  V(g + 1);
8288
8289
  }, G = () => {
8289
8290
  V(g - 1);
8290
- }, z = (j) => {
8291
+ }, P = (j) => {
8291
8292
  const J = [...S];
8292
8293
  J[g] = j[0] || "", H(J);
8293
8294
  }, Y = (j) => {
@@ -8306,18 +8307,18 @@ const Yd = Do((e, t) => {
8306
8307
  H(ne.split(""));
8307
8308
  return;
8308
8309
  }
8309
- M(ne) && z(ne);
8310
+ M(ne) && P(ne);
8310
8311
  }, $ = (j) => {
8311
- s || (j.keyCode === Ps || j.key === "Backspace" ? (j.preventDefault(), z(""), G()) : j.keyCode === Vs || j.key === "Delete" ? (j.preventDefault(), z("")) : j.keyCode === Bs || j.key === "ArrowLeft" ? (j.preventDefault(), G()) : j.keyCode === Os || j.key === "ArrowRight" ? (j.preventDefault(), P()) : (j.keyCode === _s || j.key === " " || j.key === "Spacebar" || j.key === "Space") && j.preventDefault());
8312
+ s || (j.keyCode === Ps || j.key === "Backspace" ? (j.preventDefault(), P(""), G()) : j.keyCode === Vs || j.key === "Delete" ? (j.preventDefault(), P("")) : j.keyCode === Bs || j.key === "ArrowLeft" ? (j.preventDefault(), G()) : j.keyCode === Os || j.key === "ArrowRight" ? (j.preventDefault(), B()) : (j.keyCode === _s || j.key === " " || j.key === "Spacebar" || j.key === "Space") && j.preventDefault());
8312
8313
  }, ee = (j) => {
8313
8314
  if (!s) {
8314
8315
  if (M(j.currentTarget.value)) {
8315
- P();
8316
+ B();
8316
8317
  return;
8317
8318
  }
8318
8319
  if (a) {
8319
8320
  const { nativeEvent: J } = j;
8320
- J.data === null && J.inputType === "deleteContentBackward" && (j.preventDefault(), z(""), G());
8321
+ J.data === null && J.inputType === "deleteContentBackward" && (j.preventDefault(), P(""), G());
8321
8322
  }
8322
8323
  }
8323
8324
  }, U = (j) => (J) => {
@@ -8351,7 +8352,7 @@ const Yd = Do((e, t) => {
8351
8352
  },
8352
8353
  J
8353
8354
  )) }),
8354
- k && B && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "font-cofo", children: B }),
8355
+ k && z && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "font-cofo", children: z }),
8355
8356
  d && /* @__PURE__ */ n("div", { children: D ? /* @__PURE__ */ C(K, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
8356
8357
  h.sms,
8357
8358
  " ",
@@ -8439,7 +8440,7 @@ const Zd = ({
8439
8440
  }, b = (N = u == null ? void 0 : u.jump_to) != null ? N : "Перейти на", S = (A = u == null ? void 0 : u.page) != null ? A : "страницу";
8440
8441
  return /* @__PURE__ */ C("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
8441
8442
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((w, D) => {
8442
- const R = Ws(w, f), k = w.type === "page" && w.page === c, T = `${w.type}-${w.type === "page" ? w.page : D}`, B = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8443
+ const T = Ws(w, f), k = w.type === "page" && w.page === c, R = `${w.type}-${w.type === "page" ? w.page : D}`, z = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8443
8444
  oe,
8444
8445
  {
8445
8446
  variant: "text",
@@ -8482,7 +8483,7 @@ const Zd = ({
8482
8483
  children: String(w.page)
8483
8484
  }
8484
8485
  );
8485
- return /* @__PURE__ */ n("span", { "data-testid": R, children: B }, T);
8486
+ return /* @__PURE__ */ n("span", { "data-testid": T, children: z }, R);
8486
8487
  }) }),
8487
8488
  l && /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
8488
8489
  /* @__PURE__ */ n(K, { variant: "p2", textColor: "secondary", children: b }),
@@ -9475,10 +9476,10 @@ const Qr = _t(
9475
9476
  return o;
9476
9477
  const S = d.toLowerCase();
9477
9478
  return o.filter(({ value: N, label: A }) => {
9478
- var R;
9479
+ var T;
9479
9480
  if (!N)
9480
9481
  return !1;
9481
- const w = ((R = s[N]) == null ? void 0 : R.toLowerCase()) || A.toLowerCase(), D = Be.getCountryCallingCode(N);
9482
+ const w = ((T = s[N]) == null ? void 0 : T.toLowerCase()) || A.toLowerCase(), D = Be.getCountryCallingCode(N);
9482
9483
  return w.includes(S) || N.toLowerCase().includes(S) || `+${D}`.includes(S);
9483
9484
  });
9484
9485
  }, [o, d]);
@@ -9674,7 +9675,7 @@ const Qr = _t(
9674
9675
  "isLoading"
9675
9676
  ]);
9676
9677
  var V, W;
9677
- const [b, S] = Te.useState(() => ""), [N, A] = Te.useState([]), [w, D] = Te.useState(u), R = (() => {
9678
+ const [b, S] = Te.useState(() => ""), [N, A] = Te.useState([]), [w, D] = Te.useState(u), T = (() => {
9678
9679
  switch (c) {
9679
9680
  case "en":
9680
9681
  return Wo;
@@ -9689,8 +9690,8 @@ const Qr = _t(
9689
9690
  })(), k = Ks[c];
9690
9691
  Te.useEffect(() => {
9691
9692
  if (s && s !== "+7") {
9692
- const P = Be.parsePhoneNumber(s);
9693
- if (!(P != null && P.country) && (s.startsWith("+8") || s.startsWith("8"))) {
9693
+ const B = Be.parsePhoneNumber(s);
9694
+ if (!(B != null && B.country) && (s.startsWith("+8") || s.startsWith("8"))) {
9694
9695
  t == null || t(`+${s.replace(/\D/g, "").replace("8", "7")}`);
9695
9696
  return;
9696
9697
  }
@@ -9698,26 +9699,26 @@ const Qr = _t(
9698
9699
  const H = Jr(s, u), M = ar(H);
9699
9700
  D(H), S(M[0]), A(M);
9700
9701
  }, [u, t, s]);
9701
- const T = (H) => {
9702
- const M = Js(H), P = Jr(
9702
+ const R = (H) => {
9703
+ const M = Js(H), B = Jr(
9703
9704
  M,
9704
9705
  w != null ? w : u
9705
9706
  );
9706
- if (P !== w) {
9707
- const z = ar(P);
9708
- D(P), S(z[0]), A(z);
9707
+ if (B !== w) {
9708
+ const P = ar(B);
9709
+ D(B), S(P[0]), A(P);
9709
9710
  }
9710
9711
  t == null || t(M);
9711
9712
  const G = Be.isPossiblePhoneNumber(M);
9712
9713
  f == null || f(G);
9713
- }, B = (H) => {
9714
+ }, z = (H) => {
9714
9715
  if (!H)
9715
9716
  return;
9716
9717
  r == null || r(H), D(H);
9717
9718
  const M = ar(H);
9718
9719
  S(M[0]), A(M);
9719
- const P = `+${Be.getCountryCallingCode(H)}`;
9720
- t == null || t(P);
9720
+ const B = `+${Be.getCountryCallingCode(H)}`;
9721
+ t == null || t(B);
9721
9722
  }, F = (H) => {
9722
9723
  S(H);
9723
9724
  };
@@ -9744,15 +9745,15 @@ const Qr = _t(
9744
9745
  countrySelectComponent: Qs,
9745
9746
  countrySelectProps: {
9746
9747
  defaultCountry: (W = w != null ? w : u) != null ? W : yt,
9747
- locale: R,
9748
+ locale: T,
9748
9749
  translations: k,
9749
9750
  inputSize: d,
9750
- onCountrySelect: B
9751
+ onCountrySelect: z
9751
9752
  },
9752
9753
  inputComponent: mo,
9753
- labels: R,
9754
+ labels: T,
9754
9755
  smartCaret: !1,
9755
- onChange: T,
9756
+ onChange: R,
9756
9757
  mask: b,
9757
9758
  masks: N,
9758
9759
  inputSize: d,
@@ -10073,19 +10074,19 @@ const sl = y.forwardRef(
10073
10074
  "aria-label",
10074
10075
  "data-testid"
10075
10076
  ]);
10076
- const w = Math.max(Math.round(r), 1), D = e !== void 0, [R, k] = y.useState(
10077
+ const w = Math.max(Math.round(r), 1), D = e !== void 0, [T, k] = y.useState(
10077
10078
  () => lt(t, w)
10078
- ), [T, B] = y.useState(null), [F, V] = y.useState(
10079
+ ), [R, z] = y.useState(null), [F, V] = y.useState(
10079
10080
  lt(e != null ? e : t, w) || 1
10080
10081
  ), W = y.useRef([]), H = lt(
10081
- D ? e : R,
10082
+ D ? e : T,
10082
10083
  w
10083
- ), M = T != null ? T : H, P = typeof i == "number" ? i : al[i], G = ($) => {
10084
+ ), M = R != null ? R : H, B = typeof i == "number" ? i : al[i], G = ($) => {
10084
10085
  if (o)
10085
10086
  return;
10086
10087
  const ee = lt($, w), U = a && ee === H ? 0 : ee;
10087
10088
  D || k(U), U !== H && (h == null || h(U));
10088
- }, z = ($) => {
10089
+ }, P = ($) => {
10089
10090
  var U;
10090
10091
  const ee = lt($, w) || 1;
10091
10092
  V(ee), (U = W.current[ee - 1]) == null || U.focus();
@@ -10096,21 +10097,21 @@ const sl = y.forwardRef(
10096
10097
  return;
10097
10098
  }
10098
10099
  if ($.key === "ArrowRight" || $.key === "ArrowUp") {
10099
- $.preventDefault(), z(ee === w ? 1 : ee + 1);
10100
+ $.preventDefault(), P(ee === w ? 1 : ee + 1);
10100
10101
  return;
10101
10102
  }
10102
10103
  if ($.key === "ArrowLeft" || $.key === "ArrowDown") {
10103
- $.preventDefault(), z(ee === 1 ? w : ee - 1);
10104
+ $.preventDefault(), P(ee === 1 ? w : ee - 1);
10104
10105
  return;
10105
10106
  }
10106
10107
  if ($.key === "Home") {
10107
- $.preventDefault(), z(1);
10108
+ $.preventDefault(), P(1);
10108
10109
  return;
10109
10110
  }
10110
- $.key === "End" && ($.preventDefault(), z(w));
10111
+ $.key === "End" && ($.preventDefault(), P(w));
10111
10112
  }
10112
10113
  }, re = ($) => {
10113
- B(null), p == null || p($);
10114
+ z(null), p == null || p($);
10114
10115
  };
10115
10116
  return /* @__PURE__ */ n(
10116
10117
  "div",
@@ -10147,10 +10148,10 @@ const sl = y.forwardRef(
10147
10148
  "inline-flex shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent p-0 outline-none transition-colors disabled:cursor-not-allowed",
10148
10149
  u
10149
10150
  ),
10150
- style: { fontSize: P },
10151
+ style: { fontSize: B },
10151
10152
  onClick: () => G(U),
10152
10153
  onFocus: () => V(U),
10153
- onMouseEnter: () => !o && B(U),
10154
+ onMouseEnter: () => !o && z(U),
10154
10155
  onKeyDown: (he) => Y(he, U),
10155
10156
  children: /* @__PURE__ */ n(
10156
10157
  il,
@@ -10680,78 +10681,78 @@ function yl({
10680
10681
  }), N.current.clear();
10681
10682
  }, []), xe(() => {
10682
10683
  if (!d) {
10683
- S.current = null, b(/* @__PURE__ */ new Set()), N.current.forEach((R) => window.clearTimeout(R)), N.current.clear();
10684
+ S.current = null, b(/* @__PURE__ */ new Set()), N.current.forEach((T) => window.clearTimeout(T)), N.current.clear();
10684
10685
  return;
10685
10686
  }
10686
- const A = v.map((R) => R.id);
10687
+ const A = v.map((T) => T.id);
10687
10688
  if (S.current === null) {
10688
10689
  S.current = new Set(A);
10689
10690
  return;
10690
10691
  }
10691
- const w = S.current, D = A.filter((R) => !w.has(R));
10692
- S.current = new Set(A), D.length !== 0 && (b((R) => {
10693
- const k = new Set(R);
10694
- return D.forEach((T) => k.add(T)), k;
10695
- }), D.forEach((R) => {
10696
- const k = N.current.get(R);
10692
+ const w = S.current, D = A.filter((T) => !w.has(T));
10693
+ S.current = new Set(A), D.length !== 0 && (b((T) => {
10694
+ const k = new Set(T);
10695
+ return D.forEach((R) => k.add(R)), k;
10696
+ }), D.forEach((T) => {
10697
+ const k = N.current.get(T);
10697
10698
  k && window.clearTimeout(k);
10698
- const T = window.setTimeout(() => {
10699
- b((B) => {
10700
- if (!B.has(R))
10701
- return B;
10702
- const F = new Set(B);
10703
- return F.delete(R), F;
10704
- }), N.current.delete(R);
10699
+ const R = window.setTimeout(() => {
10700
+ b((z) => {
10701
+ if (!z.has(T))
10702
+ return z;
10703
+ const F = new Set(z);
10704
+ return F.delete(T), F;
10705
+ }), N.current.delete(T);
10705
10706
  }, 1400);
10706
- N.current.set(R, T);
10707
+ N.current.set(T, R);
10707
10708
  }));
10708
10709
  }, [d, v]), v.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": x, children: /* @__PURE__ */ n("tr", { "data-testid": h, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, o), className: "p-0", children: /* @__PURE__ */ n(bo, { locale: l }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": x, children: v.map((A) => {
10709
- var W, H, M, P;
10710
- const w = A.index, D = (W = s == null ? void 0 : s(A.original, w)) != null ? W : {}, R = typeof D.onClick == "function", k = D.onClick, T = d && g.has(A.id), B = (G) => {
10711
- var z;
10712
- (z = D.onKeyDown) == null || z.call(D, G), R && (G.key !== "Enter" && G.key !== " " || (G.preventDefault(), G.currentTarget.click()));
10710
+ var W, H, M, B;
10711
+ const w = A.index, D = (W = s == null ? void 0 : s(A.original, w)) != null ? W : {}, T = typeof D.onClick == "function", k = D.onClick, R = d && g.has(A.id), z = (G) => {
10712
+ var P;
10713
+ (P = D.onKeyDown) == null || P.call(D, G), T && (G.key !== "Enter" && G.key !== " " || (G.preventDefault(), G.currentTarget.click()));
10713
10714
  }, F = m(
10714
10715
  "group transition-colors",
10715
- T && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10716
+ R && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10716
10717
  // Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
10717
- (s || R) && "cursor-pointer",
10718
+ (s || T) && "cursor-pointer",
10718
10719
  D.className
10719
10720
  ), V = m(
10720
10721
  "bg-background group-hover:bg-[#F6F6F7]",
10721
- T && "bg-primary/5 group-hover:bg-primary/10"
10722
+ R && "bg-primary/5 group-hover:bg-primary/10"
10722
10723
  );
10723
10724
  return /* @__PURE__ */ n(
10724
10725
  "tr",
10725
10726
  L(I({
10726
10727
  "data-testid": h
10727
10728
  }, D), {
10728
- "data-new": T ? "true" : void 0,
10729
+ "data-new": R ? "true" : void 0,
10729
10730
  className: F,
10730
10731
  onClick: k,
10731
- onKeyDown: R ? B : D.onKeyDown,
10732
- role: R ? (H = D.role) != null ? H : "button" : D.role,
10733
- tabIndex: R ? (M = D.tabIndex) != null ? M : 0 : D.tabIndex,
10734
- "aria-label": R ? (P = D["aria-label"]) != null ? P : "Открыть строку" : D["aria-label"],
10732
+ onKeyDown: T ? z : D.onKeyDown,
10733
+ role: T ? (H = D.role) != null ? H : "button" : D.role,
10734
+ tabIndex: T ? (M = D.tabIndex) != null ? M : 0 : D.tabIndex,
10735
+ "aria-label": T ? (B = D["aria-label"]) != null ? B : "Открыть строку" : D["aria-label"],
10735
10736
  children: A.getVisibleCells().map((G) => {
10736
10737
  var ge, he, Ie, q;
10737
- const z = G.column.columnDef.meta, Y = A.original, re = w === v.length - 1, $ = pn(G.column.columnDef.cell, G.getContext()), ee = (ge = z == null ? void 0 : z.cellStyle) == null ? void 0 : ge.call(z, Y, w), U = (he = z == null ? void 0 : z.cellClassName) == null ? void 0 : he.call(z, Y, w), Q = typeof p == "function" ? p(Y, G.column.id, w) : p != null ? p : `cell-${G.column.id}`, j = Nr(z == null ? void 0 : z.align), J = Sr(z == null ? void 0 : z.fixed, G.column.id, u), ne = Cr(z == null ? void 0 : z.fixed, G.column.id, f, c);
10738
+ const P = G.column.columnDef.meta, Y = A.original, re = w === v.length - 1, $ = pn(G.column.columnDef.cell, G.getContext()), ee = (ge = P == null ? void 0 : P.cellStyle) == null ? void 0 : ge.call(P, Y, w), U = (he = P == null ? void 0 : P.cellClassName) == null ? void 0 : he.call(P, Y, w), Q = typeof p == "function" ? p(Y, G.column.id, w) : p != null ? p : `cell-${G.column.id}`, j = Nr(P == null ? void 0 : P.align), J = Sr(P == null ? void 0 : P.fixed, G.column.id, u), ne = Cr(P == null ? void 0 : P.fixed, G.column.id, f, c);
10738
10739
  return /* @__PURE__ */ n(
10739
10740
  "td",
10740
10741
  {
10741
- "data-testid": (Ie = z == null ? void 0 : z["data-testid"]) != null ? Ie : Q,
10742
+ "data-testid": (Ie = P == null ? void 0 : P["data-testid"]) != null ? Ie : Q,
10742
10743
  className: m(
10743
10744
  "align-top border-b border-default-background p-2",
10744
10745
  V,
10745
10746
  j,
10746
- z == null ? void 0 : z.className,
10747
+ P == null ? void 0 : P.className,
10747
10748
  U,
10748
10749
  re && "border-b-0",
10749
- ((z == null ? void 0 : z.fixed) === "left" || (z == null ? void 0 : z.fixed) === "right") && "sticky z-10"
10750
+ ((P == null ? void 0 : P.fixed) === "left" || (P == null ? void 0 : P.fixed) === "right") && "sticky z-10"
10750
10751
  ),
10751
10752
  style: L(I(I({
10752
- width: z == null ? void 0 : z.width,
10753
- minWidth: z == null ? void 0 : z.minWidth,
10754
- maxWidth: z == null ? void 0 : z.maxWidth
10753
+ width: P == null ? void 0 : P.width,
10754
+ minWidth: P == null ? void 0 : P.minWidth,
10755
+ maxWidth: P == null ? void 0 : P.maxWidth
10755
10756
  }, ee), J), {
10756
10757
  boxShadow: Ir(
10757
10758
  (q = ee == null ? void 0 : ee.boxShadow) != null ? q : void 0,
@@ -10852,11 +10853,11 @@ function Sl({
10852
10853
  scrollState: u
10853
10854
  }) {
10854
10855
  return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((c) => {
10855
- var k, T;
10856
- const d = c.column.columnDef.meta, x = c.column.getCanSort(), h = c.column.getIsSorted(), p = void 0, v = Nr(d == null ? void 0 : d.align), g = Sr(d == null ? void 0 : d.fixed, c.column.id, s), b = Cr(d == null ? void 0 : d.fixed, c.column.id, l, u), S = typeof a == "number" ? `${a}px` : a, N = x ? c.column.getToggleSortingHandler() : void 0, A = c.isPlaceholder ? null : pn(c.column.columnDef.header, c.getContext()), w = t.findIndex((B, F) => Ze(B, F) === c.column.id), D = w >= 0 ? t[w] : void 0, R = typeof (D == null ? void 0 : D.title) == "function" ? D.title({
10857
- sortColumns: r.map((B) => ({
10858
- column: { dataIndex: B.id, key: B.id, columnKey: B.id },
10859
- order: B.desc ? "descend" : "ascend"
10856
+ var k, R;
10857
+ const d = c.column.columnDef.meta, x = c.column.getCanSort(), h = c.column.getIsSorted(), p = void 0, v = Nr(d == null ? void 0 : d.align), g = Sr(d == null ? void 0 : d.fixed, c.column.id, s), b = Cr(d == null ? void 0 : d.fixed, c.column.id, l, u), S = typeof a == "number" ? `${a}px` : a, N = x ? c.column.getToggleSortingHandler() : void 0, A = c.isPlaceholder ? null : pn(c.column.columnDef.header, c.getContext()), w = t.findIndex((z, F) => Ze(z, F) === c.column.id), D = w >= 0 ? t[w] : void 0, T = typeof (D == null ? void 0 : D.title) == "function" ? D.title({
10858
+ sortColumns: r.map((z) => ({
10859
+ column: { dataIndex: z.id, key: z.id, columnKey: z.id },
10860
+ order: z.desc ? "descend" : "ascend"
10860
10861
  }))
10861
10862
  }) : A;
10862
10863
  return /* @__PURE__ */ n(
@@ -10881,13 +10882,13 @@ function Sl({
10881
10882
  maxWidth: d == null ? void 0 : d.maxWidth
10882
10883
  }), g), {
10883
10884
  boxShadow: Ir(
10884
- (T = d == null ? void 0 : d.headerStyle) == null ? void 0 : T.boxShadow,
10885
+ (R = d == null ? void 0 : d.headerStyle) == null ? void 0 : R.boxShadow,
10885
10886
  b
10886
10887
  )
10887
10888
  }),
10888
10889
  onClick: N,
10889
10890
  children: /* @__PURE__ */ C("div", { className: m("flex w-full items-center gap-2", pl(d == null ? void 0 : d.align)), children: [
10890
- R,
10891
+ T,
10891
10892
  x && /* @__PURE__ */ n("span", { title: p, className: "inline-flex items-center", children: /* @__PURE__ */ n(
10892
10893
  Z,
10893
10894
  {
@@ -10932,7 +10933,7 @@ function kl({
10932
10933
  store: t,
10933
10934
  runtimeRef: r
10934
10935
  }) {
10935
- var B;
10936
+ var z;
10936
10937
  an(t.subscribe, t.getVersion, t.getVersion);
10937
10938
  const o = r.current, { rowSelection: a, selectAllMode: i } = o, s = (F) => {
10938
10939
  var V, W;
@@ -10940,14 +10941,14 @@ function kl({
10940
10941
  }, l = (F) => {
10941
10942
  const V = new Set(F.map((W) => String(W)));
10942
10943
  return e.getCoreRowModel().rows.filter((W) => V.has(W.id)).map((W) => W.original);
10943
- }, u = e.getRowModel().rows, f = u.filter((F) => !s(F.original)).map((F) => F.id), c = f.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), d = f.length > 0 && c === f.length, x = c > 0 && !d, h = d ? !0 : x ? "indeterminate" : !1, p = ((B = a == null ? void 0 : a.allRowKeys) != null ? B : []).map((F) => String(F)), v = p.length > 0 ? p : f, g = v.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), b = v.length > 0 && g === v.length, S = g > 0 && !b, N = b ? !0 : S ? "indeterminate" : !1, A = (F, V, W) => {
10944
- var G, z;
10945
- const H = r.current, M = t.getKeys(), P = V ? Array.from(new Map([...M, ...F].map((Y) => [String(Y), Y])).values()) : M.filter((Y) => !new Set(F.map((re) => String(re))).has(String(Y)));
10946
- H.isControlled || (t.setKeys(P), H.setInternalSelectedRowKeys(P)), (z = (G = H.rowSelection) == null ? void 0 : G.onChange) == null || z.call(G, P, l(P), { type: W });
10944
+ }, u = e.getRowModel().rows, f = u.filter((F) => !s(F.original)).map((F) => F.id), c = f.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), d = f.length > 0 && c === f.length, x = c > 0 && !d, h = d ? !0 : x ? "indeterminate" : !1, p = ((z = a == null ? void 0 : a.allRowKeys) != null ? z : []).map((F) => String(F)), v = p.length > 0 ? p : f, g = v.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), b = v.length > 0 && g === v.length, S = g > 0 && !b, N = b ? !0 : S ? "indeterminate" : !1, A = (F, V, W) => {
10945
+ var G, P;
10946
+ const H = r.current, M = t.getKeys(), B = V ? Array.from(new Map([...M, ...F].map((Y) => [String(Y), Y])).values()) : M.filter((Y) => !new Set(F.map((re) => String(re))).has(String(Y)));
10947
+ H.isControlled || (t.setKeys(B), H.setInternalSelectedRowKeys(B)), (P = (G = H.rowSelection) == null ? void 0 : G.onChange) == null || P.call(G, B, l(B), { type: W });
10947
10948
  };
10948
10949
  return /* @__PURE__ */ n(br, { checked: i === "all" ? N : h, onCheckedChange: i === "all" ? (F) => {
10949
- var M, P;
10950
- const V = F === !0, W = r.current, H = (P = (M = W.rowSelection) == null ? void 0 : M.allRowKeys) != null && P.length ? W.rowSelection.allRowKeys : u.map((G) => W.getRowKeyValue(G.original, G.index));
10950
+ var M, B;
10951
+ const V = F === !0, W = r.current, H = (B = (M = W.rowSelection) == null ? void 0 : M.allRowKeys) != null && B.length ? W.rowSelection.allRowKeys : u.map((G) => W.getRowKeyValue(G.original, G.index));
10951
10952
  A(H != null ? H : [], V, "all");
10952
10953
  } : (F) => {
10953
10954
  const V = F === !0, W = r.current, H = u.filter((M) => !s(M.original)).map((M) => W.getRowKeyValue(M.original, M.index));
@@ -10995,12 +10996,12 @@ function Tl({
10995
10996
  const v = o.current, g = p === !0;
10996
10997
  if (u)
10997
10998
  return;
10998
- const b = v.getRowKeyValue(i, t.index), S = String(b), N = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = N.findIndex((M) => String(v.getRowKeyValue(M.original, M.index)) === S), D = A == null ? -1 : N.findIndex((M) => String(v.getRowKeyValue(M.original, M.index)) === A), R = v.rowSelectionShiftKeyRef.current && w >= 0 && D >= 0, k = R ? N.slice(Math.min(D, w), Math.max(D, w) + 1).filter((M) => {
10999
- var P, G, z;
11000
- return !((z = (G = (P = v.rowSelection) == null ? void 0 : P.getCheckboxProps) == null ? void 0 : G.call(P, M.original)) != null && z.disabled);
11001
- }).map((M) => v.getRowKeyValue(M.original, M.index)) : [b], T = new Set(k.map((M) => String(M))), B = r.getKeys(), F = g ? Array.from(new Map([...B, ...k].map((M) => [String(M), M])).values()) : B.filter((M) => !T.has(String(M)));
10999
+ const b = v.getRowKeyValue(i, t.index), S = String(b), N = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = N.findIndex((M) => String(v.getRowKeyValue(M.original, M.index)) === S), D = A == null ? -1 : N.findIndex((M) => String(v.getRowKeyValue(M.original, M.index)) === A), T = v.rowSelectionShiftKeyRef.current && w >= 0 && D >= 0, k = T ? N.slice(Math.min(D, w), Math.max(D, w) + 1).filter((M) => {
11000
+ var B, G, P;
11001
+ return !((P = (G = (B = v.rowSelection) == null ? void 0 : B.getCheckboxProps) == null ? void 0 : G.call(B, M.original)) != null && P.disabled);
11002
+ }).map((M) => v.getRowKeyValue(M.original, M.index)) : [b], R = new Set(k.map((M) => String(M))), z = r.getKeys(), F = g ? Array.from(new Map([...z, ...k].map((M) => [String(M), M])).values()) : z.filter((M) => !R.has(String(M)));
11002
11003
  v.isControlled || (r.setKeys(F), v.setInternalSelectedRowKeys(F));
11003
- const V = R && k.length > 1 ? "range" : "row";
11004
+ const V = T && k.length > 1 ? "range" : "row";
11004
11005
  (H = (W = v.rowSelection) == null ? void 0 : W.onChange) == null || H.call(W, F, f(F), { type: V }), v.lastRowSelectionKeyRef.current = b, v.rowSelectionShiftKeyRef.current = !1;
11005
11006
  },
11006
11007
  "aria-label": `Выбрать строку ${s}`,
@@ -11105,13 +11106,13 @@ function Xd({
11105
11106
  showHeader: A = !0,
11106
11107
  showSorterTooltip: w = !0,
11107
11108
  onRow: D,
11108
- locale: R,
11109
+ locale: T,
11109
11110
  tbodyDataTestId: k,
11110
- rowDataTestId: T = "item",
11111
- cellDataTestId: B
11111
+ rowDataTestId: R = "item",
11112
+ cellDataTestId: z
11112
11113
  }) {
11113
11114
  var Ar, Fr, Lr;
11114
- const F = (Ar = d != null ? d : x) != null ? Ar : [], V = !!i, W = Math.max(1, Math.floor(s != null ? s : 10)), H = de(null), M = de(null), P = de(/* @__PURE__ */ new WeakMap()), G = de(!1), z = de(null), Y = !!b, re = (Fr = b == null ? void 0 : b.selectAllMode) != null ? Fr : (b == null ? void 0 : b.selectAllScope) === "all" ? "all" : "page", [$, ee] = ue(
11115
+ const F = (Ar = d != null ? d : x) != null ? Ar : [], V = !!i, W = Math.max(1, Math.floor(s != null ? s : 10)), H = de(null), M = de(null), B = de(/* @__PURE__ */ new WeakMap()), G = de(!1), P = de(null), Y = !!b, re = (Fr = b == null ? void 0 : b.selectAllMode) != null ? Fr : (b == null ? void 0 : b.selectAllScope) === "all" ? "all" : "page", [$, ee] = ue(
11115
11116
  () => {
11116
11117
  var te;
11117
11118
  return (te = b == null ? void 0 : b.defaultSelectedRowKeys) != null ? te : [];
@@ -11155,7 +11156,7 @@ function Xd({
11155
11156
  getRowKeyValue: ae,
11156
11157
  setInternalSelectedRowKeys: ee,
11157
11158
  rowSelectionShiftKeyRef: G,
11158
- lastRowSelectionKeyRef: z
11159
+ lastRowSelectionKeyRef: P
11159
11160
  });
11160
11161
  be.current = {
11161
11162
  rowSelection: b,
@@ -11164,7 +11165,7 @@ function Xd({
11164
11165
  getRowKeyValue: ae,
11165
11166
  setInternalSelectedRowKeys: ee,
11166
11167
  rowSelectionShiftKeyRef: G,
11167
- lastRowSelectionKeyRef: z
11168
+ lastRowSelectionKeyRef: P
11168
11169
  }, ct(() => {
11169
11170
  var te;
11170
11171
  (te = j.current) == null || te.setKeys(Q);
@@ -11238,7 +11239,7 @@ function Xd({
11238
11239
  } : void 0
11239
11240
  })), qt = se(() => $e.getRowModel().rows.map((te) => te.id).join("\0"), [F, je, $e]), _e = A && u && (a === "window" || a === "auto" && (l == null ? void 0 : l.y) == null), No = u && !_e;
11240
11241
  ct(() => {
11241
- P.current = /* @__PURE__ */ new WeakMap();
11242
+ B.current = /* @__PURE__ */ new WeakMap();
11242
11243
  }, [_e]);
11243
11244
  const Io = se(() => {
11244
11245
  if (_e)
@@ -11262,28 +11263,28 @@ function Xd({
11262
11263
  columnsCount: ne.length,
11263
11264
  rowsSignature: qt,
11264
11265
  onRow: D,
11265
- locale: R,
11266
+ locale: T,
11266
11267
  stickyOffsets: q,
11267
11268
  fixedShadowEdges: Ie,
11268
11269
  scrollState: Ue,
11269
11270
  highlightNewRows: S,
11270
11271
  tbodyDataTestId: k,
11271
- rowDataTestId: T,
11272
- cellDataTestId: B
11272
+ rowDataTestId: R,
11273
+ cellDataTestId: z
11273
11274
  }), [
11274
11275
  F,
11275
11276
  c,
11276
11277
  ne.length,
11277
11278
  qt,
11278
11279
  D,
11279
- R,
11280
+ T,
11280
11281
  q,
11281
11282
  Ie,
11282
11283
  Ue,
11283
11284
  S,
11284
11285
  k,
11285
- T,
11286
- B
11286
+ R,
11287
+ z
11287
11288
  ]), Mr = de(null), Ye = Mr.current, Co = !!(Ye && Ye.selectedRowKeysSignature !== Tr && El(Ye.inputs, Rr)), Dr = Ye ? Co ? Ye.version : Ye.version + 1 : 0;
11288
11289
  ct(() => {
11289
11290
  Mr.current = {
@@ -11296,8 +11297,8 @@ function Xd({
11296
11297
  const me = H.current, ie = M.current;
11297
11298
  if (!me || !ie)
11298
11299
  return;
11299
- const Ee = te === "body" ? me : ie, ze = te === "body" ? ie : me, st = Ee.scrollLeft, er = P.current.get(Ee);
11300
- P.current.delete(Ee), !(st === er || ze.scrollLeft === st) && (ze.scrollLeft = st, P.current.set(ze, ze.scrollLeft));
11300
+ const Ee = te === "body" ? me : ie, ze = te === "body" ? ie : me, st = Ee.scrollLeft, er = B.current.get(Ee);
11301
+ B.current.delete(Ee), !(st === er || ze.scrollLeft === st) && (ze.scrollLeft = st, B.current.set(ze, ze.scrollLeft));
11301
11302
  }, []);
11302
11303
  return /* @__PURE__ */ C(
11303
11304
  "div",
@@ -11406,14 +11407,14 @@ function Xd({
11406
11407
  rowsSignature: qt,
11407
11408
  renderVersion: Dr,
11408
11409
  onRow: D,
11409
- locale: R,
11410
+ locale: T,
11410
11411
  stickyOffsets: q,
11411
11412
  fixedShadowEdges: Ie,
11412
11413
  scrollState: Ue,
11413
11414
  highlightNewRows: S,
11414
11415
  tbodyDataTestId: k,
11415
- rowDataTestId: T,
11416
- cellDataTestId: B
11416
+ rowDataTestId: R,
11417
+ cellDataTestId: z
11417
11418
  }
11418
11419
  )
11419
11420
  ]
@@ -11523,10 +11524,10 @@ function ec({
11523
11524
  linesCount: 6
11524
11525
  }
11525
11526
  ) }) : c.length === 0 ? /* @__PURE__ */ n("div", { className: o, "aria-busy": t, children: /* @__PURE__ */ n(bo, { locale: a }) }) : /* @__PURE__ */ n("div", { className: m("flex flex-col gap-2", o), "aria-busy": t, children: c.map((d, x) => {
11526
- var N, A, w, D, R;
11527
+ var N, A, w, D, T;
11527
11528
  const h = (N = s == null ? void 0 : s(d, x)) != null ? N : {}, p = typeof h.onClick == "function", v = (A = i == null ? void 0 : i(d, x)) != null ? A : x, g = h.onClick, b = (k) => {
11528
- var T;
11529
- (T = h.onKeyDown) == null || T.call(h, k), p && (k.key !== "Enter" && k.key !== " " || (k.preventDefault(), k.currentTarget.click()));
11529
+ var R;
11530
+ (R = h.onKeyDown) == null || R.call(h, k), p && (k.key !== "Enter" && k.key !== " " || (k.preventDefault(), k.currentTarget.click()));
11530
11531
  }, S = m(
11531
11532
  p && "cursor-pointer hover:bg-[#F6F6F7]",
11532
11533
  p && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
@@ -11544,7 +11545,7 @@ function ec({
11544
11545
  onKeyDown: p ? b : h.onKeyDown,
11545
11546
  role: p ? (w = h.role) != null ? w : "button" : h.role,
11546
11547
  tabIndex: p ? (D = h.tabIndex) != null ? D : 0 : h.tabIndex,
11547
- "aria-label": p ? (R = h["aria-label"]) != null ? R : "Открыть карточку" : h["aria-label"],
11548
+ "aria-label": p ? (T = h["aria-label"]) != null ? T : "Открыть карточку" : h["aria-label"],
11548
11549
  children: l == null ? void 0 : l(d, x)
11549
11550
  }),
11550
11551
  String(v)
@@ -12077,31 +12078,31 @@ function oc({
12077
12078
  x((e == null ? void 0 : e.from) || ""), p((e == null ? void 0 : e.to) || ""), v.current = (e == null ? void 0 : e.from) || "", g.current = (e == null ? void 0 : e.to) || "";
12078
12079
  }, [e]);
12079
12080
  const D = (W, H) => {
12080
- const M = W.replace(/\D/g, ""), P = H.replace(/\D/g, ""), G = Kl(W, H);
12081
- return M.length === 0 ? "" : G === "removed" && M.length === 2 && P.length === 3 ? `${M}:` : G === "removed" && M.length === 2 && P.length === 2 && H.includes(":") ? M[0] : G === "removed" && M.length === 1 ? M : G === "added" && M.length === 2 && P.length === 1 ? `${M}:` : M.length === 1 || M.length === 2 ? M : M.length <= 4 ? `${M.slice(0, 2)}:${M.slice(2)}` : `${M.slice(0, 2)}:${M.slice(2, 4)}`;
12082
- }, R = (W) => {
12081
+ const M = W.replace(/\D/g, ""), B = H.replace(/\D/g, ""), G = Kl(W, H);
12082
+ return M.length === 0 ? "" : G === "removed" && M.length === 2 && B.length === 3 ? `${M}:` : G === "removed" && M.length === 2 && B.length === 2 && H.includes(":") ? M[0] : G === "removed" && M.length === 1 ? M : G === "added" && M.length === 2 && B.length === 1 ? `${M}:` : M.length === 1 || M.length === 2 ? M : M.length <= 4 ? `${M.slice(0, 2)}:${M.slice(2)}` : `${M.slice(0, 2)}:${M.slice(2, 4)}`;
12083
+ }, T = (W) => {
12083
12084
  if (!W)
12084
12085
  return !0;
12085
12086
  if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(W))
12086
12087
  return !1;
12087
- const [M, P] = W.split(":").map(Number);
12088
- return M >= 0 && M <= 23 && P >= 0 && P <= 59;
12088
+ const [M, B] = W.split(":").map(Number);
12089
+ return M >= 0 && M <= 23 && B >= 0 && B <= 59;
12089
12090
  }, k = (W, H) => {
12090
12091
  const M = {
12091
12092
  from: W || void 0,
12092
12093
  to: H || void 0
12093
12094
  };
12094
12095
  !M.from && !M.to ? t == null || t(void 0) : t == null || t(M);
12095
- }, T = (W) => {
12096
+ }, R = (W) => {
12096
12097
  const H = D(W.target.value, v.current);
12097
- x(H), v.current = H, (H === "" || H.length === 5 && R(H)) && k(H, h);
12098
- }, B = (W) => {
12098
+ x(H), v.current = H, (H === "" || H.length === 5 && T(H)) && k(H, h);
12099
+ }, z = (W) => {
12099
12100
  const H = D(W.target.value, g.current);
12100
- p(H), g.current = H, (H === "" || H.length === 5 && R(H)) && k(d, H);
12101
+ p(H), g.current = H, (H === "" || H.length === 5 && T(H)) && k(d, H);
12101
12102
  }, F = (W) => {
12102
- f == null || f(W), d && !R(d) && (x(""), k("", h));
12103
+ f == null || f(W), d && !T(d) && (x(""), k("", h));
12103
12104
  }, V = (W) => {
12104
- f == null || f(W), h && !R(h) && (p(""), k(d, ""));
12105
+ f == null || f(W), h && !T(h) && (p(""), k(d, ""));
12105
12106
  };
12106
12107
  return /* @__PURE__ */ C("div", { className: m("w-full", a), children: [
12107
12108
  u && /* @__PURE__ */ n(
@@ -12140,7 +12141,7 @@ function oc({
12140
12141
  {
12141
12142
  type: "text",
12142
12143
  value: d,
12143
- onChange: T,
12144
+ onChange: R,
12144
12145
  onBlur: F,
12145
12146
  placeholder: r.from,
12146
12147
  disabled: o,
@@ -12171,7 +12172,7 @@ function oc({
12171
12172
  {
12172
12173
  type: "text",
12173
12174
  value: h,
12174
- onChange: B,
12175
+ onChange: z,
12175
12176
  onBlur: V,
12176
12177
  placeholder: r.to,
12177
12178
  disabled: o,
@@ -12727,26 +12728,26 @@ function vo({
12727
12728
  const [p, v] = ue(!1), g = de(null), b = de(0), S = X(
12728
12729
  (M) => {
12729
12730
  var G;
12730
- const P = Qt[h];
12731
+ const B = Qt[h];
12731
12732
  if (e) {
12732
- const z = e.split(",").map(($) => $.trim()), Y = `.${(G = M.name.split(".").pop()) == null ? void 0 : G.toLowerCase()}`;
12733
- if (!z.some(
12733
+ const P = e.split(",").map(($) => $.trim()), Y = `.${(G = M.name.split(".").pop()) == null ? void 0 : G.toLowerCase()}`;
12734
+ if (!P.some(
12734
12735
  ($) => $ === Y || $.includes("*") && M.type.match($.replace("*", ".*"))
12735
12736
  ))
12736
- return P.invalidFileType(z.join(P.typeSeparator));
12737
+ return B.invalidFileType(P.join(B.typeSeparator));
12737
12738
  }
12738
12739
  if (t && M.size > t) {
12739
- const z = (t / 1024 / 1024).toFixed(2);
12740
- return P.maxFileSize(z);
12740
+ const P = (t / 1024 / 1024).toFixed(2);
12741
+ return B.maxFileSize(P);
12741
12742
  }
12742
12743
  return null;
12743
12744
  },
12744
12745
  [e, h, t]
12745
12746
  ), N = X(
12746
- (M, P) => {
12747
+ (M, B) => {
12747
12748
  x == null || x({
12748
12749
  file: M,
12749
- fileList: P
12750
+ fileList: B
12750
12751
  });
12751
12752
  },
12752
12753
  [x]
@@ -12754,12 +12755,12 @@ function vo({
12754
12755
  (M) => E(null, null, function* () {
12755
12756
  if (!l)
12756
12757
  return;
12757
- let P = M.map(Ql);
12758
- for (const G of P) {
12759
- const z = L(I({}, G), {
12758
+ let B = M.map(Ql);
12759
+ for (const G of B) {
12760
+ const P = L(I({}, G), {
12760
12761
  status: "uploading"
12761
12762
  });
12762
- P = P.map((Y) => Y.uid === G.uid ? z : Y), N(z, P);
12763
+ B = B.map((Y) => Y.uid === G.uid ? P : Y), N(P, B);
12763
12764
  try {
12764
12765
  const Y = new FormData();
12765
12766
  Y.append(s, G.originFileObj);
@@ -12774,25 +12775,25 @@ function vo({
12774
12775
  body: Y
12775
12776
  }), ee = yield Jl($);
12776
12777
  if (!$.ok) {
12777
- const Q = nn(ee, h) || $.statusText, j = L(I({}, z), {
12778
+ const Q = nn(ee, h) || $.statusText, j = L(I({}, P), {
12778
12779
  status: "error",
12779
12780
  response: ee,
12780
12781
  error: Q
12781
12782
  });
12782
- P = P.map((J) => J.uid === G.uid ? j : J), N(j, P), i == null || i(Q);
12783
+ B = B.map((J) => J.uid === G.uid ? j : J), N(j, B), i == null || i(Q);
12783
12784
  continue;
12784
12785
  }
12785
- const U = L(I({}, z), {
12786
+ const U = L(I({}, P), {
12786
12787
  status: "done",
12787
12788
  response: ee
12788
12789
  });
12789
- P = P.map((Q) => Q.uid === G.uid ? U : Q), N(U, P);
12790
+ B = B.map((Q) => Q.uid === G.uid ? U : Q), N(U, B);
12790
12791
  } catch (Y) {
12791
- const re = nn(Y, h), $ = L(I({}, z), {
12792
+ const re = nn(Y, h), $ = L(I({}, P), {
12792
12793
  status: "error",
12793
12794
  error: re
12794
12795
  });
12795
- P = P.map((ee) => ee.uid === G.uid ? $ : ee), N($, P), i == null || i(re);
12796
+ B = B.map((ee) => ee.uid === G.uid ? $ : ee), N($, B), i == null || i(re);
12796
12797
  }
12797
12798
  }
12798
12799
  }),
@@ -12812,8 +12813,8 @@ function vo({
12812
12813
  if (!M || M.length === 0 || r)
12813
12814
  return;
12814
12815
  const G = Array.from(M);
12815
- for (const z of G) {
12816
- const Y = S(z);
12816
+ for (const P of G) {
12817
+ const Y = S(P);
12817
12818
  if (Y) {
12818
12819
  i == null || i(Y);
12819
12820
  return;
@@ -12827,7 +12828,7 @@ function vo({
12827
12828
  w(M.target.files), M.target.value = "";
12828
12829
  },
12829
12830
  [w]
12830
- ), R = X(() => {
12831
+ ), T = X(() => {
12831
12832
  var M;
12832
12833
  r || (M = g.current) == null || M.click();
12833
12834
  }, [r]), k = X(
@@ -12835,12 +12836,12 @@ function vo({
12835
12836
  a == null || a(M);
12836
12837
  },
12837
12838
  [a]
12838
- ), T = X(
12839
+ ), R = X(
12839
12840
  (M) => {
12840
12841
  M.preventDefault(), M.stopPropagation(), b.current += 1, M.dataTransfer.items && M.dataTransfer.items.length > 0 && v(!0);
12841
12842
  },
12842
12843
  []
12843
- ), B = X((M) => {
12844
+ ), z = X((M) => {
12844
12845
  M.preventDefault(), M.stopPropagation(), b.current -= 1, b.current <= 0 && (b.current = 0, v(!1));
12845
12846
  }, []), F = X((M) => {
12846
12847
  M.preventDefault(), M.stopPropagation();
@@ -12851,45 +12852,45 @@ function vo({
12851
12852
  [w]
12852
12853
  ), W = X(
12853
12854
  (M = {}) => {
12854
- var P, G;
12855
+ var B, G;
12855
12856
  return L(I({}, M), {
12856
- role: (P = M.role) != null ? P : "button",
12857
+ role: (B = M.role) != null ? B : "button",
12857
12858
  tabIndex: (G = M.tabIndex) != null ? G : r ? -1 : 0,
12858
12859
  "aria-disabled": r || M["aria-disabled"],
12859
- onClick: (z) => {
12860
+ onClick: (P) => {
12860
12861
  var Y;
12861
- (Y = M.onClick) == null || Y.call(M, z), z.defaultPrevented || R();
12862
+ (Y = M.onClick) == null || Y.call(M, P), P.defaultPrevented || T();
12862
12863
  },
12863
- onKeyDown: (z) => {
12864
+ onKeyDown: (P) => {
12864
12865
  var Y;
12865
- (Y = M.onKeyDown) == null || Y.call(M, z), !(z.defaultPrevented || r) && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), R());
12866
+ (Y = M.onKeyDown) == null || Y.call(M, P), !(P.defaultPrevented || r) && (P.key === "Enter" || P.key === " ") && (P.preventDefault(), T());
12866
12867
  }
12867
12868
  });
12868
12869
  },
12869
- [r, R]
12870
+ [r, T]
12870
12871
  ), H = X(
12871
12872
  (M = {}) => {
12872
- const P = W(M);
12873
- return L(I({}, P), {
12873
+ const B = W(M);
12874
+ return L(I({}, B), {
12874
12875
  onDragEnter: (G) => {
12875
- var z;
12876
- (z = M.onDragEnter) == null || z.call(M, G), G.defaultPrevented || T(G);
12876
+ var P;
12877
+ (P = M.onDragEnter) == null || P.call(M, G), G.defaultPrevented || R(G);
12877
12878
  },
12878
12879
  onDragLeave: (G) => {
12879
- var z;
12880
- (z = M.onDragLeave) == null || z.call(M, G), G.defaultPrevented || B(G);
12880
+ var P;
12881
+ (P = M.onDragLeave) == null || P.call(M, G), G.defaultPrevented || z(G);
12881
12882
  },
12882
12883
  onDragOver: (G) => {
12883
- var z;
12884
- (z = M.onDragOver) == null || z.call(M, G), G.defaultPrevented || F(G);
12884
+ var P;
12885
+ (P = M.onDragOver) == null || P.call(M, G), G.defaultPrevented || F(G);
12885
12886
  },
12886
12887
  onDrop: (G) => {
12887
- var z;
12888
- (z = M.onDrop) == null || z.call(M, G), G.defaultPrevented || V(G);
12888
+ var P;
12889
+ (P = M.onDrop) == null || P.call(M, G), G.defaultPrevented || V(G);
12889
12890
  }
12890
12891
  });
12891
12892
  },
12892
- [W, T, B, F, V]
12893
+ [W, R, z, F, V]
12893
12894
  );
12894
12895
  return se(
12895
12896
  () => ({
@@ -12897,7 +12898,7 @@ function vo({
12897
12898
  inputRef: g,
12898
12899
  handleInputChange: D,
12899
12900
  handleDeleteFile: k,
12900
- handleTriggerClick: R,
12901
+ handleTriggerClick: T,
12901
12902
  getTriggerProps: W,
12902
12903
  getDropzoneProps: H
12903
12904
  }),
@@ -12906,7 +12907,7 @@ function vo({
12906
12907
  W,
12907
12908
  k,
12908
12909
  D,
12909
- R,
12910
+ T,
12910
12911
  p
12911
12912
  ]
12912
12913
  );
@@ -12936,16 +12937,16 @@ const wo = y.forwardRef(
12936
12937
  locale: A = "ru",
12937
12938
  name: w,
12938
12939
  action: D,
12939
- method: R,
12940
+ method: T,
12940
12941
  data: k,
12941
- headers: T,
12942
- withCredentials: B,
12942
+ headers: R,
12943
+ withCredentials: z,
12943
12944
  onChange: F,
12944
12945
  "data-testId": V
12945
12946
  }, W) => {
12946
- const H = Qt[A], M = g === void 0 ? H.dropzoneText : g, P = S === void 0 ? H.selectFile : S, {
12947
+ const H = Qt[A], M = g === void 0 ? H.dropzoneText : g, B = S === void 0 ? H.selectFile : S, {
12947
12948
  isDragging: G,
12948
- inputRef: z,
12949
+ inputRef: P,
12949
12950
  handleInputChange: Y,
12950
12951
  handleDeleteFile: re,
12951
12952
  getDropzoneProps: $
@@ -12959,10 +12960,10 @@ const wo = y.forwardRef(
12959
12960
  onError: c,
12960
12961
  name: w,
12961
12962
  action: D,
12962
- method: R,
12963
+ method: T,
12963
12964
  data: k,
12964
- headers: T,
12965
- withCredentials: B,
12965
+ headers: R,
12966
+ withCredentials: z,
12966
12967
  onChange: F,
12967
12968
  locale: A
12968
12969
  }), ee = (U) => {
@@ -12981,7 +12982,7 @@ const wo = y.forwardRef(
12981
12982
  /* @__PURE__ */ n(
12982
12983
  "input",
12983
12984
  {
12984
- ref: z,
12985
+ ref: P,
12985
12986
  type: "file",
12986
12987
  accept: e,
12987
12988
  multiple: t,
@@ -13019,7 +13020,7 @@ const wo = y.forwardRef(
13019
13020
  ] }),
13020
13021
  N && /* @__PURE__ */ n(K, { variant: "p2", textColor: "destructive", className: "text-center", children: N })
13021
13022
  ] }),
13022
- l && /* @__PURE__ */ n(oe, { variant: "dashed", size: "md", disabled: o, children: P })
13023
+ l && /* @__PURE__ */ n(oe, { variant: "dashed", size: "md", disabled: o, children: B })
13023
13024
  ]
13024
13025
  })
13025
13026
  ),
@@ -13114,7 +13115,7 @@ function ql({
13114
13115
  onClick: S,
13115
13116
  buttonProps: N
13116
13117
  }) {
13117
- const { inputRef: A, handleInputChange: w, handleTriggerClick: D, getTriggerProps: R } = vo({
13118
+ const { inputRef: A, handleInputChange: w, handleTriggerClick: D, getTriggerProps: T } = vo({
13118
13119
  accept: t,
13119
13120
  multiple: r,
13120
13121
  maxSize: o,
@@ -13146,7 +13147,7 @@ function ql({
13146
13147
  ),
13147
13148
  e ? /* @__PURE__ */ n(
13148
13149
  Et,
13149
- L(I({}, R({
13150
+ L(I({}, T({
13150
13151
  className: b,
13151
13152
  onClick: S
13152
13153
  })), {