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