konsolpro-custom-ui 0.0.421 → 0.0.422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var T = (e, t, r) => new Promise((a, o) => {
|
|
|
35
35
|
}, l = (u) => u.done ? a(u.value) : Promise.resolve(u.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 N, Fragment as be } from "react/jsx-runtime";
|
|
39
39
|
import * as ct from "@radix-ui/react-accordion";
|
|
40
40
|
import * as ke from "react";
|
|
41
41
|
import v, { lazy as sr, Suspense as lr, useMemo as ne, useState as oe, useCallback as $, createContext as Ot, useContext as _t, useEffect as fe, useRef as ce, createElement as fa, useLayoutEffect as ma, forwardRef as pa, useImperativeHandle as Qr, memo as Xr } from "react";
|
|
@@ -647,7 +647,7 @@ function Vl(i) {
|
|
|
647
647
|
"visibleButton"
|
|
648
648
|
]);
|
|
649
649
|
const f = r != null ? r : {}, { className: l } = f, u = B(f, ["className"]);
|
|
650
|
-
return /* @__PURE__ */ n(ct.Header, { className: "flex w-full", children: /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ n(ct.Header, { className: "flex w-full", children: /* @__PURE__ */ N(
|
|
651
651
|
ct.Trigger,
|
|
652
652
|
F(w({
|
|
653
653
|
"data-slot": "accordion-trigger",
|
|
@@ -881,7 +881,7 @@ const ln = ge(
|
|
|
881
881
|
}
|
|
882
882
|
}, ee = v.forwardRef(
|
|
883
883
|
(m, h) => {
|
|
884
|
-
var
|
|
884
|
+
var I = m, {
|
|
885
885
|
className: e,
|
|
886
886
|
variant: t = "primary",
|
|
887
887
|
size: r = "md",
|
|
@@ -897,7 +897,7 @@ const ln = ge(
|
|
|
897
897
|
forceState: g,
|
|
898
898
|
"data-testid": x,
|
|
899
899
|
onClick: b
|
|
900
|
-
} =
|
|
900
|
+
} = I, y = B(I, [
|
|
901
901
|
"className",
|
|
902
902
|
"variant",
|
|
903
903
|
"size",
|
|
@@ -924,7 +924,7 @@ const ln = ge(
|
|
|
924
924
|
R()
|
|
925
925
|
)
|
|
926
926
|
}
|
|
927
|
-
), S = () => l ? c ? E() : /* @__PURE__ */ n(U, w({ icon: l }, f)) : null, A = /* @__PURE__ */
|
|
927
|
+
), S = () => l ? c ? E() : /* @__PURE__ */ n(U, w({ icon: l }, f)) : null, A = /* @__PURE__ */ N(be, { children: [
|
|
928
928
|
s === "start" && S(),
|
|
929
929
|
c ? /* @__PURE__ */ n("div", { className: "invisible", children: u }) : u,
|
|
930
930
|
c && !l && E(),
|
|
@@ -1014,11 +1014,11 @@ const Lr = ge("", {
|
|
|
1014
1014
|
]);
|
|
1015
1015
|
const [c, d] = oe(!1), g = ne(() => i ? typeof i == "boolean" ? {} : i : null, [i]), x = $(
|
|
1016
1016
|
(h) => T(null, null, function* () {
|
|
1017
|
-
var
|
|
1017
|
+
var I, M, C, k, R;
|
|
1018
1018
|
if (!g)
|
|
1019
1019
|
return;
|
|
1020
1020
|
h.preventDefault(), h.stopPropagation(), h.nativeEvent.stopImmediatePropagation();
|
|
1021
|
-
const m = (C = (M = g.text) != null ? M : (
|
|
1021
|
+
const m = (C = (M = g.text) != null ? M : (I = h.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? C : "";
|
|
1022
1022
|
try {
|
|
1023
1023
|
yield navigator.clipboard.writeText(m), (k = g.onCopy) == null || k.call(g), d(!0), setTimeout(() => d(!1), (R = g.duration) != null ? R : 1500);
|
|
1024
1024
|
} catch (E) {
|
|
@@ -1029,7 +1029,7 @@ const Lr = ge("", {
|
|
|
1029
1029
|
let b = a;
|
|
1030
1030
|
t && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(t) && !a && (b = "bold");
|
|
1031
1031
|
const y = o;
|
|
1032
|
-
return g ? /* @__PURE__ */
|
|
1032
|
+
return g ? /* @__PURE__ */ N(
|
|
1033
1033
|
y,
|
|
1034
1034
|
F(w({
|
|
1035
1035
|
ref: l,
|
|
@@ -1091,15 +1091,15 @@ const dn = Ot({}), Fa = 384, cn = v.forwardRef(
|
|
|
1091
1091
|
const c = a !== void 0, [d, g] = v.useState(
|
|
1092
1092
|
i != null ? i : !1
|
|
1093
1093
|
), x = c ? a : d, b = v.useCallback(
|
|
1094
|
-
(
|
|
1095
|
-
c || g(
|
|
1094
|
+
(I) => {
|
|
1095
|
+
c || g(I), o == null || o(I);
|
|
1096
1096
|
},
|
|
1097
1097
|
[c, o]
|
|
1098
1098
|
), y = v.useCallback(() => {
|
|
1099
1099
|
b(!1);
|
|
1100
1100
|
}, [b]), h = v.useCallback(
|
|
1101
|
-
(
|
|
1102
|
-
r == null || r(
|
|
1101
|
+
(I) => {
|
|
1102
|
+
r == null || r(I);
|
|
1103
1103
|
},
|
|
1104
1104
|
[r]
|
|
1105
1105
|
), m = v.useMemo(
|
|
@@ -1265,7 +1265,7 @@ function La({
|
|
|
1265
1265
|
className: f,
|
|
1266
1266
|
triggerClassName: c
|
|
1267
1267
|
}) {
|
|
1268
|
-
return /* @__PURE__ */
|
|
1268
|
+
return /* @__PURE__ */ N(cn, { open: a, onOpenChange: o, children: [
|
|
1269
1269
|
/* @__PURE__ */ n(un, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1270
1270
|
ee,
|
|
1271
1271
|
{
|
|
@@ -1355,7 +1355,7 @@ const Oa = {
|
|
|
1355
1355
|
"data-testid"
|
|
1356
1356
|
]);
|
|
1357
1357
|
const b = Oa[e];
|
|
1358
|
-
return /* @__PURE__ */
|
|
1358
|
+
return /* @__PURE__ */ N(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
F(w({
|
|
1361
1361
|
ref: d,
|
|
@@ -1369,13 +1369,13 @@ const Oa = {
|
|
|
1369
1369
|
}, c), {
|
|
1370
1370
|
children: [
|
|
1371
1371
|
/* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n("div", { className: p("h-full w-1 rounded-lg", b.stripe) }) }),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1373
|
+
/* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */ N("div", { className: "flex w-full flex-col md:flex-rowitems-start justify-between gap-2", children: [
|
|
1374
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-row items-start gap-2", children: [
|
|
1375
1375
|
/* @__PURE__ */ n("div", { className: "flex h-5 w-4 items-center justify-center", children: /* @__PURE__ */ n(U, { icon: b.iconName, className: p(b.icon) }) }),
|
|
1376
|
-
/* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1377
|
+
/* @__PURE__ */ N("div", { className: "flex w-full gap-2", children: [
|
|
1378
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-0.5", children: [
|
|
1379
1379
|
/* @__PURE__ */ n(
|
|
1380
1380
|
_,
|
|
1381
1381
|
{
|
|
@@ -1386,7 +1386,7 @@ const Oa = {
|
|
|
1386
1386
|
),
|
|
1387
1387
|
r && /* @__PURE__ */ n(_, { variant: "p2", children: r })
|
|
1388
1388
|
] }),
|
|
1389
|
-
(o || s) && /* @__PURE__ */
|
|
1389
|
+
(o || s) && /* @__PURE__ */ N("div", { className: "flex flex-row items-start gap-1", children: [
|
|
1390
1390
|
o && /* @__PURE__ */ n("div", { className: "hidden gap-1 md:flex", children: o }),
|
|
1391
1391
|
s && /* @__PURE__ */ n(
|
|
1392
1392
|
ee,
|
|
@@ -1441,7 +1441,7 @@ const ut = v.forwardRef((a, r) => {
|
|
|
1441
1441
|
ut.displayName = Ie.displayName;
|
|
1442
1442
|
const Va = v.forwardRef((a, r) => {
|
|
1443
1443
|
var o = a, { className: e } = o, t = B(o, ["className"]);
|
|
1444
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ N("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1445
1445
|
/* @__PURE__ */ n(U, { icon: "SearchIcon" }),
|
|
1446
1446
|
/* @__PURE__ */ n(
|
|
1447
1447
|
Ie.Input,
|
|
@@ -1568,7 +1568,7 @@ const Le = v.forwardRef(
|
|
|
1568
1568
|
autoFocus: y,
|
|
1569
1569
|
suffix: h,
|
|
1570
1570
|
showErrorMessage: m = !0,
|
|
1571
|
-
onClear:
|
|
1571
|
+
onClear: I,
|
|
1572
1572
|
showStepperButtons: M = !1,
|
|
1573
1573
|
onStepDown: C,
|
|
1574
1574
|
onStepUp: k,
|
|
@@ -1602,7 +1602,7 @@ const Le = v.forwardRef(
|
|
|
1602
1602
|
"value",
|
|
1603
1603
|
"data-testid"
|
|
1604
1604
|
]);
|
|
1605
|
-
const P = v.useRef(null), D = E != null && E.toString().length > 0, O =
|
|
1605
|
+
const P = v.useRef(null), D = E != null && E.toString().length > 0, O = I && D && !d, W = D ? ja(String(E)) : null, V = Math.max(
|
|
1606
1606
|
Pr(A.step),
|
|
1607
1607
|
Pr(E)
|
|
1608
1608
|
), Y = v.useCallback(
|
|
@@ -1649,7 +1649,7 @@ const Le = v.forwardRef(
|
|
|
1649
1649
|
}
|
|
1650
1650
|
J(1);
|
|
1651
1651
|
}, [J, k]);
|
|
1652
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ N("div", { className: p(f && "w-full"), children: [
|
|
1653
1653
|
o && /* @__PURE__ */ n(
|
|
1654
1654
|
_,
|
|
1655
1655
|
{
|
|
@@ -1662,7 +1662,7 @@ const Le = v.forwardRef(
|
|
|
1662
1662
|
children: o
|
|
1663
1663
|
}
|
|
1664
1664
|
),
|
|
1665
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ N(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
1668
|
className: p(
|
|
@@ -1727,7 +1727,7 @@ const Le = v.forwardRef(
|
|
|
1727
1727
|
"data-testid": S
|
|
1728
1728
|
}, A)
|
|
1729
1729
|
),
|
|
1730
|
-
(x || a || l || i || h || O || M) && /* @__PURE__ */
|
|
1730
|
+
(x || a || l || i || h || O || M) && /* @__PURE__ */ N(
|
|
1731
1731
|
"div",
|
|
1732
1732
|
{
|
|
1733
1733
|
className: p(
|
|
@@ -1769,7 +1769,7 @@ const Le = v.forwardRef(
|
|
|
1769
1769
|
O && /* @__PURE__ */ n(
|
|
1770
1770
|
"div",
|
|
1771
1771
|
{
|
|
1772
|
-
onClick:
|
|
1772
|
+
onClick: I,
|
|
1773
1773
|
className: p(
|
|
1774
1774
|
"flex cursor-pointer items-center justify-center",
|
|
1775
1775
|
d && "cursor-not-allowed opacity-50"
|
|
@@ -1794,7 +1794,7 @@ const Le = v.forwardRef(
|
|
|
1794
1794
|
size: 16
|
|
1795
1795
|
}
|
|
1796
1796
|
),
|
|
1797
|
-
M && /* @__PURE__ */
|
|
1797
|
+
M && /* @__PURE__ */ N(
|
|
1798
1798
|
"div",
|
|
1799
1799
|
{
|
|
1800
1800
|
className: p("flex items-center gap-[2px]", {
|
|
@@ -2019,7 +2019,7 @@ function jl({
|
|
|
2019
2019
|
var E;
|
|
2020
2020
|
const [x, b] = v.useState(!1), [y, h] = v.useState(
|
|
2021
2021
|
t && ((E = e.find((S) => S.value === t)) == null ? void 0 : E.label) || ""
|
|
2022
|
-
), m = v.useRef(null),
|
|
2022
|
+
), m = v.useRef(null), I = v.useMemo(() => e.filter(
|
|
2023
2023
|
(S) => S.label.toLowerCase().includes(y.toLowerCase())
|
|
2024
2024
|
), [e, y]);
|
|
2025
2025
|
v.useEffect(() => {
|
|
@@ -2050,8 +2050,8 @@ function jl({
|
|
|
2050
2050
|
(A = m.current) == null || A.focus();
|
|
2051
2051
|
}, 0);
|
|
2052
2052
|
}, []);
|
|
2053
|
-
return /* @__PURE__ */ n(Je, { open: x, onOpenChange: R, children: /* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */
|
|
2053
|
+
return /* @__PURE__ */ n(Je, { open: x, onOpenChange: R, children: /* @__PURE__ */ N("div", { className: "relative", children: [
|
|
2054
|
+
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
2055
2055
|
u && /* @__PURE__ */ n(
|
|
2056
2056
|
_,
|
|
2057
2057
|
{
|
|
@@ -2085,9 +2085,9 @@ function jl({
|
|
|
2085
2085
|
{
|
|
2086
2086
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2087
2087
|
align: "start",
|
|
2088
|
-
children: /* @__PURE__ */ n(ut, { shouldFilter: !1, children: /* @__PURE__ */
|
|
2088
|
+
children: /* @__PURE__ */ n(ut, { shouldFilter: !1, children: /* @__PURE__ */ N(ft, { children: [
|
|
2089
2089
|
/* @__PURE__ */ n(Ft, { children: i }),
|
|
2090
|
-
/* @__PURE__ */ n(mt, { children:
|
|
2090
|
+
/* @__PURE__ */ n(mt, { children: I.map((S) => /* @__PURE__ */ n(
|
|
2091
2091
|
Gt,
|
|
2092
2092
|
{
|
|
2093
2093
|
value: S.value,
|
|
@@ -2160,7 +2160,7 @@ const Za = {
|
|
|
2160
2160
|
large: "-top-1.5 -right-0.5",
|
|
2161
2161
|
extra: "-top-1 -right-1"
|
|
2162
2162
|
}[r];
|
|
2163
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ N(
|
|
2164
2164
|
Ze.Root,
|
|
2165
2165
|
F(w({
|
|
2166
2166
|
ref: l,
|
|
@@ -2398,7 +2398,7 @@ const xo = ({
|
|
|
2398
2398
|
className: o
|
|
2399
2399
|
}) => {
|
|
2400
2400
|
const i = Ae(e).getTime() === Ae(/* @__PURE__ */ new Date()).getTime();
|
|
2401
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ N(
|
|
2402
2402
|
"button",
|
|
2403
2403
|
{
|
|
2404
2404
|
type: "button",
|
|
@@ -2412,7 +2412,7 @@ const xo = ({
|
|
|
2412
2412
|
),
|
|
2413
2413
|
children: [
|
|
2414
2414
|
r && /* @__PURE__ */ n("div", { className: "absolute right-1 top-1", children: r(e) }),
|
|
2415
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center justify-center gap-0.5", children: [
|
|
2416
2416
|
/* @__PURE__ */ n(_, { variant: "p3", weight: "medium", children: e.getDate() }),
|
|
2417
2417
|
/* @__PURE__ */ n(_, { variant: "p1", textColor: "secondary", children: i ? "Сегодня" : gn(e) })
|
|
2418
2418
|
] })
|
|
@@ -2442,9 +2442,9 @@ const xo = ({
|
|
|
2442
2442
|
t && "border-default bg-white border-1",
|
|
2443
2443
|
o
|
|
2444
2444
|
),
|
|
2445
|
-
children: /* @__PURE__ */
|
|
2446
|
-
/* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2445
|
+
children: /* @__PURE__ */ N("div", { className: "flex flex-col items-start justify-start gap-2", children: [
|
|
2446
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-center gap-1", children: [
|
|
2447
|
+
/* @__PURE__ */ N(_, { variant: "p3", weight: "medium", children: [
|
|
2448
2448
|
i,
|
|
2449
2449
|
" ",
|
|
2450
2450
|
l
|
|
@@ -2604,10 +2604,10 @@ const Kl = (f) => {
|
|
|
2604
2604
|
return () => clearTimeout(M);
|
|
2605
2605
|
}
|
|
2606
2606
|
}, [i, d, s, m]);
|
|
2607
|
-
const
|
|
2607
|
+
const I = ce([]);
|
|
2608
2608
|
return fe(() => {
|
|
2609
|
-
if (b.current && d.length > 0 &&
|
|
2610
|
-
const C =
|
|
2609
|
+
if (b.current && d.length > 0 && I.current.length > 0) {
|
|
2610
|
+
const C = I.current[0], k = d[0], R = d.findIndex((E) => E.getTime() === C.getTime());
|
|
2611
2611
|
if (R > 0)
|
|
2612
2612
|
b.current.scrollLeft += R * Be;
|
|
2613
2613
|
else if (R === -1) {
|
|
@@ -2621,8 +2621,8 @@ const Kl = (f) => {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
|
-
|
|
2625
|
-
}, [d]), /* @__PURE__ */
|
|
2624
|
+
I.current = [...d];
|
|
2625
|
+
}, [d]), /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
2626
2626
|
a && /* @__PURE__ */ n(
|
|
2627
2627
|
ee,
|
|
2628
2628
|
{
|
|
@@ -2750,7 +2750,7 @@ const ur = v.forwardRef(
|
|
|
2750
2750
|
clearable: y = !1,
|
|
2751
2751
|
onClear: h,
|
|
2752
2752
|
inlineSelect: m = !1
|
|
2753
|
-
} = k,
|
|
2753
|
+
} = k, I = B(k, [
|
|
2754
2754
|
"className",
|
|
2755
2755
|
"children",
|
|
2756
2756
|
"size",
|
|
@@ -2795,7 +2795,7 @@ const ur = v.forwardRef(
|
|
|
2795
2795
|
return G.observe(E.current), () => {
|
|
2796
2796
|
G.disconnect();
|
|
2797
2797
|
};
|
|
2798
|
-
}, [c, u, o, R]), /* @__PURE__ */
|
|
2798
|
+
}, [c, u, o, R]), /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
2799
2799
|
a && /* @__PURE__ */ n(
|
|
2800
2800
|
_,
|
|
2801
2801
|
{
|
|
@@ -2812,7 +2812,7 @@ const ur = v.forwardRef(
|
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
className: p("relative flex items-center", s && "w-full"),
|
|
2815
|
-
children: /* @__PURE__ */
|
|
2815
|
+
children: /* @__PURE__ */ N(
|
|
2816
2816
|
ye.Trigger,
|
|
2817
2817
|
F(w({
|
|
2818
2818
|
ref: M,
|
|
@@ -2843,7 +2843,7 @@ const ur = v.forwardRef(
|
|
|
2843
2843
|
],
|
|
2844
2844
|
e
|
|
2845
2845
|
)
|
|
2846
|
-
},
|
|
2846
|
+
}, I), {
|
|
2847
2847
|
"data-testid": x,
|
|
2848
2848
|
children: [
|
|
2849
2849
|
/* @__PURE__ */ n(
|
|
@@ -2851,8 +2851,8 @@ const ur = v.forwardRef(
|
|
|
2851
2851
|
{
|
|
2852
2852
|
ref: E,
|
|
2853
2853
|
className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${m ? "" : "pr-2"}`,
|
|
2854
|
-
children: R && (c != null && c.length) ? /* @__PURE__ */
|
|
2855
|
-
c.slice(0, S).map((z) => /* @__PURE__ */
|
|
2854
|
+
children: R && (c != null && c.length) ? /* @__PURE__ */ N("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
|
|
2855
|
+
c.slice(0, S).map((z) => /* @__PURE__ */ N(
|
|
2856
2856
|
"div",
|
|
2857
2857
|
{
|
|
2858
2858
|
className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
|
|
@@ -2888,14 +2888,14 @@ const ur = v.forwardRef(
|
|
|
2888
2888
|
},
|
|
2889
2889
|
z
|
|
2890
2890
|
)),
|
|
2891
|
-
c.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */
|
|
2891
|
+
c.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ N(_, { variant: "p2", children: [
|
|
2892
2892
|
"+",
|
|
2893
2893
|
c.length - S
|
|
2894
2894
|
] }) })
|
|
2895
2895
|
] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: t })
|
|
2896
2896
|
}
|
|
2897
2897
|
),
|
|
2898
|
-
/* @__PURE__ */
|
|
2898
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
2899
2899
|
u && /* @__PURE__ */ n(
|
|
2900
2900
|
"div",
|
|
2901
2901
|
{
|
|
@@ -2998,7 +2998,7 @@ const $l = ye.Group, Co = v.forwardRef((i, o) => {
|
|
|
2998
2998
|
"isMultiple",
|
|
2999
2999
|
"size"
|
|
3000
3000
|
]);
|
|
3001
|
-
return /* @__PURE__ */ n(ye.Portal, { children: /* @__PURE__ */
|
|
3001
|
+
return /* @__PURE__ */ n(ye.Portal, { children: /* @__PURE__ */ N(
|
|
3002
3002
|
ye.Content,
|
|
3003
3003
|
F(w({
|
|
3004
3004
|
ref: l,
|
|
@@ -3143,8 +3143,8 @@ const Yl = ({
|
|
|
3143
3143
|
const g = ne(() => {
|
|
3144
3144
|
const h = [];
|
|
3145
3145
|
for (let m = -12; m <= 12; m++) {
|
|
3146
|
-
const
|
|
3147
|
-
h.push({ value: zr(
|
|
3146
|
+
const I = nr(new Date(s.getFullYear(), s.getMonth(), 1), m);
|
|
3147
|
+
h.push({ value: zr(I), label: Xt(I), date: I });
|
|
3148
3148
|
}
|
|
3149
3149
|
return h;
|
|
3150
3150
|
}, []), x = ne(() => {
|
|
@@ -3157,16 +3157,16 @@ const Yl = ({
|
|
|
3157
3157
|
if (!m)
|
|
3158
3158
|
return;
|
|
3159
3159
|
d(h);
|
|
3160
|
-
const
|
|
3161
|
-
f(
|
|
3160
|
+
const I = m.date;
|
|
3161
|
+
f(I), r && r(At(I)), t == null || t(I);
|
|
3162
3162
|
}, y = ne(() => {
|
|
3163
3163
|
if (a && a.length > 0) {
|
|
3164
|
-
const h = Math.floor(a.length / 2), m = a[h],
|
|
3165
|
-
return Xt(
|
|
3164
|
+
const h = Math.floor(a.length / 2), m = a[h], I = new Date(m.year, m.month, 1);
|
|
3165
|
+
return Xt(I);
|
|
3166
3166
|
}
|
|
3167
3167
|
return Xt(u);
|
|
3168
3168
|
}, [a, u]);
|
|
3169
|
-
return /* @__PURE__ */
|
|
3169
|
+
return /* @__PURE__ */ N(To, { value: x, onValueChange: b, children: [
|
|
3170
3170
|
/* @__PURE__ */ n(
|
|
3171
3171
|
ur,
|
|
3172
3172
|
{
|
|
@@ -3200,8 +3200,8 @@ function Zl({
|
|
|
3200
3200
|
JSON.stringify(s) !== JSON.stringify(h) && l(h), r == null || r(y);
|
|
3201
3201
|
}, [r, s]), g = $((y) => {
|
|
3202
3202
|
if (l(y), y.length > 0) {
|
|
3203
|
-
const h = Math.floor(y.length / 2), m = y[h],
|
|
3204
|
-
f({ date:
|
|
3203
|
+
const h = Math.floor(y.length / 2), m = y[h], I = new Date(m.year, m.month, 1);
|
|
3204
|
+
f({ date: I, timestamp: Date.now(), mode: "monthStart" });
|
|
3205
3205
|
}
|
|
3206
3206
|
}, []), x = $(() => {
|
|
3207
3207
|
f(void 0);
|
|
@@ -3270,8 +3270,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3270
3270
|
e
|
|
3271
3271
|
)
|
|
3272
3272
|
}, u), {
|
|
3273
|
-
children: /* @__PURE__ */
|
|
3274
|
-
g && /* @__PURE__ */
|
|
3273
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-start gap-3 md:justify-between", children: [
|
|
3274
|
+
g && /* @__PURE__ */ N("div", { className: "flex-shrink-0", children: [
|
|
3275
3275
|
/* @__PURE__ */ n(
|
|
3276
3276
|
"img",
|
|
3277
3277
|
{
|
|
@@ -3291,8 +3291,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
)
|
|
3293
3293
|
] }),
|
|
3294
|
-
/* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3294
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col items-start gap-3 md:flex-row md:justify-between md:gap-1", children: [
|
|
3295
|
+
/* @__PURE__ */ N("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
3296
3296
|
/* @__PURE__ */ n(_, { variant: "p3", weight: "medium", children: r }),
|
|
3297
3297
|
a
|
|
3298
3298
|
] }),
|
|
@@ -3311,7 +3311,7 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3311
3311
|
)
|
|
3312
3312
|
] })
|
|
3313
3313
|
})
|
|
3314
|
-
) : /* @__PURE__ */
|
|
3314
|
+
) : /* @__PURE__ */ N(
|
|
3315
3315
|
$e,
|
|
3316
3316
|
F(w({
|
|
3317
3317
|
ref: f,
|
|
@@ -3327,8 +3327,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3327
3327
|
)
|
|
3328
3328
|
}, u), {
|
|
3329
3329
|
children: [
|
|
3330
|
-
/* @__PURE__ */
|
|
3331
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-3", children: [
|
|
3331
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
3332
3332
|
/* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between", children: /* @__PURE__ */ n(
|
|
3333
3333
|
_,
|
|
3334
3334
|
{
|
|
@@ -3342,7 +3342,7 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3342
3342
|
] }),
|
|
3343
3343
|
o && /* @__PURE__ */ n("div", { className: "z-11", children: o })
|
|
3344
3344
|
] }),
|
|
3345
|
-
g && /* @__PURE__ */
|
|
3345
|
+
g && /* @__PURE__ */ N(be, { children: [
|
|
3346
3346
|
/* @__PURE__ */ n(
|
|
3347
3347
|
"div",
|
|
3348
3348
|
{
|
|
@@ -3466,7 +3466,7 @@ function Lo(e) {
|
|
|
3466
3466
|
onCheckedChange: u,
|
|
3467
3467
|
ref: f,
|
|
3468
3468
|
"data-testid": c
|
|
3469
|
-
} = e, d = a === "md" ? 16 : 24, g = v.useId(), x = l || g, b = i || !1, [y, h] = v.useState(!1), m = s !== void 0,
|
|
3469
|
+
} = e, d = a === "md" ? 16 : 24, g = v.useId(), x = l || g, b = i || !1, [y, h] = v.useState(!1), m = s !== void 0, I = m ? s : y, M = () => I === !0 ? "checked" : I === "indeterminate" ? "indeterminate" : "unchecked", C = (R) => {
|
|
3470
3470
|
m && u ? u(R) : m || h(R);
|
|
3471
3471
|
}, k = /* @__PURE__ */ n(
|
|
3472
3472
|
Dr.Root,
|
|
@@ -3478,16 +3478,16 @@ function Lo(e) {
|
|
|
3478
3478
|
r || (o ? void 0 : t)
|
|
3479
3479
|
),
|
|
3480
3480
|
disabled: b,
|
|
3481
|
-
checked:
|
|
3481
|
+
checked: I,
|
|
3482
3482
|
onCheckedChange: C,
|
|
3483
3483
|
"data-testid": c,
|
|
3484
|
-
children: /* @__PURE__ */
|
|
3485
|
-
|
|
3486
|
-
|
|
3484
|
+
children: /* @__PURE__ */ N(Dr.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
3485
|
+
I === "indeterminate" && /* @__PURE__ */ n("div", { className: Fo({ size: a }) }),
|
|
3486
|
+
I === !0 && /* @__PURE__ */ n(U, { icon: "DoneIcon", size: d, className: "text-white" })
|
|
3487
3487
|
] })
|
|
3488
3488
|
}
|
|
3489
3489
|
);
|
|
3490
|
-
return o ? /* @__PURE__ */
|
|
3490
|
+
return o ? /* @__PURE__ */ N("div", { className: p("items-top flex flex-row space-x-2", t), children: [
|
|
3491
3491
|
/* @__PURE__ */ n("div", { className: p(a === "md" && "pt-0.5"), children: k }),
|
|
3492
3492
|
/* @__PURE__ */ n(
|
|
3493
3493
|
"label",
|
|
@@ -3535,7 +3535,7 @@ const or = v.forwardRef(
|
|
|
3535
3535
|
return (E = m.current) == null ? void 0 : E.focus();
|
|
3536
3536
|
});
|
|
3537
3537
|
}, [y]);
|
|
3538
|
-
const [
|
|
3538
|
+
const [I, M] = v.useState(""), C = v.useCallback((E) => {
|
|
3539
3539
|
if (typeof E == "string")
|
|
3540
3540
|
return E;
|
|
3541
3541
|
if (v.isValidElement(E)) {
|
|
@@ -3543,11 +3543,11 @@ const or = v.forwardRef(
|
|
|
3543
3543
|
return typeof S.children == "string" ? S.children : Array.isArray(S.children) ? S.children.map(C).join(" ") : C(S.children);
|
|
3544
3544
|
}
|
|
3545
3545
|
return "";
|
|
3546
|
-
}, []), k = v.useMemo(() =>
|
|
3547
|
-
return /* @__PURE__ */
|
|
3546
|
+
}, []), k = v.useMemo(() => I ? e.filter((E) => C(E.label).toLowerCase().includes(I.toLowerCase())) : e, [e, I, C]);
|
|
3547
|
+
return /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
3548
3548
|
o && /* @__PURE__ */ n(_, { variant: "p3", weight: "medium", className: "mb-2.5", children: o }),
|
|
3549
|
-
/* @__PURE__ */
|
|
3550
|
-
/* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ N(xe.Root, { open: y, onOpenChange: h, modal: !0, children: [
|
|
3550
|
+
/* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ N(
|
|
3551
3551
|
ee,
|
|
3552
3552
|
{
|
|
3553
3553
|
variant: "dashed",
|
|
@@ -3590,7 +3590,7 @@ const or = v.forwardRef(
|
|
|
3590
3590
|
]
|
|
3591
3591
|
}
|
|
3592
3592
|
) }),
|
|
3593
|
-
/* @__PURE__ */
|
|
3593
|
+
/* @__PURE__ */ N(
|
|
3594
3594
|
xe.Content,
|
|
3595
3595
|
{
|
|
3596
3596
|
sideOffset: 4,
|
|
@@ -3609,7 +3609,7 @@ const or = v.forwardRef(
|
|
|
3609
3609
|
Lt,
|
|
3610
3610
|
{
|
|
3611
3611
|
ref: m,
|
|
3612
|
-
value:
|
|
3612
|
+
value: I,
|
|
3613
3613
|
onChange: (E) => M(E.target.value),
|
|
3614
3614
|
placeholder: i,
|
|
3615
3615
|
size: "md",
|
|
@@ -3621,7 +3621,7 @@ const or = v.forwardRef(
|
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
3623
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ N("div", { className: "max-h-60 overflow-y-auto", children: [
|
|
3625
3625
|
k.length === 0 && /* @__PURE__ */ n("div", { className: "text-muted-foreground px-3 py-2 text-sm", children: x }),
|
|
3626
3626
|
/* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: k.map((E) => /* @__PURE__ */ n(
|
|
3627
3627
|
"div",
|
|
@@ -3676,8 +3676,8 @@ function Bo({
|
|
|
3676
3676
|
onOpenChange: u
|
|
3677
3677
|
}) {
|
|
3678
3678
|
const f = $((h, m) => {
|
|
3679
|
-
const { type:
|
|
3680
|
-
switch (
|
|
3679
|
+
const { type: I, changes: M } = m;
|
|
3680
|
+
switch (I) {
|
|
3681
3681
|
case he.stateChangeTypes.ItemClick:
|
|
3682
3682
|
case he.stateChangeTypes.InputKeyDownEnter:
|
|
3683
3683
|
case he.stateChangeTypes.InputKeyDownEscape:
|
|
@@ -3714,9 +3714,9 @@ function Bo({
|
|
|
3714
3714
|
}), { selectItem: c, setInputValue: d, getInputProps: g } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]), b = $((h) => {
|
|
3715
3715
|
const m = g(h);
|
|
3716
3716
|
return F(w({}, m), {
|
|
3717
|
-
onBlur: (
|
|
3717
|
+
onBlur: (I) => {
|
|
3718
3718
|
var M;
|
|
3719
|
-
(M = m.onBlur) == null || M.call(m,
|
|
3719
|
+
(M = m.onBlur) == null || M.call(m, I), o == null || o(I);
|
|
3720
3720
|
}
|
|
3721
3721
|
});
|
|
3722
3722
|
}, [g, o]);
|
|
@@ -3774,17 +3774,17 @@ function _o({
|
|
|
3774
3774
|
onClear: h,
|
|
3775
3775
|
clearable: m
|
|
3776
3776
|
}) {
|
|
3777
|
-
const
|
|
3777
|
+
const I = $(g, []), M = ne(() => r ? {
|
|
3778
3778
|
value: r,
|
|
3779
|
-
label:
|
|
3780
|
-
} : null, [r,
|
|
3779
|
+
label: I(r)
|
|
3780
|
+
} : null, [r, I]), C = Bo({
|
|
3781
3781
|
items: t,
|
|
3782
3782
|
value: M,
|
|
3783
3783
|
onChange: a,
|
|
3784
3784
|
onSearch: o,
|
|
3785
3785
|
onBlur: i,
|
|
3786
3786
|
disabled: f,
|
|
3787
|
-
getLabel:
|
|
3787
|
+
getLabel: I,
|
|
3788
3788
|
isOpen: b,
|
|
3789
3789
|
onOpenChange: y
|
|
3790
3790
|
}), k = Oo(C.isOpen, x), R = ne(() => ({
|
|
@@ -3813,7 +3813,7 @@ function _o({
|
|
|
3813
3813
|
onBlur: i,
|
|
3814
3814
|
loading: x,
|
|
3815
3815
|
items: t,
|
|
3816
|
-
getLabel:
|
|
3816
|
+
getLabel: I,
|
|
3817
3817
|
onClear: h,
|
|
3818
3818
|
clearable: m
|
|
3819
3819
|
}), [
|
|
@@ -3827,7 +3827,7 @@ function _o({
|
|
|
3827
3827
|
d,
|
|
3828
3828
|
i,
|
|
3829
3829
|
t,
|
|
3830
|
-
|
|
3830
|
+
I,
|
|
3831
3831
|
y
|
|
3832
3832
|
]);
|
|
3833
3833
|
return /* @__PURE__ */ n(vn.Provider, { value: R, children: e });
|
|
@@ -3845,7 +3845,7 @@ const Vo = ge("flex-col items-center justify-center", {
|
|
|
3845
3845
|
}), je = v.forwardRef(
|
|
3846
3846
|
(s, i) => {
|
|
3847
3847
|
var l = s, { size: e = 16, show: t, children: r, className: a } = l, o = B(l, ["size", "show", "children", "className"]);
|
|
3848
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ N("span", F(w({ ref: i, className: Vo({ show: t }) }, o), { children: [
|
|
3849
3849
|
/* @__PURE__ */ n(
|
|
3850
3850
|
U,
|
|
3851
3851
|
{
|
|
@@ -3994,7 +3994,7 @@ const Wo = [
|
|
|
3994
3994
|
selectedItem: u,
|
|
3995
3995
|
disabled: f
|
|
3996
3996
|
} = ht();
|
|
3997
|
-
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5", Xo[e]), children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */
|
|
3997
|
+
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5", Xo[e]), children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */ N(be, { children: [
|
|
3998
3998
|
a && /* @__PURE__ */ n(
|
|
3999
3999
|
U,
|
|
4000
4000
|
{
|
|
@@ -4154,7 +4154,7 @@ function Pt(s) {
|
|
|
4154
4154
|
"relative",
|
|
4155
4155
|
"asChild"
|
|
4156
4156
|
]);
|
|
4157
|
-
return /* @__PURE__ */
|
|
4157
|
+
return /* @__PURE__ */ N(
|
|
4158
4158
|
dt.Root,
|
|
4159
4159
|
F(w({
|
|
4160
4160
|
"data-slot": "scroll-area",
|
|
@@ -4270,9 +4270,9 @@ function ei({
|
|
|
4270
4270
|
return b;
|
|
4271
4271
|
if (Br(b.type, "Item"))
|
|
4272
4272
|
try {
|
|
4273
|
-
const h = b.props, m = er(h.option),
|
|
4274
|
-
if (
|
|
4275
|
-
const { item: M, index: C } =
|
|
4273
|
+
const h = b.props, m = er(h.option), I = i.get(m);
|
|
4274
|
+
if (I) {
|
|
4275
|
+
const { item: M, index: C } = I, k = s === m;
|
|
4276
4276
|
return /* @__PURE__ */ n(
|
|
4277
4277
|
mr,
|
|
4278
4278
|
F(w({
|
|
@@ -4399,7 +4399,7 @@ function ti({
|
|
|
4399
4399
|
getLabel: y = (R) => typeof R == "object" && R !== null && "label" in R ? R.label : "",
|
|
4400
4400
|
loading: h = !1,
|
|
4401
4401
|
isOpen: m,
|
|
4402
|
-
onOpenChange:
|
|
4402
|
+
onOpenChange: I,
|
|
4403
4403
|
showErrorMessage: M = !0,
|
|
4404
4404
|
clearable: C,
|
|
4405
4405
|
onClear: k
|
|
@@ -4422,10 +4422,10 @@ function ti({
|
|
|
4422
4422
|
placeholder: g,
|
|
4423
4423
|
loading: h,
|
|
4424
4424
|
isOpen: m,
|
|
4425
|
-
onOpenChange:
|
|
4425
|
+
onOpenChange: I,
|
|
4426
4426
|
clearable: C,
|
|
4427
4427
|
onClear: k,
|
|
4428
|
-
children: /* @__PURE__ */
|
|
4428
|
+
children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
4429
4429
|
f && /* @__PURE__ */ n(
|
|
4430
4430
|
_,
|
|
4431
4431
|
{
|
|
@@ -4435,7 +4435,7 @@ function ti({
|
|
|
4435
4435
|
children: f
|
|
4436
4436
|
}
|
|
4437
4437
|
),
|
|
4438
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ N(Tn, { children: [
|
|
4439
4439
|
/* @__PURE__ */ n(Mn, { "data-testid": b }),
|
|
4440
4440
|
/* @__PURE__ */ n(Nn, {})
|
|
4441
4441
|
] }),
|
|
@@ -4525,17 +4525,17 @@ function ri({
|
|
|
4525
4525
|
}
|
|
4526
4526
|
};
|
|
4527
4527
|
t !== void 0 && (y.selectedItem = t), f !== void 0 && (y.inputValue = f);
|
|
4528
|
-
const k = he(y), { selectItem: h, setInputValue: m, getInputProps:
|
|
4528
|
+
const k = he(y), { selectItem: h, setInputValue: m, getInputProps: I } = k, M = B(k, ["selectItem", "setInputValue", "getInputProps"]);
|
|
4529
4529
|
x.current = m;
|
|
4530
4530
|
const C = $((R) => {
|
|
4531
|
-
const E =
|
|
4531
|
+
const E = I(R);
|
|
4532
4532
|
return F(w({}, E), {
|
|
4533
4533
|
onBlur: (S) => {
|
|
4534
4534
|
var A;
|
|
4535
4535
|
(A = E.onBlur) == null || A.call(E, S), o == null || o(S);
|
|
4536
4536
|
}
|
|
4537
4537
|
});
|
|
4538
|
-
}, [
|
|
4538
|
+
}, [I, o]);
|
|
4539
4539
|
return F(w({}, M), {
|
|
4540
4540
|
selectItem: h,
|
|
4541
4541
|
getInputProps: C,
|
|
@@ -4589,14 +4589,14 @@ function ai({
|
|
|
4589
4589
|
disabled: y = !1,
|
|
4590
4590
|
error: h,
|
|
4591
4591
|
placeholder: m = "Поиск...",
|
|
4592
|
-
getLabel:
|
|
4592
|
+
getLabel: I,
|
|
4593
4593
|
loading: M = !1,
|
|
4594
4594
|
isOpen: C,
|
|
4595
4595
|
onOpenChange: k,
|
|
4596
4596
|
onClear: R,
|
|
4597
4597
|
clearable: E
|
|
4598
4598
|
}) {
|
|
4599
|
-
const S = $(
|
|
4599
|
+
const S = $(I, [I]), A = ne(() => {
|
|
4600
4600
|
if (r !== void 0)
|
|
4601
4601
|
return r === null ? null : {
|
|
4602
4602
|
value: r,
|
|
@@ -4677,7 +4677,7 @@ const Ln = () => {
|
|
|
4677
4677
|
loading: i,
|
|
4678
4678
|
disabled: s
|
|
4679
4679
|
} = gt();
|
|
4680
|
-
return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */
|
|
4680
|
+
return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */ N(be, { children: [
|
|
4681
4681
|
a && /* @__PURE__ */ n(
|
|
4682
4682
|
U,
|
|
4683
4683
|
{
|
|
@@ -4763,9 +4763,9 @@ function oi({
|
|
|
4763
4763
|
return y;
|
|
4764
4764
|
if (_r(y.type, "Item"))
|
|
4765
4765
|
try {
|
|
4766
|
-
const m = y.props,
|
|
4766
|
+
const m = y.props, I = tr(m.option), M = s.get(I);
|
|
4767
4767
|
if (M) {
|
|
4768
|
-
const { item: C, index: k } = M, R = i ? i(C.value) : l ===
|
|
4768
|
+
const { item: C, index: k } = M, R = i ? i(C.value) : l === I;
|
|
4769
4769
|
return /* @__PURE__ */ n(
|
|
4770
4770
|
mr,
|
|
4771
4771
|
F(w({
|
|
@@ -4783,7 +4783,7 @@ function oi({
|
|
|
4783
4783
|
index: k
|
|
4784
4784
|
}))) : m.children
|
|
4785
4785
|
}),
|
|
4786
|
-
|
|
4786
|
+
I
|
|
4787
4787
|
);
|
|
4788
4788
|
}
|
|
4789
4789
|
} catch (m) {
|
|
@@ -4892,12 +4892,12 @@ function si({
|
|
|
4892
4892
|
k.disconnect();
|
|
4893
4893
|
};
|
|
4894
4894
|
}, [r, o, e]);
|
|
4895
|
-
const m = e.slice(0, y),
|
|
4895
|
+
const m = e.slice(0, y), I = Math.max(0, e.length - y), M = d({
|
|
4896
4896
|
onKeyDown: (C) => {
|
|
4897
4897
|
!f && C.key === "Backspace" && C.currentTarget.value === "" && e.length > 0 && (C.preventDefault(), t(e[e.length - 1])), i == null || i(C);
|
|
4898
4898
|
}
|
|
4899
4899
|
});
|
|
4900
|
-
return /* @__PURE__ */
|
|
4900
|
+
return /* @__PURE__ */ N(
|
|
4901
4901
|
"div",
|
|
4902
4902
|
{
|
|
4903
4903
|
ref: b,
|
|
@@ -4914,7 +4914,7 @@ function si({
|
|
|
4914
4914
|
(k == null ? void 0 : k.closest('button,[role="button"]')) !== null || (C.preventDefault(), (E = x.current) == null || E.focus(), g == null || g(!0));
|
|
4915
4915
|
},
|
|
4916
4916
|
children: [
|
|
4917
|
-
m.map((C) => /* @__PURE__ */
|
|
4917
|
+
m.map((C) => /* @__PURE__ */ N(
|
|
4918
4918
|
"div",
|
|
4919
4919
|
{
|
|
4920
4920
|
className: p(
|
|
@@ -4949,7 +4949,7 @@ function si({
|
|
|
4949
4949
|
},
|
|
4950
4950
|
a(C)
|
|
4951
4951
|
)),
|
|
4952
|
-
|
|
4952
|
+
I > 0 && /* @__PURE__ */ n(
|
|
4953
4953
|
"div",
|
|
4954
4954
|
{
|
|
4955
4955
|
className: p(
|
|
@@ -4967,9 +4967,9 @@ function si({
|
|
|
4967
4967
|
var k;
|
|
4968
4968
|
f || (C.preventDefault(), C.stopPropagation(), (k = x.current) == null || k.focus(), g == null || g(!0));
|
|
4969
4969
|
},
|
|
4970
|
-
children: /* @__PURE__ */
|
|
4970
|
+
children: /* @__PURE__ */ N(_, { variant: "p2", children: [
|
|
4971
4971
|
"+",
|
|
4972
|
-
|
|
4972
|
+
I
|
|
4973
4973
|
] })
|
|
4974
4974
|
}
|
|
4975
4975
|
),
|
|
@@ -5013,7 +5013,7 @@ function li({
|
|
|
5013
5013
|
getLabel: y = (A) => typeof A == "object" && A !== null && "label" in A ? A.label : "",
|
|
5014
5014
|
getKey: h = ii,
|
|
5015
5015
|
loading: m = !1,
|
|
5016
|
-
onInputKeyDown:
|
|
5016
|
+
onInputKeyDown: I,
|
|
5017
5017
|
isOpen: M,
|
|
5018
5018
|
onOpenChange: C,
|
|
5019
5019
|
showErrorMessage: k = !0,
|
|
@@ -5061,7 +5061,7 @@ function li({
|
|
|
5061
5061
|
inputValueOnClose: "preserve",
|
|
5062
5062
|
isItemSelected: (j) => G.has(h(j)),
|
|
5063
5063
|
hasSelection: z.length > 0,
|
|
5064
|
-
children: /* @__PURE__ */
|
|
5064
|
+
children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
5065
5065
|
f && /* @__PURE__ */ n(
|
|
5066
5066
|
_,
|
|
5067
5067
|
{
|
|
@@ -5071,7 +5071,7 @@ function li({
|
|
|
5071
5071
|
children: f
|
|
5072
5072
|
}
|
|
5073
5073
|
),
|
|
5074
|
-
/* @__PURE__ */
|
|
5074
|
+
/* @__PURE__ */ N(Pn, { children: [
|
|
5075
5075
|
/* @__PURE__ */ n(
|
|
5076
5076
|
si,
|
|
5077
5077
|
{
|
|
@@ -5080,7 +5080,7 @@ function li({
|
|
|
5080
5080
|
getLabel: y,
|
|
5081
5081
|
getKey: h,
|
|
5082
5082
|
maxTags: S,
|
|
5083
|
-
onInputKeyDown:
|
|
5083
|
+
onInputKeyDown: I,
|
|
5084
5084
|
"data-testid": b
|
|
5085
5085
|
}
|
|
5086
5086
|
),
|
|
@@ -5133,7 +5133,7 @@ function _n(e) {
|
|
|
5133
5133
|
l && l.scrollNext();
|
|
5134
5134
|
}, [l]), m = $(() => {
|
|
5135
5135
|
l && l.scrollPrev();
|
|
5136
|
-
}, [l]),
|
|
5136
|
+
}, [l]), I = $((C) => {
|
|
5137
5137
|
y(C);
|
|
5138
5138
|
}, [y]);
|
|
5139
5139
|
return {
|
|
@@ -5144,7 +5144,7 @@ function _n(e) {
|
|
|
5144
5144
|
next: h,
|
|
5145
5145
|
prev: m,
|
|
5146
5146
|
scrollTo: y,
|
|
5147
|
-
onChange:
|
|
5147
|
+
onChange: I,
|
|
5148
5148
|
canScrollNext: c,
|
|
5149
5149
|
canScrollPrev: g
|
|
5150
5150
|
};
|
|
@@ -5179,7 +5179,7 @@ function fi({
|
|
|
5179
5179
|
textClassName: a
|
|
5180
5180
|
}) {
|
|
5181
5181
|
const { active: o } = Ut(), i = e[o] || {};
|
|
5182
|
-
return /* @__PURE__ */
|
|
5182
|
+
return /* @__PURE__ */ N("div", { className: p(t), children: [
|
|
5183
5183
|
i.title && /* @__PURE__ */ n("div", { className: p(r), children: i.title }),
|
|
5184
5184
|
i.text && /* @__PURE__ */ n("div", { className: p(a), children: i.text })
|
|
5185
5185
|
] });
|
|
@@ -5190,7 +5190,7 @@ function mi({
|
|
|
5190
5190
|
titleClassName: r,
|
|
5191
5191
|
textClassName: a
|
|
5192
5192
|
}) {
|
|
5193
|
-
return /* @__PURE__ */
|
|
5193
|
+
return /* @__PURE__ */ N("div", { className: p(t), children: [
|
|
5194
5194
|
e.title && /* @__PURE__ */ n("div", { className: p(r), children: e.title }),
|
|
5195
5195
|
e.text && /* @__PURE__ */ n("div", { className: p(a), children: e.text })
|
|
5196
5196
|
] });
|
|
@@ -5263,7 +5263,7 @@ function pi({
|
|
|
5263
5263
|
children: t
|
|
5264
5264
|
}
|
|
5265
5265
|
);
|
|
5266
|
-
return /* @__PURE__ */
|
|
5266
|
+
return /* @__PURE__ */ N(
|
|
5267
5267
|
"div",
|
|
5268
5268
|
{
|
|
5269
5269
|
className: p(
|
|
@@ -5316,7 +5316,7 @@ function hi({
|
|
|
5316
5316
|
children: i
|
|
5317
5317
|
}
|
|
5318
5318
|
);
|
|
5319
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ N(
|
|
5320
5320
|
"div",
|
|
5321
5321
|
{
|
|
5322
5322
|
className: p(
|
|
@@ -5464,8 +5464,8 @@ function Ql(g) {
|
|
|
5464
5464
|
"hideDisabledButtons"
|
|
5465
5465
|
]);
|
|
5466
5466
|
const b = !!(i || s);
|
|
5467
|
-
return /* @__PURE__ */
|
|
5468
|
-
/* @__PURE__ */
|
|
5467
|
+
return /* @__PURE__ */ N(Et.Root, { options: r, className: p("group", a), children: [
|
|
5468
|
+
/* @__PURE__ */ N("div", { className: "relative", children: [
|
|
5469
5469
|
/* @__PURE__ */ n(
|
|
5470
5470
|
Et.Items,
|
|
5471
5471
|
w({
|
|
@@ -5496,7 +5496,7 @@ function Xl({
|
|
|
5496
5496
|
className: o
|
|
5497
5497
|
}) {
|
|
5498
5498
|
const i = _n(t);
|
|
5499
|
-
return /* @__PURE__ */
|
|
5499
|
+
return /* @__PURE__ */ N("div", { className: p("relative w-full", o), children: [
|
|
5500
5500
|
r(i, e),
|
|
5501
5501
|
a && a(i, e)
|
|
5502
5502
|
] });
|
|
@@ -5584,7 +5584,7 @@ function zt(i) {
|
|
|
5584
5584
|
IconRight: () => /* @__PURE__ */ n(U, { icon: "ArrowRightIcon" }),
|
|
5585
5585
|
CaptionLabel: ({ displayMonth: l }) => {
|
|
5586
5586
|
const u = a ? Re(l, "MMM", { locale: a }) : l.toLocaleString("ru-RU", { month: "long" }).slice(0, 3), f = l.getFullYear();
|
|
5587
|
-
return /* @__PURE__ */
|
|
5587
|
+
return /* @__PURE__ */ N(_, { variant: "p2", weight: "medium", className: "font-graphik", children: [
|
|
5588
5588
|
u,
|
|
5589
5589
|
" ",
|
|
5590
5590
|
f
|
|
@@ -5838,7 +5838,7 @@ function ed() {
|
|
|
5838
5838
|
}
|
|
5839
5839
|
function Ei(e) {
|
|
5840
5840
|
var R;
|
|
5841
|
-
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, u] = v.useState(!1), [f, c] = v.useState(e.hideFooter), [d, g] = v.useState(!1), [x, b] = v.useState(e.width), y = v.useContext(vt), h = (R = y == null ? void 0 : y.nextBaseZIndex) != null ? R : e.baseZIndex, m = h + 1,
|
|
5841
|
+
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, u] = v.useState(!1), [f, c] = v.useState(e.hideFooter), [d, g] = v.useState(!1), [x, b] = v.useState(e.width), y = v.useContext(vt), h = (R = y == null ? void 0 : y.nextBaseZIndex) != null ? R : e.baseZIndex, m = h + 1, I = h + 2, M = h + 3, C = v.useMemo(() => !l && i ? "top" : "none", [l, i]), k = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
|
|
5842
5842
|
return v.useEffect(() => {
|
|
5843
5843
|
b(e.width);
|
|
5844
5844
|
}, [e.width]), v.useEffect(() => {
|
|
@@ -5876,7 +5876,7 @@ function Ei(e) {
|
|
|
5876
5876
|
setContentElement: r,
|
|
5877
5877
|
baseZIndex: h,
|
|
5878
5878
|
overlayZIndex: m,
|
|
5879
|
-
containerZIndex:
|
|
5879
|
+
containerZIndex: I,
|
|
5880
5880
|
nextBaseZIndex: M
|
|
5881
5881
|
};
|
|
5882
5882
|
}
|
|
@@ -5939,7 +5939,7 @@ function Li(s) {
|
|
|
5939
5939
|
const { TopHeaderTeleporter: u, setHasTopHeader: f } = $t(), c = v.useContext(vt);
|
|
5940
5940
|
return v.useEffect(() => (f(!0), () => {
|
|
5941
5941
|
f(!1);
|
|
5942
|
-
}), [f]), /* @__PURE__ */ n(u.Source, { children: /* @__PURE__ */
|
|
5942
|
+
}), [f]), /* @__PURE__ */ n(u.Source, { children: /* @__PURE__ */ N(
|
|
5943
5943
|
"div",
|
|
5944
5944
|
F(w({}, i), {
|
|
5945
5945
|
"data-testid": a,
|
|
@@ -5950,7 +5950,7 @@ function Li(s) {
|
|
|
5950
5950
|
e
|
|
5951
5951
|
),
|
|
5952
5952
|
children: [
|
|
5953
|
-
/* @__PURE__ */
|
|
5953
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-2.5", children: [
|
|
5954
5954
|
t && /* @__PURE__ */ n(_, { as: "p", variant: "p1", weight: "normal", children: t }),
|
|
5955
5955
|
r && /* @__PURE__ */ n(_, { as: "div", variant: "h1", children: r })
|
|
5956
5956
|
] }),
|
|
@@ -5967,7 +5967,7 @@ function Li(s) {
|
|
|
5967
5967
|
}
|
|
5968
5968
|
function Pi(e) {
|
|
5969
5969
|
const { ContentTeleporter: t } = $t(), r = v.useContext(vt), a = r == null ? void 0 : r.statusImage;
|
|
5970
|
-
return a ? /* @__PURE__ */
|
|
5970
|
+
return a ? /* @__PURE__ */ N(t.Source, { children: [
|
|
5971
5971
|
/* @__PURE__ */ n(
|
|
5972
5972
|
de.Close,
|
|
5973
5973
|
{
|
|
@@ -6032,7 +6032,7 @@ function de(b) {
|
|
|
6032
6032
|
TopHeaderTeleporter: Mt()
|
|
6033
6033
|
}),
|
|
6034
6034
|
[]
|
|
6035
|
-
),
|
|
6035
|
+
), I = m.TitleTeleporter.useTargetRef(), M = m.FooterTeleporter.useTargetRef(), C = m.ContentTeleporter.useTargetRef(), k = m.TopHeaderTeleporter.useTargetRef(), [R, E] = v.useState(!1), S = R ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
|
|
6036
6036
|
Ye,
|
|
6037
6037
|
{
|
|
6038
6038
|
ref: (A) => {
|
|
@@ -6058,16 +6058,16 @@ function de(b) {
|
|
|
6058
6058
|
value: F(w({}, m), {
|
|
6059
6059
|
setHasTopHeader: E
|
|
6060
6060
|
}),
|
|
6061
|
-
children: /* @__PURE__ */
|
|
6061
|
+
children: /* @__PURE__ */ N(vt.Provider, { value: h, children: [
|
|
6062
6062
|
r && /* @__PURE__ */ n(Xe, { children: r }),
|
|
6063
|
-
/* @__PURE__ */
|
|
6063
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
6064
6064
|
i && /* @__PURE__ */ n(
|
|
6065
6065
|
qe,
|
|
6066
6066
|
{
|
|
6067
6067
|
style: { zIndex: h.overlayZIndex }
|
|
6068
6068
|
}
|
|
6069
6069
|
),
|
|
6070
|
-
/* @__PURE__ */
|
|
6070
|
+
/* @__PURE__ */ N(
|
|
6071
6071
|
et,
|
|
6072
6072
|
{
|
|
6073
6073
|
style: { zIndex: h.containerZIndex },
|
|
@@ -6080,7 +6080,7 @@ function de(b) {
|
|
|
6080
6080
|
padding: d ? "none" : "md",
|
|
6081
6081
|
children: [
|
|
6082
6082
|
/* @__PURE__ */ n("div", { ref: k }),
|
|
6083
|
-
!d && !R && /* @__PURE__ */
|
|
6083
|
+
!d && !R && /* @__PURE__ */ N(
|
|
6084
6084
|
jn,
|
|
6085
6085
|
{
|
|
6086
6086
|
shadow: h.shadowHeader,
|
|
@@ -6089,7 +6089,7 @@ function de(b) {
|
|
|
6089
6089
|
!h.isHideTitle && /* @__PURE__ */ n(
|
|
6090
6090
|
gr,
|
|
6091
6091
|
{
|
|
6092
|
-
ref:
|
|
6092
|
+
ref: I,
|
|
6093
6093
|
className: p(e == null ? void 0 : e.title)
|
|
6094
6094
|
}
|
|
6095
6095
|
),
|
|
@@ -6157,7 +6157,7 @@ function td({
|
|
|
6157
6157
|
v.useEffect(() => {
|
|
6158
6158
|
e !== x && b(e);
|
|
6159
6159
|
}, [e]);
|
|
6160
|
-
const
|
|
6160
|
+
const I = (k) => {
|
|
6161
6161
|
k && (b(k), t == null || t(k), y === "mobile" && m(!1));
|
|
6162
6162
|
}, M = () => {
|
|
6163
6163
|
b(void 0), t == null || t(void 0), c == null || c();
|
|
@@ -6171,7 +6171,7 @@ function td({
|
|
|
6171
6171
|
return "rounded-lg";
|
|
6172
6172
|
}
|
|
6173
6173
|
};
|
|
6174
|
-
return /* @__PURE__ */
|
|
6174
|
+
return /* @__PURE__ */ N("div", { className: o, children: [
|
|
6175
6175
|
u && /* @__PURE__ */ n(
|
|
6176
6176
|
_,
|
|
6177
6177
|
{
|
|
@@ -6184,7 +6184,7 @@ function td({
|
|
|
6184
6184
|
children: u
|
|
6185
6185
|
}
|
|
6186
6186
|
),
|
|
6187
|
-
y === "mobile" ? /* @__PURE__ */
|
|
6187
|
+
y === "mobile" ? /* @__PURE__ */ N(
|
|
6188
6188
|
de,
|
|
6189
6189
|
{
|
|
6190
6190
|
open: h,
|
|
@@ -6214,7 +6214,7 @@ function td({
|
|
|
6214
6214
|
s != null ? "hover:text-destructive" : ""
|
|
6215
6215
|
),
|
|
6216
6216
|
"data-testid": g,
|
|
6217
|
-
children: /* @__PURE__ */
|
|
6217
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6218
6218
|
/* @__PURE__ */ n(
|
|
6219
6219
|
"div",
|
|
6220
6220
|
{
|
|
@@ -6227,7 +6227,7 @@ function td({
|
|
|
6227
6227
|
children: x ? Re(x, "dd.MM.yyyy", { locale: Ne }) : a
|
|
6228
6228
|
}
|
|
6229
6229
|
),
|
|
6230
|
-
/* @__PURE__ */
|
|
6230
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
6231
6231
|
/* @__PURE__ */ n(
|
|
6232
6232
|
U,
|
|
6233
6233
|
{
|
|
@@ -6264,7 +6264,7 @@ function td({
|
|
|
6264
6264
|
{
|
|
6265
6265
|
mode: "single",
|
|
6266
6266
|
selected: x,
|
|
6267
|
-
onSelect:
|
|
6267
|
+
onSelect: I,
|
|
6268
6268
|
initialFocus: !0,
|
|
6269
6269
|
locale: Ne,
|
|
6270
6270
|
className: "font-graphik mt-3",
|
|
@@ -6284,7 +6284,7 @@ function td({
|
|
|
6284
6284
|
) }) })
|
|
6285
6285
|
]
|
|
6286
6286
|
}
|
|
6287
|
-
) : /* @__PURE__ */
|
|
6287
|
+
) : /* @__PURE__ */ N(
|
|
6288
6288
|
Je,
|
|
6289
6289
|
{
|
|
6290
6290
|
open: h,
|
|
@@ -6313,7 +6313,7 @@ function td({
|
|
|
6313
6313
|
s != null ? "hover:text-destructive" : ""
|
|
6314
6314
|
),
|
|
6315
6315
|
"data-testid": g,
|
|
6316
|
-
children: /* @__PURE__ */
|
|
6316
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6317
6317
|
/* @__PURE__ */ n(
|
|
6318
6318
|
"div",
|
|
6319
6319
|
{
|
|
@@ -6325,7 +6325,7 @@ function td({
|
|
|
6325
6325
|
children: x ? Re(x, "dd.MM.yyyy", { locale: Ne }) : a
|
|
6326
6326
|
}
|
|
6327
6327
|
),
|
|
6328
|
-
/* @__PURE__ */
|
|
6328
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
6329
6329
|
/* @__PURE__ */ n(
|
|
6330
6330
|
U,
|
|
6331
6331
|
{
|
|
@@ -6352,7 +6352,7 @@ function td({
|
|
|
6352
6352
|
] })
|
|
6353
6353
|
}
|
|
6354
6354
|
) }),
|
|
6355
|
-
/* @__PURE__ */
|
|
6355
|
+
/* @__PURE__ */ N(
|
|
6356
6356
|
Ge,
|
|
6357
6357
|
{
|
|
6358
6358
|
className: "w-auto rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
@@ -6364,7 +6364,7 @@ function td({
|
|
|
6364
6364
|
{
|
|
6365
6365
|
mode: "single",
|
|
6366
6366
|
selected: x,
|
|
6367
|
-
onSelect:
|
|
6367
|
+
onSelect: I,
|
|
6368
6368
|
initialFocus: !0,
|
|
6369
6369
|
locale: Ne,
|
|
6370
6370
|
className: "font-graphik",
|
|
@@ -6557,7 +6557,7 @@ function rd(y) {
|
|
|
6557
6557
|
"disabledDays",
|
|
6558
6558
|
"data-testid"
|
|
6559
6559
|
]);
|
|
6560
|
-
const [m,
|
|
6560
|
+
const [m, I] = v.useState(t), [M, C] = v.useState(!1), k = Yt(), R = zi[r], E = $i(r), S = {
|
|
6561
6561
|
from: (o == null ? void 0 : o.from) || R.placeholder,
|
|
6562
6562
|
to: (o == null ? void 0 : o.to) || R.placeholder
|
|
6563
6563
|
}, A = v.useMemo(() => {
|
|
@@ -6570,12 +6570,12 @@ function rd(y) {
|
|
|
6570
6570
|
};
|
|
6571
6571
|
}, [i]), { hasAnyError: z, hasFromError: G, hasToError: H, getErrorText: P } = A;
|
|
6572
6572
|
v.useEffect(() => {
|
|
6573
|
-
|
|
6573
|
+
I(t);
|
|
6574
6574
|
}, [t]);
|
|
6575
6575
|
const D = (V) => {
|
|
6576
|
-
|
|
6576
|
+
I(V), a == null || a(V), V != null && V.from && (V != null && V.to) && k === "mobile" && C(!1);
|
|
6577
6577
|
}, O = () => {
|
|
6578
|
-
|
|
6578
|
+
I(void 0), a == null || a(void 0), d == null || d();
|
|
6579
6579
|
}, W = () => {
|
|
6580
6580
|
switch (u) {
|
|
6581
6581
|
case "md":
|
|
@@ -6586,7 +6586,7 @@ function rd(y) {
|
|
|
6586
6586
|
return "rounded-lg";
|
|
6587
6587
|
}
|
|
6588
6588
|
};
|
|
6589
|
-
return /* @__PURE__ */
|
|
6589
|
+
return /* @__PURE__ */ N("div", F(w({ className: e }, b), { children: [
|
|
6590
6590
|
l && /* @__PURE__ */ n(
|
|
6591
6591
|
_,
|
|
6592
6592
|
{
|
|
@@ -6599,7 +6599,7 @@ function rd(y) {
|
|
|
6599
6599
|
children: l
|
|
6600
6600
|
}
|
|
6601
6601
|
),
|
|
6602
|
-
k === "mobile" ? /* @__PURE__ */
|
|
6602
|
+
k === "mobile" ? /* @__PURE__ */ N(
|
|
6603
6603
|
de,
|
|
6604
6604
|
{
|
|
6605
6605
|
open: M,
|
|
@@ -6628,8 +6628,8 @@ function rd(y) {
|
|
|
6628
6628
|
}
|
|
6629
6629
|
),
|
|
6630
6630
|
"data-testid": x,
|
|
6631
|
-
children: /* @__PURE__ */
|
|
6632
|
-
/* @__PURE__ */
|
|
6631
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6632
|
+
/* @__PURE__ */ N(
|
|
6633
6633
|
"div",
|
|
6634
6634
|
{
|
|
6635
6635
|
className: p(
|
|
@@ -6666,7 +6666,7 @@ function rd(y) {
|
|
|
6666
6666
|
]
|
|
6667
6667
|
}
|
|
6668
6668
|
),
|
|
6669
|
-
/* @__PURE__ */
|
|
6669
|
+
/* @__PURE__ */ N("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
6670
6670
|
/* @__PURE__ */ n(
|
|
6671
6671
|
U,
|
|
6672
6672
|
{
|
|
@@ -6724,7 +6724,7 @@ function rd(y) {
|
|
|
6724
6724
|
) }) })
|
|
6725
6725
|
]
|
|
6726
6726
|
}
|
|
6727
|
-
) : /* @__PURE__ */
|
|
6727
|
+
) : /* @__PURE__ */ N(Je, { open: M, onOpenChange: C, children: [
|
|
6728
6728
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
6729
6729
|
ee,
|
|
6730
6730
|
{
|
|
@@ -6748,8 +6748,8 @@ function rd(y) {
|
|
|
6748
6748
|
}
|
|
6749
6749
|
),
|
|
6750
6750
|
"data-testid": x,
|
|
6751
|
-
children: /* @__PURE__ */
|
|
6752
|
-
/* @__PURE__ */
|
|
6751
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6752
|
+
/* @__PURE__ */ N(
|
|
6753
6753
|
"div",
|
|
6754
6754
|
{
|
|
6755
6755
|
className: p(
|
|
@@ -6788,7 +6788,7 @@ function rd(y) {
|
|
|
6788
6788
|
]
|
|
6789
6789
|
}
|
|
6790
6790
|
),
|
|
6791
|
-
/* @__PURE__ */
|
|
6791
|
+
/* @__PURE__ */ N("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
6792
6792
|
/* @__PURE__ */ n(
|
|
6793
6793
|
U,
|
|
6794
6794
|
{
|
|
@@ -6815,7 +6815,7 @@ function rd(y) {
|
|
|
6815
6815
|
] })
|
|
6816
6816
|
}
|
|
6817
6817
|
) }),
|
|
6818
|
-
/* @__PURE__ */
|
|
6818
|
+
/* @__PURE__ */ N(
|
|
6819
6819
|
Ge,
|
|
6820
6820
|
{
|
|
6821
6821
|
className: "w-screen rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] sm:w-auto",
|
|
@@ -6886,7 +6886,7 @@ const Un = v.forwardRef(
|
|
|
6886
6886
|
"onPaste",
|
|
6887
6887
|
"onClear"
|
|
6888
6888
|
]);
|
|
6889
|
-
const [h, m] = oe(() => e == null || e === "" ? "" : String(e)),
|
|
6889
|
+
const [h, m] = oe(() => e == null || e === "" ? "" : String(e)), I = $(
|
|
6890
6890
|
(S) => a === "comma" ? S.replace(/\./g, ",") : S.replace(/,/g, "."),
|
|
6891
6891
|
[a]
|
|
6892
6892
|
), M = $(
|
|
@@ -6894,7 +6894,7 @@ const Un = v.forwardRef(
|
|
|
6894
6894
|
if (S === "" && u)
|
|
6895
6895
|
return "";
|
|
6896
6896
|
let A = S.replace(/[^\d.,\-]/g, "");
|
|
6897
|
-
if (l ? (A.match(/-/g) || []).length > 1 && (A = A.replace(/-/g, ""), S.startsWith("-") && (A = `-${A}`)) : A = A.replace(/-/g, ""), A =
|
|
6897
|
+
if (l ? (A.match(/-/g) || []).length > 1 && (A = A.replace(/-/g, ""), S.startsWith("-") && (A = `-${A}`)) : A = A.replace(/-/g, ""), A = I(A), (A.match(/[.,]/g) || []).length > 1) {
|
|
6898
6898
|
const G = A.search(/[.,]/);
|
|
6899
6899
|
A = A.substring(0, G + 1) + A.substring(G + 1).replace(/[.,]/g, "");
|
|
6900
6900
|
}
|
|
@@ -6907,7 +6907,7 @@ const Un = v.forwardRef(
|
|
|
6907
6907
|
}
|
|
6908
6908
|
return o && (A = o(A)), A;
|
|
6909
6909
|
},
|
|
6910
|
-
[r, a, l, u,
|
|
6910
|
+
[r, a, l, u, I, o]
|
|
6911
6911
|
), C = $(
|
|
6912
6912
|
(S) => !(i !== void 0 && S < i || s !== void 0 && S > s),
|
|
6913
6913
|
[i, s]
|
|
@@ -7000,7 +7000,7 @@ const Un = v.forwardRef(
|
|
|
7000
7000
|
Un.displayName = "InputNumber";
|
|
7001
7001
|
const Kn = v.forwardRef(
|
|
7002
7002
|
(m, h) => {
|
|
7003
|
-
var
|
|
7003
|
+
var I = m, {
|
|
7004
7004
|
className: e,
|
|
7005
7005
|
href: t = "#",
|
|
7006
7006
|
children: r,
|
|
@@ -7016,7 +7016,7 @@ const Kn = v.forwardRef(
|
|
|
7016
7016
|
iconPosition: g = "left",
|
|
7017
7017
|
iconSize: x,
|
|
7018
7018
|
iconClassName: b
|
|
7019
|
-
} =
|
|
7019
|
+
} = I, y = B(I, [
|
|
7020
7020
|
"className",
|
|
7021
7021
|
"href",
|
|
7022
7022
|
"children",
|
|
@@ -7087,7 +7087,7 @@ const Kn = v.forwardRef(
|
|
|
7087
7087
|
})
|
|
7088
7088
|
);
|
|
7089
7089
|
}
|
|
7090
|
-
const R = /* @__PURE__ */ n(U, { icon: d, size: x, className: p("shrink-0", b) }), E = /* @__PURE__ */
|
|
7090
|
+
const R = /* @__PURE__ */ n(U, { icon: d, size: x, className: p("shrink-0", b) }), E = /* @__PURE__ */ N("span", { className: "inline-flex items-center gap-2", children: [
|
|
7091
7091
|
g === "left" && R,
|
|
7092
7092
|
/* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: r }),
|
|
7093
7093
|
g === "right" && R
|
|
@@ -7239,7 +7239,7 @@ const Xi = v.forwardRef(
|
|
|
7239
7239
|
const m = x.current;
|
|
7240
7240
|
m && m.removeEventListener("scroll", h);
|
|
7241
7241
|
};
|
|
7242
|
-
}, []), /* @__PURE__ */
|
|
7242
|
+
}, []), /* @__PURE__ */ N(Qi, { children: [
|
|
7243
7243
|
!s && /* @__PURE__ */ n(Yn, {}),
|
|
7244
7244
|
/* @__PURE__ */ n(
|
|
7245
7245
|
ue.Content,
|
|
@@ -7259,7 +7259,7 @@ const Xi = v.forwardRef(
|
|
|
7259
7259
|
e
|
|
7260
7260
|
)
|
|
7261
7261
|
}, f), {
|
|
7262
|
-
children: /* @__PURE__ */
|
|
7262
|
+
children: /* @__PURE__ */ N(
|
|
7263
7263
|
"div",
|
|
7264
7264
|
{
|
|
7265
7265
|
className: p(
|
|
@@ -7359,7 +7359,47 @@ const ts = v.forwardRef((a, r) => {
|
|
|
7359
7359
|
);
|
|
7360
7360
|
});
|
|
7361
7361
|
ts.displayName = ue.Description.displayName;
|
|
7362
|
-
const
|
|
7362
|
+
const id = ({
|
|
7363
|
+
totalSteps: e,
|
|
7364
|
+
items: t,
|
|
7365
|
+
activeStep: r,
|
|
7366
|
+
className: a,
|
|
7367
|
+
contentClassName: o
|
|
7368
|
+
}) => {
|
|
7369
|
+
var l, u;
|
|
7370
|
+
const i = (u = (l = t == null ? void 0 : t.length) != null ? l : e) != null ? u : 0;
|
|
7371
|
+
if (i <= 0)
|
|
7372
|
+
return null;
|
|
7373
|
+
const s = Array.from({ length: i }, (f, c) => c + 1);
|
|
7374
|
+
return /* @__PURE__ */ n("div", { className: p("w-full", a), children: s.map((f, c) => {
|
|
7375
|
+
var b;
|
|
7376
|
+
const d = f === r, g = c === s.length - 1, x = (b = t == null ? void 0 : t[c]) == null ? void 0 : b.content;
|
|
7377
|
+
return /* @__PURE__ */ N("div", { className: p("flex", !x && "justify-center"), children: [
|
|
7378
|
+
/* @__PURE__ */ N("div", { className: "relative mr-3 flex flex-col items-center", children: [
|
|
7379
|
+
/* @__PURE__ */ n("div", { className: "bg-muted flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full", children: /* @__PURE__ */ n(
|
|
7380
|
+
_,
|
|
7381
|
+
{
|
|
7382
|
+
as: "span",
|
|
7383
|
+
variant: "p2",
|
|
7384
|
+
textColor: d ? "default" : "muted",
|
|
7385
|
+
className: "inline-flex w-4 justify-center text-center [font-variant-numeric:tabular-nums]",
|
|
7386
|
+
children: f
|
|
7387
|
+
}
|
|
7388
|
+
) }),
|
|
7389
|
+
!g && /* @__PURE__ */ n(
|
|
7390
|
+
"div",
|
|
7391
|
+
{
|
|
7392
|
+
className: p(
|
|
7393
|
+
"bg-border-timeline w-0.5",
|
|
7394
|
+
x ? "flex-1" : "min-h-14"
|
|
7395
|
+
)
|
|
7396
|
+
}
|
|
7397
|
+
)
|
|
7398
|
+
] }),
|
|
7399
|
+
x && /* @__PURE__ */ n("div", { className: p("flex-1 pb-4", o), children: x })
|
|
7400
|
+
] }, f);
|
|
7401
|
+
}) });
|
|
7402
|
+
}, rs = 8, ns = 37, as = 39, os = 46, is = 32;
|
|
7363
7403
|
function ss(e) {
|
|
7364
7404
|
const c = e, {
|
|
7365
7405
|
focus: t,
|
|
@@ -7408,7 +7448,7 @@ function ss(e) {
|
|
|
7408
7448
|
}, u)
|
|
7409
7449
|
);
|
|
7410
7450
|
}
|
|
7411
|
-
const
|
|
7451
|
+
const sd = pa((e, t) => {
|
|
7412
7452
|
const {
|
|
7413
7453
|
length: r = 6,
|
|
7414
7454
|
onChange: a = () => {
|
|
@@ -7426,7 +7466,7 @@ const id = pa((e, t) => {
|
|
|
7426
7466
|
resend: "Отправить код повторно",
|
|
7427
7467
|
sms: "Отправить СМС через"
|
|
7428
7468
|
}
|
|
7429
|
-
} = e, b = e["data-cy"], y = e["data-testid"], [h, m] = oe(0), [
|
|
7469
|
+
} = e, b = e["data-cy"], y = e["data-testid"], [h, m] = oe(0), [I, M] = oe(
|
|
7430
7470
|
Array.from({ length: r }, () => "")
|
|
7431
7471
|
), [C, k] = oe(d ? g : 0), [R, E] = oe(!!d), [S, A] = oe(u), [z, G] = oe(f), H = (K) => {
|
|
7432
7472
|
const Z = Math.max(Math.min(r - 1, K), 0);
|
|
@@ -7456,13 +7496,13 @@ const id = pa((e, t) => {
|
|
|
7456
7496
|
}, V = () => {
|
|
7457
7497
|
H(h - 1);
|
|
7458
7498
|
}, Y = (K) => {
|
|
7459
|
-
const Z = [...
|
|
7499
|
+
const Z = [...I];
|
|
7460
7500
|
Z[h] = K[0] || "", D(Z);
|
|
7461
7501
|
}, j = (K) => {
|
|
7462
7502
|
if (K.preventDefault(), i || s)
|
|
7463
7503
|
return;
|
|
7464
7504
|
let Z = h;
|
|
7465
|
-
const me = K.clipboardData.getData("text/plain").slice(0, r - h).split(""), Se = [...
|
|
7505
|
+
const me = K.clipboardData.getData("text/plain").slice(0, r - h).split(""), Se = [...I];
|
|
7466
7506
|
for (let Te = 0; Te < r; ++Te)
|
|
7467
7507
|
Te >= h && me.length > 0 && (Se[Te] = me.shift(), Z++);
|
|
7468
7508
|
m(Z), H(Z), D(Se);
|
|
@@ -7493,7 +7533,7 @@ const id = pa((e, t) => {
|
|
|
7493
7533
|
}, X = () => {
|
|
7494
7534
|
s || m(-1);
|
|
7495
7535
|
};
|
|
7496
|
-
return /* @__PURE__ */
|
|
7536
|
+
return /* @__PURE__ */ N("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
|
|
7497
7537
|
c && /* @__PURE__ */ n(_, { variant: "h5", weight: "medium", children: c }),
|
|
7498
7538
|
/* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((K, Z) => /* @__PURE__ */ n(
|
|
7499
7539
|
ss,
|
|
@@ -7502,7 +7542,7 @@ const id = pa((e, t) => {
|
|
|
7502
7542
|
masked: o,
|
|
7503
7543
|
loading: s,
|
|
7504
7544
|
focus: h === Z,
|
|
7505
|
-
value:
|
|
7545
|
+
value: I[Z],
|
|
7506
7546
|
onChange: J(Z),
|
|
7507
7547
|
onKeyDown: te,
|
|
7508
7548
|
onInput: ae,
|
|
@@ -7520,7 +7560,7 @@ const id = pa((e, t) => {
|
|
|
7520
7560
|
Z
|
|
7521
7561
|
)) }),
|
|
7522
7562
|
S && z && /* @__PURE__ */ n(_, { variant: "p2", textColor: "destructive", className: "font-cofo", children: z }),
|
|
7523
|
-
d && /* @__PURE__ */ n("div", { children: R ? /* @__PURE__ */
|
|
7563
|
+
d && /* @__PURE__ */ n("div", { children: R ? /* @__PURE__ */ N(_, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
|
|
7524
7564
|
x.sms,
|
|
7525
7565
|
" ",
|
|
7526
7566
|
"0:",
|
|
@@ -7562,7 +7602,7 @@ function ds(e, t) {
|
|
|
7562
7602
|
return f.has(d) ? !1 : (f.add(d), !0);
|
|
7563
7603
|
});
|
|
7564
7604
|
}
|
|
7565
|
-
const
|
|
7605
|
+
const ld = ({
|
|
7566
7606
|
current: e,
|
|
7567
7607
|
total: t,
|
|
7568
7608
|
pageSize: r = 10,
|
|
@@ -7604,8 +7644,8 @@ const sd = ({
|
|
|
7604
7644
|
return;
|
|
7605
7645
|
const k = typeof g == "number" ? g : Number(g);
|
|
7606
7646
|
Number.isFinite(k) && (b(k), x(""));
|
|
7607
|
-
}, m = (M = u == null ? void 0 : u.jump_to) != null ? M : "Перейти на",
|
|
7608
|
-
return /* @__PURE__ */
|
|
7647
|
+
}, m = (M = u == null ? void 0 : u.jump_to) != null ? M : "Перейти на", I = (C = u == null ? void 0 : u.page) != null ? C : "страницу";
|
|
7648
|
+
return /* @__PURE__ */ N("div", { className: p("flex items-center justify-between gap-3 flex-wrap", o), "data-testid": "paginator", children: [
|
|
7609
7649
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((k, R) => {
|
|
7610
7650
|
const E = ls(k, f), S = k.type === "page" && k.page === c, A = `${k.type}-${k.type === "page" ? k.page : R}`, z = k.type === "prev" || k.type === "next" ? /* @__PURE__ */ n(
|
|
7611
7651
|
ee,
|
|
@@ -7652,7 +7692,7 @@ const sd = ({
|
|
|
7652
7692
|
);
|
|
7653
7693
|
return /* @__PURE__ */ n("span", { "data-testid": E, children: z }, A);
|
|
7654
7694
|
}) }),
|
|
7655
|
-
l && /* @__PURE__ */
|
|
7695
|
+
l && /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
|
|
7656
7696
|
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children: m }),
|
|
7657
7697
|
/* @__PURE__ */ n(
|
|
7658
7698
|
Un,
|
|
@@ -7669,7 +7709,7 @@ const sd = ({
|
|
|
7669
7709
|
}
|
|
7670
7710
|
}
|
|
7671
7711
|
),
|
|
7672
|
-
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children:
|
|
7712
|
+
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children: I }),
|
|
7673
7713
|
/* @__PURE__ */ n(ee, { variant: "default", onClick: h, disabled: i, children: "OK" })
|
|
7674
7714
|
] })
|
|
7675
7715
|
] });
|
|
@@ -8498,7 +8538,7 @@ const Zn = ke.forwardRef(
|
|
|
8498
8538
|
"inputSize",
|
|
8499
8539
|
"isLoading"
|
|
8500
8540
|
]);
|
|
8501
|
-
const g = Yt(), x = s != null ? s : i, b = () => /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: /* @__PURE__ */ n(mt, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */
|
|
8541
|
+
const g = Yt(), x = s != null ? s : i, b = () => /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: /* @__PURE__ */ n(mt, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */ N(
|
|
8502
8542
|
Gt,
|
|
8503
8543
|
{
|
|
8504
8544
|
onSelect: () => o(y),
|
|
@@ -8510,7 +8550,7 @@ const Zn = ke.forwardRef(
|
|
|
8510
8550
|
},
|
|
8511
8551
|
h
|
|
8512
8552
|
)) }) }) });
|
|
8513
|
-
return /* @__PURE__ */
|
|
8553
|
+
return /* @__PURE__ */ N("div", { className: "relative flex-1", children: [
|
|
8514
8554
|
/* @__PURE__ */ n(
|
|
8515
8555
|
$n,
|
|
8516
8556
|
F(w({
|
|
@@ -8529,9 +8569,9 @@ const Zn = ke.forwardRef(
|
|
|
8529
8569
|
maskChar: null,
|
|
8530
8570
|
onPaste: (y) => {
|
|
8531
8571
|
y.preventDefault();
|
|
8532
|
-
const h = y.clipboardData.getData("text/plain"), m = y.target,
|
|
8572
|
+
const h = y.clipboardData.getData("text/plain"), m = y.target, I = Oe.parsePhoneNumber(h);
|
|
8533
8573
|
let M = "";
|
|
8534
|
-
!(
|
|
8574
|
+
!(I != null && I.country) && (h.startsWith("+8") || h.startsWith("8")) ? M = `+${h.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && h.startsWith("7") ? M = `+${h}` : M = h, m.value = M;
|
|
8535
8575
|
const C = F(w({}, y), {
|
|
8536
8576
|
target: m
|
|
8537
8577
|
});
|
|
@@ -8544,8 +8584,8 @@ const Zn = ke.forwardRef(
|
|
|
8544
8584
|
})
|
|
8545
8585
|
),
|
|
8546
8586
|
l && /* @__PURE__ */ n(je, { size: 16, className: "absolute top-1/2 right-2 -translate-y-1/2 text-default" }),
|
|
8547
|
-
!l && t && t.length > 1 && /* @__PURE__ */
|
|
8548
|
-
g === "mobile" && /* @__PURE__ */
|
|
8587
|
+
!l && t && t.length > 1 && /* @__PURE__ */ N(be, { children: [
|
|
8588
|
+
g === "mobile" && /* @__PURE__ */ N(bt, { children: [
|
|
8549
8589
|
/* @__PURE__ */ n(Xe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8550
8590
|
ee,
|
|
8551
8591
|
{
|
|
@@ -8556,7 +8596,7 @@ const Zn = ke.forwardRef(
|
|
|
8556
8596
|
children: /* @__PURE__ */ n(U, { icon: "UnfoldIcon", className: "size-4" })
|
|
8557
8597
|
}
|
|
8558
8598
|
) }),
|
|
8559
|
-
/* @__PURE__ */
|
|
8599
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
8560
8600
|
/* @__PURE__ */ n(qe, {}),
|
|
8561
8601
|
/* @__PURE__ */ n(
|
|
8562
8602
|
et,
|
|
@@ -8569,7 +8609,7 @@ const Zn = ke.forwardRef(
|
|
|
8569
8609
|
)
|
|
8570
8610
|
] })
|
|
8571
8611
|
] }),
|
|
8572
|
-
g !== "mobile" && /* @__PURE__ */
|
|
8612
|
+
g !== "mobile" && /* @__PURE__ */ N(Je, { children: [
|
|
8573
8613
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8574
8614
|
ee,
|
|
8575
8615
|
{
|
|
@@ -8618,7 +8658,7 @@ function Bt({ country: e, countryName: t }) {
|
|
|
8618
8658
|
);
|
|
8619
8659
|
}
|
|
8620
8660
|
const Hr = Xr(
|
|
8621
|
-
({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */
|
|
8661
|
+
({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */ N(Gt, { className: "w-auto gap-2 hover:bg-muted transition-colors", onSelect: () => r(e), children: [
|
|
8622
8662
|
/* @__PURE__ */ n(Bt, { country: e, countryName: t }),
|
|
8623
8663
|
/* @__PURE__ */ n("span", { className: "flex-1 text-[14px]", children: t }),
|
|
8624
8664
|
/* @__PURE__ */ n("span", { className: "text-foreground/50", children: `+${Oe.getCountryCallingCode(e)}` })
|
|
@@ -8641,16 +8681,16 @@ const Hr = Xr(
|
|
|
8641
8681
|
if (!c)
|
|
8642
8682
|
return a;
|
|
8643
8683
|
const m = c.toLowerCase();
|
|
8644
|
-
return a.filter(({ value:
|
|
8684
|
+
return a.filter(({ value: I, label: M }) => {
|
|
8645
8685
|
var R;
|
|
8646
|
-
if (!
|
|
8686
|
+
if (!I)
|
|
8647
8687
|
return !1;
|
|
8648
|
-
const C = ((R = i[
|
|
8649
|
-
return C.includes(m) ||
|
|
8688
|
+
const C = ((R = i[I]) == null ? void 0 : R.toLowerCase()) || M.toLowerCase(), k = Oe.getCountryCallingCode(I);
|
|
8689
|
+
return C.includes(m) || I.toLowerCase().includes(m) || `+${k}`.includes(m);
|
|
8650
8690
|
});
|
|
8651
8691
|
}, [a, c]);
|
|
8652
|
-
return /* @__PURE__ */
|
|
8653
|
-
g === "mobile" && /* @__PURE__ */
|
|
8692
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
8693
|
+
g === "mobile" && /* @__PURE__ */ N(bt, { open: u, onOpenChange: f, children: [
|
|
8654
8694
|
/* @__PURE__ */ n(
|
|
8655
8695
|
Xe,
|
|
8656
8696
|
{
|
|
@@ -8659,7 +8699,7 @@ const Hr = Xr(
|
|
|
8659
8699
|
className: p("border-none bg-white pr-0.5 pl-1", {
|
|
8660
8700
|
"bg-muted": e
|
|
8661
8701
|
}),
|
|
8662
|
-
children: /* @__PURE__ */
|
|
8702
|
+
children: /* @__PURE__ */ N(
|
|
8663
8703
|
ee,
|
|
8664
8704
|
{
|
|
8665
8705
|
type: "button",
|
|
@@ -8694,9 +8734,9 @@ const Hr = Xr(
|
|
|
8694
8734
|
)
|
|
8695
8735
|
}
|
|
8696
8736
|
),
|
|
8697
|
-
/* @__PURE__ */
|
|
8737
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
8698
8738
|
/* @__PURE__ */ n(qe, {}),
|
|
8699
|
-
/* @__PURE__ */ n(et, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */
|
|
8739
|
+
/* @__PURE__ */ n(et, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */ N(ut, { shouldFilter: !0, className: "rounded-xl", children: [
|
|
8700
8740
|
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
8701
8741
|
Lt,
|
|
8702
8742
|
{
|
|
@@ -8709,12 +8749,12 @@ const Hr = Xr(
|
|
|
8709
8749
|
onChange: (m) => d(m.target.value)
|
|
8710
8750
|
}
|
|
8711
8751
|
) }),
|
|
8712
|
-
/* @__PURE__ */ n(ft, { children: /* @__PURE__ */
|
|
8713
|
-
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label:
|
|
8752
|
+
/* @__PURE__ */ n(ft, { children: /* @__PURE__ */ N(Pt, { className: "h-60", children: [
|
|
8753
|
+
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label: I }) => m ? /* @__PURE__ */ n(
|
|
8714
8754
|
Hr,
|
|
8715
8755
|
{
|
|
8716
8756
|
country: m,
|
|
8717
|
-
countryName: i[m] ||
|
|
8757
|
+
countryName: i[m] || I,
|
|
8718
8758
|
onChange: b
|
|
8719
8759
|
},
|
|
8720
8760
|
m
|
|
@@ -8724,7 +8764,7 @@ const Hr = Xr(
|
|
|
8724
8764
|
] }) }) })
|
|
8725
8765
|
] })
|
|
8726
8766
|
] }),
|
|
8727
|
-
g !== "mobile" && /* @__PURE__ */
|
|
8767
|
+
g !== "mobile" && /* @__PURE__ */ N(Je, { open: u, onOpenChange: f, children: [
|
|
8728
8768
|
/* @__PURE__ */ n(
|
|
8729
8769
|
Qe,
|
|
8730
8770
|
{
|
|
@@ -8732,7 +8772,7 @@ const Hr = Xr(
|
|
|
8732
8772
|
className: p("border-none bg-white pr-0.5 pl-1", {
|
|
8733
8773
|
"bg-muted": e
|
|
8734
8774
|
}),
|
|
8735
|
-
children: /* @__PURE__ */
|
|
8775
|
+
children: /* @__PURE__ */ N(
|
|
8736
8776
|
ee,
|
|
8737
8777
|
{
|
|
8738
8778
|
type: "button",
|
|
@@ -8772,7 +8812,7 @@ const Hr = Xr(
|
|
|
8772
8812
|
{
|
|
8773
8813
|
align: "start",
|
|
8774
8814
|
className: "rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] md:w-[400px] lg:w-[252px]",
|
|
8775
|
-
children: /* @__PURE__ */
|
|
8815
|
+
children: /* @__PURE__ */ N(ut, { shouldFilter: !0, className: "rounded-xl", children: [
|
|
8776
8816
|
/* @__PURE__ */ n(
|
|
8777
8817
|
Lt,
|
|
8778
8818
|
{
|
|
@@ -8784,17 +8824,17 @@ const Hr = Xr(
|
|
|
8784
8824
|
onChange: (m) => d(m.target.value)
|
|
8785
8825
|
}
|
|
8786
8826
|
),
|
|
8787
|
-
/* @__PURE__ */ n(ft, { className: "border-border", children: /* @__PURE__ */
|
|
8827
|
+
/* @__PURE__ */ n(ft, { className: "border-border", children: /* @__PURE__ */ N(
|
|
8788
8828
|
Pt,
|
|
8789
8829
|
{
|
|
8790
8830
|
className: "h-60",
|
|
8791
8831
|
onWheel: (m) => m.stopPropagation(),
|
|
8792
8832
|
children: [
|
|
8793
|
-
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label:
|
|
8833
|
+
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label: I }) => m ? /* @__PURE__ */ n(
|
|
8794
8834
|
Hr,
|
|
8795
8835
|
{
|
|
8796
8836
|
country: m,
|
|
8797
|
-
countryName: i[m] ||
|
|
8837
|
+
countryName: i[m] || I,
|
|
8798
8838
|
onChange: b
|
|
8799
8839
|
},
|
|
8800
8840
|
m
|
|
@@ -8809,7 +8849,7 @@ const Hr = Xr(
|
|
|
8809
8849
|
] })
|
|
8810
8850
|
] });
|
|
8811
8851
|
}
|
|
8812
|
-
),
|
|
8852
|
+
), dd = ke.forwardRef(
|
|
8813
8853
|
(b, x) => {
|
|
8814
8854
|
var y = b, {
|
|
8815
8855
|
className: e,
|
|
@@ -8839,7 +8879,7 @@ const Hr = Xr(
|
|
|
8839
8879
|
"isLoading"
|
|
8840
8880
|
]);
|
|
8841
8881
|
var G, H;
|
|
8842
|
-
const [h, m] = ke.useState(() => ""), [
|
|
8882
|
+
const [h, m] = ke.useState(() => ""), [I, M] = ke.useState([]), [C, k] = ke.useState(l), R = (() => {
|
|
8843
8883
|
switch (f) {
|
|
8844
8884
|
case "en":
|
|
8845
8885
|
return Na;
|
|
@@ -8886,7 +8926,7 @@ const Hr = Xr(
|
|
|
8886
8926
|
}, z = (P) => {
|
|
8887
8927
|
m(P);
|
|
8888
8928
|
};
|
|
8889
|
-
return /* @__PURE__ */
|
|
8929
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
8890
8930
|
r && /* @__PURE__ */ n(_, { variant: c === "md" ? "p2" : "p3", weight: "medium", className: "mb-1.5", children: r }),
|
|
8891
8931
|
/* @__PURE__ */ n(
|
|
8892
8932
|
Oe.default,
|
|
@@ -8918,7 +8958,7 @@ const Hr = Xr(
|
|
|
8918
8958
|
smartCaret: !1,
|
|
8919
8959
|
onChange: S,
|
|
8920
8960
|
mask: h,
|
|
8921
|
-
masks:
|
|
8961
|
+
masks: I,
|
|
8922
8962
|
inputSize: c,
|
|
8923
8963
|
isLoading: d,
|
|
8924
8964
|
onMaskChange: z,
|
|
@@ -8955,8 +8995,8 @@ const Hr = Xr(
|
|
|
8955
8995
|
"className"
|
|
8956
8996
|
]);
|
|
8957
8997
|
return /* @__PURE__ */ n(_, w({ textColor: "secondary", className: e }, t));
|
|
8958
|
-
}, ys = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */
|
|
8959
|
-
/* @__PURE__ */
|
|
8998
|
+
}, ys = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ N("div", { className: "flex", children: [
|
|
8999
|
+
/* @__PURE__ */ N("div", { className: "relative mr-3 flex flex-col items-center", children: [
|
|
8960
9000
|
/* @__PURE__ */ n(
|
|
8961
9001
|
"div",
|
|
8962
9002
|
{
|
|
@@ -8969,7 +9009,7 @@ const Hr = Xr(
|
|
|
8969
9009
|
),
|
|
8970
9010
|
a < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
|
|
8971
9011
|
] }),
|
|
8972
|
-
/* @__PURE__ */
|
|
9012
|
+
/* @__PURE__ */ N("div", { className: "flex-1 pb-4", children: [
|
|
8973
9013
|
r.title,
|
|
8974
9014
|
r.additional
|
|
8975
9015
|
] })
|
|
@@ -9074,16 +9114,16 @@ const ws = ge(
|
|
|
9074
9114
|
"onBlur",
|
|
9075
9115
|
"data-testid"
|
|
9076
9116
|
]);
|
|
9077
|
-
const m = a || !1,
|
|
9117
|
+
const m = a || !1, I = o || !1, M = v.useId(), C = s || `${M}-radio`;
|
|
9078
9118
|
return /* @__PURE__ */ n(
|
|
9079
9119
|
"label",
|
|
9080
9120
|
{
|
|
9081
9121
|
htmlFor: C,
|
|
9082
9122
|
className: p(
|
|
9083
9123
|
"select-none",
|
|
9084
|
-
|
|
9124
|
+
I ? "cursor-not-allowed opacity-40" : "cursor-pointer"
|
|
9085
9125
|
),
|
|
9086
|
-
children: /* @__PURE__ */
|
|
9126
|
+
children: /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
9087
9127
|
/* @__PURE__ */ n(
|
|
9088
9128
|
Vt.Item,
|
|
9089
9129
|
F(w({
|
|
@@ -9096,7 +9136,7 @@ const ws = ge(
|
|
|
9096
9136
|
e
|
|
9097
9137
|
),
|
|
9098
9138
|
checked: a,
|
|
9099
|
-
disabled:
|
|
9139
|
+
disabled: I,
|
|
9100
9140
|
value: i,
|
|
9101
9141
|
id: C
|
|
9102
9142
|
}, x), {
|
|
@@ -9113,7 +9153,7 @@ const ws = ge(
|
|
|
9113
9153
|
Ns.displayName = Vt.Item.displayName;
|
|
9114
9154
|
const Is = v.forwardRef((s, i) => {
|
|
9115
9155
|
var l = s, { className: e, label: t, error: r, size: a = "md" } = l, o = B(l, ["className", "label", "error", "size"]);
|
|
9116
|
-
return /* @__PURE__ */
|
|
9156
|
+
return /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
9117
9157
|
t && /* @__PURE__ */ n(
|
|
9118
9158
|
_,
|
|
9119
9159
|
{
|
|
@@ -9200,7 +9240,7 @@ const Cs = ge(
|
|
|
9200
9240
|
"children",
|
|
9201
9241
|
"data-testid"
|
|
9202
9242
|
]);
|
|
9203
|
-
const c = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(U, { icon: t }) : null, d = /* @__PURE__ */
|
|
9243
|
+
const c = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(U, { icon: t }) : null, d = /* @__PURE__ */ N(be, { children: [
|
|
9204
9244
|
r === "start" && c(),
|
|
9205
9245
|
o,
|
|
9206
9246
|
r === "end" && c()
|
|
@@ -9285,7 +9325,7 @@ const Ss = v.forwardRef(
|
|
|
9285
9325
|
]);
|
|
9286
9326
|
const [x, b] = v.useState(!1), y = l !== void 0 ? l : x, h = () => {
|
|
9287
9327
|
l !== void 0 || b(!x), i == null || i();
|
|
9288
|
-
}, m = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(U, { icon: r }) : null,
|
|
9328
|
+
}, m = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(U, { icon: r }) : null, I = /* @__PURE__ */ N(be, { children: [
|
|
9289
9329
|
a === "start" && m(),
|
|
9290
9330
|
o && /* @__PURE__ */ n(
|
|
9291
9331
|
"span",
|
|
@@ -9314,13 +9354,13 @@ const Ss = v.forwardRef(
|
|
|
9314
9354
|
disabled: s,
|
|
9315
9355
|
"data-testid": u
|
|
9316
9356
|
}, f), {
|
|
9317
|
-
children:
|
|
9357
|
+
children: I
|
|
9318
9358
|
})
|
|
9319
9359
|
);
|
|
9320
9360
|
}
|
|
9321
9361
|
);
|
|
9322
9362
|
Ss.displayName = "SingleSegment";
|
|
9323
|
-
function
|
|
9363
|
+
function cd({
|
|
9324
9364
|
steps: e,
|
|
9325
9365
|
currentStep: t,
|
|
9326
9366
|
className: r,
|
|
@@ -9336,8 +9376,8 @@ function dd({
|
|
|
9336
9376
|
"aria-valuenow": t,
|
|
9337
9377
|
children: e.map((o, i) => {
|
|
9338
9378
|
const s = i < t, l = i === t, u = i === e.length - 1;
|
|
9339
|
-
return /* @__PURE__ */
|
|
9340
|
-
/* @__PURE__ */
|
|
9379
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
9380
|
+
/* @__PURE__ */ N(
|
|
9341
9381
|
"div",
|
|
9342
9382
|
{
|
|
9343
9383
|
className: "flex items-center flex-shrink-0",
|
|
@@ -9462,7 +9502,7 @@ const Ts = ge(
|
|
|
9462
9502
|
}, h = (m) => {
|
|
9463
9503
|
l && (l(m, b.current), b.current = void 0);
|
|
9464
9504
|
};
|
|
9465
|
-
return /* @__PURE__ */
|
|
9505
|
+
return /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
9466
9506
|
/* @__PURE__ */ n(
|
|
9467
9507
|
ar.Root,
|
|
9468
9508
|
F(w({
|
|
@@ -9528,7 +9568,7 @@ function qn({
|
|
|
9528
9568
|
}) {
|
|
9529
9569
|
var o, i;
|
|
9530
9570
|
const r = (o = e == null ? void 0 : e.emptyTitle) != null ? o : "Всё чисто", a = (i = e == null ? void 0 : e.emptyDescription) != null ? i : "Добавьте что-нибудь, чтобы начать работу";
|
|
9531
|
-
return e != null && e.emptyText ? /* @__PURE__ */
|
|
9571
|
+
return e != null && e.emptyText ? /* @__PURE__ */ N(
|
|
9532
9572
|
"div",
|
|
9533
9573
|
{
|
|
9534
9574
|
className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
@@ -9547,7 +9587,7 @@ function qn({
|
|
|
9547
9587
|
/* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1", children: /* @__PURE__ */ n(_, { variant: "h4", weight: "medium", children: e.emptyText }) })
|
|
9548
9588
|
]
|
|
9549
9589
|
}
|
|
9550
|
-
) : /* @__PURE__ */
|
|
9590
|
+
) : /* @__PURE__ */ N(
|
|
9551
9591
|
"div",
|
|
9552
9592
|
{
|
|
9553
9593
|
className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
@@ -9563,7 +9603,7 @@ function qn({
|
|
|
9563
9603
|
draggable: !1
|
|
9564
9604
|
}
|
|
9565
9605
|
),
|
|
9566
|
-
/* @__PURE__ */
|
|
9606
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-1", children: [
|
|
9567
9607
|
/* @__PURE__ */ n(_, { variant: "h4", weight: "medium", children: r }),
|
|
9568
9608
|
/* @__PURE__ */ n(_, { variant: "p2", children: a })
|
|
9569
9609
|
] })
|
|
@@ -9642,41 +9682,41 @@ function Ps({
|
|
|
9642
9682
|
}), b.current.clear();
|
|
9643
9683
|
}, []), fe(() => {
|
|
9644
9684
|
if (!l) {
|
|
9645
|
-
x.current = null, g(/* @__PURE__ */ new Set()), b.current.forEach((
|
|
9685
|
+
x.current = null, g(/* @__PURE__ */ new Set()), b.current.forEach((I) => window.clearTimeout(I)), b.current.clear();
|
|
9646
9686
|
return;
|
|
9647
9687
|
}
|
|
9648
|
-
const y = c.map((
|
|
9688
|
+
const y = c.map((I) => I.id);
|
|
9649
9689
|
if (x.current === null) {
|
|
9650
9690
|
x.current = new Set(y);
|
|
9651
9691
|
return;
|
|
9652
9692
|
}
|
|
9653
|
-
const h = x.current, m = y.filter((
|
|
9654
|
-
x.current = new Set(y), m.length !== 0 && (g((
|
|
9655
|
-
const M = new Set(
|
|
9693
|
+
const h = x.current, m = y.filter((I) => !h.has(I));
|
|
9694
|
+
x.current = new Set(y), m.length !== 0 && (g((I) => {
|
|
9695
|
+
const M = new Set(I);
|
|
9656
9696
|
return m.forEach((C) => M.add(C)), M;
|
|
9657
|
-
}), m.forEach((
|
|
9658
|
-
const M = b.current.get(
|
|
9697
|
+
}), m.forEach((I) => {
|
|
9698
|
+
const M = b.current.get(I);
|
|
9659
9699
|
M && window.clearTimeout(M);
|
|
9660
9700
|
const C = window.setTimeout(() => {
|
|
9661
9701
|
g((k) => {
|
|
9662
|
-
if (!k.has(
|
|
9702
|
+
if (!k.has(I))
|
|
9663
9703
|
return k;
|
|
9664
9704
|
const R = new Set(k);
|
|
9665
|
-
return R.delete(
|
|
9666
|
-
}), b.current.delete(
|
|
9705
|
+
return R.delete(I), R;
|
|
9706
|
+
}), b.current.delete(I);
|
|
9667
9707
|
}, 1400);
|
|
9668
|
-
b.current.set(
|
|
9708
|
+
b.current.set(I, C);
|
|
9669
9709
|
}));
|
|
9670
9710
|
}, [l, c]), c.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": u, children: /* @__PURE__ */ n("tr", { "data-testid": f, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, t), className: "p-0", children: /* @__PURE__ */ n(qn, { locale: a }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": u, children: c.map((y) => {
|
|
9671
9711
|
var S, A, z, G;
|
|
9672
|
-
const h = y.index, m = (S = r == null ? void 0 : r(y.original, h)) != null ? S : {},
|
|
9712
|
+
const h = y.index, m = (S = r == null ? void 0 : r(y.original, h)) != null ? S : {}, I = typeof m.onClick == "function", M = m.onClick, C = l && d.has(y.id), k = (H) => {
|
|
9673
9713
|
var P;
|
|
9674
|
-
(P = m.onKeyDown) == null || P.call(m, H),
|
|
9714
|
+
(P = m.onKeyDown) == null || P.call(m, H), I && (H.key !== "Enter" && H.key !== " " || (H.preventDefault(), H.currentTarget.click()));
|
|
9675
9715
|
}, R = p(
|
|
9676
9716
|
"group transition-colors",
|
|
9677
9717
|
C && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
|
|
9678
9718
|
// Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
|
|
9679
|
-
(r ||
|
|
9719
|
+
(r || I) && "cursor-pointer",
|
|
9680
9720
|
m.className
|
|
9681
9721
|
), E = p(
|
|
9682
9722
|
"bg-background group-hover:bg-[#F6F6F7]",
|
|
@@ -9690,10 +9730,10 @@ function Ps({
|
|
|
9690
9730
|
"data-new": C ? "true" : void 0,
|
|
9691
9731
|
className: R,
|
|
9692
9732
|
onClick: M,
|
|
9693
|
-
onKeyDown:
|
|
9694
|
-
role:
|
|
9695
|
-
tabIndex:
|
|
9696
|
-
"aria-label":
|
|
9733
|
+
onKeyDown: I ? k : m.onKeyDown,
|
|
9734
|
+
role: I ? (A = m.role) != null ? A : "button" : m.role,
|
|
9735
|
+
tabIndex: I ? (z = m.tabIndex) != null ? z : 0 : m.tabIndex,
|
|
9736
|
+
"aria-label": I ? (G = m["aria-label"]) != null ? G : "Открыть строку" : m["aria-label"],
|
|
9697
9737
|
children: y.getVisibleCells().map((H) => {
|
|
9698
9738
|
var ae, re, X;
|
|
9699
9739
|
const P = H.column.columnDef.meta, D = y.original, O = h === c.length - 1, W = sn(H.column.columnDef.cell, H.getContext()), V = (ae = P == null ? void 0 : P.cellStyle) == null ? void 0 : ae.call(P, D, h), Y = (re = P == null ? void 0 : P.cellClassName) == null ? void 0 : re.call(P, D, h), j = xr(P == null ? void 0 : P.align), J = vr(P == null ? void 0 : P.fixed, H.column.id, o), te = wr(P == null ? void 0 : P.fixed, H.column.id, i, s);
|
|
@@ -9811,7 +9851,7 @@ function $r({
|
|
|
9811
9851
|
}) {
|
|
9812
9852
|
return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((c) => {
|
|
9813
9853
|
var S;
|
|
9814
|
-
const d = c.column.columnDef.meta, g = c.column.getCanSort(), x = c.column.getIsSorted(), b = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, c.column.id, s), m = wr(d == null ? void 0 : d.fixed, c.column.id, l, u),
|
|
9854
|
+
const d = c.column.columnDef.meta, g = c.column.getCanSort(), x = c.column.getIsSorted(), b = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, c.column.id, s), m = wr(d == null ? void 0 : d.fixed, c.column.id, l, u), I = typeof o == "number" ? `${o}px` : o, M = g ? c.column.getToggleSortingHandler() : void 0, C = c.isPlaceholder ? null : sn(c.column.columnDef.header, c.getContext()), k = t.findIndex((A, z) => Ke(A, z) === c.column.id), R = k >= 0 ? t[k] : void 0, E = typeof (R == null ? void 0 : R.title) == "function" ? R.title({
|
|
9815
9855
|
sortColumns: r.map((A) => ({
|
|
9816
9856
|
column: { dataIndex: A.id, key: A.id, columnKey: A.id },
|
|
9817
9857
|
order: A.desc ? "descend" : "ascend"
|
|
@@ -9833,7 +9873,7 @@ function $r({
|
|
|
9833
9873
|
"group border-b border-default-background p-2",
|
|
9834
9874
|
((d == null ? void 0 : d.fixed) === "left" || (d == null ? void 0 : d.fixed) === "right") && "sticky z-20"
|
|
9835
9875
|
),
|
|
9836
|
-
style: F(w(F(w(w({}, d == null ? void 0 : d.headerStyle), a &&
|
|
9876
|
+
style: F(w(F(w(w({}, d == null ? void 0 : d.headerStyle), a && I !== void 0 ? { top: I } : {}), {
|
|
9837
9877
|
width: d == null ? void 0 : d.width,
|
|
9838
9878
|
minWidth: d == null ? void 0 : d.minWidth,
|
|
9839
9879
|
maxWidth: d == null ? void 0 : d.maxWidth
|
|
@@ -9844,7 +9884,7 @@ function $r({
|
|
|
9844
9884
|
)
|
|
9845
9885
|
}),
|
|
9846
9886
|
onClick: M,
|
|
9847
|
-
children: /* @__PURE__ */
|
|
9887
|
+
children: /* @__PURE__ */ N("div", { className: p("flex w-full items-center gap-2", Es(d == null ? void 0 : d.align)), children: [
|
|
9848
9888
|
E,
|
|
9849
9889
|
g && /* @__PURE__ */ n("span", { title: b, className: "inline-flex items-center", children: /* @__PURE__ */ n(
|
|
9850
9890
|
U,
|
|
@@ -9933,7 +9973,7 @@ function Vs(e, t) {
|
|
|
9933
9973
|
};
|
|
9934
9974
|
}, [e, ...t]), r;
|
|
9935
9975
|
}
|
|
9936
|
-
function
|
|
9976
|
+
function ud({
|
|
9937
9977
|
className: e,
|
|
9938
9978
|
tableClassName: t,
|
|
9939
9979
|
scrollContainerClassName: r,
|
|
@@ -9952,7 +9992,7 @@ function cd({
|
|
|
9952
9992
|
clientSort: y = !1,
|
|
9953
9993
|
rowKey: h,
|
|
9954
9994
|
rowSelection: m,
|
|
9955
|
-
highlightNewRows:
|
|
9995
|
+
highlightNewRows: I = !1,
|
|
9956
9996
|
pagination: M,
|
|
9957
9997
|
showHeader: C = !0,
|
|
9958
9998
|
showSorterTooltip: k = !0,
|
|
@@ -10129,7 +10169,7 @@ function cd({
|
|
|
10129
10169
|
O.current = !1;
|
|
10130
10170
|
}));
|
|
10131
10171
|
}, []);
|
|
10132
|
-
return /* @__PURE__ */
|
|
10172
|
+
return /* @__PURE__ */ N(
|
|
10133
10173
|
"div",
|
|
10134
10174
|
{
|
|
10135
10175
|
className: p(
|
|
@@ -10148,7 +10188,7 @@ function cd({
|
|
|
10148
10188
|
),
|
|
10149
10189
|
style: sa,
|
|
10150
10190
|
onScroll: () => Nr("header"),
|
|
10151
|
-
children: /* @__PURE__ */
|
|
10191
|
+
children: /* @__PURE__ */ N(
|
|
10152
10192
|
"table",
|
|
10153
10193
|
{
|
|
10154
10194
|
className: p(
|
|
@@ -10191,7 +10231,7 @@ function cd({
|
|
|
10191
10231
|
),
|
|
10192
10232
|
style: la,
|
|
10193
10233
|
onScroll: () => Nr("body"),
|
|
10194
|
-
children: /* @__PURE__ */
|
|
10234
|
+
children: /* @__PURE__ */ N(
|
|
10195
10235
|
"table",
|
|
10196
10236
|
{
|
|
10197
10237
|
className: p(
|
|
@@ -10236,7 +10276,7 @@ function cd({
|
|
|
10236
10276
|
stickyOffsets: Se,
|
|
10237
10277
|
fixedShadowEdges: me,
|
|
10238
10278
|
scrollState: It,
|
|
10239
|
-
highlightNewRows:
|
|
10279
|
+
highlightNewRows: I,
|
|
10240
10280
|
tbodyDataTestId: S,
|
|
10241
10281
|
rowDataTestId: A
|
|
10242
10282
|
}
|
|
@@ -10268,8 +10308,8 @@ function Ws({
|
|
|
10268
10308
|
className: "animate-pulse",
|
|
10269
10309
|
role: "status",
|
|
10270
10310
|
"aria-label": "Загрузка карточки",
|
|
10271
|
-
children: /* @__PURE__ */
|
|
10272
|
-
/* @__PURE__ */
|
|
10311
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-3", children: [
|
|
10312
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-start justify-between gap-3", children: [
|
|
10273
10313
|
/* @__PURE__ */ n(
|
|
10274
10314
|
"div",
|
|
10275
10315
|
{
|
|
@@ -10286,7 +10326,7 @@ function Ws({
|
|
|
10286
10326
|
)
|
|
10287
10327
|
] }),
|
|
10288
10328
|
/* @__PURE__ */ n("div", { className: "h-px w-full bg-default-background/70" }),
|
|
10289
|
-
/* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: o }).map((u, f) => /* @__PURE__ */
|
|
10329
|
+
/* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: o }).map((u, f) => /* @__PURE__ */ N(
|
|
10290
10330
|
"div",
|
|
10291
10331
|
{
|
|
10292
10332
|
className: "flex w-full items-center justify-between gap-3",
|
|
@@ -10309,7 +10349,7 @@ function Ws({
|
|
|
10309
10349
|
},
|
|
10310
10350
|
`card_skeleton_${l}_${f}`
|
|
10311
10351
|
)) }),
|
|
10312
|
-
/* @__PURE__ */
|
|
10352
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-center justify-end gap-2 pt-1", children: [
|
|
10313
10353
|
/* @__PURE__ */ n(
|
|
10314
10354
|
"div",
|
|
10315
10355
|
{
|
|
@@ -10330,7 +10370,7 @@ function Ws({
|
|
|
10330
10370
|
`card_skeleton_${l}`
|
|
10331
10371
|
)) });
|
|
10332
10372
|
}
|
|
10333
|
-
function
|
|
10373
|
+
function fd({
|
|
10334
10374
|
items: e,
|
|
10335
10375
|
loading: t,
|
|
10336
10376
|
loadingRows: r,
|
|
@@ -10352,7 +10392,7 @@ function ud({
|
|
|
10352
10392
|
const x = (M = s == null ? void 0 : s(d, g)) != null ? M : {}, b = typeof x.onClick == "function", y = (C = i == null ? void 0 : i(d, g)) != null ? C : g, h = x.onClick, m = (S) => {
|
|
10353
10393
|
var A;
|
|
10354
10394
|
(A = x.onKeyDown) == null || A.call(x, S), b && (S.key !== "Enter" && S.key !== " " || (S.preventDefault(), S.currentTarget.click()));
|
|
10355
|
-
},
|
|
10395
|
+
}, I = p(
|
|
10356
10396
|
b && "cursor-pointer hover:bg-[#F6F6F7]",
|
|
10357
10397
|
b && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
10358
10398
|
x.className
|
|
@@ -10364,7 +10404,7 @@ function ud({
|
|
|
10364
10404
|
radius: "lg",
|
|
10365
10405
|
padding: "xs"
|
|
10366
10406
|
}, x), {
|
|
10367
|
-
className:
|
|
10407
|
+
className: I,
|
|
10368
10408
|
onClick: h,
|
|
10369
10409
|
onKeyDown: b ? m : x.onKeyDown,
|
|
10370
10410
|
role: b ? (k = x.role) != null ? k : "button" : x.role,
|
|
@@ -10376,7 +10416,7 @@ function ud({
|
|
|
10376
10416
|
);
|
|
10377
10417
|
}) });
|
|
10378
10418
|
}
|
|
10379
|
-
function
|
|
10419
|
+
function md({
|
|
10380
10420
|
title: e,
|
|
10381
10421
|
controls: t,
|
|
10382
10422
|
onChange: r,
|
|
@@ -10387,7 +10427,7 @@ function fd({
|
|
|
10387
10427
|
const s = (l, u) => {
|
|
10388
10428
|
r(l, u);
|
|
10389
10429
|
};
|
|
10390
|
-
return /* @__PURE__ */
|
|
10430
|
+
return /* @__PURE__ */ N(Je, { children: [
|
|
10391
10431
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
10392
10432
|
ee,
|
|
10393
10433
|
{
|
|
@@ -10402,20 +10442,20 @@ function fd({
|
|
|
10402
10442
|
title: a
|
|
10403
10443
|
}
|
|
10404
10444
|
) }),
|
|
10405
|
-
/* @__PURE__ */
|
|
10445
|
+
/* @__PURE__ */ N(
|
|
10406
10446
|
Ge,
|
|
10407
10447
|
{
|
|
10408
10448
|
align: "end",
|
|
10409
10449
|
sideOffset: 8,
|
|
10410
10450
|
className: "w-72 rounded-lg border border-border bg-popover p-1 shadow-md",
|
|
10411
10451
|
children: [
|
|
10412
|
-
e && /* @__PURE__ */
|
|
10452
|
+
e && /* @__PURE__ */ N("div", { className: "px-3 pt-2", children: [
|
|
10413
10453
|
/* @__PURE__ */ n(_, { weight: "bold", children: e }),
|
|
10414
10454
|
/* @__PURE__ */ n(Yi, { className: "mt-2" })
|
|
10415
10455
|
] }),
|
|
10416
10456
|
/* @__PURE__ */ n("div", { className: "flex flex-col", "data-testid": o, children: t.map((l) => {
|
|
10417
10457
|
const u = () => s(l.key, !l.enabled);
|
|
10418
|
-
return /* @__PURE__ */
|
|
10458
|
+
return /* @__PURE__ */ N(
|
|
10419
10459
|
"label",
|
|
10420
10460
|
{
|
|
10421
10461
|
className: p(
|
|
@@ -10470,7 +10510,7 @@ const Gs = ge(
|
|
|
10470
10510
|
},
|
|
10471
10511
|
defaultVariants: { size: "md", variant: "default" }
|
|
10472
10512
|
}
|
|
10473
|
-
),
|
|
10513
|
+
), pd = We.Root, Hs = v.forwardRef((i, o) => {
|
|
10474
10514
|
var s = i, { size: e = "md", variant: t = "default", className: r } = s, a = B(s, ["size", "variant", "className"]);
|
|
10475
10515
|
return /* @__PURE__ */ n(
|
|
10476
10516
|
We.List,
|
|
@@ -10516,7 +10556,7 @@ const Us = v.forwardRef(
|
|
|
10516
10556
|
"disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400 disabled:shadow-none",
|
|
10517
10557
|
r
|
|
10518
10558
|
), x = () => a ? v.isValidElement(a) ? a : /* @__PURE__ */ n(U, { icon: a }) : null;
|
|
10519
|
-
return /* @__PURE__ */
|
|
10559
|
+
return /* @__PURE__ */ N(
|
|
10520
10560
|
We.Trigger,
|
|
10521
10561
|
F(w({
|
|
10522
10562
|
ref: f,
|
|
@@ -10611,7 +10651,7 @@ const $s = ge(
|
|
|
10611
10651
|
"className",
|
|
10612
10652
|
"data-testid"
|
|
10613
10653
|
]);
|
|
10614
|
-
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null, b = /* @__PURE__ */
|
|
10654
|
+
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null, b = /* @__PURE__ */ N(be, { children: [
|
|
10615
10655
|
a === "start" && x(),
|
|
10616
10656
|
s,
|
|
10617
10657
|
a === "end" && x()
|
|
@@ -10706,9 +10746,9 @@ const Js = v.forwardRef(
|
|
|
10706
10746
|
"size"
|
|
10707
10747
|
]);
|
|
10708
10748
|
const h = Zs(s, l, g.placeholder, g.value);
|
|
10709
|
-
return Qr(x, () => h.current, [h]), /* @__PURE__ */
|
|
10749
|
+
return Qr(x, () => h.current, [h]), /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
10710
10750
|
a && /* @__PURE__ */ n(_, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
|
|
10711
|
-
/* @__PURE__ */
|
|
10751
|
+
/* @__PURE__ */ N(
|
|
10712
10752
|
"div",
|
|
10713
10753
|
{
|
|
10714
10754
|
className: p(
|
|
@@ -10789,7 +10829,7 @@ function Yr(e) {
|
|
|
10789
10829
|
const [r, a] = e.split(":").map(Number);
|
|
10790
10830
|
return r >= 0 && r <= 23 && a >= 0 && a <= 59;
|
|
10791
10831
|
}
|
|
10792
|
-
function
|
|
10832
|
+
function hd({
|
|
10793
10833
|
time: e,
|
|
10794
10834
|
onSelect: t,
|
|
10795
10835
|
disabled: r = !1,
|
|
@@ -10812,7 +10852,7 @@ function pd({
|
|
|
10812
10852
|
}, y = (h) => {
|
|
10813
10853
|
f == null || f(h), d && !Yr(d) && (g(""), t == null || t(void 0));
|
|
10814
10854
|
};
|
|
10815
|
-
return /* @__PURE__ */
|
|
10855
|
+
return /* @__PURE__ */ N("div", { className: p("w-full", o), children: [
|
|
10816
10856
|
u && /* @__PURE__ */ n(
|
|
10817
10857
|
_,
|
|
10818
10858
|
{
|
|
@@ -10825,7 +10865,7 @@ function pd({
|
|
|
10825
10865
|
children: u
|
|
10826
10866
|
}
|
|
10827
10867
|
),
|
|
10828
|
-
/* @__PURE__ */
|
|
10868
|
+
/* @__PURE__ */ N("div", { className: "relative flex w-full items-center", children: [
|
|
10829
10869
|
/* @__PURE__ */ n(
|
|
10830
10870
|
"input",
|
|
10831
10871
|
{
|
|
@@ -10854,7 +10894,7 @@ function pd({
|
|
|
10854
10894
|
"data-testid": c
|
|
10855
10895
|
}
|
|
10856
10896
|
),
|
|
10857
|
-
/* @__PURE__ */
|
|
10897
|
+
/* @__PURE__ */ N("div", { className: "pointer-events-none absolute right-3 flex items-center", children: [
|
|
10858
10898
|
/* @__PURE__ */ n(U, { icon: "TimeIcon", className: "text-muted-foreground" }),
|
|
10859
10899
|
s && /* @__PURE__ */ n(
|
|
10860
10900
|
U,
|
|
@@ -10873,7 +10913,7 @@ function pd({
|
|
|
10873
10913
|
function qs(e, t) {
|
|
10874
10914
|
return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
|
|
10875
10915
|
}
|
|
10876
|
-
function
|
|
10916
|
+
function gd({
|
|
10877
10917
|
value: e,
|
|
10878
10918
|
onTimeChange: t,
|
|
10879
10919
|
placeholder: r = {
|
|
@@ -10897,7 +10937,7 @@ function hd({
|
|
|
10897
10937
|
hasToError: () => P(s) ? !0 : D(s) && !!s.to,
|
|
10898
10938
|
getErrorText: () => P(s) ? s : D(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
|
|
10899
10939
|
};
|
|
10900
|
-
}, [s]), { hasAnyError:
|
|
10940
|
+
}, [s]), { hasAnyError: I, hasFromError: M, hasToError: C, getErrorText: k } = m;
|
|
10901
10941
|
v.useEffect(() => {
|
|
10902
10942
|
g((e == null ? void 0 : e.from) || ""), b((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
|
|
10903
10943
|
}, [e]);
|
|
@@ -10928,7 +10968,7 @@ function hd({
|
|
|
10928
10968
|
}, H = (P) => {
|
|
10929
10969
|
f == null || f(P), x && !E(x) && (b(""), S(d, ""));
|
|
10930
10970
|
};
|
|
10931
|
-
return /* @__PURE__ */
|
|
10971
|
+
return /* @__PURE__ */ N("div", { className: p("w-full", o), children: [
|
|
10932
10972
|
u && /* @__PURE__ */ n(
|
|
10933
10973
|
_,
|
|
10934
10974
|
{
|
|
@@ -10941,7 +10981,7 @@ function hd({
|
|
|
10941
10981
|
children: u
|
|
10942
10982
|
}
|
|
10943
10983
|
),
|
|
10944
|
-
/* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */
|
|
10984
|
+
/* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */ N(
|
|
10945
10985
|
"div",
|
|
10946
10986
|
{
|
|
10947
10987
|
className: p(
|
|
@@ -10951,15 +10991,15 @@ function hd({
|
|
|
10951
10991
|
"enabled:hover:border-1",
|
|
10952
10992
|
"bg-background w-full",
|
|
10953
10993
|
{
|
|
10954
|
-
"border-border hover:border-hover-input-primary enabled:hover:border-primary focus-within:border-primary focus-within:shadow-focus": !
|
|
10955
|
-
"border-destructive focus-within:border-destructive enabled:hover:border-destructive focus:shadow-error":
|
|
10994
|
+
"border-border hover:border-hover-input-primary enabled:hover:border-primary focus-within:border-primary focus-within:shadow-focus": !I(),
|
|
10995
|
+
"border-destructive focus-within:border-destructive enabled:hover:border-destructive focus:shadow-error": I(),
|
|
10956
10996
|
"h-8 px-2.5 pt-1.5 pr-2 pb-1.5 text-[14px] leading-5": i === "md",
|
|
10957
10997
|
"h-10 px-3 pt-2 pr-3 pb-2 text-[16px] leading-[22px]": i === "lg",
|
|
10958
10998
|
"bg-muted text-muted-foreground cursor-not-allowed": a
|
|
10959
10999
|
}
|
|
10960
11000
|
),
|
|
10961
11001
|
children: [
|
|
10962
|
-
/* @__PURE__ */
|
|
11002
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
10963
11003
|
/* @__PURE__ */ n(
|
|
10964
11004
|
"input",
|
|
10965
11005
|
{
|
|
@@ -11016,9 +11056,9 @@ function hd({
|
|
|
11016
11056
|
}
|
|
11017
11057
|
)
|
|
11018
11058
|
] }),
|
|
11019
|
-
/* @__PURE__ */
|
|
11059
|
+
/* @__PURE__ */ N("div", { className: "pointer-events-none ml-2 flex items-center gap-1.5", children: [
|
|
11020
11060
|
/* @__PURE__ */ n(U, { icon: "TimeIcon", className: "text-muted-foreground" }),
|
|
11021
|
-
|
|
11061
|
+
I() && /* @__PURE__ */ n(
|
|
11022
11062
|
U,
|
|
11023
11063
|
{
|
|
11024
11064
|
icon: "ErrorFillIcon",
|
|
@@ -11030,12 +11070,12 @@ function hd({
|
|
|
11030
11070
|
]
|
|
11031
11071
|
}
|
|
11032
11072
|
) }),
|
|
11033
|
-
l && !
|
|
11034
|
-
|
|
11073
|
+
l && !I() && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: l }),
|
|
11074
|
+
I() && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: k() })
|
|
11035
11075
|
] });
|
|
11036
11076
|
}
|
|
11037
|
-
const
|
|
11038
|
-
/* @__PURE__ */
|
|
11077
|
+
const bd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ N("div", { className: "flex", children: [
|
|
11078
|
+
/* @__PURE__ */ N("div", { className: "relative mr-4 flex flex-col items-center", children: [
|
|
11039
11079
|
/* @__PURE__ */ n(
|
|
11040
11080
|
"div",
|
|
11041
11081
|
{
|
|
@@ -11048,8 +11088,8 @@ const gd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className:
|
|
|
11048
11088
|
),
|
|
11049
11089
|
a < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
|
|
11050
11090
|
] }),
|
|
11051
|
-
/* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */
|
|
11052
|
-
/* @__PURE__ */
|
|
11091
|
+
/* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */ N("div", { className: "flex items-start justify-between", children: [
|
|
11092
|
+
/* @__PURE__ */ N("div", { className: "flex-1", children: [
|
|
11053
11093
|
/* @__PURE__ */ n(
|
|
11054
11094
|
_,
|
|
11055
11095
|
{
|
|
@@ -11108,7 +11148,7 @@ function st(e, t, r) {
|
|
|
11108
11148
|
function el(e, t) {
|
|
11109
11149
|
return le(e, t);
|
|
11110
11150
|
}
|
|
11111
|
-
const
|
|
11151
|
+
const xd = Object.assign(el, {
|
|
11112
11152
|
success: (e, t) => {
|
|
11113
11153
|
const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : st(
|
|
11114
11154
|
e,
|
|
@@ -11276,7 +11316,7 @@ const bd = Object.assign(el, {
|
|
|
11276
11316
|
}, o));
|
|
11277
11317
|
}
|
|
11278
11318
|
});
|
|
11279
|
-
function
|
|
11319
|
+
function yd(t) {
|
|
11280
11320
|
var e = B(t, []);
|
|
11281
11321
|
return /* @__PURE__ */ n(
|
|
11282
11322
|
Ca,
|
|
@@ -11309,7 +11349,7 @@ function xd(t) {
|
|
|
11309
11349
|
}, e)
|
|
11310
11350
|
);
|
|
11311
11351
|
}
|
|
11312
|
-
const
|
|
11352
|
+
const vd = _e.Provider, tl = 120, ea = v.createContext(null);
|
|
11313
11353
|
function rl() {
|
|
11314
11354
|
const [e, t] = v.useState(!1);
|
|
11315
11355
|
return v.useEffect(() => {
|
|
@@ -11321,7 +11361,7 @@ function rl() {
|
|
|
11321
11361
|
return a(), r.addEventListener("change", a), () => r.removeEventListener("change", a);
|
|
11322
11362
|
}, []), e;
|
|
11323
11363
|
}
|
|
11324
|
-
function
|
|
11364
|
+
function wd(o) {
|
|
11325
11365
|
var i = o, {
|
|
11326
11366
|
open: e,
|
|
11327
11367
|
defaultOpen: t,
|
|
@@ -11376,7 +11416,7 @@ const al = v.forwardRef(
|
|
|
11376
11416
|
"side",
|
|
11377
11417
|
"children"
|
|
11378
11418
|
]);
|
|
11379
|
-
return /* @__PURE__ */ n(_e.Portal, { children: /* @__PURE__ */
|
|
11419
|
+
return /* @__PURE__ */ n(_e.Portal, { children: /* @__PURE__ */ N(
|
|
11380
11420
|
_e.Content,
|
|
11381
11421
|
F(w({
|
|
11382
11422
|
ref: s,
|
|
@@ -11500,7 +11540,7 @@ function ra({
|
|
|
11500
11540
|
return t && D.size > t ? `Максимальный размер файла ${(t / 1024 / 1024).toFixed(2)}MB` : null;
|
|
11501
11541
|
},
|
|
11502
11542
|
[e, t]
|
|
11503
|
-
),
|
|
11543
|
+
), I = $(
|
|
11504
11544
|
(D, O) => {
|
|
11505
11545
|
g == null || g({
|
|
11506
11546
|
file: D,
|
|
@@ -11517,7 +11557,7 @@ function ra({
|
|
|
11517
11557
|
const V = F(w({}, W), {
|
|
11518
11558
|
status: "uploading"
|
|
11519
11559
|
});
|
|
11520
|
-
O = O.map((Y) => Y.uid === W.uid ? V : Y),
|
|
11560
|
+
O = O.map((Y) => Y.uid === W.uid ? V : Y), I(V, O);
|
|
11521
11561
|
try {
|
|
11522
11562
|
const Y = new FormData();
|
|
11523
11563
|
Y.append(s, W.originFileObj);
|
|
@@ -11537,27 +11577,27 @@ function ra({
|
|
|
11537
11577
|
response: te,
|
|
11538
11578
|
error: re
|
|
11539
11579
|
});
|
|
11540
|
-
O = O.map((K) => K.uid === W.uid ? X : K),
|
|
11580
|
+
O = O.map((K) => K.uid === W.uid ? X : K), I(X, O), i == null || i(re);
|
|
11541
11581
|
continue;
|
|
11542
11582
|
}
|
|
11543
11583
|
const ae = F(w({}, V), {
|
|
11544
11584
|
status: "done",
|
|
11545
11585
|
response: te
|
|
11546
11586
|
});
|
|
11547
|
-
O = O.map((re) => re.uid === W.uid ? ae : re),
|
|
11587
|
+
O = O.map((re) => re.uid === W.uid ? ae : re), I(ae, O);
|
|
11548
11588
|
} catch (Y) {
|
|
11549
11589
|
const j = Jr(Y), J = F(w({}, V), {
|
|
11550
11590
|
status: "error",
|
|
11551
11591
|
error: j
|
|
11552
11592
|
});
|
|
11553
|
-
O = O.map((te) => te.uid === W.uid ? J : te),
|
|
11593
|
+
O = O.map((te) => te.uid === W.uid ? J : te), I(J, O), i == null || i(j);
|
|
11554
11594
|
}
|
|
11555
11595
|
}
|
|
11556
11596
|
}),
|
|
11557
11597
|
[
|
|
11558
11598
|
l,
|
|
11559
11599
|
f,
|
|
11560
|
-
|
|
11600
|
+
I,
|
|
11561
11601
|
c,
|
|
11562
11602
|
u,
|
|
11563
11603
|
s,
|
|
@@ -11688,7 +11728,7 @@ const na = v.forwardRef(
|
|
|
11688
11728
|
classNames: y,
|
|
11689
11729
|
dropzoneText: h = "Добавьте файл для загрузки",
|
|
11690
11730
|
hint: m,
|
|
11691
|
-
buttonText:
|
|
11731
|
+
buttonText: I = "Выбрать файл",
|
|
11692
11732
|
errorText: M,
|
|
11693
11733
|
name: C,
|
|
11694
11734
|
action: k,
|
|
@@ -11726,7 +11766,7 @@ const na = v.forwardRef(
|
|
|
11726
11766
|
const J = 1024, te = ["Bytes", "KB", "MB", "GB"], ae = Math.floor(Math.log(j) / Math.log(J));
|
|
11727
11767
|
return `${Math.round(j / Ar(J, ae))} ${te[ae]}`;
|
|
11728
11768
|
};
|
|
11729
|
-
return /* @__PURE__ */
|
|
11769
|
+
return /* @__PURE__ */ N(
|
|
11730
11770
|
"div",
|
|
11731
11771
|
{
|
|
11732
11772
|
ref: H,
|
|
@@ -11745,8 +11785,8 @@ const na = v.forwardRef(
|
|
|
11745
11785
|
disabled: a
|
|
11746
11786
|
}
|
|
11747
11787
|
),
|
|
11748
|
-
(d.length === 0 || b) && /* @__PURE__ */
|
|
11749
|
-
/* @__PURE__ */
|
|
11788
|
+
(d.length === 0 || b) && /* @__PURE__ */ N("div", { className: "flex flex-col gap-1.5", children: [
|
|
11789
|
+
/* @__PURE__ */ N(
|
|
11750
11790
|
"div",
|
|
11751
11791
|
F(w({}, V({
|
|
11752
11792
|
className: p(
|
|
@@ -11758,9 +11798,9 @@ const na = v.forwardRef(
|
|
|
11758
11798
|
)
|
|
11759
11799
|
})), {
|
|
11760
11800
|
children: [
|
|
11761
|
-
/* @__PURE__ */
|
|
11801
|
+
/* @__PURE__ */ N("div", { className: p("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
|
|
11762
11802
|
/* @__PURE__ */ n(U, { icon: "UploadIcon", size: 32, className: "text-secondary" }),
|
|
11763
|
-
/* @__PURE__ */
|
|
11803
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
|
|
11764
11804
|
/* @__PURE__ */ n(
|
|
11765
11805
|
_,
|
|
11766
11806
|
{
|
|
@@ -11774,7 +11814,7 @@ const na = v.forwardRef(
|
|
|
11774
11814
|
] }),
|
|
11775
11815
|
M && /* @__PURE__ */ n(_, { variant: "p2", textColor: "destructive", className: "text-center", children: M })
|
|
11776
11816
|
] }),
|
|
11777
|
-
l && /* @__PURE__ */ n(ee, { variant: "dashed", size: "md", disabled: a, children:
|
|
11817
|
+
l && /* @__PURE__ */ n(ee, { variant: "dashed", size: "md", disabled: a, children: I })
|
|
11778
11818
|
]
|
|
11779
11819
|
})
|
|
11780
11820
|
),
|
|
@@ -11791,7 +11831,7 @@ const na = v.forwardRef(
|
|
|
11791
11831
|
x && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(vs, { value: g }) }),
|
|
11792
11832
|
d.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: d.map((j) => {
|
|
11793
11833
|
const J = j.status === "error", te = J ? "FileErrorIcon" : "FileSuccessIcon";
|
|
11794
|
-
return /* @__PURE__ */
|
|
11834
|
+
return /* @__PURE__ */ N(
|
|
11795
11835
|
$e,
|
|
11796
11836
|
{
|
|
11797
11837
|
bordered: !0,
|
|
@@ -11802,7 +11842,7 @@ const na = v.forwardRef(
|
|
|
11802
11842
|
justify: "between",
|
|
11803
11843
|
className: p("group transition-colors border-border"),
|
|
11804
11844
|
children: [
|
|
11805
|
-
/* @__PURE__ */
|
|
11845
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
11806
11846
|
/* @__PURE__ */ n(
|
|
11807
11847
|
U,
|
|
11808
11848
|
{
|
|
@@ -11810,7 +11850,7 @@ const na = v.forwardRef(
|
|
|
11810
11850
|
size: 24
|
|
11811
11851
|
}
|
|
11812
11852
|
),
|
|
11813
|
-
/* @__PURE__ */
|
|
11853
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11814
11854
|
/* @__PURE__ */ n(_, { variant: "p2", className: "truncate", children: j.name }),
|
|
11815
11855
|
(J ? !!j.error : j.size !== void 0) && /* @__PURE__ */ n(
|
|
11816
11856
|
_,
|
|
@@ -11866,7 +11906,7 @@ function sl({
|
|
|
11866
11906
|
children: y,
|
|
11867
11907
|
className: h,
|
|
11868
11908
|
onClick: m,
|
|
11869
|
-
buttonProps:
|
|
11909
|
+
buttonProps: I
|
|
11870
11910
|
}) {
|
|
11871
11911
|
const { inputRef: M, handleInputChange: C, handleTriggerClick: k, getTriggerProps: R } = ra({
|
|
11872
11912
|
accept: t,
|
|
@@ -11884,7 +11924,7 @@ function sl({
|
|
|
11884
11924
|
withCredentials: x,
|
|
11885
11925
|
onChange: b
|
|
11886
11926
|
});
|
|
11887
|
-
return /* @__PURE__ */
|
|
11927
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
11888
11928
|
/* @__PURE__ */ n(
|
|
11889
11929
|
"input",
|
|
11890
11930
|
{
|
|
@@ -11907,8 +11947,8 @@ function sl({
|
|
|
11907
11947
|
})
|
|
11908
11948
|
) : /* @__PURE__ */ n(
|
|
11909
11949
|
ee,
|
|
11910
|
-
F(w({},
|
|
11911
|
-
className: p(h,
|
|
11950
|
+
F(w({}, I), {
|
|
11951
|
+
className: p(h, I == null ? void 0 : I.className),
|
|
11912
11952
|
disabled: o,
|
|
11913
11953
|
onClick: (E) => {
|
|
11914
11954
|
m == null || m(E), E.defaultPrevented || k();
|
|
@@ -12004,9 +12044,10 @@ export {
|
|
|
12004
12044
|
bn as MOBILE_BREAKPOINT,
|
|
12005
12045
|
$n as MaskedInput,
|
|
12006
12046
|
Mo as MultiSelect,
|
|
12007
|
-
id as
|
|
12008
|
-
sd as
|
|
12009
|
-
ld as
|
|
12047
|
+
id as NumericTimeline,
|
|
12048
|
+
sd as OtpInput,
|
|
12049
|
+
ld as Pagination,
|
|
12050
|
+
dd as PhoneInput,
|
|
12010
12051
|
Jn as Pointline,
|
|
12011
12052
|
Je as Popover,
|
|
12012
12053
|
Gl as PopoverAnchor,
|
|
@@ -12032,24 +12073,24 @@ export {
|
|
|
12032
12073
|
Jl as SimpleCarousel,
|
|
12033
12074
|
Ss as SingleSegment,
|
|
12034
12075
|
je as Spinner,
|
|
12035
|
-
|
|
12076
|
+
cd as Stepper,
|
|
12036
12077
|
Rs as Switch,
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12078
|
+
ud as Table,
|
|
12079
|
+
fd as TableCards,
|
|
12080
|
+
md as TableSettings,
|
|
12081
|
+
pd as Tabs,
|
|
12041
12082
|
Ks as TabsContent,
|
|
12042
12083
|
Hs as TabsList,
|
|
12043
12084
|
Us as TabsTrigger,
|
|
12044
12085
|
Ys as Tag,
|
|
12045
12086
|
Js as Textarea,
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12087
|
+
hd as TimePicker,
|
|
12088
|
+
gd as TimeRangePicker,
|
|
12089
|
+
bd as Timeline,
|
|
12090
|
+
yd as Toaster,
|
|
12091
|
+
wd as Tooltip,
|
|
12051
12092
|
al as TooltipContent,
|
|
12052
|
-
|
|
12093
|
+
vd as TooltipProvider,
|
|
12053
12094
|
nl as TooltipTrigger,
|
|
12054
12095
|
_ as Typography,
|
|
12055
12096
|
ll as Uploader,
|
|
@@ -12068,7 +12109,7 @@ export {
|
|
|
12068
12109
|
Ts as switchVariants,
|
|
12069
12110
|
$s as tagVariants,
|
|
12070
12111
|
Ms as thumbVariants,
|
|
12071
|
-
|
|
12112
|
+
xd as toast,
|
|
12072
12113
|
Lr as typographyVariants,
|
|
12073
12114
|
_n as useCarousel,
|
|
12074
12115
|
Ut as useCarouselContext,
|