konsolpro-custom-ui 0.0.438 → 0.0.439

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
@@ -9,7 +9,7 @@ var Ar = Math.pow, Mr = (e, t, r) => t in e ? No(e, t, { enumerable: !0, configu
9
9
  for (var r of vt(t))
10
10
  Er.call(t, r) && Mr(e, r, t[r]);
11
11
  return e;
12
- }, L = (e, t) => Io(e, So(t));
12
+ }, F = (e, t) => Io(e, So(t));
13
13
  var V = (e, t) => {
14
14
  var r = {};
15
15
  for (var o in e)
@@ -453,7 +453,7 @@ function Z({
453
453
  "div",
454
454
  {
455
455
  "data-ui-icon": !0,
456
- style: L(N({}, t), {
456
+ style: F(N({}, t), {
457
457
  fontSize: o
458
458
  }),
459
459
  className: m("inline-flex items-center justify-center", r),
@@ -652,7 +652,7 @@ function hd(i) {
652
652
  const f = r != null ? r : {}, { className: l } = f, u = V(f, ["className"]);
653
653
  return /* @__PURE__ */ n(st.Header, { className: "flex w-full", children: /* @__PURE__ */ k(
654
654
  st.Trigger,
655
- L(N({
655
+ F(N({
656
656
  "data-slot": "accordion-trigger",
657
657
  className: m(
658
658
  "border-border bg-transparent",
@@ -694,7 +694,7 @@ function gd(o) {
694
694
  ]);
695
695
  return /* @__PURE__ */ n(
696
696
  st.Content,
697
- L(N({
697
+ F(N({
698
698
  "data-slot": "accordion-content",
699
699
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden"
700
700
  }, r), {
@@ -715,7 +715,7 @@ const Uo = be("flex-col items-center justify-center", {
715
715
  }), We = y.forwardRef(
716
716
  (s, i) => {
717
717
  var l = s, { size: e = 16, show: t, children: r, className: o } = l, a = V(l, ["size", "show", "children", "className"]);
718
- return /* @__PURE__ */ k("span", L(N({ ref: i, className: Uo({ show: t }) }, a), { children: [
718
+ return /* @__PURE__ */ k("span", F(N({ ref: i, className: Uo({ show: t }) }, a), { children: [
719
719
  /* @__PURE__ */ n(
720
720
  Z,
721
721
  {
@@ -866,7 +866,7 @@ const ln = be(
866
866
  }
867
867
  }, ne = y.forwardRef(
868
868
  (I, b) => {
869
- var T = I, {
869
+ var S = I, {
870
870
  className: e,
871
871
  variant: t = "primary",
872
872
  size: r = "md",
@@ -883,7 +883,7 @@ const ln = be(
883
883
  "data-testid": g,
884
884
  type: h,
885
885
  onClick: v
886
- } = T, p = V(T, [
886
+ } = S, p = V(S, [
887
887
  "className",
888
888
  "variant",
889
889
  "size",
@@ -901,17 +901,17 @@ const ln = be(
901
901
  "type",
902
902
  "onClick"
903
903
  ]);
904
- var B;
905
- const A = o ? kt : "button", w = !!d, M = c && !w, D = c && w, S = c || w;
906
- let C;
907
- D ? C = "disabled-loading" : M ? C = "loading" : w && (C = "disabled");
908
- const O = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", W = () => /* @__PURE__ */ n(
904
+ var O;
905
+ const A = o ? kt : "button", w = !!d, M = c && !w, D = c && w, C = c || w;
906
+ let T;
907
+ D ? T = "disabled-loading" : M ? T = "loading" : w && (T = "disabled");
908
+ const B = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", W = () => /* @__PURE__ */ n(
909
909
  We,
910
910
  {
911
911
  size: 16,
912
912
  className: m(
913
913
  "absolute left-[50%] -translate-x-1/2",
914
- O()
914
+ B()
915
915
  )
916
916
  }
917
917
  ), z = () => l ? c ? W() : /* @__PURE__ */ n(Z, N({ icon: l }, f)) : null, H = /* @__PURE__ */ k(ve, { children: [
@@ -922,7 +922,7 @@ const ln = be(
922
922
  ] });
923
923
  return /* @__PURE__ */ n(
924
924
  A,
925
- L(N({}, p), {
925
+ F(N({}, p), {
926
926
  className: m(
927
927
  "relative",
928
928
  ln({
@@ -934,17 +934,17 @@ const ln = be(
934
934
  isLoadingAndDisabled: D,
935
935
  iconPosition: s
936
936
  }),
937
- x && ((B = $o[t]) == null ? void 0 : B[x]),
937
+ x && ((O = $o[t]) == null ? void 0 : O[x]),
938
938
  e
939
939
  ),
940
940
  disabled: w,
941
- "aria-disabled": S || void 0,
941
+ "aria-disabled": C || void 0,
942
942
  "aria-busy": c || void 0,
943
943
  ref: b,
944
- "data-state": C,
944
+ "data-state": T,
945
945
  type: M && !o ? "button" : h,
946
946
  onClick: (R) => {
947
- if (S) {
947
+ if (C) {
948
948
  R.preventDefault(), R.stopPropagation();
949
949
  return;
950
950
  }
@@ -1010,11 +1010,11 @@ const Pr = be("", {
1010
1010
  ]);
1011
1011
  const [c, d] = de(!1), x = ae(() => i ? typeof i == "boolean" ? {} : i : null, [i]), g = Q(
1012
1012
  (p) => E(null, null, function* () {
1013
- var I, T, A, w, M;
1013
+ var I, S, A, w, M;
1014
1014
  if (!x)
1015
1015
  return;
1016
1016
  p.preventDefault(), p.stopPropagation(), p.nativeEvent.stopImmediatePropagation();
1017
- const b = (A = (T = x.text) != null ? T : (I = p.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? A : "";
1017
+ const b = (A = (S = x.text) != null ? S : (I = p.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? A : "";
1018
1018
  try {
1019
1019
  yield navigator.clipboard.writeText(b), (w = x.onCopy) == null || w.call(x), d(!0), setTimeout(() => d(!1), (M = x.duration) != null ? M : 1500);
1020
1020
  } catch (D) {
@@ -1027,7 +1027,7 @@ const Pr = be("", {
1027
1027
  const v = a;
1028
1028
  return x ? /* @__PURE__ */ k(
1029
1029
  v,
1030
- L(N({
1030
+ F(N({
1031
1031
  ref: l,
1032
1032
  role: "button",
1033
1033
  tabIndex: 0,
@@ -1147,7 +1147,7 @@ const fn = y.forwardRef(
1147
1147
  ]);
1148
1148
  return /* @__PURE__ */ n(Ne.Portal, { children: /* @__PURE__ */ n(
1149
1149
  Ne.Content,
1150
- L(N({
1150
+ F(N({
1151
1151
  ref: f,
1152
1152
  align: r,
1153
1153
  side: o,
@@ -1187,7 +1187,7 @@ const mn = y.forwardRef(
1187
1187
  r || (i == null || i(p), s !== void 0 && (x == null || x(s)), d == null || d());
1188
1188
  }, v = /* @__PURE__ */ n(
1189
1189
  "div",
1190
- L(N({
1190
+ F(N({
1191
1191
  ref: u,
1192
1192
  className: m(
1193
1193
  "font-graphik relative flex max-h-8 w-full cursor-pointer items-center rounded-md px-3 py-2.5 text-[14px] leading-5 transition-colors outline-none select-none",
@@ -1202,7 +1202,7 @@ const mn = y.forwardRef(
1202
1202
  children: t
1203
1203
  })
1204
1204
  );
1205
- return o && y.isValidElement(t) ? y.cloneElement(t, L(N({}, t.props), {
1205
+ return o && y.isValidElement(t) ? y.cloneElement(t, F(N({}, t.props), {
1206
1206
  className: m(
1207
1207
  "font-graphik hover:bg-hover-background relative flex w-full cursor-pointer items-center rounded-sm px-4 py-2.5 text-[14px] leading-5 outline-none select-none transition-colors",
1208
1208
  a ? "text-destructive" : "text-foreground",
@@ -1222,7 +1222,7 @@ const pn = y.forwardRef(
1222
1222
  var i = a, { className: e, children: t } = i, r = V(i, ["className", "children"]);
1223
1223
  return /* @__PURE__ */ n(
1224
1224
  "div",
1225
- L(N({
1225
+ F(N({
1226
1226
  ref: o,
1227
1227
  className: m(
1228
1228
  "text-muted-foreground px-4 py-2 text-sm font-semibold",
@@ -1353,7 +1353,7 @@ const Xo = {
1353
1353
  const h = Xo[e];
1354
1354
  return /* @__PURE__ */ k(
1355
1355
  "div",
1356
- L(N({
1356
+ F(N({
1357
1357
  ref: d,
1358
1358
  role: "alert",
1359
1359
  className: m(
@@ -1544,7 +1544,7 @@ function ia(e, t, r) {
1544
1544
  return Number.isFinite(o) && (i = Math.max(i, Number(o))), Number.isFinite(a) && (i = Math.min(i, Number(a))), i;
1545
1545
  }
1546
1546
  const Le = y.forwardRef(
1547
- (W, O) => {
1547
+ (W, B) => {
1548
1548
  var z = W, {
1549
1549
  className: e,
1550
1550
  type: t,
@@ -1565,13 +1565,13 @@ const Le = y.forwardRef(
1565
1565
  suffix: p,
1566
1566
  showErrorMessage: b = !0,
1567
1567
  onClear: I,
1568
- showStepperButtons: T = !1,
1568
+ showStepperButtons: S = !1,
1569
1569
  onStepDown: A,
1570
1570
  onStepUp: w,
1571
1571
  onChange: M,
1572
1572
  value: D,
1573
- "data-testid": S
1574
- } = z, C = V(z, [
1573
+ "data-testid": C
1574
+ } = z, T = V(z, [
1575
1575
  "className",
1576
1576
  "type",
1577
1577
  "size",
@@ -1598,18 +1598,18 @@ const Le = y.forwardRef(
1598
1598
  "value",
1599
1599
  "data-testid"
1600
1600
  ]);
1601
- const H = y.useRef(null), B = D != null && D.toString().length > 0, R = I && B && !d, F = B ? oa(String(D)) : null, P = Math.max(
1602
- zr(C.step),
1601
+ const H = y.useRef(null), O = D != null && D.toString().length > 0, R = I && O && !d, L = O ? oa(String(D)) : null, P = Math.max(
1602
+ zr(T.step),
1603
1603
  zr(D)
1604
1604
  ), K = y.useCallback(
1605
1605
  (Y) => {
1606
- if (H.current = Y, typeof O == "function") {
1607
- O(Y);
1606
+ if (H.current = Y, typeof B == "function") {
1607
+ B(Y);
1608
1608
  return;
1609
1609
  }
1610
- O && (O.current = Y);
1610
+ B && (B.current = Y);
1611
1611
  },
1612
- [O]
1612
+ [B]
1613
1613
  ), J = y.useCallback((Y) => {
1614
1614
  const X = H.current;
1615
1615
  X && (X.value = Y, M && M({
@@ -1621,17 +1621,17 @@ const Le = y.forwardRef(
1621
1621
  var ye;
1622
1622
  if (d)
1623
1623
  return;
1624
- const X = Number((ye = C.step) != null ? ye : 1);
1624
+ const X = Number((ye = T.step) != null ? ye : 1);
1625
1625
  if (!Number.isFinite(X) || X === 0)
1626
1626
  return;
1627
- const U = F != null ? F : 0, $ = ia(
1627
+ const U = L != null ? L : 0, $ = ia(
1628
1628
  U + Y * X,
1629
- C.min,
1630
- C.max
1629
+ T.min,
1630
+ T.max
1631
1631
  ), fe = aa($, P);
1632
1632
  J(fe);
1633
1633
  },
1634
- [P, d, F, C.max, C.min, C.step, J]
1634
+ [P, d, L, T.max, T.min, T.step, J]
1635
1635
  ), j = y.useCallback(() => {
1636
1636
  if (A) {
1637
1637
  A();
@@ -1720,16 +1720,16 @@ const Le = y.forwardRef(
1720
1720
  onChange: M,
1721
1721
  disabled: d,
1722
1722
  autoFocus: v,
1723
- "data-testid": S
1724
- }, C)
1723
+ "data-testid": C
1724
+ }, T)
1725
1725
  ),
1726
- (g || o || l || i || p || R || T) && /* @__PURE__ */ k(
1726
+ (g || o || l || i || p || R || S) && /* @__PURE__ */ k(
1727
1727
  "div",
1728
1728
  {
1729
1729
  className: m(
1730
1730
  "flex shrink-0 items-center gap-1.5",
1731
- !T && r === "md" && "pr-2.5",
1732
- !T && r === "lg" && "pr-3"
1731
+ !S && r === "md" && "pr-2.5",
1732
+ !S && r === "lg" && "pr-3"
1733
1733
  ),
1734
1734
  children: [
1735
1735
  p && /* @__PURE__ */ n("div", { className: m("font-graphik flex items-center text-[16px]", d && "text-secondary opacity-50"), children: p }),
@@ -1790,7 +1790,7 @@ const Le = y.forwardRef(
1790
1790
  size: 16
1791
1791
  }
1792
1792
  ),
1793
- T && /* @__PURE__ */ k(
1793
+ S && /* @__PURE__ */ k(
1794
1794
  "div",
1795
1795
  {
1796
1796
  className: m("flex items-center gap-[2px]", {
@@ -1859,7 +1859,7 @@ const sa = y.forwardRef(
1859
1859
  }, []);
1860
1860
  return /* @__PURE__ */ n(
1861
1861
  Le,
1862
- L(N({}, s), {
1862
+ F(N({}, s), {
1863
1863
  ref: l,
1864
1864
  type: r ? "text" : "password",
1865
1865
  size: i,
@@ -1901,7 +1901,7 @@ const Rt = y.forwardRef(
1901
1901
  ]);
1902
1902
  return /* @__PURE__ */ n(
1903
1903
  Le,
1904
- L(N({}, u), {
1904
+ F(N({}, u), {
1905
1905
  ref: t,
1906
1906
  size: i,
1907
1907
  disabled: s,
@@ -1936,7 +1936,7 @@ const la = y.forwardRef(
1936
1936
  const l = e, { size: r = "md", title: o, className: a, disabled: i } = l, s = V(l, ["size", "title", "className", "disabled"]);
1937
1937
  return /* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
1938
1938
  Le,
1939
- L(N({}, s), {
1939
+ F(N({}, s), {
1940
1940
  ref: t,
1941
1941
  size: "lg",
1942
1942
  disabled: i,
@@ -1966,7 +1966,7 @@ const da = y.forwardRef(
1966
1966
  );
1967
1967
  return /* @__PURE__ */ n(
1968
1968
  Le,
1969
- L(N({}, a), {
1969
+ F(N({}, a), {
1970
1970
  ref: t,
1971
1971
  size: r,
1972
1972
  className: m("pl-2", o),
@@ -2014,36 +2014,36 @@ function bd({
2014
2014
  }) {
2015
2015
  var D;
2016
2016
  const [g, h] = y.useState(!1), [v, p] = y.useState(
2017
- t && ((D = e.find((S) => S.value === t)) == null ? void 0 : D.label) || ""
2017
+ t && ((D = e.find((C) => C.value === t)) == null ? void 0 : D.label) || ""
2018
2018
  ), b = y.useRef(null), I = y.useMemo(() => e.filter(
2019
- (S) => S.label.toLowerCase().includes(v.toLowerCase())
2019
+ (C) => C.label.toLowerCase().includes(v.toLowerCase())
2020
2020
  ), [e, v]);
2021
2021
  y.useEffect(() => {
2022
2022
  if (t) {
2023
- const S = e.find((C) => C.value === t);
2024
- p((S == null ? void 0 : S.label) || "");
2023
+ const C = e.find((T) => T.value === t);
2024
+ p((C == null ? void 0 : C.label) || "");
2025
2025
  }
2026
2026
  }, [t]);
2027
- const T = y.useCallback(
2028
- (S) => {
2029
- const C = e.find((O) => O.value === S);
2030
- C && (r(C.value, C), p(C.label)), h(!1);
2027
+ const S = y.useCallback(
2028
+ (C) => {
2029
+ const T = e.find((B) => B.value === C);
2030
+ T && (r(T.value, T), p(T.label)), h(!1);
2031
2031
  },
2032
2032
  [e, r]
2033
2033
  ), A = y.useCallback(
2034
- (S) => {
2035
- p(S.target.value), a == null || a(S.target.value), h(!0);
2034
+ (C) => {
2035
+ p(C.target.value), a == null || a(C.target.value), h(!0);
2036
2036
  },
2037
2037
  []
2038
2038
  ), w = y.useCallback(() => {
2039
2039
  g ? h(!1) : (h(!0), setTimeout(() => {
2040
- var S;
2041
- (S = b.current) == null || S.focus();
2042
- }, 0));
2043
- }, [g]), M = y.useCallback((S) => {
2044
- h(S), S && setTimeout(() => {
2045
2040
  var C;
2046
2041
  (C = b.current) == null || C.focus();
2042
+ }, 0));
2043
+ }, [g]), M = y.useCallback((C) => {
2044
+ h(C), C && setTimeout(() => {
2045
+ var T;
2046
+ (T = b.current) == null || T.focus();
2047
2047
  }, 0);
2048
2048
  }, []);
2049
2049
  return /* @__PURE__ */ n(Qe, { open: g, onOpenChange: M, children: /* @__PURE__ */ k("div", { className: "relative", children: [
@@ -2083,15 +2083,15 @@ function bd({
2083
2083
  align: "start",
2084
2084
  children: /* @__PURE__ */ n(lt, { shouldFilter: !1, children: /* @__PURE__ */ k(dt, { children: [
2085
2085
  /* @__PURE__ */ n(Tt, { children: i }),
2086
- /* @__PURE__ */ n(ct, { children: I.map((S) => /* @__PURE__ */ n(
2086
+ /* @__PURE__ */ n(ct, { children: I.map((C) => /* @__PURE__ */ n(
2087
2087
  Ot,
2088
2088
  {
2089
- value: S.value,
2090
- onSelect: T,
2089
+ value: C.value,
2090
+ onSelect: S,
2091
2091
  className: "flex flex-col items-start py-2",
2092
- children: d ? d(S) : /* @__PURE__ */ n("div", { children: S.label })
2092
+ children: d ? d(C) : /* @__PURE__ */ n("div", { children: C.label })
2093
2093
  },
2094
- S.value
2094
+ C.value
2095
2095
  )) })
2096
2096
  ] }) })
2097
2097
  }
@@ -2158,7 +2158,7 @@ const ca = {
2158
2158
  }[r];
2159
2159
  return /* @__PURE__ */ k(
2160
2160
  Je.Root,
2161
- L(N({
2161
+ F(N({
2162
2162
  ref: l,
2163
2163
  className: m(
2164
2164
  "relative flex shrink-0",
@@ -2235,7 +2235,7 @@ const xa = ke.forwardRef(
2235
2235
  }, [a, r, o]), x = d ? ma[d] : "bg-muted", g = d ? pa[d] : "text-foreground";
2236
2236
  return /* @__PURE__ */ n(
2237
2237
  Je.Fallback,
2238
- L(N({
2238
+ F(N({
2239
2239
  ref: l,
2240
2240
  className: m(
2241
2241
  "flex h-full w-full items-center justify-center rounded-[inherit]",
@@ -2280,7 +2280,7 @@ const ya = new URL("../assets/alfa-BqdpLXjE.png", import.meta.url).href, va = ne
2280
2280
  ]);
2281
2281
  return /* @__PURE__ */ n(
2282
2282
  "div",
2283
- L(N({
2283
+ F(N({
2284
2284
  ref: d,
2285
2285
  className: m(
2286
2286
  // Base styles
@@ -2554,31 +2554,31 @@ const vd = (f) => {
2554
2554
  "onScrollComplete",
2555
2555
  "testIds"
2556
2556
  ]);
2557
- const { days: d, selectedDate: x, setSelectedDate: g } = Oa(L(N({}, u), {
2557
+ const { days: d, selectedDate: x, setSelectedDate: g } = Oa(F(N({}, u), {
2558
2558
  onChange: e
2559
- })), h = le(null), v = Q((T) => {
2559
+ })), h = le(null), v = Q((S) => {
2560
2560
  const A = h.current;
2561
2561
  if (A) {
2562
2562
  const w = La * Pe;
2563
- A.scrollBy({ left: T > 0 ? w : -546, behavior: "smooth" });
2563
+ A.scrollBy({ left: S > 0 ? w : -546, behavior: "smooth" });
2564
2564
  }
2565
- }, []), p = (T) => T.getTime() === x.getTime(), b = Q((T, A = !1) => {
2565
+ }, []), p = (S) => S.getTime() === x.getTime(), b = Q((S, A = !1) => {
2566
2566
  if (h.current && d.length > 0) {
2567
- const w = d.findIndex((M) => M.getTime() === Me(T).getTime());
2567
+ const w = d.findIndex((M) => M.getTime() === Me(S).getTime());
2568
2568
  if (w !== -1) {
2569
- const M = h.current.offsetWidth, S = window.innerWidth < xn ? w * Pe : w * Pe - M / 2 + Pe / 2;
2570
- A ? h.current.scrollTo({ left: Math.max(0, S), behavior: "smooth" }) : h.current.scrollLeft = Math.max(0, S);
2569
+ const M = h.current.offsetWidth, C = window.innerWidth < xn ? w * Pe : w * Pe - M / 2 + Pe / 2;
2570
+ A ? h.current.scrollTo({ left: Math.max(0, C), behavior: "smooth" }) : h.current.scrollLeft = Math.max(0, C);
2571
2571
  }
2572
2572
  }
2573
2573
  }, [d]);
2574
2574
  ge(() => {
2575
2575
  if (d.length > 0) {
2576
- const T = Me(/* @__PURE__ */ new Date());
2577
- b(T);
2576
+ const S = Me(/* @__PURE__ */ new Date());
2577
+ b(S);
2578
2578
  }
2579
2579
  }, []), ge(() => {
2580
2580
  if (i && d.length > 0 && h.current) {
2581
- const T = setTimeout(() => {
2581
+ const S = setTimeout(() => {
2582
2582
  var A;
2583
2583
  if (i.mode === "date")
2584
2584
  b(i.date, !0);
@@ -2597,7 +2597,7 @@ const vd = (f) => {
2597
2597
  s == null || s();
2598
2598
  }, 500);
2599
2599
  }, 50);
2600
- return () => clearTimeout(T);
2600
+ return () => clearTimeout(S);
2601
2601
  }
2602
2602
  }, [i, d, s, b]);
2603
2603
  const I = le([]);
@@ -2607,13 +2607,13 @@ const vd = (f) => {
2607
2607
  if (M > 0)
2608
2608
  h.current.scrollLeft += M * Pe;
2609
2609
  else if (M === -1) {
2610
- const D = A.getTime(), S = w.getTime();
2611
- if (S < D) {
2612
- const C = Math.round((D - S) / 864e5);
2613
- h.current.scrollLeft += C * Pe;
2610
+ const D = A.getTime(), C = w.getTime();
2611
+ if (C < D) {
2612
+ const T = Math.round((D - C) / 864e5);
2613
+ h.current.scrollLeft += T * Pe;
2614
2614
  } else {
2615
- const C = Math.round((S - D) / 864e5);
2616
- h.current.scrollLeft = Math.max(0, h.current.scrollLeft - C * Pe);
2615
+ const T = Math.round((C - D) / 864e5);
2616
+ h.current.scrollLeft = Math.max(0, h.current.scrollLeft - T * Pe);
2617
2617
  }
2618
2618
  }
2619
2619
  }
@@ -2639,16 +2639,16 @@ const vd = (f) => {
2639
2639
  scrollbarWidth: "none",
2640
2640
  msOverflowStyle: "none"
2641
2641
  },
2642
- children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((T) => /* @__PURE__ */ n(
2642
+ children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((S) => /* @__PURE__ */ n(
2643
2643
  Fa,
2644
2644
  {
2645
- date: T,
2646
- selected: p(T),
2647
- onClick: () => g(T),
2645
+ date: S,
2646
+ selected: p(S),
2647
+ onClick: () => g(S),
2648
2648
  renderBadge: r,
2649
2649
  className: t
2650
2650
  },
2651
- T.toISOString()
2651
+ S.toISOString()
2652
2652
  )) })
2653
2653
  }
2654
2654
  ),
@@ -2668,7 +2668,7 @@ const vd = (f) => {
2668
2668
  var a = o, { className: e } = a, t = V(a, ["className"]);
2669
2669
  return /* @__PURE__ */ n(
2670
2670
  Ie.ScrollUpButton,
2671
- L(N({
2671
+ F(N({
2672
2672
  ref: r,
2673
2673
  className: m(
2674
2674
  "flex cursor-default items-center justify-center px-3 py-1.5",
@@ -2685,7 +2685,7 @@ const vn = y.forwardRef((o, r) => {
2685
2685
  var a = o, { className: e } = a, t = V(a, ["className"]);
2686
2686
  return /* @__PURE__ */ n(
2687
2687
  Ie.ScrollDownButton,
2688
- L(N({
2688
+ F(N({
2689
2689
  ref: r,
2690
2690
  className: m(
2691
2691
  "flex cursor-default items-center justify-center px-3 py-1.5",
@@ -2702,7 +2702,7 @@ const sr = y.forwardRef((s, i) => {
2702
2702
  var l = s, { className: e, children: t, selected: r, size: o = "md" } = l, a = V(l, ["className", "children", "selected", "size"]);
2703
2703
  return /* @__PURE__ */ n(
2704
2704
  Ie.Item,
2705
- L(N({
2705
+ F(N({
2706
2706
  ref: i,
2707
2707
  className: m(
2708
2708
  "font-graphik relative flex w-full cursor-pointer items-center px-3 transition-colors outline-none select-none",
@@ -2726,7 +2726,7 @@ const sr = y.forwardRef((s, i) => {
2726
2726
  });
2727
2727
  sr.displayName = "SelectItem";
2728
2728
  const lr = y.forwardRef(
2729
- (A, T) => {
2729
+ (A, S) => {
2730
2730
  var w = A, {
2731
2731
  className: e,
2732
2732
  children: t,
@@ -2766,15 +2766,15 @@ const lr = y.forwardRef(
2766
2766
  "onClear",
2767
2767
  "inlineSelect"
2768
2768
  ]);
2769
- const M = f || c && c.length > 0, D = y.useRef(null), [S, C] = y.useState(2);
2769
+ const M = f || c && c.length > 0, D = y.useRef(null), [C, T] = y.useState(2);
2770
2770
  return y.useLayoutEffect(() => {
2771
2771
  if (!M || !(c != null && c.length) || !D.current)
2772
2772
  return;
2773
- const O = () => {
2773
+ const B = () => {
2774
2774
  const z = D.current;
2775
2775
  if (!z)
2776
2776
  return;
2777
- const H = z.offsetWidth, B = u ? 60 : 0, R = 20, F = a ? 20 : 0, J = H - B - R - F - 16 - 30;
2777
+ const H = z.offsetWidth, O = u ? 60 : 0, R = 20, L = a ? 20 : 0, J = H - O - R - L - 16 - 30;
2778
2778
  let re = 0, j = 0;
2779
2779
  const q = 12, Y = 20, X = 4, U = 7;
2780
2780
  for (let $ = 0; $ < c.length; $++) {
@@ -2784,10 +2784,10 @@ const lr = y.forwardRef(
2784
2784
  else
2785
2785
  break;
2786
2786
  }
2787
- C(Math.max(1, re));
2787
+ T(Math.max(1, re));
2788
2788
  };
2789
- O();
2790
- const W = new ResizeObserver(O);
2789
+ B();
2790
+ const W = new ResizeObserver(B);
2791
2791
  return W.observe(D.current), () => {
2792
2792
  W.disconnect();
2793
2793
  };
@@ -2810,8 +2810,8 @@ const lr = y.forwardRef(
2810
2810
  className: m("relative flex items-center", s && "w-full"),
2811
2811
  children: /* @__PURE__ */ k(
2812
2812
  Ie.Trigger,
2813
- L(N({
2814
- ref: T,
2813
+ F(N({
2814
+ ref: S,
2815
2815
  className: m(
2816
2816
  "font-graphik group flex items-center",
2817
2817
  !l && [
@@ -2848,12 +2848,12 @@ const lr = y.forwardRef(
2848
2848
  ref: D,
2849
2849
  className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${b ? "" : "pr-2"}`,
2850
2850
  children: M && (c != null && c.length) ? /* @__PURE__ */ k("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
2851
- c.slice(0, S).map((O) => /* @__PURE__ */ k(
2851
+ c.slice(0, C).map((B) => /* @__PURE__ */ k(
2852
2852
  "div",
2853
2853
  {
2854
2854
  className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
2855
2855
  children: [
2856
- /* @__PURE__ */ n(G, { variant: "p2", children: O }),
2856
+ /* @__PURE__ */ n(G, { variant: "p2", children: B }),
2857
2857
  /* @__PURE__ */ n(
2858
2858
  "div",
2859
2859
  {
@@ -2861,7 +2861,7 @@ const lr = y.forwardRef(
2861
2861
  x || (W.preventDefault(), W.stopPropagation());
2862
2862
  },
2863
2863
  onClick: (W) => {
2864
- x || (W.preventDefault(), W.stopPropagation(), d == null || d(O));
2864
+ x || (W.preventDefault(), W.stopPropagation(), d == null || d(B));
2865
2865
  },
2866
2866
  onMouseDown: (W) => {
2867
2867
  x || (W.preventDefault(), W.stopPropagation());
@@ -2882,11 +2882,11 @@ const lr = y.forwardRef(
2882
2882
  )
2883
2883
  ]
2884
2884
  },
2885
- O
2885
+ B
2886
2886
  )),
2887
- c.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ k(G, { variant: "p2", children: [
2887
+ c.length > C && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ k(G, { variant: "p2", children: [
2888
2888
  "+",
2889
- c.length - S
2889
+ c.length - C
2890
2890
  ] }) })
2891
2891
  ] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: t })
2892
2892
  }
@@ -2905,17 +2905,17 @@ const lr = y.forwardRef(
2905
2905
  v && /* @__PURE__ */ n(
2906
2906
  "div",
2907
2907
  {
2908
- onPointerDown: (O) => {
2909
- x || (O.preventDefault(), O.stopPropagation());
2908
+ onPointerDown: (B) => {
2909
+ x || (B.preventDefault(), B.stopPropagation());
2910
2910
  },
2911
- onClick: (O) => {
2912
- x || (O.preventDefault(), O.stopPropagation(), p == null || p());
2911
+ onClick: (B) => {
2912
+ x || (B.preventDefault(), B.stopPropagation(), p == null || p());
2913
2913
  },
2914
- onMouseDown: (O) => {
2915
- x || (O.preventDefault(), O.stopPropagation());
2914
+ onMouseDown: (B) => {
2915
+ x || (B.preventDefault(), B.stopPropagation());
2916
2916
  },
2917
- onKeyDown: (O) => {
2918
- x || (O.key === "Enter" || O.key === " ") && (O.preventDefault(), O.stopPropagation(), p == null || p());
2917
+ onKeyDown: (B) => {
2918
+ x || (B.key === "Enter" || B.key === " ") && (B.preventDefault(), B.stopPropagation(), p == null || p());
2919
2919
  },
2920
2920
  className: m(
2921
2921
  "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",
@@ -2969,7 +2969,7 @@ const wd = Ie.Group, Va = y.forwardRef((i, a) => {
2969
2969
  var s = i, { className: e, children: t, placeholder: r } = s, o = V(s, ["className", "children", "placeholder"]);
2970
2970
  return /* @__PURE__ */ n(
2971
2971
  Ie.Value,
2972
- L(N({
2972
+ F(N({
2973
2973
  ref: a,
2974
2974
  placeholder: r,
2975
2975
  className: m("block w-full text-left", e)
@@ -2996,7 +2996,7 @@ const wd = Ie.Group, Va = y.forwardRef((i, a) => {
2996
2996
  ]);
2997
2997
  return /* @__PURE__ */ n(Ie.Portal, { children: /* @__PURE__ */ k(
2998
2998
  Ie.Content,
2999
- L(N({
2999
+ F(N({
3000
3000
  ref: l,
3001
3001
  className: m(
3002
3002
  // z-[9999] для отображения поверх модалок и попапов (обычно они имеют z-50 или z-100)
@@ -3090,7 +3090,7 @@ const Ha = Ie.Root, Ga = y.forwardRef(
3090
3090
  };
3091
3091
  return /* @__PURE__ */ Co(
3092
3092
  Ie.Root,
3093
- L(N({}, u), {
3093
+ F(N({}, u), {
3094
3094
  disabled: o,
3095
3095
  key: t.sort().join("|"),
3096
3096
  value: void 0,
@@ -3101,13 +3101,13 @@ const Ha = Ie.Root, Ga = y.forwardRef(
3101
3101
  }),
3102
3102
  y.Children.map(e, (h) => {
3103
3103
  var v, p;
3104
- return y.isValidElement(h) ? ((v = h.type) == null ? void 0 : v.displayName) === "SelectTrigger" ? y.cloneElement(h, L(N({}, h.props), {
3104
+ return y.isValidElement(h) ? ((v = h.type) == null ? void 0 : v.displayName) === "SelectTrigger" ? y.cloneElement(h, F(N({}, h.props), {
3105
3105
  multiple: !0,
3106
3106
  selectedValues: t,
3107
3107
  onValueRemove: g,
3108
3108
  disabled: o,
3109
3109
  size: l
3110
- })) : ((p = h.type) == null ? void 0 : p.displayName) === "SelectContent" ? y.cloneElement(h, L(N({}, h.props), {
3110
+ })) : ((p = h.type) == null ? void 0 : p.displayName) === "SelectContent" ? y.cloneElement(h, F(N({}, h.props), {
3111
3111
  selectedValues: t,
3112
3112
  value: void 0,
3113
3113
  isMultiple: !0,
@@ -3149,7 +3149,7 @@ const Nd = ({
3149
3149
  const p = new Date(u.getFullYear(), u.getMonth(), 1);
3150
3150
  return Br(p);
3151
3151
  }, [u, c]), h = (p) => {
3152
- const b = x.find((T) => T.value === p);
3152
+ const b = x.find((S) => S.value === p);
3153
3153
  if (!b)
3154
3154
  return;
3155
3155
  d(p);
@@ -3254,7 +3254,7 @@ const Ka = window.innerWidth < xn, ja = {
3254
3254
  const x = i ? ja[i] : void 0;
3255
3255
  return t === "inline" ? /* @__PURE__ */ n(
3256
3256
  Ye,
3257
- L(N({
3257
+ F(N({
3258
3258
  ref: f,
3259
3259
  radius: "4xl",
3260
3260
  padding: "sm",
@@ -3310,7 +3310,7 @@ const Ka = window.innerWidth < xn, ja = {
3310
3310
  })
3311
3311
  ) : /* @__PURE__ */ k(
3312
3312
  Ye,
3313
- L(N({
3313
+ F(N({
3314
3314
  ref: f,
3315
3315
  radius: "4xl",
3316
3316
  padding: "sm",
@@ -3408,7 +3408,7 @@ function Sd(s) {
3408
3408
  }, [f] = ir(u);
3409
3409
  return /* @__PURE__ */ n(
3410
3410
  "div",
3411
- L(N({
3411
+ F(N({
3412
3412
  ref: f,
3413
3413
  className: m("relative overflow-visible px-4", o)
3414
3414
  }, i), {
@@ -3463,7 +3463,7 @@ function Za(e) {
3463
3463
  onCheckedChange: u,
3464
3464
  ref: f,
3465
3465
  "data-testid": c
3466
- } = e, d = o === "md" ? 16 : 24, x = y.useId(), g = l || x, h = i || !1, [v, p] = y.useState(!1), b = s !== void 0, I = b ? s : v, T = () => I === !0 ? "checked" : I === "indeterminate" ? "indeterminate" : "unchecked", A = (M) => {
3466
+ } = e, d = o === "md" ? 16 : 24, x = y.useId(), g = l || x, h = i || !1, [v, p] = y.useState(!1), b = s !== void 0, I = b ? s : v, S = () => I === !0 ? "checked" : I === "indeterminate" ? "indeterminate" : "unchecked", A = (M) => {
3467
3467
  b && u ? u(M) : b || p(M);
3468
3468
  }, w = /* @__PURE__ */ n(
3469
3469
  Fr.Root,
@@ -3471,7 +3471,7 @@ function Za(e) {
3471
3471
  ref: f,
3472
3472
  id: g,
3473
3473
  className: m(
3474
- $a({ size: o, state: T(), isDisabled: h }),
3474
+ $a({ size: o, state: S(), isDisabled: h }),
3475
3475
  r || (a ? void 0 : t)
3476
3476
  ),
3477
3477
  disabled: h,
@@ -3501,7 +3501,7 @@ function Za(e) {
3501
3501
  ] }) : w;
3502
3502
  }
3503
3503
  const cr = y.forwardRef(
3504
- (e, t) => /* @__PURE__ */ n(Za, L(N({}, e), { ref: t }))
3504
+ (e, t) => /* @__PURE__ */ n(Za, F(N({}, e), { ref: t }))
3505
3505
  ), Ja = {
3506
3506
  xs: "h-6 text-[12px]",
3507
3507
  sm: "h-8 text-[14px]",
@@ -3532,12 +3532,12 @@ const cr = y.forwardRef(
3532
3532
  return (D = b.current) == null ? void 0 : D.focus();
3533
3533
  });
3534
3534
  }, [v]);
3535
- const [I, T] = y.useState(""), A = y.useCallback((D) => {
3535
+ const [I, S] = y.useState(""), A = y.useCallback((D) => {
3536
3536
  if (typeof D == "string")
3537
3537
  return D;
3538
3538
  if (y.isValidElement(D)) {
3539
- const S = D.props;
3540
- return typeof S.children == "string" ? S.children : Array.isArray(S.children) ? S.children.map(A).join(" ") : A(S.children);
3539
+ const C = D.props;
3540
+ return typeof C.children == "string" ? C.children : Array.isArray(C.children) ? C.children.map(A).join(" ") : A(C.children);
3541
3541
  }
3542
3542
  return "";
3543
3543
  }, []), w = y.useMemo(() => I ? e.filter((D) => A(D.label).toLowerCase().includes(I.toLowerCase())) : e, [e, I, A]);
@@ -3607,7 +3607,7 @@ const cr = y.forwardRef(
3607
3607
  {
3608
3608
  ref: b,
3609
3609
  value: I,
3610
- onChange: (D) => T(D.target.value),
3610
+ onChange: (D) => S(D.target.value),
3611
3611
  placeholder: i,
3612
3612
  size: "md",
3613
3613
  type: "border",
@@ -3632,10 +3632,10 @@ const cr = y.forwardRef(
3632
3632
  Ja[o]
3633
3633
  ),
3634
3634
  onClick: () => {
3635
- r(D.value), p(!1), T("");
3635
+ r(D.value), p(!1), S("");
3636
3636
  },
3637
- onKeyDown: (S) => {
3638
- (S.key === "Enter" || S.key === " ") && (S.preventDefault(), r(D.value), p(!1), T(""));
3637
+ onKeyDown: (C) => {
3638
+ (C.key === "Enter" || C.key === " ") && (C.preventDefault(), r(D.value), p(!1), S(""));
3639
3639
  },
3640
3640
  tabIndex: 0,
3641
3641
  role: "option",
@@ -3673,22 +3673,22 @@ function qa({
3673
3673
  onOpenChange: u
3674
3674
  }) {
3675
3675
  const f = Q((p, b) => {
3676
- const { type: I, changes: T } = b;
3676
+ const { type: I, changes: S } = b;
3677
3677
  switch (I) {
3678
3678
  case xe.stateChangeTypes.ItemClick:
3679
3679
  case xe.stateChangeTypes.InputKeyDownEnter:
3680
3680
  case xe.stateChangeTypes.InputKeyDownEscape:
3681
3681
  case xe.stateChangeTypes.InputBlur:
3682
- return L(N({}, T), {
3682
+ return F(N({}, S), {
3683
3683
  // Сохраняем inputValue из изменений, но предотвращаем вызов onInputValueChange
3684
- inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
3684
+ inputValue: S.selectedItem ? s(S.selectedItem.value) : S.inputValue || ""
3685
3685
  });
3686
3686
  case xe.stateChangeTypes.FunctionSelectItem:
3687
- return L(N({}, T), {
3688
- inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
3687
+ return F(N({}, S), {
3688
+ inputValue: S.selectedItem ? s(S.selectedItem.value) : S.inputValue || ""
3689
3689
  });
3690
3690
  default:
3691
- return T;
3691
+ return S;
3692
3692
  }
3693
3693
  }, [s]), v = xe({
3694
3694
  items: e,
@@ -3710,14 +3710,14 @@ function qa({
3710
3710
  }
3711
3711
  }), { selectItem: c, setInputValue: d, getInputProps: x } = v, g = V(v, ["selectItem", "setInputValue", "getInputProps"]), h = Q((p) => {
3712
3712
  const b = x(p);
3713
- return L(N({}, b), {
3713
+ return F(N({}, b), {
3714
3714
  onBlur: (I) => {
3715
- var T;
3716
- (T = b.onBlur) == null || T.call(b, I), a == null || a(I);
3715
+ var S;
3716
+ (S = b.onBlur) == null || S.call(b, I), a == null || a(I);
3717
3717
  }
3718
3718
  });
3719
3719
  }, [x, a]);
3720
- return L(N({}, g), {
3720
+ return F(N({}, g), {
3721
3721
  selectItem: c,
3722
3722
  getInputProps: h,
3723
3723
  setInputValue: d
@@ -3772,17 +3772,17 @@ function ei({
3772
3772
  onClear: b,
3773
3773
  clearable: I
3774
3774
  }) {
3775
- const T = Q(x, []), A = ae(() => r ? {
3775
+ const S = Q(x, []), A = ae(() => r ? {
3776
3776
  value: r,
3777
- label: T(r)
3778
- } : null, [r, T]), w = qa({
3777
+ label: S(r)
3778
+ } : null, [r, S]), w = qa({
3779
3779
  items: t,
3780
3780
  value: A,
3781
3781
  onChange: o,
3782
3782
  onSearch: a,
3783
3783
  onBlur: i,
3784
3784
  disabled: f,
3785
- getLabel: T,
3785
+ getLabel: S,
3786
3786
  isOpen: v,
3787
3787
  onOpenChange: p
3788
3788
  }), M = Xa(w.isOpen, g, h), D = ae(() => ({
@@ -3811,7 +3811,7 @@ function ei({
3811
3811
  onBlur: i,
3812
3812
  loading: g,
3813
3813
  items: t,
3814
- getLabel: T,
3814
+ getLabel: S,
3815
3815
  onClear: b,
3816
3816
  clearable: I
3817
3817
  }), [
@@ -3825,7 +3825,7 @@ function ei({
3825
3825
  d,
3826
3826
  i,
3827
3827
  t,
3828
- T,
3828
+ S,
3829
3829
  p
3830
3830
  ]);
3831
3831
  return /* @__PURE__ */ n(wn.Provider, { value: D, children: e });
@@ -3992,7 +3992,7 @@ const ti = [
3992
3992
  }
3993
3993
  }
3994
3994
  ),
3995
- /* @__PURE__ */ n("button", L(N({ type: "button", className: "cursor-pointer inline-flex items-center justify-center bg-transparent border-none focus:outline-none p-0" }, a({ disabled: f })), { children: /* @__PURE__ */ n(
3995
+ /* @__PURE__ */ n("button", F(N({ type: "button", className: "cursor-pointer inline-flex items-center justify-center bg-transparent border-none focus:outline-none p-0" }, a({ disabled: f })), { children: /* @__PURE__ */ n(
3996
3996
  Z,
3997
3997
  {
3998
3998
  icon: "ArrowDownIcon",
@@ -4007,6 +4007,12 @@ const ti = [
4007
4007
  ] }) });
4008
4008
  };
4009
4009
  In.displayName = "ComboboxActions";
4010
+ function Cd(e) {
4011
+ const { clientHeight: t, scrollHeight: r, scrollTop: o } = e;
4012
+ return {
4013
+ reachedEnd: r - o <= t + 1
4014
+ };
4015
+ }
4010
4016
  function Jt(e, t) {
4011
4017
  return m(
4012
4018
  ...ti,
@@ -4073,7 +4079,7 @@ const Rn = y.forwardRef(
4073
4079
  }, [o, x]);
4074
4080
  return /* @__PURE__ */ n(
4075
4081
  "div",
4076
- L(N({
4082
+ F(N({
4077
4083
  ref: g,
4078
4084
  className: m(
4079
4085
  Cn(s, l, u, f, Wt(c)),
@@ -4099,7 +4105,7 @@ const Mn = y.forwardRef(
4099
4105
  } = pt(), u = l();
4100
4106
  return /* @__PURE__ */ n(
4101
4107
  "input",
4102
- L(N(N({
4108
+ F(N(N({
4103
4109
  ref: t
4104
4110
  }, u), e), {
4105
4111
  value: u.value || "",
@@ -4116,36 +4122,37 @@ function Mt(s) {
4116
4122
  className: e,
4117
4123
  children: t,
4118
4124
  viewPortClassName: r,
4119
- relative: o = !0,
4120
- asChild: a = !1
4125
+ viewportProps: o,
4126
+ relative: a = !0
4121
4127
  } = l, i = V(l, [
4122
4128
  "className",
4123
4129
  "children",
4124
4130
  "viewPortClassName",
4125
- "relative",
4126
- "asChild"
4131
+ "viewportProps",
4132
+ "relative"
4127
4133
  ]);
4128
4134
  return /* @__PURE__ */ k(
4129
4135
  it.Root,
4130
- L(N({
4136
+ F(N({
4131
4137
  "data-slot": "scroll-area",
4132
4138
  className: m(
4133
- o && "relative",
4139
+ a && "relative",
4134
4140
  e
4135
4141
  )
4136
4142
  }, i), {
4137
4143
  children: [
4138
4144
  /* @__PURE__ */ n(
4139
4145
  it.Viewport,
4140
- {
4141
- "data-slot": "scroll-area-viewport",
4146
+ F(N({
4147
+ "data-slot": "scroll-area-viewport"
4148
+ }, o), {
4142
4149
  className: m(
4143
4150
  "focus:border-primary/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus:border-[3px] focus:outline-1",
4144
- r
4151
+ r,
4152
+ o == null ? void 0 : o.className
4145
4153
  ),
4146
- asChild: a,
4147
4154
  children: t
4148
- }
4155
+ })
4149
4156
  ),
4150
4157
  /* @__PURE__ */ n(mi, {}),
4151
4158
  /* @__PURE__ */ n(it.Corner, {})
@@ -4163,7 +4170,7 @@ function mi(o) {
4163
4170
  ]);
4164
4171
  return /* @__PURE__ */ n(
4165
4172
  it.ScrollAreaScrollbar,
4166
- L(N({
4173
+ F(N({
4167
4174
  "data-slot": "scroll-area-scrollbar",
4168
4175
  orientation: t,
4169
4176
  className: m(
@@ -4188,7 +4195,7 @@ const ur = y.forwardRef(
4188
4195
  var s = i, { children: e, isSelected: t, className: r } = s, o = V(s, ["children", "isSelected", "className"]);
4189
4196
  return typeof e == "function" ? /* @__PURE__ */ n(
4190
4197
  "div",
4191
- L(N({
4198
+ F(N({
4192
4199
  ref: a
4193
4200
  }, o), {
4194
4201
  className: Jt(t, r),
@@ -4199,7 +4206,7 @@ const ur = y.forwardRef(
4199
4206
  })
4200
4207
  ) : /* @__PURE__ */ n(
4201
4208
  "div",
4202
- L(N({
4209
+ F(N({
4203
4210
  ref: a
4204
4211
  }, o), {
4205
4212
  className: Jt(t, r),
@@ -4236,49 +4243,64 @@ function pi({
4236
4243
  if (!y.isValidElement(c))
4237
4244
  return c;
4238
4245
  if (Or(c.type, "List")) {
4239
- const x = y.Children.map(c.props.children, (h, v) => {
4240
- if (!y.isValidElement(h))
4241
- return h;
4242
- if (Or(h.type, "Item"))
4246
+ const x = c.props, g = y.Children.map(c.props.children, (v, p) => {
4247
+ if (!y.isValidElement(v))
4248
+ return v;
4249
+ if (Or(v.type, "Item"))
4243
4250
  try {
4244
- const p = h.props, b = Qt(p.option), I = i.get(b);
4245
- if (I) {
4246
- const { item: T, index: A } = I, w = s === b;
4251
+ const b = v.props, I = Qt(b.option), S = i.get(I);
4252
+ if (S) {
4253
+ const { item: A, index: w } = S, M = s === I;
4247
4254
  return /* @__PURE__ */ n(
4248
4255
  ur,
4249
- L(N({
4250
- isSelected: w,
4251
- className: p.className
4256
+ F(N({
4257
+ isSelected: M,
4258
+ className: b.className
4252
4259
  }, a({
4253
- item: T,
4254
- index: A
4260
+ item: A,
4261
+ index: w
4255
4262
  })), {
4256
- children: typeof p.children == "function" ? p.children(N({
4257
- isSelected: w,
4258
- className: p.className
4263
+ children: typeof b.children == "function" ? b.children(N({
4264
+ isSelected: M,
4265
+ className: b.className
4259
4266
  }, a({
4260
- item: T,
4261
- index: A
4262
- }))) : p.children
4267
+ item: A,
4268
+ index: w
4269
+ }))) : b.children
4263
4270
  }),
4264
- b
4271
+ I
4265
4272
  );
4266
4273
  }
4267
- } catch (p) {
4274
+ } catch (b) {
4268
4275
  return null;
4269
4276
  }
4270
- return h;
4271
- }), g = /* @__PURE__ */ n(
4277
+ return v;
4278
+ }), h = /* @__PURE__ */ n(
4272
4279
  Mt,
4273
4280
  {
4274
4281
  className: m("flex max-h-60 flex-col", t == null ? void 0 : t.scrollArea),
4275
4282
  relative: !1,
4276
- viewPortClassName: m("!flex flex-col", t == null ? void 0 : t.scrollAreaViewport),
4277
- asChild: !0,
4278
- children: x
4283
+ viewPortClassName: t == null ? void 0 : t.scrollAreaViewport,
4284
+ viewportProps: { onScroll: x.onScroll },
4285
+ children: /* @__PURE__ */ k(
4286
+ "div",
4287
+ {
4288
+ className: m(
4289
+ "flex flex-col",
4290
+ // До разделения viewport и content этот класс применялся к обоим.
4291
+ // Сохраняем стилизацию списка для существующих потребителей.
4292
+ t == null ? void 0 : t.scrollAreaViewport,
4293
+ x.className
4294
+ ),
4295
+ children: [
4296
+ g,
4297
+ x.endContent
4298
+ ]
4299
+ }
4300
+ )
4279
4301
  }
4280
4302
  );
4281
- return y.cloneElement(c, c.props, g);
4303
+ return y.cloneElement(c, c.props, h);
4282
4304
  }
4283
4305
  return c;
4284
4306
  }))(e);
@@ -4303,7 +4325,7 @@ const En = y.forwardRef(
4303
4325
  }, [o, u]);
4304
4326
  return /* @__PURE__ */ n(
4305
4327
  "div",
4306
- L(N(L(N({}, l({
4328
+ F(N(F(N({}, l({
4307
4329
  ref: x
4308
4330
  })), {
4309
4331
  style: N(N({}, f), c),
@@ -4371,7 +4393,7 @@ function hi({
4371
4393
  loading: p = !1,
4372
4394
  isOpen: b,
4373
4395
  onOpenChange: I,
4374
- showErrorMessage: T = !0,
4396
+ showErrorMessage: S = !0,
4375
4397
  clearable: A,
4376
4398
  onClear: w
4377
4399
  }) {
@@ -4421,7 +4443,7 @@ function hi({
4421
4443
  }
4422
4444
  ) }),
4423
4445
  d && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
4424
- Wt(c) && T && /* @__PURE__ */ n(G, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: c })
4446
+ Wt(c) && S && /* @__PURE__ */ n(G, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: c })
4425
4447
  ] })
4426
4448
  }
4427
4449
  );
@@ -4451,24 +4473,24 @@ function gi({
4451
4473
  inputValueOnSelect: d,
4452
4474
  inputValueOnClose: x
4453
4475
  }) {
4454
- const g = le(null), h = le(!1), v = le(f != null ? f : ""), p = Q((C, O) => {
4455
- var H, B;
4456
- const { type: W, changes: z } = O;
4476
+ const g = le(null), h = le(!1), v = le(f != null ? f : ""), p = Q((T, B) => {
4477
+ var H, O;
4478
+ const { type: W, changes: z } = B;
4457
4479
  switch (W) {
4458
4480
  case xe.stateChangeTypes.ItemClick:
4459
4481
  case xe.stateChangeTypes.InputKeyDownEnter:
4460
4482
  case xe.stateChangeTypes.FunctionSelectItem: {
4461
- const R = ((H = C == null ? void 0 : C.inputValue) != null ? H : "").trim().length > 0;
4462
- return L(N({}, z), {
4483
+ const R = ((H = T == null ? void 0 : T.inputValue) != null ? H : "").trim().length > 0;
4484
+ return F(N({}, z), {
4463
4485
  isOpen: c ? !0 : z.isOpen,
4464
- inputValue: d === "clear" ? "" : d === "preserve" ? (C == null ? void 0 : C.inputValue) || "" : z.selectedItem ? s(z.selectedItem.value) : z.inputValue || "",
4465
- highlightedIndex: R ? 0 : (B = C == null ? void 0 : C.highlightedIndex) != null ? B : z.highlightedIndex
4486
+ inputValue: d === "clear" ? "" : d === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : z.selectedItem ? s(z.selectedItem.value) : z.inputValue || "",
4487
+ highlightedIndex: R ? 0 : (O = T == null ? void 0 : T.highlightedIndex) != null ? O : z.highlightedIndex
4466
4488
  });
4467
4489
  }
4468
4490
  case xe.stateChangeTypes.InputKeyDownEscape:
4469
4491
  case xe.stateChangeTypes.InputBlur:
4470
- return L(N({}, z), {
4471
- inputValue: x === "clear" ? "" : x === "preserve" ? (C == null ? void 0 : C.inputValue) || "" : z.selectedItem ? s(z.selectedItem.value) : z.inputValue || ""
4492
+ return F(N({}, z), {
4493
+ inputValue: x === "clear" ? "" : x === "preserve" ? (T == null ? void 0 : T.inputValue) || "" : z.selectedItem ? s(z.selectedItem.value) : z.inputValue || ""
4472
4494
  });
4473
4495
  default:
4474
4496
  return z;
@@ -4478,57 +4500,57 @@ function gi({
4478
4500
  stateReducer: p,
4479
4501
  defaultHighlightedIndex: 0,
4480
4502
  isOpen: l,
4481
- onIsOpenChange: (C) => {
4482
- var O;
4483
- if (u == null || u(C.isOpen), !C.isOpen) {
4503
+ onIsOpenChange: (T) => {
4504
+ var B;
4505
+ if (u == null || u(T.isOpen), !T.isOpen) {
4484
4506
  if (x === "preserve")
4485
4507
  return;
4486
- (O = g.current) == null || O.call(
4508
+ (B = g.current) == null || B.call(
4487
4509
  g,
4488
- x === "clear" ? "" : C.selectedItem ? s(C.selectedItem.value) : ""
4510
+ x === "clear" ? "" : T.selectedItem ? s(T.selectedItem.value) : ""
4489
4511
  );
4490
4512
  }
4491
4513
  },
4492
- itemToString: (C) => C ? s(C == null ? void 0 : C.value) : "",
4493
- onInputValueChange: ({ inputValue: C, type: O }) => {
4494
- i || O === xe.stateChangeTypes.InputChange && (o == null || o(C != null ? C : ""));
4514
+ itemToString: (T) => T ? s(T == null ? void 0 : T.value) : "",
4515
+ onInputValueChange: ({ inputValue: T, type: B }) => {
4516
+ i || B === xe.stateChangeTypes.InputChange && (o == null || o(T != null ? T : ""));
4495
4517
  },
4496
- onSelectedItemChange: ({ selectedItem: C }) => {
4518
+ onSelectedItemChange: ({ selectedItem: T }) => {
4497
4519
  if (i)
4498
4520
  return;
4499
- const O = (C == null ? void 0 : C.value) !== void 0 && (C == null ? void 0 : C.value) !== null ? C.value : null;
4500
- r == null || r(O);
4521
+ const B = (T == null ? void 0 : T.value) !== void 0 && (T == null ? void 0 : T.value) !== null ? T.value : null;
4522
+ r == null || r(B);
4501
4523
  }
4502
4524
  };
4503
4525
  t !== void 0 && (b.selectedItem = t), f !== void 0 && (b.inputValue = f);
4504
- const S = xe(b), {
4526
+ const C = xe(b), {
4505
4527
  selectItem: I,
4506
- setInputValue: T,
4528
+ setInputValue: S,
4507
4529
  setHighlightedIndex: A,
4508
4530
  getInputProps: w
4509
- } = S, M = V(S, [
4531
+ } = C, M = V(C, [
4510
4532
  "selectItem",
4511
4533
  "setInputValue",
4512
4534
  "setHighlightedIndex",
4513
4535
  "getInputProps"
4514
4536
  ]);
4515
- g.current = T, ge(() => {
4516
- const C = !!M.isOpen, O = f != null ? f : "", W = C && !h.current, z = C && v.current.trim().length > 0 && O.trim().length === 0;
4517
- (W || z) && A(0), h.current = C, v.current = O;
4537
+ g.current = S, ge(() => {
4538
+ const T = !!M.isOpen, B = f != null ? f : "", W = T && !h.current, z = T && v.current.trim().length > 0 && B.trim().length === 0;
4539
+ (W || z) && A(0), h.current = T, v.current = B;
4518
4540
  }, [M.isOpen, f, A]);
4519
- const D = Q((C) => {
4520
- const O = w(C);
4521
- return L(N({}, O), {
4541
+ const D = Q((T) => {
4542
+ const B = w(T);
4543
+ return F(N({}, B), {
4522
4544
  onBlur: (W) => {
4523
4545
  var z;
4524
- (z = O.onBlur) == null || z.call(O, W), a == null || a(W);
4546
+ (z = B.onBlur) == null || z.call(B, W), a == null || a(W);
4525
4547
  }
4526
4548
  });
4527
4549
  }, [w, a]);
4528
- return L(N({}, M), {
4550
+ return F(N({}, M), {
4529
4551
  selectItem: I,
4530
4552
  getInputProps: D,
4531
- setInputValue: T,
4553
+ setInputValue: S,
4532
4554
  setHighlightedIndex: A
4533
4555
  });
4534
4556
  }
@@ -4580,27 +4602,27 @@ function xi({
4580
4602
  error: p,
4581
4603
  placeholder: b = "Поиск...",
4582
4604
  getLabel: I,
4583
- getKey: T,
4605
+ getKey: S,
4584
4606
  loading: A = !1,
4585
4607
  isOpen: w,
4586
4608
  onOpenChange: M,
4587
4609
  onClear: D,
4588
- clearable: S
4610
+ clearable: C
4589
4611
  }) {
4590
- const C = Q(I, [I]), O = ae(() => {
4612
+ const T = Q(I, [I]), B = ae(() => {
4591
4613
  if (r !== void 0)
4592
4614
  return r === null ? null : {
4593
4615
  value: r,
4594
- label: C(r)
4616
+ label: T(r)
4595
4617
  };
4596
- }, [r, C]), W = gi({
4618
+ }, [r, T]), W = gi({
4597
4619
  items: t,
4598
- value: O,
4620
+ value: B,
4599
4621
  onChange: o,
4600
4622
  onSearch: a,
4601
4623
  onBlur: i,
4602
4624
  disabled: v,
4603
- getLabel: C,
4625
+ getLabel: T,
4604
4626
  isOpen: w,
4605
4627
  onOpenChange: M,
4606
4628
  inputValue: s,
@@ -4634,10 +4656,10 @@ function xi({
4634
4656
  onBlur: i,
4635
4657
  loading: A,
4636
4658
  items: t,
4637
- getLabel: C,
4638
- getKey: T,
4659
+ getLabel: T,
4660
+ getKey: S,
4639
4661
  onClear: D,
4640
- clearable: S,
4662
+ clearable: C,
4641
4663
  isItemSelected: c,
4642
4664
  hasSelection: d
4643
4665
  }), [
@@ -4651,11 +4673,11 @@ function xi({
4651
4673
  b,
4652
4674
  i,
4653
4675
  t,
4654
- C,
4655
4676
  T,
4677
+ S,
4656
4678
  M,
4657
4679
  D,
4658
- S,
4680
+ C,
4659
4681
  c,
4660
4682
  d
4661
4683
  ]);
@@ -4680,7 +4702,7 @@ const Pn = () => {
4680
4702
  size: 16
4681
4703
  }
4682
4704
  ),
4683
- /* @__PURE__ */ n("button", L(N({ type: "button", className: "cursor-pointer inline-flex items-center justify-center bg-transparent border-none focus:outline-none p-0" }, a({ disabled: s })), { children: /* @__PURE__ */ n(
4705
+ /* @__PURE__ */ n("button", F(N({ type: "button", className: "cursor-pointer inline-flex items-center justify-center bg-transparent border-none focus:outline-none p-0" }, a({ disabled: s })), { children: /* @__PURE__ */ n(
4684
4706
  Z,
4685
4707
  {
4686
4708
  icon: "ArrowDownIcon",
@@ -4711,7 +4733,7 @@ const zn = y.forwardRef(
4711
4733
  }, [o, x]);
4712
4734
  return /* @__PURE__ */ n(
4713
4735
  "div",
4714
- L(N({
4736
+ F(N({
4715
4737
  ref: g,
4716
4738
  className: m(
4717
4739
  Cn(s, l, u, f, Wt(c)),
@@ -4747,46 +4769,61 @@ function yi({
4747
4769
  if (!y.isValidElement(h))
4748
4770
  return h;
4749
4771
  if (_r(h.type, "List")) {
4750
- const v = y.Children.map(h.props.children, (b) => {
4751
- if (!y.isValidElement(b))
4752
- return b;
4753
- if (_r(b.type, "Item"))
4772
+ const v = h.props, p = y.Children.map(h.props.children, (I) => {
4773
+ if (!y.isValidElement(I))
4774
+ return I;
4775
+ if (_r(I.type, "Item"))
4754
4776
  try {
4755
- const I = b.props, T = s(I.option), A = f.get(T);
4756
- if (A) {
4757
- const { item: w, index: M } = A, D = i ? i(w.value) : c === T, S = a({ item: w, index: M }), C = typeof I.children == "function" ? I.children(N({
4758
- isSelected: D,
4759
- className: I.className
4760
- }, S)) : I.children;
4777
+ const S = I.props, A = s(S.option), w = f.get(A);
4778
+ if (w) {
4779
+ const { item: M, index: D } = w, C = i ? i(M.value) : c === A, T = a({ item: M, index: D }), B = typeof S.children == "function" ? S.children(N({
4780
+ isSelected: C,
4781
+ className: S.className
4782
+ }, T)) : S.children;
4761
4783
  return /* @__PURE__ */ n(
4762
4784
  ur,
4763
- L(N({
4764
- isSelected: D,
4765
- className: m(I.className, l, u)
4766
- }, S), {
4785
+ F(N({
4786
+ isSelected: C,
4787
+ className: m(S.className, l, u)
4788
+ }, T), {
4767
4789
  children: /* @__PURE__ */ k("div", { className: "flex w-full items-center gap-2", children: [
4768
- /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: C }),
4769
- D && /* @__PURE__ */ n(Z, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
4790
+ /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: B }),
4791
+ C && /* @__PURE__ */ n(Z, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
4770
4792
  ] })
4771
4793
  }),
4772
- T
4794
+ A
4773
4795
  );
4774
4796
  }
4775
- } catch (I) {
4797
+ } catch (S) {
4776
4798
  return null;
4777
4799
  }
4778
- return b;
4779
- }), p = /* @__PURE__ */ n(
4800
+ return I;
4801
+ }), b = /* @__PURE__ */ n(
4780
4802
  Mt,
4781
4803
  {
4782
4804
  className: m("flex max-h-60 flex-col", t == null ? void 0 : t.scrollArea),
4783
4805
  relative: !1,
4784
- viewPortClassName: m("!flex flex-col", t == null ? void 0 : t.scrollAreaViewport),
4785
- asChild: !0,
4786
- children: v
4806
+ viewPortClassName: t == null ? void 0 : t.scrollAreaViewport,
4807
+ viewportProps: { onScroll: v.onScroll },
4808
+ children: /* @__PURE__ */ k(
4809
+ "div",
4810
+ {
4811
+ className: m(
4812
+ "flex flex-col gap-0.5",
4813
+ // До разделения viewport и content этот класс применялся к обоим.
4814
+ // Сохраняем стилизацию списка для существующих потребителей.
4815
+ t == null ? void 0 : t.scrollAreaViewport,
4816
+ v.className
4817
+ ),
4818
+ children: [
4819
+ p,
4820
+ v.endContent
4821
+ ]
4822
+ }
4823
+ )
4787
4824
  }
4788
4825
  );
4789
- return y.cloneElement(h, h.props, p);
4826
+ return y.cloneElement(h, h.props, b);
4790
4827
  }
4791
4828
  return h;
4792
4829
  }))(e);
@@ -4811,7 +4848,7 @@ const On = y.forwardRef(
4811
4848
  }, [o, u]);
4812
4849
  return /* @__PURE__ */ n(
4813
4850
  "div",
4814
- L(N(L(N({}, l({
4851
+ F(N(F(N({}, l({
4815
4852
  ref: x
4816
4853
  })), {
4817
4854
  style: N(N({}, f), c),
@@ -4861,12 +4898,12 @@ function wi({
4861
4898
  if (!D)
4862
4899
  return;
4863
4900
  const z = D.offsetWidth - 56 - 30 - 8;
4864
- let H = 0, B = 0;
4865
- const R = 12, F = 20, P = 4, K = 7;
4901
+ let H = 0, O = 0;
4902
+ const R = 12, L = 20, P = 4, K = 7;
4866
4903
  for (let re = 0; re < e.length; re++) {
4867
- const q = r(e[re]).length * K, Y = R + q + F + P;
4868
- if (B + Y <= z)
4869
- B += Y, H = re + 1;
4904
+ const q = r(e[re]).length * K, Y = R + q + L + P;
4905
+ if (O + Y <= z)
4906
+ O += Y, H = re + 1;
4870
4907
  else
4871
4908
  break;
4872
4909
  }
@@ -4879,7 +4916,7 @@ function wi({
4879
4916
  M.disconnect();
4880
4917
  };
4881
4918
  }, [r, a, e]);
4882
- const I = e.slice(0, p), T = Math.max(0, e.length - p), A = x({
4919
+ const I = e.slice(0, p), S = Math.max(0, e.length - p), A = x({
4883
4920
  onKeyDown: (w) => {
4884
4921
  !c && w.key === "Backspace" && w.currentTarget.value === "" && e.length > 0 && (w.preventDefault(), t(e[e.length - 1])), i == null || i(w);
4885
4922
  }
@@ -4894,18 +4931,18 @@ function wi({
4894
4931
  "pr-2"
4895
4932
  ),
4896
4933
  onMouseDown: (w) => {
4897
- var S;
4934
+ var C;
4898
4935
  if (c)
4899
4936
  return;
4900
4937
  const M = w.target;
4901
- (M == null ? void 0 : M.closest('button,[role="button"]')) !== null || (w.preventDefault(), (S = h.current) == null || S.focus(), g == null || g(!0));
4938
+ (M == null ? void 0 : M.closest('button,[role="button"]')) !== null || (w.preventDefault(), (C = h.current) == null || C.focus(), g == null || g(!0));
4902
4939
  },
4903
4940
  children: [
4904
4941
  I.map((w) => {
4905
- var O;
4942
+ var B;
4906
4943
  const M = r(w), D = () => {
4907
4944
  c || t(w);
4908
- }, S = (W) => {
4945
+ }, C = (W) => {
4909
4946
  const z = W == null ? void 0 : W.classNames;
4910
4947
  return /* @__PURE__ */ k(
4911
4948
  "div",
@@ -4950,16 +4987,16 @@ function wi({
4950
4987
  ]
4951
4988
  }
4952
4989
  );
4953
- }, C = (O = s == null ? void 0 : s({
4990
+ }, T = (B = s == null ? void 0 : s({
4954
4991
  option: w,
4955
4992
  label: M,
4956
4993
  disabled: c,
4957
4994
  remove: D,
4958
- renderDefaultTag: S
4959
- })) != null ? O : S();
4960
- return /* @__PURE__ */ n(y.Fragment, { children: C }, o(w));
4995
+ renderDefaultTag: C
4996
+ })) != null ? B : C();
4997
+ return /* @__PURE__ */ n(y.Fragment, { children: T }, o(w));
4961
4998
  }),
4962
- T > 0 && /* @__PURE__ */ n(
4999
+ S > 0 && /* @__PURE__ */ n(
4963
5000
  "div",
4964
5001
  {
4965
5002
  className: m(
@@ -4979,13 +5016,13 @@ function wi({
4979
5016
  },
4980
5017
  children: /* @__PURE__ */ k(G, { variant: "p2", children: [
4981
5018
  "+",
4982
- T
5019
+ S
4983
5020
  ] })
4984
5021
  }
4985
5022
  ),
4986
5023
  /* @__PURE__ */ n(
4987
5024
  "input",
4988
- L(N({
5025
+ F(N({
4989
5026
  ref: (w) => {
4990
5027
  h.current = w;
4991
5028
  }
@@ -5020,21 +5057,21 @@ function Ni({
5020
5057
  placeholder: x = "Поиск...",
5021
5058
  disabled: g = !1,
5022
5059
  "data-testid": h,
5023
- getLabel: v = (O) => typeof O == "object" && O !== null && "label" in O ? O.label : "",
5060
+ getLabel: v = (B) => typeof B == "object" && B !== null && "label" in B ? B.label : "",
5024
5061
  getKey: p = vi,
5025
5062
  loading: b = !1,
5026
5063
  onInputKeyDown: I,
5027
- isOpen: T,
5064
+ isOpen: S,
5028
5065
  onOpenChange: A,
5029
5066
  showErrorMessage: w = !0,
5030
5067
  clearable: M = !0,
5031
5068
  onClear: D,
5032
- maxTags: S = 4,
5033
- renderSelectedTag: C
5069
+ maxTags: C = 4,
5070
+ renderSelectedTag: T
5034
5071
  }) {
5035
- const { items: O } = An(e, v), W = ae(() => t || [], [t]), z = ae(() => new Set(W.map(p)), [W, p]), [H, B] = de(""), R = Q(() => {
5036
- B(""), o == null || o("");
5037
- }, [o]), F = Q((j) => {
5072
+ const { items: B } = An(e, v), W = ae(() => t || [], [t]), z = ae(() => new Set(W.map(p)), [W, p]), [H, O] = de(""), R = Q(() => {
5073
+ O(""), o == null || o("");
5074
+ }, [o]), L = Q((j) => {
5038
5075
  const q = p(j), X = z.has(q) ? W.filter((U) => p(U) !== q) : [...W, j];
5039
5076
  r == null || r(X), R();
5040
5077
  }, [R, p, r, W, z]), P = Q((j) => {
@@ -5043,19 +5080,19 @@ function Ni({
5043
5080
  }, [p, r, W]), K = Q(() => {
5044
5081
  r == null || r([]), D == null || D();
5045
5082
  }, [r, D]), J = Q((j) => {
5046
- A == null || A(j), j || (B(""), o == null || o(""));
5083
+ A == null || A(j), j || (O(""), o == null || o(""));
5047
5084
  }, [A, o]), re = Q((j) => {
5048
- B(j), o == null || o(j);
5085
+ O(j), o == null || o(j);
5049
5086
  }, [o]);
5050
5087
  return /* @__PURE__ */ n(
5051
5088
  xi,
5052
5089
  {
5053
5090
  getLabel: v,
5054
5091
  getKey: p,
5055
- items: O,
5092
+ items: B,
5056
5093
  inputValue: H,
5057
5094
  onChange: (j) => {
5058
- j && F(j);
5095
+ j && L(j);
5059
5096
  },
5060
5097
  onSearch: re,
5061
5098
  onBlur: a,
@@ -5066,7 +5103,7 @@ function Ni({
5066
5103
  error: c,
5067
5104
  placeholder: x,
5068
5105
  loading: b,
5069
- isOpen: T,
5106
+ isOpen: S,
5070
5107
  onOpenChange: J,
5071
5108
  clearable: M,
5072
5109
  onClear: K,
@@ -5093,9 +5130,9 @@ function Ni({
5093
5130
  onRemove: P,
5094
5131
  getLabel: v,
5095
5132
  getKey: p,
5096
- maxTags: S,
5133
+ maxTags: C,
5097
5134
  onInputKeyDown: I,
5098
- renderSelectedTag: C,
5135
+ renderSelectedTag: T,
5099
5136
  "data-testid": h
5100
5137
  }
5101
5138
  ),
@@ -5106,7 +5143,7 @@ function Ni({
5106
5143
  {
5107
5144
  classNames: {
5108
5145
  scrollArea: m("gap-0.5", u == null ? void 0 : u.scrollArea),
5109
- scrollAreaViewport: m("gap-0.5", u == null ? void 0 : u.scrollAreaViewport)
5146
+ scrollAreaViewport: u == null ? void 0 : u.scrollAreaViewport
5110
5147
  },
5111
5148
  children: e
5112
5149
  }
@@ -5128,7 +5165,7 @@ const Ii = {
5128
5165
  inactiveClassName: "bg-default opacity-40"
5129
5166
  };
5130
5167
  function _n(e) {
5131
- const T = e || {}, { indicators: t, defaultActive: r = 0 } = T, o = V(T, ["indicators", "defaultActive"]), a = N({
5168
+ const S = e || {}, { indicators: t, defaultActive: r = 0 } = S, o = V(S, ["indicators", "defaultActive"]), a = N({
5132
5169
  align: "start",
5133
5170
  loop: !1,
5134
5171
  slidesToScroll: 1,
@@ -5452,7 +5489,7 @@ const It = {
5452
5489
  ButtonsView: Mi
5453
5490
  // Экспортируем view-компонент кнопок для использования вне контекста
5454
5491
  };
5455
- function Cd(x) {
5492
+ function kd(x) {
5456
5493
  var g = x, {
5457
5494
  items: e,
5458
5495
  renderSlide: t,
@@ -5503,7 +5540,7 @@ function Cd(x) {
5503
5540
  /* @__PURE__ */ n(It.Dots, { count: e.length })
5504
5541
  ] });
5505
5542
  }
5506
- function kd({
5543
+ function Td({
5507
5544
  items: e,
5508
5545
  options: t,
5509
5546
  renderItems: r,
@@ -5690,7 +5727,7 @@ const Pi = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url)
5690
5727
  }
5691
5728
  }), gt = se.Root, bt = se.Portal, Xe = y.forwardRef((o, r) => {
5692
5729
  var a = o, { className: e } = a, t = V(a, ["className"]);
5693
- return /* @__PURE__ */ n(se.Trigger, L(N({}, t), { asChild: !0, ref: r, className: m(e) }));
5730
+ return /* @__PURE__ */ n(se.Trigger, F(N({}, t), { asChild: !0, ref: r, className: m(e) }));
5694
5731
  });
5695
5732
  Xe.displayName = "Trigger";
5696
5733
  const ji = be(
@@ -5699,9 +5736,9 @@ const ji = be(
5699
5736
  var i = a, { className: e, style: t } = i, r = V(i, ["className", "style"]);
5700
5737
  return /* @__PURE__ */ n(
5701
5738
  se.Overlay,
5702
- L(N({}, r), {
5739
+ F(N({}, r), {
5703
5740
  ref: o,
5704
- style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : L(N({}, t), { zIndex: 50 }),
5741
+ style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : F(N({}, t), { zIndex: 50 }),
5705
5742
  className: m(ji(), e)
5706
5743
  })
5707
5744
  );
@@ -5794,10 +5831,10 @@ const Ui = be(
5794
5831
  ]);
5795
5832
  return /* @__PURE__ */ n(
5796
5833
  se.Content,
5797
- L(N({}, x), {
5834
+ F(N({}, x), {
5798
5835
  ref: g,
5799
5836
  "data-testid": f,
5800
- style: (c == null ? void 0 : c.zIndex) !== void 0 ? c : L(N({}, c), { zIndex: 52 }),
5837
+ style: (c == null ? void 0 : c.zIndex) !== void 0 ? c : F(N({}, c), { zIndex: 52 }),
5801
5838
  onOpenAutoFocus: (p) => {
5802
5839
  i ? p.preventDefault() : l == null || l(p);
5803
5840
  },
@@ -5820,7 +5857,7 @@ const Ze = y.forwardRef(
5820
5857
  var i = a, { className: e, dataTestId: t = "dialog-content" } = i, r = V(i, ["className", "dataTestId"]);
5821
5858
  return /* @__PURE__ */ n(
5822
5859
  "div",
5823
- L(N({}, r), {
5860
+ F(N({}, r), {
5824
5861
  "data-testid": t,
5825
5862
  ref: o,
5826
5863
  className: m(
@@ -5836,7 +5873,7 @@ const pr = y.forwardRef((i, a) => {
5836
5873
  var s = i, { className: e, children: t, dataTestId: r = "title" } = s, o = V(s, ["className", "children", "dataTestId"]);
5837
5874
  return /* @__PURE__ */ n(se.Title, { asChild: !0, children: /* @__PURE__ */ n(
5838
5875
  G,
5839
- L(N({
5876
+ F(N({
5840
5877
  ref: a
5841
5878
  }, o), {
5842
5879
  as: "h2",
@@ -5853,7 +5890,7 @@ const hr = y.forwardRef(
5853
5890
  var s = i, { className: e, shadow: t = "none", dataTestId: r = "dialog-footer" } = s, o = V(s, ["className", "shadow", "dataTestId"]);
5854
5891
  return /* @__PURE__ */ n(
5855
5892
  "div",
5856
- L(N({}, o), {
5893
+ F(N({}, o), {
5857
5894
  ref: a,
5858
5895
  "data-testid": r,
5859
5896
  className: m(
@@ -5871,7 +5908,7 @@ const xt = y.forwardRef((a, o) => {
5871
5908
  var i = a, { className: e, dataTestId: t = "close-button" } = i, r = V(i, ["className", "dataTestId"]);
5872
5909
  return /* @__PURE__ */ n(se.Close, { asChild: !0, children: /* @__PURE__ */ n(
5873
5910
  ne,
5874
- L(N({}, r), {
5911
+ F(N({}, r), {
5875
5912
  ref: o,
5876
5913
  "data-testid": t,
5877
5914
  className: m("shrink-0 rounded-lg", e),
@@ -5883,7 +5920,7 @@ const xt = y.forwardRef((a, o) => {
5883
5920
  ) });
5884
5921
  });
5885
5922
  xt.displayName = "Close";
5886
- const Td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5923
+ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5887
5924
  __proto__: null,
5888
5925
  Close: xt,
5889
5926
  Container: tt,
@@ -5895,7 +5932,7 @@ const Td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5895
5932
  Title: pr,
5896
5933
  Trigger: Xe
5897
5934
  }, Symbol.toStringTag, { value: "Module" })), yt = y.createContext(null);
5898
- function Rd() {
5935
+ function Md() {
5899
5936
  const e = y.useContext(yt);
5900
5937
  if (!e)
5901
5938
  throw new Error(
@@ -5905,7 +5942,7 @@ function Rd() {
5905
5942
  }
5906
5943
  function $i(e) {
5907
5944
  var M;
5908
- const [t, r] = y.useState(null), [o, a] = y.useState(e.isVisibleClose), [i, s] = y.useState(!1), [l, u] = y.useState(!1), [f, c] = y.useState(e.hideFooter), [d, x] = y.useState(!1), [g, h] = y.useState(e.width), v = y.useContext(yt), p = (M = v == null ? void 0 : v.nextBaseZIndex) != null ? M : e.baseZIndex, b = p + 1, I = p + 2, T = p + 3, A = y.useMemo(() => !l && i ? "top" : "none", [l, i]), w = y.useMemo(() => l && i ? "bottom" : "none", [l, i]);
5945
+ const [t, r] = y.useState(null), [o, a] = y.useState(e.isVisibleClose), [i, s] = y.useState(!1), [l, u] = y.useState(!1), [f, c] = y.useState(e.hideFooter), [d, x] = y.useState(!1), [g, h] = y.useState(e.width), v = y.useContext(yt), p = (M = v == null ? void 0 : v.nextBaseZIndex) != null ? M : e.baseZIndex, b = p + 1, I = p + 2, S = p + 3, A = y.useMemo(() => !l && i ? "top" : "none", [l, i]), w = y.useMemo(() => l && i ? "bottom" : "none", [l, i]);
5909
5946
  return y.useEffect(() => {
5910
5947
  h(e.width);
5911
5948
  }, [e.width]), y.useEffect(() => {
@@ -5916,12 +5953,12 @@ function $i(e) {
5916
5953
  u(t.scrollTop > 0);
5917
5954
  };
5918
5955
  t.addEventListener("scroll", D);
5919
- const S = new ResizeObserver(() => {
5920
- const C = t.scrollHeight > t.clientHeight;
5921
- s(C);
5956
+ const C = new ResizeObserver(() => {
5957
+ const T = t.scrollHeight > t.clientHeight;
5958
+ s(T);
5922
5959
  });
5923
- return S.observe(t), () => {
5924
- t.removeEventListener("scroll", D), S.disconnect();
5960
+ return C.observe(t), () => {
5961
+ t.removeEventListener("scroll", D), C.disconnect();
5925
5962
  };
5926
5963
  }
5927
5964
  }, [t]), {
@@ -5944,7 +5981,7 @@ function $i(e) {
5944
5981
  baseZIndex: p,
5945
5982
  overlayZIndex: b,
5946
5983
  containerZIndex: I,
5947
- nextBaseZIndex: T
5984
+ nextBaseZIndex: S
5948
5985
  };
5949
5986
  }
5950
5987
  const Yi = {
@@ -5963,7 +6000,7 @@ const Yi = {
5963
6000
  var i = a, { className: e, shadow: t = "none" } = i, r = V(i, ["className", "shadow"]);
5964
6001
  return /* @__PURE__ */ n(
5965
6002
  "div",
5966
- L(N({}, r), {
6003
+ F(N({}, r), {
5967
6004
  ref: o,
5968
6005
  className: m(
5969
6006
  "-mx-4 flex items-start gap-4 px-4 pb-4 md:-mx-6 md:px-6",
@@ -6008,7 +6045,7 @@ function Qi(s) {
6008
6045
  f(!1);
6009
6046
  }), [f]), /* @__PURE__ */ n(u.Source, { children: /* @__PURE__ */ k(
6010
6047
  "div",
6011
- L(N({}, i), {
6048
+ F(N({}, i), {
6012
6049
  "data-testid": o,
6013
6050
  className: m(
6014
6051
  "-mx-4 -mt-4 flex min-h-[90px] items-start justify-between gap-4 bg-[#E5EEFF] p-4 md:-mx-6 md:-mt-6",
@@ -6099,11 +6136,11 @@ function he(h) {
6099
6136
  TopHeaderTeleporter: wt()
6100
6137
  }),
6101
6138
  []
6102
- ), I = b.TitleTeleporter.useTargetRef(), T = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [M, D] = y.useState(!1), S = M ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6139
+ ), I = b.TitleTeleporter.useTargetRef(), S = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [M, D] = y.useState(!1), C = M ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
6103
6140
  Ze,
6104
6141
  {
6105
- ref: (C) => {
6106
- p.setContentElement(C), A(C);
6142
+ ref: (T) => {
6143
+ p.setContentElement(T), A(T);
6107
6144
  },
6108
6145
  className: m(
6109
6146
  "min-h-0 rounded-t-[10px] bg-white px-4 pt-4 md:pt-6 md:px-6",
@@ -6113,16 +6150,16 @@ function he(h) {
6113
6150
  ) }) : /* @__PURE__ */ n(
6114
6151
  Ze,
6115
6152
  {
6116
- ref: (C) => {
6117
- p.setContentElement(C), A(C);
6153
+ ref: (T) => {
6154
+ p.setContentElement(T), A(T);
6118
6155
  },
6119
6156
  className: m(e == null ? void 0 : e.content)
6120
6157
  }
6121
6158
  );
6122
- return /* @__PURE__ */ n(gt, L(N({}, g), { children: /* @__PURE__ */ n(
6159
+ return /* @__PURE__ */ n(gt, F(N({}, g), { children: /* @__PURE__ */ n(
6123
6160
  $n.Provider,
6124
6161
  {
6125
- value: L(N({}, b), {
6162
+ value: F(N({}, b), {
6126
6163
  setHasTopHeader: D
6127
6164
  }),
6128
6165
  children: /* @__PURE__ */ k(yt.Provider, { value: p, children: [
@@ -6169,12 +6206,12 @@ function he(h) {
6169
6206
  ]
6170
6207
  }
6171
6208
  ),
6172
- S,
6209
+ C,
6173
6210
  !p.isHideFooter && /* @__PURE__ */ n(
6174
6211
  hr,
6175
6212
  {
6176
6213
  shadow: p.shadowFooter,
6177
- ref: T,
6214
+ ref: S,
6178
6215
  className: m(
6179
6216
  d && "mx-0 pb-4 md:pb-6 md:px-12",
6180
6217
  e == null ? void 0 : e.footer
@@ -6228,7 +6265,7 @@ const Xi = Lo, ft = y.forwardRef(
6228
6265
  const g = y.useRef(null);
6229
6266
  return y.useImperativeHandle(c, () => g.current), /* @__PURE__ */ n(
6230
6267
  Xi,
6231
- L(N({
6268
+ F(N({
6232
6269
  mask: r,
6233
6270
  maskChar: o,
6234
6271
  alwaysShowMask: a,
@@ -6239,7 +6276,7 @@ const Xi = Lo, ft = y.forwardRef(
6239
6276
  var h = V(v, []);
6240
6277
  return /* @__PURE__ */ n(
6241
6278
  Le,
6242
- L(N(N({}, h), f), {
6279
+ F(N(N({}, h), f), {
6243
6280
  size: l,
6244
6281
  ref: g,
6245
6282
  className: e,
@@ -6255,7 +6292,7 @@ ft.displayName = "MaskedInput";
6255
6292
  function Kt() {
6256
6293
  return window.innerWidth < 768 ? "mobile" : "desktop";
6257
6294
  }
6258
- function Md({
6295
+ function Dd({
6259
6296
  date: e,
6260
6297
  onSelect: t,
6261
6298
  disabled: r = !1,
@@ -6270,21 +6307,21 @@ function Md({
6270
6307
  disabledDays: d,
6271
6308
  "data-testid": x
6272
6309
  }) {
6273
- const [g, h] = y.useState(e), [v, p] = y.useState(we(e)), b = Kt(), [I, T] = y.useState(!1), A = y.useRef(null), w = s != null, M = i === "custom" ? "md" : i;
6310
+ const [g, h] = y.useState(e), [v, p] = y.useState(we(e)), b = Kt(), [I, S] = y.useState(!1), A = y.useRef(null), w = s != null, M = i === "custom" ? "md" : i;
6274
6311
  y.useEffect(() => {
6275
6312
  h(e), p(we(e));
6276
6313
  }, [e]);
6277
6314
  const D = y.useCallback(
6278
- (F) => {
6279
- h(F), p(we(F)), t == null || t(F);
6315
+ (L) => {
6316
+ h(L), p(we(L)), t == null || t(L);
6280
6317
  },
6281
6318
  [t]
6282
- ), S = (F) => {
6283
- F && (D(F), b === "mobile" && T(!1));
6284
- }, C = () => {
6319
+ ), C = (L) => {
6320
+ L && (D(L), b === "mobile" && S(!1));
6321
+ }, T = () => {
6285
6322
  D(void 0), c == null || c();
6286
- }, O = (F) => {
6287
- const P = F.target.value;
6323
+ }, B = (L) => {
6324
+ const P = L.target.value;
6288
6325
  if (p(P), !P) {
6289
6326
  D(void 0);
6290
6327
  return;
@@ -6292,20 +6329,20 @@ function Md({
6292
6329
  const K = Dt(P);
6293
6330
  K && !ut(K, d) && D(K);
6294
6331
  }, W = () => {
6295
- const F = Dt(v);
6296
- v && (!F || ut(F, d)) && p(we(g));
6332
+ const L = Dt(v);
6333
+ v && (!L || ut(L, d)) && p(we(g));
6297
6334
  }, z = () => {
6298
- r || T(!0);
6299
- }, H = (F) => {
6335
+ r || S(!0);
6336
+ }, H = (L) => {
6300
6337
  var K;
6301
- const P = F.target;
6302
- P instanceof Node && ((K = A.current) != null && K.contains(P)) && F.preventDefault();
6303
- }, B = (F) => /* @__PURE__ */ n(
6338
+ const P = L.target;
6339
+ P instanceof Node && ((K = A.current) != null && K.contains(P)) && L.preventDefault();
6340
+ }, O = (L) => /* @__PURE__ */ n(
6304
6341
  ft,
6305
6342
  {
6306
6343
  mask: rr,
6307
6344
  value: v,
6308
- onChange: O,
6345
+ onChange: B,
6309
6346
  onBlur: W,
6310
6347
  onFocus: z,
6311
6348
  disabled: r,
@@ -6349,7 +6386,7 @@ function Md({
6349
6386
  {
6350
6387
  mode: "single",
6351
6388
  selected: g,
6352
- onSelect: S,
6389
+ onSelect: C,
6353
6390
  locale: De,
6354
6391
  className: "font-graphik",
6355
6392
  disabled: d
@@ -6372,7 +6409,7 @@ function Md({
6372
6409
  he,
6373
6410
  {
6374
6411
  open: I,
6375
- onOpenChange: r ? void 0 : T,
6412
+ onOpenChange: r ? void 0 : S,
6376
6413
  width: "md",
6377
6414
  hideFooter: !f,
6378
6415
  trigger: /* @__PURE__ */ n(
@@ -6443,7 +6480,7 @@ function Md({
6443
6480
  f && /* @__PURE__ */ n(he.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
6444
6481
  ne,
6445
6482
  {
6446
- onClick: C,
6483
+ onClick: T,
6447
6484
  variant: "text",
6448
6485
  disabled: !g,
6449
6486
  className: "w-full",
@@ -6456,23 +6493,23 @@ function Md({
6456
6493
  Qe,
6457
6494
  {
6458
6495
  open: I,
6459
- onOpenChange: r ? void 0 : T,
6496
+ onOpenChange: r ? void 0 : S,
6460
6497
  children: [
6461
- /* @__PURE__ */ n("div", { ref: A, children: /* @__PURE__ */ n(gn, { className: "block", children: B() }) }),
6498
+ /* @__PURE__ */ n("div", { ref: A, children: /* @__PURE__ */ n(gn, { className: "block", children: O() }) }),
6462
6499
  /* @__PURE__ */ k(
6463
6500
  He,
6464
6501
  {
6465
6502
  className: "w-auto rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
6466
6503
  align: "start",
6467
6504
  sideOffset: 4,
6468
- onOpenAutoFocus: (F) => F.preventDefault(),
6505
+ onOpenAutoFocus: (L) => L.preventDefault(),
6469
6506
  onInteractOutside: H,
6470
6507
  children: [
6471
6508
  R,
6472
6509
  f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
6473
6510
  ne,
6474
6511
  {
6475
- onClick: C,
6512
+ onClick: T,
6476
6513
  variant: "text",
6477
6514
  size: "sm",
6478
6515
  className: "w-full",
@@ -6579,9 +6616,9 @@ const es = {
6579
6616
  "Панҷшанбе",
6580
6617
  "Ҷумъа",
6581
6618
  "Шанбе"
6582
- ], ls = ["Якш", "Душ", "Сеш", "Чор", "Пан", "Ҷум", "Шан"], ds = L(N({}, De), {
6619
+ ], ls = ["Якш", "Душ", "Сеш", "Чор", "Пан", "Ҷум", "Шан"], ds = F(N({}, De), {
6583
6620
  code: "uz",
6584
- localize: L(N({}, De.localize), {
6621
+ localize: F(N({}, De.localize), {
6585
6622
  month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? rs[e] : ts[e],
6586
6623
  day: (e, t) => {
6587
6624
  const r = (t == null ? void 0 : t.width) || "wide";
@@ -6589,14 +6626,14 @@ const es = {
6589
6626
  },
6590
6627
  ordinalNumber: (e) => String(e)
6591
6628
  }),
6592
- formatLong: L(N({}, De.formatLong), {
6629
+ formatLong: F(N({}, De.formatLong), {
6593
6630
  date: () => "dd.MM.yyyy",
6594
6631
  time: () => "HH:mm",
6595
6632
  dateTime: () => "dd.MM.yyyy HH:mm"
6596
6633
  })
6597
- }), cs = L(N({}, De), {
6634
+ }), cs = F(N({}, De), {
6598
6635
  code: "tg",
6599
- localize: L(N({}, De.localize), {
6636
+ localize: F(N({}, De.localize), {
6600
6637
  month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? is[e] : as[e],
6601
6638
  day: (e, t) => {
6602
6639
  const r = (t == null ? void 0 : t.width) || "wide";
@@ -6604,7 +6641,7 @@ const es = {
6604
6641
  },
6605
6642
  ordinalNumber: (e) => String(e)
6606
6643
  }),
6607
- formatLong: L(N({}, De.formatLong), {
6644
+ formatLong: F(N({}, De.formatLong), {
6608
6645
  date: () => "dd.MM.yyyy",
6609
6646
  time: () => "HH:mm",
6610
6647
  dateTime: () => "dd.MM.yyyy HH:mm"
@@ -6630,7 +6667,7 @@ function qt(e) {
6630
6667
  const t = Et(e == null ? void 0 : e.from), r = Et(e == null ? void 0 : e.to);
6631
6668
  return t || r ? { from: t, to: r } : void 0;
6632
6669
  }
6633
- function Dd(v) {
6670
+ function Ed(v) {
6634
6671
  var p = v, {
6635
6672
  className: e,
6636
6673
  value: t,
@@ -6665,11 +6702,11 @@ function Dd(v) {
6665
6702
  var Ae;
6666
6703
  const [b, I] = y.useState(
6667
6704
  qt(t)
6668
- ), [T, A] = y.useState(
6705
+ ), [S, A] = y.useState(
6669
6706
  we(Et(t == null ? void 0 : t.from))
6670
6707
  ), [w, M] = y.useState(
6671
6708
  we(Et(t == null ? void 0 : t.to))
6672
- ), [D, S] = y.useState(!1), C = y.useRef(null), O = Kt(), W = es[r], z = us(r), H = u === "custom" ? "md" : u, B = {
6709
+ ), [D, C] = y.useState(!1), T = y.useRef(null), B = Kt(), W = es[r], z = us(r), H = u === "custom" ? "md" : u, O = {
6673
6710
  from: (a == null ? void 0 : a.from) || W.placeholder,
6674
6711
  to: (a == null ? void 0 : a.to) || W.placeholder
6675
6712
  }, R = y.useMemo(() => {
@@ -6680,7 +6717,7 @@ function Dd(v) {
6680
6717
  hasToError: () => te(i) ? !0 : ie(i) && !!i.to,
6681
6718
  getErrorText: () => te(i) ? i : ie(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
6682
6719
  };
6683
- }, [i]), { hasAnyError: F, hasFromError: P, hasToError: K, getErrorText: J } = R;
6720
+ }, [i]), { hasAnyError: L, hasFromError: P, hasToError: K, getErrorText: J } = R;
6684
6721
  y.useEffect(() => {
6685
6722
  const te = qt(t);
6686
6723
  I(te), A(we(te == null ? void 0 : te.from)), M(we(te == null ? void 0 : te.to));
@@ -6692,7 +6729,7 @@ function Dd(v) {
6692
6729
  },
6693
6730
  [o]
6694
6731
  ), j = (te) => {
6695
- re(te), te != null && te.from && (te != null && te.to) && O === "mobile" && S(!1);
6732
+ re(te), te != null && te.from && (te != null && te.to) && B === "mobile" && C(!1);
6696
6733
  }, q = () => {
6697
6734
  re(void 0), d == null || d();
6698
6735
  }, Y = (te, ie) => {
@@ -6710,14 +6747,14 @@ function Dd(v) {
6710
6747
  to: te === "to" ? Te : b == null ? void 0 : b.to
6711
6748
  });
6712
6749
  }, X = (te) => {
6713
- const ie = te === "from" ? T : w, Ce = Dt(ie);
6750
+ const ie = te === "from" ? S : w, Ce = Dt(ie);
6714
6751
  ie && (!Ce || ut(Ce, x)) && (te === "from" ? A(we(b == null ? void 0 : b.from)) : M(we(b == null ? void 0 : b.to)));
6715
6752
  }, U = () => {
6716
- f || S(!0);
6753
+ f || C(!0);
6717
6754
  }, $ = (te) => {
6718
6755
  var Ce;
6719
6756
  const ie = te.target;
6720
- ie instanceof Node && ((Ce = C.current) != null && Ce.contains(ie)) && te.preventDefault();
6757
+ ie instanceof Node && ((Ce = T.current) != null && Ce.contains(ie)) && te.preventDefault();
6721
6758
  }, fe = (te) => g ? `${g}-${te}` : void 0, ye = (te) => /* @__PURE__ */ k(
6722
6759
  "div",
6723
6760
  {
@@ -6726,10 +6763,10 @@ function Dd(v) {
6726
6763
  u === "md" && "h-8",
6727
6764
  u === "lg" && "h-10 rounded-xl",
6728
6765
  f && "bg-muted cursor-not-allowed",
6729
- !f && !F() && "hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus",
6730
- D && !F() && "border-primary shadow-focus",
6731
- F() && "border-destructive hover:border-destructive focus-within:border-destructive",
6732
- F() && D && "shadow-error"
6766
+ !f && !L() && "hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus",
6767
+ D && !L() && "border-primary shadow-focus",
6768
+ L() && "border-destructive hover:border-destructive focus-within:border-destructive",
6769
+ L() && D && "shadow-error"
6733
6770
  ),
6734
6771
  "data-testid": g,
6735
6772
  onClick: U,
@@ -6739,12 +6776,12 @@ function Dd(v) {
6739
6776
  ft,
6740
6777
  {
6741
6778
  mask: rr,
6742
- value: T,
6779
+ value: S,
6743
6780
  onChange: (ie) => Y("from", ie),
6744
6781
  onBlur: () => X("from"),
6745
6782
  onFocus: U,
6746
6783
  disabled: f,
6747
- placeholder: B.from,
6784
+ placeholder: O.from,
6748
6785
  size: H,
6749
6786
  inputMode: "numeric",
6750
6787
  showErrorMessage: !1,
@@ -6763,8 +6800,8 @@ function Dd(v) {
6763
6800
  icon: "ArrowForwardIcon",
6764
6801
  className: m(
6765
6802
  "text-muted-foreground mx-1.5 shrink-0 group-focus-within:text-default",
6766
- D && !f && !F() && "text-default",
6767
- b && (b.from || b.to) && !f && !F() && "text-default",
6803
+ D && !f && !L() && "text-default",
6804
+ b && (b.from || b.to) && !f && !L() && "text-default",
6768
6805
  f && "text-muted-foreground"
6769
6806
  )
6770
6807
  }
@@ -6778,7 +6815,7 @@ function Dd(v) {
6778
6815
  onBlur: () => X("to"),
6779
6816
  onFocus: U,
6780
6817
  disabled: f,
6781
- placeholder: B.to,
6818
+ placeholder: O.to,
6782
6819
  size: H,
6783
6820
  inputMode: "numeric",
6784
6821
  showErrorMessage: !1,
@@ -6804,9 +6841,9 @@ function Dd(v) {
6804
6841
  className: m(
6805
6842
  "text-muted-foreground size-4 bg-transparent p-0 hover:bg-transparent focus:bg-transparent group-focus-within:text-default",
6806
6843
  f && "text-muted-foreground",
6807
- D && !f && !F() && "text-default",
6808
- b && (b.from || b.to) && !f && !F() && "text-default",
6809
- F() && "!text-destructive"
6844
+ D && !f && !L() && "text-default",
6845
+ b && (b.from || b.to) && !f && !L() && "text-default",
6846
+ L() && "!text-destructive"
6810
6847
  ),
6811
6848
  disabled: f,
6812
6849
  onMouseDown: (ie) => ie.preventDefault(),
@@ -6814,7 +6851,7 @@ function Dd(v) {
6814
6851
  "aria-label": "Открыть календарь"
6815
6852
  }
6816
6853
  ),
6817
- F() && /* @__PURE__ */ n(
6854
+ L() && /* @__PURE__ */ n(
6818
6855
  Z,
6819
6856
  {
6820
6857
  icon: "ErrorFillIcon",
@@ -6836,7 +6873,7 @@ function Dd(v) {
6836
6873
  disabled: x
6837
6874
  }
6838
6875
  );
6839
- return /* @__PURE__ */ k("div", L(N({ className: e }, h), { children: [
6876
+ return /* @__PURE__ */ k("div", F(N({ className: e }, h), { children: [
6840
6877
  l && /* @__PURE__ */ n(
6841
6878
  G,
6842
6879
  {
@@ -6849,11 +6886,11 @@ function Dd(v) {
6849
6886
  children: l
6850
6887
  }
6851
6888
  ),
6852
- O === "mobile" ? /* @__PURE__ */ k(
6889
+ B === "mobile" ? /* @__PURE__ */ k(
6853
6890
  he,
6854
6891
  {
6855
6892
  open: D,
6856
- onOpenChange: f ? void 0 : S,
6893
+ onOpenChange: f ? void 0 : C,
6857
6894
  width: "md",
6858
6895
  trigger: /* @__PURE__ */ n(
6859
6896
  ne,
@@ -6865,9 +6902,9 @@ function Dd(v) {
6865
6902
  className: m(
6866
6903
  "group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
6867
6904
  u === "lg" ? "px-3 rounded-xl" : "px-2.5 rounded-lg",
6868
- D && !F() && "border-primary shadow-focus",
6869
- F() && D && "border-destructive shadow-error",
6870
- F() && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
6905
+ D && !L() && "border-primary shadow-focus",
6906
+ L() && D && "border-destructive shadow-error",
6907
+ L() && "bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive hover:text-destructive"
6871
6908
  ),
6872
6909
  "data-testid": g,
6873
6910
  children: /* @__PURE__ */ k("div", { className: "flex w-full items-center", children: [
@@ -6887,7 +6924,7 @@ function Dd(v) {
6887
6924
  "flex-1 text-left",
6888
6925
  P() && "text-destructive"
6889
6926
  ),
6890
- children: b != null && b.from ? we(b.from) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: B.from })
6927
+ children: b != null && b.from ? we(b.from) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: O.from })
6891
6928
  }
6892
6929
  ),
6893
6930
  /* @__PURE__ */ n(Z, { icon: "ArrowForwardIcon", className: "mx-1.5" }),
@@ -6898,7 +6935,7 @@ function Dd(v) {
6898
6935
  "flex-1 text-left",
6899
6936
  K() && "text-destructive"
6900
6937
  ),
6901
- children: b != null && b.to ? we(b.to) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: B.to })
6938
+ children: b != null && b.to ? we(b.to) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: O.to })
6902
6939
  }
6903
6940
  )
6904
6941
  ]
@@ -6911,15 +6948,15 @@ function Dd(v) {
6911
6948
  className: m(
6912
6949
  "group-focus-within:text-foreground text-muted-foreground transition-colors",
6913
6950
  f && "text-muted-foreground",
6914
- D && !f && !F() && "!text-default",
6915
- b && (b.from || b.to) && !f && !F() && "text-default",
6916
- F() && "!group-focus-within:!text-destructive !text-destructive"
6951
+ D && !f && !L() && "!text-default",
6952
+ b && (b.from || b.to) && !f && !L() && "text-default",
6953
+ L() && "!group-focus-within:!text-destructive !text-destructive"
6917
6954
  ),
6918
6955
  icon: "CalendarIcon",
6919
6956
  size: 16
6920
6957
  }
6921
6958
  ),
6922
- F() && /* @__PURE__ */ n(
6959
+ L() && /* @__PURE__ */ n(
6923
6960
  Z,
6924
6961
  {
6925
6962
  icon: "ErrorFillIcon",
@@ -6953,8 +6990,8 @@ function Dd(v) {
6953
6990
  ) }) })
6954
6991
  ]
6955
6992
  }
6956
- ) : /* @__PURE__ */ k(Qe, { open: D, onOpenChange: S, children: [
6957
- /* @__PURE__ */ n("div", { ref: C, children: /* @__PURE__ */ n(gn, { className: "block", children: ye() }) }),
6993
+ ) : /* @__PURE__ */ k(Qe, { open: D, onOpenChange: C, children: [
6994
+ /* @__PURE__ */ n("div", { ref: T, children: /* @__PURE__ */ n(gn, { className: "block", children: ye() }) }),
6958
6995
  /* @__PURE__ */ k(
6959
6996
  He,
6960
6997
  {
@@ -6980,8 +7017,8 @@ function Dd(v) {
6980
7017
  }
6981
7018
  )
6982
7019
  ] }),
6983
- s && !F() && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
6984
- F() && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: J() })
7020
+ s && !L() && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
7021
+ L() && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: J() })
6985
7022
  ] }));
6986
7023
  }
6987
7024
  function fs({ className: e }) {
@@ -7050,7 +7087,7 @@ const Yn = y.forwardRef((o, r) => {
7050
7087
  var a = o, { className: e } = a, t = V(a, ["className"]);
7051
7088
  return /* @__PURE__ */ n(
7052
7089
  se.Trigger,
7053
- L(N({}, t), {
7090
+ F(N({}, t), {
7054
7091
  ref: r,
7055
7092
  className: m(e)
7056
7093
  })
@@ -7061,9 +7098,9 @@ const Zn = y.forwardRef((a, o) => {
7061
7098
  var i = a, { className: e, style: t } = i, r = V(i, ["className", "style"]);
7062
7099
  return /* @__PURE__ */ n(
7063
7100
  se.Overlay,
7064
- L(N({}, r), {
7101
+ F(N({}, r), {
7065
7102
  ref: o,
7066
- style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : L(N({}, t), { zIndex: 50 }),
7103
+ style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : F(N({}, t), { zIndex: 50 }),
7067
7104
  className: m(ps(), e)
7068
7105
  })
7069
7106
  );
@@ -7095,10 +7132,10 @@ const Jn = y.forwardRef(
7095
7132
  var g, h;
7096
7133
  return /* @__PURE__ */ n(
7097
7134
  se.Content,
7098
- L(N({}, f), {
7135
+ F(N({}, f), {
7099
7136
  ref: c,
7100
7137
  "data-testid": s,
7101
- style: L(N({}, t), {
7138
+ style: F(N({}, t), {
7102
7139
  width: (g = t == null ? void 0 : t.width) != null ? g : gs(o),
7103
7140
  zIndex: (h = t == null ? void 0 : t.zIndex) != null ? h : 52
7104
7141
  }),
@@ -7127,7 +7164,7 @@ const Qn = y.forwardRef(
7127
7164
  ]);
7128
7165
  return /* @__PURE__ */ n(
7129
7166
  "div",
7130
- L(N({}, o), {
7167
+ F(N({}, o), {
7131
7168
  ref: a,
7132
7169
  "data-testid": r,
7133
7170
  className: m(
@@ -7142,7 +7179,7 @@ const Qn = y.forwardRef(
7142
7179
  Qn.displayName = "DrawerHeader";
7143
7180
  const qn = y.forwardRef((i, a) => {
7144
7181
  var s = i, { className: e, children: t, dataTestId: r = "drawer-title" } = s, o = V(s, ["className", "children", "dataTestId"]);
7145
- return /* @__PURE__ */ n(se.Title, L(N({ asChild: !0, ref: a }, o), { children: /* @__PURE__ */ n(
7182
+ return /* @__PURE__ */ n(se.Title, F(N({ asChild: !0, ref: a }, o), { children: /* @__PURE__ */ n(
7146
7183
  G,
7147
7184
  {
7148
7185
  as: "h2",
@@ -7158,7 +7195,7 @@ const xs = y.forwardRef((a, o) => {
7158
7195
  var i = a, { className: e, dataTestId: t = "drawer-description" } = i, r = V(i, ["className", "dataTestId"]);
7159
7196
  return /* @__PURE__ */ n(
7160
7197
  se.Description,
7161
- L(N({}, r), {
7198
+ F(N({}, r), {
7162
7199
  ref: o,
7163
7200
  "data-testid": t,
7164
7201
  className: m("text-secondary", e)
@@ -7171,7 +7208,7 @@ const Xn = y.forwardRef(
7171
7208
  var i = a, { className: e, dataTestId: t = "drawer-body" } = i, r = V(i, ["className", "dataTestId"]);
7172
7209
  return /* @__PURE__ */ n(
7173
7210
  "div",
7174
- L(N({}, r), {
7211
+ F(N({}, r), {
7175
7212
  ref: o,
7176
7213
  "data-testid": t,
7177
7214
  className: m("no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 md:px-6", e)
@@ -7193,7 +7230,7 @@ const eo = y.forwardRef(
7193
7230
  ]);
7194
7231
  return /* @__PURE__ */ n(
7195
7232
  "div",
7196
- L(N({}, o), {
7233
+ F(N({}, o), {
7197
7234
  ref: a,
7198
7235
  "data-testid": r,
7199
7236
  className: m(
@@ -7218,7 +7255,7 @@ const to = y.forwardRef((i, a) => {
7218
7255
  ]);
7219
7256
  return /* @__PURE__ */ n(se.Close, { asChild: !0, children: /* @__PURE__ */ n(
7220
7257
  ne,
7221
- L(N({}, o), {
7258
+ F(N({}, o), {
7222
7259
  ref: a,
7223
7260
  "aria-label": r,
7224
7261
  "data-testid": t,
@@ -7250,7 +7287,7 @@ function ys({
7250
7287
  baseZIndex: v = 50,
7251
7288
  width: p
7252
7289
  }) {
7253
- const [b, I] = y.useState(null), { headerShadow: T, footerShadow: A } = bs(b);
7290
+ const [b, I] = y.useState(null), { headerShadow: S, footerShadow: A } = bs(b);
7254
7291
  return /* @__PURE__ */ k(
7255
7292
  se.Root,
7256
7293
  {
@@ -7281,7 +7318,7 @@ function ys({
7281
7318
  (i || u) && /* @__PURE__ */ k(
7282
7319
  Qn,
7283
7320
  {
7284
- shadow: T,
7321
+ shadow: S,
7285
7322
  className: g == null ? void 0 : g.header,
7286
7323
  children: [
7287
7324
  i && /* @__PURE__ */ n(qn, { className: m("min-w-0 flex-1", g == null ? void 0 : g.title), children: i }),
@@ -7344,45 +7381,45 @@ const ro = y.forwardRef(
7344
7381
  "onClear"
7345
7382
  ]);
7346
7383
  const [p, b] = de(() => e == null || e === "" ? "" : String(e)), I = Q(
7347
- (S) => o === "comma" ? S.replace(/\./g, ",") : S.replace(/,/g, "."),
7384
+ (C) => o === "comma" ? C.replace(/\./g, ",") : C.replace(/,/g, "."),
7348
7385
  [o]
7349
- ), T = Q(
7350
- (S) => {
7351
- if (S === "" && u)
7386
+ ), S = Q(
7387
+ (C) => {
7388
+ if (C === "" && u)
7352
7389
  return "";
7353
- let C = S.replace(/[^\d.,\-]/g, "");
7354
- if (l ? (C.match(/-/g) || []).length > 1 && (C = C.replace(/-/g, ""), S.startsWith("-") && (C = `-${C}`)) : C = C.replace(/-/g, ""), C = I(C), (C.match(/[.,]/g) || []).length > 1) {
7355
- const W = C.search(/[.,]/);
7356
- C = C.substring(0, W + 1) + C.substring(W + 1).replace(/[.,]/g, "");
7390
+ let T = C.replace(/[^\d.,\-]/g, "");
7391
+ if (l ? (T.match(/-/g) || []).length > 1 && (T = T.replace(/-/g, ""), C.startsWith("-") && (T = `-${T}`)) : T = T.replace(/-/g, ""), T = I(T), (T.match(/[.,]/g) || []).length > 1) {
7392
+ const W = T.search(/[.,]/);
7393
+ T = T.substring(0, W + 1) + T.substring(W + 1).replace(/[.,]/g, "");
7357
7394
  }
7358
7395
  if (r !== void 0 && r >= 0) {
7359
- const W = C.search(/[.,]/);
7396
+ const W = T.search(/[.,]/);
7360
7397
  if (W !== -1) {
7361
- const z = C.substring(0, W), B = C.substring(W + 1).substring(0, r);
7362
- C = z + C[W] + B;
7398
+ const z = T.substring(0, W), O = T.substring(W + 1).substring(0, r);
7399
+ T = z + T[W] + O;
7363
7400
  }
7364
7401
  }
7365
- return a && (C = a(C)), C;
7402
+ return a && (T = a(T)), T;
7366
7403
  },
7367
7404
  [r, o, l, u, I, a]
7368
7405
  ), A = Q(
7369
- (S) => !(i !== void 0 && S < i || s !== void 0 && S > s),
7406
+ (C) => !(i !== void 0 && C < i || s !== void 0 && C > s),
7370
7407
  [i, s]
7371
7408
  ), w = Q(
7372
- (S) => {
7373
- const C = S.target.value, O = T(C);
7374
- if (b(O), O === "") {
7409
+ (C) => {
7410
+ const T = C.target.value, B = S(T);
7411
+ if (b(B), B === "") {
7375
7412
  t == null || t(u ? "" : 0);
7376
7413
  return;
7377
7414
  }
7378
- const W = o === "comma" ? O.replace(/,/g, ".") : O, z = Number.parseFloat(W);
7379
- Number.isNaN(z) ? t == null || t(O) : A(z) ? t == null || t(z) : t == null || t(O);
7415
+ const W = o === "comma" ? B.replace(/,/g, ".") : B, z = Number.parseFloat(W);
7416
+ Number.isNaN(z) ? t == null || t(B) : A(z) ? t == null || t(z) : t == null || t(B);
7380
7417
  },
7381
- [T, A, t, o, u]
7418
+ [S, A, t, o, u]
7382
7419
  ), M = Q(
7383
- (S) => {
7384
- const { key: C, ctrlKey: O, metaKey: W } = S;
7385
- if (O || W || [
7420
+ (C) => {
7421
+ const { key: T, ctrlKey: B, metaKey: W } = C;
7422
+ if (B || W || [
7386
7423
  "Backspace",
7387
7424
  "Delete",
7388
7425
  "Tab",
@@ -7394,54 +7431,54 @@ const ro = y.forwardRef(
7394
7431
  "ArrowDown",
7395
7432
  "Home",
7396
7433
  "End"
7397
- ].includes(C)) {
7398
- f == null || f(S);
7434
+ ].includes(T)) {
7435
+ f == null || f(C);
7399
7436
  return;
7400
7437
  }
7401
- if (/^\d$/.test(C)) {
7402
- f == null || f(S);
7438
+ if (/^\d$/.test(T)) {
7439
+ f == null || f(C);
7403
7440
  return;
7404
7441
  }
7405
- if (C === "." || C === ",") {
7406
- if (o === "dot" && C === "." || o === "comma" && C === ",") {
7407
- f == null || f(S);
7442
+ if (T === "." || T === ",") {
7443
+ if (o === "dot" && T === "." || o === "comma" && T === ",") {
7444
+ f == null || f(C);
7408
7445
  return;
7409
7446
  }
7410
- S.preventDefault();
7411
- const z = S.currentTarget, H = z.selectionStart || 0, B = z.value.substring(0, H) + (o === "dot" ? "." : ",") + z.value.substring(H), R = T(B);
7447
+ C.preventDefault();
7448
+ const z = C.currentTarget, H = z.selectionStart || 0, O = z.value.substring(0, H) + (o === "dot" ? "." : ",") + z.value.substring(H), R = S(O);
7412
7449
  b(R), t == null || t(R);
7413
7450
  return;
7414
7451
  }
7415
- if (C === "-" && l) {
7416
- const z = S.currentTarget;
7452
+ if (T === "-" && l) {
7453
+ const z = C.currentTarget;
7417
7454
  if ((z.selectionStart || 0) === 0 && !z.value.includes("-")) {
7418
- f == null || f(S);
7455
+ f == null || f(C);
7419
7456
  return;
7420
7457
  }
7421
7458
  }
7422
- S.preventDefault();
7459
+ C.preventDefault();
7423
7460
  },
7424
- [l, f, o, T, b, t]
7461
+ [l, f, o, S, b, t]
7425
7462
  ), D = Q(
7426
- (S) => {
7427
- const C = S.clipboardData.getData("text"), O = T(C);
7428
- if (O !== C) {
7429
- S.preventDefault();
7430
- const W = S.currentTarget, z = W.selectionStart || 0, H = W.selectionEnd || 0, B = W.value.substring(0, z) + O + W.value.substring(H), R = T(B);
7463
+ (C) => {
7464
+ const T = C.clipboardData.getData("text"), B = S(T);
7465
+ if (B !== T) {
7466
+ C.preventDefault();
7467
+ const W = C.currentTarget, z = W.selectionStart || 0, H = W.selectionEnd || 0, O = W.value.substring(0, z) + B + W.value.substring(H), R = S(O);
7431
7468
  b(R), t == null || t(R);
7432
7469
  }
7433
- c == null || c(S);
7470
+ c == null || c(C);
7434
7471
  },
7435
- [T, t, c]
7472
+ [S, t, c]
7436
7473
  );
7437
7474
  return y.useEffect(() => {
7438
7475
  if (e != null) {
7439
- const S = String(e);
7440
- S !== p && b(S);
7476
+ const C = String(e);
7477
+ C !== p && b(C);
7441
7478
  }
7442
7479
  }, [e, p]), /* @__PURE__ */ n(
7443
7480
  Le,
7444
- L(N({}, x), {
7481
+ F(N({}, x), {
7445
7482
  ref: g,
7446
7483
  type: "text",
7447
7484
  value: p,
@@ -7490,28 +7527,28 @@ const no = y.forwardRef(
7490
7527
  "iconSize",
7491
7528
  "iconClassName"
7492
7529
  ]);
7493
- const T = (S) => {
7530
+ const S = (C) => {
7494
7531
  if (s) {
7495
- S.preventDefault(), S.stopPropagation();
7532
+ C.preventDefault(), C.stopPropagation();
7496
7533
  return;
7497
7534
  }
7498
- a == null || a(S);
7499
- }, A = (S) => {
7500
- if (s && (S.key === "Enter" || S.key === " ")) {
7501
- S.preventDefault(), S.stopPropagation();
7535
+ a == null || a(C);
7536
+ }, A = (C) => {
7537
+ if (s && (C.key === "Enter" || C.key === " ")) {
7538
+ C.preventDefault(), C.stopPropagation();
7502
7539
  return;
7503
7540
  }
7504
- i == null || i(S);
7541
+ i == null || i(C);
7505
7542
  }, w = m(
7506
7543
  "inline-flex items-center whitespace-break-spaces no-underline font-graphik border-0 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
7507
7544
  "data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
7508
7545
  e
7509
7546
  );
7510
7547
  if (!d) {
7511
- const S = r;
7548
+ const C = r;
7512
7549
  return u ? /* @__PURE__ */ n(
7513
7550
  kt,
7514
- L(N({
7551
+ F(N({
7515
7552
  ref: p,
7516
7553
  className: w,
7517
7554
  "data-cy": f,
@@ -7519,14 +7556,14 @@ const no = y.forwardRef(
7519
7556
  "aria-disabled": s || void 0,
7520
7557
  "data-disabled": s || void 0,
7521
7558
  tabIndex: s ? -1 : l,
7522
- onClick: T,
7559
+ onClick: S,
7523
7560
  onKeyDown: A
7524
7561
  }, v), {
7525
- children: S
7562
+ children: C
7526
7563
  })
7527
7564
  ) : /* @__PURE__ */ n(
7528
7565
  "a",
7529
- L(N({
7566
+ F(N({
7530
7567
  ref: p
7531
7568
  }, v), {
7532
7569
  href: s ? void 0 : t,
@@ -7536,11 +7573,11 @@ const no = y.forwardRef(
7536
7573
  "aria-disabled": s || void 0,
7537
7574
  "data-disabled": s || void 0,
7538
7575
  tabIndex: s ? -1 : l,
7539
- onClick: T,
7576
+ onClick: S,
7540
7577
  onKeyDown: A,
7541
7578
  "data-cy": f,
7542
7579
  "data-testid": c,
7543
- children: S
7580
+ children: C
7544
7581
  })
7545
7582
  );
7546
7583
  }
@@ -7551,7 +7588,7 @@ const no = y.forwardRef(
7551
7588
  ] });
7552
7589
  return u ? /* @__PURE__ */ n(
7553
7590
  kt,
7554
- L(N({
7591
+ F(N({
7555
7592
  ref: p,
7556
7593
  className: m(
7557
7594
  w,
@@ -7562,14 +7599,14 @@ const no = y.forwardRef(
7562
7599
  "aria-disabled": s || void 0,
7563
7600
  "data-disabled": s || void 0,
7564
7601
  tabIndex: s ? -1 : l,
7565
- onClick: T,
7602
+ onClick: S,
7566
7603
  onKeyDown: A
7567
7604
  }, v), {
7568
7605
  children: D
7569
7606
  })
7570
7607
  ) : /* @__PURE__ */ n(
7571
7608
  "a",
7572
- L(N({
7609
+ F(N({
7573
7610
  ref: p
7574
7611
  }, v), {
7575
7612
  href: s ? void 0 : t,
@@ -7578,7 +7615,7 @@ const no = y.forwardRef(
7578
7615
  "aria-disabled": s || void 0,
7579
7616
  "data-disabled": s || void 0,
7580
7617
  tabIndex: s ? -1 : l,
7581
- onClick: T,
7618
+ onClick: S,
7582
7619
  onKeyDown: A,
7583
7620
  className: m(
7584
7621
  w,
@@ -7597,7 +7634,7 @@ const vs = {
7597
7634
  sm: "md:w-100",
7598
7635
  md: "md:w-150",
7599
7636
  lg: "md:w-200"
7600
- }, Ed = se.Root, Ad = se.Trigger, ws = se.Portal, Fd = se.Close, oo = y.forwardRef((o, r) => {
7637
+ }, Ad = se.Root, Fd = se.Trigger, ws = se.Portal, Ld = se.Close, oo = y.forwardRef((o, r) => {
7601
7638
  var a = o, { className: e } = a, t = V(a, ["className"]);
7602
7639
  return /* @__PURE__ */ n(
7603
7640
  se.Overlay,
@@ -7650,7 +7687,7 @@ const Ns = y.forwardRef(
7650
7687
  !s && /* @__PURE__ */ n(oo, {}),
7651
7688
  /* @__PURE__ */ n(
7652
7689
  se.Content,
7653
- L(N({
7690
+ F(N({
7654
7691
  ref: c,
7655
7692
  onOpenAutoFocus: (p) => {
7656
7693
  p.preventDefault();
@@ -7766,7 +7803,7 @@ const Cs = y.forwardRef((o, r) => {
7766
7803
  );
7767
7804
  });
7768
7805
  Cs.displayName = se.Description.displayName;
7769
- const Ld = ({
7806
+ const Pd = ({
7770
7807
  totalSteps: e,
7771
7808
  items: t,
7772
7809
  activeStep: r,
@@ -7855,7 +7892,7 @@ function Es(e) {
7855
7892
  }, u)
7856
7893
  );
7857
7894
  }
7858
- const Pd = ko((e, t) => {
7895
+ const zd = ko((e, t) => {
7859
7896
  const {
7860
7897
  length: r = 6,
7861
7898
  onChange: o = () => {
@@ -7873,9 +7910,9 @@ const Pd = ko((e, t) => {
7873
7910
  resend: "Отправить код повторно",
7874
7911
  sms: "Отправить СМС через"
7875
7912
  }
7876
- } = e, h = e["data-cy"], v = e["data-testid"], [p, b] = de(0), [I, T] = de(
7913
+ } = e, h = e["data-cy"], v = e["data-testid"], [p, b] = de(0), [I, S] = de(
7877
7914
  Array.from({ length: r }, () => "")
7878
- ), [A, w] = de(d ? x : 0), [M, D] = de(!!d), [S, C] = de(u), [O, W] = de(f), z = (U) => {
7915
+ ), [A, w] = de(d ? x : 0), [M, D] = de(!!d), [C, T] = de(u), [B, W] = de(f), z = (U) => {
7879
7916
  const $ = Math.max(Math.min(r - 1, U), 0);
7880
7917
  b($);
7881
7918
  };
@@ -7889,22 +7926,22 @@ const Pd = ko((e, t) => {
7889
7926
  U && clearInterval(U);
7890
7927
  };
7891
7928
  }, [A, M]), ge(() => {
7892
- C(u), W(f);
7929
+ T(u), W(f);
7893
7930
  }, [u, f]);
7894
7931
  const H = () => {
7895
7932
  d && !M && (d(), w(x), D(!0));
7896
- }, B = (U) => {
7933
+ }, O = (U) => {
7897
7934
  var fe;
7898
- S && (C(!1), W("")), T(U);
7935
+ C && (T(!1), W("")), S(U);
7899
7936
  const $ = U.join("");
7900
- o($), $.length === r && ((fe = e.onComplete) == null || fe.call(e, $), l && (T(Array.from({ length: r }, () => "")), b(0)));
7901
- }, R = (U) => !Number.isNaN(Number.parseInt(U, 10)) && U.trim().length === 1, F = () => {
7937
+ o($), $.length === r && ((fe = e.onComplete) == null || fe.call(e, $), l && (S(Array.from({ length: r }, () => "")), b(0)));
7938
+ }, R = (U) => !Number.isNaN(Number.parseInt(U, 10)) && U.trim().length === 1, L = () => {
7902
7939
  z(p + 1);
7903
7940
  }, P = () => {
7904
7941
  z(p - 1);
7905
7942
  }, K = (U) => {
7906
7943
  const $ = [...I];
7907
- $[p] = U[0] || "", B($);
7944
+ $[p] = U[0] || "", O($);
7908
7945
  }, J = (U) => {
7909
7946
  if (U.preventDefault(), i || s)
7910
7947
  return;
@@ -7912,22 +7949,22 @@ const Pd = ko((e, t) => {
7912
7949
  const fe = U.clipboardData.getData("text/plain").slice(0, r - p).split(""), ye = [...I];
7913
7950
  for (let pe = 0; pe < r; ++pe)
7914
7951
  pe >= p && fe.length > 0 && (ye[pe] = fe.shift(), $++);
7915
- b($), z($), B(ye);
7952
+ b($), z($), O(ye);
7916
7953
  }, re = (U) => ($) => {
7917
7954
  if (s)
7918
7955
  return;
7919
7956
  const { value: fe } = $.target;
7920
7957
  if (U === 0 && fe.length === r) {
7921
- B(fe.split(""));
7958
+ O(fe.split(""));
7922
7959
  return;
7923
7960
  }
7924
7961
  R(fe) && K(fe);
7925
7962
  }, j = (U) => {
7926
- s || (U.keyCode === ks || U.key === "Backspace" ? (U.preventDefault(), K(""), P()) : U.keyCode === Ms || U.key === "Delete" ? (U.preventDefault(), K("")) : U.keyCode === Ts || U.key === "ArrowLeft" ? (U.preventDefault(), P()) : U.keyCode === Rs || U.key === "ArrowRight" ? (U.preventDefault(), F()) : (U.keyCode === Ds || U.key === " " || U.key === "Spacebar" || U.key === "Space") && U.preventDefault());
7963
+ s || (U.keyCode === ks || U.key === "Backspace" ? (U.preventDefault(), K(""), P()) : U.keyCode === Ms || U.key === "Delete" ? (U.preventDefault(), K("")) : U.keyCode === Ts || U.key === "ArrowLeft" ? (U.preventDefault(), P()) : U.keyCode === Rs || U.key === "ArrowRight" ? (U.preventDefault(), L()) : (U.keyCode === Ds || U.key === " " || U.key === "Spacebar" || U.key === "Space") && U.preventDefault());
7927
7964
  }, q = (U) => {
7928
7965
  if (!s) {
7929
7966
  if (R(U.currentTarget.value)) {
7930
- F();
7967
+ L();
7931
7968
  return;
7932
7969
  }
7933
7970
  if (a) {
@@ -7959,14 +7996,14 @@ const Pd = ko((e, t) => {
7959
7996
  isDisabled: i,
7960
7997
  className: m(
7961
7998
  "flex flex-1 [appearance:textfield] items-center justify-center text-center text-lg [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
7962
- S && "border-destructive focus:border-destructive"
7999
+ C && "border-destructive focus:border-destructive"
7963
8000
  ),
7964
8001
  "data-cy": h && `${h}-${$}`,
7965
8002
  "data-testid": v && `${v}-${$}`
7966
8003
  },
7967
8004
  $
7968
8005
  )) }),
7969
- S && O && /* @__PURE__ */ n(G, { variant: "p2", textColor: "destructive", className: "font-cofo", children: O }),
8006
+ C && B && /* @__PURE__ */ n(G, { variant: "p2", textColor: "destructive", className: "font-cofo", children: B }),
7970
8007
  d && /* @__PURE__ */ n("div", { children: M ? /* @__PURE__ */ k(G, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
7971
8008
  g.sms,
7972
8009
  " ",
@@ -8009,7 +8046,7 @@ function Fs(e, t) {
8009
8046
  return f.has(d) ? !1 : (f.add(d), !0);
8010
8047
  });
8011
8048
  }
8012
- const zd = ({
8049
+ const Bd = ({
8013
8050
  current: e,
8014
8051
  total: t,
8015
8052
  pageSize: r = 10,
@@ -8020,7 +8057,7 @@ const zd = ({
8020
8057
  showQuickJumper: l = !1,
8021
8058
  locale: u
8022
8059
  }) => {
8023
- var T, A;
8060
+ var S, A;
8024
8061
  const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), c = Wr(e || 1, 1, f), d = ae(
8025
8062
  () => [{ type: "prev" }, ...Fs(c, f), { type: "next" }],
8026
8063
  [c, f]
@@ -8051,10 +8088,10 @@ const zd = ({
8051
8088
  return;
8052
8089
  const w = typeof x == "number" ? x : Number(x);
8053
8090
  Number.isFinite(w) && (h(w), g(""));
8054
- }, b = (T = u == null ? void 0 : u.jump_to) != null ? T : "Перейти на", I = (A = u == null ? void 0 : u.page) != null ? A : "страницу";
8091
+ }, b = (S = u == null ? void 0 : u.jump_to) != null ? S : "Перейти на", I = (A = u == null ? void 0 : u.page) != null ? A : "страницу";
8055
8092
  return /* @__PURE__ */ k("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
8056
8093
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((w, M) => {
8057
- const D = As(w, f), S = w.type === "page" && w.page === c, C = `${w.type}-${w.type === "page" ? w.page : M}`, O = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8094
+ const D = As(w, f), C = w.type === "page" && w.page === c, T = `${w.type}-${w.type === "page" ? w.page : M}`, B = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
8058
8095
  ne,
8059
8096
  {
8060
8097
  variant: "text",
@@ -8085,19 +8122,19 @@ const zd = ({
8085
8122
  className: m(
8086
8123
  "h-8 w-8 min-w-8 rounded-md px-0 hover:bg-default-background focus:bg-default-background",
8087
8124
  {
8088
- "border-1 border-solid border-border-primary bg-background text-primary hover:bg-background focus:bg-background": S,
8089
- "text-default": !S
8125
+ "border-1 border-solid border-border-primary bg-background text-primary hover:bg-background focus:bg-background": C,
8126
+ "text-default": !C
8090
8127
  }
8091
8128
  ),
8092
- isActive: S,
8129
+ isActive: C,
8093
8130
  disabled: i,
8094
- "aria-current": S ? "page" : void 0,
8131
+ "aria-current": C ? "page" : void 0,
8095
8132
  "aria-label": `Page ${w.page}`,
8096
8133
  onClick: () => v(w),
8097
8134
  children: String(w.page)
8098
8135
  }
8099
8136
  );
8100
- return /* @__PURE__ */ n("span", { "data-testid": D, children: O }, C);
8137
+ return /* @__PURE__ */ n("span", { "data-testid": D, children: B }, T);
8101
8138
  }) }),
8102
8139
  l && /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
8103
8140
  /* @__PURE__ */ n(G, { variant: "p2", textColor: "secondary", children: b }),
@@ -8137,7 +8174,7 @@ const zd = ({
8137
8174
  searchCountry: "Ҷустуҷӯи кишвар",
8138
8175
  notFound: "Ҳеҷ чиз ёфт нашуд"
8139
8176
  }
8140
- }, Ps = L(N({}, Bo), {
8177
+ }, Ps = F(N({}, Bo), {
8141
8178
  BY: "Беларусь"
8142
8179
  }), zs = {
8143
8180
  ext: "иловагӣ",
@@ -8960,7 +8997,7 @@ const ao = ke.forwardRef(
8960
8997
  return /* @__PURE__ */ k("div", { className: "relative flex-1", children: [
8961
8998
  /* @__PURE__ */ n(
8962
8999
  ft,
8963
- L(N({
9000
+ F(N({
8964
9001
  mask: r,
8965
9002
  alwaysShowMask: !0,
8966
9003
  className: m(e, {
@@ -8977,9 +9014,9 @@ const ao = ke.forwardRef(
8977
9014
  onPaste: (v) => {
8978
9015
  v.preventDefault();
8979
9016
  const p = v.clipboardData.getData("text/plain"), b = v.target, I = ze.parsePhoneNumber(p);
8980
- let T = "";
8981
- !(I != null && I.country) && (p.startsWith("+8") || p.startsWith("8")) ? T = `+${p.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && p.startsWith("7") ? T = `+${p}` : T = p, b.value = T;
8982
- const A = L(N({}, v), {
9017
+ let S = "";
9018
+ !(I != null && I.country) && (p.startsWith("+8") || p.startsWith("8")) ? S = `+${p.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && p.startsWith("7") ? S = `+${p}` : S = p, b.value = S;
9019
+ const A = F(N({}, v), {
8983
9020
  target: b
8984
9021
  });
8985
9022
  o == null || o(A);
@@ -9089,12 +9126,12 @@ const Kr = Pt(
9089
9126
  if (!d)
9090
9127
  return o;
9091
9128
  const I = d.toLowerCase();
9092
- return o.filter(({ value: T, label: A }) => {
9129
+ return o.filter(({ value: S, label: A }) => {
9093
9130
  var D;
9094
- if (!T)
9131
+ if (!S)
9095
9132
  return !1;
9096
- const w = ((D = s[T]) == null ? void 0 : D.toLowerCase()) || A.toLowerCase(), M = ze.getCountryCallingCode(T);
9097
- return w.includes(I) || T.toLowerCase().includes(I) || `+${M}`.includes(I);
9133
+ const w = ((D = s[S]) == null ? void 0 : D.toLowerCase()) || A.toLowerCase(), M = ze.getCountryCallingCode(S);
9134
+ return w.includes(I) || S.toLowerCase().includes(I) || `+${M}`.includes(I);
9098
9135
  });
9099
9136
  }, [o, d]);
9100
9137
  return /* @__PURE__ */ k(ve, { children: [
@@ -9158,11 +9195,11 @@ const Kr = Pt(
9158
9195
  }
9159
9196
  ) }),
9160
9197
  /* @__PURE__ */ n(dt, { children: /* @__PURE__ */ k(Mt, { className: "h-60", children: [
9161
- p.length > 0 && /* @__PURE__ */ n(ct, { children: p.map(({ value: I, label: T }) => I ? /* @__PURE__ */ n(
9198
+ p.length > 0 && /* @__PURE__ */ n(ct, { children: p.map(({ value: I, label: S }) => I ? /* @__PURE__ */ n(
9162
9199
  Kr,
9163
9200
  {
9164
9201
  country: I,
9165
- countryName: s[I] || T,
9202
+ countryName: s[I] || S,
9166
9203
  onChange: v
9167
9204
  },
9168
9205
  I
@@ -9238,11 +9275,11 @@ const Kr = Pt(
9238
9275
  className: "h-60",
9239
9276
  onWheel: (I) => I.stopPropagation(),
9240
9277
  children: [
9241
- p.length > 0 && /* @__PURE__ */ n(ct, { children: p.map(({ value: I, label: T }) => I ? /* @__PURE__ */ n(
9278
+ p.length > 0 && /* @__PURE__ */ n(ct, { children: p.map(({ value: I, label: S }) => I ? /* @__PURE__ */ n(
9242
9279
  Kr,
9243
9280
  {
9244
9281
  country: I,
9245
- countryName: s[I] || T,
9282
+ countryName: s[I] || S,
9246
9283
  onChange: v
9247
9284
  },
9248
9285
  I
@@ -9257,7 +9294,7 @@ const Kr = Pt(
9257
9294
  ] })
9258
9295
  ] });
9259
9296
  }
9260
- ), Bd = ke.forwardRef(
9297
+ ), Od = ke.forwardRef(
9261
9298
  (v, h) => {
9262
9299
  var p = v, {
9263
9300
  className: e,
@@ -9289,7 +9326,7 @@ const Kr = Pt(
9289
9326
  "isLoading"
9290
9327
  ]);
9291
9328
  var z, H;
9292
- const [b, I] = ke.useState(() => ""), [T, A] = ke.useState([]), [w, M] = ke.useState(u), D = (() => {
9329
+ const [b, I] = ke.useState(() => ""), [S, A] = ke.useState([]), [w, M] = ke.useState(u), D = (() => {
9293
9330
  switch (c) {
9294
9331
  case "en":
9295
9332
  return zo;
@@ -9301,40 +9338,40 @@ const Kr = Pt(
9301
9338
  default:
9302
9339
  return Ps;
9303
9340
  }
9304
- })(), S = Ls[c];
9341
+ })(), C = Ls[c];
9305
9342
  ke.useEffect(() => {
9306
9343
  if (s && s !== "+7") {
9307
- const F = ze.parsePhoneNumber(s);
9308
- if (!(F != null && F.country) && (s.startsWith("+8") || s.startsWith("8"))) {
9344
+ const L = ze.parsePhoneNumber(s);
9345
+ if (!(L != null && L.country) && (s.startsWith("+8") || s.startsWith("8"))) {
9309
9346
  t == null || t(`+${s.replace(/\D/g, "").replace("8", "7")}`);
9310
9347
  return;
9311
9348
  }
9312
9349
  }
9313
- const B = Gr(s, u), R = Xt(B);
9314
- M(B), I(R[0]), A(R);
9350
+ const O = Gr(s, u), R = Xt(O);
9351
+ M(O), I(R[0]), A(R);
9315
9352
  }, [u, t, s]);
9316
- const C = (B) => {
9317
- const R = _s(B), F = Gr(
9353
+ const T = (O) => {
9354
+ const R = _s(O), L = Gr(
9318
9355
  R,
9319
9356
  w != null ? w : u
9320
9357
  );
9321
- if (F !== w) {
9322
- const K = Xt(F);
9323
- M(F), I(K[0]), A(K);
9358
+ if (L !== w) {
9359
+ const K = Xt(L);
9360
+ M(L), I(K[0]), A(K);
9324
9361
  }
9325
9362
  t == null || t(R);
9326
9363
  const P = ze.isPossiblePhoneNumber(R);
9327
9364
  f == null || f(P);
9328
- }, O = (B) => {
9329
- if (!B)
9365
+ }, B = (O) => {
9366
+ if (!O)
9330
9367
  return;
9331
- r == null || r(B), M(B);
9332
- const R = Xt(B);
9368
+ r == null || r(O), M(O);
9369
+ const R = Xt(O);
9333
9370
  I(R[0]), A(R);
9334
- const F = `+${ze.getCountryCallingCode(B)}`;
9335
- t == null || t(F);
9336
- }, W = (B) => {
9337
- I(B);
9371
+ const L = `+${ze.getCountryCallingCode(O)}`;
9372
+ t == null || t(L);
9373
+ }, W = (O) => {
9374
+ I(O);
9338
9375
  };
9339
9376
  return /* @__PURE__ */ k(ve, { children: [
9340
9377
  o && /* @__PURE__ */ n(G, { variant: d === "md" ? "p2" : "p3", weight: "medium", className: "mb-1.5", children: o }),
@@ -9360,16 +9397,16 @@ const Kr = Pt(
9360
9397
  countrySelectProps: {
9361
9398
  defaultCountry: (H = w != null ? w : u) != null ? H : mt,
9362
9399
  locale: D,
9363
- translations: S,
9400
+ translations: C,
9364
9401
  inputSize: d,
9365
- onCountrySelect: O
9402
+ onCountrySelect: B
9366
9403
  },
9367
9404
  inputComponent: ao,
9368
9405
  labels: D,
9369
9406
  smartCaret: !1,
9370
- onChange: C,
9407
+ onChange: T,
9371
9408
  mask: b,
9372
- masks: T,
9409
+ masks: S,
9373
9410
  inputSize: d,
9374
9411
  isLoading: x,
9375
9412
  onMaskChange: W,
@@ -9437,7 +9474,7 @@ function js(o) {
9437
9474
  const i = t === 100;
9438
9475
  return /* @__PURE__ */ n(
9439
9476
  Lr.Root,
9440
- L(N({
9477
+ F(N({
9441
9478
  "data-slot": "progress",
9442
9479
  className: m(
9443
9480
  "relative h-2 w-full overflow-hidden rounded-full bg-default-background",
@@ -9524,7 +9561,7 @@ const Us = be(
9524
9561
  "onBlur",
9525
9562
  "data-testid"
9526
9563
  ]);
9527
- const b = o || !1, I = a || !1, T = y.useId(), A = s || `${T}-radio`;
9564
+ const b = o || !1, I = a || !1, S = y.useId(), A = s || `${S}-radio`;
9528
9565
  return /* @__PURE__ */ n(
9529
9566
  "label",
9530
9567
  {
@@ -9536,7 +9573,7 @@ const Us = be(
9536
9573
  children: /* @__PURE__ */ k("div", { className: "flex items-center gap-2.5", children: [
9537
9574
  /* @__PURE__ */ n(
9538
9575
  zt.Item,
9539
- L(N({
9576
+ F(N({
9540
9577
  className: m(
9541
9578
  Us({
9542
9579
  size: t,
@@ -9578,7 +9615,7 @@ const Ys = y.forwardRef((s, i) => {
9578
9615
  ),
9579
9616
  /* @__PURE__ */ n(
9580
9617
  zt.Root,
9581
- L(N({
9618
+ F(N({
9582
9619
  className: m("grid gap-1.5", e)
9583
9620
  }, a), {
9584
9621
  ref: i
@@ -9614,8 +9651,8 @@ function Js({ className: e }) {
9614
9651
  );
9615
9652
  }
9616
9653
  const Qs = y.forwardRef(
9617
- (T, I) => {
9618
- var A = T, {
9654
+ (S, I) => {
9655
+ var A = S, {
9619
9656
  value: e,
9620
9657
  defaultValue: t = 0,
9621
9658
  count: r = 5,
@@ -9652,18 +9689,18 @@ const Qs = y.forwardRef(
9652
9689
  "aria-label",
9653
9690
  "data-testid"
9654
9691
  ]);
9655
- const w = Math.max(Math.round(r), 1), M = e !== void 0, [D, S] = y.useState(
9692
+ const w = Math.max(Math.round(r), 1), M = e !== void 0, [D, C] = y.useState(
9656
9693
  () => nt(t, w)
9657
- ), [C, O] = y.useState(null), [W, z] = y.useState(
9694
+ ), [T, B] = y.useState(null), [W, z] = y.useState(
9658
9695
  nt(e != null ? e : t, w) || 1
9659
- ), H = y.useRef([]), B = nt(
9696
+ ), H = y.useRef([]), O = nt(
9660
9697
  M ? e : D,
9661
9698
  w
9662
- ), R = C != null ? C : B, F = typeof i == "number" ? i : Zs[i], P = (j) => {
9699
+ ), R = T != null ? T : O, L = typeof i == "number" ? i : Zs[i], P = (j) => {
9663
9700
  if (o)
9664
9701
  return;
9665
- const q = nt(j, w), Y = a && q === B ? 0 : q;
9666
- M || S(Y), Y !== B && (g == null || g(Y));
9702
+ const q = nt(j, w), Y = a && q === O ? 0 : q;
9703
+ M || C(Y), Y !== O && (g == null || g(Y));
9667
9704
  }, K = (j) => {
9668
9705
  var Y;
9669
9706
  const q = nt(j, w) || 1;
@@ -9689,11 +9726,11 @@ const Qs = y.forwardRef(
9689
9726
  j.key === "End" && (j.preventDefault(), K(w));
9690
9727
  }
9691
9728
  }, re = (j) => {
9692
- O(null), h == null || h(j);
9729
+ B(null), h == null || h(j);
9693
9730
  };
9694
9731
  return /* @__PURE__ */ n(
9695
9732
  "div",
9696
- L(N({
9733
+ F(N({
9697
9734
  ref: I
9698
9735
  }, b), {
9699
9736
  role: "radiogroup",
@@ -9709,7 +9746,7 @@ const Qs = y.forwardRef(
9709
9746
  "data-testid": p,
9710
9747
  children: Array.from({ length: w }, (j, q) => {
9711
9748
  var ye;
9712
- const Y = q + 1, X = Y <= R, U = Y === B, fe = !o && (B ? Y === B : Y === W) ? 0 : -1;
9749
+ const Y = q + 1, X = Y <= R, U = Y === O, fe = !o && (O ? Y === O : Y === W) ? 0 : -1;
9713
9750
  return /* @__PURE__ */ n(
9714
9751
  "button",
9715
9752
  {
@@ -9726,10 +9763,10 @@ const Qs = y.forwardRef(
9726
9763
  "inline-flex shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent p-0 outline-none transition-colors disabled:cursor-not-allowed",
9727
9764
  u
9728
9765
  ),
9729
- style: { fontSize: F },
9766
+ style: { fontSize: L },
9730
9767
  onClick: () => P(Y),
9731
9768
  onFocus: () => z(Y),
9732
- onMouseEnter: () => !o && O(Y),
9769
+ onMouseEnter: () => !o && B(Y),
9733
9770
  onKeyDown: (pe) => J(pe, Y),
9734
9771
  children: /* @__PURE__ */ n(
9735
9772
  Js,
@@ -9819,7 +9856,7 @@ const qs = be(
9819
9856
  ] });
9820
9857
  return /* @__PURE__ */ n(
9821
9858
  Bt.Item,
9822
- L(N({
9859
+ F(N({
9823
9860
  ref: l,
9824
9861
  className: m(so({ size: o }), e),
9825
9862
  "data-testid": i
@@ -9858,7 +9895,7 @@ const Xs = y.forwardRef(
9858
9895
  a !== void 0 && x(a);
9859
9896
  }, [a]), /* @__PURE__ */ n(
9860
9897
  Bt.Root,
9861
- L(N({
9898
+ F(N({
9862
9899
  ref: u,
9863
9900
  type: "single",
9864
9901
  className: m(qs({ size: t }), e),
@@ -9913,7 +9950,7 @@ const el = y.forwardRef(
9913
9950
  ] });
9914
9951
  return /* @__PURE__ */ n(
9915
9952
  "button",
9916
- L(N({
9953
+ F(N({
9917
9954
  ref: c,
9918
9955
  className: m(
9919
9956
  so({
@@ -9932,7 +9969,7 @@ const el = y.forwardRef(
9932
9969
  }
9933
9970
  );
9934
9971
  el.displayName = "SingleSegment";
9935
- function Od({
9972
+ function Vd({
9936
9973
  steps: e,
9937
9974
  currentStep: t,
9938
9975
  className: r,
@@ -10077,7 +10114,7 @@ const tl = be(
10077
10114
  return /* @__PURE__ */ k("div", { className: "flex items-center gap-2.5", children: [
10078
10115
  /* @__PURE__ */ n(
10079
10116
  tr.Root,
10080
- L(N({
10117
+ F(N({
10081
10118
  className: m(
10082
10119
  tl({
10083
10120
  size: t,
@@ -10253,66 +10290,66 @@ function dl({
10253
10290
  }) {
10254
10291
  const h = e.getRowModel().rows, [v, p] = de(() => /* @__PURE__ */ new Set()), b = le(null), I = le(/* @__PURE__ */ new Map());
10255
10292
  return ge(() => () => {
10256
- I.current.forEach((T) => {
10257
- window.clearTimeout(T);
10293
+ I.current.forEach((S) => {
10294
+ window.clearTimeout(S);
10258
10295
  }), I.current.clear();
10259
10296
  }, []), ge(() => {
10260
10297
  if (!d) {
10261
10298
  b.current = null, p(/* @__PURE__ */ new Set()), I.current.forEach((M) => window.clearTimeout(M)), I.current.clear();
10262
10299
  return;
10263
10300
  }
10264
- const T = h.map((M) => M.id);
10301
+ const S = h.map((M) => M.id);
10265
10302
  if (b.current === null) {
10266
- b.current = new Set(T);
10303
+ b.current = new Set(S);
10267
10304
  return;
10268
10305
  }
10269
- const A = b.current, w = T.filter((M) => !A.has(M));
10270
- b.current = new Set(T), w.length !== 0 && (p((M) => {
10306
+ const A = b.current, w = S.filter((M) => !A.has(M));
10307
+ b.current = new Set(S), w.length !== 0 && (p((M) => {
10271
10308
  const D = new Set(M);
10272
- return w.forEach((S) => D.add(S)), D;
10309
+ return w.forEach((C) => D.add(C)), D;
10273
10310
  }), w.forEach((M) => {
10274
10311
  const D = I.current.get(M);
10275
10312
  D && window.clearTimeout(D);
10276
- const S = window.setTimeout(() => {
10277
- p((C) => {
10278
- if (!C.has(M))
10279
- return C;
10280
- const O = new Set(C);
10281
- return O.delete(M), O;
10313
+ const C = window.setTimeout(() => {
10314
+ p((T) => {
10315
+ if (!T.has(M))
10316
+ return T;
10317
+ const B = new Set(T);
10318
+ return B.delete(M), B;
10282
10319
  }), I.current.delete(M);
10283
10320
  }, 1400);
10284
- I.current.set(M, S);
10321
+ I.current.set(M, C);
10285
10322
  }));
10286
- }, [d, h]), h.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": x, children: /* @__PURE__ */ n("tr", { "data-testid": g, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, o), className: "p-0", children: /* @__PURE__ */ n(co, { locale: l }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": x, children: h.map((T) => {
10287
- var z, H, B, R;
10288
- const A = T.index, w = (z = s == null ? void 0 : s(T.original, A)) != null ? z : {}, M = typeof w.onClick == "function", D = w.onClick, S = d && v.has(T.id), C = (F) => {
10323
+ }, [d, h]), h.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": x, children: /* @__PURE__ */ n("tr", { "data-testid": g, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, o), className: "p-0", children: /* @__PURE__ */ n(co, { locale: l }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": x, children: h.map((S) => {
10324
+ var z, H, O, R;
10325
+ const A = S.index, w = (z = s == null ? void 0 : s(S.original, A)) != null ? z : {}, M = typeof w.onClick == "function", D = w.onClick, C = d && v.has(S.id), T = (L) => {
10289
10326
  var P;
10290
- (P = w.onKeyDown) == null || P.call(w, F), M && (F.key !== "Enter" && F.key !== " " || (F.preventDefault(), F.currentTarget.click()));
10291
- }, O = m(
10327
+ (P = w.onKeyDown) == null || P.call(w, L), M && (L.key !== "Enter" && L.key !== " " || (L.preventDefault(), L.currentTarget.click()));
10328
+ }, B = m(
10292
10329
  "group transition-colors",
10293
- S && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10330
+ C && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
10294
10331
  // Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
10295
10332
  (s || M) && "cursor-pointer",
10296
10333
  w.className
10297
10334
  ), W = m(
10298
10335
  "bg-background group-hover:bg-[#F6F6F7]",
10299
- S && "bg-primary/5 group-hover:bg-primary/10"
10336
+ C && "bg-primary/5 group-hover:bg-primary/10"
10300
10337
  );
10301
10338
  return /* @__PURE__ */ n(
10302
10339
  "tr",
10303
- L(N({
10340
+ F(N({
10304
10341
  "data-testid": g
10305
10342
  }, w), {
10306
- "data-new": S ? "true" : void 0,
10307
- className: O,
10343
+ "data-new": C ? "true" : void 0,
10344
+ className: B,
10308
10345
  onClick: D,
10309
- onKeyDown: M ? C : w.onKeyDown,
10346
+ onKeyDown: M ? T : w.onKeyDown,
10310
10347
  role: M ? (H = w.role) != null ? H : "button" : w.role,
10311
- tabIndex: M ? (B = w.tabIndex) != null ? B : 0 : w.tabIndex,
10348
+ tabIndex: M ? (O = w.tabIndex) != null ? O : 0 : w.tabIndex,
10312
10349
  "aria-label": M ? (R = w["aria-label"]) != null ? R : "Открыть строку" : w["aria-label"],
10313
- children: T.getVisibleCells().map((F) => {
10350
+ children: S.getVisibleCells().map((L) => {
10314
10351
  var $, fe, ye;
10315
- const P = F.column.columnDef.meta, K = T.original, J = A === h.length - 1, re = sn(F.column.columnDef.cell, F.getContext()), j = ($ = P == null ? void 0 : P.cellStyle) == null ? void 0 : $.call(P, K, A), q = (fe = P == null ? void 0 : P.cellClassName) == null ? void 0 : fe.call(P, K, A), Y = gr(P == null ? void 0 : P.align), X = xr(P == null ? void 0 : P.fixed, F.column.id, u), U = yr(P == null ? void 0 : P.fixed, F.column.id, f, c);
10352
+ const P = L.column.columnDef.meta, K = S.original, J = A === h.length - 1, re = sn(L.column.columnDef.cell, L.getContext()), j = ($ = P == null ? void 0 : P.cellStyle) == null ? void 0 : $.call(P, K, A), q = (fe = P == null ? void 0 : P.cellClassName) == null ? void 0 : fe.call(P, K, A), Y = gr(P == null ? void 0 : P.align), X = xr(P == null ? void 0 : P.fixed, L.column.id, u), U = yr(P == null ? void 0 : P.fixed, L.column.id, f, c);
10316
10353
  return /* @__PURE__ */ n(
10317
10354
  "td",
10318
10355
  {
@@ -10326,7 +10363,7 @@ function dl({
10326
10363
  J && "border-b-0",
10327
10364
  ((P == null ? void 0 : P.fixed) === "left" || (P == null ? void 0 : P.fixed) === "right") && "sticky z-10"
10328
10365
  ),
10329
- style: L(N(N({
10366
+ style: F(N(N({
10330
10367
  width: P == null ? void 0 : P.width,
10331
10368
  minWidth: P == null ? void 0 : P.minWidth,
10332
10369
  maxWidth: P == null ? void 0 : P.maxWidth
@@ -10338,11 +10375,11 @@ function dl({
10338
10375
  }),
10339
10376
  children: re
10340
10377
  },
10341
- F.id
10378
+ L.id
10342
10379
  );
10343
10380
  })
10344
10381
  }),
10345
- T.id
10382
+ S.id
10346
10383
  );
10347
10384
  }) });
10348
10385
  }
@@ -10430,11 +10467,11 @@ function pl({
10430
10467
  scrollState: u
10431
10468
  }) {
10432
10469
  return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((c) => {
10433
- var S;
10434
- const d = c.column.columnDef.meta, x = c.column.getCanSort(), g = c.column.getIsSorted(), h = void 0, v = gr(d == null ? void 0 : d.align), p = xr(d == null ? void 0 : d.fixed, c.column.id, s), b = yr(d == null ? void 0 : d.fixed, c.column.id, l, u), I = typeof a == "number" ? `${a}px` : a, T = x ? c.column.getToggleSortingHandler() : void 0, A = c.isPlaceholder ? null : sn(c.column.columnDef.header, c.getContext()), w = t.findIndex((C, O) => $e(C, O) === c.column.id), M = w >= 0 ? t[w] : void 0, D = typeof (M == null ? void 0 : M.title) == "function" ? M.title({
10435
- sortColumns: r.map((C) => ({
10436
- column: { dataIndex: C.id, key: C.id, columnKey: C.id },
10437
- order: C.desc ? "descend" : "ascend"
10470
+ var C;
10471
+ const d = c.column.columnDef.meta, x = c.column.getCanSort(), g = c.column.getIsSorted(), h = void 0, v = gr(d == null ? void 0 : d.align), p = xr(d == null ? void 0 : d.fixed, c.column.id, s), b = yr(d == null ? void 0 : d.fixed, c.column.id, l, u), I = typeof a == "number" ? `${a}px` : a, S = x ? c.column.getToggleSortingHandler() : void 0, A = c.isPlaceholder ? null : sn(c.column.columnDef.header, c.getContext()), w = t.findIndex((T, B) => $e(T, B) === c.column.id), M = w >= 0 ? t[w] : void 0, D = typeof (M == null ? void 0 : M.title) == "function" ? M.title({
10472
+ sortColumns: r.map((T) => ({
10473
+ column: { dataIndex: T.id, key: T.id, columnKey: T.id },
10474
+ order: T.desc ? "descend" : "ascend"
10438
10475
  }))
10439
10476
  }) : A;
10440
10477
  return /* @__PURE__ */ n(
@@ -10453,17 +10490,17 @@ function pl({
10453
10490
  "group border-b border-default-background p-2",
10454
10491
  ((d == null ? void 0 : d.fixed) === "left" || (d == null ? void 0 : d.fixed) === "right") && "sticky z-20"
10455
10492
  ),
10456
- style: L(N(L(N(N({}, d == null ? void 0 : d.headerStyle), o && I !== void 0 ? { top: I } : {}), {
10493
+ style: F(N(F(N(N({}, d == null ? void 0 : d.headerStyle), o && I !== void 0 ? { top: I } : {}), {
10457
10494
  width: d == null ? void 0 : d.width,
10458
10495
  minWidth: d == null ? void 0 : d.minWidth,
10459
10496
  maxWidth: d == null ? void 0 : d.maxWidth
10460
10497
  }), p), {
10461
10498
  boxShadow: br(
10462
- (S = d == null ? void 0 : d.headerStyle) == null ? void 0 : S.boxShadow,
10499
+ (C = d == null ? void 0 : d.headerStyle) == null ? void 0 : C.boxShadow,
10463
10500
  b
10464
10501
  )
10465
10502
  }),
10466
- onClick: T,
10503
+ onClick: S,
10467
10504
  children: /* @__PURE__ */ k("div", { className: m("flex w-full items-center gap-2", ol(d == null ? void 0 : d.align)), children: [
10468
10505
  D,
10469
10506
  x && /* @__PURE__ */ n("span", { title: h, className: "inline-flex items-center", children: /* @__PURE__ */ n(
@@ -10513,22 +10550,22 @@ function gl({
10513
10550
  var W;
10514
10551
  qr(t.subscribe, t.getVersion, t.getVersion);
10515
10552
  const o = r.current, { rowSelection: a, selectAllMode: i } = o, s = (z) => {
10516
- var H, B;
10517
- return !!((B = (H = a == null ? void 0 : a.getCheckboxProps) == null ? void 0 : H.call(a, z)) != null && B.disabled);
10553
+ var H, O;
10554
+ return !!((O = (H = a == null ? void 0 : a.getCheckboxProps) == null ? void 0 : H.call(a, z)) != null && O.disabled);
10518
10555
  }, l = (z) => {
10519
- const H = new Set(z.map((B) => String(B)));
10520
- return e.getCoreRowModel().rows.filter((B) => H.has(B.id)).map((B) => B.original);
10521
- }, u = e.getRowModel().rows, f = u.filter((z) => !s(z.original)).map((z) => z.id), c = f.reduce((z, H) => t.isSelected(H) ? z + 1 : z, 0), d = f.length > 0 && c === f.length, x = c > 0 && !d, g = d ? !0 : x ? "indeterminate" : !1, h = ((W = a == null ? void 0 : a.allRowKeys) != null ? W : []).map((z) => String(z)), v = h.length > 0 ? h : f, p = v.reduce((z, H) => t.isSelected(H) ? z + 1 : z, 0), b = v.length > 0 && p === v.length, I = p > 0 && !b, T = b ? !0 : I ? "indeterminate" : !1, A = (z, H, B) => {
10556
+ const H = new Set(z.map((O) => String(O)));
10557
+ return e.getCoreRowModel().rows.filter((O) => H.has(O.id)).map((O) => O.original);
10558
+ }, u = e.getRowModel().rows, f = u.filter((z) => !s(z.original)).map((z) => z.id), c = f.reduce((z, H) => t.isSelected(H) ? z + 1 : z, 0), d = f.length > 0 && c === f.length, x = c > 0 && !d, g = d ? !0 : x ? "indeterminate" : !1, h = ((W = a == null ? void 0 : a.allRowKeys) != null ? W : []).map((z) => String(z)), v = h.length > 0 ? h : f, p = v.reduce((z, H) => t.isSelected(H) ? z + 1 : z, 0), b = v.length > 0 && p === v.length, I = p > 0 && !b, S = b ? !0 : I ? "indeterminate" : !1, A = (z, H, O) => {
10522
10559
  var K, J;
10523
- const R = r.current, F = t.getKeys(), P = H ? Array.from(new Map([...F, ...z].map((re) => [String(re), re])).values()) : F.filter((re) => !new Set(z.map((j) => String(j))).has(String(re)));
10524
- R.isControlled || (t.setKeys(P), R.setInternalSelectedRowKeys(P)), (J = (K = R.rowSelection) == null ? void 0 : K.onChange) == null || J.call(K, P, l(P), { type: B });
10560
+ const R = r.current, L = t.getKeys(), P = H ? Array.from(new Map([...L, ...z].map((re) => [String(re), re])).values()) : L.filter((re) => !new Set(z.map((j) => String(j))).has(String(re)));
10561
+ R.isControlled || (t.setKeys(P), R.setInternalSelectedRowKeys(P)), (J = (K = R.rowSelection) == null ? void 0 : K.onChange) == null || J.call(K, P, l(P), { type: O });
10525
10562
  };
10526
- return /* @__PURE__ */ n(cr, { checked: i === "all" ? T : g, onCheckedChange: i === "all" ? (z) => {
10527
- var F, P;
10528
- const H = z === !0, B = r.current, R = (P = (F = B.rowSelection) == null ? void 0 : F.allRowKeys) != null && P.length ? B.rowSelection.allRowKeys : u.map((K) => B.getRowKeyValue(K.original, K.index));
10563
+ return /* @__PURE__ */ n(cr, { checked: i === "all" ? S : g, onCheckedChange: i === "all" ? (z) => {
10564
+ var L, P;
10565
+ const H = z === !0, O = r.current, R = (P = (L = O.rowSelection) == null ? void 0 : L.allRowKeys) != null && P.length ? O.rowSelection.allRowKeys : u.map((K) => O.getRowKeyValue(K.original, K.index));
10529
10566
  A(R != null ? R : [], H, "all");
10530
10567
  } : (z) => {
10531
- const H = z === !0, B = r.current, R = u.filter((F) => !s(F.original)).map((F) => B.getRowKeyValue(F.original, F.index));
10568
+ const H = z === !0, O = r.current, R = u.filter((L) => !s(L.original)).map((L) => O.getRowKeyValue(L.original, L.index));
10532
10569
  A(R, H, "page");
10533
10570
  }, "aria-label": i === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": i === "all" ? "table-select-all" : "table-select-page" });
10534
10571
  }
@@ -10569,17 +10606,17 @@ function bl({
10569
10606
  disabled: u,
10570
10607
  checked: a,
10571
10608
  onCheckedChange: (h) => {
10572
- var H, B;
10609
+ var H, O;
10573
10610
  const v = o.current, p = h === !0;
10574
10611
  if (u)
10575
10612
  return;
10576
- const b = v.getRowKeyValue(i, t.index), I = String(b), T = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = T.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === I), M = A == null ? -1 : T.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === A), D = v.rowSelectionShiftKeyRef.current && w >= 0 && M >= 0, S = D ? T.slice(Math.min(M, w), Math.max(M, w) + 1).filter((R) => {
10577
- var F, P, K;
10578
- return !((K = (P = (F = v.rowSelection) == null ? void 0 : F.getCheckboxProps) == null ? void 0 : P.call(F, R.original)) != null && K.disabled);
10579
- }).map((R) => v.getRowKeyValue(R.original, R.index)) : [b], C = new Set(S.map((R) => String(R))), O = r.getKeys(), W = p ? Array.from(new Map([...O, ...S].map((R) => [String(R), R])).values()) : O.filter((R) => !C.has(String(R)));
10613
+ const b = v.getRowKeyValue(i, t.index), I = String(b), S = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = S.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === I), M = A == null ? -1 : S.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === A), D = v.rowSelectionShiftKeyRef.current && w >= 0 && M >= 0, C = D ? S.slice(Math.min(M, w), Math.max(M, w) + 1).filter((R) => {
10614
+ var L, P, K;
10615
+ return !((K = (P = (L = v.rowSelection) == null ? void 0 : L.getCheckboxProps) == null ? void 0 : P.call(L, R.original)) != null && K.disabled);
10616
+ }).map((R) => v.getRowKeyValue(R.original, R.index)) : [b], T = new Set(C.map((R) => String(R))), B = r.getKeys(), W = p ? Array.from(new Map([...B, ...C].map((R) => [String(R), R])).values()) : B.filter((R) => !T.has(String(R)));
10580
10617
  v.isControlled || (r.setKeys(W), v.setInternalSelectedRowKeys(W));
10581
- const z = D && S.length > 1 ? "range" : "row";
10582
- (B = (H = v.rowSelection) == null ? void 0 : H.onChange) == null || B.call(H, W, f(W), { type: z }), v.lastRowSelectionKeyRef.current = b, v.rowSelectionShiftKeyRef.current = !1;
10618
+ const z = D && C.length > 1 ? "range" : "row";
10619
+ (O = (H = v.rowSelection) == null ? void 0 : H.onChange) == null || O.call(H, W, f(W), { type: z }), v.lastRowSelectionKeyRef.current = b, v.rowSelectionShiftKeyRef.current = !1;
10583
10620
  },
10584
10621
  "aria-label": `Выбрать строку ${s}`,
10585
10622
  "data-testid": `table-select-row-${s}`
@@ -10609,7 +10646,7 @@ function xl({
10609
10646
  u && "border-b-0",
10610
10647
  ((d == null ? void 0 : d.fixed) === "left" || (d == null ? void 0 : d.fixed) === "right") && "sticky z-10 bg-background"
10611
10648
  ),
10612
- style: L(N({
10649
+ style: F(N({
10613
10650
  width: d == null ? void 0 : d.width,
10614
10651
  minWidth: d == null ? void 0 : d.minWidth,
10615
10652
  maxWidth: d == null ? void 0 : d.maxWidth
@@ -10659,7 +10696,7 @@ function vl(e, t) {
10659
10696
  function wl(e, t) {
10660
10697
  return e.dataSource === t.dataSource && e.columns === t.columns && e.columnsCount === t.columnsCount && e.rowsSignature === t.rowsSignature && e.onRow === t.onRow && e.locale === t.locale && e.stickyOffsets === t.stickyOffsets && e.fixedShadowEdges === t.fixedShadowEdges && e.scrollState === t.scrollState && e.highlightNewRows === t.highlightNewRows && e.tbodyDataTestId === t.tbodyDataTestId && e.rowDataTestId === t.rowDataTestId;
10661
10698
  }
10662
- function Vd({
10699
+ function _d({
10663
10700
  className: e,
10664
10701
  tableClassName: t,
10665
10702
  scrollContainerClassName: r,
@@ -10679,16 +10716,16 @@ function Vd({
10679
10716
  rowKey: p,
10680
10717
  rowSelection: b,
10681
10718
  highlightNewRows: I = !1,
10682
- pagination: T,
10719
+ pagination: S,
10683
10720
  showHeader: A = !0,
10684
10721
  showSorterTooltip: w = !0,
10685
10722
  onRow: M,
10686
10723
  locale: D,
10687
- tbodyDataTestId: S,
10688
- rowDataTestId: C = "item"
10724
+ tbodyDataTestId: C,
10725
+ rowDataTestId: T = "item"
10689
10726
  }) {
10690
10727
  var kr, Tr, Rr;
10691
- const O = (kr = d != null ? d : x) != null ? kr : [], W = !!i, z = Math.max(1, Math.floor(s != null ? s : 10)), H = le(null), B = le(null), R = le(!1), F = le(!1), P = le(null), K = !!b, J = (Tr = b == null ? void 0 : b.selectAllMode) != null ? Tr : (b == null ? void 0 : b.selectAllScope) === "all" ? "all" : "page", [re, j] = de(
10728
+ const B = (kr = d != null ? d : x) != null ? kr : [], W = !!i, z = Math.max(1, Math.floor(s != null ? s : 10)), H = le(null), O = le(null), R = le(!1), L = le(!1), P = le(null), K = !!b, J = (Tr = b == null ? void 0 : b.selectAllMode) != null ? Tr : (b == null ? void 0 : b.selectAllScope) === "all" ? "all" : "page", [re, j] = de(
10692
10729
  () => {
10693
10730
  var ee;
10694
10731
  return (ee = b == null ? void 0 : b.defaultSelectedRowKeys) != null ? ee : [];
@@ -10731,7 +10768,7 @@ function Vd({
10731
10768
  selectAllMode: J,
10732
10769
  getRowKeyValue: te,
10733
10770
  setInternalSelectedRowKeys: j,
10734
- rowSelectionShiftKeyRef: F,
10771
+ rowSelectionShiftKeyRef: L,
10735
10772
  lastRowSelectionKeyRef: P
10736
10773
  });
10737
10774
  ie.current = {
@@ -10740,7 +10777,7 @@ function Vd({
10740
10777
  selectAllMode: J,
10741
10778
  getRowKeyValue: te,
10742
10779
  setInternalSelectedRowKeys: j,
10743
- rowSelectionShiftKeyRef: F,
10780
+ rowSelectionShiftKeyRef: L,
10744
10781
  lastRowSelectionKeyRef: P
10745
10782
  }, St(() => {
10746
10783
  var ee;
@@ -10789,8 +10826,8 @@ function Vd({
10789
10826
  ]), [Te, vr] = de(() => {
10790
10827
  const ee = c.findIndex((Yt) => Yt.defaultSortOrder), ue = ee >= 0 ? c[ee] : void 0, oe = ue == null ? void 0 : ue.defaultSortOrder, Ue = ue ? $e(ue, ee) : void 0;
10791
10828
  return !Ue || !oe ? [] : [{ id: Ue, desc: oe === "descend" }];
10792
- }), Re = Vo(L(N({
10793
- data: O,
10829
+ }), Re = Vo(F(N({
10830
+ data: B,
10794
10831
  columns: Ce,
10795
10832
  state: { sorting: Te },
10796
10833
  onSortingChange: (ee) => {
@@ -10813,7 +10850,7 @@ function Vd({
10813
10850
  const oe = ee == null ? void 0 : ee[p];
10814
10851
  return oe != null ? String(oe) : String(ue);
10815
10852
  } : void 0
10816
- })), Ut = ae(() => Re.getRowModel().rows.map((ee) => ee.id).join("\0"), [O, Te, Re]), Ge = A && u && (a === "window" || a === "auto" && (l == null ? void 0 : l.y) == null), go = u && !Ge, bo = ae(() => {
10853
+ })), Ut = ae(() => Re.getRowModel().rows.map((ee) => ee.id).join("\0"), [B, Te, Re]), Ge = A && u && (a === "window" || a === "auto" && (l == null ? void 0 : l.y) == null), go = u && !Ge, bo = ae(() => {
10817
10854
  if (Ge)
10818
10855
  return {
10819
10856
  top: o != null ? o : 0
@@ -10830,7 +10867,7 @@ function Vd({
10830
10867
  fe,
10831
10868
  ye
10832
10869
  ]), wr = ae(() => Y.map((ee) => String(ee)).join("\0"), [Y]), Nr = ae(() => ({
10833
- dataSource: O,
10870
+ dataSource: B,
10834
10871
  columns: c,
10835
10872
  columnsCount: $.length,
10836
10873
  rowsSignature: Ut,
@@ -10840,10 +10877,10 @@ function Vd({
10840
10877
  fixedShadowEdges: pe,
10841
10878
  scrollState: Ke,
10842
10879
  highlightNewRows: I,
10843
- tbodyDataTestId: S,
10844
- rowDataTestId: C
10880
+ tbodyDataTestId: C,
10881
+ rowDataTestId: T
10845
10882
  }), [
10846
- O,
10883
+ B,
10847
10884
  c,
10848
10885
  $.length,
10849
10886
  Ut,
@@ -10853,8 +10890,8 @@ function Vd({
10853
10890
  pe,
10854
10891
  Ke,
10855
10892
  I,
10856
- S,
10857
- C
10893
+ C,
10894
+ T
10858
10895
  ]), Ir = le(null), je = Ir.current, yo = !!(je && je.selectedRowKeysSignature !== wr && wl(je.inputs, Nr)), Sr = je ? yo ? je.version : je.version + 1 : 0;
10859
10896
  St(() => {
10860
10897
  Ir.current = {
@@ -10864,7 +10901,7 @@ function Vd({
10864
10901
  };
10865
10902
  });
10866
10903
  const Cr = Q((ee) => {
10867
- const ue = H.current, oe = B.current;
10904
+ const ue = H.current, oe = O.current;
10868
10905
  !ue || !oe || R.current || (R.current = !0, ee === "body" ? oe.scrollLeft = ue.scrollLeft : ue.scrollLeft = oe.scrollLeft, window.requestAnimationFrame(() => {
10869
10906
  R.current = !1;
10870
10907
  }));
@@ -10882,7 +10919,7 @@ function Vd({
10882
10919
  Ge && /* @__PURE__ */ n(
10883
10920
  "div",
10884
10921
  {
10885
- ref: B,
10922
+ ref: O,
10886
10923
  className: m(
10887
10924
  "no-scrollbar sticky z-30 overflow-x-auto rounded-t-lg bg-background"
10888
10925
  ),
@@ -10970,7 +11007,7 @@ function Vd({
10970
11007
  ul,
10971
11008
  {
10972
11009
  table: Re,
10973
- dataSource: O,
11010
+ dataSource: B,
10974
11011
  columns: c,
10975
11012
  columnsCount: $.length,
10976
11013
  rowsSignature: Ut,
@@ -10981,8 +11018,8 @@ function Vd({
10981
11018
  fixedShadowEdges: pe,
10982
11019
  scrollState: Ke,
10983
11020
  highlightNewRows: I,
10984
- tbodyDataTestId: S,
10985
- rowDataTestId: C
11021
+ tbodyDataTestId: C,
11022
+ rowDataTestId: T
10986
11023
  }
10987
11024
  )
10988
11025
  ]
@@ -11074,7 +11111,7 @@ function Nl({
11074
11111
  `card_skeleton_${l}`
11075
11112
  )) });
11076
11113
  }
11077
- function _d({
11114
+ function Wd({
11078
11115
  items: e,
11079
11116
  loading: t,
11080
11117
  loadingRows: r,
@@ -11092,10 +11129,10 @@ function _d({
11092
11129
  linesCount: 6
11093
11130
  }
11094
11131
  ) }) : c.length === 0 ? /* @__PURE__ */ n("div", { className: o, "aria-busy": t, children: /* @__PURE__ */ n(co, { locale: a }) }) : /* @__PURE__ */ n("div", { className: m("flex flex-col gap-2", o), "aria-busy": t, children: c.map((d, x) => {
11095
- var T, A, w, M, D;
11096
- const g = (T = s == null ? void 0 : s(d, x)) != null ? T : {}, h = typeof g.onClick == "function", v = (A = i == null ? void 0 : i(d, x)) != null ? A : x, p = g.onClick, b = (S) => {
11097
- var C;
11098
- (C = g.onKeyDown) == null || C.call(g, S), h && (S.key !== "Enter" && S.key !== " " || (S.preventDefault(), S.currentTarget.click()));
11132
+ var S, A, w, M, D;
11133
+ const g = (S = s == null ? void 0 : s(d, x)) != null ? S : {}, h = typeof g.onClick == "function", v = (A = i == null ? void 0 : i(d, x)) != null ? A : x, p = g.onClick, b = (C) => {
11134
+ var T;
11135
+ (T = g.onKeyDown) == null || T.call(g, C), h && (C.key !== "Enter" && C.key !== " " || (C.preventDefault(), C.currentTarget.click()));
11099
11136
  }, I = m(
11100
11137
  h && "cursor-pointer hover:bg-[#F6F6F7]",
11101
11138
  h && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
@@ -11103,7 +11140,7 @@ function _d({
11103
11140
  );
11104
11141
  return /* @__PURE__ */ n(
11105
11142
  Ye,
11106
- L(N({
11143
+ F(N({
11107
11144
  bordered: !0,
11108
11145
  radius: "lg",
11109
11146
  padding: "xs"
@@ -11120,7 +11157,7 @@ function _d({
11120
11157
  );
11121
11158
  }) });
11122
11159
  }
11123
- function Wd({
11160
+ function Hd({
11124
11161
  title: e,
11125
11162
  controls: t,
11126
11163
  onChange: r,
@@ -11214,7 +11251,7 @@ const Il = be(
11214
11251
  },
11215
11252
  defaultVariants: { size: "md", variant: "default" }
11216
11253
  }
11217
- ), Hd = _e.Root, Cl = y.forwardRef((i, a) => {
11254
+ ), Gd = _e.Root, Cl = y.forwardRef((i, a) => {
11218
11255
  var s = i, { size: e = "md", variant: t = "default", className: r } = s, o = V(s, ["size", "variant", "className"]);
11219
11256
  return /* @__PURE__ */ n(
11220
11257
  _e.List,
@@ -11262,7 +11299,7 @@ const kl = y.forwardRef(
11262
11299
  ), g = () => o ? y.isValidElement(o) ? o : /* @__PURE__ */ n(Z, { icon: o }) : null;
11263
11300
  return /* @__PURE__ */ k(
11264
11301
  _e.Trigger,
11265
- L(N({
11302
+ F(N({
11266
11303
  ref: f,
11267
11304
  className: x,
11268
11305
  disabled: s
@@ -11362,7 +11399,7 @@ const Rl = be(
11362
11399
  ] });
11363
11400
  return /* @__PURE__ */ n(
11364
11401
  "div",
11365
- L(N({
11402
+ F(N({
11366
11403
  ref: c,
11367
11404
  className: m(
11368
11405
  Rl({
@@ -11533,7 +11570,7 @@ function Yr(e) {
11533
11570
  const [r, o] = e.split(":").map(Number);
11534
11571
  return r >= 0 && r <= 23 && o >= 0 && o <= 59;
11535
11572
  }
11536
- function Gd({
11573
+ function Kd({
11537
11574
  time: e,
11538
11575
  onSelect: t,
11539
11576
  disabled: r = !1,
@@ -11617,7 +11654,7 @@ function Gd({
11617
11654
  function Ll(e, t) {
11618
11655
  return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
11619
11656
  }
11620
- function Kd({
11657
+ function jd({
11621
11658
  value: e,
11622
11659
  onTimeChange: t,
11623
11660
  placeholder: r = {
@@ -11634,43 +11671,43 @@ function Kd({
11634
11671
  "data-testid": c
11635
11672
  }) {
11636
11673
  const [d, x] = y.useState((e == null ? void 0 : e.from) || ""), [g, h] = y.useState((e == null ? void 0 : e.to) || ""), v = y.useRef((e == null ? void 0 : e.from) || ""), p = y.useRef((e == null ? void 0 : e.to) || ""), b = y.useMemo(() => {
11637
- const H = (J) => typeof J == "string", B = (J) => typeof J == "object" && J !== null;
11674
+ const H = (J) => typeof J == "string", O = (J) => typeof J == "object" && J !== null;
11638
11675
  return {
11639
11676
  hasAnyError: () => s ? H(s) ? !0 : !!(s.from || s.to) : !1,
11640
- hasFromError: () => H(s) ? !0 : B(s) && !!s.from,
11641
- hasToError: () => H(s) ? !0 : B(s) && !!s.to,
11642
- getErrorText: () => H(s) ? s : B(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
11677
+ hasFromError: () => H(s) ? !0 : O(s) && !!s.from,
11678
+ hasToError: () => H(s) ? !0 : O(s) && !!s.to,
11679
+ getErrorText: () => H(s) ? s : O(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
11643
11680
  };
11644
- }, [s]), { hasAnyError: I, hasFromError: T, hasToError: A, getErrorText: w } = b;
11681
+ }, [s]), { hasAnyError: I, hasFromError: S, hasToError: A, getErrorText: w } = b;
11645
11682
  y.useEffect(() => {
11646
11683
  x((e == null ? void 0 : e.from) || ""), h((e == null ? void 0 : e.to) || ""), v.current = (e == null ? void 0 : e.from) || "", p.current = (e == null ? void 0 : e.to) || "";
11647
11684
  }, [e]);
11648
- const M = (H, B) => {
11649
- const R = H.replace(/\D/g, ""), F = B.replace(/\D/g, ""), P = Ll(H, B);
11650
- return R.length === 0 ? "" : P === "removed" && R.length === 2 && F.length === 3 ? `${R}:` : P === "removed" && R.length === 2 && F.length === 2 && B.includes(":") ? R[0] : P === "removed" && R.length === 1 ? R : P === "added" && R.length === 2 && F.length === 1 ? `${R}:` : R.length === 1 || R.length === 2 ? R : R.length <= 4 ? `${R.slice(0, 2)}:${R.slice(2)}` : `${R.slice(0, 2)}:${R.slice(2, 4)}`;
11685
+ const M = (H, O) => {
11686
+ const R = H.replace(/\D/g, ""), L = O.replace(/\D/g, ""), P = Ll(H, O);
11687
+ return R.length === 0 ? "" : P === "removed" && R.length === 2 && L.length === 3 ? `${R}:` : P === "removed" && R.length === 2 && L.length === 2 && O.includes(":") ? R[0] : P === "removed" && R.length === 1 ? R : P === "added" && R.length === 2 && L.length === 1 ? `${R}:` : R.length === 1 || R.length === 2 ? R : R.length <= 4 ? `${R.slice(0, 2)}:${R.slice(2)}` : `${R.slice(0, 2)}:${R.slice(2, 4)}`;
11651
11688
  }, D = (H) => {
11652
11689
  if (!H)
11653
11690
  return !0;
11654
11691
  if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(H))
11655
11692
  return !1;
11656
- const [R, F] = H.split(":").map(Number);
11657
- return R >= 0 && R <= 23 && F >= 0 && F <= 59;
11658
- }, S = (H, B) => {
11693
+ const [R, L] = H.split(":").map(Number);
11694
+ return R >= 0 && R <= 23 && L >= 0 && L <= 59;
11695
+ }, C = (H, O) => {
11659
11696
  const R = {
11660
11697
  from: H || void 0,
11661
- to: B || void 0
11698
+ to: O || void 0
11662
11699
  };
11663
11700
  !R.from && !R.to ? t == null || t(void 0) : t == null || t(R);
11664
- }, C = (H) => {
11665
- const B = M(H.target.value, v.current);
11666
- x(B), v.current = B, (B === "" || B.length === 5 && D(B)) && S(B, g);
11667
- }, O = (H) => {
11668
- const B = M(H.target.value, p.current);
11669
- h(B), p.current = B, (B === "" || B.length === 5 && D(B)) && S(d, B);
11701
+ }, T = (H) => {
11702
+ const O = M(H.target.value, v.current);
11703
+ x(O), v.current = O, (O === "" || O.length === 5 && D(O)) && C(O, g);
11704
+ }, B = (H) => {
11705
+ const O = M(H.target.value, p.current);
11706
+ h(O), p.current = O, (O === "" || O.length === 5 && D(O)) && C(d, O);
11670
11707
  }, W = (H) => {
11671
- f == null || f(H), d && !D(d) && (x(""), S("", g));
11708
+ f == null || f(H), d && !D(d) && (x(""), C("", g));
11672
11709
  }, z = (H) => {
11673
- f == null || f(H), g && !D(g) && (h(""), S(d, ""));
11710
+ f == null || f(H), g && !D(g) && (h(""), C(d, ""));
11674
11711
  };
11675
11712
  return /* @__PURE__ */ k("div", { className: m("w-full", a), children: [
11676
11713
  u && /* @__PURE__ */ n(
@@ -11709,7 +11746,7 @@ function Kd({
11709
11746
  {
11710
11747
  type: "text",
11711
11748
  value: d,
11712
- onChange: C,
11749
+ onChange: T,
11713
11750
  onBlur: W,
11714
11751
  placeholder: r.from,
11715
11752
  disabled: o,
@@ -11718,7 +11755,7 @@ function Kd({
11718
11755
  "font-graphik w-0 flex-1 border-none bg-transparent outline-none",
11719
11756
  "placeholder:text-muted-foreground",
11720
11757
  "[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
11721
- T() && "text-destructive",
11758
+ S() && "text-destructive",
11722
11759
  {
11723
11760
  "block h-auto p-0 text-[14px] leading-5": i === "md",
11724
11761
  "block h-auto p-0 text-[16px] leading-[22px]": i === "lg",
@@ -11740,7 +11777,7 @@ function Kd({
11740
11777
  {
11741
11778
  type: "text",
11742
11779
  value: g,
11743
- onChange: O,
11780
+ onChange: B,
11744
11781
  onBlur: z,
11745
11782
  placeholder: r.to,
11746
11783
  disabled: o,
@@ -11778,7 +11815,7 @@ function Kd({
11778
11815
  I() && /* @__PURE__ */ n(G, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: w() })
11779
11816
  ] });
11780
11817
  }
11781
- const jd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => {
11818
+ const Ud = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => {
11782
11819
  const a = r.active && !r.completed ? r.color : void 0;
11783
11820
  return /* @__PURE__ */ k("div", { className: "flex", children: [
11784
11821
  /* @__PURE__ */ k("div", { className: "relative mr-4 flex flex-col items-center", children: [
@@ -11857,7 +11894,7 @@ function ot(e, t, r) {
11857
11894
  function Pl(e, t) {
11858
11895
  return me(e, t);
11859
11896
  }
11860
- const Ud = Object.assign(Pl, {
11897
+ const $d = Object.assign(Pl, {
11861
11898
  success: (e, t) => {
11862
11899
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
11863
11900
  e,
@@ -11879,7 +11916,7 @@ const Ud = Object.assign(Pl, {
11879
11916
  children: o
11880
11917
  }
11881
11918
  ),
11882
- L(N({}, t), {
11919
+ F(N({}, t), {
11883
11920
  duration: 1 / 0,
11884
11921
  unstyled: !1
11885
11922
  })
@@ -11908,7 +11945,7 @@ const Ud = Object.assign(Pl, {
11908
11945
  children: o
11909
11946
  }
11910
11947
  ),
11911
- L(N({}, t), {
11948
+ F(N({}, t), {
11912
11949
  duration: 1 / 0,
11913
11950
  unstyled: !1
11914
11951
  })
@@ -11938,7 +11975,7 @@ const Ud = Object.assign(Pl, {
11938
11975
  children: o
11939
11976
  }
11940
11977
  ),
11941
- L(N({}, t), {
11978
+ F(N({}, t), {
11942
11979
  duration: 1 / 0,
11943
11980
  // Не скрываем автоматически
11944
11981
  unstyled: !1
@@ -11969,7 +12006,7 @@ const Ud = Object.assign(Pl, {
11969
12006
  children: o
11970
12007
  }
11971
12008
  ),
11972
- L(N({}, t), {
12009
+ F(N({}, t), {
11973
12010
  duration: 1 / 0,
11974
12011
  unstyled: !1
11975
12012
  })
@@ -11998,7 +12035,7 @@ const Ud = Object.assign(Pl, {
11998
12035
  children: o
11999
12036
  }
12000
12037
  ),
12001
- L(N({}, t), {
12038
+ F(N({}, t), {
12002
12039
  unstyled: !1
12003
12040
  })
12004
12041
  );
@@ -12025,7 +12062,7 @@ const Ud = Object.assign(Pl, {
12025
12062
  }, a));
12026
12063
  }
12027
12064
  });
12028
- function $d(t) {
12065
+ function Yd(t) {
12029
12066
  var e = V(t, []);
12030
12067
  return /* @__PURE__ */ n(
12031
12068
  Oo,
@@ -12058,7 +12095,7 @@ function $d(t) {
12058
12095
  }, e)
12059
12096
  );
12060
12097
  }
12061
- const Yd = Be.Provider, zl = 120, uo = y.createContext(null);
12098
+ const Zd = Be.Provider, zl = 120, uo = y.createContext(null);
12062
12099
  function Bl() {
12063
12100
  const [e, t] = y.useState(!1);
12064
12101
  return y.useEffect(() => {
@@ -12070,7 +12107,7 @@ function Bl() {
12070
12107
  return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
12071
12108
  }, []), e;
12072
12109
  }
12073
- function Zd(a) {
12110
+ function Jd(a) {
12074
12111
  var i = a, {
12075
12112
  open: e,
12076
12113
  defaultOpen: t,
@@ -12127,7 +12164,7 @@ const Vl = y.forwardRef(
12127
12164
  ]);
12128
12165
  return /* @__PURE__ */ n(Be.Portal, { children: /* @__PURE__ */ k(
12129
12166
  Be.Content,
12130
- L(N({
12167
+ F(N({
12131
12168
  ref: s,
12132
12169
  align: r,
12133
12170
  side: o,
@@ -12282,26 +12319,26 @@ function mo({
12282
12319
  const [h, v] = de(!1), p = le(null), b = le(0), I = Q(
12283
12320
  (R) => {
12284
12321
  var P;
12285
- const F = jt[g];
12322
+ const L = jt[g];
12286
12323
  if (e) {
12287
12324
  const K = e.split(",").map((j) => j.trim()), J = `.${(P = R.name.split(".").pop()) == null ? void 0 : P.toLowerCase()}`;
12288
12325
  if (!K.some(
12289
12326
  (j) => j === J || j.includes("*") && R.type.match(j.replace("*", ".*"))
12290
12327
  ))
12291
- return F.invalidFileType(K.join(F.typeSeparator));
12328
+ return L.invalidFileType(K.join(L.typeSeparator));
12292
12329
  }
12293
12330
  if (t && R.size > t) {
12294
12331
  const K = (t / 1024 / 1024).toFixed(2);
12295
- return F.maxFileSize(K);
12332
+ return L.maxFileSize(K);
12296
12333
  }
12297
12334
  return null;
12298
12335
  },
12299
12336
  [e, g, t]
12300
- ), T = Q(
12301
- (R, F) => {
12337
+ ), S = Q(
12338
+ (R, L) => {
12302
12339
  x == null || x({
12303
12340
  file: R,
12304
- fileList: F
12341
+ fileList: L
12305
12342
  });
12306
12343
  },
12307
12344
  [x]
@@ -12309,12 +12346,12 @@ function mo({
12309
12346
  (R) => E(null, null, function* () {
12310
12347
  if (!l)
12311
12348
  return;
12312
- let F = R.map(Wl);
12313
- for (const P of F) {
12314
- const K = L(N({}, P), {
12349
+ let L = R.map(Wl);
12350
+ for (const P of L) {
12351
+ const K = F(N({}, P), {
12315
12352
  status: "uploading"
12316
12353
  });
12317
- F = F.map((J) => J.uid === P.uid ? K : J), T(K, F);
12354
+ L = L.map((J) => J.uid === P.uid ? K : J), S(K, L);
12318
12355
  try {
12319
12356
  const J = new FormData();
12320
12357
  J.append(s, P.originFileObj);
@@ -12329,32 +12366,32 @@ function mo({
12329
12366
  body: J
12330
12367
  }), q = yield _l(j);
12331
12368
  if (!j.ok) {
12332
- const X = Jr(q, g) || j.statusText, U = L(N({}, K), {
12369
+ const X = Jr(q, g) || j.statusText, U = F(N({}, K), {
12333
12370
  status: "error",
12334
12371
  response: q,
12335
12372
  error: X
12336
12373
  });
12337
- F = F.map(($) => $.uid === P.uid ? U : $), T(U, F), i == null || i(X);
12374
+ L = L.map(($) => $.uid === P.uid ? U : $), S(U, L), i == null || i(X);
12338
12375
  continue;
12339
12376
  }
12340
- const Y = L(N({}, K), {
12377
+ const Y = F(N({}, K), {
12341
12378
  status: "done",
12342
12379
  response: q
12343
12380
  });
12344
- F = F.map((X) => X.uid === P.uid ? Y : X), T(Y, F);
12381
+ L = L.map((X) => X.uid === P.uid ? Y : X), S(Y, L);
12345
12382
  } catch (J) {
12346
- const re = Jr(J, g), j = L(N({}, K), {
12383
+ const re = Jr(J, g), j = F(N({}, K), {
12347
12384
  status: "error",
12348
12385
  error: re
12349
12386
  });
12350
- F = F.map((q) => q.uid === P.uid ? j : q), T(j, F), i == null || i(re);
12387
+ L = L.map((q) => q.uid === P.uid ? j : q), S(j, L), i == null || i(re);
12351
12388
  }
12352
12389
  }
12353
12390
  }),
12354
12391
  [
12355
12392
  l,
12356
12393
  f,
12357
- T,
12394
+ S,
12358
12395
  c,
12359
12396
  g,
12360
12397
  u,
@@ -12385,17 +12422,17 @@ function mo({
12385
12422
  ), D = Q(() => {
12386
12423
  var R;
12387
12424
  r || (R = p.current) == null || R.click();
12388
- }, [r]), S = Q(
12425
+ }, [r]), C = Q(
12389
12426
  (R) => {
12390
12427
  a == null || a(R);
12391
12428
  },
12392
12429
  [a]
12393
- ), C = Q(
12430
+ ), T = Q(
12394
12431
  (R) => {
12395
12432
  R.preventDefault(), R.stopPropagation(), b.current += 1, R.dataTransfer.items && R.dataTransfer.items.length > 0 && v(!0);
12396
12433
  },
12397
12434
  []
12398
- ), O = Q((R) => {
12435
+ ), B = Q((R) => {
12399
12436
  R.preventDefault(), R.stopPropagation(), b.current -= 1, b.current <= 0 && (b.current = 0, v(!1));
12400
12437
  }, []), W = Q((R) => {
12401
12438
  R.preventDefault(), R.stopPropagation();
@@ -12406,9 +12443,9 @@ function mo({
12406
12443
  [w]
12407
12444
  ), H = Q(
12408
12445
  (R = {}) => {
12409
- var F, P;
12410
- return L(N({}, R), {
12411
- role: (F = R.role) != null ? F : "button",
12446
+ var L, P;
12447
+ return F(N({}, R), {
12448
+ role: (L = R.role) != null ? L : "button",
12412
12449
  tabIndex: (P = R.tabIndex) != null ? P : r ? -1 : 0,
12413
12450
  "aria-disabled": r || R["aria-disabled"],
12414
12451
  onClick: (K) => {
@@ -12422,17 +12459,17 @@ function mo({
12422
12459
  });
12423
12460
  },
12424
12461
  [r, D]
12425
- ), B = Q(
12462
+ ), O = Q(
12426
12463
  (R = {}) => {
12427
- const F = H(R);
12428
- return L(N({}, F), {
12464
+ const L = H(R);
12465
+ return F(N({}, L), {
12429
12466
  onDragEnter: (P) => {
12430
12467
  var K;
12431
- (K = R.onDragEnter) == null || K.call(R, P), P.defaultPrevented || C(P);
12468
+ (K = R.onDragEnter) == null || K.call(R, P), P.defaultPrevented || T(P);
12432
12469
  },
12433
12470
  onDragLeave: (P) => {
12434
12471
  var K;
12435
- (K = R.onDragLeave) == null || K.call(R, P), P.defaultPrevented || O(P);
12472
+ (K = R.onDragLeave) == null || K.call(R, P), P.defaultPrevented || B(P);
12436
12473
  },
12437
12474
  onDragOver: (P) => {
12438
12475
  var K;
@@ -12444,22 +12481,22 @@ function mo({
12444
12481
  }
12445
12482
  });
12446
12483
  },
12447
- [H, C, O, W, z]
12484
+ [H, T, B, W, z]
12448
12485
  );
12449
12486
  return ae(
12450
12487
  () => ({
12451
12488
  isDragging: h,
12452
12489
  inputRef: p,
12453
12490
  handleInputChange: M,
12454
- handleDeleteFile: S,
12491
+ handleDeleteFile: C,
12455
12492
  handleTriggerClick: D,
12456
12493
  getTriggerProps: H,
12457
- getDropzoneProps: B
12494
+ getDropzoneProps: O
12458
12495
  }),
12459
12496
  [
12460
- B,
12497
+ O,
12461
12498
  H,
12462
- S,
12499
+ C,
12463
12500
  M,
12464
12501
  D,
12465
12502
  h
@@ -12487,18 +12524,18 @@ const po = y.forwardRef(
12487
12524
  dropzoneText: p,
12488
12525
  hint: b,
12489
12526
  buttonText: I,
12490
- errorText: T,
12527
+ errorText: S,
12491
12528
  locale: A = "ru",
12492
12529
  name: w,
12493
12530
  action: M,
12494
12531
  method: D,
12495
- data: S,
12496
- headers: C,
12497
- withCredentials: O,
12532
+ data: C,
12533
+ headers: T,
12534
+ withCredentials: B,
12498
12535
  onChange: W,
12499
12536
  "data-testId": z
12500
12537
  }, H) => {
12501
- const B = jt[A], R = p === void 0 ? B.dropzoneText : p, F = I === void 0 ? B.selectFile : I, {
12538
+ const O = jt[A], R = p === void 0 ? O.dropzoneText : p, L = I === void 0 ? O.selectFile : I, {
12502
12539
  isDragging: P,
12503
12540
  inputRef: K,
12504
12541
  handleInputChange: J,
@@ -12515,9 +12552,9 @@ const po = y.forwardRef(
12515
12552
  name: w,
12516
12553
  action: M,
12517
12554
  method: D,
12518
- data: S,
12519
- headers: C,
12520
- withCredentials: O,
12555
+ data: C,
12556
+ headers: T,
12557
+ withCredentials: B,
12521
12558
  onChange: W,
12522
12559
  locale: A
12523
12560
  }), q = (Y) => {
@@ -12548,7 +12585,7 @@ const po = y.forwardRef(
12548
12585
  (d.length === 0 || h) && /* @__PURE__ */ k("div", { className: "flex flex-col gap-1.5", children: [
12549
12586
  /* @__PURE__ */ k(
12550
12587
  "div",
12551
- L(N({}, j({
12588
+ F(N({}, j({
12552
12589
  className: m(
12553
12590
  `flex flex-${a} w-full ${d.length === 0 ? "h-full" : "h-auto"} items-${s} justify-${i} border-border hover:border-primary gap-2.5 rounded-xl border-1 border-dashed bg-white p-4 transition-colors duration-200`,
12554
12591
  !o && "cursor-pointer",
@@ -12570,11 +12607,11 @@ const po = y.forwardRef(
12570
12607
  children: R
12571
12608
  }
12572
12609
  ),
12573
- /* @__PURE__ */ n(G, { variant: "p2", textColor: "secondary", className: "text-center", children: B.dragHere })
12610
+ /* @__PURE__ */ n(G, { variant: "p2", textColor: "secondary", className: "text-center", children: O.dragHere })
12574
12611
  ] }),
12575
- T && /* @__PURE__ */ n(G, { variant: "p2", textColor: "destructive", className: "text-center", children: T })
12612
+ S && /* @__PURE__ */ n(G, { variant: "p2", textColor: "destructive", className: "text-center", children: S })
12576
12613
  ] }),
12577
- l && /* @__PURE__ */ n(ne, { variant: "dashed", size: "md", disabled: o, children: F })
12614
+ l && /* @__PURE__ */ n(ne, { variant: "dashed", size: "md", disabled: o, children: L })
12578
12615
  ]
12579
12616
  })
12580
12617
  ),
@@ -12634,7 +12671,7 @@ const po = y.forwardRef(
12634
12671
  onClick: ($) => {
12635
12672
  $.stopPropagation(), re(Y.id);
12636
12673
  },
12637
- "aria-label": `${B.deleteFile} ${Y.name}`
12674
+ "aria-label": `${O.deleteFile} ${Y.name}`
12638
12675
  }
12639
12676
  )
12640
12677
  ]
@@ -12667,7 +12704,7 @@ function Hl({
12667
12704
  children: p,
12668
12705
  className: b,
12669
12706
  onClick: I,
12670
- buttonProps: T
12707
+ buttonProps: S
12671
12708
  }) {
12672
12709
  const { inputRef: A, handleInputChange: w, handleTriggerClick: M, getTriggerProps: D } = mo({
12673
12710
  accept: t,
@@ -12701,7 +12738,7 @@ function Hl({
12701
12738
  ),
12702
12739
  e ? /* @__PURE__ */ n(
12703
12740
  kt,
12704
- L(N({}, D({
12741
+ F(N({}, D({
12705
12742
  className: b,
12706
12743
  onClick: I
12707
12744
  })), {
@@ -12709,11 +12746,11 @@ function Hl({
12709
12746
  })
12710
12747
  ) : /* @__PURE__ */ n(
12711
12748
  ne,
12712
- L(N({}, T), {
12713
- className: m(b, T == null ? void 0 : T.className),
12749
+ F(N({}, S), {
12750
+ className: m(b, S == null ? void 0 : S.className),
12714
12751
  disabled: a,
12715
- onClick: (S) => {
12716
- I == null || I(S), S.defaultPrevented || M();
12752
+ onClick: (C) => {
12753
+ I == null || I(C), C.defaultPrevented || M();
12717
12754
  },
12718
12755
  children: p != null ? p : jt[v].selectFile
12719
12756
  })
@@ -12766,19 +12803,19 @@ export {
12766
12803
  ra as CommandSeparator,
12767
12804
  na as CommandShortcut,
12768
12805
  Kr as CountrySelectOption,
12769
- Md as DatePicker,
12770
- Dd as DateRangePicker,
12771
- Cd as DefaultCustomizableCarousel,
12772
- Ed as Dialog,
12806
+ Dd as DatePicker,
12807
+ Ed as DateRangePicker,
12808
+ kd as DefaultCustomizableCarousel,
12809
+ Ad as Dialog,
12773
12810
  he as DialogBase,
12774
- Fd as DialogClose,
12811
+ Ld as DialogClose,
12775
12812
  Ns as DialogContent,
12776
12813
  Is as DialogHeader,
12777
12814
  oo as DialogOverlay,
12778
12815
  ws as DialogPortal,
12779
- Td as DialogPrimitive,
12816
+ Rd as DialogPrimitive,
12780
12817
  Ss as DialogTitle,
12781
- Ad as DialogTrigger,
12818
+ Fd as DialogTrigger,
12782
12819
  fs as Divider,
12783
12820
  ys as Drawer,
12784
12821
  Xn as DrawerBody,
@@ -12799,7 +12836,7 @@ export {
12799
12836
  Pa as EmblaCalendarCard,
12800
12837
  yd as EmblaCalendarStrip,
12801
12838
  At as FlagComponent,
12802
- kd as HeadlessCarousel,
12839
+ Td as HeadlessCarousel,
12803
12840
  Z as Icon,
12804
12841
  ud as IconBanks,
12805
12842
  fd as IconDocument,
@@ -12816,10 +12853,10 @@ export {
12816
12853
  xn as MOBILE_BREAKPOINT,
12817
12854
  ft as MaskedInput,
12818
12855
  Ga as MultiSelect,
12819
- Ld as NumericTimeline,
12820
- Pd as OtpInput,
12821
- zd as Pagination,
12822
- Bd as PhoneInput,
12856
+ Pd as NumericTimeline,
12857
+ zd as OtpInput,
12858
+ Bd as Pagination,
12859
+ Od as PhoneInput,
12823
12860
  io as Pointline,
12824
12861
  Qe as Popover,
12825
12862
  gn as PopoverAnchor,
@@ -12846,24 +12883,24 @@ export {
12846
12883
  Sd as SimpleCarousel,
12847
12884
  el as SingleSegment,
12848
12885
  We as Spinner,
12849
- Od as Stepper,
12886
+ Vd as Stepper,
12850
12887
  nl as Switch,
12851
- Vd as Table,
12852
- _d as TableCards,
12853
- Wd as TableSettings,
12854
- Hd as Tabs,
12888
+ _d as Table,
12889
+ Wd as TableCards,
12890
+ Hd as TableSettings,
12891
+ Gd as Tabs,
12855
12892
  Tl as TabsContent,
12856
12893
  Cl as TabsList,
12857
12894
  kl as TabsTrigger,
12858
12895
  Ml as Tag,
12859
12896
  El as Textarea,
12860
- Gd as TimePicker,
12861
- Kd as TimeRangePicker,
12862
- jd as Timeline,
12863
- $d as Toaster,
12864
- Zd as Tooltip,
12897
+ Kd as TimePicker,
12898
+ jd as TimeRangePicker,
12899
+ Ud as Timeline,
12900
+ Yd as Toaster,
12901
+ Jd as Tooltip,
12865
12902
  Vl as TooltipContent,
12866
- Yd as TooltipProvider,
12903
+ Zd as TooltipProvider,
12867
12904
  Ol as TooltipTrigger,
12868
12905
  G as Typography,
12869
12906
  Gl as Uploader,
@@ -12872,6 +12909,7 @@ export {
12872
12909
  Aa as formatMonthGenitive,
12873
12910
  Zt as formatMonthLong,
12874
12911
  bn as formatWeekdayShort,
12912
+ Cd as getComboboxScrollState,
12875
12913
  Ct as getThreeMonthsAround,
12876
12914
  Ya as indicatorVariants,
12877
12915
  _s as normalizePhoneInput,
@@ -12882,12 +12920,12 @@ export {
12882
12920
  tl as switchVariants,
12883
12921
  Rl as tagVariants,
12884
12922
  rl as thumbVariants,
12885
- Ud as toast,
12923
+ $d as toast,
12886
12924
  Pr as typographyVariants,
12887
12925
  _n as useCarousel,
12888
12926
  Ht as useCarouselContext,
12889
12927
  pt as useComboboxPrimitiveContext,
12890
- Rd as useDialogBaseCtx,
12928
+ Md as useDialogBaseCtx,
12891
12929
  Oa as useScheduleCalendar,
12892
12930
  Id as useScheduleSync,
12893
12931
  mo as useUploader