konsolpro-custom-ui 0.0.413 → 0.0.415
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
|
@@ -70,7 +70,7 @@ import * as _e from "@radix-ui/react-tooltip";
|
|
|
70
70
|
import { useFloating as $r, offset as Yr, flip as Zr, shift as Jr, size as Qr, autoUpdate as Xr, useTransitionStyles as qr } from "@floating-ui/react";
|
|
71
71
|
import { useCombobox as me } from "downshift";
|
|
72
72
|
import { flexRender as en, useReactTable as ha, getSortedRowModel as ga, getCoreRowModel as ba } from "@tanstack/react-table";
|
|
73
|
-
function
|
|
73
|
+
function m(...e) {
|
|
74
74
|
return ia(oa(e));
|
|
75
75
|
}
|
|
76
76
|
const Ct = ["purple", "cyan", "blue", "volcano", "magenta"];
|
|
@@ -453,7 +453,7 @@ function U({
|
|
|
453
453
|
style: D(w({}, t), {
|
|
454
454
|
fontSize: a
|
|
455
455
|
}),
|
|
456
|
-
className:
|
|
456
|
+
className: m("inline-flex items-center justify-center", r),
|
|
457
457
|
children: /* @__PURE__ */ n(or, { fallback: null, children: /* @__PURE__ */ n(o, {}) })
|
|
458
458
|
}
|
|
459
459
|
) : null;
|
|
@@ -630,7 +630,7 @@ function Rl(r) {
|
|
|
630
630
|
lt.Item,
|
|
631
631
|
w({
|
|
632
632
|
"data-slot": "accordion-item",
|
|
633
|
-
className:
|
|
633
|
+
className: m("border-b last:border-b-0", e)
|
|
634
634
|
}, t)
|
|
635
635
|
);
|
|
636
636
|
}
|
|
@@ -651,7 +651,7 @@ function El(i) {
|
|
|
651
651
|
lt.Trigger,
|
|
652
652
|
D(w({
|
|
653
653
|
"data-slot": "accordion-trigger",
|
|
654
|
-
className:
|
|
654
|
+
className: m(
|
|
655
655
|
"border-border bg-transparent",
|
|
656
656
|
"flex flex-1 items-center justify-between gap-4 rounded-md border-0",
|
|
657
657
|
"py-4 text-left font-medium transition-all outline-none",
|
|
@@ -671,7 +671,7 @@ function El(i) {
|
|
|
671
671
|
icon: "ArrowDownIcon",
|
|
672
672
|
iconProps: { size: 14 },
|
|
673
673
|
type: "button",
|
|
674
|
-
className:
|
|
674
|
+
className: m(
|
|
675
675
|
"handle shrink-0 transition-transform duration-200",
|
|
676
676
|
l
|
|
677
677
|
)
|
|
@@ -695,7 +695,7 @@ function Al(a) {
|
|
|
695
695
|
"data-slot": "accordion-content",
|
|
696
696
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden"
|
|
697
697
|
}, r), {
|
|
698
|
-
children: /* @__PURE__ */ n("div", { className:
|
|
698
|
+
children: /* @__PURE__ */ n("div", { className: m("pt-0 pb-4", e), children: t })
|
|
699
699
|
})
|
|
700
700
|
);
|
|
701
701
|
}
|
|
@@ -716,7 +716,7 @@ const tn = he(
|
|
|
716
716
|
},
|
|
717
717
|
size: {
|
|
718
718
|
sm: "h-6 rounded-md px-2 text-[14px]",
|
|
719
|
-
md: "h-8 rounded-
|
|
719
|
+
md: "h-8 rounded-lg px-3 text-[14px]",
|
|
720
720
|
lg: "h-10 rounded-xl px-4 text-[16px]",
|
|
721
721
|
custom: ""
|
|
722
722
|
},
|
|
@@ -896,7 +896,7 @@ const tn = he(
|
|
|
896
896
|
disabled: u = !1,
|
|
897
897
|
forceState: b,
|
|
898
898
|
"data-testid": x,
|
|
899
|
-
onClick:
|
|
899
|
+
onClick: p
|
|
900
900
|
} = N, y = B(N, [
|
|
901
901
|
"className",
|
|
902
902
|
"variant",
|
|
@@ -919,7 +919,7 @@ const tn = he(
|
|
|
919
919
|
je,
|
|
920
920
|
{
|
|
921
921
|
size: 16,
|
|
922
|
-
className:
|
|
922
|
+
className: m(
|
|
923
923
|
"absolute left-[50%] -translate-x-1/2",
|
|
924
924
|
R()
|
|
925
925
|
)
|
|
@@ -933,7 +933,7 @@ const tn = he(
|
|
|
933
933
|
return /* @__PURE__ */ n(
|
|
934
934
|
M,
|
|
935
935
|
D(w({}, y), {
|
|
936
|
-
className:
|
|
936
|
+
className: m(
|
|
937
937
|
"relative",
|
|
938
938
|
tn({
|
|
939
939
|
variant: t,
|
|
@@ -952,7 +952,7 @@ const tn = he(
|
|
|
952
952
|
ref: h,
|
|
953
953
|
"data-state": k ? "disabled-loading" : void 0,
|
|
954
954
|
onClick: (j) => {
|
|
955
|
-
d || I ||
|
|
955
|
+
d || I || p == null || p(j);
|
|
956
956
|
},
|
|
957
957
|
"data-testid": x,
|
|
958
958
|
children: o ? S() : F
|
|
@@ -1026,8 +1026,8 @@ const Er = he("", {
|
|
|
1026
1026
|
}),
|
|
1027
1027
|
[b]
|
|
1028
1028
|
);
|
|
1029
|
-
let
|
|
1030
|
-
t && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(t) && !a && (
|
|
1029
|
+
let p = a;
|
|
1030
|
+
t && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(t) && !a && (p = "bold");
|
|
1031
1031
|
const y = o;
|
|
1032
1032
|
return b ? /* @__PURE__ */ C(
|
|
1033
1033
|
y,
|
|
@@ -1036,12 +1036,12 @@ const Er = he("", {
|
|
|
1036
1036
|
role: "button",
|
|
1037
1037
|
tabIndex: 0,
|
|
1038
1038
|
onClick: x,
|
|
1039
|
-
className:
|
|
1039
|
+
className: m(
|
|
1040
1040
|
"group hover:text-default inline-flex cursor-pointer items-center select-text",
|
|
1041
1041
|
Er({
|
|
1042
1042
|
variant: t,
|
|
1043
1043
|
textColor: r,
|
|
1044
|
-
weight:
|
|
1044
|
+
weight: p,
|
|
1045
1045
|
className: e
|
|
1046
1046
|
})
|
|
1047
1047
|
)
|
|
@@ -1062,8 +1062,8 @@ const Er = he("", {
|
|
|
1062
1062
|
y,
|
|
1063
1063
|
w({
|
|
1064
1064
|
ref: l,
|
|
1065
|
-
className:
|
|
1066
|
-
Er({ variant: t, textColor: r, weight:
|
|
1065
|
+
className: m(
|
|
1066
|
+
Er({ variant: t, textColor: r, weight: p }),
|
|
1067
1067
|
e
|
|
1068
1068
|
)
|
|
1069
1069
|
}, s)
|
|
@@ -1090,14 +1090,14 @@ const rn = Ft({}), Ia = 384, nn = v.forwardRef(
|
|
|
1090
1090
|
]);
|
|
1091
1091
|
const d = a !== void 0, [u, b] = v.useState(
|
|
1092
1092
|
i != null ? i : !1
|
|
1093
|
-
), x = d ? a : u,
|
|
1093
|
+
), x = d ? a : u, p = v.useCallback(
|
|
1094
1094
|
(N) => {
|
|
1095
1095
|
d || b(N), o == null || o(N);
|
|
1096
1096
|
},
|
|
1097
1097
|
[d, o]
|
|
1098
1098
|
), y = v.useCallback(() => {
|
|
1099
|
-
|
|
1100
|
-
}, [
|
|
1099
|
+
p(!1);
|
|
1100
|
+
}, [p]), h = v.useCallback(
|
|
1101
1101
|
(N) => {
|
|
1102
1102
|
r == null || r(N);
|
|
1103
1103
|
},
|
|
@@ -1110,7 +1110,7 @@ const rn = Ft({}), Ia = 384, nn = v.forwardRef(
|
|
|
1110
1110
|
}),
|
|
1111
1111
|
[e, y, t, h]
|
|
1112
1112
|
);
|
|
1113
|
-
return /* @__PURE__ */ n(rn.Provider, { value: g, children: /* @__PURE__ */ n(xe.Root, w({ open: x, onOpenChange:
|
|
1113
|
+
return /* @__PURE__ */ n(rn.Provider, { value: g, children: /* @__PURE__ */ n(xe.Root, w({ open: x, onOpenChange: p }, s)) });
|
|
1114
1114
|
}
|
|
1115
1115
|
), an = v.forwardRef((o, a) => {
|
|
1116
1116
|
var i = o, { className: e, asChild: t = !1 } = i, r = B(i, ["className", "asChild"]);
|
|
@@ -1119,7 +1119,7 @@ const rn = Ft({}), Ia = 384, nn = v.forwardRef(
|
|
|
1119
1119
|
w({
|
|
1120
1120
|
ref: a,
|
|
1121
1121
|
asChild: t,
|
|
1122
|
-
className:
|
|
1122
|
+
className: m(
|
|
1123
1123
|
"cursor-pointer outline-none",
|
|
1124
1124
|
!t && "font-graphik",
|
|
1125
1125
|
e
|
|
@@ -1156,7 +1156,7 @@ const on = v.forwardRef(
|
|
|
1156
1156
|
align: r,
|
|
1157
1157
|
side: a,
|
|
1158
1158
|
sideOffset: s,
|
|
1159
|
-
className:
|
|
1159
|
+
className: m(
|
|
1160
1160
|
"font-graphik bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-60 flex flex-col gap-0.5 overflow-y-auto rounded-xl p-1 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
1161
1161
|
e
|
|
1162
1162
|
),
|
|
@@ -1187,34 +1187,34 @@ const sn = v.forwardRef(
|
|
|
1187
1187
|
"onClick",
|
|
1188
1188
|
"value"
|
|
1189
1189
|
]);
|
|
1190
|
-
const { onClose: u, onValueChange: b } = Lt(rn), x = a ? {} : l,
|
|
1190
|
+
const { onClose: u, onValueChange: b } = Lt(rn), x = a ? {} : l, p = (h) => {
|
|
1191
1191
|
r || (i == null || i(h), s !== void 0 && (b == null || b(s)), u == null || u());
|
|
1192
1192
|
}, y = /* @__PURE__ */ n(
|
|
1193
1193
|
"div",
|
|
1194
1194
|
D(w({
|
|
1195
1195
|
ref: c,
|
|
1196
|
-
className:
|
|
1196
|
+
className: m(
|
|
1197
1197
|
"font-graphik relative flex max-h-8 w-full cursor-pointer items-center rounded-md px-3 py-2.5 text-[14px] leading-5 transition-colors outline-none select-none",
|
|
1198
1198
|
o ? "text-destructive" : "text-foreground",
|
|
1199
1199
|
!r && (o ? "hover:bg-destructive focus:bg-destructive active:bg-destructive hover:text-white focus:text-white active:text-white" : "hover:bg-muted active:bg-hover-background/70"),
|
|
1200
1200
|
r && (o ? "text-destructive pointer-events-none cursor-not-allowed opacity-50" : "pointer-events-none cursor-not-allowed opacity-50"),
|
|
1201
1201
|
e
|
|
1202
1202
|
),
|
|
1203
|
-
onClick:
|
|
1203
|
+
onClick: p,
|
|
1204
1204
|
role: "menuitem"
|
|
1205
1205
|
}, x), {
|
|
1206
1206
|
children: t
|
|
1207
1207
|
})
|
|
1208
1208
|
);
|
|
1209
1209
|
return a && v.isValidElement(t) ? v.cloneElement(t, D(w({}, t.props), {
|
|
1210
|
-
className:
|
|
1210
|
+
className: m(
|
|
1211
1211
|
"font-graphik hover:bg-hover-background relative flex w-full cursor-pointer items-center rounded-sm px-4 py-2.5 text-[14px] leading-5 outline-none select-none transition-colors",
|
|
1212
1212
|
o ? "text-destructive" : "text-foreground",
|
|
1213
1213
|
!r && (o ? "hover:bg-destructive hover:text-white focus:bg-destructive focus:text-white active:bg-destructive active:text-white" : "hover:bg-hover-background active:bg-hover-background/70"),
|
|
1214
1214
|
r && (o ? "pointer-events-none opacity-50 cursor-not-allowed text-destructive" : "pointer-events-none opacity-50 cursor-not-allowed"),
|
|
1215
1215
|
t.props.className
|
|
1216
1216
|
),
|
|
1217
|
-
onClick:
|
|
1217
|
+
onClick: p,
|
|
1218
1218
|
role: "menuitem"
|
|
1219
1219
|
})) : y;
|
|
1220
1220
|
}
|
|
@@ -1228,7 +1228,7 @@ const ln = v.forwardRef(
|
|
|
1228
1228
|
"div",
|
|
1229
1229
|
D(w({
|
|
1230
1230
|
ref: a,
|
|
1231
|
-
className:
|
|
1231
|
+
className: m(
|
|
1232
1232
|
"text-muted-foreground px-4 py-2 text-sm font-semibold",
|
|
1233
1233
|
e
|
|
1234
1234
|
),
|
|
@@ -1246,7 +1246,7 @@ const dn = v.forwardRef((a, r) => {
|
|
|
1246
1246
|
"div",
|
|
1247
1247
|
w({
|
|
1248
1248
|
ref: r,
|
|
1249
|
-
className:
|
|
1249
|
+
className: m("bg-border -mx-1 my-1 h-px", e),
|
|
1250
1250
|
role: "separator"
|
|
1251
1251
|
}, t)
|
|
1252
1252
|
);
|
|
@@ -1275,7 +1275,7 @@ function Ca({
|
|
|
1275
1275
|
icon: "MoreVertIcon",
|
|
1276
1276
|
disabled: r,
|
|
1277
1277
|
"aria-label": "Открыть меню действий",
|
|
1278
|
-
className:
|
|
1278
|
+
className: m("shrink-0", d)
|
|
1279
1279
|
}
|
|
1280
1280
|
) }),
|
|
1281
1281
|
/* @__PURE__ */ n(
|
|
@@ -1354,25 +1354,25 @@ const Ma = {
|
|
|
1354
1354
|
"className",
|
|
1355
1355
|
"data-testid"
|
|
1356
1356
|
]);
|
|
1357
|
-
const
|
|
1357
|
+
const p = Ma[e];
|
|
1358
1358
|
return /* @__PURE__ */ C(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
D(w({
|
|
1361
1361
|
ref: u,
|
|
1362
1362
|
role: "alert",
|
|
1363
|
-
className:
|
|
1363
|
+
className: m(
|
|
1364
1364
|
"flex min-h-12 w-full rounded-lg p-1",
|
|
1365
|
-
|
|
1365
|
+
p.bg,
|
|
1366
1366
|
c
|
|
1367
1367
|
),
|
|
1368
1368
|
"data-testid": f
|
|
1369
1369
|
}, d), {
|
|
1370
1370
|
children: [
|
|
1371
|
-
/* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n("div", { className:
|
|
1371
|
+
/* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n("div", { className: m("h-full w-1 rounded-lg", p.stripe) }) }),
|
|
1372
1372
|
/* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1373
1373
|
/* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */ C("div", { className: "flex w-full flex-col md:flex-rowitems-start justify-between gap-2", children: [
|
|
1374
1374
|
/* @__PURE__ */ C("div", { className: "flex w-full flex-row items-start gap-2", children: [
|
|
1375
|
-
/* @__PURE__ */ n("div", { className: "flex h-5 w-4 items-center justify-center", children: /* @__PURE__ */ n(U, { icon:
|
|
1375
|
+
/* @__PURE__ */ n("div", { className: "flex h-5 w-4 items-center justify-center", children: /* @__PURE__ */ n(U, { icon: p.iconName, className: m(p.icon) }) }),
|
|
1376
1376
|
/* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1377
1377
|
/* @__PURE__ */ C("div", { className: "flex w-full gap-2", children: [
|
|
1378
1378
|
/* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-0.5", children: [
|
|
@@ -1412,7 +1412,7 @@ const Ma = {
|
|
|
1412
1412
|
o && /* @__PURE__ */ n("div", { className: "flex flex-row items-center justify-end p-2 md:hidden", children: o && /* @__PURE__ */ n(
|
|
1413
1413
|
"div",
|
|
1414
1414
|
{
|
|
1415
|
-
className:
|
|
1415
|
+
className: m("flex flex-row items-center gap-1", {
|
|
1416
1416
|
"w-full": i
|
|
1417
1417
|
}),
|
|
1418
1418
|
children: o
|
|
@@ -1431,7 +1431,7 @@ const dt = v.forwardRef((a, r) => {
|
|
|
1431
1431
|
Ie,
|
|
1432
1432
|
w({
|
|
1433
1433
|
ref: r,
|
|
1434
|
-
className:
|
|
1434
|
+
className: m(
|
|
1435
1435
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1436
1436
|
e
|
|
1437
1437
|
)
|
|
@@ -1447,7 +1447,7 @@ const Ea = v.forwardRef((a, r) => {
|
|
|
1447
1447
|
Ie.Input,
|
|
1448
1448
|
w({
|
|
1449
1449
|
ref: r,
|
|
1450
|
-
className:
|
|
1450
|
+
className: m(
|
|
1451
1451
|
"placeholder:text-muted-foreground flex h-11 w-full rounded-md border-0 py-3 outline-none",
|
|
1452
1452
|
e
|
|
1453
1453
|
)
|
|
@@ -1462,7 +1462,7 @@ const ct = v.forwardRef((a, r) => {
|
|
|
1462
1462
|
Ie.List,
|
|
1463
1463
|
w({
|
|
1464
1464
|
ref: r,
|
|
1465
|
-
className:
|
|
1465
|
+
className: m("max-h-[300px] overflow-x-hidden overflow-y-auto", e)
|
|
1466
1466
|
}, t)
|
|
1467
1467
|
);
|
|
1468
1468
|
});
|
|
@@ -1481,7 +1481,7 @@ const ut = v.forwardRef((a, r) => {
|
|
|
1481
1481
|
Ie.Group,
|
|
1482
1482
|
w({
|
|
1483
1483
|
ref: r,
|
|
1484
|
-
className:
|
|
1484
|
+
className: m(
|
|
1485
1485
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
1486
1486
|
e
|
|
1487
1487
|
)
|
|
@@ -1495,7 +1495,7 @@ const Aa = v.forwardRef((a, r) => {
|
|
|
1495
1495
|
Ie.Separator,
|
|
1496
1496
|
w({
|
|
1497
1497
|
ref: r,
|
|
1498
|
-
className:
|
|
1498
|
+
className: m("bg-border -mx-1 h-px", e)
|
|
1499
1499
|
}, t)
|
|
1500
1500
|
);
|
|
1501
1501
|
});
|
|
@@ -1506,7 +1506,7 @@ const Bt = v.forwardRef((a, r) => {
|
|
|
1506
1506
|
Ie.Item,
|
|
1507
1507
|
w({
|
|
1508
1508
|
ref: r,
|
|
1509
|
-
className:
|
|
1509
|
+
className: m(
|
|
1510
1510
|
"font-graphik relative flex w-full cursor-pointer items-center rounded-sm px-4 py-2.5 text-[14px] leading-5 outline-none select-none hover:bg-[#F9FAFB] focus:bg-[#F9FAFB]",
|
|
1511
1511
|
e
|
|
1512
1512
|
)
|
|
@@ -1523,7 +1523,7 @@ function Da(r) {
|
|
|
1523
1523
|
return /* @__PURE__ */ n(
|
|
1524
1524
|
"span",
|
|
1525
1525
|
w({
|
|
1526
|
-
className:
|
|
1526
|
+
className: m(
|
|
1527
1527
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1528
1528
|
e
|
|
1529
1529
|
)
|
|
@@ -1564,7 +1564,7 @@ const Fe = v.forwardRef(
|
|
|
1564
1564
|
disabled: u = !1,
|
|
1565
1565
|
containerClassName: b,
|
|
1566
1566
|
inlineSelect: x,
|
|
1567
|
-
prefixContainer:
|
|
1567
|
+
prefixContainer: p,
|
|
1568
1568
|
autoFocus: y,
|
|
1569
1569
|
suffix: h,
|
|
1570
1570
|
showErrorMessage: g = !0,
|
|
@@ -1649,13 +1649,13 @@ const Fe = v.forwardRef(
|
|
|
1649
1649
|
}
|
|
1650
1650
|
J(1);
|
|
1651
1651
|
}, [J, k]);
|
|
1652
|
-
return /* @__PURE__ */ C("div", { className:
|
|
1652
|
+
return /* @__PURE__ */ C("div", { className: m(f && "w-full"), children: [
|
|
1653
1653
|
o && /* @__PURE__ */ n(
|
|
1654
1654
|
_,
|
|
1655
1655
|
{
|
|
1656
1656
|
variant: "p3",
|
|
1657
1657
|
weight: "medium",
|
|
1658
|
-
className:
|
|
1658
|
+
className: m("mb-1.5", {
|
|
1659
1659
|
"text-[14px]": r === "md",
|
|
1660
1660
|
"text-[16px]": r === "lg"
|
|
1661
1661
|
}),
|
|
@@ -1665,7 +1665,7 @@ const Fe = v.forwardRef(
|
|
|
1665
1665
|
/* @__PURE__ */ C(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
|
-
className:
|
|
1668
|
+
className: m(
|
|
1669
1669
|
"group relative flex items-center rounded-lg border-1 border-solid",
|
|
1670
1670
|
d && "w-full",
|
|
1671
1671
|
{
|
|
@@ -1679,11 +1679,11 @@ const Fe = v.forwardRef(
|
|
|
1679
1679
|
b
|
|
1680
1680
|
),
|
|
1681
1681
|
children: [
|
|
1682
|
-
|
|
1682
|
+
p && /* @__PURE__ */ n("div", { className: "flex items-center pl-1", children: p }),
|
|
1683
1683
|
a && !l && c === "left" && /* @__PURE__ */ n(
|
|
1684
1684
|
"div",
|
|
1685
1685
|
{
|
|
1686
|
-
className:
|
|
1686
|
+
className: m(
|
|
1687
1687
|
"group-focus-within:text-foreground text-muted-foreground flex items-center pl-2 transition-colors",
|
|
1688
1688
|
i && "!group-focus-within:!text-destructive !text-destructive"
|
|
1689
1689
|
),
|
|
@@ -1694,7 +1694,7 @@ const Fe = v.forwardRef(
|
|
|
1694
1694
|
U,
|
|
1695
1695
|
{
|
|
1696
1696
|
icon: l,
|
|
1697
|
-
className:
|
|
1697
|
+
className: m(
|
|
1698
1698
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
1699
1699
|
i && "!group-focus-within:!text-destructive !text-destructive"
|
|
1700
1700
|
)
|
|
@@ -1704,7 +1704,7 @@ const Fe = v.forwardRef(
|
|
|
1704
1704
|
"input",
|
|
1705
1705
|
w({
|
|
1706
1706
|
type: t,
|
|
1707
|
-
className:
|
|
1707
|
+
className: m(
|
|
1708
1708
|
"font-graphik flex-1 border-0 bg-transparent py-1 focus:outline-none disabled:cursor-not-allowed",
|
|
1709
1709
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
1710
1710
|
{
|
|
@@ -1713,6 +1713,7 @@ const Fe = v.forwardRef(
|
|
|
1713
1713
|
"text-[14px]": r === "md",
|
|
1714
1714
|
"text-[16px]": r === "lg",
|
|
1715
1715
|
"px-2.5": r === "md" || r === "lg",
|
|
1716
|
+
"px-3": r === "lg",
|
|
1716
1717
|
"pl-2": (a || l) && c === "left" && (r === "md" || r === "lg"),
|
|
1717
1718
|
"text-muted-foreground": u
|
|
1718
1719
|
},
|
|
@@ -1726,94 +1727,115 @@ const Fe = v.forwardRef(
|
|
|
1726
1727
|
"data-testid": S
|
|
1727
1728
|
}, F)
|
|
1728
1729
|
),
|
|
1729
|
-
(x || a || l || i || h || O || M) && /* @__PURE__ */ C(
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1730
|
+
(x || a || l || i || h || O || M) && /* @__PURE__ */ C(
|
|
1731
|
+
"div",
|
|
1732
|
+
{
|
|
1733
|
+
className: m(
|
|
1734
|
+
"flex shrink-0 items-center gap-1.5",
|
|
1735
|
+
!M && r === "md" && "pr-2.5",
|
|
1736
|
+
!M && r === "lg" && "pr-3"
|
|
1737
|
+
),
|
|
1738
|
+
children: [
|
|
1739
|
+
h && /* @__PURE__ */ n("div", { className: m("font-graphik flex items-center text-[16px]", u && "text-secondary opacity-50"), children: h }),
|
|
1740
|
+
x && /* @__PURE__ */ n(
|
|
1741
|
+
"div",
|
|
1742
|
+
{
|
|
1743
|
+
className: m(
|
|
1744
|
+
"relative inline-block max-w-[110px] overflow-hidden"
|
|
1745
|
+
),
|
|
1746
|
+
children: /* @__PURE__ */ n("div", { className: "[&_*]:font-cofo [&_*]:max-w-[110px] [&_*]:overflow-hidden [&_*]:text-ellipsis [&_*]:whitespace-nowrap [&_button]:w-auto [&_button]:min-w-0 [&_button]:px-0 [&_button]:py-0 [&_div[data-radix-popper-content-wrapper]]:!w-auto [&_div[data-radix-select-content]]:!w-auto [&_div[data-radix-select-content]]:!min-w-[120px] [&_span:not([data-radix-select-icon])]:max-w-[85px] [&_svg]:text-default [&_svg]:flex-shrink-0", children: x })
|
|
1747
|
+
}
|
|
1736
1748
|
),
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1749
|
+
a && !l && c === "right" && /* @__PURE__ */ n(
|
|
1750
|
+
"div",
|
|
1751
|
+
{
|
|
1752
|
+
className: m(
|
|
1753
|
+
"group-focus-within:text-foreground text-muted-foreground flex items-center transition-colors",
|
|
1754
|
+
i && "!group-focus-within:!text-destructive !text-destructive"
|
|
1755
|
+
),
|
|
1756
|
+
children: a
|
|
1757
|
+
}
|
|
1746
1758
|
),
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
i && "!group-focus-within:!text-destructive !text-destructive"
|
|
1757
|
-
)
|
|
1758
|
-
}
|
|
1759
|
-
),
|
|
1760
|
-
O && /* @__PURE__ */ n(
|
|
1761
|
-
"div",
|
|
1762
|
-
{
|
|
1763
|
-
onClick: N,
|
|
1764
|
-
className: p(
|
|
1765
|
-
"flex cursor-pointer items-center justify-center",
|
|
1766
|
-
u && "cursor-not-allowed opacity-50"
|
|
1759
|
+
l && !a && c === "right" && /* @__PURE__ */ n(
|
|
1760
|
+
U,
|
|
1761
|
+
{
|
|
1762
|
+
icon: l,
|
|
1763
|
+
className: m(
|
|
1764
|
+
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
1765
|
+
i && "!group-focus-within:!text-destructive !text-destructive"
|
|
1766
|
+
)
|
|
1767
|
+
}
|
|
1767
1768
|
),
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1769
|
+
O && /* @__PURE__ */ n(
|
|
1770
|
+
"div",
|
|
1771
|
+
{
|
|
1772
|
+
onClick: N,
|
|
1773
|
+
className: m(
|
|
1774
|
+
"flex cursor-pointer items-center justify-center",
|
|
1775
|
+
u && "cursor-not-allowed opacity-50"
|
|
1776
|
+
),
|
|
1777
|
+
role: "button",
|
|
1778
|
+
tabIndex: 0,
|
|
1779
|
+
children: /* @__PURE__ */ n(
|
|
1780
|
+
U,
|
|
1781
|
+
{
|
|
1782
|
+
icon: "CloseIcon",
|
|
1783
|
+
size: 16,
|
|
1784
|
+
className: "text-muted-foreground"
|
|
1785
|
+
}
|
|
1786
|
+
)
|
|
1787
|
+
}
|
|
1788
|
+
),
|
|
1789
|
+
i != null && /* @__PURE__ */ n(
|
|
1771
1790
|
U,
|
|
1772
1791
|
{
|
|
1773
|
-
icon: "
|
|
1774
|
-
|
|
1775
|
-
|
|
1792
|
+
icon: "ErrorFillIcon",
|
|
1793
|
+
className: "!text-destructive",
|
|
1794
|
+
size: 16
|
|
1795
|
+
}
|
|
1796
|
+
),
|
|
1797
|
+
M && /* @__PURE__ */ C(
|
|
1798
|
+
"div",
|
|
1799
|
+
{
|
|
1800
|
+
className: m("flex items-center gap-[2px]", {
|
|
1801
|
+
"m-1": r === "md",
|
|
1802
|
+
"m-2": r === "lg"
|
|
1803
|
+
}),
|
|
1804
|
+
children: [
|
|
1805
|
+
/* @__PURE__ */ n(
|
|
1806
|
+
Q,
|
|
1807
|
+
{
|
|
1808
|
+
type: "button",
|
|
1809
|
+
variant: "default",
|
|
1810
|
+
size: "sm",
|
|
1811
|
+
iconOnly: !0,
|
|
1812
|
+
icon: "RemoveIcon",
|
|
1813
|
+
className: "rounded-lg",
|
|
1814
|
+
onClick: re,
|
|
1815
|
+
disabled: u,
|
|
1816
|
+
"aria-label": "Уменьшить значение"
|
|
1817
|
+
}
|
|
1818
|
+
),
|
|
1819
|
+
/* @__PURE__ */ n(
|
|
1820
|
+
Q,
|
|
1821
|
+
{
|
|
1822
|
+
type: "button",
|
|
1823
|
+
variant: "default",
|
|
1824
|
+
size: "sm",
|
|
1825
|
+
iconOnly: !0,
|
|
1826
|
+
icon: "AddIcon",
|
|
1827
|
+
className: "rounded-lg",
|
|
1828
|
+
onClick: ne,
|
|
1829
|
+
disabled: u,
|
|
1830
|
+
"aria-label": "Увеличить значение"
|
|
1831
|
+
}
|
|
1832
|
+
)
|
|
1833
|
+
]
|
|
1776
1834
|
}
|
|
1777
1835
|
)
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
U,
|
|
1782
|
-
{
|
|
1783
|
-
icon: "ErrorFillIcon",
|
|
1784
|
-
className: "!text-destructive",
|
|
1785
|
-
size: 16
|
|
1786
|
-
}
|
|
1787
|
-
),
|
|
1788
|
-
M && /* @__PURE__ */ C("div", { className: "flex items-center gap-[2px]", children: [
|
|
1789
|
-
/* @__PURE__ */ n(
|
|
1790
|
-
Q,
|
|
1791
|
-
{
|
|
1792
|
-
type: "button",
|
|
1793
|
-
variant: "default",
|
|
1794
|
-
size: "sm",
|
|
1795
|
-
iconOnly: !0,
|
|
1796
|
-
icon: "RemoveIcon",
|
|
1797
|
-
onClick: re,
|
|
1798
|
-
disabled: u,
|
|
1799
|
-
"aria-label": "Уменьшить значение"
|
|
1800
|
-
}
|
|
1801
|
-
),
|
|
1802
|
-
/* @__PURE__ */ n(
|
|
1803
|
-
Q,
|
|
1804
|
-
{
|
|
1805
|
-
type: "button",
|
|
1806
|
-
variant: "default",
|
|
1807
|
-
size: "sm",
|
|
1808
|
-
iconOnly: !0,
|
|
1809
|
-
icon: "AddIcon",
|
|
1810
|
-
onClick: ne,
|
|
1811
|
-
disabled: u,
|
|
1812
|
-
"aria-label": "Увеличить значение"
|
|
1813
|
-
}
|
|
1814
|
-
)
|
|
1815
|
-
] })
|
|
1816
|
-
] })
|
|
1836
|
+
]
|
|
1837
|
+
}
|
|
1838
|
+
)
|
|
1817
1839
|
]
|
|
1818
1840
|
}
|
|
1819
1841
|
),
|
|
@@ -1888,7 +1910,7 @@ const Rt = v.forwardRef(
|
|
|
1888
1910
|
size: i,
|
|
1889
1911
|
disabled: s,
|
|
1890
1912
|
className: "pl-1.5",
|
|
1891
|
-
containerClassName:
|
|
1913
|
+
containerClassName: m(
|
|
1892
1914
|
"group",
|
|
1893
1915
|
o,
|
|
1894
1916
|
r === "border" && [
|
|
@@ -1922,11 +1944,11 @@ const Ba = v.forwardRef(
|
|
|
1922
1944
|
ref: t,
|
|
1923
1945
|
size: "lg",
|
|
1924
1946
|
disabled: i,
|
|
1925
|
-
className:
|
|
1947
|
+
className: m("font-bold", {
|
|
1926
1948
|
"text-[18px]": r === "md",
|
|
1927
1949
|
"text-[24px]": r === "lg"
|
|
1928
1950
|
}),
|
|
1929
|
-
containerClassName:
|
|
1951
|
+
containerClassName: m("h-10", {
|
|
1930
1952
|
"h-11": r === "lg"
|
|
1931
1953
|
})
|
|
1932
1954
|
})
|
|
@@ -1939,7 +1961,7 @@ const Oa = v.forwardRef(
|
|
|
1939
1961
|
const s = e, { size: r = "md", className: a } = s, o = B(s, ["size", "className"]), i = /* @__PURE__ */ n(
|
|
1940
1962
|
"div",
|
|
1941
1963
|
{
|
|
1942
|
-
className:
|
|
1964
|
+
className: m(
|
|
1943
1965
|
"bg-default-background text-muted-foreground flex items-center",
|
|
1944
1966
|
r === "md" ? "h-6 rounded-sm px-2" : "h-8 rounded-md px-2"
|
|
1945
1967
|
),
|
|
@@ -1951,7 +1973,7 @@ const Oa = v.forwardRef(
|
|
|
1951
1973
|
D(w({}, o), {
|
|
1952
1974
|
ref: t,
|
|
1953
1975
|
size: r,
|
|
1954
|
-
className:
|
|
1976
|
+
className: m("pl-2", a),
|
|
1955
1977
|
prefixContainer: i
|
|
1956
1978
|
})
|
|
1957
1979
|
);
|
|
@@ -1966,7 +1988,7 @@ const Ze = xe.Root, Je = xe.Trigger, We = v.forwardRef((i, o) => {
|
|
|
1966
1988
|
ref: o,
|
|
1967
1989
|
align: t,
|
|
1968
1990
|
sideOffset: r,
|
|
1969
|
-
className:
|
|
1991
|
+
className: m(
|
|
1970
1992
|
// TODO: remove z-1050 after fixing the issue with the popover being on top of the modal
|
|
1971
1993
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1050 w-72 rounded-md border-0 p-4 shadow-md outline-none",
|
|
1972
1994
|
e
|
|
@@ -1995,7 +2017,7 @@ function Fl({
|
|
|
1995
2017
|
size: b = "md"
|
|
1996
2018
|
}) {
|
|
1997
2019
|
var E;
|
|
1998
|
-
const [x,
|
|
2020
|
+
const [x, p] = v.useState(!1), [y, h] = v.useState(
|
|
1999
2021
|
t && ((E = e.find((S) => S.value === t)) == null ? void 0 : E.label) || ""
|
|
2000
2022
|
), g = v.useRef(null), N = v.useMemo(() => e.filter(
|
|
2001
2023
|
(S) => S.label.toLowerCase().includes(y.toLowerCase())
|
|
@@ -2009,21 +2031,21 @@ function Fl({
|
|
|
2009
2031
|
const M = v.useCallback(
|
|
2010
2032
|
(S) => {
|
|
2011
2033
|
const F = e.find((z) => z.value === S);
|
|
2012
|
-
F && (r(F.value, F), h(F.label)),
|
|
2034
|
+
F && (r(F.value, F), h(F.label)), p(!1);
|
|
2013
2035
|
},
|
|
2014
2036
|
[e, r]
|
|
2015
2037
|
), I = v.useCallback(
|
|
2016
2038
|
(S) => {
|
|
2017
|
-
h(S.target.value), o == null || o(S.target.value),
|
|
2039
|
+
h(S.target.value), o == null || o(S.target.value), p(!0);
|
|
2018
2040
|
},
|
|
2019
2041
|
[]
|
|
2020
2042
|
), k = v.useCallback(() => {
|
|
2021
|
-
x ?
|
|
2043
|
+
x ? p(!1) : (p(!0), setTimeout(() => {
|
|
2022
2044
|
var S;
|
|
2023
2045
|
(S = g.current) == null || S.focus();
|
|
2024
2046
|
}, 0));
|
|
2025
2047
|
}, [x]), R = v.useCallback((S) => {
|
|
2026
|
-
|
|
2048
|
+
p(S), S && setTimeout(() => {
|
|
2027
2049
|
var F;
|
|
2028
2050
|
(F = g.current) == null || F.focus();
|
|
2029
2051
|
}, 0);
|
|
@@ -2035,7 +2057,7 @@ function Fl({
|
|
|
2035
2057
|
{
|
|
2036
2058
|
variant: "p3",
|
|
2037
2059
|
weight: "medium",
|
|
2038
|
-
className:
|
|
2060
|
+
className: m("mb-1", {
|
|
2039
2061
|
"text-[14px]": b === "md",
|
|
2040
2062
|
"text-[16px]": b === "lg"
|
|
2041
2063
|
}),
|
|
@@ -2050,7 +2072,7 @@ function Fl({
|
|
|
2050
2072
|
value: y,
|
|
2051
2073
|
onChange: I,
|
|
2052
2074
|
onClick: k,
|
|
2053
|
-
className:
|
|
2075
|
+
className: m("w-full", s),
|
|
2054
2076
|
disabled: l,
|
|
2055
2077
|
size: b
|
|
2056
2078
|
}
|
|
@@ -2124,7 +2146,7 @@ const _a = {
|
|
|
2124
2146
|
Ye.Root,
|
|
2125
2147
|
D(w({
|
|
2126
2148
|
ref: l,
|
|
2127
|
-
className:
|
|
2149
|
+
className: m(
|
|
2128
2150
|
"relative flex shrink-0",
|
|
2129
2151
|
_a[r],
|
|
2130
2152
|
d,
|
|
@@ -2138,7 +2160,7 @@ const _a = {
|
|
|
2138
2160
|
"span",
|
|
2139
2161
|
{
|
|
2140
2162
|
"aria-hidden": "true",
|
|
2141
|
-
className:
|
|
2163
|
+
className: m("pointer-events-none select-none absolute", b),
|
|
2142
2164
|
children: /* @__PURE__ */ n(U, { icon: "ErrorFillIcon", className: "text-destructive", size: u })
|
|
2143
2165
|
}
|
|
2144
2166
|
)
|
|
@@ -2153,7 +2175,7 @@ const Ua = ke.forwardRef((a, r) => {
|
|
|
2153
2175
|
Ye.Image,
|
|
2154
2176
|
w({
|
|
2155
2177
|
ref: r,
|
|
2156
|
-
className:
|
|
2178
|
+
className: m(
|
|
2157
2179
|
"aspect-square h-full w-full rounded-[inherit] border-1 border-default-background",
|
|
2158
2180
|
e
|
|
2159
2181
|
)
|
|
@@ -2173,7 +2195,7 @@ const Ka = ke.forwardRef((c, l) => {
|
|
|
2173
2195
|
Ye.Fallback,
|
|
2174
2196
|
D(w({
|
|
2175
2197
|
ref: l,
|
|
2176
|
-
className:
|
|
2198
|
+
className: m(
|
|
2177
2199
|
"flex h-full w-full items-center justify-center rounded-[inherit]",
|
|
2178
2200
|
b,
|
|
2179
2201
|
// Text: шрифт Моно (CoFo), цвет в тон фону/контраст
|
|
@@ -2217,7 +2239,7 @@ const $a = new URL("../assets/alfa-BqdpLXjE.png", import.meta.url).href, Ya = ne
|
|
|
2217
2239
|
"div",
|
|
2218
2240
|
D(w({
|
|
2219
2241
|
ref: u,
|
|
2220
|
-
className:
|
|
2242
|
+
className: m(
|
|
2221
2243
|
// Base styles
|
|
2222
2244
|
"flex transition-colors",
|
|
2223
2245
|
{ "border-border border-1 border-solid": t },
|
|
@@ -2334,7 +2356,7 @@ const io = ({
|
|
|
2334
2356
|
{
|
|
2335
2357
|
type: "button",
|
|
2336
2358
|
onClick: a,
|
|
2337
|
-
className:
|
|
2359
|
+
className: m(
|
|
2338
2360
|
"relative flex h-[70px] w-[70px] shrink-0 cursor-pointer flex-col items-center justify-center rounded-xl text-center transition-colors",
|
|
2339
2361
|
"border-0 bg-default-background",
|
|
2340
2362
|
"hover:bg-border",
|
|
@@ -2363,7 +2385,7 @@ const io = ({
|
|
|
2363
2385
|
{
|
|
2364
2386
|
type: "button",
|
|
2365
2387
|
onClick: r,
|
|
2366
|
-
className:
|
|
2388
|
+
className: m(
|
|
2367
2389
|
"relative shrink-0 h-19.5 min-w-26.5 md:min-w-45.5",
|
|
2368
2390
|
"rounded-lg transition-colors cursor-pointer",
|
|
2369
2391
|
"flex flex-col items-start justify-start gap-1 p-3",
|
|
@@ -2417,14 +2439,14 @@ const io = ({
|
|
|
2417
2439
|
},
|
|
2418
2440
|
[r]
|
|
2419
2441
|
), d = (u) => t ? Ee(u).getTime() === Ee(t).getTime() : !1;
|
|
2420
|
-
return /* @__PURE__ */ n("div", { className:
|
|
2442
|
+
return /* @__PURE__ */ n("div", { className: m("overflow-hidden", i == null ? void 0 : i.root), ref: s, children: /* @__PURE__ */ n("div", { className: m("flex gap-1.5", i == null ? void 0 : i.content), children: e.map((u) => /* @__PURE__ */ n(
|
|
2421
2443
|
lo,
|
|
2422
2444
|
{
|
|
2423
2445
|
date: u,
|
|
2424
2446
|
selected: d(u),
|
|
2425
2447
|
onClick: () => f(u),
|
|
2426
2448
|
renderBadge: a ? () => a(u) : void 0,
|
|
2427
|
-
className:
|
|
2449
|
+
className: m(o, i == null ? void 0 : i.card)
|
|
2428
2450
|
},
|
|
2429
2451
|
u.toISOString()
|
|
2430
2452
|
)) }) });
|
|
@@ -2491,18 +2513,18 @@ const zl = (f) => {
|
|
|
2491
2513
|
]);
|
|
2492
2514
|
const { days: u, selectedDate: b, setSelectedDate: x } = fo(D(w({}, c), {
|
|
2493
2515
|
onChange: e
|
|
2494
|
-
})),
|
|
2495
|
-
const I =
|
|
2516
|
+
})), p = pe(null), y = $((M) => {
|
|
2517
|
+
const I = p.current;
|
|
2496
2518
|
if (I) {
|
|
2497
2519
|
const k = so * Be;
|
|
2498
2520
|
I.scrollBy({ left: M > 0 ? k : -546, behavior: "smooth" });
|
|
2499
2521
|
}
|
|
2500
2522
|
}, []), h = (M) => M.getTime() === b.getTime(), g = $((M, I = !1) => {
|
|
2501
|
-
if (
|
|
2523
|
+
if (p.current && u.length > 0) {
|
|
2502
2524
|
const k = u.findIndex((R) => R.getTime() === Ee(M).getTime());
|
|
2503
2525
|
if (k !== -1) {
|
|
2504
|
-
const R =
|
|
2505
|
-
I ?
|
|
2526
|
+
const R = p.current.offsetWidth, S = window.innerWidth < un ? k * Be : k * Be - R / 2 + Be / 2;
|
|
2527
|
+
I ? p.current.scrollTo({ left: Math.max(0, S), behavior: "smooth" }) : p.current.scrollLeft = Math.max(0, S);
|
|
2506
2528
|
}
|
|
2507
2529
|
}
|
|
2508
2530
|
}, [u]);
|
|
@@ -2512,7 +2534,7 @@ const zl = (f) => {
|
|
|
2512
2534
|
g(M);
|
|
2513
2535
|
}
|
|
2514
2536
|
}, []), ue(() => {
|
|
2515
|
-
if (i && u.length > 0 &&
|
|
2537
|
+
if (i && u.length > 0 && p.current) {
|
|
2516
2538
|
const M = setTimeout(() => {
|
|
2517
2539
|
var I;
|
|
2518
2540
|
if (i.mode === "date")
|
|
@@ -2525,7 +2547,7 @@ const zl = (f) => {
|
|
|
2525
2547
|
)), R = u.findIndex((E) => E.getTime() === k.getTime());
|
|
2526
2548
|
if (R !== -1) {
|
|
2527
2549
|
const E = R * Be;
|
|
2528
|
-
(I =
|
|
2550
|
+
(I = p.current) == null || I.scrollTo({ left: Math.max(0, E), behavior: "smooth" });
|
|
2529
2551
|
}
|
|
2530
2552
|
}
|
|
2531
2553
|
setTimeout(() => {
|
|
@@ -2537,18 +2559,18 @@ const zl = (f) => {
|
|
|
2537
2559
|
}, [i, u, s, g]);
|
|
2538
2560
|
const N = pe([]);
|
|
2539
2561
|
return ue(() => {
|
|
2540
|
-
if (
|
|
2562
|
+
if (p.current && u.length > 0 && N.current.length > 0) {
|
|
2541
2563
|
const I = N.current[0], k = u[0], R = u.findIndex((E) => E.getTime() === I.getTime());
|
|
2542
2564
|
if (R > 0)
|
|
2543
|
-
|
|
2565
|
+
p.current.scrollLeft += R * Be;
|
|
2544
2566
|
else if (R === -1) {
|
|
2545
2567
|
const E = I.getTime(), S = k.getTime();
|
|
2546
2568
|
if (S < E) {
|
|
2547
2569
|
const F = Math.round((E - S) / 864e5);
|
|
2548
|
-
|
|
2570
|
+
p.current.scrollLeft += F * Be;
|
|
2549
2571
|
} else {
|
|
2550
2572
|
const F = Math.round((S - E) / 864e5);
|
|
2551
|
-
|
|
2573
|
+
p.current.scrollLeft = Math.max(0, p.current.scrollLeft - F * Be);
|
|
2552
2574
|
}
|
|
2553
2575
|
}
|
|
2554
2576
|
}
|
|
@@ -2569,7 +2591,7 @@ const zl = (f) => {
|
|
|
2569
2591
|
"div",
|
|
2570
2592
|
{
|
|
2571
2593
|
className: "overflow-x-auto md:overflow-x-hidden md:rounded-xl -mx-4 md:mx-0",
|
|
2572
|
-
ref:
|
|
2594
|
+
ref: p,
|
|
2573
2595
|
style: {
|
|
2574
2596
|
scrollbarWidth: "none",
|
|
2575
2597
|
msOverflowStyle: "none"
|
|
@@ -2605,7 +2627,7 @@ const zl = (f) => {
|
|
|
2605
2627
|
ye.ScrollUpButton,
|
|
2606
2628
|
D(w({
|
|
2607
2629
|
ref: r,
|
|
2608
|
-
className:
|
|
2630
|
+
className: m(
|
|
2609
2631
|
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
2610
2632
|
"hover:bg-muted/50 transition-colors",
|
|
2611
2633
|
e
|
|
@@ -2622,7 +2644,7 @@ const mn = v.forwardRef((a, r) => {
|
|
|
2622
2644
|
ye.ScrollDownButton,
|
|
2623
2645
|
D(w({
|
|
2624
2646
|
ref: r,
|
|
2625
|
-
className:
|
|
2647
|
+
className: m(
|
|
2626
2648
|
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
2627
2649
|
"hover:bg-muted/50 transition-colors",
|
|
2628
2650
|
e
|
|
@@ -2639,7 +2661,7 @@ const sr = v.forwardRef((s, i) => {
|
|
|
2639
2661
|
ye.Item,
|
|
2640
2662
|
D(w({
|
|
2641
2663
|
ref: i,
|
|
2642
|
-
className:
|
|
2664
|
+
className: m(
|
|
2643
2665
|
"font-graphik relative flex w-full cursor-pointer items-center px-3 transition-colors outline-none select-none",
|
|
2644
2666
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2645
2667
|
// ✅ выбранный элемент
|
|
@@ -2677,7 +2699,7 @@ const lr = v.forwardRef(
|
|
|
2677
2699
|
onValueRemove: u,
|
|
2678
2700
|
disabled: b,
|
|
2679
2701
|
"data-testid": x,
|
|
2680
|
-
showErrorMessage:
|
|
2702
|
+
showErrorMessage: p = !0,
|
|
2681
2703
|
clearable: y = !1,
|
|
2682
2704
|
onClear: h,
|
|
2683
2705
|
inlineSelect: g = !1
|
|
@@ -2732,7 +2754,7 @@ const lr = v.forwardRef(
|
|
|
2732
2754
|
{
|
|
2733
2755
|
variant: "p3",
|
|
2734
2756
|
weight: "medium",
|
|
2735
|
-
className:
|
|
2757
|
+
className: m("mb-1.5", {
|
|
2736
2758
|
"text-[14px]": r === "md",
|
|
2737
2759
|
"text-[16px]": r === "lg"
|
|
2738
2760
|
}),
|
|
@@ -2742,12 +2764,12 @@ const lr = v.forwardRef(
|
|
|
2742
2764
|
/* @__PURE__ */ n(
|
|
2743
2765
|
"div",
|
|
2744
2766
|
{
|
|
2745
|
-
className:
|
|
2767
|
+
className: m("relative flex items-center", s && "w-full"),
|
|
2746
2768
|
children: /* @__PURE__ */ C(
|
|
2747
2769
|
ye.Trigger,
|
|
2748
2770
|
D(w({
|
|
2749
2771
|
ref: M,
|
|
2750
|
-
className:
|
|
2772
|
+
className: m(
|
|
2751
2773
|
"font-graphik group flex items-center",
|
|
2752
2774
|
!l && [
|
|
2753
2775
|
"flex cursor-pointer py-1.5 focus:outline-none disabled:cursor-not-allowed",
|
|
@@ -2801,7 +2823,7 @@ const lr = v.forwardRef(
|
|
|
2801
2823
|
onMouseDown: (j) => {
|
|
2802
2824
|
b || (j.preventDefault(), j.stopPropagation());
|
|
2803
2825
|
},
|
|
2804
|
-
className:
|
|
2826
|
+
className: m(
|
|
2805
2827
|
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
2806
2828
|
b && "cursor-not-allowed opacity-50"
|
|
2807
2829
|
),
|
|
@@ -2830,7 +2852,7 @@ const lr = v.forwardRef(
|
|
|
2830
2852
|
c && /* @__PURE__ */ n(
|
|
2831
2853
|
"div",
|
|
2832
2854
|
{
|
|
2833
|
-
className:
|
|
2855
|
+
className: m(
|
|
2834
2856
|
"rounded px-1.5 py-0.5",
|
|
2835
2857
|
typeof c == "string" ? "bg-[#EFEFF1]" : c.className
|
|
2836
2858
|
),
|
|
@@ -2852,7 +2874,7 @@ const lr = v.forwardRef(
|
|
|
2852
2874
|
onKeyDown: (z) => {
|
|
2853
2875
|
b || (z.key === "Enter" || z.key === " ") && (z.preventDefault(), z.stopPropagation(), h == null || h());
|
|
2854
2876
|
},
|
|
2855
|
-
className:
|
|
2877
|
+
className: m(
|
|
2856
2878
|
"flex cursor-pointer items-center justify-center rounded-full p-[2px] hover:bg-muted transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1",
|
|
2857
2879
|
b && "cursor-not-allowed opacity-50"
|
|
2858
2880
|
),
|
|
@@ -2881,7 +2903,7 @@ const lr = v.forwardRef(
|
|
|
2881
2903
|
U,
|
|
2882
2904
|
{
|
|
2883
2905
|
icon: "ArrowDownIcon",
|
|
2884
|
-
className:
|
|
2906
|
+
className: m(
|
|
2885
2907
|
"text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
2886
2908
|
l && "pl-1"
|
|
2887
2909
|
),
|
|
@@ -2895,7 +2917,7 @@ const lr = v.forwardRef(
|
|
|
2895
2917
|
}
|
|
2896
2918
|
),
|
|
2897
2919
|
i && !o && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: i }),
|
|
2898
|
-
o &&
|
|
2920
|
+
o && p && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: o })
|
|
2899
2921
|
] });
|
|
2900
2922
|
}
|
|
2901
2923
|
);
|
|
@@ -2907,7 +2929,7 @@ const Bl = ye.Group, mo = v.forwardRef((i, o) => {
|
|
|
2907
2929
|
D(w({
|
|
2908
2930
|
ref: o,
|
|
2909
2931
|
placeholder: r,
|
|
2910
|
-
className:
|
|
2932
|
+
className: m("block w-full text-left", e)
|
|
2911
2933
|
}, a), {
|
|
2912
2934
|
children: t
|
|
2913
2935
|
})
|
|
@@ -2933,7 +2955,7 @@ const Bl = ye.Group, mo = v.forwardRef((i, o) => {
|
|
|
2933
2955
|
ye.Content,
|
|
2934
2956
|
D(w({
|
|
2935
2957
|
ref: l,
|
|
2936
|
-
className:
|
|
2958
|
+
className: m(
|
|
2937
2959
|
// z-[9999] для отображения поверх модалок и попапов (обычно они имеют z-50 или z-100)
|
|
2938
2960
|
"bg-popover text-popover-foreground border-border relative z-[9999] max-h-80 w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
2939
2961
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2974,7 +2996,7 @@ const po = v.forwardRef((a, r) => {
|
|
|
2974
2996
|
ye.Label,
|
|
2975
2997
|
w({
|
|
2976
2998
|
ref: r,
|
|
2977
|
-
className:
|
|
2999
|
+
className: m(
|
|
2978
3000
|
"font-graphik text-secondary px-2 py-1.5 text-[12px]",
|
|
2979
3001
|
e
|
|
2980
3002
|
)
|
|
@@ -2988,7 +3010,7 @@ const ho = v.forwardRef((a, r) => {
|
|
|
2988
3010
|
ye.Separator,
|
|
2989
3011
|
w({
|
|
2990
3012
|
ref: r,
|
|
2991
|
-
className:
|
|
3013
|
+
className: m("hidden", e)
|
|
2992
3014
|
}, t)
|
|
2993
3015
|
);
|
|
2994
3016
|
});
|
|
@@ -3014,13 +3036,13 @@ const go = ye.Root, bo = v.forwardRef(
|
|
|
3014
3036
|
"dir",
|
|
3015
3037
|
"size"
|
|
3016
3038
|
]);
|
|
3017
|
-
const b = (
|
|
3018
|
-
const y = t.includes(
|
|
3039
|
+
const b = (p) => {
|
|
3040
|
+
const y = t.includes(p) ? t.filter((h) => h !== p) : [...t, p];
|
|
3019
3041
|
r == null || r(y);
|
|
3020
|
-
}, x = (
|
|
3042
|
+
}, x = (p) => {
|
|
3021
3043
|
if (a)
|
|
3022
3044
|
return;
|
|
3023
|
-
const y = t.filter((h) => h !==
|
|
3045
|
+
const y = t.filter((h) => h !== p);
|
|
3024
3046
|
r == null || r(y);
|
|
3025
3047
|
};
|
|
3026
3048
|
return /* @__PURE__ */ ra(
|
|
@@ -3034,20 +3056,20 @@ const go = ye.Root, bo = v.forwardRef(
|
|
|
3034
3056
|
open: o,
|
|
3035
3057
|
onOpenChange: i
|
|
3036
3058
|
}),
|
|
3037
|
-
v.Children.map(e, (
|
|
3059
|
+
v.Children.map(e, (p) => {
|
|
3038
3060
|
var y, h;
|
|
3039
|
-
return v.isValidElement(
|
|
3061
|
+
return v.isValidElement(p) ? ((y = p.type) == null ? void 0 : y.displayName) === "SelectTrigger" ? v.cloneElement(p, D(w({}, p.props), {
|
|
3040
3062
|
multiple: !0,
|
|
3041
3063
|
selectedValues: t,
|
|
3042
3064
|
onValueRemove: x,
|
|
3043
3065
|
disabled: a,
|
|
3044
3066
|
size: l
|
|
3045
|
-
})) : ((h =
|
|
3067
|
+
})) : ((h = p.type) == null ? void 0 : h.displayName) === "SelectContent" ? v.cloneElement(p, D(w({}, p.props), {
|
|
3046
3068
|
selectedValues: t,
|
|
3047
3069
|
value: void 0,
|
|
3048
3070
|
isMultiple: !0,
|
|
3049
3071
|
size: l
|
|
3050
|
-
})) :
|
|
3072
|
+
})) : p : p;
|
|
3051
3073
|
})
|
|
3052
3074
|
);
|
|
3053
3075
|
}
|
|
@@ -3083,7 +3105,7 @@ const Ol = ({
|
|
|
3083
3105
|
return d;
|
|
3084
3106
|
const h = new Date(c.getFullYear(), c.getMonth(), 1);
|
|
3085
3107
|
return Dr(h);
|
|
3086
|
-
}, [c, d]),
|
|
3108
|
+
}, [c, d]), p = (h) => {
|
|
3087
3109
|
const g = b.find((M) => M.value === h);
|
|
3088
3110
|
if (!g)
|
|
3089
3111
|
return;
|
|
@@ -3097,11 +3119,11 @@ const Ol = ({
|
|
|
3097
3119
|
}
|
|
3098
3120
|
return Zt(c);
|
|
3099
3121
|
}, [a, c]);
|
|
3100
|
-
return /* @__PURE__ */ C(go, { value: x, onValueChange:
|
|
3122
|
+
return /* @__PURE__ */ C(go, { value: x, onValueChange: p, children: [
|
|
3101
3123
|
/* @__PURE__ */ n(
|
|
3102
3124
|
lr,
|
|
3103
3125
|
{
|
|
3104
|
-
className:
|
|
3126
|
+
className: m("[&_svg]:h-6 [&_svg]:w-6 [&_svg]:text-secondary", o),
|
|
3105
3127
|
size: "lg",
|
|
3106
3128
|
transparent: !0,
|
|
3107
3129
|
inlineSelect: !0,
|
|
@@ -3136,7 +3158,7 @@ function _l({
|
|
|
3136
3158
|
}
|
|
3137
3159
|
}, []), x = $(() => {
|
|
3138
3160
|
f(void 0);
|
|
3139
|
-
}, []),
|
|
3161
|
+
}, []), p = $(() => {
|
|
3140
3162
|
const y = /* @__PURE__ */ new Date();
|
|
3141
3163
|
i(y);
|
|
3142
3164
|
const h = St(y);
|
|
@@ -3149,7 +3171,7 @@ function _l({
|
|
|
3149
3171
|
handleMonthsChange: b,
|
|
3150
3172
|
scrollTrigger: c,
|
|
3151
3173
|
clearScrollTrigger: x,
|
|
3152
|
-
resetToToday:
|
|
3174
|
+
resetToToday: p
|
|
3153
3175
|
};
|
|
3154
3176
|
}
|
|
3155
3177
|
const xo = window.innerWidth < un, yo = {
|
|
@@ -3192,7 +3214,7 @@ const xo = window.innerWidth < un, yo = {
|
|
|
3192
3214
|
ref: f,
|
|
3193
3215
|
radius: "4xl",
|
|
3194
3216
|
padding: "sm",
|
|
3195
|
-
className:
|
|
3217
|
+
className: m(
|
|
3196
3218
|
"relative flex-col items-start gap-3 md:flex-row",
|
|
3197
3219
|
l === "purple" && "bg-banner-purple-bg",
|
|
3198
3220
|
l === "green" && "bg-banner-green-bg",
|
|
@@ -3248,7 +3270,7 @@ const xo = window.innerWidth < un, yo = {
|
|
|
3248
3270
|
ref: f,
|
|
3249
3271
|
radius: "4xl",
|
|
3250
3272
|
padding: "sm",
|
|
3251
|
-
className:
|
|
3273
|
+
className: m(
|
|
3252
3274
|
"relative min-h-53 overflow-hidden md:h-auto md:min-h-30.5",
|
|
3253
3275
|
l === "purple" && "bg-banner-purple-bg",
|
|
3254
3276
|
l === "green" && "bg-banner-green-bg",
|
|
@@ -3277,7 +3299,7 @@ const xo = window.innerWidth < un, yo = {
|
|
|
3277
3299
|
/* @__PURE__ */ n(
|
|
3278
3300
|
"div",
|
|
3279
3301
|
{
|
|
3280
|
-
className:
|
|
3302
|
+
className: m(
|
|
3281
3303
|
"absolute bottom-[-100px] right-[-100px] h-[190px] w-[336px] rotate-[-30deg] rounded-[250px] md:top-1/2 md:-translate-y-1/2 md:right-11",
|
|
3282
3304
|
l === "purple" && "bg-banner-purple-fg",
|
|
3283
3305
|
l === "green" && "bg-banner-green-fg",
|
|
@@ -3344,9 +3366,9 @@ function Vl(s) {
|
|
|
3344
3366
|
"div",
|
|
3345
3367
|
D(w({
|
|
3346
3368
|
ref: f,
|
|
3347
|
-
className:
|
|
3369
|
+
className: m("relative overflow-visible px-4", a)
|
|
3348
3370
|
}, i), {
|
|
3349
|
-
children: /* @__PURE__ */ n("div", { className: "flex touch-pan-x select-none", children: e.map((d, u) => /* @__PURE__ */ n("div", { className:
|
|
3371
|
+
children: /* @__PURE__ */ n("div", { className: "flex touch-pan-x select-none", children: e.map((d, u) => /* @__PURE__ */ n("div", { className: m("flex-shrink-0 px-2", o), children: t(d, u) }, u)) })
|
|
3350
3372
|
})
|
|
3351
3373
|
);
|
|
3352
3374
|
}
|
|
@@ -3397,18 +3419,18 @@ function Io(e) {
|
|
|
3397
3419
|
onCheckedChange: c,
|
|
3398
3420
|
ref: f,
|
|
3399
3421
|
"data-testid": d
|
|
3400
|
-
} = e, u = a === "md" ? 16 : 24, b = v.useId(), x = l || b,
|
|
3422
|
+
} = e, u = a === "md" ? 16 : 24, b = v.useId(), x = l || b, p = i || !1, [y, h] = v.useState(!1), g = s !== void 0, N = g ? s : y, M = () => N === !0 ? "checked" : N === "indeterminate" ? "indeterminate" : "unchecked", I = (R) => {
|
|
3401
3423
|
g && c ? c(R) : g || h(R);
|
|
3402
3424
|
}, k = /* @__PURE__ */ n(
|
|
3403
3425
|
Mr.Root,
|
|
3404
3426
|
{
|
|
3405
3427
|
ref: f,
|
|
3406
3428
|
id: x,
|
|
3407
|
-
className:
|
|
3408
|
-
wo({ size: a, state: M(), isDisabled:
|
|
3429
|
+
className: m(
|
|
3430
|
+
wo({ size: a, state: M(), isDisabled: p }),
|
|
3409
3431
|
r || (o ? void 0 : t)
|
|
3410
3432
|
),
|
|
3411
|
-
disabled:
|
|
3433
|
+
disabled: p,
|
|
3412
3434
|
checked: N,
|
|
3413
3435
|
onCheckedChange: I,
|
|
3414
3436
|
"data-testid": d,
|
|
@@ -3418,15 +3440,15 @@ function Io(e) {
|
|
|
3418
3440
|
] })
|
|
3419
3441
|
}
|
|
3420
3442
|
);
|
|
3421
|
-
return o ? /* @__PURE__ */ C("div", { className:
|
|
3422
|
-
/* @__PURE__ */ n("div", { className:
|
|
3443
|
+
return o ? /* @__PURE__ */ C("div", { className: m("items-top flex flex-row space-x-2", t), children: [
|
|
3444
|
+
/* @__PURE__ */ n("div", { className: m(a === "md" && "pt-0.5"), children: k }),
|
|
3423
3445
|
/* @__PURE__ */ n(
|
|
3424
3446
|
"label",
|
|
3425
3447
|
{
|
|
3426
3448
|
htmlFor: x,
|
|
3427
|
-
className:
|
|
3449
|
+
className: m(
|
|
3428
3450
|
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
3429
|
-
|
|
3451
|
+
p && "cursor-not-allowed opacity-40",
|
|
3430
3452
|
a === "lg" && "pt-0.5"
|
|
3431
3453
|
),
|
|
3432
3454
|
children: o
|
|
@@ -3457,7 +3479,7 @@ const rr = v.forwardRef(
|
|
|
3457
3479
|
placeholder: u = "Выберите...",
|
|
3458
3480
|
dropDownClassName: b,
|
|
3459
3481
|
notFoundText: x = "Ничего не найдено"
|
|
3460
|
-
},
|
|
3482
|
+
}, p) => {
|
|
3461
3483
|
var R;
|
|
3462
3484
|
const [y, h] = v.useState(!1), g = v.useRef(null);
|
|
3463
3485
|
v.useEffect(() => {
|
|
@@ -3485,7 +3507,7 @@ const rr = v.forwardRef(
|
|
|
3485
3507
|
disabled: f,
|
|
3486
3508
|
size: c,
|
|
3487
3509
|
iconPosition: "end",
|
|
3488
|
-
className:
|
|
3510
|
+
className: m(
|
|
3489
3511
|
"font-graphik hover:text-secondary-foreground focus:text-secondary-foreground active:text-secondary-foreground w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
3490
3512
|
"focus:shadow-focus border focus:outline-none",
|
|
3491
3513
|
"bg-background border-border placeholder:text-muted-foreground enabled:hover:border-primary focus:border-primary disabled:bg-input-disabled-background",
|
|
@@ -3503,7 +3525,7 @@ const rr = v.forwardRef(
|
|
|
3503
3525
|
/* @__PURE__ */ n(
|
|
3504
3526
|
_,
|
|
3505
3527
|
{
|
|
3506
|
-
className:
|
|
3528
|
+
className: m(
|
|
3507
3529
|
"flex-1 truncate text-left",
|
|
3508
3530
|
!t && "text-muted-foreground"
|
|
3509
3531
|
),
|
|
@@ -3525,7 +3547,7 @@ const rr = v.forwardRef(
|
|
|
3525
3547
|
xe.Content,
|
|
3526
3548
|
{
|
|
3527
3549
|
sideOffset: 4,
|
|
3528
|
-
className:
|
|
3550
|
+
className: m(
|
|
3529
3551
|
"z-[1000]",
|
|
3530
3552
|
"shadow-md",
|
|
3531
3553
|
"bg-popover text-popover-foreground shadow-lg",
|
|
@@ -3557,7 +3579,7 @@ const rr = v.forwardRef(
|
|
|
3557
3579
|
/* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: k.map((E) => /* @__PURE__ */ n(
|
|
3558
3580
|
"div",
|
|
3559
3581
|
{
|
|
3560
|
-
className:
|
|
3582
|
+
className: m(
|
|
3561
3583
|
"font-graphik flex cursor-pointer items-center rounded-md px-3 transition-colors select-none",
|
|
3562
3584
|
"box-border outline-none",
|
|
3563
3585
|
// Разные ховеры для выбранного и невыбранного элемента
|
|
@@ -3642,7 +3664,7 @@ function So({
|
|
|
3642
3664
|
const g = (h == null ? void 0 : h.value) !== void 0 && (h == null ? void 0 : h.value) !== null ? h.value : null;
|
|
3643
3665
|
r == null || r(g);
|
|
3644
3666
|
}
|
|
3645
|
-
}), { selectItem: d, setInputValue: u, getInputProps: b } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]),
|
|
3667
|
+
}), { selectItem: d, setInputValue: u, getInputProps: b } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]), p = $((h) => {
|
|
3646
3668
|
const g = b(h);
|
|
3647
3669
|
return D(w({}, g), {
|
|
3648
3670
|
onBlur: (N) => {
|
|
@@ -3653,7 +3675,7 @@ function So({
|
|
|
3653
3675
|
}, [b, o]);
|
|
3654
3676
|
return D(w({}, x), {
|
|
3655
3677
|
selectItem: d,
|
|
3656
|
-
getInputProps:
|
|
3678
|
+
getInputProps: p,
|
|
3657
3679
|
setInputValue: u
|
|
3658
3680
|
});
|
|
3659
3681
|
}
|
|
@@ -3700,7 +3722,7 @@ function Mo({
|
|
|
3700
3722
|
placeholder: u = "Поиск...",
|
|
3701
3723
|
getLabel: b,
|
|
3702
3724
|
loading: x = !1,
|
|
3703
|
-
isOpen:
|
|
3725
|
+
isOpen: p,
|
|
3704
3726
|
onOpenChange: y,
|
|
3705
3727
|
onClear: h,
|
|
3706
3728
|
clearable: g
|
|
@@ -3716,7 +3738,7 @@ function Mo({
|
|
|
3716
3738
|
onBlur: i,
|
|
3717
3739
|
disabled: f,
|
|
3718
3740
|
getLabel: N,
|
|
3719
|
-
isOpen:
|
|
3741
|
+
isOpen: p,
|
|
3720
3742
|
onOpenChange: y
|
|
3721
3743
|
}), k = To(I.isOpen, x), R = te(() => ({
|
|
3722
3744
|
// Combobox состояние
|
|
@@ -3782,7 +3804,7 @@ const Ro = he("flex-col items-center justify-center", {
|
|
|
3782
3804
|
{
|
|
3783
3805
|
icon: "ProgressActivityIcon",
|
|
3784
3806
|
size: e,
|
|
3785
|
-
className:
|
|
3807
|
+
className: m("text-primary animate-spin", a)
|
|
3786
3808
|
}
|
|
3787
3809
|
),
|
|
3788
3810
|
r
|
|
@@ -3925,7 +3947,7 @@ const Eo = [
|
|
|
3925
3947
|
selectedItem: c,
|
|
3926
3948
|
disabled: f
|
|
3927
3949
|
} = mt();
|
|
3928
|
-
return /* @__PURE__ */ n("div", { className:
|
|
3950
|
+
return /* @__PURE__ */ n("div", { className: m("flex items-center gap-1.5", Go[e]), children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */ C(ge, { children: [
|
|
3929
3951
|
a && /* @__PURE__ */ n(
|
|
3930
3952
|
U,
|
|
3931
3953
|
{
|
|
@@ -3956,7 +3978,7 @@ const Eo = [
|
|
|
3956
3978
|
U,
|
|
3957
3979
|
{
|
|
3958
3980
|
icon: "ArrowDownIcon",
|
|
3959
|
-
className:
|
|
3981
|
+
className: m(
|
|
3960
3982
|
"text-muted-foreground transition-transform",
|
|
3961
3983
|
t && "pl-1",
|
|
3962
3984
|
r && "rotate-180"
|
|
@@ -3968,7 +3990,7 @@ const Eo = [
|
|
|
3968
3990
|
};
|
|
3969
3991
|
gn.displayName = "ComboboxActions";
|
|
3970
3992
|
function Jt(e, t) {
|
|
3971
|
-
return
|
|
3993
|
+
return m(
|
|
3972
3994
|
...Eo,
|
|
3973
3995
|
e ? Ao : Do,
|
|
3974
3996
|
...Fo,
|
|
@@ -3977,7 +3999,7 @@ function Jt(e, t) {
|
|
|
3977
3999
|
}
|
|
3978
4000
|
function bn(e, t, r) {
|
|
3979
4001
|
const a = Ot[e];
|
|
3980
|
-
return
|
|
4002
|
+
return m(
|
|
3981
4003
|
...Lo,
|
|
3982
4004
|
a.fontSize,
|
|
3983
4005
|
a.paddingLeft,
|
|
@@ -3990,7 +4012,7 @@ function bn(e, t, r) {
|
|
|
3990
4012
|
}
|
|
3991
4013
|
function xn(e, t, r, a, o) {
|
|
3992
4014
|
const i = Ot[e];
|
|
3993
|
-
return
|
|
4015
|
+
return m(
|
|
3994
4016
|
...Po,
|
|
3995
4017
|
i.height,
|
|
3996
4018
|
{
|
|
@@ -4009,10 +4031,10 @@ function xn(e, t, r, a, o) {
|
|
|
4009
4031
|
}
|
|
4010
4032
|
function yn(e) {
|
|
4011
4033
|
const t = Ot[e];
|
|
4012
|
-
return
|
|
4034
|
+
return m("mb-1.5", t.labelSize);
|
|
4013
4035
|
}
|
|
4014
4036
|
function vn(e, t) {
|
|
4015
|
-
return
|
|
4037
|
+
return m("hidden", e && Vo, t && "flex flex-col gap-2");
|
|
4016
4038
|
}
|
|
4017
4039
|
function _t(e) {
|
|
4018
4040
|
return e != null && e !== "";
|
|
@@ -4028,14 +4050,14 @@ const wn = v.forwardRef(
|
|
|
4028
4050
|
error: d,
|
|
4029
4051
|
isOpen: u,
|
|
4030
4052
|
refs: b
|
|
4031
|
-
} = mt(), x = $((
|
|
4032
|
-
typeof a == "function" ? a(
|
|
4053
|
+
} = mt(), x = $((p) => {
|
|
4054
|
+
typeof a == "function" ? a(p) : a && (a.current = p), b.reference.current !== p && p !== null && b.setReference(p);
|
|
4033
4055
|
}, [a, b]);
|
|
4034
4056
|
return /* @__PURE__ */ n(
|
|
4035
4057
|
"div",
|
|
4036
4058
|
D(w({
|
|
4037
4059
|
ref: x,
|
|
4038
|
-
className:
|
|
4060
|
+
className: m(
|
|
4039
4061
|
xn(s, l, c, f, _t(d)),
|
|
4040
4062
|
t
|
|
4041
4063
|
),
|
|
@@ -4089,7 +4111,7 @@ function Et(s) {
|
|
|
4089
4111
|
st.Root,
|
|
4090
4112
|
D(w({
|
|
4091
4113
|
"data-slot": "scroll-area",
|
|
4092
|
-
className:
|
|
4114
|
+
className: m(
|
|
4093
4115
|
a && "relative",
|
|
4094
4116
|
e
|
|
4095
4117
|
)
|
|
@@ -4099,7 +4121,7 @@ function Et(s) {
|
|
|
4099
4121
|
st.Viewport,
|
|
4100
4122
|
{
|
|
4101
4123
|
"data-slot": "scroll-area-viewport",
|
|
4102
|
-
className:
|
|
4124
|
+
className: m(
|
|
4103
4125
|
"focus:border-primary/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus:border-[3px] focus:outline-1",
|
|
4104
4126
|
r
|
|
4105
4127
|
),
|
|
@@ -4126,7 +4148,7 @@ function Wo(a) {
|
|
|
4126
4148
|
D(w({
|
|
4127
4149
|
"data-slot": "scroll-area-scrollbar",
|
|
4128
4150
|
orientation: t,
|
|
4129
|
-
className:
|
|
4151
|
+
className: m(
|
|
4130
4152
|
"flex touch-none p-px transition-colors select-none",
|
|
4131
4153
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
4132
4154
|
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
@@ -4196,12 +4218,12 @@ function jo({
|
|
|
4196
4218
|
if (!v.isValidElement(d))
|
|
4197
4219
|
return d;
|
|
4198
4220
|
if (Fr(d.type, "List")) {
|
|
4199
|
-
const b = v.Children.map(d.props.children, (
|
|
4200
|
-
if (!v.isValidElement(
|
|
4201
|
-
return
|
|
4202
|
-
if (Fr(
|
|
4221
|
+
const b = v.Children.map(d.props.children, (p, y) => {
|
|
4222
|
+
if (!v.isValidElement(p))
|
|
4223
|
+
return p;
|
|
4224
|
+
if (Fr(p.type, "Item"))
|
|
4203
4225
|
try {
|
|
4204
|
-
const h =
|
|
4226
|
+
const h = p.props, g = Qt(h.option), N = i.get(g);
|
|
4205
4227
|
if (N) {
|
|
4206
4228
|
const { item: M, index: I } = N, k = s === g;
|
|
4207
4229
|
return /* @__PURE__ */ n(
|
|
@@ -4227,13 +4249,13 @@ function jo({
|
|
|
4227
4249
|
} catch (h) {
|
|
4228
4250
|
return null;
|
|
4229
4251
|
}
|
|
4230
|
-
return
|
|
4252
|
+
return p;
|
|
4231
4253
|
}), x = /* @__PURE__ */ n(
|
|
4232
4254
|
Et,
|
|
4233
4255
|
{
|
|
4234
|
-
className:
|
|
4256
|
+
className: m("flex max-h-60 flex-col", t == null ? void 0 : t.scrollArea),
|
|
4235
4257
|
relative: !1,
|
|
4236
|
-
viewPortClassName:
|
|
4258
|
+
viewPortClassName: m("!flex flex-col", t == null ? void 0 : t.scrollAreaViewport),
|
|
4237
4259
|
asChild: !0,
|
|
4238
4260
|
children: b
|
|
4239
4261
|
}
|
|
@@ -4267,7 +4289,7 @@ const Cn = v.forwardRef(
|
|
|
4267
4289
|
ref: b
|
|
4268
4290
|
})), {
|
|
4269
4291
|
style: w(w({}, f), d),
|
|
4270
|
-
className:
|
|
4292
|
+
className: m(vn(s, u), t),
|
|
4271
4293
|
"data-state": s ? "open" : "closed"
|
|
4272
4294
|
}), r), {
|
|
4273
4295
|
children: s && e
|
|
@@ -4326,7 +4348,7 @@ function Ho({
|
|
|
4326
4348
|
caption: u,
|
|
4327
4349
|
placeholder: b = "Поиск...",
|
|
4328
4350
|
disabled: x = !1,
|
|
4329
|
-
"data-testid":
|
|
4351
|
+
"data-testid": p,
|
|
4330
4352
|
getLabel: y = (R) => typeof R == "object" && R !== null && "label" in R ? R.label : "",
|
|
4331
4353
|
loading: h = !1,
|
|
4332
4354
|
isOpen: g,
|
|
@@ -4367,7 +4389,7 @@ function Ho({
|
|
|
4367
4389
|
}
|
|
4368
4390
|
),
|
|
4369
4391
|
/* @__PURE__ */ C(wn, { children: [
|
|
4370
|
-
/* @__PURE__ */ n(Nn, { "data-testid":
|
|
4392
|
+
/* @__PURE__ */ n(Nn, { "data-testid": p }),
|
|
4371
4393
|
/* @__PURE__ */ n(gn, {})
|
|
4372
4394
|
] }),
|
|
4373
4395
|
/* @__PURE__ */ n(Cn, { className: c == null ? void 0 : c.menu, children: /* @__PURE__ */ n(
|
|
@@ -4411,7 +4433,7 @@ function Uo({
|
|
|
4411
4433
|
inputValueOnSelect: u,
|
|
4412
4434
|
inputValueOnClose: b
|
|
4413
4435
|
}) {
|
|
4414
|
-
const x = pe(null),
|
|
4436
|
+
const x = pe(null), p = $((R, E) => {
|
|
4415
4437
|
const { type: S, changes: F } = E;
|
|
4416
4438
|
switch (S) {
|
|
4417
4439
|
case me.stateChangeTypes.ItemClick:
|
|
@@ -4431,7 +4453,7 @@ function Uo({
|
|
|
4431
4453
|
}
|
|
4432
4454
|
}, [s, u, b, d]), y = {
|
|
4433
4455
|
items: e,
|
|
4434
|
-
stateReducer:
|
|
4456
|
+
stateReducer: p,
|
|
4435
4457
|
isOpen: l,
|
|
4436
4458
|
onIsOpenChange: (R) => {
|
|
4437
4459
|
var E;
|
|
@@ -4516,7 +4538,7 @@ function $o({
|
|
|
4516
4538
|
hasSelection: u,
|
|
4517
4539
|
size: b = "sm",
|
|
4518
4540
|
fullWidth: x = !0,
|
|
4519
|
-
transparent:
|
|
4541
|
+
transparent: p = !1,
|
|
4520
4542
|
disabled: y = !1,
|
|
4521
4543
|
error: h,
|
|
4522
4544
|
placeholder: g = "Поиск...",
|
|
@@ -4566,7 +4588,7 @@ function $o({
|
|
|
4566
4588
|
// Пропсы компонента
|
|
4567
4589
|
size: b,
|
|
4568
4590
|
fullWidth: x,
|
|
4569
|
-
transparent:
|
|
4591
|
+
transparent: p,
|
|
4570
4592
|
disabled: y,
|
|
4571
4593
|
error: h,
|
|
4572
4594
|
placeholder: g,
|
|
@@ -4583,7 +4605,7 @@ function $o({
|
|
|
4583
4605
|
j,
|
|
4584
4606
|
b,
|
|
4585
4607
|
x,
|
|
4586
|
-
|
|
4608
|
+
p,
|
|
4587
4609
|
y,
|
|
4588
4610
|
h,
|
|
4589
4611
|
g,
|
|
@@ -4621,7 +4643,7 @@ const Mn = () => {
|
|
|
4621
4643
|
U,
|
|
4622
4644
|
{
|
|
4623
4645
|
icon: "ArrowDownIcon",
|
|
4624
|
-
className:
|
|
4646
|
+
className: m(
|
|
4625
4647
|
"text-muted-foreground transition-transform",
|
|
4626
4648
|
t && "pl-1",
|
|
4627
4649
|
r && "rotate-180"
|
|
@@ -4643,14 +4665,14 @@ const Rn = v.forwardRef(
|
|
|
4643
4665
|
error: d,
|
|
4644
4666
|
isOpen: u,
|
|
4645
4667
|
refs: b
|
|
4646
|
-
} = pt(), x = $((
|
|
4647
|
-
typeof a == "function" ? a(
|
|
4668
|
+
} = pt(), x = $((p) => {
|
|
4669
|
+
typeof a == "function" ? a(p) : a && (a.current = p), b.reference.current !== p && p !== null && b.setReference(p);
|
|
4648
4670
|
}, [a, b]);
|
|
4649
4671
|
return /* @__PURE__ */ n(
|
|
4650
4672
|
"div",
|
|
4651
4673
|
D(w({
|
|
4652
4674
|
ref: x,
|
|
4653
|
-
className:
|
|
4675
|
+
className: m(
|
|
4654
4676
|
xn(s, l, c, f, _t(d)),
|
|
4655
4677
|
t
|
|
4656
4678
|
),
|
|
@@ -4721,17 +4743,17 @@ function Yo({
|
|
|
4721
4743
|
return null;
|
|
4722
4744
|
}
|
|
4723
4745
|
return y;
|
|
4724
|
-
}),
|
|
4746
|
+
}), p = /* @__PURE__ */ n(
|
|
4725
4747
|
Et,
|
|
4726
4748
|
{
|
|
4727
|
-
className:
|
|
4749
|
+
className: m("flex max-h-60 flex-col", t == null ? void 0 : t.scrollArea),
|
|
4728
4750
|
relative: !1,
|
|
4729
|
-
viewPortClassName:
|
|
4751
|
+
viewPortClassName: m("!flex flex-col", t == null ? void 0 : t.scrollAreaViewport),
|
|
4730
4752
|
asChild: !0,
|
|
4731
4753
|
children: x
|
|
4732
4754
|
}
|
|
4733
4755
|
);
|
|
4734
|
-
return v.cloneElement(u, u.props,
|
|
4756
|
+
return v.cloneElement(u, u.props, p);
|
|
4735
4757
|
}
|
|
4736
4758
|
return u;
|
|
4737
4759
|
}))(e);
|
|
@@ -4760,7 +4782,7 @@ const An = v.forwardRef(
|
|
|
4760
4782
|
ref: b
|
|
4761
4783
|
})), {
|
|
4762
4784
|
style: w(w({}, f), d),
|
|
4763
|
-
className:
|
|
4785
|
+
className: m(vn(s, u), t),
|
|
4764
4786
|
"data-state": s ? "open" : "closed"
|
|
4765
4787
|
}), r), {
|
|
4766
4788
|
children: s && e
|
|
@@ -4796,12 +4818,12 @@ function Jo({
|
|
|
4796
4818
|
placeholder: d,
|
|
4797
4819
|
getInputProps: u,
|
|
4798
4820
|
onOpenChange: b
|
|
4799
|
-
} = pt(), x = pe(null),
|
|
4821
|
+
} = pt(), x = pe(null), p = pe(null), [y, h] = ae(2);
|
|
4800
4822
|
na(() => {
|
|
4801
|
-
if (!e.length || !
|
|
4823
|
+
if (!e.length || !p.current)
|
|
4802
4824
|
return;
|
|
4803
4825
|
const I = () => {
|
|
4804
|
-
const R =
|
|
4826
|
+
const R = p.current;
|
|
4805
4827
|
if (!R)
|
|
4806
4828
|
return;
|
|
4807
4829
|
const j = R.offsetWidth - 56 - 30 - 8;
|
|
@@ -4819,7 +4841,7 @@ function Jo({
|
|
|
4819
4841
|
};
|
|
4820
4842
|
I();
|
|
4821
4843
|
const k = new ResizeObserver(I);
|
|
4822
|
-
return k.observe(
|
|
4844
|
+
return k.observe(p.current), () => {
|
|
4823
4845
|
k.disconnect();
|
|
4824
4846
|
};
|
|
4825
4847
|
}, [r, o, e]);
|
|
@@ -4831,8 +4853,8 @@ function Jo({
|
|
|
4831
4853
|
return /* @__PURE__ */ C(
|
|
4832
4854
|
"div",
|
|
4833
4855
|
{
|
|
4834
|
-
ref:
|
|
4835
|
-
className:
|
|
4856
|
+
ref: p,
|
|
4857
|
+
className: m(
|
|
4836
4858
|
"flex min-w-0 flex-1 items-center justify-start gap-1 overflow-hidden",
|
|
4837
4859
|
l === "xs" ? "pl-1.5" : "pl-2",
|
|
4838
4860
|
"pr-2"
|
|
@@ -4848,7 +4870,7 @@ function Jo({
|
|
|
4848
4870
|
g.map((I) => /* @__PURE__ */ C(
|
|
4849
4871
|
"div",
|
|
4850
4872
|
{
|
|
4851
|
-
className:
|
|
4873
|
+
className: m(
|
|
4852
4874
|
"flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
|
|
4853
4875
|
f && "opacity-60"
|
|
4854
4876
|
),
|
|
@@ -4866,7 +4888,7 @@ function Jo({
|
|
|
4866
4888
|
onClick: (k) => {
|
|
4867
4889
|
f || (k.preventDefault(), k.stopPropagation(), t(I));
|
|
4868
4890
|
},
|
|
4869
|
-
className:
|
|
4891
|
+
className: m(
|
|
4870
4892
|
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
4871
4893
|
f && "cursor-not-allowed"
|
|
4872
4894
|
),
|
|
@@ -4883,7 +4905,7 @@ function Jo({
|
|
|
4883
4905
|
N > 0 && /* @__PURE__ */ n(
|
|
4884
4906
|
"div",
|
|
4885
4907
|
{
|
|
4886
|
-
className:
|
|
4908
|
+
className: m(
|
|
4887
4909
|
"flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm"
|
|
4888
4910
|
),
|
|
4889
4911
|
role: "button",
|
|
@@ -4915,7 +4937,7 @@ function Jo({
|
|
|
4915
4937
|
value: M.value || "",
|
|
4916
4938
|
disabled: f,
|
|
4917
4939
|
placeholder: e.length > 0 ? "" : d,
|
|
4918
|
-
className:
|
|
4940
|
+
className: m(
|
|
4919
4941
|
bn(l, c, f),
|
|
4920
4942
|
"!w-auto !min-w-[2px] !flex-1 !px-0 !py-0 !pl-0 !pr-0"
|
|
4921
4943
|
)
|
|
@@ -4940,7 +4962,7 @@ function Qo({
|
|
|
4940
4962
|
caption: u,
|
|
4941
4963
|
placeholder: b = "Поиск...",
|
|
4942
4964
|
disabled: x = !1,
|
|
4943
|
-
"data-testid":
|
|
4965
|
+
"data-testid": p,
|
|
4944
4966
|
getLabel: y = (F) => typeof F == "object" && F !== null && "label" in F ? F.label : "",
|
|
4945
4967
|
getKey: h = Zo,
|
|
4946
4968
|
loading: g = !1,
|
|
@@ -5012,17 +5034,17 @@ function Qo({
|
|
|
5012
5034
|
getKey: h,
|
|
5013
5035
|
maxTags: S,
|
|
5014
5036
|
onInputKeyDown: N,
|
|
5015
|
-
"data-testid":
|
|
5037
|
+
"data-testid": p
|
|
5016
5038
|
}
|
|
5017
5039
|
),
|
|
5018
5040
|
/* @__PURE__ */ n(Mn, {})
|
|
5019
5041
|
] }),
|
|
5020
|
-
/* @__PURE__ */ n(An, { className:
|
|
5042
|
+
/* @__PURE__ */ n(An, { className: m("p-1", c == null ? void 0 : c.menu), children: /* @__PURE__ */ n(
|
|
5021
5043
|
En,
|
|
5022
5044
|
{
|
|
5023
5045
|
classNames: {
|
|
5024
|
-
scrollArea:
|
|
5025
|
-
scrollAreaViewport:
|
|
5046
|
+
scrollArea: m("gap-0.5", c == null ? void 0 : c.scrollArea),
|
|
5047
|
+
scrollAreaViewport: m("gap-0.5", c == null ? void 0 : c.scrollAreaViewport)
|
|
5026
5048
|
},
|
|
5027
5049
|
children: e
|
|
5028
5050
|
}
|
|
@@ -5049,15 +5071,15 @@ function Fn(e) {
|
|
|
5049
5071
|
loop: !1,
|
|
5050
5072
|
slidesToScroll: 1,
|
|
5051
5073
|
containScroll: "trimSnaps"
|
|
5052
|
-
}, a), i = w(w({}, Xo), t), [s, l] = ir(o), [c, f] = ae(r), [d, u] = ae(!1), [b, x] = ae(!1),
|
|
5074
|
+
}, a), i = w(w({}, Xo), t), [s, l] = ir(o), [c, f] = ae(r), [d, u] = ae(!1), [b, x] = ae(!1), p = $(() => {
|
|
5053
5075
|
l && (f(l.selectedScrollSnap()), u(l.canScrollNext()), x(l.canScrollPrev()));
|
|
5054
5076
|
}, [l]);
|
|
5055
5077
|
ue(() => {
|
|
5056
5078
|
if (l)
|
|
5057
|
-
return l.on("select",
|
|
5058
|
-
l.off("select",
|
|
5079
|
+
return l.on("select", p), l.on("reInit", p), r > 0 && r < l.slideNodes().length && l.scrollTo(r), p(), () => {
|
|
5080
|
+
l.off("select", p), l.off("reInit", p);
|
|
5059
5081
|
};
|
|
5060
|
-
}, [l,
|
|
5082
|
+
}, [l, p, r]);
|
|
5061
5083
|
const y = $((I) => {
|
|
5062
5084
|
l && l.scrollTo(I);
|
|
5063
5085
|
}, [l]), h = $(() => {
|
|
@@ -5089,14 +5111,14 @@ function Vt() {
|
|
|
5089
5111
|
}
|
|
5090
5112
|
function qo({ children: e, className: t, options: r }) {
|
|
5091
5113
|
const a = Fn(r);
|
|
5092
|
-
return /* @__PURE__ */ n(Ln.Provider, { value: a, children: /* @__PURE__ */ n("div", { className:
|
|
5114
|
+
return /* @__PURE__ */ n(Ln.Provider, { value: a, children: /* @__PURE__ */ n("div", { className: m("relative w-full", t), children: e }) });
|
|
5093
5115
|
}
|
|
5094
5116
|
function ei({ items: e, className: t, slideClassName: r }) {
|
|
5095
5117
|
const { emblaRef: a } = Vt();
|
|
5096
|
-
return /* @__PURE__ */ n("div", { ref: a, className:
|
|
5118
|
+
return /* @__PURE__ */ n("div", { ref: a, className: m("overflow-hidden", t), children: /* @__PURE__ */ n("div", { className: "flex", children: e.map((o, i) => /* @__PURE__ */ n(
|
|
5097
5119
|
"div",
|
|
5098
5120
|
{
|
|
5099
|
-
className:
|
|
5121
|
+
className: m("flex-[0_0_100%] min-w-0", r),
|
|
5100
5122
|
style: { flex: "0 0 100%" },
|
|
5101
5123
|
children: o
|
|
5102
5124
|
},
|
|
@@ -5110,9 +5132,9 @@ function ti({
|
|
|
5110
5132
|
textClassName: a
|
|
5111
5133
|
}) {
|
|
5112
5134
|
const { active: o } = Vt(), i = e[o] || {};
|
|
5113
|
-
return /* @__PURE__ */ C("div", { className:
|
|
5114
|
-
i.title && /* @__PURE__ */ n("div", { className:
|
|
5115
|
-
i.text && /* @__PURE__ */ n("div", { className:
|
|
5135
|
+
return /* @__PURE__ */ C("div", { className: m(t), children: [
|
|
5136
|
+
i.title && /* @__PURE__ */ n("div", { className: m(r), children: i.title }),
|
|
5137
|
+
i.text && /* @__PURE__ */ n("div", { className: m(a), children: i.text })
|
|
5116
5138
|
] });
|
|
5117
5139
|
}
|
|
5118
5140
|
function ri({
|
|
@@ -5121,9 +5143,9 @@ function ri({
|
|
|
5121
5143
|
titleClassName: r,
|
|
5122
5144
|
textClassName: a
|
|
5123
5145
|
}) {
|
|
5124
|
-
return /* @__PURE__ */ C("div", { className:
|
|
5125
|
-
e.title && /* @__PURE__ */ n("div", { className:
|
|
5126
|
-
e.text && /* @__PURE__ */ n("div", { className:
|
|
5146
|
+
return /* @__PURE__ */ C("div", { className: m(t), children: [
|
|
5147
|
+
e.title && /* @__PURE__ */ n("div", { className: m(r), children: e.title }),
|
|
5148
|
+
e.text && /* @__PURE__ */ n("div", { className: m(a), children: e.text })
|
|
5127
5149
|
] });
|
|
5128
5150
|
}
|
|
5129
5151
|
const Pn = he(
|
|
@@ -5175,18 +5197,18 @@ function ni({
|
|
|
5175
5197
|
"div",
|
|
5176
5198
|
{
|
|
5177
5199
|
onClick: l,
|
|
5178
|
-
className:
|
|
5200
|
+
className: m(
|
|
5179
5201
|
"cursor-pointer",
|
|
5180
5202
|
!f && "opacity-50 cursor-not-allowed"
|
|
5181
5203
|
),
|
|
5182
5204
|
"aria-disabled": !f,
|
|
5183
5205
|
children: e
|
|
5184
5206
|
}
|
|
5185
|
-
),
|
|
5207
|
+
), p = () => !t || b ? null : typeof t == "function" ? t({ onClick: c, disabled: !d }) : /* @__PURE__ */ n(
|
|
5186
5208
|
"div",
|
|
5187
5209
|
{
|
|
5188
5210
|
onClick: c,
|
|
5189
|
-
className:
|
|
5211
|
+
className: m(
|
|
5190
5212
|
"cursor-pointer",
|
|
5191
5213
|
!d && "opacity-50 cursor-not-allowed"
|
|
5192
5214
|
),
|
|
@@ -5197,14 +5219,14 @@ function ni({
|
|
|
5197
5219
|
return /* @__PURE__ */ C(
|
|
5198
5220
|
"div",
|
|
5199
5221
|
{
|
|
5200
|
-
className:
|
|
5222
|
+
className: m(
|
|
5201
5223
|
Pn({ position: a, align: o }),
|
|
5202
5224
|
i && "opacity-0 group-hover:opacity-100",
|
|
5203
5225
|
r
|
|
5204
5226
|
),
|
|
5205
5227
|
children: [
|
|
5206
5228
|
x(),
|
|
5207
|
-
|
|
5229
|
+
p()
|
|
5208
5230
|
]
|
|
5209
5231
|
}
|
|
5210
5232
|
);
|
|
@@ -5228,18 +5250,18 @@ function ai({
|
|
|
5228
5250
|
"div",
|
|
5229
5251
|
{
|
|
5230
5252
|
onClick: e,
|
|
5231
|
-
className:
|
|
5253
|
+
className: m(
|
|
5232
5254
|
"cursor-pointer",
|
|
5233
5255
|
!r && "opacity-50 cursor-not-allowed"
|
|
5234
5256
|
),
|
|
5235
5257
|
"aria-disabled": !r,
|
|
5236
5258
|
children: o
|
|
5237
5259
|
}
|
|
5238
|
-
),
|
|
5260
|
+
), p = () => !i || b ? null : typeof i == "function" ? i({ onClick: t, disabled: !a }) : /* @__PURE__ */ n(
|
|
5239
5261
|
"div",
|
|
5240
5262
|
{
|
|
5241
5263
|
onClick: t,
|
|
5242
|
-
className:
|
|
5264
|
+
className: m(
|
|
5243
5265
|
"cursor-pointer",
|
|
5244
5266
|
!a && "opacity-50 cursor-not-allowed"
|
|
5245
5267
|
),
|
|
@@ -5250,14 +5272,14 @@ function ai({
|
|
|
5250
5272
|
return /* @__PURE__ */ C(
|
|
5251
5273
|
"div",
|
|
5252
5274
|
{
|
|
5253
|
-
className:
|
|
5275
|
+
className: m(
|
|
5254
5276
|
Pn({ position: l, align: c }),
|
|
5255
5277
|
f && "opacity-0 group-hover:opacity-100",
|
|
5256
5278
|
s
|
|
5257
5279
|
),
|
|
5258
5280
|
children: [
|
|
5259
5281
|
x(),
|
|
5260
|
-
|
|
5282
|
+
p()
|
|
5261
5283
|
]
|
|
5262
5284
|
}
|
|
5263
5285
|
);
|
|
@@ -5310,7 +5332,7 @@ function zn({
|
|
|
5310
5332
|
return !a || t <= 1 ? null : /* @__PURE__ */ n(
|
|
5311
5333
|
"div",
|
|
5312
5334
|
{
|
|
5313
|
-
className:
|
|
5335
|
+
className: m(
|
|
5314
5336
|
oi({ position: o, align: i }),
|
|
5315
5337
|
s
|
|
5316
5338
|
),
|
|
@@ -5320,11 +5342,11 @@ function zn({
|
|
|
5320
5342
|
"div",
|
|
5321
5343
|
{
|
|
5322
5344
|
onClick: () => r(d),
|
|
5323
|
-
className:
|
|
5345
|
+
className: m(
|
|
5324
5346
|
"h-[3px] rounded-full transition-all duration-300 cursor-pointer focus:outline-none focus:ring-[#251D35]",
|
|
5325
|
-
d === e ?
|
|
5347
|
+
d === e ? m("w-6", l) : (
|
|
5326
5348
|
// 24px для активного (w-6)
|
|
5327
|
-
|
|
5349
|
+
m("w-4", c)
|
|
5328
5350
|
)
|
|
5329
5351
|
// 16px для неактивного (w-4)
|
|
5330
5352
|
),
|
|
@@ -5349,7 +5371,7 @@ function ii({ className: e, count: t }) {
|
|
|
5349
5371
|
show: i,
|
|
5350
5372
|
position: s,
|
|
5351
5373
|
align: l,
|
|
5352
|
-
className:
|
|
5374
|
+
className: m(c, e),
|
|
5353
5375
|
activeClassName: f,
|
|
5354
5376
|
inactiveClassName: d
|
|
5355
5377
|
}
|
|
@@ -5394,8 +5416,8 @@ function Gl(b) {
|
|
|
5394
5416
|
"showButtonsOnlyOnHover",
|
|
5395
5417
|
"hideDisabledButtons"
|
|
5396
5418
|
]);
|
|
5397
|
-
const
|
|
5398
|
-
return /* @__PURE__ */ C(kt.Root, { options: r, className:
|
|
5419
|
+
const p = !!(i || s);
|
|
5420
|
+
return /* @__PURE__ */ C(kt.Root, { options: r, className: m("group", a), children: [
|
|
5399
5421
|
/* @__PURE__ */ C("div", { className: "relative", children: [
|
|
5400
5422
|
/* @__PURE__ */ n(
|
|
5401
5423
|
kt.Items,
|
|
@@ -5404,7 +5426,7 @@ function Gl(b) {
|
|
|
5404
5426
|
slideClassName: o
|
|
5405
5427
|
}, u)
|
|
5406
5428
|
),
|
|
5407
|
-
|
|
5429
|
+
p && /* @__PURE__ */ n(
|
|
5408
5430
|
kt.Buttons,
|
|
5409
5431
|
{
|
|
5410
5432
|
prevButton: i,
|
|
@@ -5427,7 +5449,7 @@ function Wl({
|
|
|
5427
5449
|
className: o
|
|
5428
5450
|
}) {
|
|
5429
5451
|
const i = Fn(t);
|
|
5430
|
-
return /* @__PURE__ */ C("div", { className:
|
|
5452
|
+
return /* @__PURE__ */ C("div", { className: m("relative w-full", o), children: [
|
|
5431
5453
|
r(i, e),
|
|
5432
5454
|
a && a(i, e)
|
|
5433
5455
|
] });
|
|
@@ -5448,14 +5470,14 @@ function At(i) {
|
|
|
5448
5470
|
da,
|
|
5449
5471
|
w({
|
|
5450
5472
|
showOutsideDays: r,
|
|
5451
|
-
className:
|
|
5473
|
+
className: m("p-0 md:p-[10px] md:pb-0", e),
|
|
5452
5474
|
classNames: w({
|
|
5453
5475
|
months: "flex flex-col md:flex-row gap-2",
|
|
5454
5476
|
month: "flex flex-col gap-3 items-center md:items-start font-medium",
|
|
5455
5477
|
caption: "flex justify-center pt-1 relative items-center w-full",
|
|
5456
5478
|
caption_label: "text-[14px] font-graphik",
|
|
5457
5479
|
nav: "flex items-center gap-1",
|
|
5458
|
-
nav_button:
|
|
5480
|
+
nav_button: m(
|
|
5459
5481
|
tn({ variant: "default", iconOnly: !0 }),
|
|
5460
5482
|
"size-8 md:size-6"
|
|
5461
5483
|
),
|
|
@@ -5465,7 +5487,7 @@ function At(i) {
|
|
|
5465
5487
|
head_row: "flex items-center p-0",
|
|
5466
5488
|
head_cell: "text-muted-foreground font-graphik text-[12px] w-full p-0 py-1 pb-3 font-normal",
|
|
5467
5489
|
row: "flex w-full mb-1",
|
|
5468
|
-
cell:
|
|
5490
|
+
cell: m(
|
|
5469
5491
|
"relative w-full text-center text-[14px] focus-within:relative focus-within:z-20 px-[2px] py-0",
|
|
5470
5492
|
o.mode === "range" ? [
|
|
5471
5493
|
"[&:has(>.day-range-end)]:rounded-r-md",
|
|
@@ -5474,22 +5496,22 @@ function At(i) {
|
|
|
5474
5496
|
"[&:has(.day-outside)]:bg-transparent"
|
|
5475
5497
|
].join(" ") : "[&:has([aria-selected])]:rounded-md"
|
|
5476
5498
|
),
|
|
5477
|
-
day:
|
|
5499
|
+
day: m(
|
|
5478
5500
|
"w-full h-8 md:h-auto md:w-auto md:size-8 bg-transparent border-0 p-0 font-graphik aria-selected:opacity-100 cursor-pointer rounded-l-md rounded-r-md hover:bg-muted"
|
|
5479
5501
|
),
|
|
5480
|
-
day_range_start:
|
|
5502
|
+
day_range_start: m(
|
|
5481
5503
|
"day-range-start",
|
|
5482
5504
|
"[&:not(.day-outside)]:bg-primary",
|
|
5483
5505
|
"[&:not(.day-outside)]:text-primary-foreground",
|
|
5484
5506
|
"aria-selected:[&:not(.day-outside)]:bg-primary",
|
|
5485
5507
|
"aria-selected:[&:not(.day-outside)]:text-primary-foreground"
|
|
5486
5508
|
),
|
|
5487
|
-
day_range_middle:
|
|
5509
|
+
day_range_middle: m(
|
|
5488
5510
|
"day-range-middle",
|
|
5489
5511
|
"[&:not(.day-outside)]:bg-primary-10",
|
|
5490
5512
|
"[&:not(.day-outside)]:text-black"
|
|
5491
5513
|
),
|
|
5492
|
-
day_range_end:
|
|
5514
|
+
day_range_end: m(
|
|
5493
5515
|
"day-range-end",
|
|
5494
5516
|
"[&:not(.day-outside)]:bg-primary",
|
|
5495
5517
|
"[&:not(.day-outside)]:text-primary-foreground",
|
|
@@ -5554,7 +5576,7 @@ const si = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url)
|
|
|
5554
5576
|
}
|
|
5555
5577
|
}), ht = ce.Root, gt = ce.Portal, Qe = v.forwardRef((a, r) => {
|
|
5556
5578
|
var o = a, { className: e } = o, t = B(o, ["className"]);
|
|
5557
|
-
return /* @__PURE__ */ n(ce.Trigger, D(w({}, t), { asChild: !0, ref: r, className:
|
|
5579
|
+
return /* @__PURE__ */ n(ce.Trigger, D(w({}, t), { asChild: !0, ref: r, className: m(e) }));
|
|
5558
5580
|
});
|
|
5559
5581
|
Qe.displayName = "Trigger";
|
|
5560
5582
|
const bi = he(
|
|
@@ -5566,7 +5588,7 @@ const bi = he(
|
|
|
5566
5588
|
D(w({}, r), {
|
|
5567
5589
|
ref: a,
|
|
5568
5590
|
style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : D(w({}, t), { zIndex: 50 }),
|
|
5569
|
-
className:
|
|
5591
|
+
className: m(bi(), e)
|
|
5570
5592
|
})
|
|
5571
5593
|
);
|
|
5572
5594
|
});
|
|
@@ -5628,8 +5650,8 @@ const xi = he(
|
|
|
5628
5650
|
}
|
|
5629
5651
|
}
|
|
5630
5652
|
), qe = v.forwardRef(
|
|
5631
|
-
(
|
|
5632
|
-
var y =
|
|
5653
|
+
(p, x) => {
|
|
5654
|
+
var y = p, {
|
|
5633
5655
|
className: e,
|
|
5634
5656
|
children: t,
|
|
5635
5657
|
width: r,
|
|
@@ -5668,7 +5690,7 @@ const xi = he(
|
|
|
5668
5690
|
onInteractOutside: (h) => {
|
|
5669
5691
|
s ? h.preventDefault() : c == null || c(h);
|
|
5670
5692
|
},
|
|
5671
|
-
className:
|
|
5693
|
+
className: m(
|
|
5672
5694
|
xi({ width: r, overflow: a, padding: u, mobileFullHeight: o }),
|
|
5673
5695
|
Gt({ all: !0 }),
|
|
5674
5696
|
e
|
|
@@ -5687,7 +5709,7 @@ const $e = v.forwardRef(
|
|
|
5687
5709
|
D(w({}, r), {
|
|
5688
5710
|
"data-testid": t,
|
|
5689
5711
|
ref: a,
|
|
5690
|
-
className:
|
|
5712
|
+
className: m(
|
|
5691
5713
|
"no-scrollbar flex grow-1 flex-col overflow-y-auto",
|
|
5692
5714
|
e
|
|
5693
5715
|
)
|
|
@@ -5705,7 +5727,7 @@ const mr = v.forwardRef((i, o) => {
|
|
|
5705
5727
|
}, a), {
|
|
5706
5728
|
as: "h2",
|
|
5707
5729
|
variant: "h1",
|
|
5708
|
-
className:
|
|
5730
|
+
className: m(e),
|
|
5709
5731
|
"data-testid": r,
|
|
5710
5732
|
children: t
|
|
5711
5733
|
})
|
|
@@ -5720,7 +5742,7 @@ const pr = v.forwardRef(
|
|
|
5720
5742
|
D(w({}, a), {
|
|
5721
5743
|
ref: o,
|
|
5722
5744
|
"data-testid": r,
|
|
5723
|
-
className:
|
|
5745
|
+
className: m(
|
|
5724
5746
|
"-mx-4 px-4 md:-mx-6 md:px-6",
|
|
5725
5747
|
"bottom-0 z-[1] flex pt-4",
|
|
5726
5748
|
Gt({ [t]: !0 }),
|
|
@@ -5738,7 +5760,7 @@ const bt = v.forwardRef((o, a) => {
|
|
|
5738
5760
|
D(w({}, r), {
|
|
5739
5761
|
ref: a,
|
|
5740
5762
|
"data-testid": t,
|
|
5741
|
-
className:
|
|
5763
|
+
className: m("shrink-0 rounded-lg", e),
|
|
5742
5764
|
variant: "default",
|
|
5743
5765
|
iconOnly: !0,
|
|
5744
5766
|
icon: "CloseIcon",
|
|
@@ -5769,9 +5791,9 @@ function Hl() {
|
|
|
5769
5791
|
}
|
|
5770
5792
|
function yi(e) {
|
|
5771
5793
|
var R;
|
|
5772
|
-
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, c] = v.useState(!1), [f, d] = v.useState(e.hideFooter), [u, b] = v.useState(!1), [x,
|
|
5794
|
+
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, c] = v.useState(!1), [f, d] = v.useState(e.hideFooter), [u, b] = v.useState(!1), [x, p] = v.useState(e.width), y = v.useContext(xt), h = (R = y == null ? void 0 : y.nextBaseZIndex) != null ? R : e.baseZIndex, g = h + 1, N = h + 2, M = h + 3, I = v.useMemo(() => !l && i ? "top" : "none", [l, i]), k = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
|
|
5773
5795
|
return v.useEffect(() => {
|
|
5774
|
-
|
|
5796
|
+
p(e.width);
|
|
5775
5797
|
}, [e.width]), v.useEffect(() => {
|
|
5776
5798
|
d(e.hideFooter);
|
|
5777
5799
|
}, [e.hideFooter]), v.useEffect(() => {
|
|
@@ -5800,7 +5822,7 @@ function yi(e) {
|
|
|
5800
5822
|
mobileFullHeight: e.mobileFullHeight,
|
|
5801
5823
|
width: x,
|
|
5802
5824
|
statusImage: e.statusImage,
|
|
5803
|
-
setWidth:
|
|
5825
|
+
setWidth: p,
|
|
5804
5826
|
visibleClose: o,
|
|
5805
5827
|
hideFooter: d,
|
|
5806
5828
|
hideTitle: b,
|
|
@@ -5829,7 +5851,7 @@ const vi = {
|
|
|
5829
5851
|
"div",
|
|
5830
5852
|
D(w({}, r), {
|
|
5831
5853
|
ref: a,
|
|
5832
|
-
className:
|
|
5854
|
+
className: m(
|
|
5833
5855
|
"-mx-4 flex items-start gap-4 px-4 pb-4 md:-mx-6 md:px-6",
|
|
5834
5856
|
Gt({ [t]: !0 }),
|
|
5835
5857
|
e
|
|
@@ -5874,7 +5896,7 @@ function Ii(s) {
|
|
|
5874
5896
|
"div",
|
|
5875
5897
|
D(w({}, i), {
|
|
5876
5898
|
"data-testid": a,
|
|
5877
|
-
className:
|
|
5899
|
+
className: m(
|
|
5878
5900
|
"-mx-4 -mt-4 flex min-h-[90px] items-start justify-between gap-4 bg-[#E5EEFF] p-4 md:-mx-6 md:-mt-6",
|
|
5879
5901
|
d != null && d.mobileFullHeight ? "rounded-none md:rounded-t-4xl" : "rounded-t-4xl",
|
|
5880
5902
|
Gt({ [(u = d == null ? void 0 : d.shadowHeader) != null ? u : "none"]: !0 }),
|
|
@@ -5918,8 +5940,8 @@ function Ci(e) {
|
|
|
5918
5940
|
/* @__PURE__ */ n("div", { className: "w-full px-4 py-4 md:px-6 md:pt-6 rounded-t-4xl bg-white -mt-4 md:-mt-6", children: e.children })
|
|
5919
5941
|
] }) : /* @__PURE__ */ n(t.Source, w({}, e));
|
|
5920
5942
|
}
|
|
5921
|
-
function le(
|
|
5922
|
-
var y =
|
|
5943
|
+
function le(p) {
|
|
5944
|
+
var y = p, {
|
|
5923
5945
|
classNames: e,
|
|
5924
5946
|
children: t,
|
|
5925
5947
|
trigger: r,
|
|
@@ -5969,7 +5991,7 @@ function le(m) {
|
|
|
5969
5991
|
ref: (F) => {
|
|
5970
5992
|
h.setContentElement(F), I(F);
|
|
5971
5993
|
},
|
|
5972
|
-
className:
|
|
5994
|
+
className: m(
|
|
5973
5995
|
"min-h-0 rounded-t-[10px] bg-white px-4 pt-4 md:pt-6 md:px-6",
|
|
5974
5996
|
e == null ? void 0 : e.content
|
|
5975
5997
|
)
|
|
@@ -5980,7 +6002,7 @@ function le(m) {
|
|
|
5980
6002
|
ref: (F) => {
|
|
5981
6003
|
h.setContentElement(F), I(F);
|
|
5982
6004
|
},
|
|
5983
|
-
className:
|
|
6005
|
+
className: m(e == null ? void 0 : e.content)
|
|
5984
6006
|
}
|
|
5985
6007
|
);
|
|
5986
6008
|
return /* @__PURE__ */ n(ht, D(w({}, x), { children: /* @__PURE__ */ n(
|
|
@@ -6002,7 +6024,7 @@ function le(m) {
|
|
|
6002
6024
|
qe,
|
|
6003
6025
|
{
|
|
6004
6026
|
style: { zIndex: h.containerZIndex },
|
|
6005
|
-
className:
|
|
6027
|
+
className: m(e == null ? void 0 : e.container),
|
|
6006
6028
|
disableAutoFocus: l,
|
|
6007
6029
|
width: h.width,
|
|
6008
6030
|
mobileFullHeight: f,
|
|
@@ -6015,19 +6037,19 @@ function le(m) {
|
|
|
6015
6037
|
Bn,
|
|
6016
6038
|
{
|
|
6017
6039
|
shadow: h.shadowHeader,
|
|
6018
|
-
className:
|
|
6040
|
+
className: m(e == null ? void 0 : e.header),
|
|
6019
6041
|
children: [
|
|
6020
6042
|
!h.isHideTitle && /* @__PURE__ */ n(
|
|
6021
6043
|
mr,
|
|
6022
6044
|
{
|
|
6023
6045
|
ref: N,
|
|
6024
|
-
className:
|
|
6046
|
+
className: m(e == null ? void 0 : e.title)
|
|
6025
6047
|
}
|
|
6026
6048
|
),
|
|
6027
6049
|
h.isVisibleClose && /* @__PURE__ */ n(
|
|
6028
6050
|
bt,
|
|
6029
6051
|
{
|
|
6030
|
-
className:
|
|
6052
|
+
className: m("ml-auto", e == null ? void 0 : e.close)
|
|
6031
6053
|
}
|
|
6032
6054
|
)
|
|
6033
6055
|
]
|
|
@@ -6039,7 +6061,7 @@ function le(m) {
|
|
|
6039
6061
|
{
|
|
6040
6062
|
shadow: h.shadowFooter,
|
|
6041
6063
|
ref: M,
|
|
6042
|
-
className:
|
|
6064
|
+
className: m(
|
|
6043
6065
|
u && "mx-0 pb-4 md:pb-6 md:px-12",
|
|
6044
6066
|
e == null ? void 0 : e.footer
|
|
6045
6067
|
)
|
|
@@ -6084,14 +6106,14 @@ function Ul({
|
|
|
6084
6106
|
disabledDays: u,
|
|
6085
6107
|
"data-testid": b
|
|
6086
6108
|
}) {
|
|
6087
|
-
const [x,
|
|
6109
|
+
const [x, p] = v.useState(e), y = jt(), [h, g] = v.useState(!1);
|
|
6088
6110
|
v.useEffect(() => {
|
|
6089
|
-
e !== x &&
|
|
6111
|
+
e !== x && p(e);
|
|
6090
6112
|
}, [e]);
|
|
6091
6113
|
const N = (k) => {
|
|
6092
|
-
k && (
|
|
6114
|
+
k && (p(k), t == null || t(k), y === "mobile" && g(!1));
|
|
6093
6115
|
}, M = () => {
|
|
6094
|
-
|
|
6116
|
+
p(void 0), t == null || t(void 0), d == null || d();
|
|
6095
6117
|
}, I = () => {
|
|
6096
6118
|
switch (i) {
|
|
6097
6119
|
case "md":
|
|
@@ -6108,7 +6130,7 @@ function Ul({
|
|
|
6108
6130
|
{
|
|
6109
6131
|
variant: "p3",
|
|
6110
6132
|
weight: "medium",
|
|
6111
|
-
className:
|
|
6133
|
+
className: m("mb-1.5", {
|
|
6112
6134
|
"text-[14px]": i === "md",
|
|
6113
6135
|
"text-[16px]": i === "lg"
|
|
6114
6136
|
}),
|
|
@@ -6129,7 +6151,7 @@ function Ul({
|
|
|
6129
6151
|
disabled: r,
|
|
6130
6152
|
size: i,
|
|
6131
6153
|
iconPosition: "end",
|
|
6132
|
-
className:
|
|
6154
|
+
className: m(
|
|
6133
6155
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6134
6156
|
i === "lg" ? "px-3" : "px-2.5",
|
|
6135
6157
|
I(),
|
|
@@ -6149,7 +6171,7 @@ function Ul({
|
|
|
6149
6171
|
/* @__PURE__ */ n(
|
|
6150
6172
|
"div",
|
|
6151
6173
|
{
|
|
6152
|
-
className:
|
|
6174
|
+
className: m(
|
|
6153
6175
|
"flex-1",
|
|
6154
6176
|
x ? "text-foreground" : "text-muted-foreground",
|
|
6155
6177
|
r && "text-muted-foreground",
|
|
@@ -6162,7 +6184,7 @@ function Ul({
|
|
|
6162
6184
|
/* @__PURE__ */ n(
|
|
6163
6185
|
U,
|
|
6164
6186
|
{
|
|
6165
|
-
className:
|
|
6187
|
+
className: m(
|
|
6166
6188
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6167
6189
|
r && "text-muted-foreground",
|
|
6168
6190
|
h && !r && s == null && "!text-default",
|
|
@@ -6228,7 +6250,7 @@ function Ul({
|
|
|
6228
6250
|
disabled: r,
|
|
6229
6251
|
iconPosition: "end",
|
|
6230
6252
|
size: i,
|
|
6231
|
-
className:
|
|
6253
|
+
className: m(
|
|
6232
6254
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6233
6255
|
I(),
|
|
6234
6256
|
i === "lg" ? "px-3" : "px-2.5",
|
|
@@ -6248,7 +6270,7 @@ function Ul({
|
|
|
6248
6270
|
/* @__PURE__ */ n(
|
|
6249
6271
|
"div",
|
|
6250
6272
|
{
|
|
6251
|
-
className:
|
|
6273
|
+
className: m(
|
|
6252
6274
|
"flex-1",
|
|
6253
6275
|
x ? "text-foreground" : "text-muted-foreground",
|
|
6254
6276
|
h && !r && "!text-default"
|
|
@@ -6260,7 +6282,7 @@ function Ul({
|
|
|
6260
6282
|
/* @__PURE__ */ n(
|
|
6261
6283
|
U,
|
|
6262
6284
|
{
|
|
6263
|
-
className:
|
|
6285
|
+
className: m(
|
|
6264
6286
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6265
6287
|
r && "text-muted-foreground",
|
|
6266
6288
|
h && !r && s == null && "!text-default",
|
|
@@ -6472,7 +6494,7 @@ function Kl(y) {
|
|
|
6472
6494
|
onReset: u,
|
|
6473
6495
|
disabledDays: b,
|
|
6474
6496
|
"data-testid": x
|
|
6475
|
-
} = h,
|
|
6497
|
+
} = h, p = B(h, [
|
|
6476
6498
|
"className",
|
|
6477
6499
|
"value",
|
|
6478
6500
|
"locale",
|
|
@@ -6517,13 +6539,13 @@ function Kl(y) {
|
|
|
6517
6539
|
return "rounded-lg";
|
|
6518
6540
|
}
|
|
6519
6541
|
};
|
|
6520
|
-
return /* @__PURE__ */ C("div", D(w({ className: e },
|
|
6542
|
+
return /* @__PURE__ */ C("div", D(w({ className: e }, p), { children: [
|
|
6521
6543
|
l && /* @__PURE__ */ n(
|
|
6522
6544
|
_,
|
|
6523
6545
|
{
|
|
6524
6546
|
variant: "p3",
|
|
6525
6547
|
weight: "medium",
|
|
6526
|
-
className:
|
|
6548
|
+
className: m("mb-1.5", {
|
|
6527
6549
|
"text-[14px]": c === "md",
|
|
6528
6550
|
"text-[16px]": c === "lg"
|
|
6529
6551
|
}),
|
|
@@ -6543,7 +6565,7 @@ function Kl(y) {
|
|
|
6543
6565
|
disabled: f,
|
|
6544
6566
|
size: c,
|
|
6545
6567
|
iconPosition: "end",
|
|
6546
|
-
className:
|
|
6568
|
+
className: m(
|
|
6547
6569
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6548
6570
|
W(),
|
|
6549
6571
|
c === "lg" ? "px-3" : "px-2.5",
|
|
@@ -6563,7 +6585,7 @@ function Kl(y) {
|
|
|
6563
6585
|
/* @__PURE__ */ C(
|
|
6564
6586
|
"div",
|
|
6565
6587
|
{
|
|
6566
|
-
className:
|
|
6588
|
+
className: m(
|
|
6567
6589
|
"flex w-full items-center justify-between",
|
|
6568
6590
|
g ? "text-foreground" : "text-muted-foreground",
|
|
6569
6591
|
M && !f && "!text-default"
|
|
@@ -6572,26 +6594,26 @@ function Kl(y) {
|
|
|
6572
6594
|
/* @__PURE__ */ n(
|
|
6573
6595
|
"div",
|
|
6574
6596
|
{
|
|
6575
|
-
className:
|
|
6597
|
+
className: m(
|
|
6576
6598
|
"flex-1 text-left",
|
|
6577
6599
|
j() && "text-destructive"
|
|
6578
6600
|
),
|
|
6579
6601
|
children: g != null && g.from ? Te(g.from, "dd.MM.yyyy", {
|
|
6580
6602
|
locale: E
|
|
6581
|
-
}) : /* @__PURE__ */ n("span", { className:
|
|
6603
|
+
}) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: S.from })
|
|
6582
6604
|
}
|
|
6583
6605
|
),
|
|
6584
6606
|
/* @__PURE__ */ n(U, { icon: "ArrowForwardIcon", className: "mx-1.5" }),
|
|
6585
6607
|
/* @__PURE__ */ n(
|
|
6586
6608
|
"div",
|
|
6587
6609
|
{
|
|
6588
|
-
className:
|
|
6610
|
+
className: m(
|
|
6589
6611
|
"flex-1 text-left",
|
|
6590
6612
|
H() && "text-destructive"
|
|
6591
6613
|
),
|
|
6592
6614
|
children: g != null && g.to ? Te(g.to, "dd.MM.yyyy", {
|
|
6593
6615
|
locale: E
|
|
6594
|
-
}) : /* @__PURE__ */ n("span", { className:
|
|
6616
|
+
}) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: S.to })
|
|
6595
6617
|
}
|
|
6596
6618
|
)
|
|
6597
6619
|
]
|
|
@@ -6601,7 +6623,7 @@ function Kl(y) {
|
|
|
6601
6623
|
/* @__PURE__ */ n(
|
|
6602
6624
|
U,
|
|
6603
6625
|
{
|
|
6604
|
-
className:
|
|
6626
|
+
className: m(
|
|
6605
6627
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6606
6628
|
f && "text-muted-foreground",
|
|
6607
6629
|
M && !f && !z() && "!text-default",
|
|
@@ -6663,7 +6685,7 @@ function Kl(y) {
|
|
|
6663
6685
|
disabled: f,
|
|
6664
6686
|
size: c,
|
|
6665
6687
|
iconPosition: "end",
|
|
6666
|
-
className:
|
|
6688
|
+
className: m(
|
|
6667
6689
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6668
6690
|
W(),
|
|
6669
6691
|
c === "lg" ? "px-3" : "px-2.5",
|
|
@@ -6683,7 +6705,7 @@ function Kl(y) {
|
|
|
6683
6705
|
/* @__PURE__ */ C(
|
|
6684
6706
|
"div",
|
|
6685
6707
|
{
|
|
6686
|
-
className:
|
|
6708
|
+
className: m(
|
|
6687
6709
|
"flex w-full items-center justify-between",
|
|
6688
6710
|
g ? "text-foreground" : "text-muted-foreground",
|
|
6689
6711
|
M && !f && "!text-default"
|
|
@@ -6692,28 +6714,28 @@ function Kl(y) {
|
|
|
6692
6714
|
/* @__PURE__ */ n(
|
|
6693
6715
|
"div",
|
|
6694
6716
|
{
|
|
6695
|
-
className:
|
|
6717
|
+
className: m(
|
|
6696
6718
|
"flex-1 text-left",
|
|
6697
6719
|
j() && "text-destructive",
|
|
6698
6720
|
f && "text-muted-foreground"
|
|
6699
6721
|
),
|
|
6700
6722
|
children: g != null && g.from ? Te(g.from, "dd.MM.yyyy", {
|
|
6701
6723
|
locale: E
|
|
6702
|
-
}) : /* @__PURE__ */ n("span", { className:
|
|
6724
|
+
}) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: S.from })
|
|
6703
6725
|
}
|
|
6704
6726
|
),
|
|
6705
|
-
/* @__PURE__ */ n(U, { icon: "ArrowForwardIcon", className:
|
|
6727
|
+
/* @__PURE__ */ n(U, { icon: "ArrowForwardIcon", className: m("mx-1.5", f && "text-muted-foreground") }),
|
|
6706
6728
|
/* @__PURE__ */ n(
|
|
6707
6729
|
"div",
|
|
6708
6730
|
{
|
|
6709
|
-
className:
|
|
6731
|
+
className: m(
|
|
6710
6732
|
"flex-1 text-left",
|
|
6711
6733
|
H() && "text-destructive",
|
|
6712
6734
|
f && "text-muted-foreground"
|
|
6713
6735
|
),
|
|
6714
6736
|
children: g != null && g.to ? Te(g.to, "dd.MM.yyyy", {
|
|
6715
6737
|
locale: E
|
|
6716
|
-
}) : /* @__PURE__ */ n("span", { className:
|
|
6738
|
+
}) : /* @__PURE__ */ n("span", { className: m(f && "text-muted-foreground"), children: S.to })
|
|
6717
6739
|
}
|
|
6718
6740
|
)
|
|
6719
6741
|
]
|
|
@@ -6723,7 +6745,7 @@ function Kl(y) {
|
|
|
6723
6745
|
/* @__PURE__ */ n(
|
|
6724
6746
|
U,
|
|
6725
6747
|
{
|
|
6726
|
-
className:
|
|
6748
|
+
className: m(
|
|
6727
6749
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6728
6750
|
f && "text-muted-foreground",
|
|
6729
6751
|
M && !f && !z() && "!text-default",
|
|
@@ -6786,11 +6808,11 @@ function Kl(y) {
|
|
|
6786
6808
|
] }));
|
|
6787
6809
|
}
|
|
6788
6810
|
function Bi({ className: e }) {
|
|
6789
|
-
return /* @__PURE__ */ n("div", { className:
|
|
6811
|
+
return /* @__PURE__ */ n("div", { className: m("bg-default-background h-[1px] w-full", e) });
|
|
6790
6812
|
}
|
|
6791
6813
|
const _n = v.forwardRef(
|
|
6792
|
-
(
|
|
6793
|
-
var y =
|
|
6814
|
+
(p, x) => {
|
|
6815
|
+
var y = p, {
|
|
6794
6816
|
value: e,
|
|
6795
6817
|
onChange: t,
|
|
6796
6818
|
decimalPlaces: r,
|
|
@@ -6946,7 +6968,7 @@ const Vn = v.forwardRef(
|
|
|
6946
6968
|
icon: u,
|
|
6947
6969
|
iconPosition: b = "left",
|
|
6948
6970
|
iconSize: x,
|
|
6949
|
-
iconClassName:
|
|
6971
|
+
iconClassName: p
|
|
6950
6972
|
} = N, y = B(N, [
|
|
6951
6973
|
"className",
|
|
6952
6974
|
"href",
|
|
@@ -6976,7 +6998,7 @@ const Vn = v.forwardRef(
|
|
|
6976
6998
|
return;
|
|
6977
6999
|
}
|
|
6978
7000
|
i == null || i(S);
|
|
6979
|
-
}, k =
|
|
7001
|
+
}, k = m(
|
|
6980
7002
|
"inline-flex items-center whitespace-break-spaces no-underline font-graphik border-0 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
|
|
6981
7003
|
"data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
|
|
6982
7004
|
e
|
|
@@ -7018,7 +7040,7 @@ const Vn = v.forwardRef(
|
|
|
7018
7040
|
})
|
|
7019
7041
|
);
|
|
7020
7042
|
}
|
|
7021
|
-
const R = /* @__PURE__ */ n(U, { icon: u, size: x, className:
|
|
7043
|
+
const R = /* @__PURE__ */ n(U, { icon: u, size: x, className: m("shrink-0", p) }), E = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
|
|
7022
7044
|
b === "left" && R,
|
|
7023
7045
|
/* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: r }),
|
|
7024
7046
|
b === "right" && R
|
|
@@ -7027,7 +7049,7 @@ const Vn = v.forwardRef(
|
|
|
7027
7049
|
Tt,
|
|
7028
7050
|
D(w({
|
|
7029
7051
|
ref: h,
|
|
7030
|
-
className:
|
|
7052
|
+
className: m(
|
|
7031
7053
|
k,
|
|
7032
7054
|
e
|
|
7033
7055
|
),
|
|
@@ -7054,7 +7076,7 @@ const Vn = v.forwardRef(
|
|
|
7054
7076
|
tabIndex: s ? -1 : l,
|
|
7055
7077
|
onClick: M,
|
|
7056
7078
|
onKeyDown: I,
|
|
7057
|
-
className:
|
|
7079
|
+
className: m(
|
|
7058
7080
|
k,
|
|
7059
7081
|
"gap-2",
|
|
7060
7082
|
e
|
|
@@ -7101,10 +7123,10 @@ const Oi = ca, Gn = v.forwardRef(
|
|
|
7101
7123
|
onChange: s
|
|
7102
7124
|
}, f), {
|
|
7103
7125
|
children: (y) => {
|
|
7104
|
-
var
|
|
7126
|
+
var p = B(y, []);
|
|
7105
7127
|
return /* @__PURE__ */ n(
|
|
7106
7128
|
Fe,
|
|
7107
|
-
D(w(w({},
|
|
7129
|
+
D(w(w({}, p), f), {
|
|
7108
7130
|
size: l,
|
|
7109
7131
|
ref: x,
|
|
7110
7132
|
className: e,
|
|
@@ -7127,7 +7149,7 @@ const _i = {
|
|
|
7127
7149
|
ce.Overlay,
|
|
7128
7150
|
w({
|
|
7129
7151
|
ref: r,
|
|
7130
|
-
className:
|
|
7152
|
+
className: m(
|
|
7131
7153
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[rgba(37,29,53,0.48)]",
|
|
7132
7154
|
e
|
|
7133
7155
|
)
|
|
@@ -7158,7 +7180,7 @@ const Gi = v.forwardRef(
|
|
|
7158
7180
|
"fullScreen",
|
|
7159
7181
|
"width"
|
|
7160
7182
|
]);
|
|
7161
|
-
const x = pe(null), [
|
|
7183
|
+
const x = pe(null), [p, y] = ae(!1);
|
|
7162
7184
|
return ue(() => {
|
|
7163
7185
|
const h = () => {
|
|
7164
7186
|
x.current && y(x.current.scrollTop > 0);
|
|
@@ -7179,7 +7201,7 @@ const Gi = v.forwardRef(
|
|
|
7179
7201
|
onOpenAutoFocus: (h) => {
|
|
7180
7202
|
h.preventDefault();
|
|
7181
7203
|
},
|
|
7182
|
-
className:
|
|
7204
|
+
className: m(
|
|
7183
7205
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 box-border w-full gap-4 duration-200",
|
|
7184
7206
|
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom right-0 bottom-0 left-0 rounded-t-xl md:[right:unset] md:[bottom:unset]",
|
|
7185
7207
|
"md:data-[state=closed]:slide-out-to-left-1/2 md:data-[state=closed]:slide-out-to-top-[48%] md:data-[state=open]:slide-in-from-left-1/2 md:data-[state=open]:slide-in-from-top-[48%] md:top-[50%] md:left-[50%] md:translate-x-[-50%] md:translate-y-[-50%] md:rounded-4xl",
|
|
@@ -7193,7 +7215,7 @@ const Gi = v.forwardRef(
|
|
|
7193
7215
|
children: /* @__PURE__ */ C(
|
|
7194
7216
|
"div",
|
|
7195
7217
|
{
|
|
7196
|
-
className:
|
|
7218
|
+
className: m(
|
|
7197
7219
|
"relative flex h-full max-h-[calc(100vh-32px)] flex-col md:max-h-[calc(100vh-40px-48px)]",
|
|
7198
7220
|
{ "max-h-[100vh] md:max-h-[calc(100vh-40px)]": o },
|
|
7199
7221
|
{
|
|
@@ -7212,9 +7234,9 @@ const Gi = v.forwardRef(
|
|
|
7212
7234
|
a && /* @__PURE__ */ n(
|
|
7213
7235
|
"div",
|
|
7214
7236
|
{
|
|
7215
|
-
className:
|
|
7237
|
+
className: m(
|
|
7216
7238
|
"bottom-0 z-[1] flex pt-4 transition-shadow duration-200 md:pt-6",
|
|
7217
|
-
{ "shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]":
|
|
7239
|
+
{ "shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]": p },
|
|
7218
7240
|
{ "p-4 md:p-6": o },
|
|
7219
7241
|
{
|
|
7220
7242
|
"mx-[-18px] px-[18px] md:mx-[-26px] md:px-[26px]": !o
|
|
@@ -7228,7 +7250,7 @@ const Gi = v.forwardRef(
|
|
|
7228
7250
|
ce.Close,
|
|
7229
7251
|
{
|
|
7230
7252
|
tabIndex: -1,
|
|
7231
|
-
className:
|
|
7253
|
+
className: m(
|
|
7232
7254
|
"absolute top-[-8px] right-[-8px] border-0 bg-transparent p-0",
|
|
7233
7255
|
{ "top-2 right-2": o }
|
|
7234
7256
|
),
|
|
@@ -7259,7 +7281,7 @@ function Wi(r) {
|
|
|
7259
7281
|
} = a, t = B(a, [
|
|
7260
7282
|
"className"
|
|
7261
7283
|
]);
|
|
7262
|
-
return /* @__PURE__ */ n("div", w({ className:
|
|
7284
|
+
return /* @__PURE__ */ n("div", w({ className: m("flex flex-col space-y-1.5", e) }, t));
|
|
7263
7285
|
}
|
|
7264
7286
|
Wi.displayName = "DialogHeader";
|
|
7265
7287
|
const ji = v.forwardRef((a, r) => {
|
|
@@ -7268,7 +7290,7 @@ const ji = v.forwardRef((a, r) => {
|
|
|
7268
7290
|
ce.Title,
|
|
7269
7291
|
w({
|
|
7270
7292
|
ref: r,
|
|
7271
|
-
className:
|
|
7293
|
+
className: m(
|
|
7272
7294
|
"",
|
|
7273
7295
|
{
|
|
7274
7296
|
"font-graphik m-0 mb-2 pr-3 text-[28px] leading-[32px] font-bold md:mb-4": !t.asChild
|
|
@@ -7285,7 +7307,7 @@ const Hi = v.forwardRef((a, r) => {
|
|
|
7285
7307
|
ce.Description,
|
|
7286
7308
|
w({
|
|
7287
7309
|
ref: r,
|
|
7288
|
-
className:
|
|
7310
|
+
className: m("", e)
|
|
7289
7311
|
}, t)
|
|
7290
7312
|
);
|
|
7291
7313
|
});
|
|
@@ -7331,11 +7353,11 @@ function Ji(e) {
|
|
|
7331
7353
|
disabled: r || a,
|
|
7332
7354
|
value: i && l ? "●" : i,
|
|
7333
7355
|
fullWidthContainer: !1,
|
|
7334
|
-
className:
|
|
7356
|
+
className: m(
|
|
7335
7357
|
s,
|
|
7336
7358
|
a && "!border-transparent !bg-transparent !ring-0"
|
|
7337
7359
|
),
|
|
7338
|
-
containerClassName:
|
|
7360
|
+
containerClassName: m("h-12 max-w-28 flex-1", a && "animate-pulse")
|
|
7339
7361
|
}, c)
|
|
7340
7362
|
);
|
|
7341
7363
|
}
|
|
@@ -7357,7 +7379,7 @@ const Jl = aa((e, t) => {
|
|
|
7357
7379
|
resend: "Отправить код повторно",
|
|
7358
7380
|
sms: "Отправить СМС через"
|
|
7359
7381
|
}
|
|
7360
|
-
} = e,
|
|
7382
|
+
} = e, p = e["data-cy"], y = e["data-testid"], [h, g] = ae(0), [N, M] = ae(
|
|
7361
7383
|
Array.from({ length: r }, () => "")
|
|
7362
7384
|
), [I, k] = ae(u ? b : 0), [R, E] = ae(!!u), [S, F] = ae(c), [z, j] = ae(f), H = (K) => {
|
|
7363
7385
|
const Z = Math.max(Math.min(r - 1, K), 0);
|
|
@@ -7441,11 +7463,11 @@ const Jl = aa((e, t) => {
|
|
|
7441
7463
|
onFocus: q(Z),
|
|
7442
7464
|
onBlur: oe,
|
|
7443
7465
|
isDisabled: i,
|
|
7444
|
-
className:
|
|
7466
|
+
className: m(
|
|
7445
7467
|
"flex flex-1 [appearance:textfield] items-center justify-center text-center text-lg [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
7446
7468
|
S && "border-destructive focus:border-destructive"
|
|
7447
7469
|
),
|
|
7448
|
-
"data-cy":
|
|
7470
|
+
"data-cy": p && `${p}-${Z}`,
|
|
7449
7471
|
"data-testid": y && `${y}-${Z}`
|
|
7450
7472
|
},
|
|
7451
7473
|
Z
|
|
@@ -7511,7 +7533,7 @@ const Ql = ({
|
|
|
7511
7533
|
), [b, x] = ae("");
|
|
7512
7534
|
if (s && f <= 1)
|
|
7513
7535
|
return null;
|
|
7514
|
-
const
|
|
7536
|
+
const p = (k) => {
|
|
7515
7537
|
if (i)
|
|
7516
7538
|
return;
|
|
7517
7539
|
const R = zr(k, 1, f);
|
|
@@ -7520,23 +7542,23 @@ const Ql = ({
|
|
|
7520
7542
|
if (!i)
|
|
7521
7543
|
switch (k.type) {
|
|
7522
7544
|
case "prev":
|
|
7523
|
-
return
|
|
7545
|
+
return p(d - 1);
|
|
7524
7546
|
case "next":
|
|
7525
|
-
return
|
|
7547
|
+
return p(d + 1);
|
|
7526
7548
|
case "jump-prev":
|
|
7527
|
-
return
|
|
7549
|
+
return p(d - 5);
|
|
7528
7550
|
case "jump-next":
|
|
7529
|
-
return
|
|
7551
|
+
return p(d + 5);
|
|
7530
7552
|
case "page":
|
|
7531
|
-
return
|
|
7553
|
+
return p(k.page);
|
|
7532
7554
|
}
|
|
7533
7555
|
}, h = () => {
|
|
7534
7556
|
if (i)
|
|
7535
7557
|
return;
|
|
7536
7558
|
const k = typeof b == "number" ? b : Number(b);
|
|
7537
|
-
Number.isFinite(k) && (
|
|
7559
|
+
Number.isFinite(k) && (p(k), x(""));
|
|
7538
7560
|
}, g = (M = c == null ? void 0 : c.jump_to) != null ? M : "Перейти на", N = (I = c == null ? void 0 : c.page) != null ? I : "страницу";
|
|
7539
|
-
return /* @__PURE__ */ C("div", { className:
|
|
7561
|
+
return /* @__PURE__ */ C("div", { className: m("flex items-center justify-between gap-3 flex-wrap", o), "data-testid": "paginator", children: [
|
|
7540
7562
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: u.map((k, R) => {
|
|
7541
7563
|
const E = Qi(k, f), S = k.type === "page" && k.page === d, F = `${k.type}-${k.type === "page" ? k.page : R}`, z = k.type === "prev" || k.type === "next" ? /* @__PURE__ */ n(
|
|
7542
7564
|
Q,
|
|
@@ -7566,7 +7588,7 @@ const Ql = ({
|
|
|
7566
7588
|
{
|
|
7567
7589
|
variant: "text",
|
|
7568
7590
|
size: "md",
|
|
7569
|
-
className:
|
|
7591
|
+
className: m(
|
|
7570
7592
|
"h-8 w-8 min-w-8 rounded-md px-0 hover:bg-default-background focus:bg-default-background",
|
|
7571
7593
|
{
|
|
7572
7594
|
"border-1 border-solid border-border-primary bg-background text-primary hover:bg-background focus:bg-background": S,
|
|
@@ -8429,7 +8451,7 @@ const jn = ke.forwardRef(
|
|
|
8429
8451
|
"inputSize",
|
|
8430
8452
|
"isLoading"
|
|
8431
8453
|
]);
|
|
8432
|
-
const b = jt(), x = s != null ? s : i,
|
|
8454
|
+
const b = jt(), x = s != null ? s : i, p = () => /* @__PURE__ */ n(dt, { children: /* @__PURE__ */ n(ct, { children: /* @__PURE__ */ n(ut, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */ C(
|
|
8433
8455
|
Bt,
|
|
8434
8456
|
{
|
|
8435
8457
|
onSelect: () => o(y),
|
|
@@ -8447,11 +8469,11 @@ const jn = ke.forwardRef(
|
|
|
8447
8469
|
D(w({
|
|
8448
8470
|
mask: r,
|
|
8449
8471
|
alwaysShowMask: !0,
|
|
8450
|
-
className:
|
|
8472
|
+
className: m(e, {
|
|
8451
8473
|
"text-[14px]": x === "md",
|
|
8452
8474
|
"text-[16px]": x === "lg"
|
|
8453
8475
|
}),
|
|
8454
|
-
containerClassName:
|
|
8476
|
+
containerClassName: m("rounded-none border-0 border-none hover:border-0 focus:border-0 enabled:hover:border-0 focus-within:shadow-none", {
|
|
8455
8477
|
"text-[16px]": x === "lg",
|
|
8456
8478
|
"text-[14px]": x === "md"
|
|
8457
8479
|
}),
|
|
@@ -8495,7 +8517,7 @@ const jn = ke.forwardRef(
|
|
|
8495
8517
|
width: "sm",
|
|
8496
8518
|
className: "w-full sm:max-w-[425px]",
|
|
8497
8519
|
style: { zIndex: 52 },
|
|
8498
|
-
children: /* @__PURE__ */ n($e, { children: /* @__PURE__ */ n(
|
|
8520
|
+
children: /* @__PURE__ */ n($e, { children: /* @__PURE__ */ n(p, {}) })
|
|
8499
8521
|
}
|
|
8500
8522
|
)
|
|
8501
8523
|
] })
|
|
@@ -8511,7 +8533,7 @@ const jn = ke.forwardRef(
|
|
|
8511
8533
|
children: /* @__PURE__ */ n(U, { icon: "UnfoldIcon", className: "size-4" })
|
|
8512
8534
|
}
|
|
8513
8535
|
) }),
|
|
8514
|
-
/* @__PURE__ */ n(We, { align: "end", className: "w-fit p-0", children: /* @__PURE__ */ n(
|
|
8536
|
+
/* @__PURE__ */ n(We, { align: "end", className: "w-fit p-0", children: /* @__PURE__ */ n(p, {}) })
|
|
8515
8537
|
] })
|
|
8516
8538
|
] })
|
|
8517
8539
|
] });
|
|
@@ -8538,7 +8560,7 @@ function Dt({ country: e, countryName: t }) {
|
|
|
8538
8560
|
return /* @__PURE__ */ n(
|
|
8539
8561
|
"span",
|
|
8540
8562
|
{
|
|
8541
|
-
className:
|
|
8563
|
+
className: m(
|
|
8542
8564
|
"flex h-4 w-4 items-center justify-center",
|
|
8543
8565
|
"overflow-hidden rounded-full",
|
|
8544
8566
|
"[&_svg]:h-full [&_svg]:w-full",
|
|
@@ -8566,7 +8588,7 @@ const Vr = Kr(
|
|
|
8566
8588
|
inputSize: l = "lg"
|
|
8567
8589
|
}) => {
|
|
8568
8590
|
var h;
|
|
8569
|
-
const [c, f] = ke.useState(!1), [d, u] = ke.useState(""), b = jt(), x = (h = t != null ? t : r) != null ? h : ft,
|
|
8591
|
+
const [c, f] = ke.useState(!1), [d, u] = ke.useState(""), b = jt(), x = (h = t != null ? t : r) != null ? h : ft, p = (g) => {
|
|
8570
8592
|
g && (o(g), f(!1));
|
|
8571
8593
|
}, y = ke.useMemo(() => {
|
|
8572
8594
|
if (!d)
|
|
@@ -8587,7 +8609,7 @@ const Vr = Kr(
|
|
|
8587
8609
|
{
|
|
8588
8610
|
asChild: !0,
|
|
8589
8611
|
disabled: e,
|
|
8590
|
-
className:
|
|
8612
|
+
className: m("border-none bg-white pr-0.5 pl-1", {
|
|
8591
8613
|
"bg-muted": e
|
|
8592
8614
|
}),
|
|
8593
8615
|
children: /* @__PURE__ */ C(
|
|
@@ -8596,7 +8618,7 @@ const Vr = Kr(
|
|
|
8596
8618
|
type: "button",
|
|
8597
8619
|
variant: "default",
|
|
8598
8620
|
size: "custom",
|
|
8599
|
-
className:
|
|
8621
|
+
className: m("flex w-11 rounded-xl p-0 px-2", {
|
|
8600
8622
|
"bg-border": e,
|
|
8601
8623
|
"h-6": l === "md",
|
|
8602
8624
|
"h-8": l === "lg"
|
|
@@ -8614,7 +8636,7 @@ const Vr = Kr(
|
|
|
8614
8636
|
U,
|
|
8615
8637
|
{
|
|
8616
8638
|
icon: "UnfoldIcon",
|
|
8617
|
-
className:
|
|
8639
|
+
className: m(
|
|
8618
8640
|
"-mr-2 ml-0.5 size-3 opacity-50",
|
|
8619
8641
|
e ? "hidden" : "opacity-100"
|
|
8620
8642
|
)
|
|
@@ -8646,7 +8668,7 @@ const Vr = Kr(
|
|
|
8646
8668
|
{
|
|
8647
8669
|
country: g,
|
|
8648
8670
|
countryName: i[g] || N,
|
|
8649
|
-
onChange:
|
|
8671
|
+
onChange: p
|
|
8650
8672
|
},
|
|
8651
8673
|
g
|
|
8652
8674
|
) : null) }),
|
|
@@ -8660,7 +8682,7 @@ const Vr = Kr(
|
|
|
8660
8682
|
Je,
|
|
8661
8683
|
{
|
|
8662
8684
|
disabled: e,
|
|
8663
|
-
className:
|
|
8685
|
+
className: m("border-none bg-white pr-0.5 pl-1", {
|
|
8664
8686
|
"bg-muted": e
|
|
8665
8687
|
}),
|
|
8666
8688
|
children: /* @__PURE__ */ C(
|
|
@@ -8669,7 +8691,7 @@ const Vr = Kr(
|
|
|
8669
8691
|
type: "button",
|
|
8670
8692
|
variant: "default",
|
|
8671
8693
|
size: "custom",
|
|
8672
|
-
className:
|
|
8694
|
+
className: m("flex w-11 rounded-md p-0 px-2", {
|
|
8673
8695
|
"h-6": l === "md",
|
|
8674
8696
|
"h-8": l === "lg",
|
|
8675
8697
|
"bg-border": e
|
|
@@ -8687,7 +8709,7 @@ const Vr = Kr(
|
|
|
8687
8709
|
U,
|
|
8688
8710
|
{
|
|
8689
8711
|
icon: "UnfoldIcon",
|
|
8690
|
-
className:
|
|
8712
|
+
className: m(
|
|
8691
8713
|
"-mr-2 ml-0 size-3 opacity-50",
|
|
8692
8714
|
e ? "hidden" : "opacity-100"
|
|
8693
8715
|
)
|
|
@@ -8726,7 +8748,7 @@ const Vr = Kr(
|
|
|
8726
8748
|
{
|
|
8727
8749
|
country: g,
|
|
8728
8750
|
countryName: i[g] || N,
|
|
8729
|
-
onChange:
|
|
8751
|
+
onChange: p
|
|
8730
8752
|
},
|
|
8731
8753
|
g
|
|
8732
8754
|
) : null) }),
|
|
@@ -8741,8 +8763,8 @@ const Vr = Kr(
|
|
|
8741
8763
|
] });
|
|
8742
8764
|
}
|
|
8743
8765
|
), Xl = ke.forwardRef(
|
|
8744
|
-
(
|
|
8745
|
-
var y =
|
|
8766
|
+
(p, x) => {
|
|
8767
|
+
var y = p, {
|
|
8746
8768
|
className: e,
|
|
8747
8769
|
onChange: t,
|
|
8748
8770
|
label: r,
|
|
@@ -8827,7 +8849,7 @@ const Vr = Kr(
|
|
|
8827
8849
|
value: i,
|
|
8828
8850
|
tabIndex: 0,
|
|
8829
8851
|
defaultCountry: (j = I != null ? I : l) != null ? j : ft,
|
|
8830
|
-
className:
|
|
8852
|
+
className: m(
|
|
8831
8853
|
"border-border flex overflow-hidden border transition-colors",
|
|
8832
8854
|
"hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus flex items-center bg-white",
|
|
8833
8855
|
{ "h-8 rounded-lg": d === "md" },
|
|
@@ -8891,7 +8913,7 @@ const Vr = Kr(
|
|
|
8891
8913
|
/* @__PURE__ */ n(
|
|
8892
8914
|
"div",
|
|
8893
8915
|
{
|
|
8894
|
-
className:
|
|
8916
|
+
className: m(
|
|
8895
8917
|
"bg-muted text-default font-cofo flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-[100px]",
|
|
8896
8918
|
"text-[14px] leading-[20px] font-normal tracking-[-0.03em] text-center align-middle"
|
|
8897
8919
|
),
|
|
@@ -8920,7 +8942,7 @@ function ds(a) {
|
|
|
8920
8942
|
Rr.Root,
|
|
8921
8943
|
D(w({
|
|
8922
8944
|
"data-slot": "progress",
|
|
8923
|
-
className:
|
|
8945
|
+
className: m(
|
|
8924
8946
|
"relative h-2 w-full overflow-hidden rounded-full bg-default-background",
|
|
8925
8947
|
e
|
|
8926
8948
|
)
|
|
@@ -8929,7 +8951,7 @@ function ds(a) {
|
|
|
8929
8951
|
Rr.Indicator,
|
|
8930
8952
|
{
|
|
8931
8953
|
"data-slot": "progress-indicator",
|
|
8932
|
-
className:
|
|
8954
|
+
className: m(
|
|
8933
8955
|
"h-full w-full flex-1 transition-all",
|
|
8934
8956
|
i ? "bg-positive" : "bg-primary"
|
|
8935
8957
|
),
|
|
@@ -8975,7 +8997,7 @@ const cs = he(
|
|
|
8975
8997
|
]
|
|
8976
8998
|
}
|
|
8977
8999
|
), us = v.forwardRef(
|
|
8978
|
-
(y,
|
|
9000
|
+
(y, p) => {
|
|
8979
9001
|
var h = y, {
|
|
8980
9002
|
className: e,
|
|
8981
9003
|
size: t,
|
|
@@ -9010,7 +9032,7 @@ const cs = he(
|
|
|
9010
9032
|
"label",
|
|
9011
9033
|
{
|
|
9012
9034
|
htmlFor: I,
|
|
9013
|
-
className:
|
|
9035
|
+
className: m(
|
|
9014
9036
|
"select-none",
|
|
9015
9037
|
N ? "cursor-not-allowed opacity-40" : "cursor-pointer"
|
|
9016
9038
|
),
|
|
@@ -9018,7 +9040,7 @@ const cs = he(
|
|
|
9018
9040
|
/* @__PURE__ */ n(
|
|
9019
9041
|
Pt.Item,
|
|
9020
9042
|
D(w({
|
|
9021
|
-
className:
|
|
9043
|
+
className: m(
|
|
9022
9044
|
cs({
|
|
9023
9045
|
size: t,
|
|
9024
9046
|
isChecked: g,
|
|
@@ -9031,7 +9053,7 @@ const cs = he(
|
|
|
9031
9053
|
value: i,
|
|
9032
9054
|
id: I
|
|
9033
9055
|
}, x), {
|
|
9034
|
-
ref:
|
|
9056
|
+
ref: p,
|
|
9035
9057
|
"data-testid": b
|
|
9036
9058
|
})
|
|
9037
9059
|
),
|
|
@@ -9050,7 +9072,7 @@ const fs = v.forwardRef((s, i) => {
|
|
|
9050
9072
|
{
|
|
9051
9073
|
variant: "p3",
|
|
9052
9074
|
weight: "medium",
|
|
9053
|
-
className:
|
|
9075
|
+
className: m({
|
|
9054
9076
|
"mb-1.5 text-[14px]": a === "md",
|
|
9055
9077
|
"mb-2.5 text-[16px]": a === "lg"
|
|
9056
9078
|
}),
|
|
@@ -9060,7 +9082,7 @@ const fs = v.forwardRef((s, i) => {
|
|
|
9060
9082
|
/* @__PURE__ */ n(
|
|
9061
9083
|
Pt.Root,
|
|
9062
9084
|
D(w({
|
|
9063
|
-
className:
|
|
9085
|
+
className: m("grid gap-1.5", e)
|
|
9064
9086
|
}, o), {
|
|
9065
9087
|
ref: i
|
|
9066
9088
|
})
|
|
@@ -9140,7 +9162,7 @@ const ms = he(
|
|
|
9140
9162
|
zt.Item,
|
|
9141
9163
|
D(w({
|
|
9142
9164
|
ref: l,
|
|
9143
|
-
className:
|
|
9165
|
+
className: m(Un({ size: a }), e),
|
|
9144
9166
|
"data-testid": i
|
|
9145
9167
|
}, s), {
|
|
9146
9168
|
children: u
|
|
@@ -9170,8 +9192,8 @@ const ps = v.forwardRef(
|
|
|
9170
9192
|
]);
|
|
9171
9193
|
const [u, b] = v.useState(
|
|
9172
9194
|
o || i || ""
|
|
9173
|
-
), x = (
|
|
9174
|
-
|
|
9195
|
+
), x = (p) => {
|
|
9196
|
+
p && p !== u && (b(p), a == null || a(p));
|
|
9175
9197
|
};
|
|
9176
9198
|
return v.useEffect(() => {
|
|
9177
9199
|
o !== void 0 && b(o);
|
|
@@ -9180,12 +9202,12 @@ const ps = v.forwardRef(
|
|
|
9180
9202
|
D(w({
|
|
9181
9203
|
ref: c,
|
|
9182
9204
|
type: "single",
|
|
9183
|
-
className:
|
|
9205
|
+
className: m(ms({ size: t }), e),
|
|
9184
9206
|
value: u,
|
|
9185
9207
|
onValueChange: x,
|
|
9186
9208
|
"data-testid": s
|
|
9187
9209
|
}, l), {
|
|
9188
|
-
children: v.Children.map(r, (
|
|
9210
|
+
children: v.Children.map(r, (p) => v.isValidElement(p) && p.type === Kn ? v.cloneElement(p, { size: t }) : p)
|
|
9189
9211
|
})
|
|
9190
9212
|
);
|
|
9191
9213
|
}
|
|
@@ -9214,14 +9236,14 @@ const hs = v.forwardRef(
|
|
|
9214
9236
|
"active",
|
|
9215
9237
|
"data-testid"
|
|
9216
9238
|
]);
|
|
9217
|
-
const [x,
|
|
9218
|
-
l !== void 0 ||
|
|
9239
|
+
const [x, p] = v.useState(!1), y = l !== void 0 ? l : x, h = () => {
|
|
9240
|
+
l !== void 0 || p(!x), i == null || i();
|
|
9219
9241
|
}, g = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(U, { icon: r }) : null, N = /* @__PURE__ */ C(ge, { children: [
|
|
9220
9242
|
a === "start" && g(),
|
|
9221
9243
|
o && /* @__PURE__ */ n(
|
|
9222
9244
|
"span",
|
|
9223
9245
|
{
|
|
9224
|
-
className:
|
|
9246
|
+
className: m(
|
|
9225
9247
|
r && a === "start" && "ml-2",
|
|
9226
9248
|
r && a === "end" && "mr-2"
|
|
9227
9249
|
),
|
|
@@ -9234,7 +9256,7 @@ const hs = v.forwardRef(
|
|
|
9234
9256
|
"button",
|
|
9235
9257
|
D(w({
|
|
9236
9258
|
ref: d,
|
|
9237
|
-
className:
|
|
9259
|
+
className: m(
|
|
9238
9260
|
Un({
|
|
9239
9261
|
size: t,
|
|
9240
9262
|
variant: y ? "singleActive" : "single"
|
|
@@ -9257,7 +9279,7 @@ function ql({
|
|
|
9257
9279
|
className: r,
|
|
9258
9280
|
showCurrentStepTitleOnMobile: a = !1
|
|
9259
9281
|
}) {
|
|
9260
|
-
return /* @__PURE__ */ n("div", { className:
|
|
9282
|
+
return /* @__PURE__ */ n("div", { className: m("relative flex w-full", r), children: /* @__PURE__ */ n(
|
|
9261
9283
|
"div",
|
|
9262
9284
|
{
|
|
9263
9285
|
className: "flex w-full items-center",
|
|
@@ -9276,7 +9298,7 @@ function ql({
|
|
|
9276
9298
|
/* @__PURE__ */ n(
|
|
9277
9299
|
"div",
|
|
9278
9300
|
{
|
|
9279
|
-
className:
|
|
9301
|
+
className: m(
|
|
9280
9302
|
"flex items-center justify-center",
|
|
9281
9303
|
s && "text-white",
|
|
9282
9304
|
l && !s && "text-white"
|
|
@@ -9285,7 +9307,7 @@ function ql({
|
|
|
9285
9307
|
children: /* @__PURE__ */ n(
|
|
9286
9308
|
"div",
|
|
9287
9309
|
{
|
|
9288
|
-
className:
|
|
9310
|
+
className: m(
|
|
9289
9311
|
"font-cofo flex items-center justify-center rounded-full",
|
|
9290
9312
|
s && "bg-positive",
|
|
9291
9313
|
l && !s && "bg-primary",
|
|
@@ -9308,7 +9330,7 @@ function ql({
|
|
|
9308
9330
|
l && /* @__PURE__ */ n(
|
|
9309
9331
|
"div",
|
|
9310
9332
|
{
|
|
9311
|
-
className:
|
|
9333
|
+
className: m(
|
|
9312
9334
|
"font-graphik ml-2.5 max-w-48 whitespace-nowrap",
|
|
9313
9335
|
a ? "block" : "hidden md:block"
|
|
9314
9336
|
),
|
|
@@ -9327,7 +9349,7 @@ function ql({
|
|
|
9327
9349
|
},
|
|
9328
9350
|
o.title
|
|
9329
9351
|
),
|
|
9330
|
-
!c && /* @__PURE__ */ n("div", { className: "flex items-center flex-1 min-w-1.5 md:min-w-8", children: /* @__PURE__ */ n("div", { className:
|
|
9352
|
+
!c && /* @__PURE__ */ n("div", { className: "flex items-center flex-1 min-w-1.5 md:min-w-8", children: /* @__PURE__ */ n("div", { className: m("mx-2 h-0.25 w-full", "bg-border") }) })
|
|
9331
9353
|
] });
|
|
9332
9354
|
})
|
|
9333
9355
|
}
|
|
@@ -9388,16 +9410,16 @@ const gs = he(
|
|
|
9388
9410
|
}
|
|
9389
9411
|
), xs = v.forwardRef((d, f) => {
|
|
9390
9412
|
var u = d, { className: e, size: t, label: r, loading: a, checked: o, disabled: i, "data-testid": s, onCheckedChange: l } = u, c = B(u, ["className", "size", "label", "loading", "checked", "disabled", "data-testid", "onCheckedChange"]);
|
|
9391
|
-
const b = o || !1, x = i || !1,
|
|
9392
|
-
|
|
9413
|
+
const b = o || !1, x = i || !1, p = pe(void 0), y = (g) => {
|
|
9414
|
+
p.current = g;
|
|
9393
9415
|
}, h = (g) => {
|
|
9394
|
-
l && (l(g,
|
|
9416
|
+
l && (l(g, p.current), p.current = void 0);
|
|
9395
9417
|
};
|
|
9396
9418
|
return /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
|
|
9397
9419
|
/* @__PURE__ */ n(
|
|
9398
9420
|
tr.Root,
|
|
9399
9421
|
D(w({
|
|
9400
|
-
className:
|
|
9422
|
+
className: m(
|
|
9401
9423
|
gs({
|
|
9402
9424
|
size: t,
|
|
9403
9425
|
isChecked: b,
|
|
@@ -9418,7 +9440,7 @@ const gs = he(
|
|
|
9418
9440
|
children: /* @__PURE__ */ n(
|
|
9419
9441
|
tr.Thumb,
|
|
9420
9442
|
{
|
|
9421
|
-
className:
|
|
9443
|
+
className: m(
|
|
9422
9444
|
bs({ size: t }),
|
|
9423
9445
|
a && "flex items-center justify-center"
|
|
9424
9446
|
),
|
|
@@ -9436,7 +9458,7 @@ const gs = he(
|
|
|
9436
9458
|
r && /* @__PURE__ */ n(
|
|
9437
9459
|
"label",
|
|
9438
9460
|
{
|
|
9439
|
-
className:
|
|
9461
|
+
className: m(
|
|
9440
9462
|
"font-medium leading-none",
|
|
9441
9463
|
x && "opacity-40 cursor-not-allowed"
|
|
9442
9464
|
),
|
|
@@ -9566,14 +9588,14 @@ function Cs({
|
|
|
9566
9588
|
tbodyDataTestId: c,
|
|
9567
9589
|
rowDataTestId: f
|
|
9568
9590
|
}) {
|
|
9569
|
-
const d = e.getRowModel().rows, [u, b] = ae(() => /* @__PURE__ */ new Set()), x = pe(null),
|
|
9591
|
+
const d = e.getRowModel().rows, [u, b] = ae(() => /* @__PURE__ */ new Set()), x = pe(null), p = pe(/* @__PURE__ */ new Map());
|
|
9570
9592
|
return ue(() => () => {
|
|
9571
|
-
|
|
9593
|
+
p.current.forEach((y) => {
|
|
9572
9594
|
window.clearTimeout(y);
|
|
9573
|
-
}),
|
|
9595
|
+
}), p.current.clear();
|
|
9574
9596
|
}, []), ue(() => {
|
|
9575
9597
|
if (!l) {
|
|
9576
|
-
x.current = null, b(/* @__PURE__ */ new Set()),
|
|
9598
|
+
x.current = null, b(/* @__PURE__ */ new Set()), p.current.forEach((N) => window.clearTimeout(N)), p.current.clear();
|
|
9577
9599
|
return;
|
|
9578
9600
|
}
|
|
9579
9601
|
const y = d.map((N) => N.id);
|
|
@@ -9586,7 +9608,7 @@ function Cs({
|
|
|
9586
9608
|
const M = new Set(N);
|
|
9587
9609
|
return g.forEach((I) => M.add(I)), M;
|
|
9588
9610
|
}), g.forEach((N) => {
|
|
9589
|
-
const M =
|
|
9611
|
+
const M = p.current.get(N);
|
|
9590
9612
|
M && window.clearTimeout(M);
|
|
9591
9613
|
const I = window.setTimeout(() => {
|
|
9592
9614
|
b((k) => {
|
|
@@ -9594,22 +9616,22 @@ function Cs({
|
|
|
9594
9616
|
return k;
|
|
9595
9617
|
const R = new Set(k);
|
|
9596
9618
|
return R.delete(N), R;
|
|
9597
|
-
}),
|
|
9619
|
+
}), p.current.delete(N);
|
|
9598
9620
|
}, 1400);
|
|
9599
|
-
|
|
9621
|
+
p.current.set(N, I);
|
|
9600
9622
|
}));
|
|
9601
9623
|
}, [l, d]), d.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": c, children: /* @__PURE__ */ n("tr", { "data-testid": f, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, t), className: "p-0", children: /* @__PURE__ */ n($n, { locale: a }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": c, children: d.map((y) => {
|
|
9602
9624
|
var S, F, z, j;
|
|
9603
9625
|
const h = y.index, g = (S = r == null ? void 0 : r(y.original, h)) != null ? S : {}, N = typeof g.onClick == "function", M = g.onClick, I = l && u.has(y.id), k = (H) => {
|
|
9604
9626
|
var P;
|
|
9605
9627
|
(P = g.onKeyDown) == null || P.call(g, H), N && (H.key !== "Enter" && H.key !== " " || (H.preventDefault(), H.currentTarget.click()));
|
|
9606
|
-
}, R =
|
|
9628
|
+
}, R = m(
|
|
9607
9629
|
"group transition-colors",
|
|
9608
9630
|
I && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
|
|
9609
9631
|
// Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
|
|
9610
9632
|
(r || N) && "cursor-pointer",
|
|
9611
9633
|
g.className
|
|
9612
|
-
), E =
|
|
9634
|
+
), E = m(
|
|
9613
9635
|
"bg-background group-hover:bg-[#F6F6F7]",
|
|
9614
9636
|
I && "bg-primary/5 group-hover:bg-primary/10"
|
|
9615
9637
|
);
|
|
@@ -9632,7 +9654,7 @@ function Cs({
|
|
|
9632
9654
|
"td",
|
|
9633
9655
|
{
|
|
9634
9656
|
"data-testid": P == null ? void 0 : P["data-testid"],
|
|
9635
|
-
className:
|
|
9657
|
+
className: m(
|
|
9636
9658
|
"align-top border-b border-default-background p-2",
|
|
9637
9659
|
E,
|
|
9638
9660
|
G,
|
|
@@ -9741,7 +9763,7 @@ function Ms({
|
|
|
9741
9763
|
}) {
|
|
9742
9764
|
return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((c) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: c.headers.map((f) => {
|
|
9743
9765
|
var R;
|
|
9744
|
-
const d = f.column.columnDef.meta, u = f.column.getCanSort(), b = f.column.getIsSorted(), x = void 0,
|
|
9766
|
+
const d = f.column.columnDef.meta, u = f.column.getCanSort(), b = f.column.getIsSorted(), x = void 0, p = hr(d == null ? void 0 : d.align), y = br(d == null ? void 0 : d.fixed, f.column.id, i), h = xr(d == null ? void 0 : d.fixed, f.column.id, s, l), g = u ? f.column.getToggleSortingHandler() : void 0, N = f.isPlaceholder ? null : en(f.column.columnDef.header, f.getContext()), M = t.findIndex((E, S) => Ue(E, S) === f.column.id), I = M >= 0 ? t[M] : void 0, k = typeof (I == null ? void 0 : I.title) == "function" ? I.title({
|
|
9745
9767
|
sortColumns: r.map((E) => ({
|
|
9746
9768
|
column: { dataIndex: E.id, key: E.id, columnKey: E.id },
|
|
9747
9769
|
order: E.desc ? "descend" : "ascend"
|
|
@@ -9751,9 +9773,9 @@ function Ms({
|
|
|
9751
9773
|
"th",
|
|
9752
9774
|
{
|
|
9753
9775
|
"data-testid": d == null ? void 0 : d["data-testid"],
|
|
9754
|
-
className:
|
|
9776
|
+
className: m(
|
|
9755
9777
|
"bg-[#FBFBFB] align-middle",
|
|
9756
|
-
|
|
9778
|
+
p,
|
|
9757
9779
|
// antd-like typography for header (p1 + medium + secondary)
|
|
9758
9780
|
"font-graphik text-[12px] leading-[16px] font-medium text-secondary",
|
|
9759
9781
|
a && "sticky top-0 z-10",
|
|
@@ -9774,7 +9796,7 @@ function Ms({
|
|
|
9774
9796
|
)
|
|
9775
9797
|
}),
|
|
9776
9798
|
onClick: g,
|
|
9777
|
-
children: /* @__PURE__ */ C("div", { className:
|
|
9799
|
+
children: /* @__PURE__ */ C("div", { className: m("flex w-full items-center gap-2", ys(d == null ? void 0 : d.align)), children: [
|
|
9778
9800
|
k,
|
|
9779
9801
|
u && /* @__PURE__ */ n("span", { title: x, className: "inline-flex items-center", children: /* @__PURE__ */ n(
|
|
9780
9802
|
U,
|
|
@@ -9782,7 +9804,7 @@ function Ms({
|
|
|
9782
9804
|
"aria-hidden": !0,
|
|
9783
9805
|
icon: b === "asc" ? "ArrowUpIcon" : b === "desc" ? "ArrowDownIcon" : "UnfoldIcon",
|
|
9784
9806
|
size: 16,
|
|
9785
|
-
className:
|
|
9807
|
+
className: m(
|
|
9786
9808
|
// antd-like: base 0.45 = secondary, hover тоже оставляем в secondary (без “черного”)
|
|
9787
9809
|
"text-secondary",
|
|
9788
9810
|
u && "group-hover:text-secondary"
|
|
@@ -9806,11 +9828,11 @@ function Rs({
|
|
|
9806
9828
|
return /* @__PURE__ */ n(ge, { children: Array.from({ length: i }).map((s, l) => {
|
|
9807
9829
|
const c = l === i - 1, f = e.getVisibleLeafColumns();
|
|
9808
9830
|
return /* @__PURE__ */ n("tr", { className: "animate-pulse", children: f.map((d) => {
|
|
9809
|
-
const u = d.columnDef.meta, b = hr(u == null ? void 0 : u.align), x = br(u == null ? void 0 : u.fixed, d.id, r),
|
|
9831
|
+
const u = d.columnDef.meta, b = hr(u == null ? void 0 : u.align), x = br(u == null ? void 0 : u.fixed, d.id, r), p = xr(u == null ? void 0 : u.fixed, d.id, a, o);
|
|
9810
9832
|
return /* @__PURE__ */ n(
|
|
9811
9833
|
"td",
|
|
9812
9834
|
{
|
|
9813
|
-
className:
|
|
9835
|
+
className: m(
|
|
9814
9836
|
"align-top border-b border-border p-2",
|
|
9815
9837
|
b,
|
|
9816
9838
|
c && "border-b-0",
|
|
@@ -9821,12 +9843,12 @@ function Rs({
|
|
|
9821
9843
|
minWidth: u == null ? void 0 : u.minWidth,
|
|
9822
9844
|
maxWidth: u == null ? void 0 : u.maxWidth
|
|
9823
9845
|
}, x), {
|
|
9824
|
-
boxShadow: gr(void 0,
|
|
9846
|
+
boxShadow: gr(void 0, p)
|
|
9825
9847
|
}),
|
|
9826
9848
|
children: /* @__PURE__ */ n(
|
|
9827
9849
|
"div",
|
|
9828
9850
|
{
|
|
9829
|
-
className:
|
|
9851
|
+
className: m(
|
|
9830
9852
|
"h-3 w-full rounded bg-muted",
|
|
9831
9853
|
(u == null ? void 0 : u.align) === "center" && "mx-auto",
|
|
9832
9854
|
(u == null ? void 0 : u.align) === "right" && "ml-auto"
|
|
@@ -9878,7 +9900,7 @@ function ed({
|
|
|
9878
9900
|
hideStickyScrollbar: u,
|
|
9879
9901
|
clientSort: b = !1,
|
|
9880
9902
|
rowKey: x,
|
|
9881
|
-
rowSelection:
|
|
9903
|
+
rowSelection: p,
|
|
9882
9904
|
highlightNewRows: y = !1,
|
|
9883
9905
|
pagination: h,
|
|
9884
9906
|
showHeader: g = !0,
|
|
@@ -9889,12 +9911,12 @@ function ed({
|
|
|
9889
9911
|
rowDataTestId: R = "item"
|
|
9890
9912
|
}) {
|
|
9891
9913
|
var yr, vr, wr;
|
|
9892
|
-
const E = (yr = c != null ? c : f) != null ? yr : [], S = !!r, F = Math.max(1, Math.floor(a != null ? a : 10)), z = pe(null), j = !!
|
|
9914
|
+
const E = (yr = c != null ? c : f) != null ? yr : [], S = !!r, F = Math.max(1, Math.floor(a != null ? a : 10)), z = pe(null), j = !!p, H = (vr = p == null ? void 0 : p.selectAllMode) != null ? vr : (p == null ? void 0 : p.selectAllScope) === "all" ? "all" : "page", [P, A] = ae(
|
|
9893
9915
|
() => {
|
|
9894
9916
|
var X;
|
|
9895
|
-
return (X =
|
|
9917
|
+
return (X = p == null ? void 0 : p.defaultSelectedRowKeys) != null ? X : [];
|
|
9896
9918
|
}
|
|
9897
|
-
), O = (
|
|
9919
|
+
), O = (p == null ? void 0 : p.selectedRowKeys) !== void 0, W = (wr = p == null ? void 0 : p.selectedRowKeys) != null ? wr : P, V = te(() => new Set(W.map((X) => String(X))), [W]), Y = te(() => j ? {
|
|
9898
9920
|
key: "__row_selection__",
|
|
9899
9921
|
title: null,
|
|
9900
9922
|
width: 44,
|
|
@@ -9942,29 +9964,29 @@ function ed({
|
|
|
9942
9964
|
var Ir;
|
|
9943
9965
|
const ve = ee.table.getRowModel().rows, Se = ve.filter((fe) => {
|
|
9944
9966
|
var Pe, we;
|
|
9945
|
-
return !((we = (Pe =
|
|
9946
|
-
}).map((fe) => fe.id), Ve = Se.reduce((fe, Ae) => V.has(Ae) ? fe + 1 : fe, 0), He = Se.length > 0 && Ve === Se.length, Nr = Ve > 0 && !He, yt = He ? !0 : Nr ? "indeterminate" : !1, et = ((Ir =
|
|
9967
|
+
return !((we = (Pe = p == null ? void 0 : p.getCheckboxProps) == null ? void 0 : Pe.call(p, fe.original)) == null ? void 0 : we.disabled);
|
|
9968
|
+
}).map((fe) => fe.id), Ve = Se.reduce((fe, Ae) => V.has(Ae) ? fe + 1 : fe, 0), He = Se.length > 0 && Ve === Se.length, Nr = Ve > 0 && !He, yt = He ? !0 : Nr ? "indeterminate" : !1, et = ((Ir = p == null ? void 0 : p.allRowKeys) != null ? Ir : []).map((fe) => String(fe)), Ce = et.length > 0 ? et : Se, vt = Ce.reduce((fe, Ae) => V.has(Ae) ? fe + 1 : fe, 0), tt = Ce.length > 0 && vt === Ce.length, $t = vt > 0 && !tt, wt = tt ? !0 : $t ? "indeterminate" : !1, rt = (fe, Ae, Pe) => {
|
|
9947
9969
|
var ze;
|
|
9948
9970
|
const we = Ae ? Array.from(new Map([...W, ...fe].map((Re) => [String(Re), Re])).values()) : W.filter((Re) => !new Set(fe.map((Yt) => String(Yt))).has(String(Re)));
|
|
9949
9971
|
O || A(we);
|
|
9950
9972
|
const at = ee.table.getCoreRowModel().rows.filter((Re) => new Set(we.map((Yt) => String(Yt))).has(Re.id)).map((Re) => Re.original);
|
|
9951
|
-
(ze =
|
|
9973
|
+
(ze = p == null ? void 0 : p.onChange) == null || ze.call(p, we, at, { type: Pe });
|
|
9952
9974
|
};
|
|
9953
9975
|
return /* @__PURE__ */ n(rr, { checked: H === "all" ? wt : yt, onCheckedChange: H === "all" ? (fe) => {
|
|
9954
9976
|
var we, at;
|
|
9955
|
-
const Ae = fe === !0, Pe = (at = (we =
|
|
9977
|
+
const Ae = fe === !0, Pe = (at = (we = p == null ? void 0 : p.allRowKeys) != null && we.length ? p.allRowKeys : ve.map((ze) => oe(ze.original, ze.index))) != null ? at : [];
|
|
9956
9978
|
rt(Pe, Ae, "all");
|
|
9957
9979
|
} : (fe) => {
|
|
9958
9980
|
const Ae = fe === !0, Pe = ve.filter((we) => {
|
|
9959
9981
|
var ze, Re;
|
|
9960
|
-
return !((Re = (ze =
|
|
9982
|
+
return !((Re = (ze = p == null ? void 0 : p.getCheckboxProps) == null ? void 0 : ze.call(p, we.original)) == null ? void 0 : Re.disabled);
|
|
9961
9983
|
}).map((we) => oe(we.original, we.index));
|
|
9962
9984
|
rt(Pe, Ae, "page");
|
|
9963
9985
|
}, "aria-label": H === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": H === "all" ? "table-select-all" : "table-select-page" });
|
|
9964
9986
|
},
|
|
9965
9987
|
cell: (ee) => {
|
|
9966
9988
|
var yt, et;
|
|
9967
|
-
const ve = ee.row.original, Se = ee.row.id, Ve = !!((et = (yt =
|
|
9989
|
+
const ve = ee.row.original, Se = ee.row.id, Ve = !!((et = (yt = p == null ? void 0 : p.getCheckboxProps) == null ? void 0 : yt.call(p, ve)) != null && et.disabled), He = V.has(Se);
|
|
9968
9990
|
return /* @__PURE__ */ n(
|
|
9969
9991
|
"div",
|
|
9970
9992
|
{
|
|
@@ -9986,7 +10008,7 @@ function ed({
|
|
|
9986
10008
|
if (Ve)
|
|
9987
10009
|
return;
|
|
9988
10010
|
const tt = oe(ve, ee.row.index), $t = String(tt), wt = vt ? Array.from(new Map([...W, tt].map((nt) => [String(nt), nt])).values()) : W.filter((nt) => String(nt) !== $t);
|
|
9989
|
-
O || A(wt), (rt =
|
|
10011
|
+
O || A(wt), (rt = p == null ? void 0 : p.onChange) == null || rt.call(p, wt, [ve], { type: "row" });
|
|
9990
10012
|
},
|
|
9991
10013
|
"aria-label": `Выбрать строку ${Se}`,
|
|
9992
10014
|
"data-testid": `table-select-row-${Se}`
|
|
@@ -10002,7 +10024,7 @@ function ed({
|
|
|
10002
10024
|
l,
|
|
10003
10025
|
j,
|
|
10004
10026
|
O,
|
|
10005
|
-
|
|
10027
|
+
p,
|
|
10006
10028
|
H,
|
|
10007
10029
|
V,
|
|
10008
10030
|
W,
|
|
@@ -10049,7 +10071,7 @@ function ed({
|
|
|
10049
10071
|
return /* @__PURE__ */ n(
|
|
10050
10072
|
"div",
|
|
10051
10073
|
{
|
|
10052
|
-
className:
|
|
10074
|
+
className: m(
|
|
10053
10075
|
d && "rounded-lg border border-default-background bg-background",
|
|
10054
10076
|
u && "scrollbar-hide",
|
|
10055
10077
|
e
|
|
@@ -10059,7 +10081,7 @@ function ed({
|
|
|
10059
10081
|
"div",
|
|
10060
10082
|
{
|
|
10061
10083
|
ref: z,
|
|
10062
|
-
className:
|
|
10084
|
+
className: m(
|
|
10063
10085
|
"rounded-lg",
|
|
10064
10086
|
"overflow-auto",
|
|
10065
10087
|
"overflow-x-auto",
|
|
@@ -10070,7 +10092,7 @@ function ed({
|
|
|
10070
10092
|
children: /* @__PURE__ */ C(
|
|
10071
10093
|
"table",
|
|
10072
10094
|
{
|
|
10073
|
-
className:
|
|
10095
|
+
className: m(
|
|
10074
10096
|
// Комментарий: таблица не должна ужиматься по ширине окна → держим натуральную ширину
|
|
10075
10097
|
// w-full чтобы не было пустого места справа, min-w-max чтобы не ужималась ниже контента
|
|
10076
10098
|
"w-full min-w-max table-auto border-separate border-spacing-0",
|
|
@@ -10133,7 +10155,7 @@ function Ds({
|
|
|
10133
10155
|
const f = Math.max(0, l - s);
|
|
10134
10156
|
return `${s + c % (f + 1)}%`;
|
|
10135
10157
|
};
|
|
10136
|
-
return /* @__PURE__ */ n("div", { className:
|
|
10158
|
+
return /* @__PURE__ */ n("div", { className: m("flex flex-col gap-3", r), children: Array.from({ length: a }).map((s, l) => /* @__PURE__ */ n(
|
|
10137
10159
|
Ke,
|
|
10138
10160
|
{
|
|
10139
10161
|
bordered: !0,
|
|
@@ -10215,20 +10237,20 @@ function td({
|
|
|
10215
10237
|
children: l
|
|
10216
10238
|
}) {
|
|
10217
10239
|
const c = !!t, f = Math.max(1, Math.floor(r != null ? r : 10)), d = e != null ? e : [];
|
|
10218
|
-
return c ? /* @__PURE__ */ n("div", { className:
|
|
10240
|
+
return c ? /* @__PURE__ */ n("div", { className: m("flex flex-col gap-3 p-3", a), "aria-busy": t, children: /* @__PURE__ */ n(
|
|
10219
10241
|
Ds,
|
|
10220
10242
|
{
|
|
10221
10243
|
rowsCount: f,
|
|
10222
10244
|
linesCount: 6
|
|
10223
10245
|
}
|
|
10224
|
-
) }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: a, "aria-busy": t, children: /* @__PURE__ */ n($n, { locale: o }) }) : /* @__PURE__ */ n("div", { className:
|
|
10246
|
+
) }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: a, "aria-busy": t, children: /* @__PURE__ */ n($n, { locale: o }) }) : /* @__PURE__ */ n("div", { className: m("flex flex-col gap-2", a), "aria-busy": t, children: d.map((u, b) => {
|
|
10225
10247
|
var M, I, k, R, E;
|
|
10226
|
-
const x = (M = s == null ? void 0 : s(u, b)) != null ? M : {},
|
|
10248
|
+
const x = (M = s == null ? void 0 : s(u, b)) != null ? M : {}, p = typeof x.onClick == "function", y = (I = i == null ? void 0 : i(u, b)) != null ? I : b, h = x.onClick, g = (S) => {
|
|
10227
10249
|
var F;
|
|
10228
|
-
(F = x.onKeyDown) == null || F.call(x, S),
|
|
10229
|
-
}, N =
|
|
10230
|
-
|
|
10231
|
-
|
|
10250
|
+
(F = x.onKeyDown) == null || F.call(x, S), p && (S.key !== "Enter" && S.key !== " " || (S.preventDefault(), S.currentTarget.click()));
|
|
10251
|
+
}, N = m(
|
|
10252
|
+
p && "cursor-pointer hover:bg-[#F6F6F7]",
|
|
10253
|
+
p && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
10232
10254
|
x.className
|
|
10233
10255
|
);
|
|
10234
10256
|
return /* @__PURE__ */ n(
|
|
@@ -10240,10 +10262,10 @@ function td({
|
|
|
10240
10262
|
}, x), {
|
|
10241
10263
|
className: N,
|
|
10242
10264
|
onClick: h,
|
|
10243
|
-
onKeyDown:
|
|
10244
|
-
role:
|
|
10245
|
-
tabIndex:
|
|
10246
|
-
"aria-label":
|
|
10265
|
+
onKeyDown: p ? g : x.onKeyDown,
|
|
10266
|
+
role: p ? (k = x.role) != null ? k : "button" : x.role,
|
|
10267
|
+
tabIndex: p ? (R = x.tabIndex) != null ? R : 0 : x.tabIndex,
|
|
10268
|
+
"aria-label": p ? (E = x["aria-label"]) != null ? E : "Открыть карточку" : x["aria-label"],
|
|
10247
10269
|
children: l == null ? void 0 : l(u, b)
|
|
10248
10270
|
}),
|
|
10249
10271
|
String(y)
|
|
@@ -10292,7 +10314,7 @@ function rd({
|
|
|
10292
10314
|
return /* @__PURE__ */ C(
|
|
10293
10315
|
"label",
|
|
10294
10316
|
{
|
|
10295
|
-
className:
|
|
10317
|
+
className: m(
|
|
10296
10318
|
"flex cursor-pointer gap-2 rounded px-3 py-[5px] hover:bg-muted",
|
|
10297
10319
|
l.disabled && "cursor-not-allowed opacity-60 hover:bg-transparent"
|
|
10298
10320
|
),
|
|
@@ -10350,7 +10372,7 @@ const Fs = he(
|
|
|
10350
10372
|
Ge.List,
|
|
10351
10373
|
w({
|
|
10352
10374
|
ref: o,
|
|
10353
|
-
className:
|
|
10375
|
+
className: m(Fs({ size: e, variant: t }), r)
|
|
10354
10376
|
}, a)
|
|
10355
10377
|
);
|
|
10356
10378
|
});
|
|
@@ -10376,7 +10398,7 @@ const zs = v.forwardRef(
|
|
|
10376
10398
|
"disabled",
|
|
10377
10399
|
"data-testid"
|
|
10378
10400
|
]);
|
|
10379
|
-
const b =
|
|
10401
|
+
const b = m(
|
|
10380
10402
|
Ls({ size: e, variant: t }),
|
|
10381
10403
|
/* base (inactive) */
|
|
10382
10404
|
t === "default" ? "bg-white border-border-tabs" : "bg-transparent text-gray-600 rounded-md w-full",
|
|
@@ -10403,7 +10425,7 @@ const zs = v.forwardRef(
|
|
|
10403
10425
|
i && /* @__PURE__ */ n(
|
|
10404
10426
|
"span",
|
|
10405
10427
|
{
|
|
10406
|
-
className:
|
|
10428
|
+
className: m(
|
|
10407
10429
|
a && o === "start" && "ml-1.5",
|
|
10408
10430
|
a && o === "end" && "mr-1.5"
|
|
10409
10431
|
),
|
|
@@ -10423,7 +10445,7 @@ const Bs = v.forwardRef((a, r) => {
|
|
|
10423
10445
|
Ge.Content,
|
|
10424
10446
|
w({
|
|
10425
10447
|
ref: r,
|
|
10426
|
-
className:
|
|
10448
|
+
className: m("mt-2", e)
|
|
10427
10449
|
}, t)
|
|
10428
10450
|
);
|
|
10429
10451
|
});
|
|
@@ -10485,7 +10507,7 @@ const Os = he(
|
|
|
10485
10507
|
"className",
|
|
10486
10508
|
"data-testid"
|
|
10487
10509
|
]);
|
|
10488
|
-
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null,
|
|
10510
|
+
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null, p = /* @__PURE__ */ C(ge, { children: [
|
|
10489
10511
|
a === "start" && x(),
|
|
10490
10512
|
s,
|
|
10491
10513
|
a === "end" && x()
|
|
@@ -10494,7 +10516,7 @@ const Os = he(
|
|
|
10494
10516
|
"div",
|
|
10495
10517
|
D(w({
|
|
10496
10518
|
ref: d,
|
|
10497
|
-
className:
|
|
10519
|
+
className: m(
|
|
10498
10520
|
Os({
|
|
10499
10521
|
color: e,
|
|
10500
10522
|
iconOnly: r,
|
|
@@ -10505,7 +10527,7 @@ const Os = he(
|
|
|
10505
10527
|
)
|
|
10506
10528
|
}, f), {
|
|
10507
10529
|
"data-testid": c,
|
|
10508
|
-
children: r ? x() :
|
|
10530
|
+
children: r ? x() : p
|
|
10509
10531
|
})
|
|
10510
10532
|
);
|
|
10511
10533
|
}
|
|
@@ -10518,8 +10540,8 @@ function Vs(e, t, r, a) {
|
|
|
10518
10540
|
return;
|
|
10519
10541
|
const c = o.current, f = () => {
|
|
10520
10542
|
if (r) {
|
|
10521
|
-
const
|
|
10522
|
-
c.value = r, c.style.height = "auto", i.current = c.scrollHeight, c.value =
|
|
10543
|
+
const p = c.value;
|
|
10544
|
+
c.value = r, c.style.height = "auto", i.current = c.scrollHeight, c.value = p;
|
|
10523
10545
|
}
|
|
10524
10546
|
};
|
|
10525
10547
|
i.current === 0 && f();
|
|
@@ -10527,7 +10549,7 @@ function Vs(e, t, r, a) {
|
|
|
10527
10549
|
if (s.current)
|
|
10528
10550
|
return;
|
|
10529
10551
|
c.style.height = "auto";
|
|
10530
|
-
const
|
|
10552
|
+
const p = c.scrollHeight, y = Math.max(p, i.current);
|
|
10531
10553
|
if (t) {
|
|
10532
10554
|
const h = typeof t == "number" ? `${t}px` : t;
|
|
10533
10555
|
c.style.maxHeight = h, y > (typeof t == "number" ? t : Number.parseInt(t)) ? (c.style.height = h, c.style.setProperty("overflow-y", "auto", "important")) : (c.style.height = `${y}px`, c.style.setProperty("overflow-y", "hidden", "important"));
|
|
@@ -10541,8 +10563,8 @@ function Vs(e, t, r, a) {
|
|
|
10541
10563
|
}, x = () => {
|
|
10542
10564
|
if (s.current) {
|
|
10543
10565
|
s.current = !1;
|
|
10544
|
-
const
|
|
10545
|
-
|
|
10566
|
+
const p = c.clientHeight;
|
|
10567
|
+
p !== l.current && (i.current = p), l.current = p, d();
|
|
10546
10568
|
}
|
|
10547
10569
|
};
|
|
10548
10570
|
return d(), c.addEventListener("input", d), c.addEventListener("paste", d), c.addEventListener("mousedown", b), document.addEventListener("mouseup", x), window.addEventListener("resize", u), () => {
|
|
@@ -10551,8 +10573,8 @@ function Vs(e, t, r, a) {
|
|
|
10551
10573
|
}, [e, t, r, a]), o;
|
|
10552
10574
|
}
|
|
10553
10575
|
const Gs = v.forwardRef(
|
|
10554
|
-
(
|
|
10555
|
-
var y =
|
|
10576
|
+
(p, x) => {
|
|
10577
|
+
var y = p, {
|
|
10556
10578
|
className: e,
|
|
10557
10579
|
variant: t = "default",
|
|
10558
10580
|
fullWidth: r = !0,
|
|
@@ -10585,7 +10607,7 @@ const Gs = v.forwardRef(
|
|
|
10585
10607
|
/* @__PURE__ */ C(
|
|
10586
10608
|
"div",
|
|
10587
10609
|
{
|
|
10588
|
-
className:
|
|
10610
|
+
className: m(
|
|
10589
10611
|
"bg-background relative flex rounded-lg border-1 border-solid pr-1 pb-1",
|
|
10590
10612
|
{
|
|
10591
10613
|
// Variants
|
|
@@ -10604,7 +10626,7 @@ const Gs = v.forwardRef(
|
|
|
10604
10626
|
/* @__PURE__ */ n(
|
|
10605
10627
|
"textarea",
|
|
10606
10628
|
w({
|
|
10607
|
-
className:
|
|
10629
|
+
className: m(
|
|
10608
10630
|
"font-graphik placeholder:text-muted-foreground box-border flex flex-1 border-0 bg-transparent transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
10609
10631
|
{
|
|
10610
10632
|
// Остальные стили
|
|
@@ -10625,7 +10647,7 @@ const Gs = v.forwardRef(
|
|
|
10625
10647
|
o && o !== "" && c && /* @__PURE__ */ n(
|
|
10626
10648
|
"div",
|
|
10627
10649
|
{
|
|
10628
|
-
className:
|
|
10650
|
+
className: m("absolute", {
|
|
10629
10651
|
"top-2 right-1.5": u === "md",
|
|
10630
10652
|
"top-2.5 right-2": u === "lg"
|
|
10631
10653
|
}),
|
|
@@ -10680,19 +10702,19 @@ function ad({
|
|
|
10680
10702
|
v.useEffect(() => {
|
|
10681
10703
|
b(e || ""), x.current = e || "";
|
|
10682
10704
|
}, [e]);
|
|
10683
|
-
const
|
|
10705
|
+
const p = (h) => {
|
|
10684
10706
|
const g = js(h.target.value, x.current);
|
|
10685
10707
|
b(g), x.current = g, g.length === 5 && Wr(g) ? t == null || t(g) : g === "" && (t == null || t(void 0));
|
|
10686
10708
|
}, y = (h) => {
|
|
10687
10709
|
f == null || f(h), u && !Wr(u) && (b(""), t == null || t(void 0));
|
|
10688
10710
|
};
|
|
10689
|
-
return /* @__PURE__ */ C("div", { className:
|
|
10711
|
+
return /* @__PURE__ */ C("div", { className: m("w-full", o), children: [
|
|
10690
10712
|
c && /* @__PURE__ */ n(
|
|
10691
10713
|
_,
|
|
10692
10714
|
{
|
|
10693
10715
|
variant: "p3",
|
|
10694
10716
|
weight: "medium",
|
|
10695
|
-
className:
|
|
10717
|
+
className: m("mb-1.5", {
|
|
10696
10718
|
"text-[14px]": i === "md",
|
|
10697
10719
|
"text-[16px]": i === "lg"
|
|
10698
10720
|
}),
|
|
@@ -10705,12 +10727,12 @@ function ad({
|
|
|
10705
10727
|
{
|
|
10706
10728
|
type: "text",
|
|
10707
10729
|
value: u,
|
|
10708
|
-
onChange:
|
|
10730
|
+
onChange: p,
|
|
10709
10731
|
onBlur: y,
|
|
10710
10732
|
placeholder: a,
|
|
10711
10733
|
disabled: r,
|
|
10712
10734
|
maxLength: 5,
|
|
10713
|
-
className:
|
|
10735
|
+
className: m(
|
|
10714
10736
|
"focus:shadow-focus font-graphik flex rounded-md py-1 focus:outline-none disabled:cursor-not-allowed",
|
|
10715
10737
|
i === "md" ? "rounded-lg" : "rounded-xl",
|
|
10716
10738
|
"border-1 focus:border-1",
|
|
@@ -10763,7 +10785,7 @@ function od({
|
|
|
10763
10785
|
onBlur: f,
|
|
10764
10786
|
"data-testid": d
|
|
10765
10787
|
}) {
|
|
10766
|
-
const [u, b] = v.useState((e == null ? void 0 : e.from) || ""), [x,
|
|
10788
|
+
const [u, b] = v.useState((e == null ? void 0 : e.from) || ""), [x, p] = v.useState((e == null ? void 0 : e.to) || ""), y = v.useRef((e == null ? void 0 : e.from) || ""), h = v.useRef((e == null ? void 0 : e.to) || ""), g = v.useMemo(() => {
|
|
10767
10789
|
const P = (G) => typeof G == "string", A = (G) => typeof G == "object" && G !== null;
|
|
10768
10790
|
return {
|
|
10769
10791
|
hasAnyError: () => s ? P(s) ? !0 : !!(s.from || s.to) : !1,
|
|
@@ -10773,7 +10795,7 @@ function od({
|
|
|
10773
10795
|
};
|
|
10774
10796
|
}, [s]), { hasAnyError: N, hasFromError: M, hasToError: I, getErrorText: k } = g;
|
|
10775
10797
|
v.useEffect(() => {
|
|
10776
|
-
b((e == null ? void 0 : e.from) || ""),
|
|
10798
|
+
b((e == null ? void 0 : e.from) || ""), p((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
|
|
10777
10799
|
}, [e]);
|
|
10778
10800
|
const R = (P, A) => {
|
|
10779
10801
|
const O = P.replace(/\D/g, ""), W = A.replace(/\D/g, ""), V = Hs(P, A);
|
|
@@ -10796,19 +10818,19 @@ function od({
|
|
|
10796
10818
|
b(A), y.current = A, (A === "" || A.length === 5 && E(A)) && S(A, x);
|
|
10797
10819
|
}, z = (P) => {
|
|
10798
10820
|
const A = R(P.target.value, h.current);
|
|
10799
|
-
|
|
10821
|
+
p(A), h.current = A, (A === "" || A.length === 5 && E(A)) && S(u, A);
|
|
10800
10822
|
}, j = (P) => {
|
|
10801
10823
|
f == null || f(P), u && !E(u) && (b(""), S("", x));
|
|
10802
10824
|
}, H = (P) => {
|
|
10803
|
-
f == null || f(P), x && !E(x) && (
|
|
10825
|
+
f == null || f(P), x && !E(x) && (p(""), S(u, ""));
|
|
10804
10826
|
};
|
|
10805
|
-
return /* @__PURE__ */ C("div", { className:
|
|
10827
|
+
return /* @__PURE__ */ C("div", { className: m("w-full", o), children: [
|
|
10806
10828
|
c && /* @__PURE__ */ n(
|
|
10807
10829
|
_,
|
|
10808
10830
|
{
|
|
10809
10831
|
variant: "p3",
|
|
10810
10832
|
weight: "medium",
|
|
10811
|
-
className:
|
|
10833
|
+
className: m("mb-1.5", {
|
|
10812
10834
|
"text-[14px]": i === "md",
|
|
10813
10835
|
"text-[16px]": i === "lg"
|
|
10814
10836
|
}),
|
|
@@ -10818,7 +10840,7 @@ function od({
|
|
|
10818
10840
|
/* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */ C(
|
|
10819
10841
|
"div",
|
|
10820
10842
|
{
|
|
10821
|
-
className:
|
|
10843
|
+
className: m(
|
|
10822
10844
|
"font-graphik flex w-full items-center py-1 text-left focus-within:outline-none",
|
|
10823
10845
|
i === "md" ? "rounded-lg" : "rounded-xl",
|
|
10824
10846
|
"border-1 focus-within:border-1",
|
|
@@ -10844,7 +10866,7 @@ function od({
|
|
|
10844
10866
|
placeholder: r.from,
|
|
10845
10867
|
disabled: a,
|
|
10846
10868
|
maxLength: 5,
|
|
10847
|
-
className:
|
|
10869
|
+
className: m(
|
|
10848
10870
|
"font-graphik w-0 flex-1 border-none bg-transparent outline-none",
|
|
10849
10871
|
"placeholder:text-muted-foreground",
|
|
10850
10872
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
@@ -10862,7 +10884,7 @@ function od({
|
|
|
10862
10884
|
U,
|
|
10863
10885
|
{
|
|
10864
10886
|
icon: "ArrowForwardIcon",
|
|
10865
|
-
className:
|
|
10887
|
+
className: m("mx-1.5 flex-shrink-0", a && "text-muted-foreground")
|
|
10866
10888
|
}
|
|
10867
10889
|
),
|
|
10868
10890
|
/* @__PURE__ */ n(
|
|
@@ -10875,7 +10897,7 @@ function od({
|
|
|
10875
10897
|
placeholder: r.to,
|
|
10876
10898
|
disabled: a,
|
|
10877
10899
|
maxLength: 5,
|
|
10878
|
-
className:
|
|
10900
|
+
className: m(
|
|
10879
10901
|
"font-graphik w-0 flex-1 border-none bg-transparent outline-none",
|
|
10880
10902
|
"placeholder:text-muted-foreground",
|
|
10881
10903
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
@@ -10913,7 +10935,7 @@ const id = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className:
|
|
|
10913
10935
|
/* @__PURE__ */ n(
|
|
10914
10936
|
"div",
|
|
10915
10937
|
{
|
|
10916
|
-
className:
|
|
10938
|
+
className: m(
|
|
10917
10939
|
"flex-shrink-0 rounded-full",
|
|
10918
10940
|
"h-2.5 w-2.5 border-2 bg-white",
|
|
10919
10941
|
r.completed ? "border-positive" : r.active ? "border-primary" : "border-border"
|
|
@@ -11215,10 +11237,10 @@ function cd(o) {
|
|
|
11215
11237
|
d && !y && Date.now() - u.current < Ks || b(y);
|
|
11216
11238
|
},
|
|
11217
11239
|
[d, b]
|
|
11218
|
-
),
|
|
11240
|
+
), p = v.useCallback(() => {
|
|
11219
11241
|
u.current = Date.now(), b(!f);
|
|
11220
11242
|
}, [f, b]);
|
|
11221
|
-
return /* @__PURE__ */ n(Yn.Provider, { value: { isTouchDevice: d, open: f, toggleByTouch:
|
|
11243
|
+
return /* @__PURE__ */ n(Yn.Provider, { value: { isTouchDevice: d, open: f, toggleByTouch: p }, children: /* @__PURE__ */ n(
|
|
11222
11244
|
_e.Root,
|
|
11223
11245
|
w({
|
|
11224
11246
|
open: d ? f : e,
|
|
@@ -11257,7 +11279,7 @@ const Zs = v.forwardRef(
|
|
|
11257
11279
|
align: r,
|
|
11258
11280
|
side: a,
|
|
11259
11281
|
sideOffset: t,
|
|
11260
|
-
className:
|
|
11282
|
+
className: m(
|
|
11261
11283
|
[
|
|
11262
11284
|
"font-graphik",
|
|
11263
11285
|
"z-58",
|
|
@@ -11283,7 +11305,7 @@ const Zs = v.forwardRef(
|
|
|
11283
11305
|
/* @__PURE__ */ n(
|
|
11284
11306
|
_e.Arrow,
|
|
11285
11307
|
{
|
|
11286
|
-
className:
|
|
11308
|
+
className: m("fill-spotlight-background"),
|
|
11287
11309
|
width: 10,
|
|
11288
11310
|
height: 5
|
|
11289
11311
|
}
|
|
@@ -11361,7 +11383,7 @@ function Jn({
|
|
|
11361
11383
|
withCredentials: u = !1,
|
|
11362
11384
|
onChange: b
|
|
11363
11385
|
}) {
|
|
11364
|
-
const [x,
|
|
11386
|
+
const [x, p] = ae(!1), y = pe(null), h = pe(0), g = $(
|
|
11365
11387
|
(A) => {
|
|
11366
11388
|
var O;
|
|
11367
11389
|
if (e) {
|
|
@@ -11468,16 +11490,16 @@ function Jn({
|
|
|
11468
11490
|
[o]
|
|
11469
11491
|
), S = $(
|
|
11470
11492
|
(A) => {
|
|
11471
|
-
A.preventDefault(), A.stopPropagation(), h.current += 1, A.dataTransfer.items && A.dataTransfer.items.length > 0 &&
|
|
11493
|
+
A.preventDefault(), A.stopPropagation(), h.current += 1, A.dataTransfer.items && A.dataTransfer.items.length > 0 && p(!0);
|
|
11472
11494
|
},
|
|
11473
11495
|
[]
|
|
11474
11496
|
), F = $((A) => {
|
|
11475
|
-
A.preventDefault(), A.stopPropagation(), h.current -= 1, h.current <= 0 && (h.current = 0,
|
|
11497
|
+
A.preventDefault(), A.stopPropagation(), h.current -= 1, h.current <= 0 && (h.current = 0, p(!1));
|
|
11476
11498
|
}, []), z = $((A) => {
|
|
11477
11499
|
A.preventDefault(), A.stopPropagation();
|
|
11478
11500
|
}, []), j = $(
|
|
11479
11501
|
(A) => {
|
|
11480
|
-
A.preventDefault(), A.stopPropagation(), h.current = 0,
|
|
11502
|
+
A.preventDefault(), A.stopPropagation(), h.current = 0, p(!1), I(A.dataTransfer.files);
|
|
11481
11503
|
},
|
|
11482
11504
|
[I]
|
|
11483
11505
|
), H = $(
|
|
@@ -11558,7 +11580,7 @@ const Qn = v.forwardRef(
|
|
|
11558
11580
|
files: u = [],
|
|
11559
11581
|
uploadProgress: b = 0,
|
|
11560
11582
|
isUploading: x = !1,
|
|
11561
|
-
allowUploadMore:
|
|
11583
|
+
allowUploadMore: p = !1,
|
|
11562
11584
|
classNames: y,
|
|
11563
11585
|
dropzoneText: h = "Добавьте файл для загрузки",
|
|
11564
11586
|
hint: g,
|
|
@@ -11604,7 +11626,7 @@ const Qn = v.forwardRef(
|
|
|
11604
11626
|
"div",
|
|
11605
11627
|
{
|
|
11606
11628
|
ref: H,
|
|
11607
|
-
className:
|
|
11629
|
+
className: m("h-full w-full flex flex-col gap-4", y == null ? void 0 : y.container),
|
|
11608
11630
|
"data-testId": j,
|
|
11609
11631
|
children: [
|
|
11610
11632
|
/* @__PURE__ */ n(
|
|
@@ -11619,11 +11641,11 @@ const Qn = v.forwardRef(
|
|
|
11619
11641
|
disabled: a
|
|
11620
11642
|
}
|
|
11621
11643
|
),
|
|
11622
|
-
(u.length === 0 ||
|
|
11644
|
+
(u.length === 0 || p) && /* @__PURE__ */ C("div", { className: "flex flex-col gap-1.5", children: [
|
|
11623
11645
|
/* @__PURE__ */ C(
|
|
11624
11646
|
"div",
|
|
11625
11647
|
D(w({}, V({
|
|
11626
|
-
className:
|
|
11648
|
+
className: m(
|
|
11627
11649
|
`flex flex-${o} w-full ${u.length === 0 ? "h-full" : "h-auto"} items-${s} justify-${i} border-border hover:border-primary gap-2.5 rounded-xl border-1 border-dashed bg-white p-4 transition-colors duration-200`,
|
|
11628
11650
|
!a && "cursor-pointer",
|
|
11629
11651
|
a && "pointer-events-none opacity-64",
|
|
@@ -11632,7 +11654,7 @@ const Qn = v.forwardRef(
|
|
|
11632
11654
|
)
|
|
11633
11655
|
})), {
|
|
11634
11656
|
children: [
|
|
11635
|
-
/* @__PURE__ */ C("div", { className:
|
|
11657
|
+
/* @__PURE__ */ C("div", { className: m("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
|
|
11636
11658
|
/* @__PURE__ */ n(U, { icon: "UploadIcon", size: 32, className: "text-secondary" }),
|
|
11637
11659
|
/* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
|
|
11638
11660
|
/* @__PURE__ */ n(
|
|
@@ -11640,7 +11662,7 @@ const Qn = v.forwardRef(
|
|
|
11640
11662
|
{
|
|
11641
11663
|
variant: "p3",
|
|
11642
11664
|
weight: "medium",
|
|
11643
|
-
className:
|
|
11665
|
+
className: m("text-center", y == null ? void 0 : y.dropzoneText),
|
|
11644
11666
|
children: h
|
|
11645
11667
|
}
|
|
11646
11668
|
),
|
|
@@ -11657,7 +11679,7 @@ const Qn = v.forwardRef(
|
|
|
11657
11679
|
{
|
|
11658
11680
|
variant: "p1",
|
|
11659
11681
|
textColor: "secondary",
|
|
11660
|
-
className:
|
|
11682
|
+
className: m("font-cofo", y == null ? void 0 : y.hint),
|
|
11661
11683
|
children: g
|
|
11662
11684
|
}
|
|
11663
11685
|
)
|
|
@@ -11674,7 +11696,7 @@ const Qn = v.forwardRef(
|
|
|
11674
11696
|
direction: "row",
|
|
11675
11697
|
align: "center",
|
|
11676
11698
|
justify: "between",
|
|
11677
|
-
className:
|
|
11699
|
+
className: m("group transition-colors border-border"),
|
|
11678
11700
|
children: [
|
|
11679
11701
|
/* @__PURE__ */ C("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
11680
11702
|
/* @__PURE__ */ n(
|
|
@@ -11690,7 +11712,7 @@ const Qn = v.forwardRef(
|
|
|
11690
11712
|
_,
|
|
11691
11713
|
{
|
|
11692
11714
|
variant: "p2",
|
|
11693
|
-
className:
|
|
11715
|
+
className: m(
|
|
11694
11716
|
J ? "text-destructive" : "text-secondary"
|
|
11695
11717
|
),
|
|
11696
11718
|
children: J ? G.error : Y(G.size)
|
|
@@ -11736,7 +11758,7 @@ function Xs({
|
|
|
11736
11758
|
data: u,
|
|
11737
11759
|
headers: b,
|
|
11738
11760
|
withCredentials: x,
|
|
11739
|
-
onChange:
|
|
11761
|
+
onChange: p,
|
|
11740
11762
|
children: y,
|
|
11741
11763
|
className: h,
|
|
11742
11764
|
onClick: g,
|
|
@@ -11756,7 +11778,7 @@ function Xs({
|
|
|
11756
11778
|
data: u,
|
|
11757
11779
|
headers: b,
|
|
11758
11780
|
withCredentials: x,
|
|
11759
|
-
onChange:
|
|
11781
|
+
onChange: p
|
|
11760
11782
|
});
|
|
11761
11783
|
return /* @__PURE__ */ C(ge, { children: [
|
|
11762
11784
|
/* @__PURE__ */ n(
|
|
@@ -11782,7 +11804,7 @@ function Xs({
|
|
|
11782
11804
|
) : /* @__PURE__ */ n(
|
|
11783
11805
|
Q,
|
|
11784
11806
|
D(w({}, N), {
|
|
11785
|
-
className:
|
|
11807
|
+
className: m(h, N == null ? void 0 : N.className),
|
|
11786
11808
|
disabled: o,
|
|
11787
11809
|
onClick: (E) => {
|
|
11788
11810
|
g == null || g(E), E.defaultPrevented || k();
|