konsolpro-custom-ui 0.0.397 → 0.0.398
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 +826 -819
- package/dist/styles/konsolpro-custom-ui.css +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var $n = Object.defineProperty, Yn = Object.defineProperties;
|
|
2
|
+
var Zn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var vt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Tr = Math.pow, Cr = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, w = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
kr.call(t, r) && Cr(e, r, t[r]);
|
|
8
8
|
if (vt)
|
|
9
9
|
for (var r of vt(t))
|
|
10
|
-
|
|
10
|
+
Sr.call(t, r) && Cr(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, F = (e, t) =>
|
|
12
|
+
}, F = (e, t) => Yn(e, Zn(t));
|
|
13
13
|
var L = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var a in e)
|
|
16
|
-
|
|
16
|
+
kr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
17
17
|
if (e != null && vt)
|
|
18
18
|
for (var a of vt(e))
|
|
19
|
-
t.indexOf(a) < 0 &&
|
|
19
|
+
t.indexOf(a) < 0 && Sr.call(e, a) && (r[a] = e[a]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var S = (e, t, r) => new Promise((a, o) => {
|
|
@@ -38,43 +38,43 @@ var S = (e, t, r) => new Promise((a, o) => {
|
|
|
38
38
|
import { jsx as n, jsxs as I, Fragment as pe } from "react/jsx-runtime";
|
|
39
39
|
import * as st from "@radix-ui/react-accordion";
|
|
40
40
|
import * as Ce from "react";
|
|
41
|
-
import v, { lazy as
|
|
42
|
-
import { Slot as
|
|
41
|
+
import v, { lazy as rr, Suspense as nr, useMemo as q, useState as ee, useCallback as $, createContext as Et, useContext as Rt, useEffect as de, useRef as fe, createElement as Jn, useLayoutEffect as Qn, forwardRef as Xn, useImperativeHandle as Vr, memo as jr } from "react";
|
|
42
|
+
import { Slot as Qt } from "@radix-ui/react-slot";
|
|
43
43
|
import { cva as me } from "class-variance-authority";
|
|
44
|
-
import { clsx as
|
|
45
|
-
import { twMerge as
|
|
44
|
+
import { clsx as qn } from "clsx";
|
|
45
|
+
import { twMerge as ea } from "tailwind-merge";
|
|
46
46
|
import * as he from "@radix-ui/react-popover";
|
|
47
47
|
import { Command as we } from "cmdk";
|
|
48
48
|
import * as Ue from "@radix-ui/react-avatar";
|
|
49
|
-
import
|
|
50
|
-
import * as
|
|
51
|
-
import { format as Se, addMonths as
|
|
52
|
-
import { ru as ve, enUS as
|
|
53
|
-
import { DayPicker as
|
|
49
|
+
import ar from "embla-carousel-react";
|
|
50
|
+
import * as Mr from "@radix-ui/react-checkbox";
|
|
51
|
+
import { format as Se, addMonths as Xt, startOfDay as ta } from "date-fns";
|
|
52
|
+
import { ru as ve, enUS as ra } from "date-fns/locale";
|
|
53
|
+
import { DayPicker as na } from "react-day-picker";
|
|
54
54
|
import { createTeleporter as Kt } from "react-teleporter";
|
|
55
55
|
import * as le from "@radix-ui/react-dialog";
|
|
56
|
-
import
|
|
56
|
+
import aa from "react-input-mask";
|
|
57
57
|
import * as Be from "react-phone-number-input";
|
|
58
|
-
import
|
|
59
|
-
import
|
|
58
|
+
import oa from "react-phone-number-input/flags";
|
|
59
|
+
import ia from "react-phone-number-input/locale/en.json";
|
|
60
60
|
import * as it from "@radix-ui/react-scroll-area";
|
|
61
|
-
import
|
|
62
|
-
import * as
|
|
61
|
+
import sa from "react-phone-number-input/locale/ru.json";
|
|
62
|
+
import * as Er from "@radix-ui/react-progress";
|
|
63
63
|
import * as At from "@radix-ui/react-radio-group";
|
|
64
64
|
import * as Dt from "@radix-ui/react-toggle-group";
|
|
65
65
|
import * as ge from "@radix-ui/react-select";
|
|
66
|
-
import * as
|
|
66
|
+
import * as qt from "@radix-ui/react-switch";
|
|
67
67
|
import * as Ge from "@radix-ui/react-tabs";
|
|
68
|
-
import { toast as ae, Toaster as
|
|
68
|
+
import { toast as ae, Toaster as la } from "sonner";
|
|
69
69
|
import * as Oe from "@radix-ui/react-tooltip";
|
|
70
|
-
import { useFloating as
|
|
70
|
+
import { useFloating as Hr, offset as Kr, flip as Ur, shift as $r, size as Yr, autoUpdate as Zr, useTransitionStyles as Jr } from "@floating-ui/react";
|
|
71
71
|
import { useCombobox as ue } from "downshift";
|
|
72
|
-
import { flexRender as
|
|
72
|
+
import { flexRender as Qr, useReactTable as da, getSortedRowModel as ca, getCoreRowModel as ua } from "@tanstack/react-table";
|
|
73
73
|
function p(...e) {
|
|
74
|
-
return qn(
|
|
74
|
+
return ea(qn(e));
|
|
75
75
|
}
|
|
76
76
|
const wt = ["purple", "cyan", "blue", "volcano", "magenta"];
|
|
77
|
-
function
|
|
77
|
+
function fa(e) {
|
|
78
78
|
if (e == null)
|
|
79
79
|
return "purple";
|
|
80
80
|
const t = typeof e == "number" ? e : Number.parseInt(String(e), 10);
|
|
@@ -84,11 +84,11 @@ function ua(e) {
|
|
|
84
84
|
return wt[r];
|
|
85
85
|
}
|
|
86
86
|
function A(e) {
|
|
87
|
-
return
|
|
87
|
+
return rr(() => S(null, null, function* () {
|
|
88
88
|
return { default: (yield e()).ReactComponent };
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const ma = {
|
|
92
92
|
UnfoldIcon: A(() => S(null, null, function* () {
|
|
93
93
|
return import("../chunks/unfold-icon-S3J7xXHf.js");
|
|
94
94
|
})),
|
|
@@ -445,7 +445,7 @@ function V({
|
|
|
445
445
|
className: r,
|
|
446
446
|
size: a = 16
|
|
447
447
|
}) {
|
|
448
|
-
const o =
|
|
448
|
+
const o = ma[e];
|
|
449
449
|
return o ? /* @__PURE__ */ n(
|
|
450
450
|
"div",
|
|
451
451
|
{
|
|
@@ -454,16 +454,16 @@ function V({
|
|
|
454
454
|
fontSize: a
|
|
455
455
|
}),
|
|
456
456
|
className: p("inline-flex items-center justify-center", r),
|
|
457
|
-
children: /* @__PURE__ */ n(
|
|
457
|
+
children: /* @__PURE__ */ n(nr, { fallback: null, children: /* @__PURE__ */ n(o, {}) })
|
|
458
458
|
}
|
|
459
459
|
) : null;
|
|
460
460
|
}
|
|
461
461
|
function te(e) {
|
|
462
|
-
return
|
|
462
|
+
return rr(() => S(null, null, function* () {
|
|
463
463
|
return { default: (yield e()).ReactComponent };
|
|
464
464
|
}));
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const pa = {
|
|
467
467
|
AlfaIcon: te(() => S(null, null, function* () {
|
|
468
468
|
return import("../chunks/alfa-icon-Cx0WqCux.js");
|
|
469
469
|
})),
|
|
@@ -545,7 +545,7 @@ const ma = {
|
|
|
545
545
|
}))
|
|
546
546
|
};
|
|
547
547
|
function ml({ icon: e }) {
|
|
548
|
-
const t = q(() =>
|
|
548
|
+
const t = q(() => pa[e], [e]);
|
|
549
549
|
return t ? /* @__PURE__ */ n(
|
|
550
550
|
"div",
|
|
551
551
|
{
|
|
@@ -555,16 +555,16 @@ function ml({ icon: e }) {
|
|
|
555
555
|
alignItems: "center",
|
|
556
556
|
justifyContent: "center"
|
|
557
557
|
},
|
|
558
|
-
children: /* @__PURE__ */ n(
|
|
558
|
+
children: /* @__PURE__ */ n(nr, { fallback: null, children: /* @__PURE__ */ n(t, {}) })
|
|
559
559
|
}
|
|
560
560
|
) : null;
|
|
561
561
|
}
|
|
562
562
|
function De(e) {
|
|
563
|
-
return
|
|
563
|
+
return rr(() => S(null, null, function* () {
|
|
564
564
|
return { default: (yield e()).ReactComponent };
|
|
565
565
|
}));
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const ha = {
|
|
568
568
|
Normal: De(() => S(null, null, function* () {
|
|
569
569
|
return import("../chunks/normal-icon-CYvIFN5j.js");
|
|
570
570
|
})),
|
|
@@ -601,7 +601,7 @@ function pl({
|
|
|
601
601
|
color: t = "currentColor",
|
|
602
602
|
size: r = 40
|
|
603
603
|
}) {
|
|
604
|
-
const a = q(() =>
|
|
604
|
+
const a = q(() => ha[e], [e]);
|
|
605
605
|
return a ? /* @__PURE__ */ n(
|
|
606
606
|
"div",
|
|
607
607
|
{
|
|
@@ -612,7 +612,7 @@ function pl({
|
|
|
612
612
|
justifyContent: "center",
|
|
613
613
|
color: t
|
|
614
614
|
},
|
|
615
|
-
children: /* @__PURE__ */ n(
|
|
615
|
+
children: /* @__PURE__ */ n(nr, { fallback: null, children: /* @__PURE__ */ n(a, {}) })
|
|
616
616
|
}
|
|
617
617
|
) : null;
|
|
618
618
|
}
|
|
@@ -663,7 +663,7 @@ function bl(i) {
|
|
|
663
663
|
children: [
|
|
664
664
|
t,
|
|
665
665
|
a && /* @__PURE__ */ n(
|
|
666
|
-
|
|
666
|
+
Q,
|
|
667
667
|
w({
|
|
668
668
|
variant: "text",
|
|
669
669
|
iconOnly: !0,
|
|
@@ -699,7 +699,7 @@ function xl(a) {
|
|
|
699
699
|
})
|
|
700
700
|
);
|
|
701
701
|
}
|
|
702
|
-
const
|
|
702
|
+
const Xr = me(
|
|
703
703
|
"outline-none font-cofo box-sizing-border-box cursor-pointer flex items-center justify-center whitespace-nowrap disabled:border-1 disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:pointer-events-none transition-colors duration-200",
|
|
704
704
|
{
|
|
705
705
|
variants: {
|
|
@@ -836,7 +836,7 @@ const Qr = me(
|
|
|
836
836
|
iconPosition: "start"
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
-
),
|
|
839
|
+
), ga = {
|
|
840
840
|
primary: {
|
|
841
841
|
hover: "bg-primary-hover",
|
|
842
842
|
focus: "bg-primary-hover",
|
|
@@ -875,7 +875,7 @@ const Qr = me(
|
|
|
875
875
|
hover: "bg-[#0476F0]",
|
|
876
876
|
active: "bg-[#1B37D6]"
|
|
877
877
|
}
|
|
878
|
-
},
|
|
878
|
+
}, Q = v.forwardRef(
|
|
879
879
|
(h, g) => {
|
|
880
880
|
var C = h, {
|
|
881
881
|
className: e,
|
|
@@ -911,7 +911,7 @@ const Qr = me(
|
|
|
911
911
|
"onClick"
|
|
912
912
|
]);
|
|
913
913
|
var k;
|
|
914
|
-
const N = a ?
|
|
914
|
+
const N = a ? Qt : "button", T = () => t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", E = () => /* @__PURE__ */ n(
|
|
915
915
|
Ve,
|
|
916
916
|
{
|
|
917
917
|
size: 16,
|
|
@@ -931,7 +931,7 @@ const Qr = me(
|
|
|
931
931
|
F(w({}, y), {
|
|
932
932
|
className: p(
|
|
933
933
|
"relative",
|
|
934
|
-
|
|
934
|
+
Xr({
|
|
935
935
|
variant: t,
|
|
936
936
|
size: r,
|
|
937
937
|
iconOnly: o,
|
|
@@ -939,7 +939,7 @@ const Qr = me(
|
|
|
939
939
|
isLoading: d,
|
|
940
940
|
iconPosition: s
|
|
941
941
|
}),
|
|
942
|
-
u && ((k =
|
|
942
|
+
u && ((k = ga[t]) == null ? void 0 : k[u]),
|
|
943
943
|
e
|
|
944
944
|
),
|
|
945
945
|
disabled: d || b,
|
|
@@ -954,8 +954,8 @@ const Qr = me(
|
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
956
|
);
|
|
957
|
-
|
|
958
|
-
const
|
|
957
|
+
Q.displayName = "Button";
|
|
958
|
+
const Rr = me("", {
|
|
959
959
|
variants: {
|
|
960
960
|
variant: {
|
|
961
961
|
h0: "text-[28px] leading-[32px] font-bold m-0 font-graphik",
|
|
@@ -1006,7 +1006,7 @@ const Er = me("", {
|
|
|
1006
1006
|
"as",
|
|
1007
1007
|
"copyable"
|
|
1008
1008
|
]);
|
|
1009
|
-
const [d, u] = ee(!1), x = q(() => i ? typeof i == "boolean" ? {} : i : null, [i]), b =
|
|
1009
|
+
const [d, u] = ee(!1), x = q(() => i ? typeof i == "boolean" ? {} : i : null, [i]), b = $(
|
|
1010
1010
|
(g) => S(null, null, function* () {
|
|
1011
1011
|
var C, N, T, E, M;
|
|
1012
1012
|
if (!x)
|
|
@@ -1032,7 +1032,7 @@ const Er = me("", {
|
|
|
1032
1032
|
onClick: b,
|
|
1033
1033
|
className: p(
|
|
1034
1034
|
"group hover:text-default inline-flex cursor-pointer items-center select-text",
|
|
1035
|
-
|
|
1035
|
+
Rr({
|
|
1036
1036
|
variant: t,
|
|
1037
1037
|
textColor: r,
|
|
1038
1038
|
weight: m,
|
|
@@ -1057,7 +1057,7 @@ const Er = me("", {
|
|
|
1057
1057
|
w({
|
|
1058
1058
|
ref: l,
|
|
1059
1059
|
className: p(
|
|
1060
|
-
|
|
1060
|
+
Rr({ variant: t, textColor: r, weight: m }),
|
|
1061
1061
|
e
|
|
1062
1062
|
)
|
|
1063
1063
|
}, s)
|
|
@@ -1065,7 +1065,7 @@ const Er = me("", {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
);
|
|
1067
1067
|
O.displayName = "Typography";
|
|
1068
|
-
const
|
|
1068
|
+
const qr = Et({}), ba = 384, en = v.forwardRef(
|
|
1069
1069
|
(c, l) => {
|
|
1070
1070
|
var f = c, {
|
|
1071
1071
|
closeOnItemClick: e = !0,
|
|
@@ -1104,9 +1104,9 @@ const Xr = Et({}), ga = 384, qr = v.forwardRef(
|
|
|
1104
1104
|
}),
|
|
1105
1105
|
[e, y, t, g]
|
|
1106
1106
|
);
|
|
1107
|
-
return /* @__PURE__ */ n(
|
|
1107
|
+
return /* @__PURE__ */ n(qr.Provider, { value: h, children: /* @__PURE__ */ n(he.Root, w({ open: b, onOpenChange: m }, s)) });
|
|
1108
1108
|
}
|
|
1109
|
-
),
|
|
1109
|
+
), tn = v.forwardRef((o, a) => {
|
|
1110
1110
|
var i = o, { className: e, asChild: t = !1 } = i, r = L(i, ["className", "asChild"]);
|
|
1111
1111
|
return /* @__PURE__ */ n(
|
|
1112
1112
|
he.Trigger,
|
|
@@ -1117,8 +1117,8 @@ const Xr = Et({}), ga = 384, qr = v.forwardRef(
|
|
|
1117
1117
|
}, r)
|
|
1118
1118
|
);
|
|
1119
1119
|
});
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1120
|
+
tn.displayName = he.Trigger.displayName;
|
|
1121
|
+
const rn = v.forwardRef(
|
|
1122
1122
|
(d, f) => {
|
|
1123
1123
|
var u = d, {
|
|
1124
1124
|
className: e,
|
|
@@ -1126,7 +1126,7 @@ const tn = v.forwardRef(
|
|
|
1126
1126
|
align: r = "start",
|
|
1127
1127
|
side: a = "bottom",
|
|
1128
1128
|
minWidth: o = 200,
|
|
1129
|
-
maxHeight: i =
|
|
1129
|
+
maxHeight: i = ba,
|
|
1130
1130
|
sideOffset: s = 4,
|
|
1131
1131
|
style: l
|
|
1132
1132
|
} = u, c = L(u, [
|
|
@@ -1157,8 +1157,8 @@ const tn = v.forwardRef(
|
|
|
1157
1157
|
) });
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
|
-
|
|
1161
|
-
const
|
|
1160
|
+
rn.displayName = he.Content.displayName;
|
|
1161
|
+
const nn = v.forwardRef(
|
|
1162
1162
|
(f, c) => {
|
|
1163
1163
|
var d = f, {
|
|
1164
1164
|
className: e,
|
|
@@ -1177,7 +1177,7 @@ const rn = v.forwardRef(
|
|
|
1177
1177
|
"onClick",
|
|
1178
1178
|
"value"
|
|
1179
1179
|
]);
|
|
1180
|
-
const { onClose: u, onValueChange: x } = Rt(
|
|
1180
|
+
const { onClose: u, onValueChange: x } = Rt(qr), b = a ? {} : l, m = (g) => {
|
|
1181
1181
|
r || (i == null || i(g), s !== void 0 && (x == null || x(s)), u == null || u());
|
|
1182
1182
|
}, y = /* @__PURE__ */ n(
|
|
1183
1183
|
"div",
|
|
@@ -1209,9 +1209,9 @@ const rn = v.forwardRef(
|
|
|
1209
1209
|
})) : y;
|
|
1210
1210
|
}
|
|
1211
1211
|
);
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
const
|
|
1212
|
+
en.displayName = "Dropdown";
|
|
1213
|
+
nn.displayName = "DropdownItem";
|
|
1214
|
+
const an = v.forwardRef(
|
|
1215
1215
|
(o, a) => {
|
|
1216
1216
|
var i = o, { className: e, children: t } = i, r = L(i, ["className", "children"]);
|
|
1217
1217
|
return /* @__PURE__ */ n(
|
|
@@ -1229,8 +1229,8 @@ const nn = v.forwardRef(
|
|
|
1229
1229
|
);
|
|
1230
1230
|
}
|
|
1231
1231
|
);
|
|
1232
|
-
|
|
1233
|
-
const
|
|
1232
|
+
an.displayName = "DropdownLabel";
|
|
1233
|
+
const on = v.forwardRef((a, r) => {
|
|
1234
1234
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1235
1235
|
return /* @__PURE__ */ n(
|
|
1236
1236
|
"div",
|
|
@@ -1241,8 +1241,8 @@ const an = v.forwardRef((a, r) => {
|
|
|
1241
1241
|
}, t)
|
|
1242
1242
|
);
|
|
1243
1243
|
});
|
|
1244
|
-
|
|
1245
|
-
function
|
|
1244
|
+
on.displayName = "DropdownSeparator";
|
|
1245
|
+
function xa({
|
|
1246
1246
|
children: e,
|
|
1247
1247
|
size: t = "md",
|
|
1248
1248
|
disabled: r,
|
|
@@ -1255,9 +1255,9 @@ function ba({
|
|
|
1255
1255
|
className: f,
|
|
1256
1256
|
triggerClassName: d
|
|
1257
1257
|
}) {
|
|
1258
|
-
return /* @__PURE__ */ I(
|
|
1259
|
-
/* @__PURE__ */ n(
|
|
1260
|
-
|
|
1258
|
+
return /* @__PURE__ */ I(en, { open: a, onOpenChange: o, children: [
|
|
1259
|
+
/* @__PURE__ */ n(tn, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1260
|
+
Q,
|
|
1261
1261
|
{
|
|
1262
1262
|
variant: "text",
|
|
1263
1263
|
iconOnly: !0,
|
|
@@ -1269,7 +1269,7 @@ function ba({
|
|
|
1269
1269
|
}
|
|
1270
1270
|
) }),
|
|
1271
1271
|
/* @__PURE__ */ n(
|
|
1272
|
-
|
|
1272
|
+
rn,
|
|
1273
1273
|
{
|
|
1274
1274
|
align: i,
|
|
1275
1275
|
side: s,
|
|
@@ -1281,20 +1281,20 @@ function ba({
|
|
|
1281
1281
|
)
|
|
1282
1282
|
] });
|
|
1283
1283
|
}
|
|
1284
|
-
|
|
1285
|
-
const xa = v.forwardRef(
|
|
1286
|
-
(e, t) => /* @__PURE__ */ n(rn, w({ ref: t }, e))
|
|
1287
|
-
);
|
|
1288
|
-
xa.displayName = "ActionsMenuItem";
|
|
1284
|
+
xa.displayName = "ActionsMenu";
|
|
1289
1285
|
const ya = v.forwardRef(
|
|
1290
|
-
(e, t) => /* @__PURE__ */ n(
|
|
1286
|
+
(e, t) => /* @__PURE__ */ n(nn, w({ ref: t }, e))
|
|
1291
1287
|
);
|
|
1292
|
-
ya.displayName = "
|
|
1288
|
+
ya.displayName = "ActionsMenuItem";
|
|
1293
1289
|
const va = v.forwardRef(
|
|
1294
|
-
(e, t) => /* @__PURE__ */ n(
|
|
1290
|
+
(e, t) => /* @__PURE__ */ n(on, w({ ref: t }, e))
|
|
1291
|
+
);
|
|
1292
|
+
va.displayName = "ActionsMenuSeparator";
|
|
1293
|
+
const wa = v.forwardRef(
|
|
1294
|
+
(e, t) => /* @__PURE__ */ n(an, w({ ref: t }, e))
|
|
1295
1295
|
);
|
|
1296
|
-
|
|
1297
|
-
const
|
|
1296
|
+
wa.displayName = "ActionsMenuLabel";
|
|
1297
|
+
const Na = {
|
|
1298
1298
|
error: {
|
|
1299
1299
|
stripe: "bg-destructive",
|
|
1300
1300
|
bg: "bg-red-50",
|
|
@@ -1319,7 +1319,7 @@ const wa = {
|
|
|
1319
1319
|
icon: "text-yellow-500",
|
|
1320
1320
|
iconName: "InfoFillIcon"
|
|
1321
1321
|
}
|
|
1322
|
-
},
|
|
1322
|
+
}, Ia = v.forwardRef(
|
|
1323
1323
|
(x, u) => {
|
|
1324
1324
|
var b = x, {
|
|
1325
1325
|
variant: e,
|
|
@@ -1344,7 +1344,7 @@ const wa = {
|
|
|
1344
1344
|
"className",
|
|
1345
1345
|
"data-testid"
|
|
1346
1346
|
]);
|
|
1347
|
-
const m =
|
|
1347
|
+
const m = Na[e];
|
|
1348
1348
|
return /* @__PURE__ */ I(
|
|
1349
1349
|
"div",
|
|
1350
1350
|
F(w({
|
|
@@ -1379,7 +1379,7 @@ const wa = {
|
|
|
1379
1379
|
(o || s) && /* @__PURE__ */ I("div", { className: "flex flex-row items-start gap-1", children: [
|
|
1380
1380
|
o && /* @__PURE__ */ n("div", { className: "hidden gap-1 md:flex", children: o }),
|
|
1381
1381
|
s && /* @__PURE__ */ n(
|
|
1382
|
-
|
|
1382
|
+
Q,
|
|
1383
1383
|
{
|
|
1384
1384
|
type: "button",
|
|
1385
1385
|
variant: "text",
|
|
@@ -1414,7 +1414,7 @@ const wa = {
|
|
|
1414
1414
|
);
|
|
1415
1415
|
}
|
|
1416
1416
|
);
|
|
1417
|
-
|
|
1417
|
+
Ia.displayName = "Alert";
|
|
1418
1418
|
const lt = v.forwardRef((a, r) => {
|
|
1419
1419
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1420
1420
|
return /* @__PURE__ */ n(
|
|
@@ -1429,7 +1429,7 @@ const lt = v.forwardRef((a, r) => {
|
|
|
1429
1429
|
);
|
|
1430
1430
|
});
|
|
1431
1431
|
lt.displayName = we.displayName;
|
|
1432
|
-
const
|
|
1432
|
+
const Ca = v.forwardRef((a, r) => {
|
|
1433
1433
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1434
1434
|
return /* @__PURE__ */ I("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1435
1435
|
/* @__PURE__ */ n(V, { icon: "SearchIcon" }),
|
|
@@ -1445,7 +1445,7 @@ const Ia = v.forwardRef((a, r) => {
|
|
|
1445
1445
|
)
|
|
1446
1446
|
] });
|
|
1447
1447
|
});
|
|
1448
|
-
|
|
1448
|
+
Ca.displayName = we.Input.displayName;
|
|
1449
1449
|
const dt = v.forwardRef((a, r) => {
|
|
1450
1450
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1451
1451
|
return /* @__PURE__ */ n(
|
|
@@ -1479,7 +1479,7 @@ const ct = v.forwardRef((a, r) => {
|
|
|
1479
1479
|
);
|
|
1480
1480
|
});
|
|
1481
1481
|
ct.displayName = we.Group.displayName;
|
|
1482
|
-
const
|
|
1482
|
+
const ka = v.forwardRef((a, r) => {
|
|
1483
1483
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1484
1484
|
return /* @__PURE__ */ n(
|
|
1485
1485
|
we.Separator,
|
|
@@ -1489,7 +1489,7 @@ const Ca = v.forwardRef((a, r) => {
|
|
|
1489
1489
|
}, t)
|
|
1490
1490
|
);
|
|
1491
1491
|
});
|
|
1492
|
-
|
|
1492
|
+
ka.displayName = we.Separator.displayName;
|
|
1493
1493
|
const Ft = v.forwardRef((a, r) => {
|
|
1494
1494
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
1495
1495
|
return /* @__PURE__ */ n(
|
|
@@ -1504,7 +1504,7 @@ const Ft = v.forwardRef((a, r) => {
|
|
|
1504
1504
|
);
|
|
1505
1505
|
});
|
|
1506
1506
|
Ft.displayName = we.Item.displayName;
|
|
1507
|
-
function
|
|
1507
|
+
function Sa(r) {
|
|
1508
1508
|
var a = r, {
|
|
1509
1509
|
className: e
|
|
1510
1510
|
} = a, t = L(a, [
|
|
@@ -1520,7 +1520,7 @@ function ka(r) {
|
|
|
1520
1520
|
}, t)
|
|
1521
1521
|
);
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
Sa.displayName = "CommandShortcut";
|
|
1524
1524
|
const Fe = v.forwardRef(
|
|
1525
1525
|
(R, M) => {
|
|
1526
1526
|
var k = R, {
|
|
@@ -1714,7 +1714,7 @@ const Fe = v.forwardRef(
|
|
|
1714
1714
|
}
|
|
1715
1715
|
);
|
|
1716
1716
|
Fe.displayName = "Input";
|
|
1717
|
-
const
|
|
1717
|
+
const Ta = v.forwardRef(
|
|
1718
1718
|
(e, t) => {
|
|
1719
1719
|
const [r, a] = v.useState(!1), o = v.useRef(null), f = e, { size: i = "md" } = f, s = L(f, ["size"]), l = v.useCallback(
|
|
1720
1720
|
(d) => {
|
|
@@ -1738,7 +1738,7 @@ const Sa = v.forwardRef(
|
|
|
1738
1738
|
size: i,
|
|
1739
1739
|
iconPosition: "right",
|
|
1740
1740
|
icon: /* @__PURE__ */ n(
|
|
1741
|
-
|
|
1741
|
+
Q,
|
|
1742
1742
|
{
|
|
1743
1743
|
variant: "text",
|
|
1744
1744
|
iconOnly: !0,
|
|
@@ -1754,7 +1754,7 @@ const Sa = v.forwardRef(
|
|
|
1754
1754
|
);
|
|
1755
1755
|
}
|
|
1756
1756
|
);
|
|
1757
|
-
|
|
1757
|
+
Ta.displayName = "InputPassword";
|
|
1758
1758
|
const kt = v.forwardRef(
|
|
1759
1759
|
(e, t) => {
|
|
1760
1760
|
const f = e, {
|
|
@@ -1804,7 +1804,7 @@ const kt = v.forwardRef(
|
|
|
1804
1804
|
}
|
|
1805
1805
|
);
|
|
1806
1806
|
kt.displayName = "InputSearch";
|
|
1807
|
-
const
|
|
1807
|
+
const Ma = v.forwardRef(
|
|
1808
1808
|
(e, t) => {
|
|
1809
1809
|
const l = e, { size: r = "md", title: a, className: o, disabled: i } = l, s = L(l, ["size", "title", "className", "disabled"]);
|
|
1810
1810
|
return /* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
|
|
@@ -1824,8 +1824,8 @@ const Ta = v.forwardRef(
|
|
|
1824
1824
|
) });
|
|
1825
1825
|
}
|
|
1826
1826
|
);
|
|
1827
|
-
|
|
1828
|
-
const
|
|
1827
|
+
Ma.displayName = "InputTitle";
|
|
1828
|
+
const Ea = v.forwardRef(
|
|
1829
1829
|
(e, t) => {
|
|
1830
1830
|
const s = e, { size: r = "md", className: a } = s, o = L(s, ["size", "className"]), i = /* @__PURE__ */ n(
|
|
1831
1831
|
"div",
|
|
@@ -1848,7 +1848,7 @@ const Ma = v.forwardRef(
|
|
|
1848
1848
|
);
|
|
1849
1849
|
}
|
|
1850
1850
|
);
|
|
1851
|
-
|
|
1851
|
+
Ea.displayName = "InputLink";
|
|
1852
1852
|
const $e = he.Root, Ye = he.Trigger, We = v.forwardRef((i, o) => {
|
|
1853
1853
|
var s = i, { className: e, align: t = "center", sideOffset: r = 4 } = s, a = L(s, ["className", "align", "sideOffset"]);
|
|
1854
1854
|
return /* @__PURE__ */ n(he.Portal, { children: /* @__PURE__ */ n(
|
|
@@ -1971,36 +1971,36 @@ function vl({
|
|
|
1971
1971
|
)
|
|
1972
1972
|
] }) });
|
|
1973
1973
|
}
|
|
1974
|
-
const
|
|
1974
|
+
const Ra = {
|
|
1975
1975
|
small: "h-6 w-6",
|
|
1976
1976
|
default: "h-8 w-8",
|
|
1977
1977
|
large: "h-10 w-10",
|
|
1978
1978
|
extra: "h-12 w-12"
|
|
1979
|
-
},
|
|
1979
|
+
}, Aa = {
|
|
1980
1980
|
small: "rounded-[6px]",
|
|
1981
1981
|
default: "rounded-[8px]",
|
|
1982
1982
|
large: "rounded-[10px]",
|
|
1983
1983
|
extra: "rounded-[12px]"
|
|
1984
|
-
},
|
|
1984
|
+
}, Da = {
|
|
1985
1985
|
small: "text-[12px]",
|
|
1986
1986
|
default: "text-[12px]",
|
|
1987
1987
|
large: "text-[16px]",
|
|
1988
1988
|
extra: "text-[16px]"
|
|
1989
|
-
},
|
|
1989
|
+
}, Fa = {
|
|
1990
1990
|
purple: "bg-[var(--color-avatar-purple-bg)]",
|
|
1991
1991
|
cyan: "bg-[var(--color-avatar-cyan-bg)]",
|
|
1992
1992
|
blue: "bg-[var(--color-avatar-blue-bg)]",
|
|
1993
1993
|
volcano: "bg-[var(--color-avatar-volcano-bg)]",
|
|
1994
1994
|
magenta: "bg-[var(--color-avatar-magenta-bg)]"
|
|
1995
|
-
},
|
|
1995
|
+
}, La = {
|
|
1996
1996
|
purple: "text-[var(--color-avatar-purple-fg)]",
|
|
1997
1997
|
cyan: "text-[var(--color-avatar-cyan-fg)]",
|
|
1998
1998
|
blue: "text-[var(--color-avatar-blue-fg)]",
|
|
1999
1999
|
volcano: "text-[var(--color-avatar-volcano-fg)]",
|
|
2000
2000
|
magenta: "text-[var(--color-avatar-magenta-fg)]"
|
|
2001
|
-
},
|
|
2001
|
+
}, Pa = Ce.forwardRef((c, l) => {
|
|
2002
2002
|
var f = c, { className: e, "data-testid": t, size: r = "default", shape: a = "circle", badge: o = !1, children: i } = f, s = L(f, ["className", "data-testid", "size", "shape", "badge", "children"]);
|
|
2003
|
-
const d = a === "circle" ? "rounded-full" :
|
|
2003
|
+
const d = a === "circle" ? "rounded-full" : Aa[r], u = {
|
|
2004
2004
|
small: 8,
|
|
2005
2005
|
default: 10,
|
|
2006
2006
|
large: 12,
|
|
@@ -2017,7 +2017,7 @@ const Ea = {
|
|
|
2017
2017
|
ref: l,
|
|
2018
2018
|
className: p(
|
|
2019
2019
|
"relative flex shrink-0",
|
|
2020
|
-
|
|
2020
|
+
Ra[r],
|
|
2021
2021
|
d,
|
|
2022
2022
|
e
|
|
2023
2023
|
),
|
|
@@ -2037,8 +2037,8 @@ const Ea = {
|
|
|
2037
2037
|
})
|
|
2038
2038
|
);
|
|
2039
2039
|
});
|
|
2040
|
-
|
|
2041
|
-
const
|
|
2040
|
+
Pa.displayName = Ue.Root.displayName;
|
|
2041
|
+
const za = Ce.forwardRef((a, r) => {
|
|
2042
2042
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
2043
2043
|
return /* @__PURE__ */ n(
|
|
2044
2044
|
Ue.Image,
|
|
@@ -2051,15 +2051,15 @@ const Pa = Ce.forwardRef((a, r) => {
|
|
|
2051
2051
|
}, t)
|
|
2052
2052
|
);
|
|
2053
2053
|
});
|
|
2054
|
-
|
|
2055
|
-
const
|
|
2054
|
+
za.displayName = Ue.Image.displayName;
|
|
2055
|
+
const Ba = Ce.forwardRef((c, l) => {
|
|
2056
2056
|
var f = c, { className: e, size: t = "default", colorVariant: r, userId: a, autoColor: o = !0, children: i } = f, s = L(f, ["className", "size", "colorVariant", "userId", "autoColor", "children"]);
|
|
2057
|
-
const d =
|
|
2057
|
+
const d = Da[t], u = Ce.useMemo(() => {
|
|
2058
2058
|
if (r)
|
|
2059
2059
|
return r;
|
|
2060
2060
|
if (o)
|
|
2061
|
-
return
|
|
2062
|
-
}, [o, r, a]), x = u ?
|
|
2061
|
+
return fa(a);
|
|
2062
|
+
}, [o, r, a]), x = u ? Fa[u] : "bg-muted", b = u ? La[u] : "text-foreground";
|
|
2063
2063
|
return /* @__PURE__ */ n(
|
|
2064
2064
|
Ue.Fallback,
|
|
2065
2065
|
F(w({
|
|
@@ -2078,8 +2078,8 @@ const za = Ce.forwardRef((c, l) => {
|
|
|
2078
2078
|
})
|
|
2079
2079
|
);
|
|
2080
2080
|
});
|
|
2081
|
-
|
|
2082
|
-
const
|
|
2081
|
+
Ba.displayName = Ue.Fallback.displayName;
|
|
2082
|
+
const Oa = new URL("../assets/alfa-BqdpLXjE.png", import.meta.url).href, _a = new URL("../assets/doc-CA2MQk3m.webp", import.meta.url).href, Ga = new URL("../assets/download-D4NtsTXF.webp", import.meta.url).href, Wa = new URL("../assets/headphones-b1FlU-5n.webp", import.meta.url).href, Va = new URL("../assets/magnifying-glass-DnHnztsH.webp", import.meta.url).href, ja = new URL("../assets/mandarin-O1JQvcin.png", import.meta.url).href, Ha = new URL("../assets/person-Dnyaeaax.webp", import.meta.url).href, Ka = new URL("../assets/plus-XlrU9iHE.webp", import.meta.url).href, Ua = new URL("../assets/pocket-DumMTe-y.webp", import.meta.url).href, $a = new URL("../assets/tbank-DHDEULnP.png", import.meta.url).href, Ya = new URL("../assets/torn-paper-Bxt8F9jg.webp", import.meta.url).href, Ke = v.forwardRef(
|
|
2083
2083
|
(x, u) => {
|
|
2084
2084
|
var b = x, {
|
|
2085
2085
|
className: e,
|
|
@@ -2173,17 +2173,17 @@ const Ba = new URL("../assets/alfa-BqdpLXjE.png", import.meta.url).href, Oa = ne
|
|
|
2173
2173
|
}
|
|
2174
2174
|
);
|
|
2175
2175
|
Ke.displayName = "Card";
|
|
2176
|
-
function
|
|
2176
|
+
function sn(e) {
|
|
2177
2177
|
const t = Se(e, "EEEEEE", { locale: ve });
|
|
2178
2178
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2179
2179
|
}
|
|
2180
2180
|
function Re(e) {
|
|
2181
|
-
return
|
|
2181
|
+
return ta(e);
|
|
2182
2182
|
}
|
|
2183
2183
|
function Ut(e) {
|
|
2184
2184
|
return Se(e, "LLLL yyyy", { locale: ve });
|
|
2185
2185
|
}
|
|
2186
|
-
const
|
|
2186
|
+
const Za = [
|
|
2187
2187
|
"января",
|
|
2188
2188
|
"февраля",
|
|
2189
2189
|
"марта",
|
|
@@ -2197,22 +2197,22 @@ const Ya = [
|
|
|
2197
2197
|
"ноября",
|
|
2198
2198
|
"декабря"
|
|
2199
2199
|
];
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2200
|
+
function Ja(e) {
|
|
2201
|
+
return Za[e.getMonth()];
|
|
2202
2202
|
}
|
|
2203
2203
|
function wl(e) {
|
|
2204
2204
|
const [t, r, a] = e.split("-").map(Number);
|
|
2205
2205
|
return new Date(t, r - 1, a);
|
|
2206
2206
|
}
|
|
2207
2207
|
function It(e) {
|
|
2208
|
-
const t =
|
|
2208
|
+
const t = Xt(Re(new Date(e.getFullYear(), e.getMonth(), 1)), -1), r = Re(new Date(e.getFullYear(), e.getMonth(), 1)), a = Xt(r, 1);
|
|
2209
2209
|
return [
|
|
2210
2210
|
{ year: t.getFullYear(), month: t.getMonth() },
|
|
2211
2211
|
{ year: r.getFullYear(), month: r.getMonth() },
|
|
2212
2212
|
{ year: a.getFullYear(), month: a.getMonth() }
|
|
2213
2213
|
];
|
|
2214
2214
|
}
|
|
2215
|
-
const
|
|
2215
|
+
const Qa = ({
|
|
2216
2216
|
date: e,
|
|
2217
2217
|
selected: t,
|
|
2218
2218
|
renderBadge: r,
|
|
@@ -2236,19 +2236,19 @@ const Ja = ({
|
|
|
2236
2236
|
r && /* @__PURE__ */ n("div", { className: "absolute right-1 top-1", children: r(e) }),
|
|
2237
2237
|
/* @__PURE__ */ I("div", { className: "flex flex-col items-center justify-center gap-0.5", children: [
|
|
2238
2238
|
/* @__PURE__ */ n(O, { variant: "p3", weight: "medium", children: e.getDate() }),
|
|
2239
|
-
/* @__PURE__ */ n(O, { variant: "p1", textColor: "secondary", children: i ? "Сегодня" :
|
|
2239
|
+
/* @__PURE__ */ n(O, { variant: "p1", textColor: "secondary", children: i ? "Сегодня" : sn(e) })
|
|
2240
2240
|
] })
|
|
2241
2241
|
]
|
|
2242
2242
|
}
|
|
2243
2243
|
);
|
|
2244
|
-
}, ze = 78,
|
|
2244
|
+
}, ze = 78, ln = 768, Xa = 7, qa = ({
|
|
2245
2245
|
date: e,
|
|
2246
2246
|
selected: t,
|
|
2247
2247
|
onClick: r,
|
|
2248
2248
|
renderBadge: a,
|
|
2249
2249
|
className: o = ""
|
|
2250
2250
|
}) => {
|
|
2251
|
-
const i = Se(e, "d", { locale: ve }), s =
|
|
2251
|
+
const i = Se(e, "d", { locale: ve }), s = sn(e), l = Ja(e);
|
|
2252
2252
|
return /* @__PURE__ */ n(
|
|
2253
2253
|
"button",
|
|
2254
2254
|
{
|
|
@@ -2285,7 +2285,7 @@ const Ja = ({
|
|
|
2285
2285
|
dayClassName: o,
|
|
2286
2286
|
classNames: i
|
|
2287
2287
|
}) => {
|
|
2288
|
-
const [s, l] =
|
|
2288
|
+
const [s, l] = ar({
|
|
2289
2289
|
dragFree: !0,
|
|
2290
2290
|
containScroll: "trimSnaps",
|
|
2291
2291
|
align: "start"
|
|
@@ -2293,7 +2293,7 @@ const Ja = ({
|
|
|
2293
2293
|
de(() => {
|
|
2294
2294
|
l && l.reInit();
|
|
2295
2295
|
}, [e, l]);
|
|
2296
|
-
const c =
|
|
2296
|
+
const c = $(() => t ? e.findIndex(
|
|
2297
2297
|
(u) => Re(u).getTime() === Re(t).getTime()
|
|
2298
2298
|
) : -1, [e, t]);
|
|
2299
2299
|
de(() => {
|
|
@@ -2302,14 +2302,14 @@ const Ja = ({
|
|
|
2302
2302
|
const u = c();
|
|
2303
2303
|
u >= 0 && l.scrollTo(u);
|
|
2304
2304
|
}, [l, c]);
|
|
2305
|
-
const f =
|
|
2305
|
+
const f = $(
|
|
2306
2306
|
(u) => {
|
|
2307
2307
|
r == null || r(u);
|
|
2308
2308
|
},
|
|
2309
2309
|
[r]
|
|
2310
2310
|
), d = (u) => t ? Re(u).getTime() === Re(t).getTime() : !1;
|
|
2311
2311
|
return /* @__PURE__ */ n("div", { className: p("overflow-hidden", i == null ? void 0 : i.root), ref: s, children: /* @__PURE__ */ n("div", { className: p("flex gap-1.5", i == null ? void 0 : i.content), children: e.map((u) => /* @__PURE__ */ n(
|
|
2312
|
-
|
|
2312
|
+
qa,
|
|
2313
2313
|
{
|
|
2314
2314
|
date: u,
|
|
2315
2315
|
selected: d(u),
|
|
@@ -2324,19 +2324,19 @@ function ot(e) {
|
|
|
2324
2324
|
const t = new Date(e);
|
|
2325
2325
|
return t.setHours(0, 0, 0, 0), t;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function eo(e, t) {
|
|
2328
2328
|
return new Date(e, t + 1, 0).getDate();
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function to(e) {
|
|
2331
2331
|
const t = [];
|
|
2332
2332
|
for (const r of e) {
|
|
2333
|
-
const a =
|
|
2333
|
+
const a = eo(r.year, r.month);
|
|
2334
2334
|
for (let o = 1; o <= a; o++)
|
|
2335
2335
|
t.push(ot(new Date(r.year, r.month, o)));
|
|
2336
2336
|
}
|
|
2337
2337
|
return t;
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function ro({
|
|
2340
2340
|
value: e,
|
|
2341
2341
|
defaultValue: t,
|
|
2342
2342
|
months: r,
|
|
@@ -2347,7 +2347,7 @@ function to({
|
|
|
2347
2347
|
return r;
|
|
2348
2348
|
const u = o.current;
|
|
2349
2349
|
return [{ year: u.getFullYear(), month: u.getMonth() }];
|
|
2350
|
-
}, [r]), f = q(() =>
|
|
2350
|
+
}, [r]), f = q(() => to(c), [c]);
|
|
2351
2351
|
return de(() => {
|
|
2352
2352
|
const u = ot(e || t || o.current);
|
|
2353
2353
|
u.getTime() !== s.getTime() && l(u);
|
|
@@ -2380,19 +2380,19 @@ const Il = (f) => {
|
|
|
2380
2380
|
"onScrollComplete",
|
|
2381
2381
|
"testIds"
|
|
2382
2382
|
]);
|
|
2383
|
-
const { days: u, selectedDate: x, setSelectedDate: b } =
|
|
2383
|
+
const { days: u, selectedDate: x, setSelectedDate: b } = ro(F(w({}, c), {
|
|
2384
2384
|
onChange: e
|
|
2385
|
-
})), m = fe(null), y =
|
|
2385
|
+
})), m = fe(null), y = $((N) => {
|
|
2386
2386
|
const T = m.current;
|
|
2387
2387
|
if (T) {
|
|
2388
|
-
const E =
|
|
2388
|
+
const E = Xa * ze;
|
|
2389
2389
|
T.scrollBy({ left: N > 0 ? E : -546, behavior: "smooth" });
|
|
2390
2390
|
}
|
|
2391
|
-
}, []), g = (N) => N.getTime() === x.getTime(), h =
|
|
2391
|
+
}, []), g = (N) => N.getTime() === x.getTime(), h = $((N, T = !1) => {
|
|
2392
2392
|
if (m.current && u.length > 0) {
|
|
2393
2393
|
const E = u.findIndex((M) => M.getTime() === Re(N).getTime());
|
|
2394
2394
|
if (E !== -1) {
|
|
2395
|
-
const M = m.current.offsetWidth, k = window.innerWidth <
|
|
2395
|
+
const M = m.current.offsetWidth, k = window.innerWidth < ln ? E * ze : E * ze - M / 2 + ze / 2;
|
|
2396
2396
|
T ? m.current.scrollTo({ left: Math.max(0, k), behavior: "smooth" }) : m.current.scrollLeft = Math.max(0, k);
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
@@ -2446,7 +2446,7 @@ const Il = (f) => {
|
|
|
2446
2446
|
C.current = [...u];
|
|
2447
2447
|
}, [u]), /* @__PURE__ */ I("div", { className: "flex items-center gap-2.5", children: [
|
|
2448
2448
|
a && /* @__PURE__ */ n(
|
|
2449
|
-
|
|
2449
|
+
Q,
|
|
2450
2450
|
{
|
|
2451
2451
|
icon: "ArrowLeftIcon",
|
|
2452
2452
|
variant: "text",
|
|
@@ -2466,7 +2466,7 @@ const Il = (f) => {
|
|
|
2466
2466
|
msOverflowStyle: "none"
|
|
2467
2467
|
},
|
|
2468
2468
|
children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: u.map((N) => /* @__PURE__ */ n(
|
|
2469
|
-
|
|
2469
|
+
Qa,
|
|
2470
2470
|
{
|
|
2471
2471
|
date: N,
|
|
2472
2472
|
selected: g(N),
|
|
@@ -2479,7 +2479,7 @@ const Il = (f) => {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
),
|
|
2481
2481
|
a && /* @__PURE__ */ n(
|
|
2482
|
-
|
|
2482
|
+
Q,
|
|
2483
2483
|
{
|
|
2484
2484
|
icon: "ArrowRightIcon",
|
|
2485
2485
|
variant: "text",
|
|
@@ -2490,7 +2490,7 @@ const Il = (f) => {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
)
|
|
2492
2492
|
] });
|
|
2493
|
-
},
|
|
2493
|
+
}, dn = v.forwardRef((a, r) => {
|
|
2494
2494
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
2495
2495
|
return /* @__PURE__ */ n(
|
|
2496
2496
|
ge.ScrollUpButton,
|
|
@@ -2506,8 +2506,8 @@ const Il = (f) => {
|
|
|
2506
2506
|
})
|
|
2507
2507
|
);
|
|
2508
2508
|
});
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2509
|
+
dn.displayName = "SelectScrollUpButton";
|
|
2510
|
+
const cn = v.forwardRef((a, r) => {
|
|
2511
2511
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
2512
2512
|
return /* @__PURE__ */ n(
|
|
2513
2513
|
ge.ScrollDownButton,
|
|
@@ -2523,8 +2523,8 @@ const dn = v.forwardRef((a, r) => {
|
|
|
2523
2523
|
})
|
|
2524
2524
|
);
|
|
2525
2525
|
});
|
|
2526
|
-
|
|
2527
|
-
const
|
|
2526
|
+
cn.displayName = "SelectScrollDownButton";
|
|
2527
|
+
const or = v.forwardRef((s, i) => {
|
|
2528
2528
|
var l = s, { className: e, children: t, selected: r, size: a = "md" } = l, o = L(l, ["className", "children", "selected", "size"]);
|
|
2529
2529
|
return /* @__PURE__ */ n(
|
|
2530
2530
|
ge.Item,
|
|
@@ -2550,8 +2550,8 @@ const ar = v.forwardRef((s, i) => {
|
|
|
2550
2550
|
})
|
|
2551
2551
|
);
|
|
2552
2552
|
});
|
|
2553
|
-
|
|
2554
|
-
const
|
|
2553
|
+
or.displayName = "SelectItem";
|
|
2554
|
+
const ir = v.forwardRef(
|
|
2555
2555
|
(T, N) => {
|
|
2556
2556
|
var E = T, {
|
|
2557
2557
|
className: e,
|
|
@@ -2600,7 +2600,7 @@ const or = v.forwardRef(
|
|
|
2600
2600
|
const j = R.current;
|
|
2601
2601
|
if (!j)
|
|
2602
2602
|
return;
|
|
2603
|
-
const P = j.offsetWidth,
|
|
2603
|
+
const P = j.offsetWidth, W = c ? 60 : 0, _ = 20, J = o ? 20 : 0, H = P - W - _ - J - 16 - 30;
|
|
2604
2604
|
let re = 0, ne = 0;
|
|
2605
2605
|
const be = 12, oe = 20, Te = 4, K = 7;
|
|
2606
2606
|
for (let Y = 0; Y < d.length; Y++) {
|
|
@@ -2613,9 +2613,9 @@ const or = v.forwardRef(
|
|
|
2613
2613
|
D(Math.max(1, re));
|
|
2614
2614
|
};
|
|
2615
2615
|
z();
|
|
2616
|
-
const
|
|
2617
|
-
return
|
|
2618
|
-
|
|
2616
|
+
const G = new ResizeObserver(z);
|
|
2617
|
+
return G.observe(R.current), () => {
|
|
2618
|
+
G.disconnect();
|
|
2619
2619
|
};
|
|
2620
2620
|
}, [d, c, o, M]), /* @__PURE__ */ I("div", { className: "w-full", children: [
|
|
2621
2621
|
a && /* @__PURE__ */ n(
|
|
@@ -2683,14 +2683,14 @@ const or = v.forwardRef(
|
|
|
2683
2683
|
/* @__PURE__ */ n(
|
|
2684
2684
|
"div",
|
|
2685
2685
|
{
|
|
2686
|
-
onPointerDown: (
|
|
2687
|
-
x || (
|
|
2686
|
+
onPointerDown: (G) => {
|
|
2687
|
+
x || (G.preventDefault(), G.stopPropagation());
|
|
2688
2688
|
},
|
|
2689
|
-
onClick: (
|
|
2690
|
-
x || (
|
|
2689
|
+
onClick: (G) => {
|
|
2690
|
+
x || (G.preventDefault(), G.stopPropagation(), u == null || u(z));
|
|
2691
2691
|
},
|
|
2692
|
-
onMouseDown: (
|
|
2693
|
-
x || (
|
|
2692
|
+
onMouseDown: (G) => {
|
|
2693
|
+
x || (G.preventDefault(), G.stopPropagation());
|
|
2694
2694
|
},
|
|
2695
2695
|
className: p(
|
|
2696
2696
|
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
@@ -2790,8 +2790,8 @@ const or = v.forwardRef(
|
|
|
2790
2790
|
] });
|
|
2791
2791
|
}
|
|
2792
2792
|
);
|
|
2793
|
-
|
|
2794
|
-
const Cl = ge.Group,
|
|
2793
|
+
ir.displayName = "SelectTrigger";
|
|
2794
|
+
const Cl = ge.Group, no = v.forwardRef((i, o) => {
|
|
2795
2795
|
var s = i, { className: e, children: t, placeholder: r } = s, a = L(s, ["className", "children", "placeholder"]);
|
|
2796
2796
|
return /* @__PURE__ */ n(
|
|
2797
2797
|
ge.Value,
|
|
@@ -2803,7 +2803,7 @@ const Cl = ge.Group, ro = v.forwardRef((i, o) => {
|
|
|
2803
2803
|
children: t
|
|
2804
2804
|
})
|
|
2805
2805
|
);
|
|
2806
|
-
}),
|
|
2806
|
+
}), sr = v.forwardRef(
|
|
2807
2807
|
(c, l) => {
|
|
2808
2808
|
var f = c, {
|
|
2809
2809
|
className: e,
|
|
@@ -2838,7 +2838,7 @@ const Cl = ge.Group, ro = v.forwardRef((i, o) => {
|
|
|
2838
2838
|
sideOffset: 4
|
|
2839
2839
|
}, s), {
|
|
2840
2840
|
children: [
|
|
2841
|
-
/* @__PURE__ */ n(
|
|
2841
|
+
/* @__PURE__ */ n(dn, {}),
|
|
2842
2842
|
/* @__PURE__ */ n(ge.Viewport, { className: "box-border flex w-full min-w-[var(--radix-select-trigger-width)] flex-col gap-0.5 p-1", children: v.Children.map(t, (d) => {
|
|
2843
2843
|
var u;
|
|
2844
2844
|
if (!v.isValidElement(d))
|
|
@@ -2852,14 +2852,14 @@ const Cl = ge.Group, ro = v.forwardRef((i, o) => {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
return d;
|
|
2854
2854
|
}) }),
|
|
2855
|
-
/* @__PURE__ */ n(
|
|
2855
|
+
/* @__PURE__ */ n(cn, {})
|
|
2856
2856
|
]
|
|
2857
2857
|
})
|
|
2858
2858
|
) });
|
|
2859
2859
|
}
|
|
2860
2860
|
);
|
|
2861
|
-
|
|
2862
|
-
const
|
|
2861
|
+
sr.displayName = "SelectContent";
|
|
2862
|
+
const ao = v.forwardRef((a, r) => {
|
|
2863
2863
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
2864
2864
|
return /* @__PURE__ */ n(
|
|
2865
2865
|
ge.Label,
|
|
@@ -2872,8 +2872,8 @@ const no = v.forwardRef((a, r) => {
|
|
|
2872
2872
|
}, t)
|
|
2873
2873
|
);
|
|
2874
2874
|
});
|
|
2875
|
-
|
|
2876
|
-
const
|
|
2875
|
+
ao.displayName = "SelectLabel";
|
|
2876
|
+
const oo = v.forwardRef((a, r) => {
|
|
2877
2877
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
2878
2878
|
return /* @__PURE__ */ n(
|
|
2879
2879
|
ge.Separator,
|
|
@@ -2883,8 +2883,8 @@ const ao = v.forwardRef((a, r) => {
|
|
|
2883
2883
|
}, t)
|
|
2884
2884
|
);
|
|
2885
2885
|
});
|
|
2886
|
-
|
|
2887
|
-
const
|
|
2886
|
+
oo.displayName = "SelectSeparator";
|
|
2887
|
+
const io = ge.Root, so = v.forwardRef(
|
|
2888
2888
|
(d, f) => {
|
|
2889
2889
|
var u = d, {
|
|
2890
2890
|
children: e,
|
|
@@ -2914,7 +2914,7 @@ const oo = ge.Root, io = v.forwardRef(
|
|
|
2914
2914
|
const y = t.filter((g) => g !== m);
|
|
2915
2915
|
r == null || r(y);
|
|
2916
2916
|
};
|
|
2917
|
-
return /* @__PURE__ */
|
|
2917
|
+
return /* @__PURE__ */ Jn(
|
|
2918
2918
|
ge.Root,
|
|
2919
2919
|
F(w({}, c), {
|
|
2920
2920
|
disabled: a,
|
|
@@ -2943,11 +2943,11 @@ const oo = ge.Root, io = v.forwardRef(
|
|
|
2943
2943
|
);
|
|
2944
2944
|
}
|
|
2945
2945
|
);
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
function
|
|
2946
|
+
so.displayName = "MultiSelect";
|
|
2947
|
+
ir.displayName = "SelectTrigger";
|
|
2948
|
+
sr.displayName = "SelectContent";
|
|
2949
|
+
or.displayName = "SelectItem";
|
|
2950
|
+
function Ar(e) {
|
|
2951
2951
|
return Se(e, "yyyy-MM-dd");
|
|
2952
2952
|
}
|
|
2953
2953
|
const kl = ({
|
|
@@ -2965,15 +2965,15 @@ const kl = ({
|
|
|
2965
2965
|
const x = q(() => {
|
|
2966
2966
|
const g = [];
|
|
2967
2967
|
for (let h = -12; h <= 12; h++) {
|
|
2968
|
-
const C =
|
|
2969
|
-
g.push({ value:
|
|
2968
|
+
const C = Xt(new Date(s.getFullYear(), s.getMonth(), 1), h);
|
|
2969
|
+
g.push({ value: Ar(C), label: Ut(C), date: C });
|
|
2970
2970
|
}
|
|
2971
2971
|
return g;
|
|
2972
2972
|
}, []), b = q(() => {
|
|
2973
2973
|
if (d)
|
|
2974
2974
|
return d;
|
|
2975
2975
|
const g = new Date(c.getFullYear(), c.getMonth(), 1);
|
|
2976
|
-
return
|
|
2976
|
+
return Ar(g);
|
|
2977
2977
|
}, [c, d]), m = (g) => {
|
|
2978
2978
|
const h = x.find((N) => N.value === g);
|
|
2979
2979
|
if (!h)
|
|
@@ -2988,19 +2988,19 @@ const kl = ({
|
|
|
2988
2988
|
}
|
|
2989
2989
|
return Ut(c);
|
|
2990
2990
|
}, [a, c]);
|
|
2991
|
-
return /* @__PURE__ */ I(
|
|
2991
|
+
return /* @__PURE__ */ I(io, { value: b, onValueChange: m, children: [
|
|
2992
2992
|
/* @__PURE__ */ n(
|
|
2993
|
-
|
|
2993
|
+
ir,
|
|
2994
2994
|
{
|
|
2995
2995
|
className: p("[&_svg]:h-6 [&_svg]:w-6 [&_svg]:text-secondary", o),
|
|
2996
2996
|
size: "lg",
|
|
2997
2997
|
transparent: !0,
|
|
2998
2998
|
inlineSelect: !0,
|
|
2999
2999
|
"data-testid": i == null ? void 0 : i.periodSelector,
|
|
3000
|
-
children: /* @__PURE__ */ n(
|
|
3000
|
+
children: /* @__PURE__ */ n(no, { children: /* @__PURE__ */ n(O, { variant: "h1", weight: "normal", children: y }) })
|
|
3001
3001
|
}
|
|
3002
3002
|
),
|
|
3003
|
-
/* @__PURE__ */ n(
|
|
3003
|
+
/* @__PURE__ */ n(sr, { size: "lg", children: x.map((g) => /* @__PURE__ */ n(or, { value: g.value, children: g.label }, g.value)) })
|
|
3004
3004
|
] });
|
|
3005
3005
|
};
|
|
3006
3006
|
function Sl({
|
|
@@ -3016,18 +3016,18 @@ function Sl({
|
|
|
3016
3016
|
}, [r, a]), de(() => {
|
|
3017
3017
|
e && i(e);
|
|
3018
3018
|
}, [e]);
|
|
3019
|
-
const u =
|
|
3019
|
+
const u = $((y) => {
|
|
3020
3020
|
i(y);
|
|
3021
3021
|
const g = It(y);
|
|
3022
3022
|
JSON.stringify(s) !== JSON.stringify(g) && l(g), r == null || r(y);
|
|
3023
|
-
}, [r, s]), x =
|
|
3023
|
+
}, [r, s]), x = $((y) => {
|
|
3024
3024
|
if (l(y), y.length > 0) {
|
|
3025
3025
|
const g = Math.floor(y.length / 2), h = y[g], C = new Date(h.year, h.month, 1);
|
|
3026
3026
|
f({ date: C, timestamp: Date.now(), mode: "monthStart" });
|
|
3027
3027
|
}
|
|
3028
|
-
}, []), b =
|
|
3028
|
+
}, []), b = $(() => {
|
|
3029
3029
|
f(void 0);
|
|
3030
|
-
}, []), m =
|
|
3030
|
+
}, []), m = $(() => {
|
|
3031
3031
|
const y = /* @__PURE__ */ new Date();
|
|
3032
3032
|
i(y);
|
|
3033
3033
|
const g = It(y);
|
|
@@ -3043,19 +3043,19 @@ function Sl({
|
|
|
3043
3043
|
resetToToday: m
|
|
3044
3044
|
};
|
|
3045
3045
|
}
|
|
3046
|
-
const
|
|
3047
|
-
doc:
|
|
3048
|
-
download:
|
|
3049
|
-
headphones:
|
|
3050
|
-
"magnifying-glass":
|
|
3051
|
-
mandarin:
|
|
3052
|
-
person:
|
|
3053
|
-
plus:
|
|
3054
|
-
pocket:
|
|
3055
|
-
"torn-paper":
|
|
3056
|
-
tbank:
|
|
3057
|
-
alfa:
|
|
3058
|
-
},
|
|
3046
|
+
const lo = window.innerWidth < ln, co = {
|
|
3047
|
+
doc: _a,
|
|
3048
|
+
download: Ga,
|
|
3049
|
+
headphones: Wa,
|
|
3050
|
+
"magnifying-glass": Va,
|
|
3051
|
+
mandarin: ja,
|
|
3052
|
+
person: Ha,
|
|
3053
|
+
plus: Ka,
|
|
3054
|
+
pocket: Ua,
|
|
3055
|
+
"torn-paper": Ya,
|
|
3056
|
+
tbank: $a,
|
|
3057
|
+
alfa: Oa
|
|
3058
|
+
}, uo = v.forwardRef(
|
|
3059
3059
|
(d, f) => {
|
|
3060
3060
|
var u = d, {
|
|
3061
3061
|
className: e,
|
|
@@ -3076,7 +3076,7 @@ const so = window.innerWidth < sn, lo = {
|
|
|
3076
3076
|
"onClose",
|
|
3077
3077
|
"color"
|
|
3078
3078
|
]);
|
|
3079
|
-
const x = i ?
|
|
3079
|
+
const x = i ? co[i] : void 0;
|
|
3080
3080
|
return t === "inline" ? /* @__PURE__ */ n(
|
|
3081
3081
|
Ke,
|
|
3082
3082
|
F(w({
|
|
@@ -3121,7 +3121,7 @@ const so = window.innerWidth < sn, lo = {
|
|
|
3121
3121
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: o })
|
|
3122
3122
|
] }),
|
|
3123
3123
|
s && /* @__PURE__ */ n(
|
|
3124
|
-
|
|
3124
|
+
Q,
|
|
3125
3125
|
{
|
|
3126
3126
|
variant: "text",
|
|
3127
3127
|
size: "sm",
|
|
@@ -3160,7 +3160,7 @@ const so = window.innerWidth < sn, lo = {
|
|
|
3160
3160
|
children: r
|
|
3161
3161
|
}
|
|
3162
3162
|
) }),
|
|
3163
|
-
/* @__PURE__ */ n("div", { className: "w-[90%] md:max-w-[60%] z-11", children: /* @__PURE__ */ n(O, { variant:
|
|
3163
|
+
/* @__PURE__ */ n("div", { className: "w-[90%] md:max-w-[60%] z-11", children: /* @__PURE__ */ n(O, { variant: lo ? "p1" : "p2", children: a }) })
|
|
3164
3164
|
] }),
|
|
3165
3165
|
o && /* @__PURE__ */ n("div", { className: "z-11", children: o })
|
|
3166
3166
|
] }),
|
|
@@ -3197,7 +3197,7 @@ const so = window.innerWidth < sn, lo = {
|
|
|
3197
3197
|
)
|
|
3198
3198
|
] }),
|
|
3199
3199
|
/* @__PURE__ */ n("div", { className: "absolute top-4 right-4", children: s && /* @__PURE__ */ n(
|
|
3200
|
-
|
|
3200
|
+
Q,
|
|
3201
3201
|
{
|
|
3202
3202
|
variant: "text",
|
|
3203
3203
|
size: "sm",
|
|
@@ -3212,7 +3212,7 @@ const so = window.innerWidth < sn, lo = {
|
|
|
3212
3212
|
);
|
|
3213
3213
|
}
|
|
3214
3214
|
);
|
|
3215
|
-
|
|
3215
|
+
uo.displayName = "Banner";
|
|
3216
3216
|
function Tl(s) {
|
|
3217
3217
|
var l = s, {
|
|
3218
3218
|
items: e,
|
|
@@ -3230,7 +3230,7 @@ function Tl(s) {
|
|
|
3230
3230
|
const c = {
|
|
3231
3231
|
align: "center",
|
|
3232
3232
|
loop: !1
|
|
3233
|
-
}, [f] =
|
|
3233
|
+
}, [f] = ar(c);
|
|
3234
3234
|
return /* @__PURE__ */ n(
|
|
3235
3235
|
"div",
|
|
3236
3236
|
F(w({
|
|
@@ -3241,7 +3241,7 @@ function Tl(s) {
|
|
|
3241
3241
|
})
|
|
3242
3242
|
);
|
|
3243
3243
|
}
|
|
3244
|
-
const
|
|
3244
|
+
const fo = me(
|
|
3245
3245
|
"group peer cursor-pointer border-border focus:border-primary focus:shadow-focus disabled:cursor-not-allowed shrink-0 rounded-sm border focus:outline-none flex items-center justify-center",
|
|
3246
3246
|
{
|
|
3247
3247
|
variants: {
|
|
@@ -3265,7 +3265,7 @@ const uo = me(
|
|
|
3265
3265
|
isDisabled: !1
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
),
|
|
3268
|
+
), mo = me(
|
|
3269
3269
|
"rounded-[2px] bg-primary shrink-0 group-hover:bg-primary-hover group-disabled:group-hover:bg-primary group-active:bg-primary-active",
|
|
3270
3270
|
{
|
|
3271
3271
|
variants: {
|
|
@@ -3276,7 +3276,7 @@ const uo = me(
|
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
3278
3278
|
);
|
|
3279
|
-
function
|
|
3279
|
+
function po(e) {
|
|
3280
3280
|
const {
|
|
3281
3281
|
className: t,
|
|
3282
3282
|
checkboxClassName: r,
|
|
@@ -3291,20 +3291,20 @@ function mo(e) {
|
|
|
3291
3291
|
} = e, u = a === "md" ? 16 : 24, x = v.useId(), b = l || x, m = i || !1, [y, g] = v.useState(!1), h = s !== void 0, C = h ? s : y, N = () => C === !0 ? "checked" : C === "indeterminate" ? "indeterminate" : "unchecked", T = (M) => {
|
|
3292
3292
|
h && c ? c(M) : h || g(M);
|
|
3293
3293
|
}, E = /* @__PURE__ */ n(
|
|
3294
|
-
|
|
3294
|
+
Mr.Root,
|
|
3295
3295
|
{
|
|
3296
3296
|
ref: f,
|
|
3297
3297
|
id: b,
|
|
3298
3298
|
className: p(
|
|
3299
|
-
|
|
3299
|
+
fo({ size: a, state: N(), isDisabled: m }),
|
|
3300
3300
|
r || (o ? void 0 : t)
|
|
3301
3301
|
),
|
|
3302
3302
|
disabled: m,
|
|
3303
3303
|
checked: C,
|
|
3304
3304
|
onCheckedChange: T,
|
|
3305
3305
|
"data-testid": d,
|
|
3306
|
-
children: /* @__PURE__ */ I(
|
|
3307
|
-
C === "indeterminate" && /* @__PURE__ */ n("div", { className:
|
|
3306
|
+
children: /* @__PURE__ */ I(Mr.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
3307
|
+
C === "indeterminate" && /* @__PURE__ */ n("div", { className: mo({ size: a }) }),
|
|
3308
3308
|
C === !0 && /* @__PURE__ */ n(V, { icon: "DoneIcon", size: u, className: "text-white" })
|
|
3309
3309
|
] })
|
|
3310
3310
|
}
|
|
@@ -3325,14 +3325,14 @@ function mo(e) {
|
|
|
3325
3325
|
)
|
|
3326
3326
|
] }) : E;
|
|
3327
3327
|
}
|
|
3328
|
-
const
|
|
3329
|
-
(e, t) => /* @__PURE__ */ n(
|
|
3330
|
-
),
|
|
3328
|
+
const er = v.forwardRef(
|
|
3329
|
+
(e, t) => /* @__PURE__ */ n(po, F(w({}, e), { ref: t }))
|
|
3330
|
+
), ho = {
|
|
3331
3331
|
xs: "h-6 text-[12px]",
|
|
3332
3332
|
sm: "h-8 text-[14px]",
|
|
3333
3333
|
md: "h-9 text-[14px]",
|
|
3334
3334
|
lg: "h-10 text-[16px]"
|
|
3335
|
-
},
|
|
3335
|
+
}, go = v.forwardRef(
|
|
3336
3336
|
({
|
|
3337
3337
|
options: e,
|
|
3338
3338
|
value: t,
|
|
@@ -3370,7 +3370,7 @@ const qt = v.forwardRef(
|
|
|
3370
3370
|
o && /* @__PURE__ */ n(O, { variant: "p3", weight: "medium", className: "mb-2.5", children: o }),
|
|
3371
3371
|
/* @__PURE__ */ I(he.Root, { open: y, onOpenChange: g, modal: !0, children: [
|
|
3372
3372
|
/* @__PURE__ */ n(he.Trigger, { asChild: !0, children: /* @__PURE__ */ I(
|
|
3373
|
-
|
|
3373
|
+
Q,
|
|
3374
3374
|
{
|
|
3375
3375
|
variant: "dashed",
|
|
3376
3376
|
disabled: f,
|
|
@@ -3454,7 +3454,7 @@ const qt = v.forwardRef(
|
|
|
3454
3454
|
// Разные ховеры для выбранного и невыбранного элемента
|
|
3455
3455
|
t !== R.value && "hover:bg-muted",
|
|
3456
3456
|
t === R.value && "bg-primary-10 font-medium hover:bg-[#F3E5FF]",
|
|
3457
|
-
|
|
3457
|
+
ho[a]
|
|
3458
3458
|
),
|
|
3459
3459
|
onClick: () => {
|
|
3460
3460
|
r(R.value), g(!1), N("");
|
|
@@ -3478,15 +3478,15 @@ const qt = v.forwardRef(
|
|
|
3478
3478
|
] });
|
|
3479
3479
|
}
|
|
3480
3480
|
);
|
|
3481
|
-
|
|
3482
|
-
const
|
|
3481
|
+
go.displayName = "Combobox";
|
|
3482
|
+
const un = Et(null);
|
|
3483
3483
|
function ft() {
|
|
3484
|
-
const e = Rt(
|
|
3484
|
+
const e = Rt(un);
|
|
3485
3485
|
if (!e)
|
|
3486
3486
|
throw new Error("useComboboxPrimitiveContext must be used within ComboboxPrimitiveProvider");
|
|
3487
3487
|
return e;
|
|
3488
3488
|
}
|
|
3489
|
-
function
|
|
3489
|
+
function bo({
|
|
3490
3490
|
items: e,
|
|
3491
3491
|
value: t = null,
|
|
3492
3492
|
onChange: r,
|
|
@@ -3497,7 +3497,7 @@ function go({
|
|
|
3497
3497
|
isOpen: l,
|
|
3498
3498
|
onOpenChange: c
|
|
3499
3499
|
}) {
|
|
3500
|
-
const f =
|
|
3500
|
+
const f = $((g, h) => {
|
|
3501
3501
|
const { type: C, changes: N } = h;
|
|
3502
3502
|
switch (C) {
|
|
3503
3503
|
case ue.stateChangeTypes.ItemClick:
|
|
@@ -3533,7 +3533,7 @@ function go({
|
|
|
3533
3533
|
const h = (g == null ? void 0 : g.value) !== void 0 && (g == null ? void 0 : g.value) !== null ? g.value : null;
|
|
3534
3534
|
r == null || r(h);
|
|
3535
3535
|
}
|
|
3536
|
-
}), { selectItem: d, setInputValue: u, getInputProps: x } = y, b = L(y, ["selectItem", "setInputValue", "getInputProps"]), m =
|
|
3536
|
+
}), { selectItem: d, setInputValue: u, getInputProps: x } = y, b = L(y, ["selectItem", "setInputValue", "getInputProps"]), m = $((g) => {
|
|
3537
3537
|
const h = x(g);
|
|
3538
3538
|
return F(w({}, h), {
|
|
3539
3539
|
onBlur: (C) => {
|
|
@@ -3548,16 +3548,16 @@ function go({
|
|
|
3548
3548
|
setInputValue: u
|
|
3549
3549
|
});
|
|
3550
3550
|
}
|
|
3551
|
-
function
|
|
3552
|
-
const { refs: r, floatingStyles: a, context: o } =
|
|
3551
|
+
function xo(e, t) {
|
|
3552
|
+
const { refs: r, floatingStyles: a, context: o } = Hr({
|
|
3553
3553
|
open: e && !t,
|
|
3554
3554
|
placement: "bottom-start",
|
|
3555
|
-
whileElementsMounted:
|
|
3555
|
+
whileElementsMounted: Zr,
|
|
3556
3556
|
middleware: [
|
|
3557
|
-
|
|
3558
|
-
Kr(),
|
|
3557
|
+
Kr(4),
|
|
3559
3558
|
Ur(),
|
|
3560
|
-
$r(
|
|
3559
|
+
$r(),
|
|
3560
|
+
Yr({
|
|
3561
3561
|
apply({ rects: l }) {
|
|
3562
3562
|
const c = r.floating.current;
|
|
3563
3563
|
c && Object.assign(c.style, {
|
|
@@ -3566,7 +3566,7 @@ function bo(e, t) {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
})
|
|
3568
3568
|
]
|
|
3569
|
-
}), { isMounted: i, styles: s } =
|
|
3569
|
+
}), { isMounted: i, styles: s } = Jr(o, {
|
|
3570
3570
|
duration: 200
|
|
3571
3571
|
});
|
|
3572
3572
|
return {
|
|
@@ -3576,7 +3576,7 @@ function bo(e, t) {
|
|
|
3576
3576
|
transitionStyles: s
|
|
3577
3577
|
};
|
|
3578
3578
|
}
|
|
3579
|
-
function
|
|
3579
|
+
function yo({
|
|
3580
3580
|
children: e,
|
|
3581
3581
|
items: t,
|
|
3582
3582
|
value: r = null,
|
|
@@ -3596,10 +3596,10 @@ function xo({
|
|
|
3596
3596
|
onClear: g,
|
|
3597
3597
|
clearable: h
|
|
3598
3598
|
}) {
|
|
3599
|
-
const C =
|
|
3599
|
+
const C = $(x, []), N = q(() => r ? {
|
|
3600
3600
|
value: r,
|
|
3601
3601
|
label: C(r)
|
|
3602
|
-
} : null, [r, C]), T =
|
|
3602
|
+
} : null, [r, C]), T = bo({
|
|
3603
3603
|
items: t,
|
|
3604
3604
|
value: N,
|
|
3605
3605
|
onChange: a,
|
|
@@ -3609,7 +3609,7 @@ function xo({
|
|
|
3609
3609
|
getLabel: C,
|
|
3610
3610
|
isOpen: m,
|
|
3611
3611
|
onOpenChange: y
|
|
3612
|
-
}), E =
|
|
3612
|
+
}), E = xo(T.isOpen, b), M = q(() => ({
|
|
3613
3613
|
// Combobox состояние
|
|
3614
3614
|
getInputProps: T.getInputProps,
|
|
3615
3615
|
getItemProps: T.getItemProps,
|
|
@@ -3652,9 +3652,9 @@ function xo({
|
|
|
3652
3652
|
C,
|
|
3653
3653
|
y
|
|
3654
3654
|
]);
|
|
3655
|
-
return /* @__PURE__ */ n(
|
|
3655
|
+
return /* @__PURE__ */ n(un.Provider, { value: M, children: e });
|
|
3656
3656
|
}
|
|
3657
|
-
const
|
|
3657
|
+
const vo = me("flex-col items-center justify-center", {
|
|
3658
3658
|
variants: {
|
|
3659
3659
|
show: {
|
|
3660
3660
|
true: "flex",
|
|
@@ -3667,7 +3667,7 @@ const yo = me("flex-col items-center justify-center", {
|
|
|
3667
3667
|
}), Ve = v.forwardRef(
|
|
3668
3668
|
(s, i) => {
|
|
3669
3669
|
var l = s, { size: e = 16, show: t, children: r, className: a } = l, o = L(l, ["size", "show", "children", "className"]);
|
|
3670
|
-
return /* @__PURE__ */ I("span", F(w({ ref: i, className:
|
|
3670
|
+
return /* @__PURE__ */ I("span", F(w({ ref: i, className: vo({ show: t }) }, o), { children: [
|
|
3671
3671
|
/* @__PURE__ */ n(
|
|
3672
3672
|
V,
|
|
3673
3673
|
{
|
|
@@ -3715,10 +3715,10 @@ const Lt = {
|
|
|
3715
3715
|
labelSize: "text-[16px]"
|
|
3716
3716
|
}
|
|
3717
3717
|
};
|
|
3718
|
-
function
|
|
3718
|
+
function fn(e) {
|
|
3719
3719
|
return Lt[e].iconSize;
|
|
3720
3720
|
}
|
|
3721
|
-
const
|
|
3721
|
+
const wo = [
|
|
3722
3722
|
"font-graphik",
|
|
3723
3723
|
"relative",
|
|
3724
3724
|
"flex",
|
|
@@ -3732,16 +3732,16 @@ const vo = [
|
|
|
3732
3732
|
"outline-none",
|
|
3733
3733
|
"select-none",
|
|
3734
3734
|
"p-3"
|
|
3735
|
-
],
|
|
3735
|
+
], No = [
|
|
3736
3736
|
"bg-primary-10",
|
|
3737
3737
|
"font-medium",
|
|
3738
3738
|
"hover:bg-[#F3E5FF]"
|
|
3739
|
-
], No = [
|
|
3740
|
-
"hover:bg-muted"
|
|
3741
3739
|
], Io = [
|
|
3740
|
+
"hover:bg-muted"
|
|
3741
|
+
], Co = [
|
|
3742
3742
|
"data-[highlighted]:bg-primary-10",
|
|
3743
3743
|
"data-[highlighted]:font-medium"
|
|
3744
|
-
],
|
|
3744
|
+
], ko = [
|
|
3745
3745
|
"font-graphik",
|
|
3746
3746
|
"flex-1",
|
|
3747
3747
|
"border-0",
|
|
@@ -3752,14 +3752,14 @@ const vo = [
|
|
|
3752
3752
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
3753
3753
|
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
3754
3754
|
"placeholder:text-muted-foreground"
|
|
3755
|
-
],
|
|
3755
|
+
], So = [
|
|
3756
3756
|
"relative",
|
|
3757
3757
|
"flex",
|
|
3758
3758
|
"items-center",
|
|
3759
3759
|
"rounded-lg",
|
|
3760
3760
|
"border-1",
|
|
3761
3761
|
"border-solid"
|
|
3762
|
-
],
|
|
3762
|
+
], To = [
|
|
3763
3763
|
"bg-background",
|
|
3764
3764
|
"border-border",
|
|
3765
3765
|
"hover:border-hover-input-primary",
|
|
@@ -3771,7 +3771,7 @@ const vo = [
|
|
|
3771
3771
|
"disabled:focus-within:border-border",
|
|
3772
3772
|
"disabled:focus-within:shadow-none",
|
|
3773
3773
|
"disabled:hover:border-none"
|
|
3774
|
-
],
|
|
3774
|
+
], Mo = [
|
|
3775
3775
|
"bg-background",
|
|
3776
3776
|
"border-destructive",
|
|
3777
3777
|
"hover:border-destructive",
|
|
@@ -3779,16 +3779,16 @@ const vo = [
|
|
|
3779
3779
|
"focus-within:shadow-error",
|
|
3780
3780
|
"data-[state=open]:border-destructive",
|
|
3781
3781
|
"data-[state=open]:shadow-error"
|
|
3782
|
-
],
|
|
3782
|
+
], Eo = [
|
|
3783
3783
|
"bg-input-disabled-background",
|
|
3784
3784
|
"cursor-not-allowed"
|
|
3785
|
-
],
|
|
3785
|
+
], Ro = [
|
|
3786
3786
|
"border-0",
|
|
3787
3787
|
"bg-transparent",
|
|
3788
3788
|
"hover:bg-transparent",
|
|
3789
3789
|
"focus-within:border-0",
|
|
3790
3790
|
"focus-within:shadow-none"
|
|
3791
|
-
],
|
|
3791
|
+
], Ao = [
|
|
3792
3792
|
"bg-popover",
|
|
3793
3793
|
"text-popover-foreground",
|
|
3794
3794
|
"border-border",
|
|
@@ -3798,12 +3798,12 @@ const vo = [
|
|
|
3798
3798
|
"rounded-lg",
|
|
3799
3799
|
"border",
|
|
3800
3800
|
"shadow-[0_2px_10px_rgba(0,0,0,0.1)]"
|
|
3801
|
-
],
|
|
3801
|
+
], Do = {
|
|
3802
3802
|
xs: "pr-2",
|
|
3803
3803
|
sm: "pr-2",
|
|
3804
3804
|
md: "pr-2.5",
|
|
3805
3805
|
lg: "pr-3"
|
|
3806
|
-
},
|
|
3806
|
+
}, mn = () => {
|
|
3807
3807
|
const {
|
|
3808
3808
|
size: e,
|
|
3809
3809
|
transparent: t,
|
|
@@ -3816,7 +3816,7 @@ const vo = [
|
|
|
3816
3816
|
selectedItem: c,
|
|
3817
3817
|
disabled: f
|
|
3818
3818
|
} = ft();
|
|
3819
|
-
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5",
|
|
3819
|
+
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5", Do[e]), children: i ? /* @__PURE__ */ n(Ve, { size: 12 }) : /* @__PURE__ */ I(pe, { children: [
|
|
3820
3820
|
a && /* @__PURE__ */ n(
|
|
3821
3821
|
V,
|
|
3822
3822
|
{
|
|
@@ -3826,7 +3826,7 @@ const vo = [
|
|
|
3826
3826
|
}
|
|
3827
3827
|
),
|
|
3828
3828
|
l && c && /* @__PURE__ */ n(
|
|
3829
|
-
|
|
3829
|
+
Q,
|
|
3830
3830
|
{
|
|
3831
3831
|
type: "button",
|
|
3832
3832
|
variant: "text",
|
|
@@ -3852,24 +3852,24 @@ const vo = [
|
|
|
3852
3852
|
t && "pl-1",
|
|
3853
3853
|
r && "rotate-180"
|
|
3854
3854
|
),
|
|
3855
|
-
size:
|
|
3855
|
+
size: fn(e)
|
|
3856
3856
|
}
|
|
3857
3857
|
) }))
|
|
3858
3858
|
] }) });
|
|
3859
3859
|
};
|
|
3860
|
-
|
|
3860
|
+
mn.displayName = "ComboboxActions";
|
|
3861
3861
|
function $t(e, t) {
|
|
3862
3862
|
return p(
|
|
3863
|
-
...
|
|
3864
|
-
e ?
|
|
3865
|
-
...
|
|
3863
|
+
...wo,
|
|
3864
|
+
e ? No : Io,
|
|
3865
|
+
...Co,
|
|
3866
3866
|
t
|
|
3867
3867
|
);
|
|
3868
3868
|
}
|
|
3869
|
-
function
|
|
3869
|
+
function pn(e, t, r) {
|
|
3870
3870
|
const a = Lt[e];
|
|
3871
3871
|
return p(
|
|
3872
|
-
...
|
|
3872
|
+
...ko,
|
|
3873
3873
|
a.fontSize,
|
|
3874
3874
|
a.paddingLeft,
|
|
3875
3875
|
a.paddingRight,
|
|
@@ -3879,36 +3879,36 @@ function mn(e, t, r) {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
);
|
|
3881
3881
|
}
|
|
3882
|
-
function
|
|
3882
|
+
function hn(e, t, r, a, o) {
|
|
3883
3883
|
const i = Lt[e];
|
|
3884
3884
|
return p(
|
|
3885
|
-
...
|
|
3885
|
+
...So,
|
|
3886
3886
|
i.height,
|
|
3887
3887
|
{
|
|
3888
3888
|
"w-full": t
|
|
3889
3889
|
},
|
|
3890
3890
|
// Стили в зависимости от состояния
|
|
3891
|
-
!a && !r && !o &&
|
|
3891
|
+
!a && !r && !o && To,
|
|
3892
3892
|
a && !r && [
|
|
3893
3893
|
"bg-background",
|
|
3894
3894
|
"border-border",
|
|
3895
|
-
...
|
|
3895
|
+
...Eo
|
|
3896
3896
|
],
|
|
3897
|
-
o && !a && !r &&
|
|
3898
|
-
r &&
|
|
3897
|
+
o && !a && !r && Mo,
|
|
3898
|
+
r && Ro
|
|
3899
3899
|
);
|
|
3900
3900
|
}
|
|
3901
|
-
function
|
|
3901
|
+
function gn(e) {
|
|
3902
3902
|
const t = Lt[e];
|
|
3903
3903
|
return p("mb-1.5", t.labelSize);
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3906
|
-
return p("hidden", e &&
|
|
3905
|
+
function bn(e, t) {
|
|
3906
|
+
return p("hidden", e && Ao, t && "flex flex-col gap-2");
|
|
3907
3907
|
}
|
|
3908
3908
|
function Pt(e) {
|
|
3909
3909
|
return e != null && e !== "";
|
|
3910
3910
|
}
|
|
3911
|
-
const
|
|
3911
|
+
const xn = v.forwardRef(
|
|
3912
3912
|
(o, a) => {
|
|
3913
3913
|
var i = o, { children: e, className: t } = i, r = L(i, ["children", "className"]);
|
|
3914
3914
|
const {
|
|
@@ -3919,7 +3919,7 @@ const bn = v.forwardRef(
|
|
|
3919
3919
|
error: d,
|
|
3920
3920
|
isOpen: u,
|
|
3921
3921
|
refs: x
|
|
3922
|
-
} = ft(), b =
|
|
3922
|
+
} = ft(), b = $((m) => {
|
|
3923
3923
|
typeof a == "function" ? a(m) : a && (a.current = m), x.reference.current !== m && m !== null && x.setReference(m);
|
|
3924
3924
|
}, [a, x]);
|
|
3925
3925
|
return /* @__PURE__ */ n(
|
|
@@ -3927,7 +3927,7 @@ const bn = v.forwardRef(
|
|
|
3927
3927
|
F(w({
|
|
3928
3928
|
ref: b,
|
|
3929
3929
|
className: p(
|
|
3930
|
-
|
|
3930
|
+
hn(s, l, c, f, Pt(d)),
|
|
3931
3931
|
t
|
|
3932
3932
|
),
|
|
3933
3933
|
"data-state": u ? "open" : "closed"
|
|
@@ -3937,8 +3937,8 @@ const bn = v.forwardRef(
|
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
3939
|
);
|
|
3940
|
-
|
|
3941
|
-
const
|
|
3940
|
+
xn.displayName = "ComboboxContainer";
|
|
3941
|
+
const yn = v.forwardRef(
|
|
3942
3942
|
(r, t) => {
|
|
3943
3943
|
var e = L(r, []);
|
|
3944
3944
|
const {
|
|
@@ -3956,12 +3956,12 @@ const xn = v.forwardRef(
|
|
|
3956
3956
|
value: c.value || "",
|
|
3957
3957
|
disabled: i,
|
|
3958
3958
|
placeholder: s,
|
|
3959
|
-
className:
|
|
3959
|
+
className: pn(a, o, i)
|
|
3960
3960
|
})
|
|
3961
3961
|
);
|
|
3962
3962
|
}
|
|
3963
3963
|
);
|
|
3964
|
-
|
|
3964
|
+
yn.displayName = "ComboboxInput";
|
|
3965
3965
|
function St(s) {
|
|
3966
3966
|
var l = s, {
|
|
3967
3967
|
className: e,
|
|
@@ -3998,13 +3998,13 @@ function St(s) {
|
|
|
3998
3998
|
children: t
|
|
3999
3999
|
}
|
|
4000
4000
|
),
|
|
4001
|
-
/* @__PURE__ */ n(
|
|
4001
|
+
/* @__PURE__ */ n(Fo, {}),
|
|
4002
4002
|
/* @__PURE__ */ n(it.Corner, {})
|
|
4003
4003
|
]
|
|
4004
4004
|
})
|
|
4005
4005
|
);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function Fo(a) {
|
|
4008
4008
|
var o = a, {
|
|
4009
4009
|
className: e,
|
|
4010
4010
|
orientation: t = "vertical"
|
|
@@ -4034,7 +4034,7 @@ function Do(a) {
|
|
|
4034
4034
|
})
|
|
4035
4035
|
);
|
|
4036
4036
|
}
|
|
4037
|
-
const
|
|
4037
|
+
const lr = v.forwardRef(
|
|
4038
4038
|
(i, o) => {
|
|
4039
4039
|
var s = i, { children: e, isSelected: t, className: r } = s, a = L(s, ["children", "isSelected", "className"]);
|
|
4040
4040
|
return typeof e == "function" ? /* @__PURE__ */ n(
|
|
@@ -4059,8 +4059,8 @@ const sr = v.forwardRef(
|
|
|
4059
4059
|
);
|
|
4060
4060
|
}
|
|
4061
4061
|
);
|
|
4062
|
-
|
|
4063
|
-
function
|
|
4062
|
+
lr.displayName = "ItemView";
|
|
4063
|
+
function Dr(e, t) {
|
|
4064
4064
|
return e && typeof e == "object" && e.displayName === t;
|
|
4065
4065
|
}
|
|
4066
4066
|
function Yt(e) {
|
|
@@ -4074,7 +4074,7 @@ function Yt(e) {
|
|
|
4074
4074
|
}
|
|
4075
4075
|
return String(e);
|
|
4076
4076
|
}
|
|
4077
|
-
function
|
|
4077
|
+
function Lo({
|
|
4078
4078
|
children: e,
|
|
4079
4079
|
classNames: t
|
|
4080
4080
|
}) {
|
|
@@ -4086,17 +4086,17 @@ function Fo({
|
|
|
4086
4086
|
const s = a ? Yt(a.value) : null, c = ((f) => v.Children.map(f, (d, u) => {
|
|
4087
4087
|
if (!v.isValidElement(d))
|
|
4088
4088
|
return d;
|
|
4089
|
-
if (
|
|
4089
|
+
if (Dr(d.type, "List")) {
|
|
4090
4090
|
const x = v.Children.map(d.props.children, (m, y) => {
|
|
4091
4091
|
if (!v.isValidElement(m))
|
|
4092
4092
|
return m;
|
|
4093
|
-
if (
|
|
4093
|
+
if (Dr(m.type, "Item"))
|
|
4094
4094
|
try {
|
|
4095
4095
|
const g = m.props, h = Yt(g.option), C = i.get(h);
|
|
4096
4096
|
if (C) {
|
|
4097
4097
|
const { item: N, index: T } = C, E = s === h;
|
|
4098
4098
|
return /* @__PURE__ */ n(
|
|
4099
|
-
|
|
4099
|
+
lr,
|
|
4100
4100
|
F(w({
|
|
4101
4101
|
isSelected: E,
|
|
4102
4102
|
className: g.className
|
|
@@ -4135,12 +4135,12 @@ function Fo({
|
|
|
4135
4135
|
}))(e);
|
|
4136
4136
|
return /* @__PURE__ */ n(pe, { children: c });
|
|
4137
4137
|
}
|
|
4138
|
-
const
|
|
4139
|
-
Object.defineProperty(
|
|
4138
|
+
const vn = Lo;
|
|
4139
|
+
Object.defineProperty(vn, "displayName", {
|
|
4140
4140
|
value: "ComboboxItemRenderer",
|
|
4141
4141
|
writable: !1
|
|
4142
4142
|
});
|
|
4143
|
-
const
|
|
4143
|
+
const wn = v.forwardRef(
|
|
4144
4144
|
(o, a) => {
|
|
4145
4145
|
var i = o, { children: e, className: t } = i, r = L(i, ["children", "className"]);
|
|
4146
4146
|
const {
|
|
@@ -4149,7 +4149,7 @@ const vn = v.forwardRef(
|
|
|
4149
4149
|
refs: c,
|
|
4150
4150
|
floatingStyles: f,
|
|
4151
4151
|
transitionStyles: d
|
|
4152
|
-
} = ft(), u = v.Children.count(e) > 0, x =
|
|
4152
|
+
} = ft(), u = v.Children.count(e) > 0, x = $((b) => {
|
|
4153
4153
|
typeof a == "function" ? a(b) : a && (a.current = b), c.floating.current !== b && b !== null && c.setFloating(b);
|
|
4154
4154
|
}, [a, c]);
|
|
4155
4155
|
return /* @__PURE__ */ n(
|
|
@@ -4158,7 +4158,7 @@ const vn = v.forwardRef(
|
|
|
4158
4158
|
ref: x
|
|
4159
4159
|
})), {
|
|
4160
4160
|
style: w(w({}, f), d),
|
|
4161
|
-
className: p(
|
|
4161
|
+
className: p(bn(s, u), t),
|
|
4162
4162
|
"data-state": s ? "open" : "closed"
|
|
4163
4163
|
}), r), {
|
|
4164
4164
|
children: s && e
|
|
@@ -4166,20 +4166,20 @@ const vn = v.forwardRef(
|
|
|
4166
4166
|
);
|
|
4167
4167
|
}
|
|
4168
4168
|
);
|
|
4169
|
-
|
|
4170
|
-
const
|
|
4169
|
+
wn.displayName = "ComboboxMenu";
|
|
4170
|
+
const dr = v.forwardRef(
|
|
4171
4171
|
({ children: e }, t) => /* @__PURE__ */ n(pe, { children: e })
|
|
4172
4172
|
);
|
|
4173
|
-
|
|
4174
|
-
const
|
|
4173
|
+
dr.displayName = "Item";
|
|
4174
|
+
const cr = v.forwardRef(
|
|
4175
4175
|
({ children: e }, t) => /* @__PURE__ */ n(pe, { children: e })
|
|
4176
4176
|
);
|
|
4177
|
-
|
|
4178
|
-
function
|
|
4177
|
+
cr.displayName = "List";
|
|
4178
|
+
function Fr(e, t) {
|
|
4179
4179
|
return e && typeof e == "object" && e.displayName === t;
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4182
|
-
const a = v.Children.toArray(e).filter((s) => v.isValidElement(s) ?
|
|
4181
|
+
function Nn(e, t) {
|
|
4182
|
+
const a = v.Children.toArray(e).filter((s) => v.isValidElement(s) ? Fr(s.type, "List") : !1), o = [];
|
|
4183
4183
|
if (a.forEach((s) => {
|
|
4184
4184
|
if (v.isValidElement(s)) {
|
|
4185
4185
|
const l = v.Children.toArray(s.props.children);
|
|
@@ -4191,7 +4191,7 @@ function wn(e, t) {
|
|
|
4191
4191
|
return o.forEach((s) => {
|
|
4192
4192
|
if (!v.isValidElement(s))
|
|
4193
4193
|
return;
|
|
4194
|
-
if (
|
|
4194
|
+
if (Fr(s.type, "Item"))
|
|
4195
4195
|
try {
|
|
4196
4196
|
const c = s.props.option, f = t(s.props.option);
|
|
4197
4197
|
i.push({
|
|
@@ -4202,7 +4202,7 @@ function wn(e, t) {
|
|
|
4202
4202
|
}
|
|
4203
4203
|
}), { items: i };
|
|
4204
4204
|
}
|
|
4205
|
-
function
|
|
4205
|
+
function Po({
|
|
4206
4206
|
children: e,
|
|
4207
4207
|
value: t,
|
|
4208
4208
|
onChange: r,
|
|
@@ -4226,9 +4226,9 @@ function Lo({
|
|
|
4226
4226
|
clearable: T,
|
|
4227
4227
|
onClear: E
|
|
4228
4228
|
}) {
|
|
4229
|
-
const { items: M } =
|
|
4229
|
+
const { items: M } = Nn(e, y), R = q(() => t, [t]);
|
|
4230
4230
|
return /* @__PURE__ */ n(
|
|
4231
|
-
|
|
4231
|
+
yo,
|
|
4232
4232
|
{
|
|
4233
4233
|
getLabel: y,
|
|
4234
4234
|
items: M,
|
|
@@ -4253,16 +4253,16 @@ function Lo({
|
|
|
4253
4253
|
{
|
|
4254
4254
|
variant: "p3",
|
|
4255
4255
|
weight: "medium",
|
|
4256
|
-
className:
|
|
4256
|
+
className: gn(i),
|
|
4257
4257
|
children: f
|
|
4258
4258
|
}
|
|
4259
4259
|
),
|
|
4260
|
-
/* @__PURE__ */ I(
|
|
4261
|
-
/* @__PURE__ */ n(
|
|
4262
|
-
/* @__PURE__ */ n(
|
|
4260
|
+
/* @__PURE__ */ I(xn, { children: [
|
|
4261
|
+
/* @__PURE__ */ n(yn, { "data-testid": m }),
|
|
4262
|
+
/* @__PURE__ */ n(mn, {})
|
|
4263
4263
|
] }),
|
|
4264
|
-
/* @__PURE__ */ n(
|
|
4265
|
-
|
|
4264
|
+
/* @__PURE__ */ n(wn, { className: c == null ? void 0 : c.menu, children: /* @__PURE__ */ n(
|
|
4265
|
+
vn,
|
|
4266
4266
|
{
|
|
4267
4267
|
classNames: {
|
|
4268
4268
|
scrollArea: c == null ? void 0 : c.scrollArea,
|
|
@@ -4277,17 +4277,17 @@ function Lo({
|
|
|
4277
4277
|
}
|
|
4278
4278
|
);
|
|
4279
4279
|
}
|
|
4280
|
-
const
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
const
|
|
4280
|
+
const In = Po;
|
|
4281
|
+
In.Item = dr;
|
|
4282
|
+
In.List = cr;
|
|
4283
|
+
const Cn = Et(null);
|
|
4284
4284
|
function mt() {
|
|
4285
|
-
const e = Rt(
|
|
4285
|
+
const e = Rt(Cn);
|
|
4286
4286
|
if (!e)
|
|
4287
4287
|
throw new Error("useComboboxMultiSelectContext must be used within ComboboxMultiSelectProvider");
|
|
4288
4288
|
return e;
|
|
4289
4289
|
}
|
|
4290
|
-
function
|
|
4290
|
+
function zo({
|
|
4291
4291
|
items: e,
|
|
4292
4292
|
value: t = null,
|
|
4293
4293
|
onChange: r,
|
|
@@ -4302,7 +4302,7 @@ function Po({
|
|
|
4302
4302
|
inputValueOnSelect: u,
|
|
4303
4303
|
inputValueOnClose: x
|
|
4304
4304
|
}) {
|
|
4305
|
-
const b = fe(null), m =
|
|
4305
|
+
const b = fe(null), m = $((M, R) => {
|
|
4306
4306
|
const { type: k, changes: D } = R;
|
|
4307
4307
|
switch (k) {
|
|
4308
4308
|
case ue.stateChangeTypes.ItemClick:
|
|
@@ -4349,7 +4349,7 @@ function Po({
|
|
|
4349
4349
|
t !== void 0 && (y.selectedItem = t), f !== void 0 && (y.inputValue = f);
|
|
4350
4350
|
const E = ue(y), { selectItem: g, setInputValue: h, getInputProps: C } = E, N = L(E, ["selectItem", "setInputValue", "getInputProps"]);
|
|
4351
4351
|
b.current = h;
|
|
4352
|
-
const T =
|
|
4352
|
+
const T = $((M) => {
|
|
4353
4353
|
const R = C(M);
|
|
4354
4354
|
return F(w({}, R), {
|
|
4355
4355
|
onBlur: (k) => {
|
|
@@ -4364,16 +4364,16 @@ function Po({
|
|
|
4364
4364
|
setInputValue: h
|
|
4365
4365
|
});
|
|
4366
4366
|
}
|
|
4367
|
-
function
|
|
4368
|
-
const { refs: r, floatingStyles: a, context: o } =
|
|
4367
|
+
function Bo(e, t) {
|
|
4368
|
+
const { refs: r, floatingStyles: a, context: o } = Hr({
|
|
4369
4369
|
open: e && !t,
|
|
4370
4370
|
placement: "bottom-start",
|
|
4371
|
-
whileElementsMounted:
|
|
4371
|
+
whileElementsMounted: Zr,
|
|
4372
4372
|
middleware: [
|
|
4373
|
-
|
|
4374
|
-
Kr(),
|
|
4373
|
+
Kr(4),
|
|
4375
4374
|
Ur(),
|
|
4376
|
-
$r(
|
|
4375
|
+
$r(),
|
|
4376
|
+
Yr({
|
|
4377
4377
|
apply({ rects: l }) {
|
|
4378
4378
|
const c = r.floating.current;
|
|
4379
4379
|
c && Object.assign(c.style, {
|
|
@@ -4382,7 +4382,7 @@ function zo(e, t) {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
})
|
|
4384
4384
|
]
|
|
4385
|
-
}), { isMounted: i, styles: s } =
|
|
4385
|
+
}), { isMounted: i, styles: s } = Jr(o, {
|
|
4386
4386
|
duration: 200
|
|
4387
4387
|
});
|
|
4388
4388
|
return {
|
|
@@ -4392,7 +4392,7 @@ function zo(e, t) {
|
|
|
4392
4392
|
transitionStyles: s
|
|
4393
4393
|
};
|
|
4394
4394
|
}
|
|
4395
|
-
function
|
|
4395
|
+
function Oo({
|
|
4396
4396
|
children: e,
|
|
4397
4397
|
items: t,
|
|
4398
4398
|
value: r,
|
|
@@ -4418,13 +4418,13 @@ function Bo({
|
|
|
4418
4418
|
onClear: M,
|
|
4419
4419
|
clearable: R
|
|
4420
4420
|
}) {
|
|
4421
|
-
const k =
|
|
4421
|
+
const k = $(C, [C]), D = q(() => {
|
|
4422
4422
|
if (r !== void 0)
|
|
4423
4423
|
return r === null ? null : {
|
|
4424
4424
|
value: r,
|
|
4425
4425
|
label: k(r)
|
|
4426
4426
|
};
|
|
4427
|
-
}, [r, k]), z =
|
|
4427
|
+
}, [r, k]), z = zo({
|
|
4428
4428
|
items: t,
|
|
4429
4429
|
value: D,
|
|
4430
4430
|
onChange: a,
|
|
@@ -4438,7 +4438,7 @@ function Bo({
|
|
|
4438
4438
|
keepOpenOnSelect: l,
|
|
4439
4439
|
inputValueOnSelect: c,
|
|
4440
4440
|
inputValueOnClose: f
|
|
4441
|
-
}),
|
|
4441
|
+
}), G = Bo(z.isOpen, N), j = q(() => ({
|
|
4442
4442
|
// Combobox состояние
|
|
4443
4443
|
getInputProps: z.getInputProps,
|
|
4444
4444
|
getItemProps: z.getItemProps,
|
|
@@ -4450,10 +4450,10 @@ function Bo({
|
|
|
4450
4450
|
setInputValue: z.setInputValue,
|
|
4451
4451
|
selectItem: z.selectItem,
|
|
4452
4452
|
// Floating UI состояние
|
|
4453
|
-
refs:
|
|
4454
|
-
floatingStyles:
|
|
4455
|
-
isMounted:
|
|
4456
|
-
transitionStyles:
|
|
4453
|
+
refs: G.refs,
|
|
4454
|
+
floatingStyles: G.floatingStyles,
|
|
4455
|
+
isMounted: G.isMounted,
|
|
4456
|
+
transitionStyles: G.transitionStyles,
|
|
4457
4457
|
// Пропсы компонента
|
|
4458
4458
|
size: x,
|
|
4459
4459
|
fullWidth: b,
|
|
@@ -4471,7 +4471,7 @@ function Bo({
|
|
|
4471
4471
|
hasSelection: u
|
|
4472
4472
|
}), [
|
|
4473
4473
|
z,
|
|
4474
|
-
|
|
4474
|
+
G,
|
|
4475
4475
|
x,
|
|
4476
4476
|
b,
|
|
4477
4477
|
m,
|
|
@@ -4487,9 +4487,9 @@ function Bo({
|
|
|
4487
4487
|
d,
|
|
4488
4488
|
u
|
|
4489
4489
|
]);
|
|
4490
|
-
return /* @__PURE__ */ n(
|
|
4490
|
+
return /* @__PURE__ */ n(Cn.Provider, { value: j, children: e });
|
|
4491
4491
|
}
|
|
4492
|
-
const
|
|
4492
|
+
const kn = () => {
|
|
4493
4493
|
const {
|
|
4494
4494
|
size: e,
|
|
4495
4495
|
transparent: t,
|
|
@@ -4517,13 +4517,13 @@ const Cn = () => {
|
|
|
4517
4517
|
t && "pl-1",
|
|
4518
4518
|
r && "rotate-180"
|
|
4519
4519
|
),
|
|
4520
|
-
size:
|
|
4520
|
+
size: fn(e)
|
|
4521
4521
|
}
|
|
4522
4522
|
) }))
|
|
4523
4523
|
] }) });
|
|
4524
4524
|
};
|
|
4525
|
-
|
|
4526
|
-
const
|
|
4525
|
+
kn.displayName = "ComboboxActions";
|
|
4526
|
+
const Sn = v.forwardRef(
|
|
4527
4527
|
(o, a) => {
|
|
4528
4528
|
var i = o, { children: e, className: t } = i, r = L(i, ["children", "className"]);
|
|
4529
4529
|
const {
|
|
@@ -4534,7 +4534,7 @@ const kn = v.forwardRef(
|
|
|
4534
4534
|
error: d,
|
|
4535
4535
|
isOpen: u,
|
|
4536
4536
|
refs: x
|
|
4537
|
-
} = mt(), b =
|
|
4537
|
+
} = mt(), b = $((m) => {
|
|
4538
4538
|
typeof a == "function" ? a(m) : a && (a.current = m), x.reference.current !== m && m !== null && x.setReference(m);
|
|
4539
4539
|
}, [a, x]);
|
|
4540
4540
|
return /* @__PURE__ */ n(
|
|
@@ -4542,7 +4542,7 @@ const kn = v.forwardRef(
|
|
|
4542
4542
|
F(w({
|
|
4543
4543
|
ref: b,
|
|
4544
4544
|
className: p(
|
|
4545
|
-
|
|
4545
|
+
hn(s, l, c, f, Pt(d)),
|
|
4546
4546
|
t
|
|
4547
4547
|
),
|
|
4548
4548
|
"data-state": u ? "open" : "closed"
|
|
@@ -4552,8 +4552,8 @@ const kn = v.forwardRef(
|
|
|
4552
4552
|
);
|
|
4553
4553
|
}
|
|
4554
4554
|
);
|
|
4555
|
-
|
|
4556
|
-
function
|
|
4555
|
+
Sn.displayName = "ComboboxContainer";
|
|
4556
|
+
function Lr(e, t) {
|
|
4557
4557
|
return e && typeof e == "object" && e.displayName === t;
|
|
4558
4558
|
}
|
|
4559
4559
|
function Zt(e) {
|
|
@@ -4567,7 +4567,7 @@ function Zt(e) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
return String(e);
|
|
4569
4569
|
}
|
|
4570
|
-
function
|
|
4570
|
+
function _o({
|
|
4571
4571
|
children: e,
|
|
4572
4572
|
classNames: t
|
|
4573
4573
|
}) {
|
|
@@ -4579,17 +4579,17 @@ function Oo({
|
|
|
4579
4579
|
const l = a ? Zt(a.value) : null, f = ((d) => v.Children.map(d, (u, x) => {
|
|
4580
4580
|
if (!v.isValidElement(u))
|
|
4581
4581
|
return u;
|
|
4582
|
-
if (
|
|
4582
|
+
if (Lr(u.type, "List")) {
|
|
4583
4583
|
const b = v.Children.map(u.props.children, (y, g) => {
|
|
4584
4584
|
if (!v.isValidElement(y))
|
|
4585
4585
|
return y;
|
|
4586
|
-
if (
|
|
4586
|
+
if (Lr(y.type, "Item"))
|
|
4587
4587
|
try {
|
|
4588
4588
|
const h = y.props, C = Zt(h.option), N = s.get(C);
|
|
4589
4589
|
if (N) {
|
|
4590
4590
|
const { item: T, index: E } = N, M = i ? i(T.value) : l === C;
|
|
4591
4591
|
return /* @__PURE__ */ n(
|
|
4592
|
-
|
|
4592
|
+
lr,
|
|
4593
4593
|
F(w({
|
|
4594
4594
|
isSelected: M,
|
|
4595
4595
|
className: h.className
|
|
@@ -4628,12 +4628,12 @@ function Oo({
|
|
|
4628
4628
|
}))(e);
|
|
4629
4629
|
return /* @__PURE__ */ n(pe, { children: f });
|
|
4630
4630
|
}
|
|
4631
|
-
const
|
|
4632
|
-
Object.defineProperty(
|
|
4631
|
+
const Tn = _o;
|
|
4632
|
+
Object.defineProperty(Tn, "displayName", {
|
|
4633
4633
|
value: "ComboboxItemRenderer",
|
|
4634
4634
|
writable: !1
|
|
4635
4635
|
});
|
|
4636
|
-
const
|
|
4636
|
+
const Mn = v.forwardRef(
|
|
4637
4637
|
(o, a) => {
|
|
4638
4638
|
var i = o, { children: e, className: t } = i, r = L(i, ["children", "className"]);
|
|
4639
4639
|
const {
|
|
@@ -4642,7 +4642,7 @@ const Tn = v.forwardRef(
|
|
|
4642
4642
|
refs: c,
|
|
4643
4643
|
floatingStyles: f,
|
|
4644
4644
|
transitionStyles: d
|
|
4645
|
-
} = mt(), u = v.Children.count(e) > 0, x =
|
|
4645
|
+
} = mt(), u = v.Children.count(e) > 0, x = $((b) => {
|
|
4646
4646
|
typeof a == "function" ? a(b) : a && (a.current = b), c.floating.current !== b && b !== null && c.setFloating(b);
|
|
4647
4647
|
}, [a, c]);
|
|
4648
4648
|
return /* @__PURE__ */ n(
|
|
@@ -4651,7 +4651,7 @@ const Tn = v.forwardRef(
|
|
|
4651
4651
|
ref: x
|
|
4652
4652
|
})), {
|
|
4653
4653
|
style: w(w({}, f), d),
|
|
4654
|
-
className: p(
|
|
4654
|
+
className: p(bn(s, u), t),
|
|
4655
4655
|
"data-state": s ? "open" : "closed"
|
|
4656
4656
|
}), r), {
|
|
4657
4657
|
children: s && e
|
|
@@ -4659,8 +4659,8 @@ const Tn = v.forwardRef(
|
|
|
4659
4659
|
);
|
|
4660
4660
|
}
|
|
4661
4661
|
);
|
|
4662
|
-
|
|
4663
|
-
function
|
|
4662
|
+
Mn.displayName = "ComboboxMenu";
|
|
4663
|
+
function Go(e) {
|
|
4664
4664
|
if (e == null)
|
|
4665
4665
|
return String(e);
|
|
4666
4666
|
if (typeof e == "object")
|
|
@@ -4671,7 +4671,7 @@ function _o(e) {
|
|
|
4671
4671
|
}
|
|
4672
4672
|
return String(e);
|
|
4673
4673
|
}
|
|
4674
|
-
function
|
|
4674
|
+
function Wo({
|
|
4675
4675
|
selected: e,
|
|
4676
4676
|
onRemove: t,
|
|
4677
4677
|
getLabel: r,
|
|
@@ -4687,7 +4687,7 @@ function Go({
|
|
|
4687
4687
|
getInputProps: d,
|
|
4688
4688
|
onOpenChange: u
|
|
4689
4689
|
} = mt(), x = fe(null), b = fe(null), [m, y] = ee(2);
|
|
4690
|
-
|
|
4690
|
+
Qn(() => {
|
|
4691
4691
|
if (!e.length || !b.current)
|
|
4692
4692
|
return;
|
|
4693
4693
|
const N = () => {
|
|
@@ -4695,17 +4695,17 @@ function Go({
|
|
|
4695
4695
|
if (!E)
|
|
4696
4696
|
return;
|
|
4697
4697
|
const z = E.offsetWidth - 56 - 30 - 8;
|
|
4698
|
-
let
|
|
4699
|
-
const P = 12,
|
|
4698
|
+
let G = 0, j = 0;
|
|
4699
|
+
const P = 12, W = 20, _ = 4, J = 7;
|
|
4700
4700
|
for (let B = 0; B < e.length; B++) {
|
|
4701
|
-
const re = r(e[B]).length *
|
|
4701
|
+
const re = r(e[B]).length * J, ne = P + re + W + _;
|
|
4702
4702
|
if (j + ne <= z)
|
|
4703
|
-
j += ne,
|
|
4703
|
+
j += ne, G = B + 1;
|
|
4704
4704
|
else
|
|
4705
4705
|
break;
|
|
4706
4706
|
}
|
|
4707
|
-
const
|
|
4708
|
-
y(o ? Math.min(
|
|
4707
|
+
const U = Math.max(1, G);
|
|
4708
|
+
y(o ? Math.min(U, o) : U);
|
|
4709
4709
|
};
|
|
4710
4710
|
N();
|
|
4711
4711
|
const T = new ResizeObserver(N);
|
|
@@ -4806,7 +4806,7 @@ function Go({
|
|
|
4806
4806
|
disabled: c,
|
|
4807
4807
|
placeholder: e.length > 0 ? "" : f,
|
|
4808
4808
|
className: p(
|
|
4809
|
-
|
|
4809
|
+
pn(s, l, c),
|
|
4810
4810
|
"!w-auto !min-w-[2px] !flex-1 !px-0 !py-0 !pl-0 !pr-0"
|
|
4811
4811
|
)
|
|
4812
4812
|
})
|
|
@@ -4815,7 +4815,7 @@ function Go({
|
|
|
4815
4815
|
}
|
|
4816
4816
|
);
|
|
4817
4817
|
}
|
|
4818
|
-
function
|
|
4818
|
+
function Vo({
|
|
4819
4819
|
children: e,
|
|
4820
4820
|
value: t = [],
|
|
4821
4821
|
onChange: r,
|
|
@@ -4832,7 +4832,7 @@ function Wo({
|
|
|
4832
4832
|
disabled: b = !1,
|
|
4833
4833
|
"data-testid": m,
|
|
4834
4834
|
getLabel: y = (k) => typeof k == "object" && k !== null && "label" in k ? k.label : "",
|
|
4835
|
-
getKey: g =
|
|
4835
|
+
getKey: g = Go,
|
|
4836
4836
|
loading: h = !1,
|
|
4837
4837
|
isOpen: C,
|
|
4838
4838
|
onOpenChange: N,
|
|
@@ -4841,29 +4841,29 @@ function Wo({
|
|
|
4841
4841
|
onClear: M,
|
|
4842
4842
|
maxTags: R = 4
|
|
4843
4843
|
}) {
|
|
4844
|
-
const { items: k } =
|
|
4844
|
+
const { items: k } = Nn(e, y), D = q(() => t || [], [t]), z = q(() => new Set(D.map(g)), [D, g]), [G, j] = ee(""), P = $((B) => {
|
|
4845
4845
|
const H = g(B), ne = z.has(H) ? D.filter((be) => g(be) !== H) : [...D, B];
|
|
4846
4846
|
r == null || r(ne);
|
|
4847
|
-
}, [g, r, D, z]),
|
|
4847
|
+
}, [g, r, D, z]), W = $((B) => {
|
|
4848
4848
|
const H = g(B);
|
|
4849
4849
|
r == null || r(D.filter((re) => g(re) !== H));
|
|
4850
|
-
}, [g, r, D]),
|
|
4850
|
+
}, [g, r, D]), _ = $(() => {
|
|
4851
4851
|
r == null || r([]), M == null || M();
|
|
4852
|
-
}, [r, M]),
|
|
4852
|
+
}, [r, M]), J = $((B) => {
|
|
4853
4853
|
N == null || N(B), B || (j(""), a == null || a(""));
|
|
4854
|
-
}, [N, a]),
|
|
4854
|
+
}, [N, a]), U = $((B) => {
|
|
4855
4855
|
j(B), a == null || a(B);
|
|
4856
4856
|
}, [a]);
|
|
4857
4857
|
return /* @__PURE__ */ n(
|
|
4858
|
-
|
|
4858
|
+
Oo,
|
|
4859
4859
|
{
|
|
4860
4860
|
getLabel: y,
|
|
4861
4861
|
items: k,
|
|
4862
|
-
inputValue:
|
|
4862
|
+
inputValue: G,
|
|
4863
4863
|
onChange: (B) => {
|
|
4864
4864
|
B && P(B);
|
|
4865
4865
|
},
|
|
4866
|
-
onSearch:
|
|
4866
|
+
onSearch: U,
|
|
4867
4867
|
onBlur: o,
|
|
4868
4868
|
size: i,
|
|
4869
4869
|
fullWidth: s,
|
|
@@ -4873,9 +4873,9 @@ function Wo({
|
|
|
4873
4873
|
placeholder: x,
|
|
4874
4874
|
loading: h,
|
|
4875
4875
|
isOpen: C,
|
|
4876
|
-
onOpenChange:
|
|
4876
|
+
onOpenChange: J,
|
|
4877
4877
|
clearable: E,
|
|
4878
|
-
onClear:
|
|
4878
|
+
onClear: _,
|
|
4879
4879
|
keepOpenOnSelect: !0,
|
|
4880
4880
|
inputValueOnSelect: "preserve",
|
|
4881
4881
|
inputValueOnClose: "preserve",
|
|
@@ -4887,26 +4887,26 @@ function Wo({
|
|
|
4887
4887
|
{
|
|
4888
4888
|
variant: "p3",
|
|
4889
4889
|
weight: "medium",
|
|
4890
|
-
className:
|
|
4890
|
+
className: gn(i),
|
|
4891
4891
|
children: f
|
|
4892
4892
|
}
|
|
4893
4893
|
),
|
|
4894
|
-
/* @__PURE__ */ I(
|
|
4894
|
+
/* @__PURE__ */ I(Sn, { children: [
|
|
4895
4895
|
/* @__PURE__ */ n(
|
|
4896
|
-
|
|
4896
|
+
Wo,
|
|
4897
4897
|
{
|
|
4898
4898
|
selected: D,
|
|
4899
|
-
onRemove:
|
|
4899
|
+
onRemove: W,
|
|
4900
4900
|
getLabel: y,
|
|
4901
4901
|
getKey: g,
|
|
4902
4902
|
maxTags: R,
|
|
4903
4903
|
"data-testid": m
|
|
4904
4904
|
}
|
|
4905
4905
|
),
|
|
4906
|
-
/* @__PURE__ */ n(
|
|
4906
|
+
/* @__PURE__ */ n(kn, {})
|
|
4907
4907
|
] }),
|
|
4908
|
-
/* @__PURE__ */ n(
|
|
4909
|
-
|
|
4908
|
+
/* @__PURE__ */ n(Mn, { className: p("p-1", c == null ? void 0 : c.menu), children: /* @__PURE__ */ n(
|
|
4909
|
+
Tn,
|
|
4910
4910
|
{
|
|
4911
4911
|
classNames: {
|
|
4912
4912
|
scrollArea: p("gap-0.5", c == null ? void 0 : c.scrollArea),
|
|
@@ -4921,23 +4921,23 @@ function Wo({
|
|
|
4921
4921
|
}
|
|
4922
4922
|
);
|
|
4923
4923
|
}
|
|
4924
|
-
const
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
const
|
|
4924
|
+
const En = Vo;
|
|
4925
|
+
En.Item = dr;
|
|
4926
|
+
En.List = cr;
|
|
4927
|
+
const jo = {
|
|
4928
4928
|
show: !0,
|
|
4929
4929
|
position: "outside",
|
|
4930
4930
|
align: "center",
|
|
4931
4931
|
activeClassName: "bg-default",
|
|
4932
4932
|
inactiveClassName: "bg-default opacity-40"
|
|
4933
4933
|
};
|
|
4934
|
-
function
|
|
4934
|
+
function Rn(e) {
|
|
4935
4935
|
const N = e || {}, { indicators: t, defaultActive: r = 0 } = N, a = L(N, ["indicators", "defaultActive"]), o = w({
|
|
4936
4936
|
align: "start",
|
|
4937
4937
|
loop: !1,
|
|
4938
4938
|
slidesToScroll: 1,
|
|
4939
4939
|
containScroll: "trimSnaps"
|
|
4940
|
-
}, a), i = w(w({},
|
|
4940
|
+
}, a), i = w(w({}, jo), t), [s, l] = ar(o), [c, f] = ee(r), [d, u] = ee(!1), [x, b] = ee(!1), m = $(() => {
|
|
4941
4941
|
l && (f(l.selectedScrollSnap()), u(l.canScrollNext()), b(l.canScrollPrev()));
|
|
4942
4942
|
}, [l]);
|
|
4943
4943
|
de(() => {
|
|
@@ -4946,13 +4946,13 @@ function En(e) {
|
|
|
4946
4946
|
l.off("select", m), l.off("reInit", m);
|
|
4947
4947
|
};
|
|
4948
4948
|
}, [l, m, r]);
|
|
4949
|
-
const y =
|
|
4949
|
+
const y = $((T) => {
|
|
4950
4950
|
l && l.scrollTo(T);
|
|
4951
|
-
}, [l]), g =
|
|
4951
|
+
}, [l]), g = $(() => {
|
|
4952
4952
|
l && l.scrollNext();
|
|
4953
|
-
}, [l]), h =
|
|
4953
|
+
}, [l]), h = $(() => {
|
|
4954
4954
|
l && l.scrollPrev();
|
|
4955
|
-
}, [l]), C =
|
|
4955
|
+
}, [l]), C = $((T) => {
|
|
4956
4956
|
y(T);
|
|
4957
4957
|
}, [y]);
|
|
4958
4958
|
return {
|
|
@@ -4968,18 +4968,18 @@ function En(e) {
|
|
|
4968
4968
|
canScrollPrev: x
|
|
4969
4969
|
};
|
|
4970
4970
|
}
|
|
4971
|
-
const
|
|
4971
|
+
const An = Et(null);
|
|
4972
4972
|
function zt() {
|
|
4973
|
-
const e = Rt(
|
|
4973
|
+
const e = Rt(An);
|
|
4974
4974
|
if (!e)
|
|
4975
4975
|
throw new Error("Компоненты карусели должны использоваться внутри Carousel");
|
|
4976
4976
|
return e;
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4979
|
-
const a =
|
|
4980
|
-
return /* @__PURE__ */ n(
|
|
4978
|
+
function Ho({ children: e, className: t, options: r }) {
|
|
4979
|
+
const a = Rn(r);
|
|
4980
|
+
return /* @__PURE__ */ n(An.Provider, { value: a, children: /* @__PURE__ */ n("div", { className: p("relative w-full", t), children: e }) });
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4982
|
+
function Ko({ items: e, className: t, slideClassName: r }) {
|
|
4983
4983
|
const { emblaRef: a } = zt();
|
|
4984
4984
|
return /* @__PURE__ */ n("div", { ref: a, className: p("overflow-hidden", t), children: /* @__PURE__ */ n("div", { className: "flex", children: e.map((o, i) => /* @__PURE__ */ n(
|
|
4985
4985
|
"div",
|
|
@@ -4991,7 +4991,7 @@ function Ho({ items: e, className: t, slideClassName: r }) {
|
|
|
4991
4991
|
i
|
|
4992
4992
|
)) }) });
|
|
4993
4993
|
}
|
|
4994
|
-
function
|
|
4994
|
+
function Uo({
|
|
4995
4995
|
items: e,
|
|
4996
4996
|
className: t,
|
|
4997
4997
|
titleClassName: r,
|
|
@@ -5003,7 +5003,7 @@ function Ko({
|
|
|
5003
5003
|
i.text && /* @__PURE__ */ n("div", { className: p(a), children: i.text })
|
|
5004
5004
|
] });
|
|
5005
5005
|
}
|
|
5006
|
-
function
|
|
5006
|
+
function $o({
|
|
5007
5007
|
item: e,
|
|
5008
5008
|
className: t,
|
|
5009
5009
|
titleClassName: r,
|
|
@@ -5014,7 +5014,7 @@ function Uo({
|
|
|
5014
5014
|
e.text && /* @__PURE__ */ n("div", { className: p(a), children: e.text })
|
|
5015
5015
|
] });
|
|
5016
5016
|
}
|
|
5017
|
-
const
|
|
5017
|
+
const Dn = me(
|
|
5018
5018
|
"flex transition-opacity",
|
|
5019
5019
|
{
|
|
5020
5020
|
variants: {
|
|
@@ -5047,7 +5047,7 @@ const An = me(
|
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
5049
|
);
|
|
5050
|
-
function
|
|
5050
|
+
function Yo({
|
|
5051
5051
|
prevButton: e,
|
|
5052
5052
|
nextButton: t,
|
|
5053
5053
|
className: r,
|
|
@@ -5086,7 +5086,7 @@ function $o({
|
|
|
5086
5086
|
"div",
|
|
5087
5087
|
{
|
|
5088
5088
|
className: p(
|
|
5089
|
-
|
|
5089
|
+
Dn({ position: a, align: o }),
|
|
5090
5090
|
i && "opacity-0 group-hover:opacity-100",
|
|
5091
5091
|
r
|
|
5092
5092
|
),
|
|
@@ -5097,7 +5097,7 @@ function $o({
|
|
|
5097
5097
|
}
|
|
5098
5098
|
);
|
|
5099
5099
|
}
|
|
5100
|
-
function
|
|
5100
|
+
function Zo({
|
|
5101
5101
|
onPrev: e,
|
|
5102
5102
|
onNext: t,
|
|
5103
5103
|
canScrollPrev: r,
|
|
@@ -5139,7 +5139,7 @@ function Yo({
|
|
|
5139
5139
|
"div",
|
|
5140
5140
|
{
|
|
5141
5141
|
className: p(
|
|
5142
|
-
|
|
5142
|
+
Dn({ position: l, align: c }),
|
|
5143
5143
|
f && "opacity-0 group-hover:opacity-100",
|
|
5144
5144
|
s
|
|
5145
5145
|
),
|
|
@@ -5150,7 +5150,7 @@ function Yo({
|
|
|
5150
5150
|
}
|
|
5151
5151
|
);
|
|
5152
5152
|
}
|
|
5153
|
-
const
|
|
5153
|
+
const Jo = me(
|
|
5154
5154
|
"flex gap-2 transition-all",
|
|
5155
5155
|
{
|
|
5156
5156
|
variants: {
|
|
@@ -5184,7 +5184,7 @@ const Zo = me(
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
);
|
|
5187
|
-
function
|
|
5187
|
+
function Fn({
|
|
5188
5188
|
active: e,
|
|
5189
5189
|
count: t,
|
|
5190
5190
|
onChange: r,
|
|
@@ -5199,7 +5199,7 @@ function Dn({
|
|
|
5199
5199
|
"div",
|
|
5200
5200
|
{
|
|
5201
5201
|
className: p(
|
|
5202
|
-
|
|
5202
|
+
Jo({ position: o, align: i }),
|
|
5203
5203
|
s
|
|
5204
5204
|
),
|
|
5205
5205
|
role: "tablist",
|
|
@@ -5226,10 +5226,10 @@ function Dn({
|
|
|
5226
5226
|
}
|
|
5227
5227
|
);
|
|
5228
5228
|
}
|
|
5229
|
-
function
|
|
5229
|
+
function Qo({ className: e, count: t }) {
|
|
5230
5230
|
const { active: r, onChange: a, indicatorOptions: o } = zt(), { show: i, position: s, align: l, className: c, activeClassName: f, inactiveClassName: d } = o;
|
|
5231
5231
|
return /* @__PURE__ */ n(
|
|
5232
|
-
|
|
5232
|
+
Fn,
|
|
5233
5233
|
{
|
|
5234
5234
|
active: r,
|
|
5235
5235
|
count: t || 0,
|
|
@@ -5244,16 +5244,16 @@ function Jo({ className: e, count: t }) {
|
|
|
5244
5244
|
);
|
|
5245
5245
|
}
|
|
5246
5246
|
const Nt = {
|
|
5247
|
-
Root:
|
|
5248
|
-
Items:
|
|
5249
|
-
Dots:
|
|
5250
|
-
DotsView:
|
|
5247
|
+
Root: Ho,
|
|
5248
|
+
Items: Ko,
|
|
5249
|
+
Dots: Qo,
|
|
5250
|
+
DotsView: Fn,
|
|
5251
5251
|
// Экспортируем view-компонент для использования вне контекста
|
|
5252
|
-
Content:
|
|
5253
|
-
ContentView:
|
|
5254
|
-
Buttons:
|
|
5252
|
+
Content: Uo,
|
|
5253
|
+
ContentView: $o,
|
|
5254
|
+
Buttons: Yo,
|
|
5255
5255
|
// Добавляем компонент кнопок
|
|
5256
|
-
ButtonsView:
|
|
5256
|
+
ButtonsView: Zo
|
|
5257
5257
|
// Экспортируем view-компонент кнопок для использования вне контекста
|
|
5258
5258
|
};
|
|
5259
5259
|
function Ml(x) {
|
|
@@ -5314,7 +5314,7 @@ function El({
|
|
|
5314
5314
|
renderControls: a,
|
|
5315
5315
|
className: o
|
|
5316
5316
|
}) {
|
|
5317
|
-
const i =
|
|
5317
|
+
const i = Rn(t);
|
|
5318
5318
|
return /* @__PURE__ */ I("div", { className: p("relative w-full", o), children: [
|
|
5319
5319
|
r(i, e),
|
|
5320
5320
|
a && a(i, e)
|
|
@@ -5333,7 +5333,7 @@ function Tt(i) {
|
|
|
5333
5333
|
"locale"
|
|
5334
5334
|
]);
|
|
5335
5335
|
return /* @__PURE__ */ n(
|
|
5336
|
-
|
|
5336
|
+
na,
|
|
5337
5337
|
w({
|
|
5338
5338
|
showOutsideDays: r,
|
|
5339
5339
|
className: p("p-0 md:p-[10px] md:pb-0", e),
|
|
@@ -5344,7 +5344,7 @@ function Tt(i) {
|
|
|
5344
5344
|
caption_label: "text-[14px] font-graphik",
|
|
5345
5345
|
nav: "flex items-center gap-1",
|
|
5346
5346
|
nav_button: p(
|
|
5347
|
-
|
|
5347
|
+
Xr({ variant: "default", iconOnly: !0 }),
|
|
5348
5348
|
"size-8 md:size-6"
|
|
5349
5349
|
),
|
|
5350
5350
|
nav_button_previous: "absolute left-1",
|
|
@@ -5413,7 +5413,7 @@ function Tt(i) {
|
|
|
5413
5413
|
}, o)
|
|
5414
5414
|
);
|
|
5415
5415
|
}
|
|
5416
|
-
const
|
|
5416
|
+
const Xo = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url).href, qo = new URL("../assets/document-sign-DtWnrhUb.webp", import.meta.url).href, ei = new URL("../assets/documents-refresh-Ct8s1Pc3.webp", import.meta.url).href, ti = new URL("../assets/status-error-CVSJeY0m.webp", import.meta.url).href, ri = new URL("../assets/status-success-CQUzL9Lb.webp", import.meta.url).href, ni = new URL("../assets/status-warning-qsHG0-rO.webp", import.meta.url).href, ai = new URL("../assets/user-add-BchFss_X.webp", import.meta.url).href, oi = new URL("../assets/user-approved-BKiSeYH5.webp", import.meta.url).href, ii = new URL("../assets/user-question-BrqYjUap.webp", import.meta.url).href, si = new URL("../assets/wallet-B1cH4oVg.webp", import.meta.url).href, ur = me([
|
|
5417
5417
|
"transition-shadow duration-200"
|
|
5418
5418
|
], {
|
|
5419
5419
|
variants: {
|
|
@@ -5445,7 +5445,7 @@ const Qo = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url)
|
|
|
5445
5445
|
return /* @__PURE__ */ n(le.Trigger, F(w({}, t), { asChild: !0, ref: r, className: p(e) }));
|
|
5446
5446
|
});
|
|
5447
5447
|
Ze.displayName = "Trigger";
|
|
5448
|
-
const
|
|
5448
|
+
const li = me(
|
|
5449
5449
|
"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 bg-[rgba(37,29,53,0.48)]"
|
|
5450
5450
|
), Je = v.forwardRef((o, a) => {
|
|
5451
5451
|
var i = o, { className: e, style: t } = i, r = L(i, ["className", "style"]);
|
|
@@ -5454,12 +5454,12 @@ const si = me(
|
|
|
5454
5454
|
F(w({}, r), {
|
|
5455
5455
|
ref: a,
|
|
5456
5456
|
style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : F(w({}, t), { zIndex: 50 }),
|
|
5457
|
-
className: p(
|
|
5457
|
+
className: p(li(), e)
|
|
5458
5458
|
})
|
|
5459
5459
|
);
|
|
5460
5460
|
});
|
|
5461
5461
|
Je.displayName = "Overlay";
|
|
5462
|
-
const
|
|
5462
|
+
const di = me(
|
|
5463
5463
|
[
|
|
5464
5464
|
"flex flex-col",
|
|
5465
5465
|
// Анимации и состояния
|
|
@@ -5547,8 +5547,8 @@ const li = me(
|
|
|
5547
5547
|
i ? y.preventDefault() : l == null || l(y);
|
|
5548
5548
|
},
|
|
5549
5549
|
className: p(
|
|
5550
|
-
|
|
5551
|
-
|
|
5550
|
+
di({ width: r, overflow: a, padding: d }),
|
|
5551
|
+
ur({ all: !0 }),
|
|
5552
5552
|
e
|
|
5553
5553
|
),
|
|
5554
5554
|
children: t
|
|
@@ -5574,7 +5574,7 @@ const gt = v.forwardRef(
|
|
|
5574
5574
|
}
|
|
5575
5575
|
);
|
|
5576
5576
|
gt.displayName = "Content";
|
|
5577
|
-
const
|
|
5577
|
+
const fr = v.forwardRef((i, o) => {
|
|
5578
5578
|
var s = i, { className: e, children: t, dataTestId: r = "title" } = s, a = L(s, ["className", "children", "dataTestId"]);
|
|
5579
5579
|
return /* @__PURE__ */ n(le.Title, { asChild: !0, children: /* @__PURE__ */ n(
|
|
5580
5580
|
O,
|
|
@@ -5589,8 +5589,8 @@ const ur = v.forwardRef((i, o) => {
|
|
|
5589
5589
|
})
|
|
5590
5590
|
) });
|
|
5591
5591
|
});
|
|
5592
|
-
|
|
5593
|
-
const
|
|
5592
|
+
fr.displayName = "Title";
|
|
5593
|
+
const mr = v.forwardRef(
|
|
5594
5594
|
(i, o) => {
|
|
5595
5595
|
var s = i, { className: e, shadow: t = "none", dataTestId: r = "dialog-footer" } = s, a = L(s, ["className", "shadow", "dataTestId"]);
|
|
5596
5596
|
return /* @__PURE__ */ n(
|
|
@@ -5601,18 +5601,18 @@ const fr = v.forwardRef(
|
|
|
5601
5601
|
className: p(
|
|
5602
5602
|
"-mx-4 px-4 md:-mx-6 md:px-6",
|
|
5603
5603
|
"bottom-0 z-[1] flex pt-4",
|
|
5604
|
-
|
|
5604
|
+
ur({ [t]: !0 }),
|
|
5605
5605
|
e
|
|
5606
5606
|
)
|
|
5607
5607
|
})
|
|
5608
5608
|
);
|
|
5609
5609
|
}
|
|
5610
5610
|
);
|
|
5611
|
-
|
|
5611
|
+
mr.displayName = "Footer";
|
|
5612
5612
|
const Bt = v.forwardRef((o, a) => {
|
|
5613
5613
|
var i = o, { className: e, dataTestId: t = "close-button" } = i, r = L(i, ["className", "dataTestId"]);
|
|
5614
5614
|
return /* @__PURE__ */ n(le.Close, { asChild: !0, children: /* @__PURE__ */ n(
|
|
5615
|
-
|
|
5615
|
+
Q,
|
|
5616
5616
|
F(w({}, r), {
|
|
5617
5617
|
ref: a,
|
|
5618
5618
|
"data-testid": t,
|
|
@@ -5631,10 +5631,10 @@ const Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5631
5631
|
Container: Qe,
|
|
5632
5632
|
Content: gt,
|
|
5633
5633
|
Dialog: pt,
|
|
5634
|
-
Footer:
|
|
5634
|
+
Footer: mr,
|
|
5635
5635
|
Overlay: Je,
|
|
5636
5636
|
Portal: ht,
|
|
5637
|
-
Title:
|
|
5637
|
+
Title: fr,
|
|
5638
5638
|
Trigger: Ze
|
|
5639
5639
|
}, Symbol.toStringTag, { value: "Module" })), Ot = v.createContext(null);
|
|
5640
5640
|
function Al() {
|
|
@@ -5645,7 +5645,7 @@ function Al() {
|
|
|
5645
5645
|
);
|
|
5646
5646
|
return e;
|
|
5647
5647
|
}
|
|
5648
|
-
function
|
|
5648
|
+
function ci(e) {
|
|
5649
5649
|
var M;
|
|
5650
5650
|
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, x] = v.useState(!1), [b, m] = v.useState(e.width), y = v.useContext(Ot), g = (M = y == null ? void 0 : y.nextBaseZIndex) != null ? M : e.baseZIndex, h = g + 1, C = g + 2, N = g + 3, T = v.useMemo(() => !l && i ? "top" : "none", [l, i]), E = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
|
|
5651
5651
|
return v.useEffect(() => {
|
|
@@ -5688,18 +5688,18 @@ function di(e) {
|
|
|
5688
5688
|
nextBaseZIndex: N
|
|
5689
5689
|
};
|
|
5690
5690
|
}
|
|
5691
|
-
const
|
|
5692
|
-
"document-approved":
|
|
5693
|
-
"document-sign":
|
|
5694
|
-
"documents-refresh":
|
|
5695
|
-
"status-error":
|
|
5696
|
-
"status-success":
|
|
5697
|
-
"status-warning":
|
|
5698
|
-
"user-add":
|
|
5699
|
-
"user-approved":
|
|
5700
|
-
"user-question":
|
|
5701
|
-
wallet:
|
|
5702
|
-
},
|
|
5691
|
+
const ui = {
|
|
5692
|
+
"document-approved": Xo,
|
|
5693
|
+
"document-sign": qo,
|
|
5694
|
+
"documents-refresh": ei,
|
|
5695
|
+
"status-error": ti,
|
|
5696
|
+
"status-success": ri,
|
|
5697
|
+
"status-warning": ni,
|
|
5698
|
+
"user-add": ai,
|
|
5699
|
+
"user-approved": oi,
|
|
5700
|
+
"user-question": ii,
|
|
5701
|
+
wallet: si
|
|
5702
|
+
}, Ln = v.forwardRef(
|
|
5703
5703
|
(o, a) => {
|
|
5704
5704
|
var i = o, { className: e, shadow: t = "none" } = i, r = L(i, ["className", "shadow"]);
|
|
5705
5705
|
return /* @__PURE__ */ n(
|
|
@@ -5708,29 +5708,29 @@ const ci = {
|
|
|
5708
5708
|
ref: a,
|
|
5709
5709
|
className: p(
|
|
5710
5710
|
"-mx-4 flex items-start gap-4 px-4 pb-4 md:-mx-6 md:px-6",
|
|
5711
|
-
|
|
5711
|
+
ur({ [t]: !0 }),
|
|
5712
5712
|
e
|
|
5713
5713
|
)
|
|
5714
5714
|
})
|
|
5715
5715
|
);
|
|
5716
5716
|
}
|
|
5717
|
-
),
|
|
5718
|
-
function
|
|
5719
|
-
const e = v.useContext(
|
|
5717
|
+
), Pn = v.createContext(null);
|
|
5718
|
+
function pr() {
|
|
5719
|
+
const e = v.useContext(Pn);
|
|
5720
5720
|
if (!e)
|
|
5721
5721
|
throw new Error("useTeleporters должен использоваться внутри DialogBase");
|
|
5722
5722
|
return e;
|
|
5723
5723
|
}
|
|
5724
|
-
function ui(e) {
|
|
5725
|
-
const { FooterTeleporter: t } = mr();
|
|
5726
|
-
return /* @__PURE__ */ n(t.Source, w({}, e));
|
|
5727
|
-
}
|
|
5728
5724
|
function fi(e) {
|
|
5729
|
-
const {
|
|
5725
|
+
const { FooterTeleporter: t } = pr();
|
|
5730
5726
|
return /* @__PURE__ */ n(t.Source, w({}, e));
|
|
5731
5727
|
}
|
|
5732
5728
|
function mi(e) {
|
|
5733
|
-
const {
|
|
5729
|
+
const { TitleTeleporter: t } = pr();
|
|
5730
|
+
return /* @__PURE__ */ n(t.Source, w({}, e));
|
|
5731
|
+
}
|
|
5732
|
+
function pi(e) {
|
|
5733
|
+
const { ContentTeleporter: t } = pr(), r = v.useContext(Ot), a = r == null ? void 0 : r.statusImage;
|
|
5734
5734
|
return a ? /* @__PURE__ */ I(t.Source, { children: [
|
|
5735
5735
|
/* @__PURE__ */ n(
|
|
5736
5736
|
se.Close,
|
|
@@ -5743,7 +5743,7 @@ function mi(e) {
|
|
|
5743
5743
|
/* @__PURE__ */ n(
|
|
5744
5744
|
"img",
|
|
5745
5745
|
{
|
|
5746
|
-
src:
|
|
5746
|
+
src: ui[a],
|
|
5747
5747
|
alt: a,
|
|
5748
5748
|
className: "w-full h-50 rounded-t-4xl"
|
|
5749
5749
|
}
|
|
@@ -5779,7 +5779,7 @@ function se(b) {
|
|
|
5779
5779
|
"statusImage",
|
|
5780
5780
|
"dataTestId"
|
|
5781
5781
|
]);
|
|
5782
|
-
const y =
|
|
5782
|
+
const y = ci({
|
|
5783
5783
|
isVisibleClose: a,
|
|
5784
5784
|
width: o,
|
|
5785
5785
|
hideFooter: c,
|
|
@@ -5793,7 +5793,7 @@ function se(b) {
|
|
|
5793
5793
|
}),
|
|
5794
5794
|
[]
|
|
5795
5795
|
), h = g.TitleTeleporter.useTargetRef(), C = g.FooterTeleporter.useTargetRef(), N = g.ContentTeleporter.useTargetRef();
|
|
5796
|
-
return /* @__PURE__ */ n(pt, F(w({}, x), { children: /* @__PURE__ */ n(
|
|
5796
|
+
return /* @__PURE__ */ n(pt, F(w({}, x), { children: /* @__PURE__ */ n(Pn.Provider, { value: g, children: /* @__PURE__ */ I(Ot.Provider, { value: y, children: [
|
|
5797
5797
|
r && /* @__PURE__ */ n(Ze, { children: r }),
|
|
5798
5798
|
/* @__PURE__ */ I(ht, { children: [
|
|
5799
5799
|
i && /* @__PURE__ */ n(
|
|
@@ -5814,7 +5814,7 @@ function se(b) {
|
|
|
5814
5814
|
padding: d ? "none" : "md",
|
|
5815
5815
|
children: [
|
|
5816
5816
|
/* @__PURE__ */ I(
|
|
5817
|
-
|
|
5817
|
+
Ln,
|
|
5818
5818
|
{
|
|
5819
5819
|
shadow: y.shadowHeader,
|
|
5820
5820
|
className: p(
|
|
@@ -5823,7 +5823,7 @@ function se(b) {
|
|
|
5823
5823
|
),
|
|
5824
5824
|
children: [
|
|
5825
5825
|
!y.isHideTitle && /* @__PURE__ */ n(
|
|
5826
|
-
|
|
5826
|
+
fr,
|
|
5827
5827
|
{
|
|
5828
5828
|
ref: h,
|
|
5829
5829
|
className: p(e == null ? void 0 : e.title)
|
|
@@ -5848,7 +5848,7 @@ function se(b) {
|
|
|
5848
5848
|
}
|
|
5849
5849
|
),
|
|
5850
5850
|
!y.isHideFooter && /* @__PURE__ */ n(
|
|
5851
|
-
|
|
5851
|
+
mr,
|
|
5852
5852
|
{
|
|
5853
5853
|
shadow: y.shadowFooter,
|
|
5854
5854
|
ref: C,
|
|
@@ -5868,14 +5868,14 @@ function se(b) {
|
|
|
5868
5868
|
se.displayName = "DialogBase";
|
|
5869
5869
|
se.Trigger = Ze;
|
|
5870
5870
|
se.Close = Bt;
|
|
5871
|
-
se.Footer =
|
|
5872
|
-
se.Content =
|
|
5873
|
-
se.Title =
|
|
5871
|
+
se.Footer = fi;
|
|
5872
|
+
se.Content = pi;
|
|
5873
|
+
se.Title = mi;
|
|
5874
5874
|
se.Overlay = Je;
|
|
5875
5875
|
se.Portal = ht;
|
|
5876
5876
|
se.Dialog = pt;
|
|
5877
5877
|
se.Container = Qe;
|
|
5878
|
-
se.Header =
|
|
5878
|
+
se.Header = Ln;
|
|
5879
5879
|
function _t() {
|
|
5880
5880
|
return window.innerWidth < 768 ? "mobile" : "desktop";
|
|
5881
5881
|
}
|
|
@@ -5933,7 +5933,7 @@ function Dl({
|
|
|
5933
5933
|
width: "md",
|
|
5934
5934
|
hideFooter: !f,
|
|
5935
5935
|
trigger: /* @__PURE__ */ n(
|
|
5936
|
-
|
|
5936
|
+
Q,
|
|
5937
5937
|
{
|
|
5938
5938
|
variant: "dashed",
|
|
5939
5939
|
disabled: r,
|
|
@@ -6014,7 +6014,7 @@ function Dl({
|
|
|
6014
6014
|
}
|
|
6015
6015
|
) }),
|
|
6016
6016
|
f && /* @__PURE__ */ n(se.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
|
|
6017
|
-
|
|
6017
|
+
Q,
|
|
6018
6018
|
{
|
|
6019
6019
|
onClick: N,
|
|
6020
6020
|
variant: "text",
|
|
@@ -6032,7 +6032,7 @@ function Dl({
|
|
|
6032
6032
|
onOpenChange: r ? void 0 : h,
|
|
6033
6033
|
children: [
|
|
6034
6034
|
/* @__PURE__ */ n(Ye, { asChild: !0, children: /* @__PURE__ */ n(
|
|
6035
|
-
|
|
6035
|
+
Q,
|
|
6036
6036
|
{
|
|
6037
6037
|
variant: "dashed",
|
|
6038
6038
|
disabled: r,
|
|
@@ -6113,7 +6113,7 @@ function Dl({
|
|
|
6113
6113
|
}
|
|
6114
6114
|
),
|
|
6115
6115
|
f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
|
|
6116
|
-
|
|
6116
|
+
Q,
|
|
6117
6117
|
{
|
|
6118
6118
|
onClick: N,
|
|
6119
6119
|
variant: "text",
|
|
@@ -6133,7 +6133,7 @@ function Dl({
|
|
|
6133
6133
|
s && /* @__PURE__ */ n(O, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: s })
|
|
6134
6134
|
] });
|
|
6135
6135
|
}
|
|
6136
|
-
const
|
|
6136
|
+
const hi = {
|
|
6137
6137
|
ru: {
|
|
6138
6138
|
selectPeriod: "Выберите период",
|
|
6139
6139
|
reset: "Сбросить",
|
|
@@ -6154,7 +6154,7 @@ const pi = {
|
|
|
6154
6154
|
reset: "Тоза кардан",
|
|
6155
6155
|
placeholder: "рр.мм.сссс"
|
|
6156
6156
|
}
|
|
6157
|
-
},
|
|
6157
|
+
}, gi = [
|
|
6158
6158
|
"Yanvar",
|
|
6159
6159
|
"Fevral",
|
|
6160
6160
|
"Mart",
|
|
@@ -6167,7 +6167,7 @@ const pi = {
|
|
|
6167
6167
|
"Oktabr",
|
|
6168
6168
|
"Noyabr",
|
|
6169
6169
|
"Dekabr"
|
|
6170
|
-
],
|
|
6170
|
+
], bi = [
|
|
6171
6171
|
"Yan",
|
|
6172
6172
|
"Fev",
|
|
6173
6173
|
"Mar",
|
|
@@ -6180,7 +6180,7 @@ const pi = {
|
|
|
6180
6180
|
"Okt",
|
|
6181
6181
|
"Noy",
|
|
6182
6182
|
"Dek"
|
|
6183
|
-
],
|
|
6183
|
+
], xi = [
|
|
6184
6184
|
"Yakshanba",
|
|
6185
6185
|
"Dushanba",
|
|
6186
6186
|
"Seshanba",
|
|
@@ -6188,7 +6188,7 @@ const pi = {
|
|
|
6188
6188
|
"Payshanba",
|
|
6189
6189
|
"Juma",
|
|
6190
6190
|
"Shanba"
|
|
6191
|
-
],
|
|
6191
|
+
], yi = ["Yak", "Dush", "Sesh", "Chor", "Pay", "Jum", "Shan"], vi = [
|
|
6192
6192
|
"Январ",
|
|
6193
6193
|
"Феврал",
|
|
6194
6194
|
"Март",
|
|
@@ -6201,7 +6201,7 @@ const pi = {
|
|
|
6201
6201
|
"Октябр",
|
|
6202
6202
|
"Ноябр",
|
|
6203
6203
|
"Декабр"
|
|
6204
|
-
],
|
|
6204
|
+
], wi = [
|
|
6205
6205
|
"Янв",
|
|
6206
6206
|
"Фев",
|
|
6207
6207
|
"Мар",
|
|
@@ -6214,7 +6214,7 @@ const pi = {
|
|
|
6214
6214
|
"Окт",
|
|
6215
6215
|
"Ноя",
|
|
6216
6216
|
"Дек"
|
|
6217
|
-
],
|
|
6217
|
+
], Ni = [
|
|
6218
6218
|
"Якшанбе",
|
|
6219
6219
|
"Душанбе",
|
|
6220
6220
|
"Сешанбе",
|
|
@@ -6222,13 +6222,13 @@ const pi = {
|
|
|
6222
6222
|
"Панҷшанбе",
|
|
6223
6223
|
"Ҷумъа",
|
|
6224
6224
|
"Шанбе"
|
|
6225
|
-
],
|
|
6225
|
+
], Ii = ["Якш", "Душ", "Сеш", "Чор", "Пан", "Ҷум", "Шан"], Ci = F(w({}, ve), {
|
|
6226
6226
|
code: "uz",
|
|
6227
6227
|
localize: F(w({}, ve.localize), {
|
|
6228
|
-
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ?
|
|
6228
|
+
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? bi[e] : gi[e],
|
|
6229
6229
|
day: (e, t) => {
|
|
6230
6230
|
const r = (t == null ? void 0 : t.width) || "wide";
|
|
6231
|
-
return r === "short" || r === "abbreviated" || r === "narrow" ?
|
|
6231
|
+
return r === "short" || r === "abbreviated" || r === "narrow" ? yi[e] : xi[e];
|
|
6232
6232
|
},
|
|
6233
6233
|
ordinalNumber: (e) => String(e)
|
|
6234
6234
|
}),
|
|
@@ -6237,13 +6237,13 @@ const pi = {
|
|
|
6237
6237
|
time: () => "HH:mm",
|
|
6238
6238
|
dateTime: () => "dd.MM.yyyy HH:mm"
|
|
6239
6239
|
})
|
|
6240
|
-
}),
|
|
6240
|
+
}), ki = F(w({}, ve), {
|
|
6241
6241
|
code: "tg",
|
|
6242
6242
|
localize: F(w({}, ve.localize), {
|
|
6243
|
-
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ?
|
|
6243
|
+
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? wi[e] : vi[e],
|
|
6244
6244
|
day: (e, t) => {
|
|
6245
6245
|
const r = (t == null ? void 0 : t.width) || "wide";
|
|
6246
|
-
return r === "short" || r === "abbreviated" || r === "narrow" ?
|
|
6246
|
+
return r === "short" || r === "abbreviated" || r === "narrow" ? Ii[e] : Ni[e];
|
|
6247
6247
|
},
|
|
6248
6248
|
ordinalNumber: (e) => String(e)
|
|
6249
6249
|
}),
|
|
@@ -6253,14 +6253,14 @@ const pi = {
|
|
|
6253
6253
|
dateTime: () => "dd.MM.yyyy HH:mm"
|
|
6254
6254
|
})
|
|
6255
6255
|
});
|
|
6256
|
-
function
|
|
6256
|
+
function Si(e) {
|
|
6257
6257
|
switch (e) {
|
|
6258
6258
|
case "en":
|
|
6259
|
-
return
|
|
6259
|
+
return ra;
|
|
6260
6260
|
case "uz":
|
|
6261
|
-
return Ii;
|
|
6262
|
-
case "tg":
|
|
6263
6261
|
return Ci;
|
|
6262
|
+
case "tg":
|
|
6263
|
+
return ki;
|
|
6264
6264
|
case "ru":
|
|
6265
6265
|
default:
|
|
6266
6266
|
return ve;
|
|
@@ -6298,26 +6298,26 @@ function Fl(y) {
|
|
|
6298
6298
|
"disabledDays",
|
|
6299
6299
|
"data-testid"
|
|
6300
6300
|
]);
|
|
6301
|
-
const [h, C] = v.useState(t), [N, T] = v.useState(!1), E = _t(), M =
|
|
6301
|
+
const [h, C] = v.useState(t), [N, T] = v.useState(!1), E = _t(), M = hi[r], R = Si(r), k = {
|
|
6302
6302
|
from: (o == null ? void 0 : o.from) || M.placeholder,
|
|
6303
6303
|
to: (o == null ? void 0 : o.to) || M.placeholder
|
|
6304
6304
|
}, D = v.useMemo(() => {
|
|
6305
|
-
const
|
|
6305
|
+
const U = (oe) => typeof oe == "string", B = (oe) => typeof oe == "object" && oe !== null;
|
|
6306
6306
|
return {
|
|
6307
|
-
hasAnyError: () => i ?
|
|
6308
|
-
hasFromError: () =>
|
|
6309
|
-
hasToError: () =>
|
|
6310
|
-
getErrorText: () =>
|
|
6307
|
+
hasAnyError: () => i ? U(i) ? !0 : !!(i.from || i.to) : !1,
|
|
6308
|
+
hasFromError: () => U(i) ? !0 : B(i) && !!i.from,
|
|
6309
|
+
hasToError: () => U(i) ? !0 : B(i) && !!i.to,
|
|
6310
|
+
getErrorText: () => U(i) ? i : B(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
|
|
6311
6311
|
};
|
|
6312
|
-
}, [i]), { hasAnyError: z, hasFromError:
|
|
6312
|
+
}, [i]), { hasAnyError: z, hasFromError: G, hasToError: j, getErrorText: P } = D;
|
|
6313
6313
|
v.useEffect(() => {
|
|
6314
6314
|
C(t);
|
|
6315
6315
|
}, [t]);
|
|
6316
|
-
const
|
|
6317
|
-
C(
|
|
6318
|
-
},
|
|
6316
|
+
const W = (U) => {
|
|
6317
|
+
C(U), a == null || a(U), U != null && U.from && (U != null && U.to) && E === "mobile" && T(!1);
|
|
6318
|
+
}, _ = () => {
|
|
6319
6319
|
C(void 0), a == null || a(void 0), u == null || u();
|
|
6320
|
-
},
|
|
6320
|
+
}, J = () => {
|
|
6321
6321
|
switch (c) {
|
|
6322
6322
|
case "md":
|
|
6323
6323
|
return "rounded-lg";
|
|
@@ -6347,7 +6347,7 @@ function Fl(y) {
|
|
|
6347
6347
|
onOpenChange: f ? void 0 : T,
|
|
6348
6348
|
width: "md",
|
|
6349
6349
|
trigger: /* @__PURE__ */ n(
|
|
6350
|
-
|
|
6350
|
+
Q,
|
|
6351
6351
|
{
|
|
6352
6352
|
variant: "dashed",
|
|
6353
6353
|
disabled: f,
|
|
@@ -6355,7 +6355,7 @@ function Fl(y) {
|
|
|
6355
6355
|
iconPosition: "end",
|
|
6356
6356
|
className: p(
|
|
6357
6357
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6358
|
-
|
|
6358
|
+
J(),
|
|
6359
6359
|
c === "lg" ? "px-3" : "px-2.5",
|
|
6360
6360
|
z() ? "hover:text-destructive" : "",
|
|
6361
6361
|
{
|
|
@@ -6384,7 +6384,7 @@ function Fl(y) {
|
|
|
6384
6384
|
{
|
|
6385
6385
|
className: p(
|
|
6386
6386
|
"flex-1 text-left",
|
|
6387
|
-
|
|
6387
|
+
G() && "text-destructive"
|
|
6388
6388
|
),
|
|
6389
6389
|
children: h != null && h.from ? Se(h.from, "dd.MM.yyyy", {
|
|
6390
6390
|
locale: R
|
|
@@ -6447,16 +6447,16 @@ function Fl(y) {
|
|
|
6447
6447
|
defaultMonth: h == null ? void 0 : h.from,
|
|
6448
6448
|
selected: h,
|
|
6449
6449
|
className: "mt-3",
|
|
6450
|
-
onSelect:
|
|
6450
|
+
onSelect: W,
|
|
6451
6451
|
numberOfMonths: 1,
|
|
6452
6452
|
locale: R,
|
|
6453
6453
|
disabled: x
|
|
6454
6454
|
}
|
|
6455
6455
|
) }),
|
|
6456
6456
|
d && /* @__PURE__ */ n(se.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[44px] w-full items-center justify-center", children: /* @__PURE__ */ n(
|
|
6457
|
-
|
|
6457
|
+
Q,
|
|
6458
6458
|
{
|
|
6459
|
-
onClick:
|
|
6459
|
+
onClick: _,
|
|
6460
6460
|
variant: "text",
|
|
6461
6461
|
className: "w-full",
|
|
6462
6462
|
disabled: !(h != null && h.from) && !(h != null && h.to),
|
|
@@ -6467,7 +6467,7 @@ function Fl(y) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
) : /* @__PURE__ */ I($e, { open: N, onOpenChange: T, children: [
|
|
6469
6469
|
/* @__PURE__ */ n(Ye, { asChild: !0, children: /* @__PURE__ */ n(
|
|
6470
|
-
|
|
6470
|
+
Q,
|
|
6471
6471
|
{
|
|
6472
6472
|
variant: "dashed",
|
|
6473
6473
|
disabled: f,
|
|
@@ -6475,7 +6475,7 @@ function Fl(y) {
|
|
|
6475
6475
|
iconPosition: "end",
|
|
6476
6476
|
className: p(
|
|
6477
6477
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6478
|
-
|
|
6478
|
+
J(),
|
|
6479
6479
|
c === "lg" ? "px-3" : "px-2.5",
|
|
6480
6480
|
z() ? "hover:text-destructive" : "",
|
|
6481
6481
|
{
|
|
@@ -6504,7 +6504,7 @@ function Fl(y) {
|
|
|
6504
6504
|
{
|
|
6505
6505
|
className: p(
|
|
6506
6506
|
"flex-1 text-left",
|
|
6507
|
-
|
|
6507
|
+
G() && "text-destructive",
|
|
6508
6508
|
f && "text-muted-foreground"
|
|
6509
6509
|
),
|
|
6510
6510
|
children: h != null && h.from ? Se(h.from, "dd.MM.yyyy", {
|
|
@@ -6570,16 +6570,16 @@ function Fl(y) {
|
|
|
6570
6570
|
mode: "range",
|
|
6571
6571
|
defaultMonth: h == null ? void 0 : h.from,
|
|
6572
6572
|
selected: h,
|
|
6573
|
-
onSelect:
|
|
6573
|
+
onSelect: W,
|
|
6574
6574
|
numberOfMonths: 2,
|
|
6575
6575
|
locale: R,
|
|
6576
6576
|
disabled: x
|
|
6577
6577
|
}
|
|
6578
6578
|
),
|
|
6579
6579
|
d && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
|
|
6580
|
-
|
|
6580
|
+
Q,
|
|
6581
6581
|
{
|
|
6582
|
-
onClick:
|
|
6582
|
+
onClick: _,
|
|
6583
6583
|
variant: "text",
|
|
6584
6584
|
size: "sm",
|
|
6585
6585
|
className: "w-full",
|
|
@@ -6595,10 +6595,10 @@ function Fl(y) {
|
|
|
6595
6595
|
z() && /* @__PURE__ */ n(O, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: P() })
|
|
6596
6596
|
] }));
|
|
6597
6597
|
}
|
|
6598
|
-
function
|
|
6598
|
+
function Ti({ className: e }) {
|
|
6599
6599
|
return /* @__PURE__ */ n("div", { className: p("bg-default-background h-[1px] w-full", e) });
|
|
6600
6600
|
}
|
|
6601
|
-
const
|
|
6601
|
+
const zn = v.forwardRef(
|
|
6602
6602
|
(m, b) => {
|
|
6603
6603
|
var y = m, {
|
|
6604
6604
|
value: e,
|
|
@@ -6627,46 +6627,46 @@ const Pn = v.forwardRef(
|
|
|
6627
6627
|
"onPaste",
|
|
6628
6628
|
"onClear"
|
|
6629
6629
|
]);
|
|
6630
|
-
const [g, h] = ee(() => e == null || e === "" ? "" : String(e)), C =
|
|
6630
|
+
const [g, h] = ee(() => e == null || e === "" ? "" : String(e)), C = $(
|
|
6631
6631
|
(k) => a === "comma" ? k.replace(/\./g, ",") : k.replace(/,/g, "."),
|
|
6632
6632
|
[a]
|
|
6633
|
-
), N =
|
|
6633
|
+
), N = $(
|
|
6634
6634
|
(k) => {
|
|
6635
6635
|
if (k === "" && c)
|
|
6636
6636
|
return "";
|
|
6637
6637
|
let D = k.replace(/[^\d.,\-]/g, "");
|
|
6638
6638
|
if (l ? (D.match(/-/g) || []).length > 1 && (D = D.replace(/-/g, ""), k.startsWith("-") && (D = `-${D}`)) : D = D.replace(/-/g, ""), D = C(D), (D.match(/[.,]/g) || []).length > 1) {
|
|
6639
|
-
const
|
|
6640
|
-
D = D.substring(0,
|
|
6639
|
+
const G = D.search(/[.,]/);
|
|
6640
|
+
D = D.substring(0, G + 1) + D.substring(G + 1).replace(/[.,]/g, "");
|
|
6641
6641
|
}
|
|
6642
6642
|
if (r !== void 0 && r >= 0) {
|
|
6643
|
-
const
|
|
6644
|
-
if (
|
|
6645
|
-
const j = D.substring(0,
|
|
6646
|
-
D = j + D[
|
|
6643
|
+
const G = D.search(/[.,]/);
|
|
6644
|
+
if (G !== -1) {
|
|
6645
|
+
const j = D.substring(0, G), W = D.substring(G + 1).substring(0, r);
|
|
6646
|
+
D = j + D[G] + W;
|
|
6647
6647
|
}
|
|
6648
6648
|
}
|
|
6649
6649
|
return o && (D = o(D)), D;
|
|
6650
6650
|
},
|
|
6651
6651
|
[r, a, l, c, C, o]
|
|
6652
|
-
), T =
|
|
6652
|
+
), T = $(
|
|
6653
6653
|
(k) => !(i !== void 0 && k < i || s !== void 0 && k > s),
|
|
6654
6654
|
[i, s]
|
|
6655
|
-
), E =
|
|
6655
|
+
), E = $(
|
|
6656
6656
|
(k) => {
|
|
6657
6657
|
const D = k.target.value, z = N(D);
|
|
6658
6658
|
if (h(z), z === "") {
|
|
6659
6659
|
t == null || t(c ? "" : 0);
|
|
6660
6660
|
return;
|
|
6661
6661
|
}
|
|
6662
|
-
const
|
|
6662
|
+
const G = a === "comma" ? z.replace(/,/g, ".") : z, j = Number.parseFloat(G);
|
|
6663
6663
|
Number.isNaN(j) ? t == null || t(z) : T(j) ? t == null || t(j) : t == null || t(z);
|
|
6664
6664
|
},
|
|
6665
6665
|
[N, T, t, a, c]
|
|
6666
|
-
), M =
|
|
6666
|
+
), M = $(
|
|
6667
6667
|
(k) => {
|
|
6668
|
-
const { key: D, ctrlKey: z, metaKey:
|
|
6669
|
-
if (z ||
|
|
6668
|
+
const { key: D, ctrlKey: z, metaKey: G } = k;
|
|
6669
|
+
if (z || G || [
|
|
6670
6670
|
"Backspace",
|
|
6671
6671
|
"Delete",
|
|
6672
6672
|
"Tab",
|
|
@@ -6692,8 +6692,8 @@ const Pn = v.forwardRef(
|
|
|
6692
6692
|
return;
|
|
6693
6693
|
}
|
|
6694
6694
|
k.preventDefault();
|
|
6695
|
-
const j = k.currentTarget, P = j.selectionStart || 0,
|
|
6696
|
-
h(
|
|
6695
|
+
const j = k.currentTarget, P = j.selectionStart || 0, W = j.value.substring(0, P) + (a === "dot" ? "." : ",") + j.value.substring(P), _ = N(W);
|
|
6696
|
+
h(_), t == null || t(_);
|
|
6697
6697
|
return;
|
|
6698
6698
|
}
|
|
6699
6699
|
if (D === "-" && l) {
|
|
@@ -6706,13 +6706,13 @@ const Pn = v.forwardRef(
|
|
|
6706
6706
|
k.preventDefault();
|
|
6707
6707
|
},
|
|
6708
6708
|
[l, f, a, N, h, t]
|
|
6709
|
-
), R =
|
|
6709
|
+
), R = $(
|
|
6710
6710
|
(k) => {
|
|
6711
6711
|
const D = k.clipboardData.getData("text"), z = N(D);
|
|
6712
6712
|
if (z !== D) {
|
|
6713
6713
|
k.preventDefault();
|
|
6714
|
-
const
|
|
6715
|
-
h(
|
|
6714
|
+
const G = k.currentTarget, j = G.selectionStart || 0, P = G.selectionEnd || 0, W = G.value.substring(0, j) + z + G.value.substring(P), _ = N(W);
|
|
6715
|
+
h(_), t == null || t(_);
|
|
6716
6716
|
}
|
|
6717
6717
|
d == null || d(k);
|
|
6718
6718
|
},
|
|
@@ -6738,8 +6738,8 @@ const Pn = v.forwardRef(
|
|
|
6738
6738
|
);
|
|
6739
6739
|
}
|
|
6740
6740
|
);
|
|
6741
|
-
|
|
6742
|
-
const
|
|
6741
|
+
zn.displayName = "InputNumber";
|
|
6742
|
+
const Bn = v.forwardRef(
|
|
6743
6743
|
(h, g) => {
|
|
6744
6744
|
var C = h, {
|
|
6745
6745
|
className: e,
|
|
@@ -6794,7 +6794,7 @@ const zn = v.forwardRef(
|
|
|
6794
6794
|
if (!u) {
|
|
6795
6795
|
const k = r;
|
|
6796
6796
|
return c ? /* @__PURE__ */ n(
|
|
6797
|
-
|
|
6797
|
+
Qt,
|
|
6798
6798
|
F(w({
|
|
6799
6799
|
ref: g,
|
|
6800
6800
|
className: E,
|
|
@@ -6834,7 +6834,7 @@ const zn = v.forwardRef(
|
|
|
6834
6834
|
x === "right" && M
|
|
6835
6835
|
] });
|
|
6836
6836
|
return c ? /* @__PURE__ */ n(
|
|
6837
|
-
|
|
6837
|
+
Qt,
|
|
6838
6838
|
F(w({
|
|
6839
6839
|
ref: g,
|
|
6840
6840
|
className: p(
|
|
@@ -6876,8 +6876,8 @@ const zn = v.forwardRef(
|
|
|
6876
6876
|
);
|
|
6877
6877
|
}
|
|
6878
6878
|
);
|
|
6879
|
-
|
|
6880
|
-
const
|
|
6879
|
+
Bn.displayName = "Link";
|
|
6880
|
+
const Mi = aa, On = v.forwardRef(
|
|
6881
6881
|
(u, d) => {
|
|
6882
6882
|
var x = u, {
|
|
6883
6883
|
className: e,
|
|
@@ -6902,7 +6902,7 @@ const Ti = na, Bn = v.forwardRef(
|
|
|
6902
6902
|
]);
|
|
6903
6903
|
const b = v.useRef(null);
|
|
6904
6904
|
return v.useImperativeHandle(d, () => b.current), /* @__PURE__ */ n(
|
|
6905
|
-
|
|
6905
|
+
Mi,
|
|
6906
6906
|
F(w({
|
|
6907
6907
|
mask: r,
|
|
6908
6908
|
maskChar: a,
|
|
@@ -6926,12 +6926,12 @@ const Ti = na, Bn = v.forwardRef(
|
|
|
6926
6926
|
);
|
|
6927
6927
|
}
|
|
6928
6928
|
);
|
|
6929
|
-
|
|
6930
|
-
const
|
|
6929
|
+
On.displayName = "MaskedInput";
|
|
6930
|
+
const Ei = {
|
|
6931
6931
|
sm: "md:w-100",
|
|
6932
6932
|
md: "md:w-150",
|
|
6933
6933
|
lg: "md:w-200"
|
|
6934
|
-
}, Ll = le.Root, Pl = le.Trigger,
|
|
6934
|
+
}, Ll = le.Root, Pl = le.Trigger, Ri = le.Portal, zl = le.Close, _n = v.forwardRef((a, r) => {
|
|
6935
6935
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
6936
6936
|
return /* @__PURE__ */ n(
|
|
6937
6937
|
le.Overlay,
|
|
@@ -6944,8 +6944,8 @@ const Mi = {
|
|
|
6944
6944
|
}, t)
|
|
6945
6945
|
);
|
|
6946
6946
|
});
|
|
6947
|
-
|
|
6948
|
-
const
|
|
6947
|
+
_n.displayName = le.Overlay.displayName;
|
|
6948
|
+
const Ai = v.forwardRef(
|
|
6949
6949
|
(u, d) => {
|
|
6950
6950
|
var x = u, {
|
|
6951
6951
|
className: e,
|
|
@@ -6980,8 +6980,8 @@ const Ri = v.forwardRef(
|
|
|
6980
6980
|
const h = b.current;
|
|
6981
6981
|
h && h.removeEventListener("scroll", g);
|
|
6982
6982
|
};
|
|
6983
|
-
}, []), /* @__PURE__ */ I(
|
|
6984
|
-
!s && /* @__PURE__ */ n(
|
|
6983
|
+
}, []), /* @__PURE__ */ I(Ri, { children: [
|
|
6984
|
+
!s && /* @__PURE__ */ n(_n, {}),
|
|
6985
6985
|
/* @__PURE__ */ n(
|
|
6986
6986
|
le.Content,
|
|
6987
6987
|
F(w({
|
|
@@ -6994,7 +6994,7 @@ const Ri = v.forwardRef(
|
|
|
6994
6994
|
"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]",
|
|
6995
6995
|
"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",
|
|
6996
6996
|
"max-h-[100vh] overflow-hidden bg-white p-4 md:max-h-[calc(100vh-40px)] md:p-6",
|
|
6997
|
-
|
|
6997
|
+
Ei[c],
|
|
6998
6998
|
{ "p-0 md:p-0": o },
|
|
6999
6999
|
{ "w-full md:h-full md:max-h-full md:w-full": l },
|
|
7000
7000
|
e
|
|
@@ -7044,7 +7044,7 @@ const Ri = v.forwardRef(
|
|
|
7044
7044
|
),
|
|
7045
7045
|
asChild: !0,
|
|
7046
7046
|
children: /* @__PURE__ */ n(
|
|
7047
|
-
|
|
7047
|
+
Q,
|
|
7048
7048
|
{
|
|
7049
7049
|
variant: "text",
|
|
7050
7050
|
className: "text-secondary",
|
|
@@ -7062,8 +7062,8 @@ const Ri = v.forwardRef(
|
|
|
7062
7062
|
] });
|
|
7063
7063
|
}
|
|
7064
7064
|
);
|
|
7065
|
-
|
|
7066
|
-
function
|
|
7065
|
+
Ai.displayName = le.Content.displayName;
|
|
7066
|
+
function Di(r) {
|
|
7067
7067
|
var a = r, {
|
|
7068
7068
|
className: e
|
|
7069
7069
|
} = a, t = L(a, [
|
|
@@ -7071,8 +7071,8 @@ function Ai(r) {
|
|
|
7071
7071
|
]);
|
|
7072
7072
|
return /* @__PURE__ */ n("div", w({ className: p("flex flex-col space-y-1.5", e) }, t));
|
|
7073
7073
|
}
|
|
7074
|
-
|
|
7075
|
-
const
|
|
7074
|
+
Di.displayName = "DialogHeader";
|
|
7075
|
+
const Fi = v.forwardRef((a, r) => {
|
|
7076
7076
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
7077
7077
|
return /* @__PURE__ */ n(
|
|
7078
7078
|
le.Title,
|
|
@@ -7088,8 +7088,8 @@ const Di = v.forwardRef((a, r) => {
|
|
|
7088
7088
|
}, t)
|
|
7089
7089
|
);
|
|
7090
7090
|
});
|
|
7091
|
-
|
|
7092
|
-
const
|
|
7091
|
+
Fi.displayName = le.Title.displayName;
|
|
7092
|
+
const Li = v.forwardRef((a, r) => {
|
|
7093
7093
|
var o = a, { className: e } = o, t = L(o, ["className"]);
|
|
7094
7094
|
return /* @__PURE__ */ n(
|
|
7095
7095
|
le.Description,
|
|
@@ -7099,9 +7099,9 @@ const Fi = v.forwardRef((a, r) => {
|
|
|
7099
7099
|
}, t)
|
|
7100
7100
|
);
|
|
7101
7101
|
});
|
|
7102
|
-
|
|
7103
|
-
const
|
|
7104
|
-
function
|
|
7102
|
+
Li.displayName = le.Description.displayName;
|
|
7103
|
+
const Pi = 8, zi = 37, Bi = 39, Oi = 46, _i = 32;
|
|
7104
|
+
function Gi(e) {
|
|
7105
7105
|
const d = e, {
|
|
7106
7106
|
focus: t,
|
|
7107
7107
|
isDisabled: r,
|
|
@@ -7149,7 +7149,7 @@ function _i(e) {
|
|
|
7149
7149
|
}, c)
|
|
7150
7150
|
);
|
|
7151
7151
|
}
|
|
7152
|
-
const Bl =
|
|
7152
|
+
const Bl = Xn((e, t) => {
|
|
7153
7153
|
const {
|
|
7154
7154
|
length: r = 6,
|
|
7155
7155
|
onChange: a = () => {
|
|
@@ -7169,11 +7169,11 @@ const Bl = Qn((e, t) => {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
} = e, m = e["data-cy"], y = e["data-testid"], [g, h] = ee(0), [C, N] = ee(
|
|
7171
7171
|
Array.from({ length: r }, () => "")
|
|
7172
|
-
), [T, E] = ee(u ? x : 0), [M, R] = ee(!!u), [k, D] = ee(c), [z,
|
|
7172
|
+
), [T, E] = ee(u ? x : 0), [M, R] = ee(!!u), [k, D] = ee(c), [z, G] = ee(f), j = (K) => {
|
|
7173
7173
|
const Y = Math.max(Math.min(r - 1, K), 0);
|
|
7174
7174
|
h(Y);
|
|
7175
7175
|
};
|
|
7176
|
-
|
|
7176
|
+
Vr(t, () => ({
|
|
7177
7177
|
focusInput: j
|
|
7178
7178
|
})), de(() => {
|
|
7179
7179
|
let K;
|
|
@@ -7183,22 +7183,22 @@ const Bl = Qn((e, t) => {
|
|
|
7183
7183
|
K && clearInterval(K);
|
|
7184
7184
|
};
|
|
7185
7185
|
}, [T, M]), de(() => {
|
|
7186
|
-
D(c),
|
|
7186
|
+
D(c), G(f);
|
|
7187
7187
|
}, [c, f]);
|
|
7188
7188
|
const P = () => {
|
|
7189
7189
|
u && !M && (u(), E(x), R(!0));
|
|
7190
|
-
},
|
|
7190
|
+
}, W = (K) => {
|
|
7191
7191
|
var Ne;
|
|
7192
|
-
k && (D(!1),
|
|
7192
|
+
k && (D(!1), G("")), N(K);
|
|
7193
7193
|
const Y = K.join("");
|
|
7194
7194
|
a(Y), Y.length === r && ((Ne = e.onComplete) == null || Ne.call(e, Y), l && (N(Array.from({ length: r }, () => "")), h(0)));
|
|
7195
|
-
},
|
|
7195
|
+
}, _ = (K) => !Number.isNaN(Number.parseInt(K, 10)) && K.trim().length === 1, J = () => {
|
|
7196
7196
|
j(g + 1);
|
|
7197
|
-
},
|
|
7197
|
+
}, U = () => {
|
|
7198
7198
|
j(g - 1);
|
|
7199
7199
|
}, B = (K) => {
|
|
7200
7200
|
const Y = [...C];
|
|
7201
|
-
Y[g] = K[0] || "",
|
|
7201
|
+
Y[g] = K[0] || "", W(Y);
|
|
7202
7202
|
}, H = (K) => {
|
|
7203
7203
|
if (K.preventDefault(), i || s)
|
|
7204
7204
|
return;
|
|
@@ -7206,27 +7206,27 @@ const Bl = Qn((e, t) => {
|
|
|
7206
7206
|
const Ne = K.clipboardData.getData("text/plain").slice(0, r - g).split(""), Xe = [...C];
|
|
7207
7207
|
for (let Me = 0; Me < r; ++Me)
|
|
7208
7208
|
Me >= g && Ne.length > 0 && (Xe[Me] = Ne.shift(), Y++);
|
|
7209
|
-
h(Y), j(Y),
|
|
7209
|
+
h(Y), j(Y), W(Xe);
|
|
7210
7210
|
}, re = (K) => (Y) => {
|
|
7211
7211
|
if (s)
|
|
7212
7212
|
return;
|
|
7213
7213
|
const { value: Ne } = Y.target;
|
|
7214
7214
|
if (K === 0 && Ne.length === r) {
|
|
7215
|
-
|
|
7215
|
+
W(Ne.split(""));
|
|
7216
7216
|
return;
|
|
7217
7217
|
}
|
|
7218
|
-
|
|
7218
|
+
_(Ne) && B(Ne);
|
|
7219
7219
|
}, ne = (K) => {
|
|
7220
|
-
s || (K.keyCode ===
|
|
7220
|
+
s || (K.keyCode === Pi || K.key === "Backspace" ? (K.preventDefault(), B(""), U()) : K.keyCode === Oi || K.key === "Delete" ? (K.preventDefault(), B("")) : K.keyCode === zi || K.key === "ArrowLeft" ? (K.preventDefault(), U()) : K.keyCode === Bi || K.key === "ArrowRight" ? (K.preventDefault(), J()) : (K.keyCode === _i || K.key === " " || K.key === "Spacebar" || K.key === "Space") && K.preventDefault());
|
|
7221
7221
|
}, be = (K) => {
|
|
7222
7222
|
if (!s) {
|
|
7223
|
-
if (
|
|
7224
|
-
|
|
7223
|
+
if (_(K.currentTarget.value)) {
|
|
7224
|
+
J();
|
|
7225
7225
|
return;
|
|
7226
7226
|
}
|
|
7227
7227
|
if (o) {
|
|
7228
7228
|
const { nativeEvent: Y } = K;
|
|
7229
|
-
Y.data === null && Y.inputType === "deleteContentBackward" && (K.preventDefault(), B(""),
|
|
7229
|
+
Y.data === null && Y.inputType === "deleteContentBackward" && (K.preventDefault(), B(""), U());
|
|
7230
7230
|
}
|
|
7231
7231
|
}
|
|
7232
7232
|
}, oe = (K) => (Y) => {
|
|
@@ -7237,7 +7237,7 @@ const Bl = Qn((e, t) => {
|
|
|
7237
7237
|
return /* @__PURE__ */ I("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
|
|
7238
7238
|
d && /* @__PURE__ */ n(O, { variant: "h5", weight: "medium", children: d }),
|
|
7239
7239
|
/* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((K, Y) => /* @__PURE__ */ n(
|
|
7240
|
-
|
|
7240
|
+
Gi,
|
|
7241
7241
|
{
|
|
7242
7242
|
index: Y,
|
|
7243
7243
|
masked: o,
|
|
@@ -7266,10 +7266,10 @@ const Bl = Qn((e, t) => {
|
|
|
7266
7266
|
" ",
|
|
7267
7267
|
"0:",
|
|
7268
7268
|
T < 10 ? `0${T}` : T
|
|
7269
|
-
] }) : /* @__PURE__ */ n(
|
|
7269
|
+
] }) : /* @__PURE__ */ n(Bn, { onClick: P, children: b.resend }) })
|
|
7270
7270
|
] });
|
|
7271
|
-
}),
|
|
7272
|
-
function
|
|
7271
|
+
}), Pr = (e, t, r) => Math.min(Math.max(e, t), r);
|
|
7272
|
+
function Wi(e, t) {
|
|
7273
7273
|
switch (e.type) {
|
|
7274
7274
|
case "prev":
|
|
7275
7275
|
return "prev-page";
|
|
@@ -7283,7 +7283,7 @@ function Gi(e, t) {
|
|
|
7283
7283
|
return e.page === 1 ? "first-page" : e.page === t ? "last-page" : `page-${e.page}`;
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function Vi(e, t) {
|
|
7287
7287
|
if (t <= 1)
|
|
7288
7288
|
return [{ type: "page", page: 1 }];
|
|
7289
7289
|
const r = 1, a = 1, o = Array.from({ length: r }, (d, u) => u + 1), i = Array.from({ length: r }, (d, u) => t - r + 1 + u), s = Math.max(
|
|
@@ -7315,8 +7315,8 @@ const Ol = ({
|
|
|
7315
7315
|
locale: c
|
|
7316
7316
|
}) => {
|
|
7317
7317
|
var N, T;
|
|
7318
|
-
const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), d =
|
|
7319
|
-
() => [{ type: "prev" }, ...
|
|
7318
|
+
const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), d = Pr(e || 1, 1, f), u = q(
|
|
7319
|
+
() => [{ type: "prev" }, ...Vi(d, f), { type: "next" }],
|
|
7320
7320
|
[d, f]
|
|
7321
7321
|
), [x, b] = ee("");
|
|
7322
7322
|
if (s && f <= 1)
|
|
@@ -7324,7 +7324,7 @@ const Ol = ({
|
|
|
7324
7324
|
const m = (E) => {
|
|
7325
7325
|
if (i)
|
|
7326
7326
|
return;
|
|
7327
|
-
const M =
|
|
7327
|
+
const M = Pr(E, 1, f);
|
|
7328
7328
|
M !== d && a(M, r);
|
|
7329
7329
|
}, y = (E) => {
|
|
7330
7330
|
if (!i)
|
|
@@ -7348,8 +7348,8 @@ const Ol = ({
|
|
|
7348
7348
|
}, h = (N = c == null ? void 0 : c.jump_to) != null ? N : "Перейти на", C = (T = c == null ? void 0 : c.page) != null ? T : "страницу";
|
|
7349
7349
|
return /* @__PURE__ */ I("div", { className: p("flex items-center justify-between gap-3 flex-wrap", o), "data-testid": "paginator", children: [
|
|
7350
7350
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: u.map((E, M) => {
|
|
7351
|
-
const R =
|
|
7352
|
-
|
|
7351
|
+
const R = Wi(E, f), k = E.type === "page" && E.page === d, D = `${E.type}-${E.type === "page" ? E.page : M}`, z = E.type === "prev" || E.type === "next" ? /* @__PURE__ */ n(
|
|
7352
|
+
Q,
|
|
7353
7353
|
{
|
|
7354
7354
|
variant: "text",
|
|
7355
7355
|
size: "md",
|
|
@@ -7361,7 +7361,7 @@ const Ol = ({
|
|
|
7361
7361
|
onClick: () => y(E)
|
|
7362
7362
|
}
|
|
7363
7363
|
) : E.type === "jump-prev" || E.type === "jump-next" ? /* @__PURE__ */ n(
|
|
7364
|
-
|
|
7364
|
+
Q,
|
|
7365
7365
|
{
|
|
7366
7366
|
variant: "text",
|
|
7367
7367
|
size: "md",
|
|
@@ -7372,7 +7372,7 @@ const Ol = ({
|
|
|
7372
7372
|
children: "…"
|
|
7373
7373
|
}
|
|
7374
7374
|
) : /* @__PURE__ */ n(
|
|
7375
|
-
|
|
7375
|
+
Q,
|
|
7376
7376
|
{
|
|
7377
7377
|
variant: "text",
|
|
7378
7378
|
size: "md",
|
|
@@ -7396,7 +7396,7 @@ const Ol = ({
|
|
|
7396
7396
|
l && /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
|
|
7397
7397
|
/* @__PURE__ */ n(O, { variant: "p2", textColor: "secondary", children: h }),
|
|
7398
7398
|
/* @__PURE__ */ n(
|
|
7399
|
-
|
|
7399
|
+
zn,
|
|
7400
7400
|
{
|
|
7401
7401
|
value: x,
|
|
7402
7402
|
onChange: (E) => b(E === "" ? "" : Number(E)),
|
|
@@ -7411,10 +7411,10 @@ const Ol = ({
|
|
|
7411
7411
|
}
|
|
7412
7412
|
),
|
|
7413
7413
|
/* @__PURE__ */ n(O, { variant: "p2", textColor: "secondary", children: C }),
|
|
7414
|
-
/* @__PURE__ */ n(
|
|
7414
|
+
/* @__PURE__ */ n(Q, { variant: "default", onClick: g, disabled: i, children: "OK" })
|
|
7415
7415
|
] })
|
|
7416
7416
|
] });
|
|
7417
|
-
},
|
|
7417
|
+
}, ji = {
|
|
7418
7418
|
ru: {
|
|
7419
7419
|
searchCountry: "Найти страну",
|
|
7420
7420
|
notFound: "Ничего не найдено"
|
|
@@ -7431,9 +7431,9 @@ const Ol = ({
|
|
|
7431
7431
|
searchCountry: "Ҷустуҷӯи кишвар",
|
|
7432
7432
|
notFound: "Ҳеҷ чиз ёфт нашуд"
|
|
7433
7433
|
}
|
|
7434
|
-
},
|
|
7434
|
+
}, Hi = F(w({}, sa), {
|
|
7435
7435
|
BY: "Беларусь"
|
|
7436
|
-
}),
|
|
7436
|
+
}), Ki = {
|
|
7437
7437
|
ext: "иловагӣ",
|
|
7438
7438
|
country: "Кишвари рақами телефон",
|
|
7439
7439
|
phone: "Телефон",
|
|
@@ -7692,7 +7692,7 @@ const Ol = ({
|
|
|
7692
7692
|
ZM: "Замбия",
|
|
7693
7693
|
ZW: "Зимбабве",
|
|
7694
7694
|
ZZ: "Байналмилалӣ"
|
|
7695
|
-
},
|
|
7695
|
+
}, Ui = {
|
|
7696
7696
|
ext: "qo‘shimcha",
|
|
7697
7697
|
country: "Telefon raqami davlati",
|
|
7698
7698
|
phone: "Telefon",
|
|
@@ -7951,7 +7951,7 @@ const Ol = ({
|
|
|
7951
7951
|
ZM: "Zambiya",
|
|
7952
7952
|
ZW: "Zimbabve",
|
|
7953
7953
|
ZZ: "Xalqaro"
|
|
7954
|
-
},
|
|
7954
|
+
}, $i = {
|
|
7955
7955
|
AC: ["+247-####"],
|
|
7956
7956
|
AD: ["+376-###-###"],
|
|
7957
7957
|
AE: ["+\\971-##-###-####", "+\\971-#-###-####"],
|
|
@@ -8208,17 +8208,17 @@ const Ol = ({
|
|
|
8208
8208
|
ZM: ["+260-##-###-####"],
|
|
8209
8209
|
ZW: ["+263-#-######"],
|
|
8210
8210
|
GB: ["+44-##-####-####"]
|
|
8211
|
-
},
|
|
8212
|
-
function
|
|
8211
|
+
}, zr = "+999999999999999";
|
|
8212
|
+
function Br(e) {
|
|
8213
8213
|
return e.replace(/\+/g, "+").replace(/\(/g, "(").replace(/\)/g, ")").replace(/#/g, "9").replace(/-/g, "-");
|
|
8214
8214
|
}
|
|
8215
|
-
function
|
|
8215
|
+
function Jt(e) {
|
|
8216
8216
|
if (!e)
|
|
8217
|
-
return [
|
|
8218
|
-
const r =
|
|
8219
|
-
return console.log("masks", r, Array.from(r).map(
|
|
8217
|
+
return [zr];
|
|
8218
|
+
const r = $i[e];
|
|
8219
|
+
return console.log("masks", r, Array.from(r).map(Br)), r ? Array.from(r).map(Br) : [zr];
|
|
8220
8220
|
}
|
|
8221
|
-
const
|
|
8221
|
+
const Gn = Ce.forwardRef(
|
|
8222
8222
|
(d, f) => {
|
|
8223
8223
|
var u = d, {
|
|
8224
8224
|
className: e,
|
|
@@ -8253,7 +8253,7 @@ const _n = Ce.forwardRef(
|
|
|
8253
8253
|
)) }) }) });
|
|
8254
8254
|
return /* @__PURE__ */ I("div", { className: "relative flex-1", children: [
|
|
8255
8255
|
/* @__PURE__ */ n(
|
|
8256
|
-
|
|
8256
|
+
On,
|
|
8257
8257
|
F(w({
|
|
8258
8258
|
mask: r,
|
|
8259
8259
|
alwaysShowMask: !0,
|
|
@@ -8288,7 +8288,7 @@ const _n = Ce.forwardRef(
|
|
|
8288
8288
|
!l && t && t.length > 1 && /* @__PURE__ */ I(pe, { children: [
|
|
8289
8289
|
x === "mobile" && /* @__PURE__ */ I(pt, { children: [
|
|
8290
8290
|
/* @__PURE__ */ n(Ze, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8291
|
-
|
|
8291
|
+
Q,
|
|
8292
8292
|
{
|
|
8293
8293
|
type: "button",
|
|
8294
8294
|
variant: "text",
|
|
@@ -8312,7 +8312,7 @@ const _n = Ce.forwardRef(
|
|
|
8312
8312
|
] }),
|
|
8313
8313
|
x !== "mobile" && /* @__PURE__ */ I($e, { children: [
|
|
8314
8314
|
/* @__PURE__ */ n(Ye, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8315
|
-
|
|
8315
|
+
Q,
|
|
8316
8316
|
{
|
|
8317
8317
|
type: "button",
|
|
8318
8318
|
variant: "text",
|
|
@@ -8327,12 +8327,12 @@ const _n = Ce.forwardRef(
|
|
|
8327
8327
|
] });
|
|
8328
8328
|
}
|
|
8329
8329
|
);
|
|
8330
|
-
|
|
8331
|
-
function
|
|
8330
|
+
Gn.displayName = "InputComponent";
|
|
8331
|
+
function Yi(e) {
|
|
8332
8332
|
return e || "";
|
|
8333
8333
|
}
|
|
8334
8334
|
const ut = "RU";
|
|
8335
|
-
function
|
|
8335
|
+
function Or(e, t) {
|
|
8336
8336
|
var a, o;
|
|
8337
8337
|
if (!e || e === "+7")
|
|
8338
8338
|
return t != null ? t : ut;
|
|
@@ -8344,7 +8344,7 @@ function Yi(e, t) {
|
|
|
8344
8344
|
return (o = (a = r == null ? void 0 : r.country) != null ? a : t) != null ? o : ut;
|
|
8345
8345
|
}
|
|
8346
8346
|
function Mt({ country: e, countryName: t }) {
|
|
8347
|
-
const r =
|
|
8347
|
+
const r = oa[e];
|
|
8348
8348
|
return /* @__PURE__ */ n(
|
|
8349
8349
|
"span",
|
|
8350
8350
|
{
|
|
@@ -8358,13 +8358,13 @@ function Mt({ country: e, countryName: t }) {
|
|
|
8358
8358
|
}
|
|
8359
8359
|
);
|
|
8360
8360
|
}
|
|
8361
|
-
const
|
|
8361
|
+
const _r = jr(
|
|
8362
8362
|
({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */ I(Ft, { className: "w-auto gap-2 hover:bg-muted transition-colors", onSelect: () => r(e), children: [
|
|
8363
8363
|
/* @__PURE__ */ n(Mt, { country: e, countryName: t }),
|
|
8364
8364
|
/* @__PURE__ */ n("span", { className: "flex-1 text-[14px]", children: t }),
|
|
8365
8365
|
/* @__PURE__ */ n("span", { className: "text-foreground/50", children: `+${Be.getCountryCallingCode(e)}` })
|
|
8366
8366
|
] })
|
|
8367
|
-
), Zi =
|
|
8367
|
+
), Zi = jr(
|
|
8368
8368
|
({
|
|
8369
8369
|
disabled: e,
|
|
8370
8370
|
value: t,
|
|
@@ -8401,7 +8401,7 @@ const Or = Vr(
|
|
|
8401
8401
|
"bg-muted": e
|
|
8402
8402
|
}),
|
|
8403
8403
|
children: /* @__PURE__ */ I(
|
|
8404
|
-
|
|
8404
|
+
Q,
|
|
8405
8405
|
{
|
|
8406
8406
|
type: "button",
|
|
8407
8407
|
variant: "default",
|
|
@@ -8452,7 +8452,7 @@ const Or = Vr(
|
|
|
8452
8452
|
) }),
|
|
8453
8453
|
/* @__PURE__ */ n(dt, { children: /* @__PURE__ */ I(St, { className: "h-60", children: [
|
|
8454
8454
|
y.length > 0 && /* @__PURE__ */ n(ct, { children: y.map(({ value: h, label: C }) => h ? /* @__PURE__ */ n(
|
|
8455
|
-
|
|
8455
|
+
_r,
|
|
8456
8456
|
{
|
|
8457
8457
|
country: h,
|
|
8458
8458
|
countryName: i[h] || C,
|
|
@@ -8474,7 +8474,7 @@ const Or = Vr(
|
|
|
8474
8474
|
"bg-muted": e
|
|
8475
8475
|
}),
|
|
8476
8476
|
children: /* @__PURE__ */ I(
|
|
8477
|
-
|
|
8477
|
+
Q,
|
|
8478
8478
|
{
|
|
8479
8479
|
type: "button",
|
|
8480
8480
|
variant: "default",
|
|
@@ -8532,7 +8532,7 @@ const Or = Vr(
|
|
|
8532
8532
|
onWheel: (h) => h.stopPropagation(),
|
|
8533
8533
|
children: [
|
|
8534
8534
|
y.length > 0 && /* @__PURE__ */ n(ct, { children: y.map(({ value: h, label: C }) => h ? /* @__PURE__ */ n(
|
|
8535
|
-
|
|
8535
|
+
_r,
|
|
8536
8536
|
{
|
|
8537
8537
|
country: h,
|
|
8538
8538
|
countryName: i[h] || C,
|
|
@@ -8579,44 +8579,51 @@ const Or = Vr(
|
|
|
8579
8579
|
"size",
|
|
8580
8580
|
"isLoading"
|
|
8581
8581
|
]);
|
|
8582
|
-
var
|
|
8582
|
+
var G, j;
|
|
8583
8583
|
const [g, h] = Ce.useState(() => ""), [C, N] = Ce.useState([]), [T, E] = Ce.useState(l), M = (() => {
|
|
8584
8584
|
switch (f) {
|
|
8585
8585
|
case "en":
|
|
8586
|
-
return
|
|
8586
|
+
return ia;
|
|
8587
8587
|
case "uz":
|
|
8588
|
-
return
|
|
8588
|
+
return Ui;
|
|
8589
8589
|
case "tg":
|
|
8590
|
-
return
|
|
8590
|
+
return Ki;
|
|
8591
8591
|
case "ru":
|
|
8592
8592
|
default:
|
|
8593
|
-
return
|
|
8593
|
+
return Hi;
|
|
8594
8594
|
}
|
|
8595
|
-
})(), R =
|
|
8595
|
+
})(), R = ji[f];
|
|
8596
8596
|
Ce.useEffect(() => {
|
|
8597
8597
|
if (i && i !== "+7") {
|
|
8598
|
-
const
|
|
8599
|
-
if (!(
|
|
8598
|
+
const _ = Be.parsePhoneNumber(i);
|
|
8599
|
+
if (!(_ != null && _.country) && (i.startsWith("+8") || i.startsWith("8"))) {
|
|
8600
8600
|
t == null || t(`+${i.replace(/\D/g, "").replace("8", "7")}`);
|
|
8601
8601
|
return;
|
|
8602
8602
|
}
|
|
8603
8603
|
}
|
|
8604
|
-
const P =
|
|
8605
|
-
E(P), h(
|
|
8604
|
+
const P = Or(i, l), W = Jt(P);
|
|
8605
|
+
E(P), h(W[0]), N(W);
|
|
8606
8606
|
}, [l, t, i]);
|
|
8607
8607
|
const k = (P) => {
|
|
8608
|
-
const
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8608
|
+
const W = Yi(P), _ = Or(
|
|
8609
|
+
W,
|
|
8610
|
+
T != null ? T : l
|
|
8611
|
+
);
|
|
8612
|
+
if (_ !== T) {
|
|
8613
|
+
const U = Jt(_);
|
|
8614
|
+
E(_), h(U[0]), N(U);
|
|
8615
|
+
}
|
|
8616
|
+
t == null || t(W);
|
|
8617
|
+
const J = Be.isPossiblePhoneNumber(W);
|
|
8618
|
+
c == null || c(J);
|
|
8612
8619
|
}, D = (P) => {
|
|
8613
8620
|
if (!P)
|
|
8614
8621
|
return;
|
|
8615
8622
|
E(P);
|
|
8616
|
-
const
|
|
8617
|
-
h(
|
|
8618
|
-
const
|
|
8619
|
-
t == null || t(
|
|
8623
|
+
const W = Jt(P);
|
|
8624
|
+
h(W[0]), N(W);
|
|
8625
|
+
const _ = `+${Be.getCountryCallingCode(P)}`;
|
|
8626
|
+
t == null || t(_);
|
|
8620
8627
|
}, z = (P) => {
|
|
8621
8628
|
h(P);
|
|
8622
8629
|
};
|
|
@@ -8629,7 +8636,7 @@ const Or = Vr(
|
|
|
8629
8636
|
"data-testid": s,
|
|
8630
8637
|
value: i,
|
|
8631
8638
|
tabIndex: 0,
|
|
8632
|
-
defaultCountry: (
|
|
8639
|
+
defaultCountry: (G = T != null ? T : l) != null ? G : ut,
|
|
8633
8640
|
className: p(
|
|
8634
8641
|
"border-border flex overflow-hidden border transition-colors",
|
|
8635
8642
|
"hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus flex items-center bg-white",
|
|
@@ -8647,7 +8654,7 @@ const Or = Vr(
|
|
|
8647
8654
|
translations: R,
|
|
8648
8655
|
inputSize: d
|
|
8649
8656
|
},
|
|
8650
|
-
inputComponent:
|
|
8657
|
+
inputComponent: Gn,
|
|
8651
8658
|
labels: M,
|
|
8652
8659
|
smartCaret: !1,
|
|
8653
8660
|
onChange: k,
|
|
@@ -8707,9 +8714,9 @@ const Or = Vr(
|
|
|
8707
8714
|
r.title,
|
|
8708
8715
|
r.additional
|
|
8709
8716
|
] })
|
|
8710
|
-
] }, a)) }),
|
|
8711
|
-
|
|
8712
|
-
|
|
8717
|
+
] }, a)) }), Wn = Xi;
|
|
8718
|
+
Wn.Title = Ji;
|
|
8719
|
+
Wn.Additional = Qi;
|
|
8713
8720
|
function qi(a) {
|
|
8714
8721
|
var o = a, {
|
|
8715
8722
|
className: e,
|
|
@@ -8720,7 +8727,7 @@ function qi(a) {
|
|
|
8720
8727
|
]);
|
|
8721
8728
|
const i = t === 100;
|
|
8722
8729
|
return /* @__PURE__ */ n(
|
|
8723
|
-
|
|
8730
|
+
Er.Root,
|
|
8724
8731
|
F(w({
|
|
8725
8732
|
"data-slot": "progress",
|
|
8726
8733
|
className: p(
|
|
@@ -8729,7 +8736,7 @@ function qi(a) {
|
|
|
8729
8736
|
)
|
|
8730
8737
|
}, r), {
|
|
8731
8738
|
children: /* @__PURE__ */ n(
|
|
8732
|
-
|
|
8739
|
+
Er.Indicator,
|
|
8733
8740
|
{
|
|
8734
8741
|
"data-slot": "progress-indicator",
|
|
8735
8742
|
className: p(
|
|
@@ -8885,7 +8892,7 @@ const ns = me(
|
|
|
8885
8892
|
size: "default"
|
|
8886
8893
|
}
|
|
8887
8894
|
}
|
|
8888
|
-
),
|
|
8895
|
+
), Vn = me(
|
|
8889
8896
|
"cursor-pointer gap-0 font-cofo inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-none border-0 disabled:pointer-events-none relative",
|
|
8890
8897
|
{
|
|
8891
8898
|
variants: {
|
|
@@ -8917,7 +8924,7 @@ const ns = me(
|
|
|
8917
8924
|
size: "default"
|
|
8918
8925
|
}
|
|
8919
8926
|
}
|
|
8920
|
-
),
|
|
8927
|
+
), jn = v.forwardRef(
|
|
8921
8928
|
(c, l) => {
|
|
8922
8929
|
var f = c, {
|
|
8923
8930
|
className: e,
|
|
@@ -8943,7 +8950,7 @@ const ns = me(
|
|
|
8943
8950
|
Dt.Item,
|
|
8944
8951
|
F(w({
|
|
8945
8952
|
ref: l,
|
|
8946
|
-
className: p(
|
|
8953
|
+
className: p(Vn({ size: a }), e),
|
|
8947
8954
|
"data-testid": i
|
|
8948
8955
|
}, s), {
|
|
8949
8956
|
children: u
|
|
@@ -8951,7 +8958,7 @@ const ns = me(
|
|
|
8951
8958
|
);
|
|
8952
8959
|
}
|
|
8953
8960
|
);
|
|
8954
|
-
|
|
8961
|
+
jn.displayName = Dt.Item.displayName;
|
|
8955
8962
|
const as = v.forwardRef(
|
|
8956
8963
|
(f, c) => {
|
|
8957
8964
|
var d = f, {
|
|
@@ -8988,7 +8995,7 @@ const as = v.forwardRef(
|
|
|
8988
8995
|
onValueChange: b,
|
|
8989
8996
|
"data-testid": s
|
|
8990
8997
|
}, l), {
|
|
8991
|
-
children: v.Children.map(r, (m) => v.isValidElement(m) && m.type ===
|
|
8998
|
+
children: v.Children.map(r, (m) => v.isValidElement(m) && m.type === jn ? v.cloneElement(m, { size: t }) : m)
|
|
8992
8999
|
})
|
|
8993
9000
|
);
|
|
8994
9001
|
}
|
|
@@ -9038,7 +9045,7 @@ const os = v.forwardRef(
|
|
|
9038
9045
|
F(w({
|
|
9039
9046
|
ref: d,
|
|
9040
9047
|
className: p(
|
|
9041
|
-
|
|
9048
|
+
Vn({
|
|
9042
9049
|
size: t,
|
|
9043
9050
|
variant: y ? "singleActive" : "single"
|
|
9044
9051
|
}),
|
|
@@ -9184,7 +9191,7 @@ const is = me(
|
|
|
9184
9191
|
};
|
|
9185
9192
|
return /* @__PURE__ */ I("div", { className: "flex items-center gap-2.5", children: [
|
|
9186
9193
|
/* @__PURE__ */ n(
|
|
9187
|
-
|
|
9194
|
+
qt.Root,
|
|
9188
9195
|
F(w({
|
|
9189
9196
|
className: p(
|
|
9190
9197
|
is({
|
|
@@ -9205,7 +9212,7 @@ const is = me(
|
|
|
9205
9212
|
onClick: y
|
|
9206
9213
|
}, c), {
|
|
9207
9214
|
children: /* @__PURE__ */ n(
|
|
9208
|
-
|
|
9215
|
+
qt.Thumb,
|
|
9209
9216
|
{
|
|
9210
9217
|
className: p(
|
|
9211
9218
|
ss({ size: t }),
|
|
@@ -9234,15 +9241,15 @@ const is = me(
|
|
|
9234
9241
|
)
|
|
9235
9242
|
] });
|
|
9236
9243
|
});
|
|
9237
|
-
ls.displayName =
|
|
9238
|
-
function
|
|
9244
|
+
ls.displayName = qt.Root.displayName;
|
|
9245
|
+
function hr(e) {
|
|
9239
9246
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
9240
9247
|
}
|
|
9241
9248
|
function ds(e) {
|
|
9242
9249
|
return e === "center" ? "justify-center" : e === "right" ? "justify-end" : "justify-start";
|
|
9243
9250
|
}
|
|
9244
|
-
const
|
|
9245
|
-
function
|
|
9251
|
+
const Gr = new URL("../assets/empty-box-ByMlwLaV.png", import.meta.url).href;
|
|
9252
|
+
function Hn({
|
|
9246
9253
|
locale: e,
|
|
9247
9254
|
className: t
|
|
9248
9255
|
}) {
|
|
@@ -9258,7 +9265,7 @@ function jn({
|
|
|
9258
9265
|
/* @__PURE__ */ n(
|
|
9259
9266
|
"img",
|
|
9260
9267
|
{
|
|
9261
|
-
src:
|
|
9268
|
+
src: Gr,
|
|
9262
9269
|
alt: "",
|
|
9263
9270
|
className: "h-24 w-24 select-none",
|
|
9264
9271
|
draggable: !1
|
|
@@ -9277,7 +9284,7 @@ function jn({
|
|
|
9277
9284
|
/* @__PURE__ */ n(
|
|
9278
9285
|
"img",
|
|
9279
9286
|
{
|
|
9280
|
-
src:
|
|
9287
|
+
src: Gr,
|
|
9281
9288
|
alt: "",
|
|
9282
9289
|
className: "h-24 w-24 select-none",
|
|
9283
9290
|
draggable: !1
|
|
@@ -9292,7 +9299,7 @@ function jn({
|
|
|
9292
9299
|
);
|
|
9293
9300
|
}
|
|
9294
9301
|
const cs = "4px 0 8px -6px rgba(0, 0, 0, 0.14)", us = "-4px 0 8px -6px rgba(0, 0, 0, 0.14)";
|
|
9295
|
-
function
|
|
9302
|
+
function gr(e, t) {
|
|
9296
9303
|
return t ? e ? `${e}, ${t}` : t : e;
|
|
9297
9304
|
}
|
|
9298
9305
|
function fs(e, t) {
|
|
@@ -9333,11 +9340,11 @@ function ms(e, t) {
|
|
|
9333
9340
|
}
|
|
9334
9341
|
return { left: r, right: a };
|
|
9335
9342
|
}
|
|
9336
|
-
function
|
|
9343
|
+
function br(e, t, r) {
|
|
9337
9344
|
var a, o;
|
|
9338
9345
|
return e === "left" ? { left: `${(a = r.left[t]) != null ? a : 0}px` } : e === "right" ? { right: `${(o = r.right[t]) != null ? o : 0}px` } : {};
|
|
9339
9346
|
}
|
|
9340
|
-
function
|
|
9347
|
+
function xr(e, t, r, a) {
|
|
9341
9348
|
if (e === "left" && r.lastLeftId === t && a.canScrollLeft)
|
|
9342
9349
|
return cs;
|
|
9343
9350
|
if (e === "right" && r.firstRightId === t && a.canScrollRight)
|
|
@@ -9387,8 +9394,8 @@ function ps({
|
|
|
9387
9394
|
}, 1400);
|
|
9388
9395
|
m.current.set(C, T);
|
|
9389
9396
|
}));
|
|
9390
|
-
}, [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(
|
|
9391
|
-
var k, D, z,
|
|
9397
|
+
}, [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(Hn, { locale: a }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": c, children: d.map((y) => {
|
|
9398
|
+
var k, D, z, G;
|
|
9392
9399
|
const g = y.index, h = (k = r == null ? void 0 : r(y.original, g)) != null ? k : {}, C = typeof h.onClick == "function", N = h.onClick, T = l && u.has(y.id), E = (j) => {
|
|
9393
9400
|
var P;
|
|
9394
9401
|
(P = h.onKeyDown) == null || P.call(h, j), C && (j.key !== "Enter" && j.key !== " " || (j.preventDefault(), j.currentTarget.click()));
|
|
@@ -9413,10 +9420,10 @@ function ps({
|
|
|
9413
9420
|
onKeyDown: C ? E : h.onKeyDown,
|
|
9414
9421
|
role: C ? (D = h.role) != null ? D : "button" : h.role,
|
|
9415
9422
|
tabIndex: C ? (z = h.tabIndex) != null ? z : 0 : h.tabIndex,
|
|
9416
|
-
"aria-label": C ? (
|
|
9423
|
+
"aria-label": C ? (G = h["aria-label"]) != null ? G : "Открыть строку" : h["aria-label"],
|
|
9417
9424
|
children: y.getVisibleCells().map((j) => {
|
|
9418
9425
|
var be, oe, Te;
|
|
9419
|
-
const P = j.column.columnDef.meta,
|
|
9426
|
+
const P = j.column.columnDef.meta, W = y.original, _ = g === d.length - 1, J = Qr(j.column.columnDef.cell, j.getContext()), U = (be = P == null ? void 0 : P.cellStyle) == null ? void 0 : be.call(P, W, g), B = (oe = P == null ? void 0 : P.cellClassName) == null ? void 0 : oe.call(P, W, g), H = hr(P == null ? void 0 : P.align), re = br(P == null ? void 0 : P.fixed, j.column.id, o), ne = xr(P == null ? void 0 : P.fixed, j.column.id, i, s);
|
|
9420
9427
|
return /* @__PURE__ */ n(
|
|
9421
9428
|
"td",
|
|
9422
9429
|
{
|
|
@@ -9427,20 +9434,20 @@ function ps({
|
|
|
9427
9434
|
H,
|
|
9428
9435
|
P == null ? void 0 : P.className,
|
|
9429
9436
|
B,
|
|
9430
|
-
|
|
9437
|
+
_ && "border-b-0",
|
|
9431
9438
|
((P == null ? void 0 : P.fixed) === "left" || (P == null ? void 0 : P.fixed) === "right") && "sticky z-10"
|
|
9432
9439
|
),
|
|
9433
9440
|
style: F(w(w({
|
|
9434
9441
|
width: P == null ? void 0 : P.width,
|
|
9435
9442
|
minWidth: P == null ? void 0 : P.minWidth,
|
|
9436
9443
|
maxWidth: P == null ? void 0 : P.maxWidth
|
|
9437
|
-
},
|
|
9438
|
-
boxShadow:
|
|
9439
|
-
(Te =
|
|
9444
|
+
}, U), re), {
|
|
9445
|
+
boxShadow: gr(
|
|
9446
|
+
(Te = U == null ? void 0 : U.boxShadow) != null ? Te : void 0,
|
|
9440
9447
|
ne
|
|
9441
9448
|
)
|
|
9442
9449
|
}),
|
|
9443
|
-
children:
|
|
9450
|
+
children: J
|
|
9444
9451
|
},
|
|
9445
9452
|
j.id
|
|
9446
9453
|
);
|
|
@@ -9530,7 +9537,7 @@ function xs({
|
|
|
9530
9537
|
}) {
|
|
9531
9538
|
return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((c) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: c.headers.map((f) => {
|
|
9532
9539
|
var M;
|
|
9533
|
-
const d = f.column.columnDef.meta, u = f.column.getCanSort(), x = f.column.getIsSorted(), b = void 0, m =
|
|
9540
|
+
const d = f.column.columnDef.meta, u = f.column.getCanSort(), x = f.column.getIsSorted(), b = void 0, m = hr(d == null ? void 0 : d.align), y = br(d == null ? void 0 : d.fixed, f.column.id, i), g = xr(d == null ? void 0 : d.fixed, f.column.id, s, l), h = u ? f.column.getToggleSortingHandler() : void 0, C = f.isPlaceholder ? null : Qr(f.column.columnDef.header, f.getContext()), N = t.findIndex((R, k) => He(R, k) === f.column.id), T = N >= 0 ? t[N] : void 0, E = typeof (T == null ? void 0 : T.title) == "function" ? T.title({
|
|
9534
9541
|
sortColumns: r.map((R) => ({
|
|
9535
9542
|
column: { dataIndex: R.id, key: R.id, columnKey: R.id },
|
|
9536
9543
|
order: R.desc ? "descend" : "ascend"
|
|
@@ -9557,7 +9564,7 @@ function xs({
|
|
|
9557
9564
|
minWidth: d == null ? void 0 : d.minWidth,
|
|
9558
9565
|
maxWidth: d == null ? void 0 : d.maxWidth
|
|
9559
9566
|
}), y), {
|
|
9560
|
-
boxShadow:
|
|
9567
|
+
boxShadow: gr(
|
|
9561
9568
|
(M = d == null ? void 0 : d.headerStyle) == null ? void 0 : M.boxShadow,
|
|
9562
9569
|
g
|
|
9563
9570
|
)
|
|
@@ -9595,7 +9602,7 @@ function ys({
|
|
|
9595
9602
|
return /* @__PURE__ */ n(pe, { children: Array.from({ length: i }).map((s, l) => {
|
|
9596
9603
|
const c = l === i - 1, f = e.getVisibleLeafColumns();
|
|
9597
9604
|
return /* @__PURE__ */ n("tr", { className: "animate-pulse", children: f.map((d) => {
|
|
9598
|
-
const u = d.columnDef.meta, x =
|
|
9605
|
+
const u = d.columnDef.meta, x = hr(u == null ? void 0 : u.align), b = br(u == null ? void 0 : u.fixed, d.id, r), m = xr(u == null ? void 0 : u.fixed, d.id, a, o);
|
|
9599
9606
|
return /* @__PURE__ */ n(
|
|
9600
9607
|
"td",
|
|
9601
9608
|
{
|
|
@@ -9610,7 +9617,7 @@ function ys({
|
|
|
9610
9617
|
minWidth: u == null ? void 0 : u.minWidth,
|
|
9611
9618
|
maxWidth: u == null ? void 0 : u.maxWidth
|
|
9612
9619
|
}, b), {
|
|
9613
|
-
boxShadow:
|
|
9620
|
+
boxShadow: gr(void 0, m)
|
|
9614
9621
|
}),
|
|
9615
9622
|
children: /* @__PURE__ */ n(
|
|
9616
9623
|
"div",
|
|
@@ -9677,13 +9684,13 @@ function Wl({
|
|
|
9677
9684
|
tbodyDataTestId: E,
|
|
9678
9685
|
rowDataTestId: M = "item"
|
|
9679
9686
|
}) {
|
|
9680
|
-
var
|
|
9681
|
-
const R = (
|
|
9687
|
+
var yr, vr, wr;
|
|
9688
|
+
const R = (yr = c != null ? c : f) != null ? yr : [], k = !!r, D = Math.max(1, Math.floor(a != null ? a : 10)), z = fe(null), G = !!m, j = (vr = m == null ? void 0 : m.selectAllMode) != null ? vr : (m == null ? void 0 : m.selectAllScope) === "all" ? "all" : "page", [P, W] = ee(
|
|
9682
9689
|
() => {
|
|
9683
9690
|
var Z;
|
|
9684
9691
|
return (Z = m == null ? void 0 : m.defaultSelectedRowKeys) != null ? Z : [];
|
|
9685
9692
|
}
|
|
9686
|
-
),
|
|
9693
|
+
), _ = (m == null ? void 0 : m.selectedRowKeys) !== void 0, J = (wr = m == null ? void 0 : m.selectedRowKeys) != null ? wr : P, U = q(() => new Set(J.map((Z) => String(Z))), [J]), B = q(() => G ? {
|
|
9687
9694
|
key: "__row_selection__",
|
|
9688
9695
|
title: null,
|
|
9689
9696
|
width: 44,
|
|
@@ -9693,7 +9700,7 @@ function Wl({
|
|
|
9693
9700
|
align: "center",
|
|
9694
9701
|
className: "p-2",
|
|
9695
9702
|
"data-testid": "table-row-selection"
|
|
9696
|
-
} : null, [
|
|
9703
|
+
} : null, [G]), H = q(() => B ? [B, ...l] : l, [l, B]), re = q(
|
|
9697
9704
|
() => H.some((Z) => typeof Z.width == "number"),
|
|
9698
9705
|
[H]
|
|
9699
9706
|
), ne = q(
|
|
@@ -9714,7 +9721,7 @@ function Wl({
|
|
|
9714
9721
|
}
|
|
9715
9722
|
return ie;
|
|
9716
9723
|
}, [b]), K = q(() => {
|
|
9717
|
-
const Z =
|
|
9724
|
+
const Z = G ? [
|
|
9718
9725
|
{
|
|
9719
9726
|
id: "__row_selection__",
|
|
9720
9727
|
enableSorting: !1,
|
|
@@ -9728,18 +9735,18 @@ function Wl({
|
|
|
9728
9735
|
"data-testid": "table-row-selection"
|
|
9729
9736
|
},
|
|
9730
9737
|
header: (X) => {
|
|
9731
|
-
var
|
|
9738
|
+
var Ir;
|
|
9732
9739
|
const xe = X.table.getRowModel().rows, ke = xe.filter((ce) => {
|
|
9733
9740
|
var Le, ye;
|
|
9734
9741
|
return !((ye = (Le = m == null ? void 0 : m.getCheckboxProps) == null ? void 0 : Le.call(m, ce.original)) == null ? void 0 : ye.disabled);
|
|
9735
|
-
}).map((ce) => ce.id), _e = ke.reduce((ce, Ae) =>
|
|
9742
|
+
}).map((ce) => ce.id), _e = ke.reduce((ce, Ae) => U.has(Ae) ? ce + 1 : ce, 0), je = ke.length > 0 && _e === ke.length, Nr = _e > 0 && !je, bt = je ? !0 : Nr ? "indeterminate" : !1, qe = ((Ir = m == null ? void 0 : m.allRowKeys) != null ? Ir : []).map((ce) => String(ce)), Ie = qe.length > 0 ? qe : ke, xt = Ie.reduce((ce, Ae) => U.has(Ae) ? ce + 1 : ce, 0), et = Ie.length > 0 && xt === Ie.length, jt = xt > 0 && !et, yt = et ? !0 : jt ? "indeterminate" : !1, tt = (ce, Ae, Le) => {
|
|
9736
9743
|
var Pe;
|
|
9737
|
-
const ye = Ae ? Array.from(new Map([...
|
|
9738
|
-
|
|
9744
|
+
const ye = Ae ? Array.from(new Map([...J, ...ce].map((Ee) => [String(Ee), Ee])).values()) : J.filter((Ee) => !new Set(ce.map((Ht) => String(Ht))).has(String(Ee)));
|
|
9745
|
+
_ || W(ye);
|
|
9739
9746
|
const nt = X.table.getCoreRowModel().rows.filter((Ee) => new Set(ye.map((Ht) => String(Ht))).has(Ee.id)).map((Ee) => Ee.original);
|
|
9740
9747
|
(Pe = m == null ? void 0 : m.onChange) == null || Pe.call(m, ye, nt, { type: Le });
|
|
9741
9748
|
};
|
|
9742
|
-
return /* @__PURE__ */ n(
|
|
9749
|
+
return /* @__PURE__ */ n(er, { checked: j === "all" ? yt : bt, onCheckedChange: j === "all" ? (ce) => {
|
|
9743
9750
|
var ye, nt;
|
|
9744
9751
|
const Ae = ce === !0, Le = (nt = (ye = m == null ? void 0 : m.allRowKeys) != null && ye.length ? m.allRowKeys : xe.map((Pe) => Te(Pe.original, Pe.index))) != null ? nt : [];
|
|
9745
9752
|
tt(Le, Ae, "all");
|
|
@@ -9753,7 +9760,7 @@ function Wl({
|
|
|
9753
9760
|
},
|
|
9754
9761
|
cell: (X) => {
|
|
9755
9762
|
var bt, qe;
|
|
9756
|
-
const xe = X.row.original, ke = X.row.id, _e = !!((qe = (bt = m == null ? void 0 : m.getCheckboxProps) == null ? void 0 : bt.call(m, xe)) != null && qe.disabled), je =
|
|
9763
|
+
const xe = X.row.original, ke = X.row.id, _e = !!((qe = (bt = m == null ? void 0 : m.getCheckboxProps) == null ? void 0 : bt.call(m, xe)) != null && qe.disabled), je = U.has(ke);
|
|
9757
9764
|
return /* @__PURE__ */ n(
|
|
9758
9765
|
"div",
|
|
9759
9766
|
{
|
|
@@ -9765,7 +9772,7 @@ function Wl({
|
|
|
9765
9772
|
Ie.key !== "Enter" && Ie.key !== " " || (Ie.preventDefault(), Ie.stopPropagation());
|
|
9766
9773
|
},
|
|
9767
9774
|
children: /* @__PURE__ */ n(
|
|
9768
|
-
|
|
9775
|
+
er,
|
|
9769
9776
|
{
|
|
9770
9777
|
disabled: _e,
|
|
9771
9778
|
checked: je,
|
|
@@ -9774,8 +9781,8 @@ function Wl({
|
|
|
9774
9781
|
const xt = Ie === !0;
|
|
9775
9782
|
if (_e)
|
|
9776
9783
|
return;
|
|
9777
|
-
const et = Te(xe, X.row.index), jt = String(et), yt = xt ? Array.from(new Map([...
|
|
9778
|
-
|
|
9784
|
+
const et = Te(xe, X.row.index), jt = String(et), yt = xt ? Array.from(new Map([...J, et].map((rt) => [String(rt), rt])).values()) : J.filter((rt) => String(rt) !== jt);
|
|
9785
|
+
_ || W(yt), (tt = m == null ? void 0 : m.onChange) == null || tt.call(m, yt, [xe], { type: "row" });
|
|
9779
9786
|
},
|
|
9780
9787
|
"aria-label": `Выбрать строку ${ke}`,
|
|
9781
9788
|
"data-testid": `table-select-row-${ke}`
|
|
@@ -9789,17 +9796,17 @@ function Wl({
|
|
|
9789
9796
|
return [...Z, ...ie];
|
|
9790
9797
|
}, [
|
|
9791
9798
|
l,
|
|
9799
|
+
G,
|
|
9792
9800
|
_,
|
|
9793
|
-
W,
|
|
9794
9801
|
m,
|
|
9795
9802
|
j,
|
|
9796
|
-
|
|
9797
|
-
|
|
9803
|
+
U,
|
|
9804
|
+
J,
|
|
9798
9805
|
Te
|
|
9799
9806
|
]), [Y, Ne] = ee(() => {
|
|
9800
9807
|
const Z = l.findIndex((ke) => ke.defaultSortOrder), ie = Z >= 0 ? l[Z] : void 0, X = ie == null ? void 0 : ie.defaultSortOrder, xe = ie ? He(ie, Z) : void 0;
|
|
9801
9808
|
return !xe || !X ? [] : [{ id: xe, desc: X === "descend" }];
|
|
9802
|
-
}), Me =
|
|
9809
|
+
}), Me = da(F(w({
|
|
9803
9810
|
data: R,
|
|
9804
9811
|
columns: K,
|
|
9805
9812
|
state: { sorting: Y },
|
|
@@ -9814,16 +9821,16 @@ function Wl({
|
|
|
9814
9821
|
};
|
|
9815
9822
|
s == null || s(void 0, void 0, ke, { action: "sort" });
|
|
9816
9823
|
},
|
|
9817
|
-
getCoreRowModel:
|
|
9824
|
+
getCoreRowModel: ua(),
|
|
9818
9825
|
enableSortingRemoval: !0
|
|
9819
|
-
}, x ? { getSortedRowModel:
|
|
9826
|
+
}, x ? { getSortedRowModel: ca() } : {}), {
|
|
9820
9827
|
getRowId: b ? (Z, ie) => {
|
|
9821
9828
|
if (typeof b == "function")
|
|
9822
9829
|
return String(b(Z));
|
|
9823
9830
|
const X = Z == null ? void 0 : Z[b];
|
|
9824
9831
|
return X != null ? String(X) : String(ie);
|
|
9825
9832
|
} : void 0
|
|
9826
|
-
})),
|
|
9833
|
+
})), Un = q(() => {
|
|
9827
9834
|
const Z = {};
|
|
9828
9835
|
return (o == null ? void 0 : o.y) != null && (Z.maxHeight = typeof o.y == "number" ? `${o.y}px` : o.y), Z;
|
|
9829
9836
|
}, [o == null ? void 0 : o.y]), Gt = q(() => H.reduce((Z, ie) => {
|
|
@@ -9855,7 +9862,7 @@ function Wl({
|
|
|
9855
9862
|
// Комментарий: скелетон сам по себе “приглушенный”, не затемняем весь контейнер.
|
|
9856
9863
|
k && "select-none"
|
|
9857
9864
|
),
|
|
9858
|
-
style:
|
|
9865
|
+
style: Un,
|
|
9859
9866
|
children: /* @__PURE__ */ I(
|
|
9860
9867
|
"table",
|
|
9861
9868
|
{
|
|
@@ -10010,7 +10017,7 @@ function Vl({
|
|
|
10010
10017
|
rowsCount: f,
|
|
10011
10018
|
linesCount: 6
|
|
10012
10019
|
}
|
|
10013
|
-
) }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: a, "aria-busy": t, children: /* @__PURE__ */ n(
|
|
10020
|
+
) }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: a, "aria-busy": t, children: /* @__PURE__ */ n(Hn, { locale: o }) }) : /* @__PURE__ */ n("div", { className: p("flex flex-col gap-2", a), "aria-busy": t, children: d.map((u, x) => {
|
|
10014
10021
|
var N, T, E, M, R;
|
|
10015
10022
|
const b = (N = s == null ? void 0 : s(u, x)) != null ? N : {}, m = typeof b.onClick == "function", y = (T = i == null ? void 0 : i(u, x)) != null ? T : x, g = b.onClick, h = (k) => {
|
|
10016
10023
|
var D;
|
|
@@ -10052,7 +10059,7 @@ function jl({
|
|
|
10052
10059
|
};
|
|
10053
10060
|
return /* @__PURE__ */ I($e, { children: [
|
|
10054
10061
|
/* @__PURE__ */ n(Ye, { asChild: !0, children: /* @__PURE__ */ n(
|
|
10055
|
-
|
|
10062
|
+
Q,
|
|
10056
10063
|
{
|
|
10057
10064
|
type: "button",
|
|
10058
10065
|
variant: "text",
|
|
@@ -10074,7 +10081,7 @@ function jl({
|
|
|
10074
10081
|
children: [
|
|
10075
10082
|
e && /* @__PURE__ */ I("div", { className: "px-3 pt-2", children: [
|
|
10076
10083
|
/* @__PURE__ */ n(O, { weight: "bold", children: e }),
|
|
10077
|
-
/* @__PURE__ */ n(
|
|
10084
|
+
/* @__PURE__ */ n(Ti, { className: "mt-2" })
|
|
10078
10085
|
] }),
|
|
10079
10086
|
/* @__PURE__ */ n("div", { className: "flex flex-col", "data-testid": o, children: t.map((l) => {
|
|
10080
10087
|
const c = () => s(l.key, !l.enabled);
|
|
@@ -10088,7 +10095,7 @@ function jl({
|
|
|
10088
10095
|
"data-testid": l["data-testid"],
|
|
10089
10096
|
children: [
|
|
10090
10097
|
/* @__PURE__ */ n(
|
|
10091
|
-
|
|
10098
|
+
er,
|
|
10092
10099
|
{
|
|
10093
10100
|
disabled: l.disabled,
|
|
10094
10101
|
checked: l.enabled,
|
|
@@ -10369,7 +10376,7 @@ const As = v.forwardRef(
|
|
|
10369
10376
|
"size"
|
|
10370
10377
|
]);
|
|
10371
10378
|
const g = Rs(s, l, x.placeholder, x.value);
|
|
10372
|
-
return
|
|
10379
|
+
return Vr(b, () => g.current, [g]), /* @__PURE__ */ I("div", { className: "w-full", children: [
|
|
10373
10380
|
a && /* @__PURE__ */ n(O, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
|
|
10374
10381
|
/* @__PURE__ */ I(
|
|
10375
10382
|
"div",
|
|
@@ -10444,7 +10451,7 @@ function Fs(e, t) {
|
|
|
10444
10451
|
const r = e.replace(/\D/g, ""), a = t.replace(/\D/g, ""), o = Ds(e, t);
|
|
10445
10452
|
return r.length === 0 ? "" : o === "removed" && r.length === 2 && a.length === 3 ? `${r}:` : o === "removed" && r.length === 2 && a.length === 2 && t.includes(":") ? r[0] : o === "removed" && r.length === 1 ? r : o === "added" && r.length === 2 && a.length === 1 ? `${r}:` : r.length === 1 || r.length === 2 ? r : r.length <= 4 ? `${r.slice(0, 2)}:${r.slice(2)}` : `${r.slice(0, 2)}:${r.slice(2, 4)}`;
|
|
10446
10453
|
}
|
|
10447
|
-
function
|
|
10454
|
+
function Wr(e) {
|
|
10448
10455
|
if (!e)
|
|
10449
10456
|
return !0;
|
|
10450
10457
|
if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(e))
|
|
@@ -10471,9 +10478,9 @@ function Kl({
|
|
|
10471
10478
|
}, [e]);
|
|
10472
10479
|
const m = (g) => {
|
|
10473
10480
|
const h = Fs(g.target.value, b.current);
|
|
10474
|
-
x(h), b.current = h, h.length === 5 &&
|
|
10481
|
+
x(h), b.current = h, h.length === 5 && Wr(h) ? t == null || t(h) : h === "" && (t == null || t(void 0));
|
|
10475
10482
|
}, y = (g) => {
|
|
10476
|
-
f == null || f(g), u && !
|
|
10483
|
+
f == null || f(g), u && !Wr(u) && (x(""), t == null || t(void 0));
|
|
10477
10484
|
};
|
|
10478
10485
|
return /* @__PURE__ */ I("div", { className: p("w-full", o), children: [
|
|
10479
10486
|
c && /* @__PURE__ */ n(
|
|
@@ -10553,40 +10560,40 @@ function Ul({
|
|
|
10553
10560
|
"data-testid": d
|
|
10554
10561
|
}) {
|
|
10555
10562
|
const [u, x] = v.useState((e == null ? void 0 : e.from) || ""), [b, m] = v.useState((e == null ? void 0 : e.to) || ""), y = v.useRef((e == null ? void 0 : e.from) || ""), g = v.useRef((e == null ? void 0 : e.to) || ""), h = v.useMemo(() => {
|
|
10556
|
-
const P = (H) => typeof H == "string",
|
|
10563
|
+
const P = (H) => typeof H == "string", W = (H) => typeof H == "object" && H !== null;
|
|
10557
10564
|
return {
|
|
10558
10565
|
hasAnyError: () => s ? P(s) ? !0 : !!(s.from || s.to) : !1,
|
|
10559
|
-
hasFromError: () => P(s) ? !0 :
|
|
10560
|
-
hasToError: () => P(s) ? !0 :
|
|
10561
|
-
getErrorText: () => P(s) ? s :
|
|
10566
|
+
hasFromError: () => P(s) ? !0 : W(s) && !!s.from,
|
|
10567
|
+
hasToError: () => P(s) ? !0 : W(s) && !!s.to,
|
|
10568
|
+
getErrorText: () => P(s) ? s : W(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
|
|
10562
10569
|
};
|
|
10563
10570
|
}, [s]), { hasAnyError: C, hasFromError: N, hasToError: T, getErrorText: E } = h;
|
|
10564
10571
|
v.useEffect(() => {
|
|
10565
10572
|
x((e == null ? void 0 : e.from) || ""), m((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", g.current = (e == null ? void 0 : e.to) || "";
|
|
10566
10573
|
}, [e]);
|
|
10567
|
-
const M = (P,
|
|
10568
|
-
const
|
|
10569
|
-
return
|
|
10574
|
+
const M = (P, W) => {
|
|
10575
|
+
const _ = P.replace(/\D/g, ""), J = W.replace(/\D/g, ""), U = Ls(P, W);
|
|
10576
|
+
return _.length === 0 ? "" : U === "removed" && _.length === 2 && J.length === 3 ? `${_}:` : U === "removed" && _.length === 2 && J.length === 2 && W.includes(":") ? _[0] : U === "removed" && _.length === 1 ? _ : U === "added" && _.length === 2 && J.length === 1 ? `${_}:` : _.length === 1 || _.length === 2 ? _ : _.length <= 4 ? `${_.slice(0, 2)}:${_.slice(2)}` : `${_.slice(0, 2)}:${_.slice(2, 4)}`;
|
|
10570
10577
|
}, R = (P) => {
|
|
10571
10578
|
if (!P)
|
|
10572
10579
|
return !0;
|
|
10573
10580
|
if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(P))
|
|
10574
10581
|
return !1;
|
|
10575
|
-
const [
|
|
10576
|
-
return
|
|
10577
|
-
}, k = (P,
|
|
10578
|
-
const
|
|
10582
|
+
const [_, J] = P.split(":").map(Number);
|
|
10583
|
+
return _ >= 0 && _ <= 23 && J >= 0 && J <= 59;
|
|
10584
|
+
}, k = (P, W) => {
|
|
10585
|
+
const _ = {
|
|
10579
10586
|
from: P || void 0,
|
|
10580
|
-
to:
|
|
10587
|
+
to: W || void 0
|
|
10581
10588
|
};
|
|
10582
|
-
!
|
|
10589
|
+
!_.from && !_.to ? t == null || t(void 0) : t == null || t(_);
|
|
10583
10590
|
}, D = (P) => {
|
|
10584
|
-
const
|
|
10585
|
-
x(
|
|
10591
|
+
const W = M(P.target.value, y.current);
|
|
10592
|
+
x(W), y.current = W, (W === "" || W.length === 5 && R(W)) && k(W, b);
|
|
10586
10593
|
}, z = (P) => {
|
|
10587
|
-
const
|
|
10588
|
-
m(
|
|
10589
|
-
},
|
|
10594
|
+
const W = M(P.target.value, g.current);
|
|
10595
|
+
m(W), g.current = W, (W === "" || W.length === 5 && R(W)) && k(u, W);
|
|
10596
|
+
}, G = (P) => {
|
|
10590
10597
|
f == null || f(P), u && !R(u) && (x(""), k("", b));
|
|
10591
10598
|
}, j = (P) => {
|
|
10592
10599
|
f == null || f(P), b && !R(b) && (m(""), k(u, ""));
|
|
@@ -10629,7 +10636,7 @@ function Ul({
|
|
|
10629
10636
|
type: "text",
|
|
10630
10637
|
value: u,
|
|
10631
10638
|
onChange: D,
|
|
10632
|
-
onBlur:
|
|
10639
|
+
onBlur: G,
|
|
10633
10640
|
placeholder: r.from,
|
|
10634
10641
|
disabled: a,
|
|
10635
10642
|
maxLength: 5,
|
|
@@ -10727,7 +10734,7 @@ const $l = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className:
|
|
|
10727
10734
|
r.date && /* @__PURE__ */ n(O, { className: "text-right", children: r.date })
|
|
10728
10735
|
] }) })
|
|
10729
10736
|
] }, a)) });
|
|
10730
|
-
function
|
|
10737
|
+
function tr(e, t = /* @__PURE__ */ new Set()) {
|
|
10731
10738
|
const r = [];
|
|
10732
10739
|
if (typeof e == "string")
|
|
10733
10740
|
return e.trim() !== "" && r.push(e), r;
|
|
@@ -10737,7 +10744,7 @@ function er(e, t = /* @__PURE__ */ new Set()) {
|
|
|
10737
10744
|
}
|
|
10738
10745
|
if (Array.isArray(e)) {
|
|
10739
10746
|
for (const a of e)
|
|
10740
|
-
r.push(...
|
|
10747
|
+
r.push(...tr(a, t));
|
|
10741
10748
|
return r;
|
|
10742
10749
|
}
|
|
10743
10750
|
if (e && typeof e == "object" && !t.has(e)) {
|
|
@@ -10753,7 +10760,7 @@ function er(e, t = /* @__PURE__ */ new Set()) {
|
|
|
10753
10760
|
];
|
|
10754
10761
|
for (const o of a) {
|
|
10755
10762
|
const i = e;
|
|
10756
|
-
o in i && r.push(...
|
|
10763
|
+
o in i && r.push(...tr(i[o], t));
|
|
10757
10764
|
}
|
|
10758
10765
|
}
|
|
10759
10766
|
if (typeof e != "object" && e !== null && e !== void 0) {
|
|
@@ -10765,7 +10772,7 @@ function er(e, t = /* @__PURE__ */ new Set()) {
|
|
|
10765
10772
|
);
|
|
10766
10773
|
}
|
|
10767
10774
|
function at(e, t, r) {
|
|
10768
|
-
const a =
|
|
10775
|
+
const a = tr(e);
|
|
10769
10776
|
return a.length === 0 ? (t && t(e), [r || "Произошла ошибка"]) : a;
|
|
10770
10777
|
}
|
|
10771
10778
|
function Ps(e, t) {
|
|
@@ -10942,7 +10949,7 @@ const Yl = Object.assign(Ps, {
|
|
|
10942
10949
|
function Zl(t) {
|
|
10943
10950
|
var e = L(t, []);
|
|
10944
10951
|
return /* @__PURE__ */ n(
|
|
10945
|
-
|
|
10952
|
+
la,
|
|
10946
10953
|
w({
|
|
10947
10954
|
visibleToasts: 1 / 0,
|
|
10948
10955
|
gap: 4,
|
|
@@ -10972,7 +10979,7 @@ function Zl(t) {
|
|
|
10972
10979
|
}, e)
|
|
10973
10980
|
);
|
|
10974
10981
|
}
|
|
10975
|
-
const Jl = Oe.Provider, zs = 120,
|
|
10982
|
+
const Jl = Oe.Provider, zs = 120, Kn = v.createContext(null);
|
|
10976
10983
|
function Bs() {
|
|
10977
10984
|
const [e, t] = v.useState(!1);
|
|
10978
10985
|
return v.useEffect(() => {
|
|
@@ -11006,7 +11013,7 @@ function Ql(o) {
|
|
|
11006
11013
|
), m = v.useCallback(() => {
|
|
11007
11014
|
u.current = Date.now(), x(!f);
|
|
11008
11015
|
}, [f, x]);
|
|
11009
|
-
return /* @__PURE__ */ n(
|
|
11016
|
+
return /* @__PURE__ */ n(Kn.Provider, { value: { isTouchDevice: d, open: f, toggleByTouch: m }, children: /* @__PURE__ */ n(
|
|
11010
11017
|
Oe.Root,
|
|
11011
11018
|
w({
|
|
11012
11019
|
open: d ? f : e,
|
|
@@ -11017,7 +11024,7 @@ function Ql(o) {
|
|
|
11017
11024
|
}
|
|
11018
11025
|
const Os = v.forwardRef((a, r) => {
|
|
11019
11026
|
var o = a, { onPointerDown: e } = o, t = L(o, ["onPointerDown"]);
|
|
11020
|
-
const i = v.useContext(
|
|
11027
|
+
const i = v.useContext(Kn), s = (l) => {
|
|
11021
11028
|
e == null || e(l), !l.defaultPrevented && i != null && i.isTouchDevice && l.pointerType === "touch" && i.toggleByTouch();
|
|
11022
11029
|
};
|
|
11023
11030
|
return /* @__PURE__ */ n(Oe.Trigger, w({ ref: r, onPointerDown: s }, t));
|
|
@@ -11103,7 +11110,7 @@ const Gs = v.forwardRef(
|
|
|
11103
11110
|
errorText: h,
|
|
11104
11111
|
"data-testId": C
|
|
11105
11112
|
}, N) => {
|
|
11106
|
-
const [T, E] = ee(!1), M = fe(null), R = fe(0), k =
|
|
11113
|
+
const [T, E] = ee(!1), M = fe(null), R = fe(0), k = $(
|
|
11107
11114
|
(B) => {
|
|
11108
11115
|
var H;
|
|
11109
11116
|
if (e) {
|
|
@@ -11116,7 +11123,7 @@ const Gs = v.forwardRef(
|
|
|
11116
11123
|
return r && B.size > r ? `Максимальный размер файла ${(r / 1024 / 1024).toFixed(2)}MB` : null;
|
|
11117
11124
|
},
|
|
11118
11125
|
[e, r]
|
|
11119
|
-
), D =
|
|
11126
|
+
), D = $(
|
|
11120
11127
|
(B) => {
|
|
11121
11128
|
if (!B || B.length === 0)
|
|
11122
11129
|
return;
|
|
@@ -11131,37 +11138,37 @@ const Gs = v.forwardRef(
|
|
|
11131
11138
|
l == null || l(H);
|
|
11132
11139
|
},
|
|
11133
11140
|
[l, f, k]
|
|
11134
|
-
), z =
|
|
11141
|
+
), z = $(() => {
|
|
11135
11142
|
var B;
|
|
11136
11143
|
(B = M.current) == null || B.click();
|
|
11137
|
-
}, []),
|
|
11144
|
+
}, []), G = $(
|
|
11138
11145
|
(B) => {
|
|
11139
11146
|
D(B.target.files), B.target.value = "";
|
|
11140
11147
|
},
|
|
11141
11148
|
[D]
|
|
11142
|
-
), j =
|
|
11149
|
+
), j = $((B) => {
|
|
11143
11150
|
B.preventDefault(), B.stopPropagation(), R.current++, B.dataTransfer.items && B.dataTransfer.items.length > 0 && E(!0);
|
|
11144
|
-
}, []), P =
|
|
11151
|
+
}, []), P = $((B) => {
|
|
11145
11152
|
B.preventDefault(), B.stopPropagation(), R.current--, R.current === 0 && E(!1);
|
|
11146
|
-
}, []),
|
|
11153
|
+
}, []), W = $((B) => {
|
|
11147
11154
|
B.preventDefault(), B.stopPropagation();
|
|
11148
|
-
}, []),
|
|
11155
|
+
}, []), _ = $(
|
|
11149
11156
|
(B) => {
|
|
11150
11157
|
B.preventDefault(), B.stopPropagation(), E(!1), R.current = 0;
|
|
11151
11158
|
const { files: H } = B.dataTransfer;
|
|
11152
11159
|
D(H);
|
|
11153
11160
|
},
|
|
11154
11161
|
[D]
|
|
11155
|
-
),
|
|
11162
|
+
), J = $(
|
|
11156
11163
|
(B) => {
|
|
11157
11164
|
c == null || c(B);
|
|
11158
11165
|
},
|
|
11159
11166
|
[c]
|
|
11160
|
-
),
|
|
11167
|
+
), U = (B) => {
|
|
11161
11168
|
if (B === 0)
|
|
11162
11169
|
return "0 Bytes";
|
|
11163
11170
|
const H = 1024, re = ["Bytes", "KB", "MB", "GB"], ne = Math.floor(Math.log(B) / Math.log(H));
|
|
11164
|
-
return `${Math.round(B /
|
|
11171
|
+
return `${Math.round(B / Tr(H, ne))} ${re[ne]}`;
|
|
11165
11172
|
};
|
|
11166
11173
|
return /* @__PURE__ */ I(
|
|
11167
11174
|
"div",
|
|
@@ -11177,7 +11184,7 @@ const Gs = v.forwardRef(
|
|
|
11177
11184
|
type: "file",
|
|
11178
11185
|
accept: e,
|
|
11179
11186
|
multiple: t,
|
|
11180
|
-
onChange:
|
|
11187
|
+
onChange: G,
|
|
11181
11188
|
className: "hidden"
|
|
11182
11189
|
}
|
|
11183
11190
|
),
|
|
@@ -11185,9 +11192,9 @@ const Gs = v.forwardRef(
|
|
|
11185
11192
|
"div",
|
|
11186
11193
|
{
|
|
11187
11194
|
onDragEnter: j,
|
|
11188
|
-
onDragOver:
|
|
11195
|
+
onDragOver: W,
|
|
11189
11196
|
onDragLeave: P,
|
|
11190
|
-
onDrop:
|
|
11197
|
+
onDrop: _,
|
|
11191
11198
|
onClick: z,
|
|
11192
11199
|
className: p(
|
|
11193
11200
|
`flex flex-${a} w-full ${d.length === 0 ? "h-full" : "h-auto"} items-${i} justify-${o} border-border hover:border-primary cursor-pointer gap-1.5 rounded-xl border-1 border-dashed bg-white p-3 transition-colors duration-200`,
|
|
@@ -11203,7 +11210,7 @@ const Gs = v.forwardRef(
|
|
|
11203
11210
|
] }),
|
|
11204
11211
|
h && /* @__PURE__ */ n(O, { variant: "p1", className: "text-negative font-cofo", children: h })
|
|
11205
11212
|
] }),
|
|
11206
|
-
s && /* @__PURE__ */ n(
|
|
11213
|
+
s && /* @__PURE__ */ n(Q, { variant: "dashed", size: "md", children: g })
|
|
11207
11214
|
]
|
|
11208
11215
|
}
|
|
11209
11216
|
),
|
|
@@ -11238,20 +11245,20 @@ const Gs = v.forwardRef(
|
|
|
11238
11245
|
className: p(
|
|
11239
11246
|
H ? "text-destructive" : "text-secondary"
|
|
11240
11247
|
),
|
|
11241
|
-
children: H ? B.error :
|
|
11248
|
+
children: H ? B.error : U(B.size)
|
|
11242
11249
|
}
|
|
11243
11250
|
)
|
|
11244
11251
|
] })
|
|
11245
11252
|
] }),
|
|
11246
11253
|
/* @__PURE__ */ n(
|
|
11247
|
-
|
|
11254
|
+
Q,
|
|
11248
11255
|
{
|
|
11249
11256
|
variant: "text",
|
|
11250
11257
|
size: "sm",
|
|
11251
11258
|
iconOnly: !0,
|
|
11252
11259
|
icon: "DeleteIcon",
|
|
11253
11260
|
onClick: (ne) => {
|
|
11254
|
-
ne.stopPropagation(),
|
|
11261
|
+
ne.stopPropagation(), J(B.id);
|
|
11255
11262
|
},
|
|
11256
11263
|
"aria-label": `Удалить ${B.name}`
|
|
11257
11264
|
}
|
|
@@ -11272,65 +11279,65 @@ export {
|
|
|
11272
11279
|
xl as AccordionContent,
|
|
11273
11280
|
gl as AccordionItem,
|
|
11274
11281
|
bl as AccordionTrigger,
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11282
|
+
xa as ActionsMenu,
|
|
11283
|
+
ya as ActionsMenuItem,
|
|
11284
|
+
wa as ActionsMenuLabel,
|
|
11285
|
+
va as ActionsMenuSeparator,
|
|
11286
|
+
Ia as Alert,
|
|
11280
11287
|
vl as Autocomplete,
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11288
|
+
Pa as Avatar,
|
|
11289
|
+
Ba as AvatarFallback,
|
|
11290
|
+
za as AvatarImage,
|
|
11291
|
+
uo as Banner,
|
|
11292
|
+
Q as Button,
|
|
11286
11293
|
ze as CARD_WIDTH,
|
|
11287
|
-
|
|
11294
|
+
Qa as CalendarDayCard,
|
|
11288
11295
|
Il as CalendarStrip,
|
|
11289
11296
|
Ke as Card,
|
|
11290
11297
|
Nt as Carousel,
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11298
|
+
Zo as CarouselButtonsView,
|
|
11299
|
+
$o as CarouselContentView,
|
|
11300
|
+
Fn as CarouselDotsView,
|
|
11301
|
+
er as Checkbox,
|
|
11302
|
+
go as Combobox,
|
|
11303
|
+
mn as ComboboxActions,
|
|
11304
|
+
In as ComboboxBase,
|
|
11305
|
+
xn as ComboboxContainer,
|
|
11306
|
+
yn as ComboboxInput,
|
|
11307
|
+
vn as ComboboxItemRenderer,
|
|
11308
|
+
wn as ComboboxMenu,
|
|
11309
|
+
En as ComboboxMultiSelect,
|
|
11310
|
+
yo as ComboboxPrimitiveProvider,
|
|
11304
11311
|
lt as Command,
|
|
11305
11312
|
Ct as CommandEmpty,
|
|
11306
11313
|
ct as CommandGroup,
|
|
11307
|
-
|
|
11314
|
+
Ca as CommandInput,
|
|
11308
11315
|
Ft as CommandItem,
|
|
11309
11316
|
dt as CommandList,
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11317
|
+
ka as CommandSeparator,
|
|
11318
|
+
Sa as CommandShortcut,
|
|
11319
|
+
_r as CountrySelectOption,
|
|
11313
11320
|
Dl as DatePicker,
|
|
11314
11321
|
Fl as DateRangePicker,
|
|
11315
11322
|
Ml as DefaultCustomizableCarousel,
|
|
11316
11323
|
Ll as Dialog,
|
|
11317
11324
|
se as DialogBase,
|
|
11318
11325
|
zl as DialogClose,
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11326
|
+
Ai as DialogContent,
|
|
11327
|
+
Di as DialogHeader,
|
|
11328
|
+
_n as DialogOverlay,
|
|
11329
|
+
Ri as DialogPortal,
|
|
11323
11330
|
Rl as DialogPrimitive,
|
|
11324
|
-
|
|
11331
|
+
Fi as DialogTitle,
|
|
11325
11332
|
Pl as DialogTrigger,
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11333
|
+
Ti as Divider,
|
|
11334
|
+
en as Dropdown,
|
|
11335
|
+
rn as DropdownContent,
|
|
11336
|
+
nn as DropdownItem,
|
|
11337
|
+
an as DropdownLabel,
|
|
11338
|
+
on as DropdownSeparator,
|
|
11339
|
+
tn as DropdownTrigger,
|
|
11340
|
+
qa as EmblaCalendarCard,
|
|
11334
11341
|
Nl as EmblaCalendarStrip,
|
|
11335
11342
|
Mt as FlagComponent,
|
|
11336
11343
|
El as HeadlessCarousel,
|
|
@@ -11338,22 +11345,22 @@ export {
|
|
|
11338
11345
|
ml as IconBanks,
|
|
11339
11346
|
pl as IconDocument,
|
|
11340
11347
|
Fe as Input,
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11348
|
+
Ea as InputLink,
|
|
11349
|
+
zn as InputNumber,
|
|
11350
|
+
Ta as InputPassword,
|
|
11344
11351
|
kt as InputSearch,
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11352
|
+
Ma as InputTitle,
|
|
11353
|
+
dr as Item,
|
|
11354
|
+
lr as ItemView,
|
|
11355
|
+
Bn as Link,
|
|
11356
|
+
cr as List,
|
|
11357
|
+
ln as MOBILE_BREAKPOINT,
|
|
11358
|
+
On as MaskedInput,
|
|
11359
|
+
so as MultiSelect,
|
|
11353
11360
|
Bl as OtpInput,
|
|
11354
11361
|
Ol as Pagination,
|
|
11355
11362
|
_l as PhoneInput,
|
|
11356
|
-
|
|
11363
|
+
Wn as Pointline,
|
|
11357
11364
|
$e as Popover,
|
|
11358
11365
|
yl as PopoverAnchor,
|
|
11359
11366
|
We as PopoverContent,
|
|
@@ -11361,20 +11368,20 @@ export {
|
|
|
11361
11368
|
qi as Progress,
|
|
11362
11369
|
ts as Radio,
|
|
11363
11370
|
rs as RadioGroup,
|
|
11364
|
-
|
|
11371
|
+
Xa as SCROLL_WEEK_SIZE,
|
|
11365
11372
|
kl as ScheduleHeader,
|
|
11366
|
-
|
|
11373
|
+
jn as SegmentItem,
|
|
11367
11374
|
as as Segments,
|
|
11368
|
-
|
|
11369
|
-
|
|
11375
|
+
io as Select,
|
|
11376
|
+
sr as SelectContent,
|
|
11370
11377
|
Cl as SelectGroup,
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
+
or as SelectItem,
|
|
11379
|
+
ao as SelectLabel,
|
|
11380
|
+
cn as SelectScrollDownButton,
|
|
11381
|
+
dn as SelectScrollUpButton,
|
|
11382
|
+
oo as SelectSeparator,
|
|
11383
|
+
ir as SelectTrigger,
|
|
11384
|
+
no as SelectValue,
|
|
11378
11385
|
Tl as SimpleCarousel,
|
|
11379
11386
|
os as SingleSegment,
|
|
11380
11387
|
Ve as Spinner,
|
|
@@ -11399,27 +11406,27 @@ export {
|
|
|
11399
11406
|
Os as TooltipTrigger,
|
|
11400
11407
|
O as Typography,
|
|
11401
11408
|
Gs as Uploader,
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11409
|
+
Xr as buttonVariants,
|
|
11410
|
+
fo as checkboxVariants,
|
|
11411
|
+
Ja as formatMonthGenitive,
|
|
11405
11412
|
Ut as formatMonthLong,
|
|
11406
|
-
|
|
11413
|
+
sn as formatWeekdayShort,
|
|
11407
11414
|
It as getThreeMonthsAround,
|
|
11408
|
-
|
|
11409
|
-
|
|
11415
|
+
mo as indicatorVariants,
|
|
11416
|
+
Yi as normalizePhoneInput,
|
|
11410
11417
|
wl as parseDateString,
|
|
11411
11418
|
es as radioVariants,
|
|
11412
|
-
|
|
11419
|
+
vo as spinnerVariants,
|
|
11413
11420
|
Re as startOfDay,
|
|
11414
11421
|
is as switchVariants,
|
|
11415
11422
|
Ms as tagVariants,
|
|
11416
11423
|
ss as thumbVariants,
|
|
11417
11424
|
Yl as toast,
|
|
11418
|
-
|
|
11419
|
-
|
|
11425
|
+
Rr as typographyVariants,
|
|
11426
|
+
Rn as useCarousel,
|
|
11420
11427
|
zt as useCarouselContext,
|
|
11421
11428
|
ft as useComboboxPrimitiveContext,
|
|
11422
11429
|
Al as useDialogBaseCtx,
|
|
11423
|
-
|
|
11430
|
+
ro as useScheduleCalendar,
|
|
11424
11431
|
Sl as useScheduleSync
|
|
11425
11432
|
};
|