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