@namuna-nur/ui-kit 1.9.16 → 1.9.18
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/lib/atoms/index.js +375 -356
- package/lib/molecules/index.js +866 -851
- package/lib/src/atoms/Avatar/Avatar.d.ts +2 -1
- package/lib/src/atoms/Avatar/Avatar.stories.d.ts +1 -0
- package/lib/src/atoms/Avatar/Avatar.types.d.ts +1 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.stories.d.ts +1 -0
- package/lib/src/molecules/PhoneInput/PhoneInput.types.d.ts +2 -0
- package/package.json +1 -1
package/lib/molecules/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as p, jsx as e, Fragment as st } from "react/jsx-runtime";
|
|
2
2
|
import * as $ from "react";
|
|
3
|
-
import Ht, { useRef as ue, forwardRef as
|
|
4
|
-
import { S as
|
|
5
|
-
import { cn as o, formatFileSize as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useReactTable as
|
|
8
|
-
import { b as
|
|
9
|
-
import { Link as Ee, useSearchParams as
|
|
10
|
-
import { S as Hr, a as
|
|
11
|
-
import { P as de, b as ae, c as le, D as
|
|
12
|
-
import { d as
|
|
13
|
-
import { useDebounce as cn, useOption as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
17
|
-
import { format as
|
|
18
|
-
import { ru as
|
|
3
|
+
import Ht, { useRef as ue, forwardRef as K, useState as F, useImperativeHandle as gr, useEffect as Me, Fragment as sr, useMemo as Ut } from "react";
|
|
4
|
+
import { S as Ne, b as vr, c as be, d as mr, e as wr, f as yr, g as Yt, h as Gt, i as kr, j as Et, k as Cr, l as Tr, m as Sr, n as Dr, o as Br, p as vt } from "../shared/assets-icons-2.js";
|
|
5
|
+
import { cn as o, formatFileSize as yt, formatDateToDayMonthYear as jr, numberFormat as Ir } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as mt, Label as P, Spinner as Vt, Text as k, Button as M, Avatar as Zt, IconButton as kt, Select as Ce, Textarea as Qt, Radio as qt, Status as He, Toggle as _r, Headline as Je, Input as Wr, Message as Mr, Tab as Fr } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Or, getCoreRowModel as Ar, flexRender as lt } from "@tanstack/react-table";
|
|
8
|
+
import { b as $r, c as Rr, d as Lr, e as zr } from "../shared/assets-icons-3.js";
|
|
9
|
+
import { Link as Ee, useSearchParams as Ct, useNavigate as Kt, NavLink as Tt } from "react-router-dom";
|
|
10
|
+
import { S as Hr, a as Ur, b as Yr, c as Gr, d as Er, e as Xt, f as St } from "../shared/assets-icons-1.js";
|
|
11
|
+
import { P as de, b as ae, c as le, D as et, d as tt, e as rt, f as Dt, A as Vr, g as Zr, h as Qr, i as qr, j as Jt, k as Pt, l as Nt, m as Kr, n as Xr, o as Jr } from "../shared/shared.js";
|
|
12
|
+
import { d as Ue, e as Pr, f as Nr, g as er, h as en, i as tn, j as rn, k as nn, a as on, l as dn, m as an, n as ln } from "../shared/assets-icons-4.js";
|
|
13
|
+
import { useDebounce as cn, useOption as tr } from "../hooks/index.js";
|
|
14
|
+
import * as rr from "@radix-ui/react-toggle";
|
|
15
|
+
import { e as nr, f as pn, g as hn, h as un, i as or, j as Fe, k as Wt } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { useMask as ir, format as ct } from "@react-input/mask";
|
|
17
|
+
import { format as Z, addMonths as fn, parse as wt, isValid as _e, parseISO as bn } from "date-fns";
|
|
18
|
+
import { ru as pt } from "date-fns/locale";
|
|
19
19
|
import { DayPicker as xn } from "react-day-picker";
|
|
20
|
-
import
|
|
21
|
-
import { colorTokens as
|
|
22
|
-
import * as
|
|
20
|
+
import nt from "echarts-for-react/lib/core";
|
|
21
|
+
import { colorTokens as Pe } from "../tokens/index.js";
|
|
22
|
+
import * as ot from "echarts/core";
|
|
23
23
|
const jo = ({
|
|
24
24
|
isOpen: t,
|
|
25
25
|
children: i,
|
|
@@ -31,7 +31,7 @@ const jo = ({
|
|
|
31
31
|
classNames: a,
|
|
32
32
|
onClick: f
|
|
33
33
|
}) => {
|
|
34
|
-
const h = se.root, u = se.header, b = se.icon, x = se.content, s = se.titlesWrapper,
|
|
34
|
+
const h = se.root, u = se.header, b = se.icon, x = se.content, s = se.titlesWrapper, y = se.title, v = se.subtitle;
|
|
35
35
|
return /* @__PURE__ */ p("div", { className: o(h, a == null ? void 0 : a.root), children: [
|
|
36
36
|
/* @__PURE__ */ p(
|
|
37
37
|
"button",
|
|
@@ -62,7 +62,7 @@ const jo = ({
|
|
|
62
62
|
"span",
|
|
63
63
|
{
|
|
64
64
|
className: o(
|
|
65
|
-
|
|
65
|
+
y,
|
|
66
66
|
r && "text-dark-30/25",
|
|
67
67
|
a == null ? void 0 : a.title
|
|
68
68
|
),
|
|
@@ -83,7 +83,7 @@ const jo = ({
|
|
|
83
83
|
)
|
|
84
84
|
] }),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
|
-
|
|
86
|
+
Ne,
|
|
87
87
|
{
|
|
88
88
|
width: "20",
|
|
89
89
|
height: "20",
|
|
@@ -109,7 +109,7 @@ const jo = ({
|
|
|
109
109
|
t ? x.opened : x.closed,
|
|
110
110
|
a == null ? void 0 : a.content
|
|
111
111
|
),
|
|
112
|
-
onClick: (
|
|
112
|
+
onClick: (m) => m.stopPropagation(),
|
|
113
113
|
children: i
|
|
114
114
|
}
|
|
115
115
|
)
|
|
@@ -132,7 +132,7 @@ const jo = ({
|
|
|
132
132
|
titlesWrapper: "flex flex-col items-start gap-1",
|
|
133
133
|
title: "text-sidebar-30 text-xs font-sans font-semibold leading-none",
|
|
134
134
|
subtitle: "text-gray-20 text-[11px] font-sans font-medium leading-none"
|
|
135
|
-
},
|
|
135
|
+
}, dr = ({
|
|
136
136
|
id: t,
|
|
137
137
|
label: i,
|
|
138
138
|
labelPosition: d = "right",
|
|
@@ -152,7 +152,7 @@ const jo = ({
|
|
|
152
152
|
),
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
mt,
|
|
156
156
|
{
|
|
157
157
|
id: t,
|
|
158
158
|
checked: l,
|
|
@@ -207,29 +207,29 @@ function Io({
|
|
|
207
207
|
isCheckboxVisible: a = !0,
|
|
208
208
|
isLoading: f = !1
|
|
209
209
|
}) {
|
|
210
|
-
const h =
|
|
210
|
+
const h = Or({
|
|
211
211
|
columns: i,
|
|
212
212
|
data: d,
|
|
213
|
-
getCoreRowModel:
|
|
213
|
+
getCoreRowModel: Ar(),
|
|
214
214
|
manualSorting: !0
|
|
215
215
|
}), u = ue(null), b = (v) => {
|
|
216
|
-
const
|
|
216
|
+
const m = l == null ? void 0 : l.find((D) => D.id === v), S = m != null && m.desc ? "asc" : "desc";
|
|
217
217
|
c == null || c({ key: v, order: S });
|
|
218
218
|
}, x = h.getFooterGroups().some(
|
|
219
|
-
(v) => v.headers.some((
|
|
219
|
+
(v) => v.headers.some((m) => m.column.columnDef.footer)
|
|
220
220
|
), s = (v) => {
|
|
221
|
-
n != null && n.includes(v) ? r(n.filter((
|
|
222
|
-
},
|
|
223
|
-
const v = h.getCoreRowModel().rows.map((
|
|
221
|
+
n != null && n.includes(v) ? r(n.filter((m) => m !== v)) : r([...n, v]);
|
|
222
|
+
}, y = () => {
|
|
223
|
+
const v = h.getCoreRowModel().rows.map((m) => {
|
|
224
224
|
var S;
|
|
225
|
-
return (S =
|
|
225
|
+
return (S = m.original) == null ? void 0 : S.id;
|
|
226
226
|
});
|
|
227
227
|
(n == null ? void 0 : n.length) === v.length ? r([]) : r(v);
|
|
228
228
|
};
|
|
229
229
|
return /* @__PURE__ */ p("div", { className: o(V.root, t == null ? void 0 : t.root), children: [
|
|
230
|
-
f && /* @__PURE__ */ e(
|
|
230
|
+
f && /* @__PURE__ */ e(Vt, {}),
|
|
231
231
|
!f && !d.length && /* @__PURE__ */ p("div", { className: V.info, children: [
|
|
232
|
-
/* @__PURE__ */ e(
|
|
232
|
+
/* @__PURE__ */ e($r, { className: "fill-dark-30/50" }),
|
|
233
233
|
/* @__PURE__ */ e(k, { className: V.infoText, children: "Нет данных" })
|
|
234
234
|
] }),
|
|
235
235
|
/* @__PURE__ */ e(
|
|
@@ -239,7 +239,7 @@ function Io({
|
|
|
239
239
|
ref: u,
|
|
240
240
|
children: /* @__PURE__ */ p("table", { className: V.table, children: [
|
|
241
241
|
/* @__PURE__ */ e("thead", { className: V.tableHeader, children: h.getHeaderGroups().map((v) => {
|
|
242
|
-
var
|
|
242
|
+
var m, S;
|
|
243
243
|
return /* @__PURE__ */ p("tr", { children: [
|
|
244
244
|
a && /* @__PURE__ */ e(
|
|
245
245
|
"th",
|
|
@@ -249,59 +249,59 @@ function Io({
|
|
|
249
249
|
t == null ? void 0 : t.firstHeaderCell
|
|
250
250
|
),
|
|
251
251
|
children: /* @__PURE__ */ e(
|
|
252
|
-
|
|
252
|
+
mt,
|
|
253
253
|
{
|
|
254
254
|
id: "selectAll",
|
|
255
|
-
checked: (n == null ? void 0 : n.length) === ((S = (
|
|
256
|
-
onChange:
|
|
255
|
+
checked: (n == null ? void 0 : n.length) === ((S = (m = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : m.rows) == null ? void 0 : S.length),
|
|
256
|
+
onChange: y
|
|
257
257
|
}
|
|
258
258
|
)
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
v.headers.map((
|
|
261
|
+
v.headers.map((D, I) => {
|
|
262
262
|
var g;
|
|
263
|
-
const
|
|
263
|
+
const w = D.column.columnDef.meta;
|
|
264
264
|
return /* @__PURE__ */ e(
|
|
265
265
|
"th",
|
|
266
266
|
{
|
|
267
|
-
colSpan:
|
|
267
|
+
colSpan: D.colSpan,
|
|
268
268
|
className: o(
|
|
269
269
|
V.headerCell,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
!a &&
|
|
270
|
+
w == null ? void 0 : w.headerClass,
|
|
271
|
+
D.index === v.headers.length - 1 && "rounded-r-[10px]",
|
|
272
|
+
!a && I === 0 && V.firstHeaderCell
|
|
273
273
|
),
|
|
274
|
-
onClick: () => (
|
|
274
|
+
onClick: () => (w == null ? void 0 : w.isSortable) && b(D.column.id),
|
|
275
275
|
children: /* @__PURE__ */ p("div", { className: V.headerText, children: [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
lt(
|
|
277
|
+
D.column.columnDef.header,
|
|
278
|
+
D.getContext()
|
|
279
279
|
),
|
|
280
|
-
(
|
|
281
|
-
|
|
280
|
+
(w == null ? void 0 : w.isSortable) && /* @__PURE__ */ e(
|
|
281
|
+
vr,
|
|
282
282
|
{
|
|
283
283
|
className: o(
|
|
284
284
|
V.sortIcon,
|
|
285
|
-
(g = l == null ? void 0 : l.find((C) => C.id ===
|
|
285
|
+
(g = l == null ? void 0 : l.find((C) => C.id === D.column.id)) != null && g.desc ? "rotate-0" : "rotate-180"
|
|
286
286
|
)
|
|
287
287
|
}
|
|
288
288
|
)
|
|
289
289
|
] })
|
|
290
290
|
},
|
|
291
|
-
|
|
291
|
+
D.id
|
|
292
292
|
);
|
|
293
293
|
})
|
|
294
294
|
] }, v.id);
|
|
295
295
|
}) }),
|
|
296
296
|
/* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((v) => {
|
|
297
297
|
var S;
|
|
298
|
-
const
|
|
298
|
+
const m = (S = v.original) == null ? void 0 : S.id;
|
|
299
299
|
return /* @__PURE__ */ p(
|
|
300
300
|
"tr",
|
|
301
301
|
{
|
|
302
302
|
className: o(
|
|
303
303
|
V.row,
|
|
304
|
-
(n == null ? void 0 : n.includes(
|
|
304
|
+
(n == null ? void 0 : n.includes(m)) && "bg-gray-50"
|
|
305
305
|
),
|
|
306
306
|
children: [
|
|
307
307
|
a && /* @__PURE__ */ e(
|
|
@@ -312,33 +312,33 @@ function Io({
|
|
|
312
312
|
t == null ? void 0 : t.firstBodyCell
|
|
313
313
|
),
|
|
314
314
|
children: /* @__PURE__ */ e(
|
|
315
|
-
|
|
315
|
+
mt,
|
|
316
316
|
{
|
|
317
317
|
id: v.id,
|
|
318
|
-
checked: n == null ? void 0 : n.includes(
|
|
319
|
-
onChange: () => s(
|
|
318
|
+
checked: n == null ? void 0 : n.includes(m),
|
|
319
|
+
onChange: () => s(m)
|
|
320
320
|
}
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
|
-
v.getVisibleCells().map((
|
|
325
|
-
const g =
|
|
324
|
+
v.getVisibleCells().map((D, I, w) => {
|
|
325
|
+
const g = D.column.columnDef.meta;
|
|
326
326
|
return /* @__PURE__ */ e(
|
|
327
327
|
"td",
|
|
328
328
|
{
|
|
329
329
|
className: o(
|
|
330
330
|
V.bodyCell,
|
|
331
331
|
(n == null ? void 0 : n.includes(v.id)) && "font-bold",
|
|
332
|
-
|
|
333
|
-
!a &&
|
|
332
|
+
I === w.length - 1 && "rounded-r-[10px]",
|
|
333
|
+
!a && I === 0 && "px-8",
|
|
334
334
|
g == null ? void 0 : g.cellClass
|
|
335
335
|
),
|
|
336
|
-
children:
|
|
337
|
-
|
|
338
|
-
|
|
336
|
+
children: lt(
|
|
337
|
+
D.column.columnDef.cell,
|
|
338
|
+
D.getContext()
|
|
339
339
|
)
|
|
340
340
|
},
|
|
341
|
-
|
|
341
|
+
D.id
|
|
342
342
|
);
|
|
343
343
|
})
|
|
344
344
|
]
|
|
@@ -346,10 +346,10 @@ function Io({
|
|
|
346
346
|
v.id
|
|
347
347
|
);
|
|
348
348
|
}) }),
|
|
349
|
-
x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((v) => v.depth === 0).map((v) => /* @__PURE__ */ e("tr", { children: v.headers.map((
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
) },
|
|
349
|
+
x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((v) => v.depth === 0).map((v) => /* @__PURE__ */ e("tr", { children: v.headers.map((m) => /* @__PURE__ */ e("td", { className: o(V.footerCell), children: lt(
|
|
350
|
+
m.column.columnDef.footer,
|
|
351
|
+
m.getContext()
|
|
352
|
+
) }, m.id)) }, v.id)) })
|
|
353
353
|
] })
|
|
354
354
|
}
|
|
355
355
|
)
|
|
@@ -405,7 +405,7 @@ const wn = ({
|
|
|
405
405
|
...d,
|
|
406
406
|
children: t
|
|
407
407
|
}
|
|
408
|
-
),
|
|
408
|
+
), _o = ({ paths: t }) => /* @__PURE__ */ e(gn, { children: /* @__PURE__ */ e(sn, { children: t.map((i, d) => /* @__PURE__ */ e(
|
|
409
409
|
yn,
|
|
410
410
|
{
|
|
411
411
|
label: i.label,
|
|
@@ -419,7 +419,7 @@ const wn = ({
|
|
|
419
419
|
isLast: i,
|
|
420
420
|
label: d,
|
|
421
421
|
disabled: n
|
|
422
|
-
}) => /* @__PURE__ */ p(
|
|
422
|
+
}) => /* @__PURE__ */ p(st, { children: [
|
|
423
423
|
/* @__PURE__ */ e(vn, { children: /* @__PURE__ */ e(
|
|
424
424
|
mn,
|
|
425
425
|
{
|
|
@@ -446,7 +446,7 @@ const wn = ({
|
|
|
446
446
|
link: "transition-colors hover:text-foreground",
|
|
447
447
|
page: "font-normal text-foreground",
|
|
448
448
|
separator: "[&>svg]:w-3.5 [&>svg]:h-3.5"
|
|
449
|
-
},
|
|
449
|
+
}, Wo = ({
|
|
450
450
|
disabled: t = !1,
|
|
451
451
|
value: i,
|
|
452
452
|
placeholder: d = "Введите пароль",
|
|
@@ -459,11 +459,11 @@ const wn = ({
|
|
|
459
459
|
classNames: h,
|
|
460
460
|
...u
|
|
461
461
|
}) => /* @__PURE__ */ e(
|
|
462
|
-
|
|
462
|
+
jt,
|
|
463
463
|
{
|
|
464
464
|
label: l,
|
|
465
465
|
iconPosition: "right",
|
|
466
|
-
icon: c ? Hr :
|
|
466
|
+
icon: c ? Hr : Ur,
|
|
467
467
|
onIconClick: f,
|
|
468
468
|
classNames: {
|
|
469
469
|
icon: kn.icon,
|
|
@@ -485,7 +485,7 @@ const wn = ({
|
|
|
485
485
|
}
|
|
486
486
|
), kn = {
|
|
487
487
|
icon: "size-6 fill-gray-20"
|
|
488
|
-
},
|
|
488
|
+
}, Mo = K(
|
|
489
489
|
({
|
|
490
490
|
label: t,
|
|
491
491
|
options: i,
|
|
@@ -497,39 +497,39 @@ const wn = ({
|
|
|
497
497
|
setSelectedItems: a,
|
|
498
498
|
classNames: f
|
|
499
499
|
}, h) => {
|
|
500
|
-
const [u, b] = F(""), [x, s] = F(!1),
|
|
501
|
-
|
|
500
|
+
const [u, b] = F(""), [x, s] = F(!1), y = ue(null), v = ue(null);
|
|
501
|
+
gr(h, () => ({
|
|
502
502
|
open: () => s(!0),
|
|
503
503
|
close: () => s(!1),
|
|
504
504
|
toggle: () => s((g) => !g),
|
|
505
505
|
focus: () => {
|
|
506
506
|
var g;
|
|
507
|
-
return (g =
|
|
507
|
+
return (g = y.current) == null ? void 0 : g.focus();
|
|
508
508
|
}
|
|
509
509
|
}), []);
|
|
510
|
-
const
|
|
511
|
-
var
|
|
510
|
+
const m = (g) => {
|
|
511
|
+
var j;
|
|
512
512
|
const C = i.find((T) => T.id === g);
|
|
513
|
-
C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (
|
|
513
|
+
C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (j = y.current) == null || j.focus();
|
|
514
514
|
}, S = (g, C) => {
|
|
515
|
-
var
|
|
516
|
-
C.stopPropagation(), a(c.filter((T) => T.id !== g)), (
|
|
517
|
-
},
|
|
515
|
+
var j;
|
|
516
|
+
C.stopPropagation(), a(c.filter((T) => T.id !== g)), (j = y.current) == null || j.focus();
|
|
517
|
+
}, D = (g) => {
|
|
518
518
|
b(g.target.value.toLowerCase());
|
|
519
|
-
},
|
|
519
|
+
}, I = () => {
|
|
520
520
|
var C;
|
|
521
521
|
if (!u.trim()) return;
|
|
522
522
|
if (!i.find(
|
|
523
|
-
(
|
|
523
|
+
(j) => j.label.toLowerCase() === u
|
|
524
524
|
)) {
|
|
525
|
-
const
|
|
525
|
+
const j = {
|
|
526
526
|
id: i.length + 1,
|
|
527
527
|
label: u
|
|
528
528
|
};
|
|
529
|
-
i.push(
|
|
529
|
+
i.push(j), b("");
|
|
530
530
|
}
|
|
531
|
-
(C =
|
|
532
|
-
},
|
|
531
|
+
(C = y.current) == null || C.focus();
|
|
532
|
+
}, w = i.filter(
|
|
533
533
|
(g) => g.label.toLowerCase().includes(u)
|
|
534
534
|
);
|
|
535
535
|
return /* @__PURE__ */ p("div", { className: o("flex flex-col", f == null ? void 0 : f.wrapper), children: [
|
|
@@ -543,7 +543,7 @@ const wn = ({
|
|
|
543
543
|
open: x,
|
|
544
544
|
onOpenChange: () => {
|
|
545
545
|
var g;
|
|
546
|
-
n || ((g =
|
|
546
|
+
n || ((g = y.current) == null || g.focus(), s(!x));
|
|
547
547
|
},
|
|
548
548
|
children: [
|
|
549
549
|
/* @__PURE__ */ e(
|
|
@@ -590,7 +590,7 @@ const wn = ({
|
|
|
590
590
|
onPointerDownCapture: (C) => C.stopPropagation(),
|
|
591
591
|
"aria-label": "Close",
|
|
592
592
|
children: /* @__PURE__ */ e(
|
|
593
|
-
|
|
593
|
+
Ue,
|
|
594
594
|
{
|
|
595
595
|
className: A.closeIcon,
|
|
596
596
|
width: 12,
|
|
@@ -602,7 +602,7 @@ const wn = ({
|
|
|
602
602
|
)
|
|
603
603
|
] }, g.id)),
|
|
604
604
|
/* @__PURE__ */ e(
|
|
605
|
-
|
|
605
|
+
Ne,
|
|
606
606
|
{
|
|
607
607
|
width: 20,
|
|
608
608
|
height: 20,
|
|
@@ -628,8 +628,8 @@ const wn = ({
|
|
|
628
628
|
/* @__PURE__ */ e(
|
|
629
629
|
"input",
|
|
630
630
|
{
|
|
631
|
-
ref:
|
|
632
|
-
onChange:
|
|
631
|
+
ref: y,
|
|
632
|
+
onChange: D,
|
|
633
633
|
value: u,
|
|
634
634
|
autoFocus: !0,
|
|
635
635
|
className: A.input,
|
|
@@ -637,26 +637,26 @@ const wn = ({
|
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ e(
|
|
640
|
-
|
|
640
|
+
mr,
|
|
641
641
|
{
|
|
642
642
|
width: 20,
|
|
643
643
|
height: 20,
|
|
644
644
|
viewBox: "0 0 21 21",
|
|
645
645
|
className: A.plusIcon,
|
|
646
|
-
onClick:
|
|
646
|
+
onClick: I
|
|
647
647
|
}
|
|
648
648
|
)
|
|
649
649
|
] }),
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
w.length > 0 ? w.map((g, C, j) => /* @__PURE__ */ e(
|
|
651
|
+
dr,
|
|
652
652
|
{
|
|
653
653
|
id: g.id.toString(),
|
|
654
654
|
"data-testid": "menuitemcheckbox",
|
|
655
655
|
checked: c.some((T) => T.id === g.id),
|
|
656
|
-
onChange: () =>
|
|
656
|
+
onChange: () => m(g.id),
|
|
657
657
|
className: o(
|
|
658
658
|
A.option,
|
|
659
|
-
|
|
659
|
+
j.length - 1 !== C && "mb-2.5"
|
|
660
660
|
),
|
|
661
661
|
label: g.label
|
|
662
662
|
},
|
|
@@ -664,7 +664,7 @@ const wn = ({
|
|
|
664
664
|
)) : /* @__PURE__ */ e("div", { className: A.noItemsFound, children: "No items found" }),
|
|
665
665
|
/* @__PURE__ */ p("div", { className: A.buttons, children: [
|
|
666
666
|
/* @__PURE__ */ e(
|
|
667
|
-
|
|
667
|
+
M,
|
|
668
668
|
{
|
|
669
669
|
variant: "secondary",
|
|
670
670
|
className: o(
|
|
@@ -676,7 +676,7 @@ const wn = ({
|
|
|
676
676
|
}
|
|
677
677
|
),
|
|
678
678
|
/* @__PURE__ */ e(
|
|
679
|
-
|
|
679
|
+
M,
|
|
680
680
|
{
|
|
681
681
|
variant: "primary",
|
|
682
682
|
className: o(
|
|
@@ -727,7 +727,7 @@ const wn = ({
|
|
|
727
727
|
status: {
|
|
728
728
|
danger: "border-danger-20 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
729
729
|
}
|
|
730
|
-
}, Cn =
|
|
730
|
+
}, Cn = K(
|
|
731
731
|
({
|
|
732
732
|
value: t,
|
|
733
733
|
onChange: i,
|
|
@@ -743,34 +743,34 @@ const wn = ({
|
|
|
743
743
|
isSearchIcon: b = !0,
|
|
744
744
|
isSearchResultDisabled: x = !0,
|
|
745
745
|
classNames: s,
|
|
746
|
-
...
|
|
746
|
+
...y
|
|
747
747
|
}, v) => {
|
|
748
|
-
const [
|
|
749
|
-
|
|
748
|
+
const [m, S] = F(r ?? []), [D, I] = F(l ?? []), [w, g] = F(!1), [C, j] = F(!1), T = cn(t, a);
|
|
749
|
+
Me(() => {
|
|
750
750
|
g(!!T), f == null || f(T);
|
|
751
751
|
}, [T, f]);
|
|
752
|
-
const
|
|
753
|
-
const fe = (
|
|
754
|
-
(
|
|
755
|
-
),
|
|
756
|
-
S(
|
|
757
|
-
},
|
|
752
|
+
const _ = ee.base, R = ee.hover, G = ee.focus, { focusWithin: Te } = ee, it = ee.disabled, xe = ee.input, W = ee.button, Q = ee.filterIcon, re = ee.dropdown, X = ee.popover, It = ee.emptyPopover, hr = (ce, ge, Oe) => {
|
|
753
|
+
const fe = (xr = []) => xr.map(
|
|
754
|
+
(at) => at.id === ge.id && ge.label === ge.label ? { ...at, checked: Oe } : at
|
|
755
|
+
), dt = ce === "status" ? fe(m) : m, br = ce === "module" ? fe(D) : D;
|
|
756
|
+
S(dt), I(br);
|
|
757
|
+
}, ur = () => {
|
|
758
758
|
c && c({
|
|
759
|
-
status:
|
|
760
|
-
module:
|
|
761
|
-
}),
|
|
762
|
-
},
|
|
759
|
+
status: m,
|
|
760
|
+
module: D
|
|
761
|
+
}), j(!1);
|
|
762
|
+
}, fr = (ce) => {
|
|
763
763
|
u == null || u(ce), g(!1);
|
|
764
|
-
},
|
|
764
|
+
}, _t = ({ type: ce, title: ge, items: Oe }) => /* @__PURE__ */ p(sr, { children: [
|
|
765
765
|
/* @__PURE__ */ e(k, { className: re.typeFilter, children: ge }),
|
|
766
766
|
Oe == null ? void 0 : Oe.map((fe) => /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
dr,
|
|
768
768
|
{
|
|
769
769
|
id: fe.id,
|
|
770
770
|
label: fe.label,
|
|
771
771
|
checked: fe.checked,
|
|
772
772
|
className: "mt-2.5",
|
|
773
|
-
onChange: (
|
|
773
|
+
onChange: (dt) => hr(ce, fe, dt.target.checked)
|
|
774
774
|
},
|
|
775
775
|
fe.id
|
|
776
776
|
))
|
|
@@ -779,16 +779,16 @@ const wn = ({
|
|
|
779
779
|
"div",
|
|
780
780
|
{
|
|
781
781
|
className: o(
|
|
782
|
-
|
|
783
|
-
!d &&
|
|
784
|
-
(C ||
|
|
785
|
-
!(C ||
|
|
786
|
-
d &&
|
|
782
|
+
_,
|
|
783
|
+
!d && Te,
|
|
784
|
+
(C || w) && !d && G,
|
|
785
|
+
!(C || w) && !d && R,
|
|
786
|
+
d && it,
|
|
787
787
|
s == null ? void 0 : s.base
|
|
788
788
|
),
|
|
789
789
|
children: [
|
|
790
|
-
/* @__PURE__ */ p(
|
|
791
|
-
/* @__PURE__ */ e(
|
|
790
|
+
/* @__PURE__ */ p(et, { open: C, onOpenChange: j, children: [
|
|
791
|
+
/* @__PURE__ */ e(tt, { asChild: !0, disabled: d, children: n && /* @__PURE__ */ e(
|
|
792
792
|
"button",
|
|
793
793
|
{
|
|
794
794
|
role: "button",
|
|
@@ -802,17 +802,17 @@ const wn = ({
|
|
|
802
802
|
width: 14,
|
|
803
803
|
height: 14,
|
|
804
804
|
className: o(
|
|
805
|
-
|
|
806
|
-
!d &&
|
|
807
|
-
d &&
|
|
808
|
-
C &&
|
|
805
|
+
Q.icon,
|
|
806
|
+
!d && Q.hover,
|
|
807
|
+
d && Q.disabled,
|
|
808
|
+
C && Q.active
|
|
809
809
|
)
|
|
810
810
|
}
|
|
811
811
|
)
|
|
812
812
|
}
|
|
813
813
|
) }),
|
|
814
814
|
/* @__PURE__ */ p(
|
|
815
|
-
|
|
815
|
+
rt,
|
|
816
816
|
{
|
|
817
817
|
className: o(re.content, s == null ? void 0 : s.dropdown),
|
|
818
818
|
align: "start",
|
|
@@ -822,24 +822,24 @@ const wn = ({
|
|
|
822
822
|
children: [
|
|
823
823
|
/* @__PURE__ */ p("div", { className: re.wrapperByStatus, children: [
|
|
824
824
|
/* @__PURE__ */ e(k, { className: re.title, children: "Поиск по фильтру" }),
|
|
825
|
-
/* @__PURE__ */ e(
|
|
825
|
+
/* @__PURE__ */ e(_t, { type: "status", title: "Статус", items: m })
|
|
826
826
|
] }),
|
|
827
|
-
/* @__PURE__ */ e("div", { className: re.wrapperByModule, children: /* @__PURE__ */ e(
|
|
828
|
-
/* @__PURE__ */ p("div", { className:
|
|
827
|
+
/* @__PURE__ */ e("div", { className: re.wrapperByModule, children: /* @__PURE__ */ e(_t, { type: "module", title: "Модуль", items: D }) }),
|
|
828
|
+
/* @__PURE__ */ p("div", { className: W.parent, children: [
|
|
829
829
|
/* @__PURE__ */ e(
|
|
830
|
-
|
|
830
|
+
M,
|
|
831
831
|
{
|
|
832
832
|
variant: "secondary",
|
|
833
|
-
className: o(
|
|
834
|
-
onClick: () =>
|
|
833
|
+
className: o(W.base, W.cancel),
|
|
834
|
+
onClick: () => j(!1),
|
|
835
835
|
children: "Отмена"
|
|
836
836
|
}
|
|
837
837
|
),
|
|
838
838
|
/* @__PURE__ */ e(
|
|
839
|
-
|
|
839
|
+
M,
|
|
840
840
|
{
|
|
841
|
-
onClick:
|
|
842
|
-
className: o(
|
|
841
|
+
onClick: ur,
|
|
842
|
+
className: o(W.base, W.save),
|
|
843
843
|
children: "Сохранить"
|
|
844
844
|
}
|
|
845
845
|
)
|
|
@@ -848,7 +848,7 @@ const wn = ({
|
|
|
848
848
|
}
|
|
849
849
|
)
|
|
850
850
|
] }),
|
|
851
|
-
/* @__PURE__ */ p(de, { open:
|
|
851
|
+
/* @__PURE__ */ p(de, { open: w, children: [
|
|
852
852
|
/* @__PURE__ */ e(ae, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ p("div", { className: xe.wrapper, children: [
|
|
853
853
|
/* @__PURE__ */ e(
|
|
854
854
|
"input",
|
|
@@ -861,7 +861,7 @@ const wn = ({
|
|
|
861
861
|
onChange: i,
|
|
862
862
|
className: o(xe.base, s == null ? void 0 : s.input),
|
|
863
863
|
disabled: d,
|
|
864
|
-
...
|
|
864
|
+
...y
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
b && /* @__PURE__ */ e(
|
|
@@ -882,9 +882,9 @@ const wn = ({
|
|
|
882
882
|
sideOffset: 18,
|
|
883
883
|
alignOffset: n ? -42 : -76,
|
|
884
884
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
885
|
-
className: o(
|
|
886
|
-
children: h && (h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ p("div", { className:
|
|
887
|
-
/* @__PURE__ */ p(k, { className:
|
|
885
|
+
className: o(X.content, s == null ? void 0 : s.popover),
|
|
886
|
+
children: h && (h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ p("div", { className: X.wrapper, children: [
|
|
887
|
+
/* @__PURE__ */ p(k, { className: X.title, children: [
|
|
888
888
|
"Результаты (",
|
|
889
889
|
h == null ? void 0 : h.length,
|
|
890
890
|
")"
|
|
@@ -898,15 +898,15 @@ const wn = ({
|
|
|
898
898
|
children: h == null ? void 0 : h.map((ce, ge) => /* @__PURE__ */ e(
|
|
899
899
|
k,
|
|
900
900
|
{
|
|
901
|
-
onClick: () =>
|
|
902
|
-
className:
|
|
901
|
+
onClick: () => fr(ce),
|
|
902
|
+
className: X.item,
|
|
903
903
|
children: ce
|
|
904
904
|
},
|
|
905
905
|
ge
|
|
906
906
|
))
|
|
907
907
|
}
|
|
908
908
|
)
|
|
909
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
909
|
+
] }) : /* @__PURE__ */ e("div", { className: It.wrapper, children: /* @__PURE__ */ e(k, { className: It.text, children: "Нет результатов поиска" }) })
|
|
910
910
|
}
|
|
911
911
|
)
|
|
912
912
|
] })
|
|
@@ -955,7 +955,7 @@ const wn = ({
|
|
|
955
955
|
wrapper: "h-[244px] flex items-center justify-center",
|
|
956
956
|
text: "text-dark-30 text-sm font-sans leading-none font-semibold"
|
|
957
957
|
}
|
|
958
|
-
},
|
|
958
|
+
}, Bt = ({
|
|
959
959
|
fullName: t,
|
|
960
960
|
jobTitle: i,
|
|
961
961
|
position: d = "right",
|
|
@@ -986,7 +986,7 @@ const wn = ({
|
|
|
986
986
|
n == null ? void 0 : n.textWrapper
|
|
987
987
|
),
|
|
988
988
|
children: [
|
|
989
|
-
t && l ? /* @__PURE__ */ e(
|
|
989
|
+
t && l ? /* @__PURE__ */ e(Ge, { ...l, children: t }) : /* @__PURE__ */ p(
|
|
990
990
|
k,
|
|
991
991
|
{
|
|
992
992
|
className: o(
|
|
@@ -1004,7 +1004,7 @@ const wn = ({
|
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
|
-
/* @__PURE__ */ e(
|
|
1007
|
+
/* @__PURE__ */ e(Zt, { ...r, isActive: a, hasBadge: a })
|
|
1008
1008
|
]
|
|
1009
1009
|
}
|
|
1010
1010
|
), Ae = {
|
|
@@ -1014,13 +1014,13 @@ const wn = ({
|
|
|
1014
1014
|
jobTitle: "text-xs text-dark-40/50 font-medium",
|
|
1015
1015
|
subText: "text-xs text-dark-40/50 font-normal"
|
|
1016
1016
|
}, Tn = ({ file: t, onClick: i }) => /* @__PURE__ */ p("li", { className: "flex items-center bg-white px-2 py-1.5 border border-dark-30/[.15] rounded-lg w-[112px] justify-between", children: [
|
|
1017
|
-
/* @__PURE__ */ e(
|
|
1017
|
+
/* @__PURE__ */ e(wr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
|
|
1018
1018
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
|
|
1019
1019
|
/* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
|
|
1020
|
-
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children:
|
|
1020
|
+
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: yt(t.size) })
|
|
1021
1021
|
] }),
|
|
1022
1022
|
/* @__PURE__ */ e(
|
|
1023
|
-
|
|
1023
|
+
Ue,
|
|
1024
1024
|
{
|
|
1025
1025
|
width: 16,
|
|
1026
1026
|
height: 16,
|
|
@@ -1029,7 +1029,7 @@ const wn = ({
|
|
|
1029
1029
|
viewBox: "0 0 20 20"
|
|
1030
1030
|
}
|
|
1031
1031
|
)
|
|
1032
|
-
] }), { Root: Sn } =
|
|
1032
|
+
] }), { Root: Sn } = rr, Fo = $.forwardRef(
|
|
1033
1033
|
({
|
|
1034
1034
|
id: t,
|
|
1035
1035
|
files: i = [],
|
|
@@ -1043,9 +1043,9 @@ const wn = ({
|
|
|
1043
1043
|
disabled: h = !1,
|
|
1044
1044
|
...u
|
|
1045
1045
|
}, b) => {
|
|
1046
|
-
const [x, s] = $.useState(!1),
|
|
1047
|
-
var
|
|
1048
|
-
h || (s(!0), (
|
|
1046
|
+
const [x, s] = $.useState(!1), y = $.useRef(null), v = ve.root, m = ve.input, S = ve.icon, D = ve.placeholder, I = ve.list, w = ve.status, g = () => {
|
|
1047
|
+
var j;
|
|
1048
|
+
h || (s(!0), (j = y.current) == null || j.click());
|
|
1049
1049
|
}, C = () => {
|
|
1050
1050
|
s(!1);
|
|
1051
1051
|
};
|
|
@@ -1071,10 +1071,10 @@ const wn = ({
|
|
|
1071
1071
|
onPressedChange: s,
|
|
1072
1072
|
onBlur: C,
|
|
1073
1073
|
className: o(
|
|
1074
|
-
|
|
1075
|
-
!h &&
|
|
1076
|
-
!h &&
|
|
1077
|
-
!h && !!f &&
|
|
1074
|
+
m.base,
|
|
1075
|
+
!h && m.pressed,
|
|
1076
|
+
!h && m.hover,
|
|
1077
|
+
!h && !!f && w.danger,
|
|
1078
1078
|
a == null ? void 0 : a.input,
|
|
1079
1079
|
{
|
|
1080
1080
|
"items-start": i.length > 0
|
|
@@ -1084,29 +1084,31 @@ const wn = ({
|
|
|
1084
1084
|
/* @__PURE__ */ e(
|
|
1085
1085
|
"input",
|
|
1086
1086
|
{
|
|
1087
|
-
ref:
|
|
1087
|
+
ref: y,
|
|
1088
1088
|
id: "file-upload",
|
|
1089
1089
|
role: "file-input",
|
|
1090
1090
|
type: "file",
|
|
1091
1091
|
multiple: r,
|
|
1092
1092
|
accept: "application/pdf, .doc, .docx, .xls, .xlsx",
|
|
1093
|
-
onChange:
|
|
1093
|
+
onChange: (j) => {
|
|
1094
|
+
l(j), j.target.value = "";
|
|
1095
|
+
},
|
|
1094
1096
|
className: "hidden",
|
|
1095
1097
|
...u
|
|
1096
1098
|
}
|
|
1097
1099
|
),
|
|
1098
|
-
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className:
|
|
1100
|
+
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: I, children: i.map((j) => /* @__PURE__ */ e(
|
|
1099
1101
|
Tn,
|
|
1100
1102
|
{
|
|
1101
|
-
file:
|
|
1103
|
+
file: j,
|
|
1102
1104
|
onClick: (T) => {
|
|
1103
|
-
T.stopPropagation(), c == null || c(
|
|
1105
|
+
T.stopPropagation(), c == null || c(j.id);
|
|
1104
1106
|
}
|
|
1105
1107
|
},
|
|
1106
|
-
|
|
1108
|
+
j.id
|
|
1107
1109
|
)) }) : /* @__PURE__ */ p($.Fragment, { children: [
|
|
1108
1110
|
/* @__PURE__ */ e(
|
|
1109
|
-
|
|
1111
|
+
yr,
|
|
1110
1112
|
{
|
|
1111
1113
|
"data-testid": "file-upload-icon",
|
|
1112
1114
|
width: 16,
|
|
@@ -1114,7 +1116,7 @@ const wn = ({
|
|
|
1114
1116
|
className: S
|
|
1115
1117
|
}
|
|
1116
1118
|
),
|
|
1117
|
-
/* @__PURE__ */ e("span", { className:
|
|
1119
|
+
/* @__PURE__ */ e("span", { className: D, children: n })
|
|
1118
1120
|
] })
|
|
1119
1121
|
]
|
|
1120
1122
|
}
|
|
@@ -1147,7 +1149,7 @@ const wn = ({
|
|
|
1147
1149
|
}) => {
|
|
1148
1150
|
const c = d === "review";
|
|
1149
1151
|
return /* @__PURE__ */ p("div", { className: o(z.root, n == null ? void 0 : n.root), children: [
|
|
1150
|
-
!(t != null && t.length) && (r ? /* @__PURE__ */ e(
|
|
1152
|
+
!(t != null && t.length) && (r ? /* @__PURE__ */ e(Vt, {}) : /* @__PURE__ */ e(
|
|
1151
1153
|
k,
|
|
1152
1154
|
{
|
|
1153
1155
|
variant: "p",
|
|
@@ -1159,9 +1161,9 @@ const wn = ({
|
|
|
1159
1161
|
}
|
|
1160
1162
|
)),
|
|
1161
1163
|
t.map(
|
|
1162
|
-
({ id: a, avatarSrc: f, fullName: h, role: u, comment: b, date: x, time: s, stars:
|
|
1164
|
+
({ id: a, avatarSrc: f, fullName: h, role: u, comment: b, date: x, time: s, stars: y = 0 }) => /* @__PURE__ */ p("div", { className: z.wrapper, children: [
|
|
1163
1165
|
/* @__PURE__ */ e(
|
|
1164
|
-
|
|
1166
|
+
Bt,
|
|
1165
1167
|
{
|
|
1166
1168
|
fullName: h,
|
|
1167
1169
|
jobTitle: u || "",
|
|
@@ -1198,9 +1200,9 @@ const wn = ({
|
|
|
1198
1200
|
),
|
|
1199
1201
|
children: [
|
|
1200
1202
|
c && /* @__PURE__ */ e(
|
|
1201
|
-
|
|
1203
|
+
cr,
|
|
1202
1204
|
{
|
|
1203
|
-
rating:
|
|
1205
|
+
rating: y,
|
|
1204
1206
|
classNames: {
|
|
1205
1207
|
root: "gap-2.5",
|
|
1206
1208
|
rating: "text-sm font-semibold"
|
|
@@ -1214,9 +1216,9 @@ const wn = ({
|
|
|
1214
1216
|
s
|
|
1215
1217
|
] }),
|
|
1216
1218
|
l && /* @__PURE__ */ e(
|
|
1217
|
-
|
|
1219
|
+
kt,
|
|
1218
1220
|
{
|
|
1219
|
-
icon:
|
|
1221
|
+
icon: Yr,
|
|
1220
1222
|
shape: "circle",
|
|
1221
1223
|
onClick: () => l(a),
|
|
1222
1224
|
classNames: {
|
|
@@ -1274,10 +1276,10 @@ const wn = ({
|
|
|
1274
1276
|
button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
|
|
1275
1277
|
icon: "fill-sidebar-50/50"
|
|
1276
1278
|
}
|
|
1277
|
-
},
|
|
1279
|
+
}, ht = (t) => {
|
|
1278
1280
|
const i = t.getDate().toString().padStart(2, "0"), d = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getFullYear();
|
|
1279
1281
|
return `${i}/${d}/${n}`;
|
|
1280
|
-
},
|
|
1282
|
+
}, Dn = (t) => {
|
|
1281
1283
|
const i = t.getFullYear(), d = t.getMonth(), n = new Date(i, d, 1), l = new Date(i, d + 1, 0).getDate();
|
|
1282
1284
|
let c = n.getDay();
|
|
1283
1285
|
c = c === 0 ? 6 : c - 1;
|
|
@@ -1292,15 +1294,15 @@ const wn = ({
|
|
|
1292
1294
|
for (let h = 1; h <= f; h++)
|
|
1293
1295
|
a.push({ date: new Date(i, d + 1, h), isCurrentMonth: !1 });
|
|
1294
1296
|
return a;
|
|
1295
|
-
},
|
|
1297
|
+
}, Bn = /* @__PURE__ */ new Date(), jn = (t) => t.toDateString() === Bn.toDateString(), In = (t) => {
|
|
1296
1298
|
const i = t.getDay();
|
|
1297
1299
|
return i === 0 || i === 6;
|
|
1298
|
-
},
|
|
1300
|
+
}, _n = (t, i) => i && t.toDateString() === i.toDateString(), Wn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
1299
1301
|
(t) => ({
|
|
1300
1302
|
label: t.toString(),
|
|
1301
1303
|
value: t.toString()
|
|
1302
1304
|
})
|
|
1303
|
-
),
|
|
1305
|
+
), Mn = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Fn = [
|
|
1304
1306
|
"Январь",
|
|
1305
1307
|
"Февраль",
|
|
1306
1308
|
"Март",
|
|
@@ -1327,10 +1329,10 @@ const wn = ({
|
|
|
1327
1329
|
return null;
|
|
1328
1330
|
}, An = (t, i, d = /* @__PURE__ */ new Date(), n) => {
|
|
1329
1331
|
const r = i ? On(i) : null;
|
|
1330
|
-
return
|
|
1332
|
+
return Dn(d).map((l, c) => {
|
|
1331
1333
|
const { date: a, isCurrentMonth: f } = l, h = a.getDate(), u = r ? a <= r : !1;
|
|
1332
|
-
let b =
|
|
1333
|
-
return u ? b += ` ${
|
|
1334
|
+
let b = B.dayButton;
|
|
1335
|
+
return u ? b += ` ${B.dayDisabled}` : f ? _n(a, n ? new Date(n) : void 0) ? b += ` ${B.daySelected}` : jn(a) ? b += ` ${B.dayToday}` : In(a) ? b += ` ${B.dayWeekend}` : b += ` ${B.dayNormal}` : b += ` ${B.dayOutside}`, /* @__PURE__ */ e(
|
|
1334
1336
|
"button",
|
|
1335
1337
|
{
|
|
1336
1338
|
onClick: (x) => {
|
|
@@ -1355,41 +1357,41 @@ const wn = ({
|
|
|
1355
1357
|
const [a, f] = F(!1), [h, u] = F(
|
|
1356
1358
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1357
1359
|
), [b, x] = F(
|
|
1358
|
-
t ?
|
|
1360
|
+
t ? ht(new Date(t)) : ""
|
|
1359
1361
|
);
|
|
1360
|
-
|
|
1361
|
-
t ? (x(
|
|
1362
|
+
Me(() => {
|
|
1363
|
+
t ? (x(ht(new Date(t))), u(new Date(t))) : x("");
|
|
1362
1364
|
}, [t]);
|
|
1363
|
-
const s = ue(null),
|
|
1364
|
-
i(g.toISOString()), x(
|
|
1365
|
-
},
|
|
1365
|
+
const s = ue(null), y = ue(null), v = (g) => {
|
|
1366
|
+
i(g.toISOString()), x(ht(g)), f(!1);
|
|
1367
|
+
}, m = (g) => {
|
|
1366
1368
|
let C = g.target.value.replace(/\D/g, "");
|
|
1367
1369
|
if (C.length >= 3 && C.length <= 4 ? C = `${C.slice(0, 2)}/${C.slice(2)}` : C.length > 4 && (C = `${C.slice(0, 2)}/${C.slice(2, 4)}/${C.slice(4, 8)}`), C.length > 10 && (C = C.slice(0, 10)), x(C), !C || C.trim() === "") {
|
|
1368
1370
|
i(void 0);
|
|
1369
1371
|
return;
|
|
1370
1372
|
}
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
const T = parseInt(
|
|
1374
|
-
if (T > 0 && T <= 31 &&
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1373
|
+
const j = C.split("/");
|
|
1374
|
+
if (j.length === 3) {
|
|
1375
|
+
const T = parseInt(j[0]), _ = parseInt(j[1]) - 1, R = parseInt(j[2]);
|
|
1376
|
+
if (T > 0 && T <= 31 && _ >= 0 && _ <= 11 && R > 1900) {
|
|
1377
|
+
const G = new Date(R, _, T);
|
|
1378
|
+
G.getDate() === T && G.getMonth() === _ && G.getFullYear() === R && (i(G.toISOString()), u(new Date(R, _, 1)));
|
|
1377
1379
|
}
|
|
1378
1380
|
}
|
|
1379
1381
|
}, S = (g) => {
|
|
1380
1382
|
const C = new Date(h);
|
|
1381
1383
|
C.setMonth(h.getMonth() + g), u(C);
|
|
1382
|
-
},
|
|
1384
|
+
}, D = (g) => {
|
|
1383
1385
|
const C = parseInt(g);
|
|
1384
1386
|
u(new Date(h.getFullYear(), C, 1));
|
|
1385
|
-
},
|
|
1387
|
+
}, I = (g) => {
|
|
1386
1388
|
const C = parseInt(g);
|
|
1387
1389
|
u(new Date(C, h.getMonth(), 1));
|
|
1388
|
-
},
|
|
1390
|
+
}, w = (g) => {
|
|
1389
1391
|
g.stopPropagation(), g.preventDefault(), i(void 0), x(""), f(!1);
|
|
1390
1392
|
};
|
|
1391
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1392
|
-
/* @__PURE__ */ p("div", { className:
|
|
1393
|
+
return /* @__PURE__ */ p("div", { className: B.base, children: [
|
|
1394
|
+
/* @__PURE__ */ p("div", { className: B.label.wrapper, children: [
|
|
1393
1395
|
!!r && /* @__PURE__ */ e(P, { disabled: n, children: r }),
|
|
1394
1396
|
l === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
1395
1397
|
] }),
|
|
@@ -1399,13 +1401,13 @@ const wn = ({
|
|
|
1399
1401
|
{
|
|
1400
1402
|
asChild: !0,
|
|
1401
1403
|
className: o(
|
|
1402
|
-
|
|
1403
|
-
!n &&
|
|
1404
|
-
a &&
|
|
1405
|
-
n &&
|
|
1406
|
-
!n && !a &&
|
|
1407
|
-
!n &&
|
|
1408
|
-
!n && l === "danger" &&
|
|
1404
|
+
B.inputWrapper.base,
|
|
1405
|
+
!n && B.inputWrapper.active,
|
|
1406
|
+
a && B.inputWrapper.focus,
|
|
1407
|
+
n && B.inputWrapper.disabled,
|
|
1408
|
+
!n && !a && B.inputWrapper.hover,
|
|
1409
|
+
!n && B.inputWrapper.pressed,
|
|
1410
|
+
!n && l === "danger" && B.status.danger,
|
|
1409
1411
|
d == null ? void 0 : d.inputWrapper
|
|
1410
1412
|
),
|
|
1411
1413
|
children: /* @__PURE__ */ p("div", { className: "flex items-center", children: [
|
|
@@ -1414,15 +1416,15 @@ const wn = ({
|
|
|
1414
1416
|
{
|
|
1415
1417
|
type: "text",
|
|
1416
1418
|
value: b,
|
|
1417
|
-
onChange:
|
|
1419
|
+
onChange: m,
|
|
1418
1420
|
placeholder: "__ / __ / ____",
|
|
1419
1421
|
disabled: n,
|
|
1420
1422
|
className: o(
|
|
1421
|
-
|
|
1422
|
-
!n && a &&
|
|
1423
|
-
!n && !a &&
|
|
1424
|
-
!n &&
|
|
1425
|
-
n &&
|
|
1423
|
+
B.input.base,
|
|
1424
|
+
!n && a && B.input.focus,
|
|
1425
|
+
!n && !a && B.input.hover,
|
|
1426
|
+
!n && B.input.pressed,
|
|
1427
|
+
n && B.input.disabled,
|
|
1426
1428
|
d == null ? void 0 : d.input
|
|
1427
1429
|
),
|
|
1428
1430
|
onClick: () => f(!a)
|
|
@@ -1436,24 +1438,24 @@ const wn = ({
|
|
|
1436
1438
|
},
|
|
1437
1439
|
disabled: n,
|
|
1438
1440
|
className: o(
|
|
1439
|
-
|
|
1440
|
-
!n && a &&
|
|
1441
|
-
!n && !a &&
|
|
1442
|
-
!n &&
|
|
1443
|
-
n &&
|
|
1441
|
+
B.calendarButton.base,
|
|
1442
|
+
!n && a && B.calendarButton.focus,
|
|
1443
|
+
!n && !a && B.calendarButton.hover,
|
|
1444
|
+
!n && B.calendarButton.active,
|
|
1445
|
+
n && B.calendarButton.disabled
|
|
1444
1446
|
),
|
|
1445
1447
|
children: /* @__PURE__ */ e(
|
|
1446
|
-
|
|
1448
|
+
er,
|
|
1447
1449
|
{
|
|
1448
1450
|
width: 18,
|
|
1449
1451
|
height: 18,
|
|
1450
1452
|
viewBox: "0 0 18 18",
|
|
1451
1453
|
className: o(
|
|
1452
|
-
|
|
1453
|
-
!n && a &&
|
|
1454
|
-
!n && !a &&
|
|
1455
|
-
!n &&
|
|
1456
|
-
n &&
|
|
1454
|
+
B.calendarIcon.base,
|
|
1455
|
+
!n && a && B.calendarIcon.focus,
|
|
1456
|
+
!n && !a && B.calendarIcon.hover,
|
|
1457
|
+
!n && B.calendarIcon.active,
|
|
1458
|
+
n && B.calendarIcon.disabled
|
|
1457
1459
|
)
|
|
1458
1460
|
}
|
|
1459
1461
|
)
|
|
@@ -1462,33 +1464,33 @@ const wn = ({
|
|
|
1462
1464
|
] })
|
|
1463
1465
|
}
|
|
1464
1466
|
),
|
|
1465
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1467
|
+
/* @__PURE__ */ e("div", { ref: y, className: "relative z-50", children: /* @__PURE__ */ e(
|
|
1466
1468
|
le,
|
|
1467
1469
|
{
|
|
1468
1470
|
role: "dialog",
|
|
1469
1471
|
ref: s,
|
|
1470
|
-
container:
|
|
1471
|
-
className:
|
|
1472
|
+
container: y.current,
|
|
1473
|
+
className: B.popoverWrapper,
|
|
1472
1474
|
children: /* @__PURE__ */ p("div", { children: [
|
|
1473
|
-
/* @__PURE__ */ p("div", { className:
|
|
1475
|
+
/* @__PURE__ */ p("div", { className: B.navigation, children: [
|
|
1474
1476
|
/* @__PURE__ */ e(
|
|
1475
1477
|
"button",
|
|
1476
1478
|
{
|
|
1477
1479
|
onClick: () => S(-1),
|
|
1478
|
-
className:
|
|
1480
|
+
className: B.navButton,
|
|
1479
1481
|
children: /* @__PURE__ */ e(
|
|
1480
1482
|
Yt,
|
|
1481
1483
|
{
|
|
1482
1484
|
width: 6,
|
|
1483
1485
|
height: 10,
|
|
1484
|
-
className:
|
|
1486
|
+
className: B.navButton
|
|
1485
1487
|
}
|
|
1486
1488
|
)
|
|
1487
1489
|
}
|
|
1488
1490
|
),
|
|
1489
|
-
/* @__PURE__ */ p("div", { className:
|
|
1491
|
+
/* @__PURE__ */ p("div", { className: B.selectContainer, children: [
|
|
1490
1492
|
/* @__PURE__ */ e(
|
|
1491
|
-
|
|
1493
|
+
Ce,
|
|
1492
1494
|
{
|
|
1493
1495
|
options: Fn.map((g, C) => ({
|
|
1494
1496
|
label: g,
|
|
@@ -1499,21 +1501,21 @@ const wn = ({
|
|
|
1499
1501
|
},
|
|
1500
1502
|
disabled: !1,
|
|
1501
1503
|
onChange: (g) => {
|
|
1502
|
-
|
|
1504
|
+
D(g), f(!0);
|
|
1503
1505
|
},
|
|
1504
1506
|
value: String(h.getMonth())
|
|
1505
1507
|
}
|
|
1506
1508
|
),
|
|
1507
1509
|
/* @__PURE__ */ e(
|
|
1508
|
-
|
|
1510
|
+
Ce,
|
|
1509
1511
|
{
|
|
1510
|
-
options:
|
|
1512
|
+
options: Wn,
|
|
1511
1513
|
classNames: {
|
|
1512
1514
|
trigger: "w-28 h-8"
|
|
1513
1515
|
},
|
|
1514
1516
|
disabled: !1,
|
|
1515
1517
|
onChange: (g) => {
|
|
1516
|
-
|
|
1518
|
+
I(g), f(!0);
|
|
1517
1519
|
},
|
|
1518
1520
|
value: String(h.getFullYear())
|
|
1519
1521
|
}
|
|
@@ -1523,27 +1525,27 @@ const wn = ({
|
|
|
1523
1525
|
"button",
|
|
1524
1526
|
{
|
|
1525
1527
|
onClick: () => S(1),
|
|
1526
|
-
className:
|
|
1528
|
+
className: B.navButton,
|
|
1527
1529
|
children: /* @__PURE__ */ e(
|
|
1528
1530
|
Gt,
|
|
1529
1531
|
{
|
|
1530
1532
|
width: 6,
|
|
1531
1533
|
height: 10,
|
|
1532
|
-
className:
|
|
1534
|
+
className: B.navButton
|
|
1533
1535
|
}
|
|
1534
1536
|
)
|
|
1535
1537
|
}
|
|
1536
1538
|
)
|
|
1537
1539
|
] }),
|
|
1538
|
-
/* @__PURE__ */ e("div", { className:
|
|
1539
|
-
/* @__PURE__ */ e("div", { className:
|
|
1540
|
-
/* @__PURE__ */ e("div", { className:
|
|
1540
|
+
/* @__PURE__ */ e("div", { className: B.weekHeader, children: Mn.map((g) => /* @__PURE__ */ e("div", { className: B.weekDay, children: g }, g)) }),
|
|
1541
|
+
/* @__PURE__ */ e("div", { className: B.calendar, children: An(v, c, h, t) }),
|
|
1542
|
+
/* @__PURE__ */ e("div", { className: B.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: w, className: B.resetButton, children: "Сбросить" }) })
|
|
1541
1543
|
] })
|
|
1542
1544
|
}
|
|
1543
1545
|
) })
|
|
1544
1546
|
] })
|
|
1545
1547
|
] });
|
|
1546
|
-
},
|
|
1548
|
+
}, B = {
|
|
1547
1549
|
base: "relative flex items-start flex-col gap-1.5",
|
|
1548
1550
|
container: "w-full max-w-[132px] h-9",
|
|
1549
1551
|
inputContainer: "relative",
|
|
@@ -1605,7 +1607,7 @@ const wn = ({
|
|
|
1605
1607
|
line: "border border-gray-40",
|
|
1606
1608
|
saveButtonWrapper: "mt-[22px] flex justify-end p-4 pt-0",
|
|
1607
1609
|
saveButton: "px-[15px] py-3 bg-primary-10 text-sidebar-10 text-sm font-semibold rounded-[10px]"
|
|
1608
|
-
},
|
|
1610
|
+
}, J = "dd/MM/yyyy", $n = (t, i, d) => !i || !d ? !1 : t > i && t < d, $o = ({
|
|
1609
1611
|
value: t,
|
|
1610
1612
|
setValue: i,
|
|
1611
1613
|
label: d,
|
|
@@ -1613,59 +1615,59 @@ const wn = ({
|
|
|
1613
1615
|
disabled: r = !1,
|
|
1614
1616
|
classNames: l
|
|
1615
1617
|
}) => {
|
|
1616
|
-
const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s =
|
|
1618
|
+
const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s = ir({
|
|
1617
1619
|
mask: "__/__/____ - __/__/____",
|
|
1618
1620
|
replacement: { _: /\d/ }
|
|
1619
|
-
}),
|
|
1621
|
+
}), y = $.useRef(null), v = $.useRef(!1);
|
|
1620
1622
|
$.useEffect(() => {
|
|
1621
1623
|
if (v.current || !t || !(t.to && t.from)) return;
|
|
1622
|
-
const
|
|
1623
|
-
u(g ? `${
|
|
1624
|
+
const w = t.from ? Z(new Date(t.from), J) : "", g = t.to ? Z(new Date(t.to), J) : "";
|
|
1625
|
+
u(g ? `${w} - ${g}` : `${w} - `);
|
|
1624
1626
|
}, [t]);
|
|
1625
|
-
const
|
|
1626
|
-
if (!
|
|
1627
|
+
const m = Rn.base, S = (w) => {
|
|
1628
|
+
if (!w)
|
|
1627
1629
|
u(""), i(void 0);
|
|
1628
|
-
else if (
|
|
1629
|
-
i(
|
|
1630
|
-
else if (
|
|
1631
|
-
if (
|
|
1632
|
-
const g = { from:
|
|
1630
|
+
else if (w.from && !w.to)
|
|
1631
|
+
i(w), f(w.from), u(Z(new Date(w.from), J) + " - ");
|
|
1632
|
+
else if (w.from && w.to)
|
|
1633
|
+
if (w.to < w.from) {
|
|
1634
|
+
const g = { from: w.to, to: w.from };
|
|
1633
1635
|
i(g), u(
|
|
1634
|
-
|
|
1636
|
+
Z(new Date(g.from), J) + " - " + Z(new Date(g.to), J)
|
|
1635
1637
|
);
|
|
1636
1638
|
} else
|
|
1637
|
-
i(
|
|
1638
|
-
|
|
1639
|
+
i(w), u(
|
|
1640
|
+
Z(new Date(w.from), J) + " - " + Z(new Date(w.to), J)
|
|
1639
1641
|
);
|
|
1640
|
-
},
|
|
1642
|
+
}, D = (w) => {
|
|
1641
1643
|
v.current = !0;
|
|
1642
|
-
const { value: g } =
|
|
1644
|
+
const { value: g } = w.target, [C, j] = g.split("-").map((R) => R.trim());
|
|
1643
1645
|
u(g);
|
|
1644
|
-
const T =
|
|
1645
|
-
|
|
1646
|
-
},
|
|
1646
|
+
const T = wt(C, J, /* @__PURE__ */ new Date()), _ = j ? wt(j, J, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1647
|
+
_e(T) && _e(_) ? i({ from: T, to: _ }) : _e(T) && !_e(_) ? i({ from: T, to: void 0 }) : i({ from: void 0, to: void 0 });
|
|
1648
|
+
}, I = () => {
|
|
1647
1649
|
u(""), i(void 0), f(/* @__PURE__ */ new Date());
|
|
1648
1650
|
};
|
|
1649
|
-
return /* @__PURE__ */ e("div", { className: o(
|
|
1651
|
+
return /* @__PURE__ */ e("div", { className: o(m.wrapper, l == null ? void 0 : l.wrapper), children: /* @__PURE__ */ p(de, { open: b, onOpenChange: x, children: [
|
|
1650
1652
|
/* @__PURE__ */ e(ae, { asChild: !0, role: "trigger", className: l == null ? void 0 : l.trigger, children: /* @__PURE__ */ e(
|
|
1651
|
-
|
|
1653
|
+
jt,
|
|
1652
1654
|
{
|
|
1653
1655
|
ref: s,
|
|
1654
1656
|
label: d,
|
|
1655
1657
|
inputProps: {
|
|
1656
1658
|
id: c,
|
|
1657
1659
|
role: "textbox",
|
|
1658
|
-
onChange:
|
|
1660
|
+
onChange: D,
|
|
1659
1661
|
style: { fontSize: "inherit" },
|
|
1660
1662
|
value: h,
|
|
1661
1663
|
placeholder: "dd/mm/yyyy - dd/mm/yyyy",
|
|
1662
1664
|
status: n,
|
|
1663
1665
|
classNames: {
|
|
1664
|
-
target: o(
|
|
1666
|
+
target: o(m.input, l == null ? void 0 : l.input)
|
|
1665
1667
|
},
|
|
1666
1668
|
disabled: r
|
|
1667
1669
|
},
|
|
1668
|
-
icon:
|
|
1670
|
+
icon: er,
|
|
1669
1671
|
onIconClick: () => x(!0),
|
|
1670
1672
|
iconProps: {
|
|
1671
1673
|
width: 18,
|
|
@@ -1677,21 +1679,21 @@ const wn = ({
|
|
|
1677
1679
|
}
|
|
1678
1680
|
}
|
|
1679
1681
|
) }),
|
|
1680
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1682
|
+
/* @__PURE__ */ e("div", { ref: y, className: "relative z-50", children: /* @__PURE__ */ p(
|
|
1681
1683
|
le,
|
|
1682
1684
|
{
|
|
1683
1685
|
role: "dialog",
|
|
1684
1686
|
style: { borderRadius: 5 },
|
|
1685
1687
|
side: "bottom",
|
|
1686
1688
|
align: "start",
|
|
1687
|
-
container:
|
|
1688
|
-
className: o(
|
|
1689
|
+
container: y.current,
|
|
1690
|
+
className: o(m.content, l == null ? void 0 : l.content),
|
|
1689
1691
|
children: [
|
|
1690
1692
|
/* @__PURE__ */ e(
|
|
1691
1693
|
xn,
|
|
1692
1694
|
{
|
|
1693
1695
|
month: a,
|
|
1694
|
-
locale:
|
|
1696
|
+
locale: pt,
|
|
1695
1697
|
onMonthChange: f,
|
|
1696
1698
|
mode: "range",
|
|
1697
1699
|
numberOfMonths: 2,
|
|
@@ -1700,9 +1702,9 @@ const wn = ({
|
|
|
1700
1702
|
onSelect: S,
|
|
1701
1703
|
classNames: Ln,
|
|
1702
1704
|
components: {
|
|
1703
|
-
DayButton: (
|
|
1705
|
+
DayButton: (w) => {
|
|
1704
1706
|
const g = $n(
|
|
1705
|
-
|
|
1707
|
+
w.day.date,
|
|
1706
1708
|
t == null ? void 0 : t.from,
|
|
1707
1709
|
t == null ? void 0 : t.to
|
|
1708
1710
|
);
|
|
@@ -1713,7 +1715,7 @@ const wn = ({
|
|
|
1713
1715
|
S(void 0);
|
|
1714
1716
|
},
|
|
1715
1717
|
onClick: () => {
|
|
1716
|
-
const C = new Date(
|
|
1718
|
+
const C = new Date(w.day.date);
|
|
1717
1719
|
t != null && t.from ? C <= t.from ? S({
|
|
1718
1720
|
from: C,
|
|
1719
1721
|
to: t.from
|
|
@@ -1725,30 +1727,30 @@ const wn = ({
|
|
|
1725
1727
|
to: void 0
|
|
1726
1728
|
});
|
|
1727
1729
|
},
|
|
1728
|
-
className:
|
|
1730
|
+
className: m.selectButton,
|
|
1729
1731
|
children: /* @__PURE__ */ e(
|
|
1730
1732
|
"div",
|
|
1731
1733
|
{
|
|
1732
1734
|
className: o(
|
|
1733
1735
|
"size-6 rounded-full flex items-center justify-center",
|
|
1734
|
-
(t == null ? void 0 : t.from) &&
|
|
1735
|
-
(t == null ? void 0 : t.to) &&
|
|
1736
|
+
(t == null ? void 0 : t.from) && Z(new Date(t == null ? void 0 : t.from), J) === Z(new Date(w.day.date), J) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1737
|
+
(t == null ? void 0 : t.to) && Z(new Date(t == null ? void 0 : t.to), J) === Z(new Date(w.day.date), J) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1736
1738
|
g && "!bg-primary-40 text-dark-50"
|
|
1737
1739
|
),
|
|
1738
|
-
children: /* @__PURE__ */ e(k, { className: "text-sm font-mono font-medium", children:
|
|
1740
|
+
children: /* @__PURE__ */ e(k, { className: "text-sm font-mono font-medium", children: w.children })
|
|
1739
1741
|
}
|
|
1740
1742
|
)
|
|
1741
1743
|
}
|
|
1742
1744
|
);
|
|
1743
1745
|
},
|
|
1744
|
-
Nav: (
|
|
1746
|
+
Nav: (w) => {
|
|
1745
1747
|
const {
|
|
1746
1748
|
className: g,
|
|
1747
1749
|
onNextClick: C,
|
|
1748
|
-
onPreviousClick:
|
|
1750
|
+
onPreviousClick: j,
|
|
1749
1751
|
nextMonth: T,
|
|
1750
|
-
previousMonth:
|
|
1751
|
-
} =
|
|
1752
|
+
previousMonth: _
|
|
1753
|
+
} = w, R = a, G = fn(a, 1);
|
|
1752
1754
|
return /* @__PURE__ */ p(
|
|
1753
1755
|
"div",
|
|
1754
1756
|
{
|
|
@@ -1761,8 +1763,8 @@ const wn = ({
|
|
|
1761
1763
|
/* @__PURE__ */ e(
|
|
1762
1764
|
"button",
|
|
1763
1765
|
{
|
|
1764
|
-
onClick:
|
|
1765
|
-
disabled: !
|
|
1766
|
+
onClick: j,
|
|
1767
|
+
disabled: !_,
|
|
1766
1768
|
className: "flex items-center justify-center",
|
|
1767
1769
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1768
1770
|
Yt,
|
|
@@ -1775,10 +1777,10 @@ const wn = ({
|
|
|
1775
1777
|
) })
|
|
1776
1778
|
}
|
|
1777
1779
|
),
|
|
1778
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children:
|
|
1780
|
+
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(R, "MMMM yyyy", { locale: pt }) }) })
|
|
1779
1781
|
] }),
|
|
1780
1782
|
/* @__PURE__ */ p("div", { className: "flex items-center w-1/2", children: [
|
|
1781
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children:
|
|
1783
|
+
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(G, "MMMM yyyy", { locale: pt }) }) }),
|
|
1782
1784
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1783
1785
|
Gt,
|
|
1784
1786
|
{
|
|
@@ -1797,13 +1799,13 @@ const wn = ({
|
|
|
1797
1799
|
}
|
|
1798
1800
|
),
|
|
1799
1801
|
/* @__PURE__ */ e(
|
|
1800
|
-
|
|
1802
|
+
M,
|
|
1801
1803
|
{
|
|
1802
1804
|
variant: "text",
|
|
1803
1805
|
type: "button",
|
|
1804
|
-
onClick:
|
|
1806
|
+
onClick: I,
|
|
1805
1807
|
classNames: {
|
|
1806
|
-
base:
|
|
1808
|
+
base: m.resetButton
|
|
1807
1809
|
},
|
|
1808
1810
|
children: "Сбросить"
|
|
1809
1811
|
}
|
|
@@ -1835,65 +1837,66 @@ const wn = ({
|
|
|
1835
1837
|
align: c = "start",
|
|
1836
1838
|
classNames: a
|
|
1837
1839
|
}) => {
|
|
1838
|
-
const [f, h] = $.useState(), [u] =
|
|
1839
|
-
|
|
1840
|
-
},
|
|
1841
|
-
return /* @__PURE__ */ p(
|
|
1840
|
+
const [f, h] = $.useState(), [u] = Ct(), b = Kt(), x = (m) => {
|
|
1841
|
+
h(m), b(`${i}/${m.to}?${u.toString()}`);
|
|
1842
|
+
}, s = Mt.modal, y = s.item, v = Mt.text;
|
|
1843
|
+
return /* @__PURE__ */ p(et, { open: n, onOpenChange: r, children: [
|
|
1842
1844
|
/* @__PURE__ */ e(
|
|
1843
|
-
|
|
1845
|
+
tt,
|
|
1844
1846
|
{
|
|
1845
1847
|
asChild: !0,
|
|
1846
|
-
className: o(
|
|
1848
|
+
className: o(s.trigger, a == null ? void 0 : a.trigger),
|
|
1847
1849
|
children: t
|
|
1848
1850
|
}
|
|
1849
1851
|
),
|
|
1850
1852
|
/* @__PURE__ */ e(
|
|
1851
|
-
|
|
1853
|
+
rt,
|
|
1852
1854
|
{
|
|
1853
1855
|
side: l,
|
|
1854
1856
|
align: c,
|
|
1855
|
-
className: o(
|
|
1856
|
-
children: d == null ? void 0 : d.map((
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
),
|
|
1875
|
-
children: [
|
|
1876
|
-
/* @__PURE__ */ e(
|
|
1877
|
-
"span",
|
|
1878
|
-
{
|
|
1879
|
-
className: o(
|
|
1880
|
-
w.dot,
|
|
1881
|
-
(f == null ? void 0 : f.id) === v.id && "bg-primary-10",
|
|
1882
|
-
a == null ? void 0 : a.dot
|
|
1883
|
-
)
|
|
1884
|
-
}
|
|
1857
|
+
className: o(s.content, a == null ? void 0 : a.content),
|
|
1858
|
+
children: d == null ? void 0 : d.map((m) => {
|
|
1859
|
+
const S = (f == null ? void 0 : f.id) === m.id;
|
|
1860
|
+
return /* @__PURE__ */ e(
|
|
1861
|
+
"div",
|
|
1862
|
+
{
|
|
1863
|
+
className: o(
|
|
1864
|
+
"p-2",
|
|
1865
|
+
S && y.active,
|
|
1866
|
+
S && (a == null ? void 0 : a.item)
|
|
1867
|
+
),
|
|
1868
|
+
children: /* @__PURE__ */ p(
|
|
1869
|
+
Dt,
|
|
1870
|
+
{
|
|
1871
|
+
onClick: () => x(m),
|
|
1872
|
+
className: o(
|
|
1873
|
+
v.base,
|
|
1874
|
+
S && "font-bold",
|
|
1875
|
+
S && (a == null ? void 0 : a.text)
|
|
1885
1876
|
),
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1877
|
+
children: [
|
|
1878
|
+
/* @__PURE__ */ e(
|
|
1879
|
+
"span",
|
|
1880
|
+
{
|
|
1881
|
+
className: o(
|
|
1882
|
+
v.dot,
|
|
1883
|
+
S && "bg-primary-10",
|
|
1884
|
+
a == null ? void 0 : a.dot
|
|
1885
|
+
)
|
|
1886
|
+
}
|
|
1887
|
+
),
|
|
1888
|
+
/* @__PURE__ */ e("span", { children: m.label })
|
|
1889
|
+
]
|
|
1890
|
+
}
|
|
1891
|
+
)
|
|
1892
|
+
},
|
|
1893
|
+
m.id
|
|
1894
|
+
);
|
|
1895
|
+
})
|
|
1893
1896
|
}
|
|
1894
1897
|
)
|
|
1895
1898
|
] });
|
|
1896
|
-
},
|
|
1899
|
+
}, Mt = {
|
|
1897
1900
|
modal: {
|
|
1898
1901
|
trigger: "focus-visible:outline-none",
|
|
1899
1902
|
content: "absolute min-w-[260px] top-0 left-0 flex flex-col bg-sidebar-10 px-2 py-1.5 border border-dark-30/[.10] rounded-[20px] shadow-3xl",
|
|
@@ -1912,21 +1915,21 @@ const wn = ({
|
|
|
1912
1915
|
onFilesUpload: n,
|
|
1913
1916
|
onDelete: r,
|
|
1914
1917
|
classNames: l
|
|
1915
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
1916
|
-
t && /* @__PURE__ */ p("div", { className:
|
|
1917
|
-
/* @__PURE__ */ e(
|
|
1918
|
-
/* @__PURE__ */ p(k, { variant: "p", className:
|
|
1918
|
+
}) => /* @__PURE__ */ p("div", { className: o(U.wrapper, l == null ? void 0 : l.wrapper), children: [
|
|
1919
|
+
t && /* @__PURE__ */ p("div", { className: U.header, children: [
|
|
1920
|
+
/* @__PURE__ */ e(kr, { className: U.headerIcon, role: "img" }),
|
|
1921
|
+
/* @__PURE__ */ p(k, { variant: "p", className: U.headerText, children: [
|
|
1919
1922
|
t,
|
|
1920
1923
|
"(",
|
|
1921
1924
|
d.length,
|
|
1922
1925
|
")"
|
|
1923
1926
|
] })
|
|
1924
1927
|
] }),
|
|
1925
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
1928
|
+
/* @__PURE__ */ p("div", { className: o(U.container, l == null ? void 0 : l.container), children: [
|
|
1926
1929
|
d.length > 0 && d.map((c, a) => /* @__PURE__ */ e("div", { children: c.type.startsWith("image/") && c.publicUrl ? /* @__PURE__ */ p(
|
|
1927
1930
|
"div",
|
|
1928
1931
|
{
|
|
1929
|
-
className: o(
|
|
1932
|
+
className: o(U.imageWrapper, l == null ? void 0 : l.imageWrapper),
|
|
1930
1933
|
children: [
|
|
1931
1934
|
/* @__PURE__ */ p("div", { className: "relative group", children: [
|
|
1932
1935
|
/* @__PURE__ */ e(
|
|
@@ -1934,47 +1937,48 @@ const wn = ({
|
|
|
1934
1937
|
{
|
|
1935
1938
|
src: c.publicUrl,
|
|
1936
1939
|
alt: c.name,
|
|
1937
|
-
className: o(
|
|
1940
|
+
className: o(U.image, l == null ? void 0 : l.image)
|
|
1938
1941
|
}
|
|
1939
1942
|
),
|
|
1940
1943
|
/* @__PURE__ */ e(
|
|
1941
|
-
|
|
1944
|
+
Ue,
|
|
1942
1945
|
{
|
|
1943
1946
|
width: 20,
|
|
1944
1947
|
height: 20,
|
|
1945
|
-
className: o(
|
|
1948
|
+
className: o(U.closeIcon),
|
|
1946
1949
|
onClick: () => r == null ? void 0 : r(c.id)
|
|
1947
1950
|
}
|
|
1948
1951
|
)
|
|
1949
1952
|
] }),
|
|
1950
1953
|
/* @__PURE__ */ e(
|
|
1951
|
-
|
|
1954
|
+
Ge,
|
|
1952
1955
|
{
|
|
1953
1956
|
href: c.publicUrl,
|
|
1954
|
-
classNames: { root:
|
|
1957
|
+
classNames: { root: U.imageText },
|
|
1955
1958
|
isIconVisible: !1,
|
|
1956
1959
|
children: c.name
|
|
1957
1960
|
}
|
|
1958
1961
|
)
|
|
1959
1962
|
]
|
|
1960
1963
|
}
|
|
1961
|
-
) : /* @__PURE__ */ p("div", { className: o(
|
|
1962
|
-
/* @__PURE__ */ e(
|
|
1964
|
+
) : /* @__PURE__ */ p("div", { className: o(U.fileWrapper, l == null ? void 0 : l.file), children: [
|
|
1965
|
+
/* @__PURE__ */ e(Et, { className: U.fileIcon, role: "img" }),
|
|
1963
1966
|
/* @__PURE__ */ p("div", { children: [
|
|
1964
|
-
/* @__PURE__ */ e(k, { variant: "p", className:
|
|
1965
|
-
/* @__PURE__ */ e(k, { variant: "p", className:
|
|
1967
|
+
/* @__PURE__ */ e(k, { variant: "p", className: U.fileText, children: c.name }),
|
|
1968
|
+
/* @__PURE__ */ e(k, { variant: "p", className: U.fileSize, children: yt(c.size) })
|
|
1966
1969
|
] }),
|
|
1967
1970
|
/* @__PURE__ */ e(
|
|
1968
|
-
|
|
1971
|
+
Ge,
|
|
1969
1972
|
{
|
|
1970
1973
|
href: c.downloadUrl ?? "#",
|
|
1971
1974
|
isIconVisible: !1,
|
|
1972
1975
|
classNames: { root: "p-0" },
|
|
1976
|
+
target: "_blank",
|
|
1973
1977
|
children: /* @__PURE__ */ e(
|
|
1974
|
-
|
|
1978
|
+
nr,
|
|
1975
1979
|
{
|
|
1976
1980
|
"data-testid": "download-icon",
|
|
1977
|
-
className:
|
|
1981
|
+
className: U.icon,
|
|
1978
1982
|
width: 24,
|
|
1979
1983
|
height: 24,
|
|
1980
1984
|
viewBox: "0 0 16 17"
|
|
@@ -1983,11 +1987,11 @@ const wn = ({
|
|
|
1983
1987
|
}
|
|
1984
1988
|
),
|
|
1985
1989
|
/* @__PURE__ */ e(
|
|
1986
|
-
|
|
1990
|
+
Ue,
|
|
1987
1991
|
{
|
|
1988
1992
|
width: 24,
|
|
1989
1993
|
height: 24,
|
|
1990
|
-
className:
|
|
1994
|
+
className: U.icon,
|
|
1991
1995
|
onClick: () => r == null ? void 0 : r(c.id),
|
|
1992
1996
|
viewBox: "0 0 20 20"
|
|
1993
1997
|
}
|
|
@@ -1997,9 +2001,9 @@ const wn = ({
|
|
|
1997
2001
|
"label",
|
|
1998
2002
|
{
|
|
1999
2003
|
htmlFor: "file-upload",
|
|
2000
|
-
className: o(
|
|
2004
|
+
className: o(U.target, l == null ? void 0 : l.target),
|
|
2001
2005
|
children: [
|
|
2002
|
-
/* @__PURE__ */ e(
|
|
2006
|
+
/* @__PURE__ */ e(Cr, { className: U.plusIcon, role: "img" }),
|
|
2003
2007
|
/* @__PURE__ */ e(
|
|
2004
2008
|
"input",
|
|
2005
2009
|
{
|
|
@@ -2007,7 +2011,7 @@ const wn = ({
|
|
|
2007
2011
|
type: "file",
|
|
2008
2012
|
onChange: n,
|
|
2009
2013
|
multiple: !0,
|
|
2010
|
-
className:
|
|
2014
|
+
className: U.input
|
|
2011
2015
|
}
|
|
2012
2016
|
)
|
|
2013
2017
|
]
|
|
@@ -2018,11 +2022,11 @@ const wn = ({
|
|
|
2018
2022
|
k,
|
|
2019
2023
|
{
|
|
2020
2024
|
variant: "p",
|
|
2021
|
-
className: o(
|
|
2025
|
+
className: o(U.description, l == null ? void 0 : l.description),
|
|
2022
2026
|
children: i
|
|
2023
2027
|
}
|
|
2024
2028
|
)
|
|
2025
|
-
] }),
|
|
2029
|
+
] }), U = {
|
|
2026
2030
|
wrapper: "flex flex-col w-full",
|
|
2027
2031
|
header: "flex flex-row gap-1 justify-start items-center",
|
|
2028
2032
|
headerIcon: "w-4 h-4 text-dark-40/[.30]",
|
|
@@ -2032,9 +2036,9 @@ const wn = ({
|
|
|
2032
2036
|
image: "w-full rounded-[10px] object-cover border box-border transition-all duration-300 group-hover:brightness-50",
|
|
2033
2037
|
imageText: "max-w-[70px] truncate text-xs underline text-info-10 font-medium focus:border-none p-0",
|
|
2034
2038
|
closeIcon: "absolute top-6 left-6 opacity-0 group-hover:opacity-100 group-hover:animate-slide-up animate-slide-down transition-opacity cursor-pointer fill-dark-20/60 bg-sidebar-10/80 rounded-full",
|
|
2035
|
-
fileWrapper: "flex items-center gap-
|
|
2039
|
+
fileWrapper: "flex items-center gap-1.5 w-[194px] h-[72px] px-3 py-2 justify-start border border-dark-30/[.30] rounded-[10px]",
|
|
2036
2040
|
fileIcon: "text-dark-40/[.30]",
|
|
2037
|
-
fileText: "
|
|
2041
|
+
fileText: "w-[80px] truncate text-sm text-dark-[.30] font-medium",
|
|
2038
2042
|
fileSize: "text-sm text-dark-30/[.30] font-medium",
|
|
2039
2043
|
icon: "fill-dark-20/60 cursor-pointer",
|
|
2040
2044
|
target: "flex items-center justify-center border border-dark-30/[.30] rounded-[10px]",
|
|
@@ -2051,23 +2055,23 @@ const wn = ({
|
|
|
2051
2055
|
icon: c,
|
|
2052
2056
|
iconSizes: a
|
|
2053
2057
|
}) => {
|
|
2054
|
-
const [f, h] = F(!1), b =
|
|
2055
|
-
className:
|
|
2058
|
+
const [f, h] = F(!1), b = tr(n)(l), x = ut.base, s = ut.disabled.trigger, y = ut.disabled.triggerText, v = ({
|
|
2059
|
+
className: m,
|
|
2056
2060
|
text: S = ""
|
|
2057
2061
|
}) => /* @__PURE__ */ e(
|
|
2058
2062
|
k,
|
|
2059
2063
|
{
|
|
2060
2064
|
className: o(
|
|
2061
2065
|
x.placeholder,
|
|
2062
|
-
|
|
2063
|
-
i &&
|
|
2066
|
+
m,
|
|
2067
|
+
i && y
|
|
2064
2068
|
),
|
|
2065
2069
|
children: S
|
|
2066
2070
|
}
|
|
2067
2071
|
);
|
|
2068
|
-
return /* @__PURE__ */ p(
|
|
2072
|
+
return /* @__PURE__ */ p(et, { open: f, onOpenChange: h, children: [
|
|
2069
2073
|
/* @__PURE__ */ p(
|
|
2070
|
-
|
|
2074
|
+
tt,
|
|
2071
2075
|
{
|
|
2072
2076
|
role: "listbox",
|
|
2073
2077
|
disabled: i,
|
|
@@ -2107,43 +2111,43 @@ const wn = ({
|
|
|
2107
2111
|
x.dropdownIcon,
|
|
2108
2112
|
f && "rotate-180 transition-transform"
|
|
2109
2113
|
),
|
|
2110
|
-
children: /* @__PURE__ */ e(
|
|
2114
|
+
children: /* @__PURE__ */ e(Tr, { className: "fill-dark-30" })
|
|
2111
2115
|
}
|
|
2112
2116
|
)
|
|
2113
2117
|
]
|
|
2114
2118
|
}
|
|
2115
2119
|
),
|
|
2116
2120
|
/* @__PURE__ */ e(
|
|
2117
|
-
|
|
2121
|
+
rt,
|
|
2118
2122
|
{
|
|
2119
2123
|
className: o(x.content, t == null ? void 0 : t.content),
|
|
2120
2124
|
align: "end",
|
|
2121
2125
|
sideOffset: 1,
|
|
2122
|
-
children: n && (n == null ? void 0 : n.map((
|
|
2126
|
+
children: n && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ e(
|
|
2123
2127
|
Dt,
|
|
2124
2128
|
{
|
|
2125
2129
|
className: x.items,
|
|
2126
2130
|
onClick: (S) => {
|
|
2127
|
-
S.stopPropagation(), d(
|
|
2131
|
+
S.stopPropagation(), d(m.value), h(!1);
|
|
2128
2132
|
},
|
|
2129
2133
|
children: /* @__PURE__ */ e(
|
|
2130
2134
|
k,
|
|
2131
2135
|
{
|
|
2132
2136
|
className: o(
|
|
2133
2137
|
x.item,
|
|
2134
|
-
l ===
|
|
2135
|
-
l ===
|
|
2138
|
+
l === m.value && "before:bg-dark-10",
|
|
2139
|
+
l === m.value ? "font-semibold" : "font-regular"
|
|
2136
2140
|
),
|
|
2137
|
-
children:
|
|
2141
|
+
children: m.label
|
|
2138
2142
|
}
|
|
2139
2143
|
)
|
|
2140
2144
|
},
|
|
2141
|
-
|
|
2145
|
+
m.value
|
|
2142
2146
|
)))
|
|
2143
2147
|
}
|
|
2144
2148
|
)
|
|
2145
2149
|
] });
|
|
2146
|
-
},
|
|
2150
|
+
}, ut = {
|
|
2147
2151
|
base: {
|
|
2148
2152
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2149
2153
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2174,14 +2178,14 @@ const wn = ({
|
|
|
2174
2178
|
"div",
|
|
2175
2179
|
{
|
|
2176
2180
|
className: o(
|
|
2177
|
-
|
|
2181
|
+
Se.wrapper,
|
|
2178
2182
|
a && "bg-primary-10/[.10]",
|
|
2179
2183
|
n == null ? void 0 : n.wrapper
|
|
2180
2184
|
),
|
|
2181
2185
|
onClick: c,
|
|
2182
2186
|
children: [
|
|
2183
2187
|
/* @__PURE__ */ e(
|
|
2184
|
-
|
|
2188
|
+
Bt,
|
|
2185
2189
|
{
|
|
2186
2190
|
fullName: i,
|
|
2187
2191
|
jobTitle: d,
|
|
@@ -2193,17 +2197,17 @@ const wn = ({
|
|
|
2193
2197
|
}
|
|
2194
2198
|
},
|
|
2195
2199
|
classNames: {
|
|
2196
|
-
fullName:
|
|
2197
|
-
jobTitle:
|
|
2200
|
+
fullName: Se.fullName,
|
|
2201
|
+
jobTitle: Se.jobTitle
|
|
2198
2202
|
}
|
|
2199
2203
|
}
|
|
2200
2204
|
),
|
|
2201
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2202
|
-
/* @__PURE__ */ e("time", { className: o(
|
|
2205
|
+
/* @__PURE__ */ p("div", { className: o(Se.timeWrapper, n == null ? void 0 : n.timeWrapper), children: [
|
|
2206
|
+
/* @__PURE__ */ e("time", { className: o(Se.time, n == null ? void 0 : n.time), children: l }),
|
|
2203
2207
|
!!r && /* @__PURE__ */ e(
|
|
2204
2208
|
k,
|
|
2205
2209
|
{
|
|
2206
|
-
className: o(
|
|
2210
|
+
className: o(Se.notification, n == null ? void 0 : n.notification),
|
|
2207
2211
|
"data-testid": "notification",
|
|
2208
2212
|
children: r
|
|
2209
2213
|
}
|
|
@@ -2211,7 +2215,7 @@ const wn = ({
|
|
|
2211
2215
|
] })
|
|
2212
2216
|
]
|
|
2213
2217
|
}
|
|
2214
|
-
),
|
|
2218
|
+
), Se = {
|
|
2215
2219
|
wrapper: "w-[237px] h-[60px] bg-sidebar-10 flex justify-start items-center gap-2 px-3 py-2 hover:bg-gray-50/[.80] focus-visible:bg-primary-10/[.10] outline-none",
|
|
2216
2220
|
labelWrapper: "flex flex-col",
|
|
2217
2221
|
timeWrapper: "ml-auto self-start",
|
|
@@ -2219,7 +2223,7 @@ const wn = ({
|
|
|
2219
2223
|
notification: "flex items-center justify-center bg-primary-30 w-auto px-1 h-4 text-xs text-sidebar-10 rounded-full font-medium",
|
|
2220
2224
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2221
2225
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2222
|
-
}, zo =
|
|
2226
|
+
}, zo = K(
|
|
2223
2227
|
({ classNames: t, disabled: i, item: { icon: d, label: n = "" }, ...r }, l) => /* @__PURE__ */ p(
|
|
2224
2228
|
"button",
|
|
2225
2229
|
{
|
|
@@ -2286,10 +2290,10 @@ const wn = ({
|
|
|
2286
2290
|
container: "hover:border-primary-20/[.30]"
|
|
2287
2291
|
}
|
|
2288
2292
|
}, Ho = $.forwardRef(({ textareaProps: t, disabled: i, classNames: d, iconSizes: n, onIconClick: r }, l) => {
|
|
2289
|
-
const c =
|
|
2290
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2293
|
+
const c = Ze.base, a = Ze.button, f = (t == null ? void 0 : t.status) === "danger";
|
|
2294
|
+
return /* @__PURE__ */ p("div", { className: o(Ze.parent, d == null ? void 0 : d.parent), children: [
|
|
2291
2295
|
f && /* @__PURE__ */ e(be, { className: "fill-danger-10 mb-[5px]" }),
|
|
2292
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2296
|
+
/* @__PURE__ */ p("div", { className: o(Ze.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2293
2297
|
/* @__PURE__ */ e(
|
|
2294
2298
|
Qt,
|
|
2295
2299
|
{
|
|
@@ -2310,7 +2314,7 @@ const wn = ({
|
|
|
2310
2314
|
d == null ? void 0 : d.button
|
|
2311
2315
|
),
|
|
2312
2316
|
children: /* @__PURE__ */ e(
|
|
2313
|
-
|
|
2317
|
+
Sr,
|
|
2314
2318
|
{
|
|
2315
2319
|
width: n == null ? void 0 : n.width,
|
|
2316
2320
|
height: n == null ? void 0 : n.height,
|
|
@@ -2322,7 +2326,7 @@ const wn = ({
|
|
|
2322
2326
|
)
|
|
2323
2327
|
] })
|
|
2324
2328
|
] });
|
|
2325
|
-
}),
|
|
2329
|
+
}), Ze = {
|
|
2326
2330
|
parent: "flex flex-col",
|
|
2327
2331
|
wrapper: "relative flex items-center w-full",
|
|
2328
2332
|
base: "overflow-hidden resize-none pe-12 min-h-14 w-full",
|
|
@@ -2343,7 +2347,7 @@ const wn = ({
|
|
|
2343
2347
|
hover: "group-hover:text-primary-20",
|
|
2344
2348
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2345
2349
|
}
|
|
2346
|
-
},
|
|
2350
|
+
}, ar = K(
|
|
2347
2351
|
({ checked: t, classNames: i, disabled: d, label: n, ...r }, l) => /* @__PURE__ */ p("div", { className: o(me.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
2348
2352
|
/* @__PURE__ */ e(
|
|
2349
2353
|
qt,
|
|
@@ -2374,18 +2378,18 @@ const wn = ({
|
|
|
2374
2378
|
)
|
|
2375
2379
|
] })
|
|
2376
2380
|
);
|
|
2377
|
-
|
|
2378
|
-
const
|
|
2381
|
+
ar.displayName = "RadioGroup";
|
|
2382
|
+
const Un = ({
|
|
2379
2383
|
openDropdown: t,
|
|
2380
2384
|
setOpenDropdown: i,
|
|
2381
2385
|
isExpanded: d,
|
|
2382
2386
|
item: { id: n, label: r, icon: l, to: c, subItems: a },
|
|
2383
2387
|
onSubNavClick: f
|
|
2384
2388
|
}) => {
|
|
2385
|
-
const [h] =
|
|
2386
|
-
return /* @__PURE__ */ e(Vr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(
|
|
2389
|
+
const [h] = Ct();
|
|
2390
|
+
return /* @__PURE__ */ e(Vr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Zr, { value: String(n), children: [
|
|
2387
2391
|
/* @__PURE__ */ p(
|
|
2388
|
-
|
|
2392
|
+
Qr,
|
|
2389
2393
|
{
|
|
2390
2394
|
className: o(
|
|
2391
2395
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px]",
|
|
@@ -2433,8 +2437,8 @@ const Yn = ({
|
|
|
2433
2437
|
]
|
|
2434
2438
|
}
|
|
2435
2439
|
),
|
|
2436
|
-
d && /* @__PURE__ */ e(
|
|
2437
|
-
|
|
2440
|
+
d && /* @__PURE__ */ e(qr, { className: "flex flex-col items-start", children: a == null ? void 0 : a.map((u) => /* @__PURE__ */ e(
|
|
2441
|
+
Tt,
|
|
2438
2442
|
{
|
|
2439
2443
|
to: `${c}/${u == null ? void 0 : u.to}?${h.toString()}`,
|
|
2440
2444
|
onClick: f,
|
|
@@ -2447,7 +2451,7 @@ const Yn = ({
|
|
|
2447
2451
|
u.id
|
|
2448
2452
|
)) })
|
|
2449
2453
|
] }) });
|
|
2450
|
-
},
|
|
2454
|
+
}, Uo = ({
|
|
2451
2455
|
isExpanded: t = !0,
|
|
2452
2456
|
navList: i,
|
|
2453
2457
|
onCollapse: d
|
|
@@ -2456,7 +2460,7 @@ const Yn = ({
|
|
|
2456
2460
|
null
|
|
2457
2461
|
);
|
|
2458
2462
|
$.useEffect(() => r(null), [l]);
|
|
2459
|
-
const a =
|
|
2463
|
+
const a = Qe.root, f = Qe.header, h = Qe.body, u = Qe.logo;
|
|
2460
2464
|
return /* @__PURE__ */ p(
|
|
2461
2465
|
"aside",
|
|
2462
2466
|
{
|
|
@@ -2469,9 +2473,9 @@ const Yn = ({
|
|
|
2469
2473
|
{
|
|
2470
2474
|
className: o(f.base, t && f.expanded),
|
|
2471
2475
|
children: [
|
|
2472
|
-
/* @__PURE__ */ e(
|
|
2476
|
+
/* @__PURE__ */ e(Tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Rr, {}) : /* @__PURE__ */ e(pn, {}) }),
|
|
2473
2477
|
/* @__PURE__ */ e(
|
|
2474
|
-
|
|
2478
|
+
M,
|
|
2475
2479
|
{
|
|
2476
2480
|
type: "button",
|
|
2477
2481
|
variant: "text",
|
|
@@ -2496,7 +2500,7 @@ const Yn = ({
|
|
|
2496
2500
|
/* @__PURE__ */ e("div", { className: o(h.base, !t && h.expanded), children: i.map((b) => {
|
|
2497
2501
|
var x;
|
|
2498
2502
|
return /* @__PURE__ */ e($.Fragment, { children: (x = b.subItems) != null && x.length ? /* @__PURE__ */ e(
|
|
2499
|
-
|
|
2503
|
+
Un,
|
|
2500
2504
|
{
|
|
2501
2505
|
item: b,
|
|
2502
2506
|
isExpanded: t,
|
|
@@ -2507,7 +2511,7 @@ const Yn = ({
|
|
|
2507
2511
|
onSubNavClick: () => r(null)
|
|
2508
2512
|
}
|
|
2509
2513
|
) : /* @__PURE__ */ e(
|
|
2510
|
-
|
|
2514
|
+
qn,
|
|
2511
2515
|
{
|
|
2512
2516
|
item: b,
|
|
2513
2517
|
badge: b.badge,
|
|
@@ -2520,7 +2524,7 @@ const Yn = ({
|
|
|
2520
2524
|
]
|
|
2521
2525
|
}
|
|
2522
2526
|
);
|
|
2523
|
-
},
|
|
2527
|
+
}, Qe = {
|
|
2524
2528
|
root: {
|
|
2525
2529
|
base: "w-16 min-h-screen bg-sidebar-50 transition-all duration-500 ease-in-out",
|
|
2526
2530
|
expanded: "w-[257px] overflow-x-hidden"
|
|
@@ -2534,7 +2538,7 @@ const Yn = ({
|
|
|
2534
2538
|
base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
|
|
2535
2539
|
expanded: "w-16 items-center"
|
|
2536
2540
|
}
|
|
2537
|
-
},
|
|
2541
|
+
}, Yo = ({
|
|
2538
2542
|
options: t,
|
|
2539
2543
|
selectedValue: i,
|
|
2540
2544
|
onChange: d,
|
|
@@ -2552,10 +2556,10 @@ const Yn = ({
|
|
|
2552
2556
|
"data-testid": "switcher-language",
|
|
2553
2557
|
children: /* @__PURE__ */ p(de, { open: l, onOpenChange: c, children: [
|
|
2554
2558
|
/* @__PURE__ */ e(ae, { className: "focus-visible:outline-none", asChild: !0, children: /* @__PURE__ */ e(
|
|
2555
|
-
|
|
2559
|
+
M,
|
|
2556
2560
|
{
|
|
2557
2561
|
variant: "text",
|
|
2558
|
-
icon:
|
|
2562
|
+
icon: Ne,
|
|
2559
2563
|
iconPosition: "right",
|
|
2560
2564
|
onClick: () => c(!l),
|
|
2561
2565
|
"data-testid": "language-button",
|
|
@@ -2571,7 +2575,7 @@ const Yn = ({
|
|
|
2571
2575
|
children: i.label
|
|
2572
2576
|
}
|
|
2573
2577
|
) }),
|
|
2574
|
-
r && /* @__PURE__ */ e(k, { className:
|
|
2578
|
+
r && /* @__PURE__ */ e(k, { className: ft.error, children: "Введите все языки" }),
|
|
2575
2579
|
/* @__PURE__ */ e(
|
|
2576
2580
|
le,
|
|
2577
2581
|
{
|
|
@@ -2579,11 +2583,11 @@ const Yn = ({
|
|
|
2579
2583
|
align: "center",
|
|
2580
2584
|
sideOffset: 4,
|
|
2581
2585
|
side: "bottom",
|
|
2582
|
-
className: o(
|
|
2583
|
-
children: /* @__PURE__ */ e("div", { className: o(
|
|
2586
|
+
className: o(ft.root, n == null ? void 0 : n.content),
|
|
2587
|
+
children: /* @__PURE__ */ e("div", { className: o(ft.optionsWrapper), children: t.map((h) => {
|
|
2584
2588
|
const u = `radio-${h.value}`;
|
|
2585
2589
|
return /* @__PURE__ */ e(
|
|
2586
|
-
|
|
2590
|
+
ar,
|
|
2587
2591
|
{
|
|
2588
2592
|
id: u,
|
|
2589
2593
|
checked: h.value === (i == null ? void 0 : i.value),
|
|
@@ -2598,11 +2602,11 @@ const Yn = ({
|
|
|
2598
2602
|
] })
|
|
2599
2603
|
}
|
|
2600
2604
|
);
|
|
2601
|
-
},
|
|
2605
|
+
}, ft = {
|
|
2602
2606
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2603
2607
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2604
2608
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
2605
|
-
},
|
|
2609
|
+
}, Yn = [
|
|
2606
2610
|
{
|
|
2607
2611
|
label: "10",
|
|
2608
2612
|
value: "10"
|
|
@@ -2620,7 +2624,7 @@ const Yn = ({
|
|
|
2620
2624
|
value: "100"
|
|
2621
2625
|
}
|
|
2622
2626
|
];
|
|
2623
|
-
function
|
|
2627
|
+
function Gn(t, i) {
|
|
2624
2628
|
if (i <= 10)
|
|
2625
2629
|
return Array.from({ length: i }, (l, c) => c + 1);
|
|
2626
2630
|
const d = [], n = Math.max(t - 2, 1), r = Math.min(t + 2, i);
|
|
@@ -2629,7 +2633,7 @@ function Un(t, i) {
|
|
|
2629
2633
|
l !== 1 && l !== i && d.push(l);
|
|
2630
2634
|
return r < i - 1 && d.push("..."), i > 1 && d.push(i), d;
|
|
2631
2635
|
}
|
|
2632
|
-
const
|
|
2636
|
+
const Go = ({
|
|
2633
2637
|
currentPageIndex: t,
|
|
2634
2638
|
onPageChange: i,
|
|
2635
2639
|
totalPages: d,
|
|
@@ -2638,7 +2642,7 @@ const Uo = ({
|
|
|
2638
2642
|
totalItems: l = 10,
|
|
2639
2643
|
className: c
|
|
2640
2644
|
}) => {
|
|
2641
|
-
const a = t === 1, f = t === d, h = (t - 1) * Number(n) + 1, u = Math.min(t * Number(n), l), b =
|
|
2645
|
+
const a = t === 1, f = t === d, h = (t - 1) * Number(n) + 1, u = Math.min(t * Number(n), l), b = Gn(t, d);
|
|
2642
2646
|
return /* @__PURE__ */ p("div", { className: o(O.wrapper, c), children: [
|
|
2643
2647
|
/* @__PURE__ */ p("div", { className: o(O.countWrapper.base), children: [
|
|
2644
2648
|
/* @__PURE__ */ e("p", { className: o(O.countWrapper.text), children: "Отображено: " }),
|
|
@@ -2652,7 +2656,7 @@ const Uo = ({
|
|
|
2652
2656
|
] }),
|
|
2653
2657
|
/* @__PURE__ */ p("div", { className: o(O.nav.base), children: [
|
|
2654
2658
|
/* @__PURE__ */ e(
|
|
2655
|
-
|
|
2659
|
+
M,
|
|
2656
2660
|
{
|
|
2657
2661
|
disabled: a,
|
|
2658
2662
|
"aria-label": "Previous Page",
|
|
@@ -2666,7 +2670,7 @@ const Uo = ({
|
|
|
2666
2670
|
)
|
|
2667
2671
|
},
|
|
2668
2672
|
children: /* @__PURE__ */ e(
|
|
2669
|
-
|
|
2673
|
+
Lr,
|
|
2670
2674
|
{
|
|
2671
2675
|
width: 28,
|
|
2672
2676
|
height: 28,
|
|
@@ -2680,7 +2684,7 @@ const Uo = ({
|
|
|
2680
2684
|
),
|
|
2681
2685
|
/* @__PURE__ */ e("div", { className: o(O.nav.pageBtnWrapper), children: b.map(
|
|
2682
2686
|
(x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: o(O.pageButton.base), children: "..." }, `dots-${s}`) : /* @__PURE__ */ e(
|
|
2683
|
-
|
|
2687
|
+
M,
|
|
2684
2688
|
{
|
|
2685
2689
|
onClick: () => i == null ? void 0 : i(x),
|
|
2686
2690
|
"aria-current": x === t ? "page" : void 0,
|
|
@@ -2699,7 +2703,7 @@ const Uo = ({
|
|
|
2699
2703
|
)
|
|
2700
2704
|
) }),
|
|
2701
2705
|
/* @__PURE__ */ e(
|
|
2702
|
-
|
|
2706
|
+
M,
|
|
2703
2707
|
{
|
|
2704
2708
|
disabled: f,
|
|
2705
2709
|
"aria-label": "Next Page",
|
|
@@ -2727,9 +2731,9 @@ const Uo = ({
|
|
|
2727
2731
|
}
|
|
2728
2732
|
),
|
|
2729
2733
|
/* @__PURE__ */ e(
|
|
2730
|
-
|
|
2734
|
+
Ce,
|
|
2731
2735
|
{
|
|
2732
|
-
options:
|
|
2736
|
+
options: Yn,
|
|
2733
2737
|
onChange: r,
|
|
2734
2738
|
value: n,
|
|
2735
2739
|
classNames: {
|
|
@@ -2768,9 +2772,15 @@ const Uo = ({
|
|
|
2768
2772
|
text: "text-dark-40/[.50] font-mono text-sm leading-none font-medium",
|
|
2769
2773
|
current: "text-dark-30 font-mono text-sm leading-none font-medium"
|
|
2770
2774
|
}
|
|
2771
|
-
},
|
|
2772
|
-
|
|
2773
|
-
|
|
2775
|
+
}, Ft = {
|
|
2776
|
+
UZ: {
|
|
2777
|
+
mask: "+___ (__) ___ __ __",
|
|
2778
|
+
replacement: { _: /\d/ }
|
|
2779
|
+
},
|
|
2780
|
+
DEFAULT: {
|
|
2781
|
+
mask: "+_______________",
|
|
2782
|
+
replacement: { _: /\d/ }
|
|
2783
|
+
}
|
|
2774
2784
|
}, Eo = ({
|
|
2775
2785
|
value: t = "",
|
|
2776
2786
|
id: i,
|
|
@@ -2778,27 +2788,31 @@ const Uo = ({
|
|
|
2778
2788
|
disabled: n,
|
|
2779
2789
|
autoFocus: r = !1,
|
|
2780
2790
|
status: l,
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2791
|
+
countryCode: c = "DEFAULT",
|
|
2792
|
+
onChange: a,
|
|
2793
|
+
classNames: f,
|
|
2794
|
+
...h
|
|
2784
2795
|
}) => {
|
|
2785
|
-
const
|
|
2786
|
-
() =>
|
|
2796
|
+
const u = Ut(
|
|
2797
|
+
() => Ft[c] || Ft.DEFAULT,
|
|
2798
|
+
[c]
|
|
2799
|
+
), b = ir(u), [x, s] = F(
|
|
2800
|
+
() => ct(String(t), u)
|
|
2787
2801
|
);
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
}, [t]);
|
|
2791
|
-
const
|
|
2792
|
-
const
|
|
2793
|
-
|
|
2794
|
-
},
|
|
2795
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2796
|
-
/* @__PURE__ */ p("div", { className:
|
|
2802
|
+
Me(() => {
|
|
2803
|
+
s(ct(String(t), u));
|
|
2804
|
+
}, [t, u]);
|
|
2805
|
+
const y = (g) => {
|
|
2806
|
+
const C = g.target.value.replace(/\D/g, ""), j = ct(C, u);
|
|
2807
|
+
s(j), a == null || a(C);
|
|
2808
|
+
}, v = we.parent, m = we.base, S = we.hover, D = we.focus, I = we.disabled, w = l && we.variants[l];
|
|
2809
|
+
return /* @__PURE__ */ p("div", { className: o(v, f == null ? void 0 : f.parent), children: [
|
|
2810
|
+
/* @__PURE__ */ p("div", { className: we.title, children: [
|
|
2797
2811
|
!!d && /* @__PURE__ */ e(
|
|
2798
2812
|
P,
|
|
2799
2813
|
{
|
|
2800
2814
|
htmlFor: i,
|
|
2801
|
-
className: o(
|
|
2815
|
+
className: o(f == null ? void 0 : f.label),
|
|
2802
2816
|
disabled: n,
|
|
2803
2817
|
children: d
|
|
2804
2818
|
}
|
|
@@ -2808,36 +2822,37 @@ const Uo = ({
|
|
|
2808
2822
|
/* @__PURE__ */ e(
|
|
2809
2823
|
"input",
|
|
2810
2824
|
{
|
|
2811
|
-
ref:
|
|
2825
|
+
ref: b,
|
|
2812
2826
|
id: i,
|
|
2813
|
-
onChange:
|
|
2814
|
-
value:
|
|
2815
|
-
placeholder: "+998 (
|
|
2827
|
+
onChange: y,
|
|
2828
|
+
value: x,
|
|
2829
|
+
placeholder: c === "UZ" ? "+998 (__) ___ __ __" : "Введите телефон номер",
|
|
2816
2830
|
disabled: n,
|
|
2817
2831
|
autoFocus: r,
|
|
2818
2832
|
className: o(
|
|
2819
|
-
|
|
2820
|
-
!n &&
|
|
2821
|
-
!n &&
|
|
2822
|
-
!n && r &&
|
|
2823
|
-
n &&
|
|
2824
|
-
l === "danger" &&
|
|
2825
|
-
|
|
2833
|
+
m,
|
|
2834
|
+
!n && S,
|
|
2835
|
+
!n && D,
|
|
2836
|
+
!n && r && D,
|
|
2837
|
+
n && I,
|
|
2838
|
+
l === "danger" && w,
|
|
2839
|
+
f == null ? void 0 : f.target
|
|
2826
2840
|
),
|
|
2827
|
-
...
|
|
2841
|
+
...h
|
|
2828
2842
|
}
|
|
2829
2843
|
)
|
|
2830
2844
|
] });
|
|
2831
|
-
},
|
|
2845
|
+
}, we = {
|
|
2832
2846
|
parent: "relative flex flex-col items-start",
|
|
2833
2847
|
base: "mt-1.5 flex gap-2 items-center bg-gray-50 text-sm text-dark-10 leading-none font-sans rounded-[10px] border border-gray-50 p-3.5 placeholder:text-sans placeholder:text-gray-10 placeholder:leading-none outline-none w-full",
|
|
2848
|
+
title: "flex items-center gap-2",
|
|
2834
2849
|
hover: "hover:border-primary-10/[.30] hover:cursor-pointer transition-colors duration-100",
|
|
2835
2850
|
focus: "focus:bg-white focus:border-primary-10 focus:ring-2 focus:ring-primary-10/[.20] focus:outline-none",
|
|
2836
2851
|
disabled: "bg-gray-40 border-gray-40 placeholder:text-dark/25 placeholder:text-sm placeholder:text-sans cursor-not-allowed",
|
|
2837
2852
|
variants: {
|
|
2838
2853
|
danger: "bg-white border border-danger-20 ring-2 ring-danger-40/[.20] focus:border-danger-20 focus:ring-2 focus:ring-danger-40/[.20] hover:border-danger-20"
|
|
2839
2854
|
}
|
|
2840
|
-
}, { Root: En } =
|
|
2855
|
+
}, { Root: En } = rr, Vo = Ht.forwardRef(
|
|
2841
2856
|
({
|
|
2842
2857
|
id: t = "",
|
|
2843
2858
|
title: i,
|
|
@@ -2851,56 +2866,56 @@ const Uo = ({
|
|
|
2851
2866
|
onClick: h,
|
|
2852
2867
|
...u
|
|
2853
2868
|
}, b) => {
|
|
2854
|
-
const [x, s] = F(n || ""),
|
|
2869
|
+
const [x, s] = F(n || ""), y = (g) => {
|
|
2855
2870
|
s(g), r == null || r(t, g);
|
|
2856
|
-
}, v = u.disabled || !1,
|
|
2871
|
+
}, v = u.disabled || !1, m = $e.base, S = $e.pressed, D = $e.hover, I = $e.disabled, w = $e.content;
|
|
2857
2872
|
return /* @__PURE__ */ p(
|
|
2858
2873
|
En,
|
|
2859
2874
|
{
|
|
2860
2875
|
ref: b,
|
|
2861
2876
|
onClick: () => h == null ? void 0 : h(t),
|
|
2862
2877
|
className: o(
|
|
2863
|
-
|
|
2878
|
+
m,
|
|
2864
2879
|
S,
|
|
2865
|
-
!v &&
|
|
2866
|
-
v &&
|
|
2880
|
+
!v && D,
|
|
2881
|
+
v && I,
|
|
2867
2882
|
f
|
|
2868
2883
|
),
|
|
2869
2884
|
...u,
|
|
2870
2885
|
children: [
|
|
2871
|
-
/* @__PURE__ */ p("div", { className:
|
|
2886
|
+
/* @__PURE__ */ p("div", { className: w.header, "data-testid": "plate", children: [
|
|
2872
2887
|
/* @__PURE__ */ e(
|
|
2873
2888
|
k,
|
|
2874
2889
|
{
|
|
2875
2890
|
className: o(
|
|
2876
|
-
|
|
2877
|
-
v &&
|
|
2891
|
+
w.title,
|
|
2892
|
+
v && w.disabled
|
|
2878
2893
|
),
|
|
2879
2894
|
children: i
|
|
2880
2895
|
}
|
|
2881
2896
|
),
|
|
2882
|
-
/* @__PURE__ */ p("div", { className:
|
|
2897
|
+
/* @__PURE__ */ p("div", { className: w.actions, children: [
|
|
2883
2898
|
!!c && /* @__PURE__ */ e(
|
|
2884
|
-
|
|
2899
|
+
lr,
|
|
2885
2900
|
{
|
|
2886
2901
|
options: c,
|
|
2887
2902
|
value: x,
|
|
2888
|
-
onChange:
|
|
2903
|
+
onChange: y,
|
|
2889
2904
|
disabled: v
|
|
2890
2905
|
}
|
|
2891
2906
|
),
|
|
2892
2907
|
!!a && /* @__PURE__ */ p(de, { children: [
|
|
2893
2908
|
/* @__PURE__ */ e(ae, { onClick: (g) => g.stopPropagation(), asChild: !0, children: /* @__PURE__ */ e(
|
|
2894
|
-
|
|
2909
|
+
M,
|
|
2895
2910
|
{
|
|
2896
2911
|
variant: "text",
|
|
2897
2912
|
classNames: {
|
|
2898
|
-
base:
|
|
2913
|
+
base: w.button
|
|
2899
2914
|
},
|
|
2900
2915
|
children: /* @__PURE__ */ e(
|
|
2901
2916
|
tn,
|
|
2902
2917
|
{
|
|
2903
|
-
className:
|
|
2918
|
+
className: w.icon,
|
|
2904
2919
|
width: 15,
|
|
2905
2920
|
height: 15,
|
|
2906
2921
|
viewBox: "0 0 6 24"
|
|
@@ -2908,22 +2923,23 @@ const Uo = ({
|
|
|
2908
2923
|
)
|
|
2909
2924
|
}
|
|
2910
2925
|
) }),
|
|
2911
|
-
/* @__PURE__ */ e(le, { className:
|
|
2926
|
+
/* @__PURE__ */ e(le, { className: w.popup, children: a })
|
|
2912
2927
|
] })
|
|
2913
2928
|
] })
|
|
2914
2929
|
] }),
|
|
2915
|
-
/* @__PURE__ */ e("div", { className:
|
|
2916
|
-
/* @__PURE__ */ e("div", { className:
|
|
2930
|
+
/* @__PURE__ */ e("div", { className: w.flatType, children: !!l && /* @__PURE__ */ e(He, { text: l, variant: "warning" }) }),
|
|
2931
|
+
/* @__PURE__ */ e("div", { className: w.flexWrapper, children: d.map((g) => /* @__PURE__ */ p(k, { className: w.typography, children: [
|
|
2917
2932
|
g.label,
|
|
2918
2933
|
":",
|
|
2919
2934
|
g.href ? /* @__PURE__ */ e(
|
|
2920
|
-
|
|
2935
|
+
Ge,
|
|
2921
2936
|
{
|
|
2922
2937
|
weight: "font-semibold",
|
|
2923
2938
|
isIconVisible: !1,
|
|
2924
2939
|
href: g.href,
|
|
2940
|
+
target: "_blank",
|
|
2925
2941
|
classNames: {
|
|
2926
|
-
root:
|
|
2942
|
+
root: w.link
|
|
2927
2943
|
},
|
|
2928
2944
|
children: String(g.value).slice(0, 15).padEnd(18, ".")
|
|
2929
2945
|
}
|
|
@@ -2931,8 +2947,8 @@ const Uo = ({
|
|
|
2931
2947
|
"span",
|
|
2932
2948
|
{
|
|
2933
2949
|
className: o(
|
|
2934
|
-
|
|
2935
|
-
v &&
|
|
2950
|
+
w.amount,
|
|
2951
|
+
v && w.disabled
|
|
2936
2952
|
),
|
|
2937
2953
|
children: g.value
|
|
2938
2954
|
}
|
|
@@ -2954,33 +2970,33 @@ const Uo = ({
|
|
|
2954
2970
|
flatType: "flex flex-s mb-2.5",
|
|
2955
2971
|
link: "inline bg-gray-40 rounded-xl pb-1.5 pt-1 px-3 text-dark-10",
|
|
2956
2972
|
flexWrapper: "flex flex-col gap-1",
|
|
2957
|
-
typography: "flex items-
|
|
2973
|
+
typography: "flex items-start gap-1 text-sm text-dark-10/[.40] text-start font-medium",
|
|
2958
2974
|
button: "p-0 flex items-center justify-center",
|
|
2959
2975
|
icon: "fill-secondary-10/[.40]",
|
|
2960
2976
|
popup: "flex flex-col px-3 py-2 w-auto items-start gap-2.5",
|
|
2961
|
-
amount: "text-dark-30 font-semibold",
|
|
2977
|
+
amount: "block text-dark-30 font-semibold break-all",
|
|
2962
2978
|
disabled: "text-dark-30/[.42]"
|
|
2963
2979
|
}
|
|
2964
|
-
},
|
|
2965
|
-
|
|
2980
|
+
}, Zo = Ht.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: d, classNames: n, iconSizes: r }, l) => /* @__PURE__ */ e(
|
|
2981
|
+
Jt,
|
|
2966
2982
|
{
|
|
2967
2983
|
ref: l,
|
|
2968
2984
|
value: i,
|
|
2969
2985
|
onValueChange: d,
|
|
2970
|
-
className: o(n == null ? void 0 : n.tab,
|
|
2971
|
-
children: /* @__PURE__ */ e(
|
|
2972
|
-
|
|
2986
|
+
className: o(n == null ? void 0 : n.tab, ye.tab),
|
|
2987
|
+
children: /* @__PURE__ */ e(Pt, { className: o(ye.list, n == null ? void 0 : n.list), children: t && t.map((c) => /* @__PURE__ */ p(
|
|
2988
|
+
Nt,
|
|
2973
2989
|
{
|
|
2974
2990
|
value: c.value,
|
|
2975
2991
|
disabled: c.disabled,
|
|
2976
|
-
className: o(
|
|
2992
|
+
className: o(ye.trigger, n == null ? void 0 : n.trigger),
|
|
2977
2993
|
children: [
|
|
2978
|
-
/* @__PURE__ */ p(k, { variant: "span", className:
|
|
2994
|
+
/* @__PURE__ */ p(k, { variant: "span", className: ye.label, children: [
|
|
2979
2995
|
(c == null ? void 0 : c.icon) && /* @__PURE__ */ e(
|
|
2980
2996
|
c.icon,
|
|
2981
2997
|
{
|
|
2982
2998
|
className: o(
|
|
2983
|
-
i === c.value ?
|
|
2999
|
+
i === c.value ? ye.activeIcon : ye.iconInactive,
|
|
2984
3000
|
n == null ? void 0 : n.icon
|
|
2985
3001
|
),
|
|
2986
3002
|
width: r == null ? void 0 : r.width,
|
|
@@ -2991,13 +3007,13 @@ const Uo = ({
|
|
|
2991
3007
|
" ",
|
|
2992
3008
|
c.label
|
|
2993
3009
|
] }),
|
|
2994
|
-
c.badge && /* @__PURE__ */ e(k, { variant: "span", className:
|
|
3010
|
+
c.badge && /* @__PURE__ */ e(k, { variant: "span", className: ye.badge, children: c.badge })
|
|
2995
3011
|
]
|
|
2996
3012
|
},
|
|
2997
3013
|
c.value
|
|
2998
3014
|
)) })
|
|
2999
3015
|
}
|
|
3000
|
-
)),
|
|
3016
|
+
)), ye = {
|
|
3001
3017
|
tab: "w-full",
|
|
3002
3018
|
list: "font-mono relative w-full flex gap-2.5 items-end justify-center border-b-[2px] border-dark-40/[.15] px-5 bg-white py-0 rounded-none",
|
|
3003
3019
|
trigger: "relative group h-auto items-end text-dark-40/[.5] pb-2 w-[137px] hover:text-primary-20 disabled:text-dark-40/[.15] after:absolute after:bottom-[-2px] after:left-0 after:h-[3px] after:w-full after:bg-dark-30 after:rounded-[5px] after:transition-transform after:duration-300 after:scale-x-0 data-[state=active]:text-dark-40 data-[state=active]:after:scale-x-100",
|
|
@@ -3006,24 +3022,24 @@ const Uo = ({
|
|
|
3006
3022
|
label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
|
|
3007
3023
|
activeIcon: "fill-dark-40",
|
|
3008
3024
|
iconInactive: "fill-dark-40/[.50]"
|
|
3009
|
-
},
|
|
3025
|
+
}, Qo = $.forwardRef(
|
|
3010
3026
|
({ tabs: t = [], activeTab: i, onTabChange: d, onEditTabContent: n, classNames: r }, l) => {
|
|
3011
|
-
const c =
|
|
3027
|
+
const c = De.base, a = De.list, f = De.trigger, h = De.content, u = De.overlayBorder, b = De.datalist, x = ({ list: s }) => /* @__PURE__ */ e(
|
|
3012
3028
|
"ul",
|
|
3013
3029
|
{
|
|
3014
3030
|
role: "listbox",
|
|
3015
3031
|
className: o(b.base, r == null ? void 0 : r.datalist),
|
|
3016
|
-
children: s.map((
|
|
3032
|
+
children: s.map((y, v) => /* @__PURE__ */ p(
|
|
3017
3033
|
"li",
|
|
3018
3034
|
{
|
|
3019
3035
|
className: o(b.item, r == null ? void 0 : r.dataItem),
|
|
3020
3036
|
children: [
|
|
3021
3037
|
/* @__PURE__ */ p("span", { className: "text-dark-40/50", children: [
|
|
3022
|
-
|
|
3038
|
+
y.label,
|
|
3023
3039
|
":"
|
|
3024
3040
|
] }),
|
|
3025
3041
|
" ",
|
|
3026
|
-
|
|
3042
|
+
y.value
|
|
3027
3043
|
]
|
|
3028
3044
|
},
|
|
3029
3045
|
v
|
|
@@ -3031,22 +3047,22 @@ const Uo = ({
|
|
|
3031
3047
|
}
|
|
3032
3048
|
);
|
|
3033
3049
|
return /* @__PURE__ */ p(
|
|
3034
|
-
|
|
3050
|
+
Jt,
|
|
3035
3051
|
{
|
|
3036
3052
|
ref: l,
|
|
3037
3053
|
value: i,
|
|
3038
3054
|
onValueChange: d,
|
|
3039
3055
|
className: o(c, r == null ? void 0 : r.base),
|
|
3040
3056
|
children: [
|
|
3041
|
-
/* @__PURE__ */ e(
|
|
3042
|
-
|
|
3057
|
+
/* @__PURE__ */ e(Pt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3058
|
+
Nt,
|
|
3043
3059
|
{
|
|
3044
3060
|
value: s.value,
|
|
3045
3061
|
disabled: s.disabled,
|
|
3046
3062
|
className: o(
|
|
3047
3063
|
"curved-tab",
|
|
3048
|
-
|
|
3049
|
-
|
|
3064
|
+
y === 0 && "first-tab",
|
|
3065
|
+
y === v.length - 1 && "last-tab",
|
|
3050
3066
|
f.base,
|
|
3051
3067
|
f.active,
|
|
3052
3068
|
f.hover,
|
|
@@ -3054,7 +3070,7 @@ const Uo = ({
|
|
|
3054
3070
|
r == null ? void 0 : r.trigger
|
|
3055
3071
|
),
|
|
3056
3072
|
children: [
|
|
3057
|
-
|
|
3073
|
+
y + 1,
|
|
3058
3074
|
i === s.value && /* @__PURE__ */ e(
|
|
3059
3075
|
"div",
|
|
3060
3076
|
{
|
|
@@ -3065,28 +3081,28 @@ const Uo = ({
|
|
|
3065
3081
|
},
|
|
3066
3082
|
s.value
|
|
3067
3083
|
)) }),
|
|
3068
|
-
t.map((s,
|
|
3069
|
-
|
|
3084
|
+
t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3085
|
+
Kr,
|
|
3070
3086
|
{
|
|
3071
3087
|
value: s.value,
|
|
3072
3088
|
className: o(
|
|
3073
3089
|
h.base,
|
|
3074
|
-
|
|
3075
|
-
|
|
3090
|
+
y === 0 && "rounded-ss-none",
|
|
3091
|
+
y === v.length - 1 && "rounded-se-none",
|
|
3076
3092
|
r == null ? void 0 : r.content
|
|
3077
3093
|
),
|
|
3078
3094
|
children: [
|
|
3079
3095
|
/* @__PURE__ */ p("div", { className: h.title.wrapper, children: [
|
|
3080
3096
|
/* @__PURE__ */ p(k, { className: h.title.text, children: [
|
|
3081
3097
|
"Квартира – ",
|
|
3082
|
-
|
|
3098
|
+
y + 1
|
|
3083
3099
|
] }),
|
|
3084
3100
|
/* @__PURE__ */ e(
|
|
3085
3101
|
"button",
|
|
3086
3102
|
{
|
|
3087
3103
|
className: "hover:cursor-pointer",
|
|
3088
3104
|
onClick: () => n(s),
|
|
3089
|
-
children: /* @__PURE__ */ e(
|
|
3105
|
+
children: /* @__PURE__ */ e(Dr, { className: "fill-sidebar-10" })
|
|
3090
3106
|
}
|
|
3091
3107
|
)
|
|
3092
3108
|
] }),
|
|
@@ -3097,13 +3113,13 @@ const Uo = ({
|
|
|
3097
3113
|
/* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(x, { list: s.content.secondary }) })
|
|
3098
3114
|
]
|
|
3099
3115
|
},
|
|
3100
|
-
|
|
3116
|
+
y
|
|
3101
3117
|
))
|
|
3102
3118
|
]
|
|
3103
3119
|
}
|
|
3104
3120
|
);
|
|
3105
3121
|
}
|
|
3106
|
-
),
|
|
3122
|
+
), De = {
|
|
3107
3123
|
base: "relative w-full",
|
|
3108
3124
|
list: "gap-1.5 bg-transparent p-0",
|
|
3109
3125
|
trigger: {
|
|
@@ -3128,7 +3144,7 @@ const Uo = ({
|
|
|
3128
3144
|
base: "flex flex-col gap-1.5",
|
|
3129
3145
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3130
3146
|
}
|
|
3131
|
-
},
|
|
3147
|
+
}, qo = ({
|
|
3132
3148
|
disabled: t,
|
|
3133
3149
|
labelProps: i,
|
|
3134
3150
|
textareaProps: d,
|
|
@@ -3145,7 +3161,7 @@ const Uo = ({
|
|
|
3145
3161
|
}, Ot = {
|
|
3146
3162
|
root: "w-full flex flex-col gap-1.5",
|
|
3147
3163
|
labelWrapper: "flex items-center gap-2"
|
|
3148
|
-
},
|
|
3164
|
+
}, Ko = ({
|
|
3149
3165
|
fieldLabel: t,
|
|
3150
3166
|
disabled: i,
|
|
3151
3167
|
className: d,
|
|
@@ -3155,7 +3171,7 @@ const Uo = ({
|
|
|
3155
3171
|
}) => /* @__PURE__ */ p("div", { className: o(Vn.root, d), children: [
|
|
3156
3172
|
/* @__PURE__ */ e(P, { ...n, disabled: i, children: t }),
|
|
3157
3173
|
/* @__PURE__ */ e(
|
|
3158
|
-
|
|
3174
|
+
_r,
|
|
3159
3175
|
{
|
|
3160
3176
|
disabled: i,
|
|
3161
3177
|
onClick: l,
|
|
@@ -3167,14 +3183,14 @@ const Uo = ({
|
|
|
3167
3183
|
)
|
|
3168
3184
|
] }), Vn = {
|
|
3169
3185
|
root: "flex flex-col items-start gap-3"
|
|
3170
|
-
},
|
|
3186
|
+
}, Be = {
|
|
3171
3187
|
wrapper: "flex items-center justify-between cursor-pointer w-[330px] h-11 bg-gray-50 rounded-2xl p-4 border-2 border-transparent transition-all duration-300 ease-in-out hover:border-2 hover:border-primary-20/20",
|
|
3172
3188
|
button: {
|
|
3173
3189
|
basic: "w-4 h-4 p-0 bg-transparent active:bg-transparent focus:bg-transparent hover:bg-transparent shadow-none hover:shadow-none active:shadow-none focus:shadow-none ring-0 focus:outline-none border-none",
|
|
3174
3190
|
active: "active:bg-transparent w-4 h-4 p-0 bg-transparent focus:bg-transparent hover:bg-transparent shadow-none hover:shadow-none active:shadow-none focus:shadow-none ring-0 focus:outline-none border-none"
|
|
3175
3191
|
},
|
|
3176
3192
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3177
|
-
},
|
|
3193
|
+
}, Xo = K(
|
|
3178
3194
|
({
|
|
3179
3195
|
blockName: t,
|
|
3180
3196
|
className: i,
|
|
@@ -3188,34 +3204,34 @@ const Uo = ({
|
|
|
3188
3204
|
{
|
|
3189
3205
|
ref: a,
|
|
3190
3206
|
draggable: !0,
|
|
3191
|
-
className: o(
|
|
3207
|
+
className: o(Be.wrapper, i),
|
|
3192
3208
|
onDragStart: d,
|
|
3193
3209
|
onDragEnd: n,
|
|
3194
3210
|
...c,
|
|
3195
3211
|
children: [
|
|
3196
3212
|
/* @__PURE__ */ e(
|
|
3197
|
-
|
|
3213
|
+
M,
|
|
3198
3214
|
{
|
|
3199
3215
|
onClick: r,
|
|
3200
3216
|
type: "button",
|
|
3201
3217
|
"data-testid": "dragAndDrop-menu-button",
|
|
3202
3218
|
variant: "text",
|
|
3203
3219
|
classNames: {
|
|
3204
|
-
base: o(
|
|
3220
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3205
3221
|
},
|
|
3206
|
-
children: /* @__PURE__ */ e(
|
|
3222
|
+
children: /* @__PURE__ */ e(Gr, {})
|
|
3207
3223
|
}
|
|
3208
3224
|
),
|
|
3209
|
-
/* @__PURE__ */ e(k, { className:
|
|
3225
|
+
/* @__PURE__ */ e(k, { className: Be.wrapperBlockName, children: t || "-" }),
|
|
3210
3226
|
/* @__PURE__ */ e(
|
|
3211
|
-
|
|
3227
|
+
M,
|
|
3212
3228
|
{
|
|
3213
3229
|
onClick: l,
|
|
3214
3230
|
type: "button",
|
|
3215
3231
|
"data-testid": "dragAndDrop-close-button",
|
|
3216
3232
|
variant: "text",
|
|
3217
3233
|
classNames: {
|
|
3218
|
-
base: o(
|
|
3234
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3219
3235
|
},
|
|
3220
3236
|
children: /* @__PURE__ */ e(rn, {})
|
|
3221
3237
|
}
|
|
@@ -3223,7 +3239,7 @@ const Uo = ({
|
|
|
3223
3239
|
]
|
|
3224
3240
|
}
|
|
3225
3241
|
)
|
|
3226
|
-
),
|
|
3242
|
+
), Zn = [
|
|
3227
3243
|
"Январь",
|
|
3228
3244
|
"Февраль",
|
|
3229
3245
|
"Март",
|
|
@@ -3236,12 +3252,12 @@ const Uo = ({
|
|
|
3236
3252
|
"Октябрь",
|
|
3237
3253
|
"Ноябрь",
|
|
3238
3254
|
"Декабрь"
|
|
3239
|
-
],
|
|
3255
|
+
], Qn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
3240
3256
|
(t) => ({
|
|
3241
3257
|
label: t.toString(),
|
|
3242
3258
|
value: t.toString()
|
|
3243
3259
|
})
|
|
3244
|
-
),
|
|
3260
|
+
), Jo = ({
|
|
3245
3261
|
value: t,
|
|
3246
3262
|
setValue: i,
|
|
3247
3263
|
disabled: d,
|
|
@@ -3252,72 +3268,72 @@ const Uo = ({
|
|
|
3252
3268
|
const c = ue(null), a = (T) => {
|
|
3253
3269
|
if (!T) return;
|
|
3254
3270
|
if (T instanceof Date) return T;
|
|
3255
|
-
const
|
|
3256
|
-
if (
|
|
3271
|
+
const _ = wt(T, "dd.MM.yyyy", /* @__PURE__ */ new Date());
|
|
3272
|
+
if (_e(_)) return _;
|
|
3257
3273
|
const R = bn(T);
|
|
3258
|
-
return
|
|
3274
|
+
return _e(R) ? R : void 0;
|
|
3259
3275
|
}, [f, h] = F(
|
|
3260
3276
|
a(t)
|
|
3261
3277
|
), [u, b] = F(
|
|
3262
3278
|
f == null ? void 0 : f.getDate()
|
|
3263
3279
|
), [x, s] = F(
|
|
3264
3280
|
f == null ? void 0 : f.getMonth()
|
|
3265
|
-
), [
|
|
3281
|
+
), [y, v] = F(
|
|
3266
3282
|
f == null ? void 0 : f.getFullYear()
|
|
3267
3283
|
);
|
|
3268
|
-
|
|
3284
|
+
Me(() => {
|
|
3269
3285
|
const T = a(t);
|
|
3270
3286
|
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), v(T == null ? void 0 : T.getFullYear());
|
|
3271
3287
|
}, [t]);
|
|
3272
|
-
const
|
|
3273
|
-
const T = new Date(S,
|
|
3274
|
-
return Array.from({ length: T }, (
|
|
3275
|
-
const
|
|
3288
|
+
const m = /* @__PURE__ */ new Date(), S = y ?? m.getFullYear(), D = x ?? m.getMonth(), I = Ut(() => {
|
|
3289
|
+
const T = new Date(S, D + 1, 0).getDate();
|
|
3290
|
+
return Array.from({ length: T }, (_, R) => {
|
|
3291
|
+
const G = R + 1;
|
|
3276
3292
|
return {
|
|
3277
|
-
label:
|
|
3278
|
-
value:
|
|
3293
|
+
label: G.toString().padStart(2, "0"),
|
|
3294
|
+
value: G.toString()
|
|
3279
3295
|
};
|
|
3280
3296
|
});
|
|
3281
|
-
}, [
|
|
3282
|
-
if (T !== void 0 &&
|
|
3283
|
-
const
|
|
3284
|
-
h(
|
|
3297
|
+
}, [D, S]), w = (T, _, R) => {
|
|
3298
|
+
if (T !== void 0 && _ !== void 0 && R !== void 0) {
|
|
3299
|
+
const G = new Date(R, _, T);
|
|
3300
|
+
h(G), i(jr(G));
|
|
3285
3301
|
} else
|
|
3286
3302
|
h(void 0), i(void 0);
|
|
3287
3303
|
}, g = (T) => {
|
|
3288
|
-
const
|
|
3289
|
-
s(
|
|
3304
|
+
const _ = parseInt(T);
|
|
3305
|
+
s(_), w(u, _, y);
|
|
3290
3306
|
}, C = (T) => {
|
|
3291
|
-
const
|
|
3292
|
-
v(
|
|
3293
|
-
},
|
|
3294
|
-
const
|
|
3295
|
-
b(
|
|
3307
|
+
const _ = parseInt(T);
|
|
3308
|
+
v(_), w(u, x, _);
|
|
3309
|
+
}, j = (T) => {
|
|
3310
|
+
const _ = parseInt(T);
|
|
3311
|
+
b(_), w(_, x, y);
|
|
3296
3312
|
};
|
|
3297
3313
|
return /* @__PURE__ */ p("div", { ref: c, className: At.root, children: [
|
|
3298
3314
|
!!n && /* @__PURE__ */ e(P, { className: o(l == null ? void 0 : l.label), children: n }),
|
|
3299
3315
|
/* @__PURE__ */ p("div", { className: At.selectContainer, children: [
|
|
3300
3316
|
/* @__PURE__ */ e(
|
|
3301
|
-
|
|
3317
|
+
Ce,
|
|
3302
3318
|
{
|
|
3303
|
-
options:
|
|
3319
|
+
options: I,
|
|
3304
3320
|
classNames: {
|
|
3305
3321
|
trigger: o("w-full h-11 bg-gray-50", l == null ? void 0 : l.selectTrigger),
|
|
3306
3322
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
3307
3323
|
},
|
|
3308
3324
|
disabled: d,
|
|
3309
|
-
onChange:
|
|
3325
|
+
onChange: j,
|
|
3310
3326
|
value: u !== void 0 ? String(u) : "",
|
|
3311
3327
|
placeholder: "День",
|
|
3312
3328
|
status: r === "danger" ? "danger" : void 0
|
|
3313
3329
|
}
|
|
3314
3330
|
),
|
|
3315
3331
|
/* @__PURE__ */ e(
|
|
3316
|
-
|
|
3332
|
+
Ce,
|
|
3317
3333
|
{
|
|
3318
|
-
options:
|
|
3334
|
+
options: Zn.map((T, _) => ({
|
|
3319
3335
|
label: T,
|
|
3320
|
-
value:
|
|
3336
|
+
value: _.toString()
|
|
3321
3337
|
})),
|
|
3322
3338
|
classNames: {
|
|
3323
3339
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
@@ -3331,17 +3347,17 @@ const Uo = ({
|
|
|
3331
3347
|
}
|
|
3332
3348
|
),
|
|
3333
3349
|
/* @__PURE__ */ e(
|
|
3334
|
-
|
|
3350
|
+
Ce,
|
|
3335
3351
|
{
|
|
3336
|
-
options:
|
|
3352
|
+
options: Qn,
|
|
3337
3353
|
classNames: {
|
|
3338
3354
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
3339
3355
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
3340
3356
|
},
|
|
3341
3357
|
disabled: d,
|
|
3342
3358
|
onChange: C,
|
|
3343
|
-
value:
|
|
3344
|
-
autoFocusValue: String(
|
|
3359
|
+
value: y !== void 0 ? String(y) : "",
|
|
3360
|
+
autoFocusValue: String(m.getFullYear()),
|
|
3345
3361
|
placeholder: "Год",
|
|
3346
3362
|
status: r === "danger" ? "danger" : void 0
|
|
3347
3363
|
}
|
|
@@ -3353,7 +3369,7 @@ const Uo = ({
|
|
|
3353
3369
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3354
3370
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3355
3371
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3356
|
-
},
|
|
3372
|
+
}, qn = ({
|
|
3357
3373
|
badge: t,
|
|
3358
3374
|
isExpanded: i = !0,
|
|
3359
3375
|
isActive: d = !1,
|
|
@@ -3362,9 +3378,9 @@ const Uo = ({
|
|
|
3362
3378
|
classNames: a,
|
|
3363
3379
|
onClick: f
|
|
3364
3380
|
}) => {
|
|
3365
|
-
const [h] =
|
|
3381
|
+
const [h] = Ct(), u = bt.base;
|
|
3366
3382
|
return /* @__PURE__ */ p(
|
|
3367
|
-
|
|
3383
|
+
Tt,
|
|
3368
3384
|
{
|
|
3369
3385
|
tabIndex: 1,
|
|
3370
3386
|
role: "link",
|
|
@@ -3405,7 +3421,7 @@ const Uo = ({
|
|
|
3405
3421
|
{
|
|
3406
3422
|
"text-primary-10": d,
|
|
3407
3423
|
"text-sidebar/[.15]": n,
|
|
3408
|
-
[
|
|
3424
|
+
[bt.expanded.label]: !i
|
|
3409
3425
|
},
|
|
3410
3426
|
a == null ? void 0 : a.label
|
|
3411
3427
|
),
|
|
@@ -3418,7 +3434,7 @@ const Uo = ({
|
|
|
3418
3434
|
variant: "span",
|
|
3419
3435
|
className: o(
|
|
3420
3436
|
u.badge,
|
|
3421
|
-
!i &&
|
|
3437
|
+
!i && bt.expanded.badge,
|
|
3422
3438
|
a == null ? void 0 : a.badge
|
|
3423
3439
|
),
|
|
3424
3440
|
children: t
|
|
@@ -3428,7 +3444,7 @@ const Uo = ({
|
|
|
3428
3444
|
]
|
|
3429
3445
|
}
|
|
3430
3446
|
);
|
|
3431
|
-
},
|
|
3447
|
+
}, bt = {
|
|
3432
3448
|
base: {
|
|
3433
3449
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3434
3450
|
labelWrapper: "relative inline-block",
|
|
@@ -3448,14 +3464,14 @@ const Uo = ({
|
|
|
3448
3464
|
setActiveStep: d,
|
|
3449
3465
|
disabled: n = !1,
|
|
3450
3466
|
classNames: r
|
|
3451
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3452
|
-
i && /* @__PURE__ */ p("div", { className: o(
|
|
3467
|
+
}) => /* @__PURE__ */ p("div", { className: o(Y.root, r == null ? void 0 : r.root), "data-testid": "stepper", children: [
|
|
3468
|
+
i && /* @__PURE__ */ p("div", { className: o(Y.header, r == null ? void 0 : r.header), children: [
|
|
3453
3469
|
/* @__PURE__ */ e(un, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3454
3470
|
/* @__PURE__ */ e(
|
|
3455
|
-
|
|
3471
|
+
Je,
|
|
3456
3472
|
{
|
|
3457
3473
|
variant: "h2",
|
|
3458
|
-
className:
|
|
3474
|
+
className: Y.headerTitle,
|
|
3459
3475
|
"data-testid": "stepper-title",
|
|
3460
3476
|
children: i
|
|
3461
3477
|
}
|
|
@@ -3464,34 +3480,34 @@ const Uo = ({
|
|
|
3464
3480
|
/* @__PURE__ */ e(
|
|
3465
3481
|
"div",
|
|
3466
3482
|
{
|
|
3467
|
-
className: o(
|
|
3483
|
+
className: o(Y.timeline, r == null ? void 0 : r.timeline),
|
|
3468
3484
|
"data-testid": "stepper-timeline",
|
|
3469
3485
|
children: t.map((l, c) => /* @__PURE__ */ p(
|
|
3470
3486
|
"div",
|
|
3471
3487
|
{
|
|
3472
3488
|
"data-testid": `step-${c}`,
|
|
3473
|
-
className: o(
|
|
3489
|
+
className: o(Y.stepWrapper, r == null ? void 0 : r.stepWrapper),
|
|
3474
3490
|
children: [
|
|
3475
|
-
c < t.length - 1 && /* @__PURE__ */ e("span", { className:
|
|
3476
|
-
/* @__PURE__ */ e("div", { className:
|
|
3491
|
+
c < t.length - 1 && /* @__PURE__ */ e("span", { className: Y.verticalLine }),
|
|
3492
|
+
/* @__PURE__ */ e("div", { className: Y.statusDotWrapper, children: l.activeStep ? /* @__PURE__ */ e("div", { className: Y.activeDot, children: /* @__PURE__ */ e("span", { className: Y.activeDotInner }) }) : /* @__PURE__ */ e(
|
|
3477
3493
|
"div",
|
|
3478
3494
|
{
|
|
3479
3495
|
onClick: () => !n && d(c),
|
|
3480
3496
|
className: o(
|
|
3481
|
-
|
|
3497
|
+
Y.completedDotWrapper,
|
|
3482
3498
|
n ? "cursor-not-allowed" : "cursor-pointer"
|
|
3483
3499
|
),
|
|
3484
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3500
|
+
children: /* @__PURE__ */ e("span", { className: Y.completedDot })
|
|
3485
3501
|
}
|
|
3486
3502
|
) }),
|
|
3487
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
3503
|
+
/* @__PURE__ */ p("div", { className: o(Y.content, r == null ? void 0 : r.content), children: [
|
|
3488
3504
|
/* @__PURE__ */ e(
|
|
3489
|
-
|
|
3505
|
+
Je,
|
|
3490
3506
|
{
|
|
3491
3507
|
variant: "h3",
|
|
3492
3508
|
"data-testid": `step-${c}-title`,
|
|
3493
3509
|
className: o(
|
|
3494
|
-
l.activeStep ?
|
|
3510
|
+
l.activeStep ? Y.title : Y.titleCompleted,
|
|
3495
3511
|
r == null ? void 0 : r.title
|
|
3496
3512
|
),
|
|
3497
3513
|
children: l.title
|
|
@@ -3502,7 +3518,7 @@ const Uo = ({
|
|
|
3502
3518
|
{
|
|
3503
3519
|
"data-testid": `step-${c}-subtitle`,
|
|
3504
3520
|
className: o(
|
|
3505
|
-
l.activeStep ?
|
|
3521
|
+
l.activeStep ? Y.subtitle : Y.subtitleCompleted,
|
|
3506
3522
|
r == null ? void 0 : r.subtitle
|
|
3507
3523
|
),
|
|
3508
3524
|
children: l.subtitle
|
|
@@ -3513,7 +3529,7 @@ const Uo = ({
|
|
|
3513
3529
|
{
|
|
3514
3530
|
"data-testid": `step-${c}-date`,
|
|
3515
3531
|
className: o(
|
|
3516
|
-
l.activeStep ?
|
|
3532
|
+
l.activeStep ? Y.date : Y.dateCompleted,
|
|
3517
3533
|
r == null ? void 0 : r.date
|
|
3518
3534
|
),
|
|
3519
3535
|
children: l.date
|
|
@@ -3526,7 +3542,7 @@ const Uo = ({
|
|
|
3526
3542
|
))
|
|
3527
3543
|
}
|
|
3528
3544
|
)
|
|
3529
|
-
] }),
|
|
3545
|
+
] }), Y = {
|
|
3530
3546
|
root: "relative flex flex-col bg-white w-full",
|
|
3531
3547
|
header: "flex items-center gap-1.5 mb-3",
|
|
3532
3548
|
headerTitle: "text-dark-40 text-sm font-bold font-mono",
|
|
@@ -3546,7 +3562,7 @@ const Uo = ({
|
|
|
3546
3562
|
subtitleCompleted: "text-xs mb-1 text-dark-30/[.50]",
|
|
3547
3563
|
date: "text-[10px] mb-1 text-dark-40/[.50]",
|
|
3548
3564
|
dateCompleted: "text-[10px] mb-1 text-dark-30/[.50]"
|
|
3549
|
-
},
|
|
3565
|
+
}, Ye = ({
|
|
3550
3566
|
icon: t,
|
|
3551
3567
|
title: i,
|
|
3552
3568
|
classNames: d,
|
|
@@ -3568,7 +3584,7 @@ const Uo = ({
|
|
|
3568
3584
|
wrapper: "flex items-center gap-2 w-full",
|
|
3569
3585
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3570
3586
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3571
|
-
},
|
|
3587
|
+
}, jt = K(
|
|
3572
3588
|
({
|
|
3573
3589
|
id: t,
|
|
3574
3590
|
label: i,
|
|
@@ -3582,8 +3598,8 @@ const Uo = ({
|
|
|
3582
3598
|
inputProps: h,
|
|
3583
3599
|
...u
|
|
3584
3600
|
}, b) => {
|
|
3585
|
-
var
|
|
3586
|
-
const x =
|
|
3601
|
+
var D;
|
|
3602
|
+
const x = qe.parent, s = qe.base, y = qe.icon, v = d || (h == null ? void 0 : h.disabled), m = !!(n || c), S = (h == null ? void 0 : h.status) === "danger";
|
|
3587
3603
|
return /* @__PURE__ */ p("div", { className: o(x, a == null ? void 0 : a.parent), ...u, children: [
|
|
3588
3604
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3589
3605
|
!!i && /* @__PURE__ */ e(
|
|
@@ -3602,7 +3618,7 @@ const Uo = ({
|
|
|
3602
3618
|
{
|
|
3603
3619
|
className: o(
|
|
3604
3620
|
s,
|
|
3605
|
-
|
|
3621
|
+
m && qe.container,
|
|
3606
3622
|
a == null ? void 0 : a.base
|
|
3607
3623
|
),
|
|
3608
3624
|
children: [
|
|
@@ -3616,25 +3632,25 @@ const Uo = ({
|
|
|
3616
3632
|
classNames: {
|
|
3617
3633
|
...h == null ? void 0 : h.classNames,
|
|
3618
3634
|
target: o(
|
|
3619
|
-
(
|
|
3620
|
-
|
|
3621
|
-
|
|
3635
|
+
(D = h == null ? void 0 : h.classNames) == null ? void 0 : D.target,
|
|
3636
|
+
m && l === "left" && "pl-11",
|
|
3637
|
+
m && l === "right" && "pr-11"
|
|
3622
3638
|
)
|
|
3623
3639
|
}
|
|
3624
3640
|
}
|
|
3625
3641
|
),
|
|
3626
|
-
|
|
3642
|
+
m && /* @__PURE__ */ p(
|
|
3627
3643
|
"button",
|
|
3628
3644
|
{
|
|
3629
3645
|
role: "button",
|
|
3630
3646
|
type: "button",
|
|
3631
3647
|
disabled: v,
|
|
3632
3648
|
className: o(
|
|
3633
|
-
|
|
3649
|
+
y.base,
|
|
3634
3650
|
l === "left" && "left-3.5",
|
|
3635
3651
|
l === "right" && "right-3.5",
|
|
3636
|
-
f &&
|
|
3637
|
-
v &&
|
|
3652
|
+
f && y.clickable,
|
|
3653
|
+
v && y.disabled,
|
|
3638
3654
|
a == null ? void 0 : a.iconButton
|
|
3639
3655
|
),
|
|
3640
3656
|
onClick: f,
|
|
@@ -3643,13 +3659,13 @@ const Uo = ({
|
|
|
3643
3659
|
n && /* @__PURE__ */ e(
|
|
3644
3660
|
n,
|
|
3645
3661
|
{
|
|
3646
|
-
className: o(
|
|
3662
|
+
className: o(y.icon, a == null ? void 0 : a.icon),
|
|
3647
3663
|
viewBox: r == null ? void 0 : r.viewBox,
|
|
3648
3664
|
width: r == null ? void 0 : r.width,
|
|
3649
3665
|
height: r == null ? void 0 : r.height
|
|
3650
3666
|
}
|
|
3651
3667
|
),
|
|
3652
|
-
c && /* @__PURE__ */ e(k, { className: o(
|
|
3668
|
+
c && /* @__PURE__ */ e(k, { className: o(y.text, a == null ? void 0 : a.text), children: c })
|
|
3653
3669
|
]
|
|
3654
3670
|
}
|
|
3655
3671
|
)
|
|
@@ -3658,7 +3674,7 @@ const Uo = ({
|
|
|
3658
3674
|
)
|
|
3659
3675
|
] });
|
|
3660
3676
|
}
|
|
3661
|
-
),
|
|
3677
|
+
), qe = {
|
|
3662
3678
|
parent: "flex flex-col w-full",
|
|
3663
3679
|
base: "mt-1.5",
|
|
3664
3680
|
button: {
|
|
@@ -3692,12 +3708,12 @@ const Uo = ({
|
|
|
3692
3708
|
element: i,
|
|
3693
3709
|
label: d,
|
|
3694
3710
|
classNames: n
|
|
3695
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3711
|
+
}) => /* @__PURE__ */ p("div", { className: o(xt.wrapper, n == null ? void 0 : n.wrapper), children: [
|
|
3696
3712
|
!!t && /* @__PURE__ */ e(
|
|
3697
3713
|
"div",
|
|
3698
3714
|
{
|
|
3699
3715
|
"data-testid": "user-icon",
|
|
3700
|
-
className: o(
|
|
3716
|
+
className: o(xt.iconWrapper, n == null ? void 0 : n.iconWrapper),
|
|
3701
3717
|
children: t
|
|
3702
3718
|
}
|
|
3703
3719
|
),
|
|
@@ -3706,12 +3722,12 @@ const Uo = ({
|
|
|
3706
3722
|
{
|
|
3707
3723
|
"data-testid": "user-label",
|
|
3708
3724
|
variant: "span",
|
|
3709
|
-
className: o(
|
|
3725
|
+
className: o(xt.label, n == null ? void 0 : n.label),
|
|
3710
3726
|
children: d
|
|
3711
3727
|
}
|
|
3712
3728
|
),
|
|
3713
3729
|
!!i && i
|
|
3714
|
-
] }),
|
|
3730
|
+
] }), xt = {
|
|
3715
3731
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3716
3732
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3717
3733
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3720,7 +3736,7 @@ const Uo = ({
|
|
|
3720
3736
|
base: "w-8 h-5",
|
|
3721
3737
|
thumb: "size-3.5"
|
|
3722
3738
|
}
|
|
3723
|
-
},
|
|
3739
|
+
}, Ge = ({
|
|
3724
3740
|
children: t,
|
|
3725
3741
|
disabled: i = !1,
|
|
3726
3742
|
href: d,
|
|
@@ -3736,15 +3752,15 @@ const Uo = ({
|
|
|
3736
3752
|
},
|
|
3737
3753
|
...h
|
|
3738
3754
|
}) => {
|
|
3739
|
-
const u =
|
|
3755
|
+
const u = Kn.states;
|
|
3740
3756
|
return /* @__PURE__ */ p(
|
|
3741
3757
|
Ee,
|
|
3742
3758
|
{
|
|
3743
|
-
"data-testid": "link-root",
|
|
3744
|
-
to: i ? "" : d,
|
|
3745
3759
|
...h,
|
|
3760
|
+
"data-testid": "link-root",
|
|
3761
|
+
to: d,
|
|
3746
3762
|
onClick: (x) => {
|
|
3747
|
-
if (i) {
|
|
3763
|
+
if (x.stopPropagation(), i) {
|
|
3748
3764
|
x.preventDefault();
|
|
3749
3765
|
return;
|
|
3750
3766
|
}
|
|
@@ -3762,7 +3778,7 @@ const Uo = ({
|
|
|
3762
3778
|
),
|
|
3763
3779
|
children: [
|
|
3764
3780
|
l && /* @__PURE__ */ e(
|
|
3765
|
-
|
|
3781
|
+
zr,
|
|
3766
3782
|
{
|
|
3767
3783
|
width: f.width,
|
|
3768
3784
|
height: f.height,
|
|
@@ -3774,15 +3790,15 @@ const Uo = ({
|
|
|
3774
3790
|
]
|
|
3775
3791
|
}
|
|
3776
3792
|
);
|
|
3777
|
-
},
|
|
3793
|
+
}, Kn = {
|
|
3778
3794
|
states: {
|
|
3779
3795
|
active: "active:text-primary-30",
|
|
3780
3796
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
3781
|
-
focus: "focus:
|
|
3797
|
+
focus: "focus:ring-2 focus:ring-primary-10/[.20] focus:rounded-[10px]",
|
|
3782
3798
|
hover: "hover:text-primary-20",
|
|
3783
3799
|
normal: "font-mono text-primary-10 outline-none transition-colors underline underline-offset-2 text-sm leading-none flex gap-1 items-end px-1.5 pb-1.5"
|
|
3784
3800
|
}
|
|
3785
|
-
},
|
|
3801
|
+
}, lr = K(
|
|
3786
3802
|
({
|
|
3787
3803
|
classNames: t,
|
|
3788
3804
|
disabled: i,
|
|
@@ -3791,38 +3807,38 @@ const Uo = ({
|
|
|
3791
3807
|
placeholder: r = "Choose",
|
|
3792
3808
|
value: l
|
|
3793
3809
|
}, c) => {
|
|
3794
|
-
var
|
|
3795
|
-
const [a, f] = F(!1), u =
|
|
3796
|
-
className:
|
|
3797
|
-
text:
|
|
3810
|
+
var D;
|
|
3811
|
+
const [a, f] = F(!1), u = tr(n)(l), b = ue(null), x = Re.base, s = Re.options, y = Re.disabled.trigger, v = Re.disabled.triggerText, m = (D = n.find((I) => I.value === l)) == null ? void 0 : D.status, S = ({
|
|
3812
|
+
className: I,
|
|
3813
|
+
text: w = ""
|
|
3798
3814
|
}) => /* @__PURE__ */ e(
|
|
3799
3815
|
k,
|
|
3800
3816
|
{
|
|
3801
3817
|
className: o(
|
|
3802
3818
|
x.placeholder,
|
|
3803
3819
|
i && v,
|
|
3804
|
-
|
|
3820
|
+
I
|
|
3805
3821
|
),
|
|
3806
|
-
children:
|
|
3822
|
+
children: w
|
|
3807
3823
|
}
|
|
3808
3824
|
);
|
|
3809
|
-
return
|
|
3825
|
+
return Me(() => {
|
|
3810
3826
|
a && setTimeout(() => {
|
|
3811
|
-
var
|
|
3812
|
-
(
|
|
3827
|
+
var I;
|
|
3828
|
+
(I = b.current) == null || I.scrollIntoView({ block: "center" });
|
|
3813
3829
|
}, 0);
|
|
3814
|
-
}, [a]), /* @__PURE__ */ p(
|
|
3830
|
+
}, [a]), /* @__PURE__ */ p(et, { open: a, onOpenChange: f, children: [
|
|
3815
3831
|
/* @__PURE__ */ p(
|
|
3816
|
-
|
|
3832
|
+
tt,
|
|
3817
3833
|
{
|
|
3818
3834
|
role: "listbox",
|
|
3819
3835
|
disabled: i,
|
|
3820
3836
|
className: o(
|
|
3821
3837
|
x.trigger,
|
|
3822
|
-
i &&
|
|
3838
|
+
i && y,
|
|
3823
3839
|
!a && !i && x.hover,
|
|
3824
3840
|
t == null ? void 0 : t.trigger,
|
|
3825
|
-
|
|
3841
|
+
m && Re.status[m]
|
|
3826
3842
|
),
|
|
3827
3843
|
children: [
|
|
3828
3844
|
l ? /* @__PURE__ */ e(
|
|
@@ -3839,7 +3855,7 @@ const Uo = ({
|
|
|
3839
3855
|
}
|
|
3840
3856
|
),
|
|
3841
3857
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3842
|
-
|
|
3858
|
+
or,
|
|
3843
3859
|
{
|
|
3844
3860
|
className: o(x.icon, a && "rotate-180"),
|
|
3845
3861
|
width: 16,
|
|
@@ -3851,29 +3867,29 @@ const Uo = ({
|
|
|
3851
3867
|
}
|
|
3852
3868
|
),
|
|
3853
3869
|
/* @__PURE__ */ e(
|
|
3854
|
-
|
|
3870
|
+
rt,
|
|
3855
3871
|
{
|
|
3856
3872
|
className: o(s.content, t == null ? void 0 : t.content),
|
|
3857
3873
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3858
3874
|
ref: c,
|
|
3859
|
-
children: /* @__PURE__ */ e("div", { className: o(s.wrapper), children: !!n && (n == null ? void 0 : n.map((
|
|
3875
|
+
children: /* @__PURE__ */ e("div", { className: o(s.wrapper), children: !!n && (n == null ? void 0 : n.map((I) => /* @__PURE__ */ e(
|
|
3860
3876
|
Dt,
|
|
3861
3877
|
{
|
|
3862
|
-
ref: l ===
|
|
3878
|
+
ref: l === I.value ? b : null,
|
|
3863
3879
|
className: o(s.items),
|
|
3864
|
-
onClick: (
|
|
3865
|
-
|
|
3880
|
+
onClick: (w) => {
|
|
3881
|
+
w.preventDefault(), w.stopPropagation(), d(I.value), f(!1);
|
|
3866
3882
|
},
|
|
3867
|
-
children: /* @__PURE__ */ e(He, { text:
|
|
3883
|
+
children: /* @__PURE__ */ e(He, { text: I.label, variant: I.status })
|
|
3868
3884
|
},
|
|
3869
|
-
|
|
3885
|
+
I.value
|
|
3870
3886
|
))) })
|
|
3871
3887
|
}
|
|
3872
3888
|
)
|
|
3873
3889
|
] });
|
|
3874
3890
|
}
|
|
3875
3891
|
);
|
|
3876
|
-
|
|
3892
|
+
lr.displayName = "StatusSelect";
|
|
3877
3893
|
const Re = {
|
|
3878
3894
|
base: {
|
|
3879
3895
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3906,15 +3922,15 @@ const Re = {
|
|
|
3906
3922
|
label: i,
|
|
3907
3923
|
selectProps: d,
|
|
3908
3924
|
...n
|
|
3909
|
-
}) => /* @__PURE__ */ p("div", { ...n, className: o(
|
|
3925
|
+
}) => /* @__PURE__ */ p("div", { ...n, className: o(Xn.container, t == null ? void 0 : t.container), children: [
|
|
3910
3926
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3911
3927
|
/* @__PURE__ */ e(P, { disabled: d == null ? void 0 : d.disabled, className: t == null ? void 0 : t.label, children: i }),
|
|
3912
3928
|
(d == null ? void 0 : d.status) === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3913
3929
|
] }),
|
|
3914
|
-
/* @__PURE__ */ e(
|
|
3915
|
-
] }),
|
|
3930
|
+
/* @__PURE__ */ e(Ce, { ...d })
|
|
3931
|
+
] }), Xn = {
|
|
3916
3932
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3917
|
-
}, ti =
|
|
3933
|
+
}, ti = K(
|
|
3918
3934
|
({
|
|
3919
3935
|
title: t,
|
|
3920
3936
|
file: i,
|
|
@@ -3943,7 +3959,7 @@ const Re = {
|
|
|
3943
3959
|
/* @__PURE__ */ e("div", { className: L.circle[c] }),
|
|
3944
3960
|
/* @__PURE__ */ e(k, { "data-testid": "title", className: L.text, children: t })
|
|
3945
3961
|
] }),
|
|
3946
|
-
/* @__PURE__ */ e(k, { "data-testid": "date-and-time", className: L.dateAndTime, children:
|
|
3962
|
+
/* @__PURE__ */ e(k, { "data-testid": "date-and-time", className: L.dateAndTime, children: Z(d, "dd.MM.yyyy HH:mm:ss") })
|
|
3947
3963
|
] }),
|
|
3948
3964
|
/* @__PURE__ */ p("div", { className: L.fileContainer, children: [
|
|
3949
3965
|
/* @__PURE__ */ e("div", { className: L.iconContainer, children: i.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3955,7 +3971,7 @@ const Re = {
|
|
|
3955
3971
|
width: 22,
|
|
3956
3972
|
height: 30
|
|
3957
3973
|
}
|
|
3958
|
-
) : /* @__PURE__ */ e(
|
|
3974
|
+
) : /* @__PURE__ */ e(Et, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3959
3975
|
/* @__PURE__ */ p("div", { className: "flex-grow", children: [
|
|
3960
3976
|
/* @__PURE__ */ e(
|
|
3961
3977
|
k,
|
|
@@ -3967,13 +3983,12 @@ const Re = {
|
|
|
3967
3983
|
children: i.name
|
|
3968
3984
|
}
|
|
3969
3985
|
),
|
|
3970
|
-
/* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children:
|
|
3986
|
+
/* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children: yt(Number(i.size.toFixed(1))) })
|
|
3971
3987
|
] }),
|
|
3972
3988
|
/* @__PURE__ */ p("div", { className: L.buttonContainer, children: [
|
|
3973
3989
|
/* @__PURE__ */ e(
|
|
3974
|
-
|
|
3990
|
+
Ge,
|
|
3975
3991
|
{
|
|
3976
|
-
"data-testid": "download-button",
|
|
3977
3992
|
classNames: {
|
|
3978
3993
|
root: o(L.button.basic, L.iconHover),
|
|
3979
3994
|
icon: L.downnloadIcon
|
|
@@ -3984,7 +3999,7 @@ const Re = {
|
|
|
3984
3999
|
}
|
|
3985
4000
|
),
|
|
3986
4001
|
/* @__PURE__ */ e(
|
|
3987
|
-
|
|
4002
|
+
M,
|
|
3988
4003
|
{
|
|
3989
4004
|
"data-testid": "delete-button",
|
|
3990
4005
|
classNames: {
|
|
@@ -4044,14 +4059,14 @@ const Re = {
|
|
|
4044
4059
|
lastStatusText: f = "Text",
|
|
4045
4060
|
price: h = "100 000 000 UZS",
|
|
4046
4061
|
classNames: u
|
|
4047
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
4048
|
-
/* @__PURE__ */ p("div", { className:
|
|
4062
|
+
}) => /* @__PURE__ */ p("div", { className: o(q.wrapper, u == null ? void 0 : u.wrapper), children: [
|
|
4063
|
+
/* @__PURE__ */ p("div", { className: q.dateContainer.base, children: [
|
|
4049
4064
|
/* @__PURE__ */ e(
|
|
4050
4065
|
"div",
|
|
4051
4066
|
{
|
|
4052
4067
|
"data-testid": "date-and-time",
|
|
4053
|
-
className:
|
|
4054
|
-
children:
|
|
4068
|
+
className: q.dateContainer.dateAndTime,
|
|
4069
|
+
children: Z(i, "dd.MM.yyyy HH:mm:ss")
|
|
4055
4070
|
}
|
|
4056
4071
|
),
|
|
4057
4072
|
/* @__PURE__ */ e(
|
|
@@ -4063,11 +4078,11 @@ const Re = {
|
|
|
4063
4078
|
}
|
|
4064
4079
|
)
|
|
4065
4080
|
] }),
|
|
4066
|
-
/* @__PURE__ */ p("div", { className:
|
|
4067
|
-
/* @__PURE__ */ e(k, { "data-testid": "title", className:
|
|
4068
|
-
/* @__PURE__ */ e(k, { "data-testid": "price", className:
|
|
4081
|
+
/* @__PURE__ */ p("div", { className: q.titleContainer.base, children: [
|
|
4082
|
+
/* @__PURE__ */ e(k, { "data-testid": "title", className: q.titleContainer.title, children: t }),
|
|
4083
|
+
/* @__PURE__ */ e(k, { "data-testid": "price", className: q.titleContainer.price, children: h })
|
|
4069
4084
|
] }),
|
|
4070
|
-
/* @__PURE__ */ p("div", { className:
|
|
4085
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.base, children: [
|
|
4071
4086
|
/* @__PURE__ */ e(
|
|
4072
4087
|
He,
|
|
4073
4088
|
{
|
|
@@ -4076,28 +4091,28 @@ const Re = {
|
|
|
4076
4091
|
className: u == null ? void 0 : u.status
|
|
4077
4092
|
}
|
|
4078
4093
|
),
|
|
4079
|
-
/* @__PURE__ */ p("div", { className:
|
|
4094
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.button, children: [
|
|
4080
4095
|
/* @__PURE__ */ e(
|
|
4081
|
-
|
|
4096
|
+
M,
|
|
4082
4097
|
{
|
|
4083
4098
|
"data-testid": "download-button",
|
|
4084
4099
|
classNames: {
|
|
4085
|
-
base: o(
|
|
4086
|
-
icon:
|
|
4100
|
+
base: o(q.button.basic),
|
|
4101
|
+
icon: q.button.icon
|
|
4087
4102
|
},
|
|
4088
4103
|
onClick: n,
|
|
4089
4104
|
variant: "text",
|
|
4090
|
-
icon:
|
|
4105
|
+
icon: nr,
|
|
4091
4106
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4092
4107
|
}
|
|
4093
4108
|
),
|
|
4094
4109
|
/* @__PURE__ */ e(
|
|
4095
|
-
|
|
4110
|
+
M,
|
|
4096
4111
|
{
|
|
4097
4112
|
"data-testid": "show-button",
|
|
4098
4113
|
classNames: {
|
|
4099
|
-
base: o(
|
|
4100
|
-
icon:
|
|
4114
|
+
base: o(q.button.basic),
|
|
4115
|
+
icon: q.button.icon
|
|
4101
4116
|
},
|
|
4102
4117
|
onClick: r,
|
|
4103
4118
|
variant: "text",
|
|
@@ -4106,12 +4121,12 @@ const Re = {
|
|
|
4106
4121
|
}
|
|
4107
4122
|
),
|
|
4108
4123
|
/* @__PURE__ */ e(
|
|
4109
|
-
|
|
4124
|
+
M,
|
|
4110
4125
|
{
|
|
4111
4126
|
"data-testid": "delete-button",
|
|
4112
4127
|
classNames: {
|
|
4113
|
-
base: o(
|
|
4114
|
-
icon:
|
|
4128
|
+
base: o(q.button.basic),
|
|
4129
|
+
icon: q.button.icon
|
|
4115
4130
|
},
|
|
4116
4131
|
onClick: d,
|
|
4117
4132
|
variant: "text",
|
|
@@ -4121,7 +4136,7 @@ const Re = {
|
|
|
4121
4136
|
)
|
|
4122
4137
|
] })
|
|
4123
4138
|
] })
|
|
4124
|
-
] }),
|
|
4139
|
+
] }), q = {
|
|
4125
4140
|
wrapper: "w-[371px] h-max border border-dark-30/[.15] px-[26px] py-[15px]",
|
|
4126
4141
|
dateContainer: {
|
|
4127
4142
|
base: "flex items-center justify-between w-full",
|
|
@@ -4149,7 +4164,7 @@ const Re = {
|
|
|
4149
4164
|
onCLick: l
|
|
4150
4165
|
}) => /* @__PURE__ */ p("div", { className: o(te.container, r == null ? void 0 : r.root), children: [
|
|
4151
4166
|
/* @__PURE__ */ e("div", { className: te.header, children: /* @__PURE__ */ e(
|
|
4152
|
-
|
|
4167
|
+
M,
|
|
4153
4168
|
{
|
|
4154
4169
|
icon: d,
|
|
4155
4170
|
variant: "text",
|
|
@@ -4166,12 +4181,12 @@ const Re = {
|
|
|
4166
4181
|
/* @__PURE__ */ e("div", { className: te.body, children: i == null ? void 0 : i.map((c, a) => {
|
|
4167
4182
|
var f;
|
|
4168
4183
|
return /* @__PURE__ */ p("div", { className: te.bodyItem, children: [
|
|
4169
|
-
!!c.sectionTitle && /* @__PURE__ */ e(
|
|
4170
|
-
!!c.sectionSubtitle && /* @__PURE__ */ e(
|
|
4184
|
+
!!c.sectionTitle && /* @__PURE__ */ e(Je, { variant: "h2", className: te.title, children: c.sectionTitle }),
|
|
4185
|
+
!!c.sectionSubtitle && /* @__PURE__ */ e(Je, { variant: "h3", className: te.subTitle, children: c.sectionSubtitle }),
|
|
4171
4186
|
/* @__PURE__ */ e("ul", { className: te.items, children: (f = c.items) == null ? void 0 : f.map((h, u) => /* @__PURE__ */ p("li", { children: [
|
|
4172
4187
|
!!h.subtitle && /* @__PURE__ */ e(k, { "data-testid": "subtitle", className: te.item, children: h == null ? void 0 : h.subtitle }),
|
|
4173
4188
|
/* @__PURE__ */ e(
|
|
4174
|
-
|
|
4189
|
+
M,
|
|
4175
4190
|
{
|
|
4176
4191
|
"data-testid": "link",
|
|
4177
4192
|
onClick: () => l == null ? void 0 : l(h.id),
|
|
@@ -4202,7 +4217,7 @@ const Re = {
|
|
|
4202
4217
|
options: i,
|
|
4203
4218
|
classNames: d
|
|
4204
4219
|
}) => {
|
|
4205
|
-
const n =
|
|
4220
|
+
const n = ke.base, r = ke.content.wrapper, l = ke.content.title, c = ke.content.typography, a = ke.content.amount, f = ke.content.amountBold, h = i.find((b) => b.total), u = i.filter((b) => !b.total);
|
|
4206
4221
|
return /* @__PURE__ */ p("div", { className: o(n, d == null ? void 0 : d.root), children: [
|
|
4207
4222
|
/* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4208
4223
|
k,
|
|
@@ -4212,9 +4227,9 @@ const Re = {
|
|
|
4212
4227
|
children: t
|
|
4213
4228
|
}
|
|
4214
4229
|
) }),
|
|
4215
|
-
/* @__PURE__ */ p("div", { className:
|
|
4230
|
+
/* @__PURE__ */ p("div", { className: ke.content.items, children: [
|
|
4216
4231
|
u.map((b) => /* @__PURE__ */ e(
|
|
4217
|
-
|
|
4232
|
+
We,
|
|
4218
4233
|
{
|
|
4219
4234
|
"data-testid": "item",
|
|
4220
4235
|
value: b.value,
|
|
@@ -4227,7 +4242,7 @@ const Re = {
|
|
|
4227
4242
|
b.label
|
|
4228
4243
|
)),
|
|
4229
4244
|
h && /* @__PURE__ */ e(
|
|
4230
|
-
|
|
4245
|
+
We,
|
|
4231
4246
|
{
|
|
4232
4247
|
"data-testid": "total",
|
|
4233
4248
|
value: h.total,
|
|
@@ -4245,7 +4260,7 @@ const Re = {
|
|
|
4245
4260
|
)
|
|
4246
4261
|
] })
|
|
4247
4262
|
] });
|
|
4248
|
-
},
|
|
4263
|
+
}, ke = {
|
|
4249
4264
|
base: "w-max",
|
|
4250
4265
|
content: {
|
|
4251
4266
|
wrapper: "flex justify-between items-center mb-2.5",
|
|
@@ -4255,7 +4270,7 @@ const Re = {
|
|
|
4255
4270
|
amount: "ml-1 text-sm font-semibold font-mono",
|
|
4256
4271
|
amountBold: "ml-1 text-sm font-bold font-mono"
|
|
4257
4272
|
}
|
|
4258
|
-
},
|
|
4273
|
+
}, We = ({
|
|
4259
4274
|
value: t,
|
|
4260
4275
|
label: i,
|
|
4261
4276
|
classNames: d,
|
|
@@ -4274,7 +4289,7 @@ const Re = {
|
|
|
4274
4289
|
), Rt = {
|
|
4275
4290
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4276
4291
|
value: "text-sm text-dark-30 font-semibold"
|
|
4277
|
-
},
|
|
4292
|
+
}, Jn = K(
|
|
4278
4293
|
({
|
|
4279
4294
|
classNames: t,
|
|
4280
4295
|
disabled: i,
|
|
@@ -4289,27 +4304,27 @@ const Re = {
|
|
|
4289
4304
|
options: u = []
|
|
4290
4305
|
}, b) => {
|
|
4291
4306
|
var xe;
|
|
4292
|
-
const [x, s] = F(!1), [
|
|
4293
|
-
const
|
|
4294
|
-
|
|
4295
|
-
}, C = (
|
|
4296
|
-
|
|
4297
|
-
const re = u.find((
|
|
4307
|
+
const [x, s] = F(!1), [y, v] = F(a || ""), [m, S] = F(""), [D, I] = F(null), w = ue(null), g = () => {
|
|
4308
|
+
const W = m.trim();
|
|
4309
|
+
W && (D && l ? (l(W, D), I(null)) : r(W), S(""));
|
|
4310
|
+
}, C = (W, Q) => {
|
|
4311
|
+
Q.stopPropagation(), I(W);
|
|
4312
|
+
const re = u.find((X) => X.value === W);
|
|
4298
4313
|
re && S(re.label);
|
|
4299
|
-
},
|
|
4300
|
-
|
|
4314
|
+
}, j = (W, Q) => {
|
|
4315
|
+
Q.stopPropagation(), n(W), y === W && v("");
|
|
4301
4316
|
}, T = () => {
|
|
4302
|
-
S(""),
|
|
4303
|
-
},
|
|
4317
|
+
S(""), I(null);
|
|
4318
|
+
}, _ = () => {
|
|
4304
4319
|
s(!1), T();
|
|
4305
4320
|
}, R = () => {
|
|
4306
|
-
d(
|
|
4307
|
-
},
|
|
4308
|
-
s(
|
|
4309
|
-
},
|
|
4321
|
+
d(y), s(!1), T();
|
|
4322
|
+
}, G = (W) => {
|
|
4323
|
+
s(W), W || T();
|
|
4324
|
+
}, Te = a ? ((xe = u.find((W) => W.value === a)) == null ? void 0 : xe.label) || a : "", it = Te ? H.base.selected : H.base.placeholder;
|
|
4310
4325
|
return /* @__PURE__ */ p("div", { className: H.container, children: [
|
|
4311
4326
|
f && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: i, children: f }),
|
|
4312
|
-
/* @__PURE__ */ p(de, { open: x, onOpenChange:
|
|
4327
|
+
/* @__PURE__ */ p(de, { open: x, onOpenChange: G, children: [
|
|
4313
4328
|
/* @__PURE__ */ p(
|
|
4314
4329
|
ae,
|
|
4315
4330
|
{
|
|
@@ -4329,14 +4344,14 @@ const Re = {
|
|
|
4329
4344
|
className: o(
|
|
4330
4345
|
H.base.text,
|
|
4331
4346
|
i && H.disabled.triggerText,
|
|
4332
|
-
t == null ? void 0 : t[
|
|
4333
|
-
|
|
4347
|
+
t == null ? void 0 : t[Te ? "selected" : "placeholder"],
|
|
4348
|
+
it
|
|
4334
4349
|
),
|
|
4335
|
-
children:
|
|
4350
|
+
children: Te || c
|
|
4336
4351
|
}
|
|
4337
4352
|
),
|
|
4338
4353
|
/* @__PURE__ */ e(
|
|
4339
|
-
|
|
4354
|
+
Ne,
|
|
4340
4355
|
{
|
|
4341
4356
|
width: 20,
|
|
4342
4357
|
height: 20,
|
|
@@ -4351,24 +4366,24 @@ const Re = {
|
|
|
4351
4366
|
]
|
|
4352
4367
|
}
|
|
4353
4368
|
),
|
|
4354
|
-
/* @__PURE__ */ e("div", { ref:
|
|
4369
|
+
/* @__PURE__ */ e("div", { ref: w, className: "relative z-50", children: /* @__PURE__ */ p(
|
|
4355
4370
|
le,
|
|
4356
4371
|
{
|
|
4357
|
-
container:
|
|
4372
|
+
container: w.current,
|
|
4358
4373
|
className: o(H.options.content, t == null ? void 0 : t.content),
|
|
4359
4374
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4360
4375
|
ref: b,
|
|
4361
4376
|
children: [
|
|
4362
4377
|
h && /* @__PURE__ */ e(k, { className: o(H.options.label), children: h }),
|
|
4363
4378
|
/* @__PURE__ */ e(
|
|
4364
|
-
|
|
4379
|
+
jt,
|
|
4365
4380
|
{
|
|
4366
4381
|
inputProps: {
|
|
4367
4382
|
id: "select-list",
|
|
4368
4383
|
classNames: { target: "px-3 py-[9px]" },
|
|
4369
|
-
placeholder:
|
|
4370
|
-
value:
|
|
4371
|
-
onChange: (
|
|
4384
|
+
placeholder: D && h ? `Редактировать ${h}` : h || "",
|
|
4385
|
+
value: m,
|
|
4386
|
+
onChange: (W) => S(W.target.value)
|
|
4372
4387
|
},
|
|
4373
4388
|
icon: Xt,
|
|
4374
4389
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
@@ -4376,17 +4391,17 @@ const Re = {
|
|
|
4376
4391
|
onIconClick: g
|
|
4377
4392
|
}
|
|
4378
4393
|
),
|
|
4379
|
-
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((
|
|
4380
|
-
const
|
|
4394
|
+
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((W) => {
|
|
4395
|
+
const Q = D === W.value, re = y === W.value;
|
|
4381
4396
|
return /* @__PURE__ */ p(
|
|
4382
4397
|
"div",
|
|
4383
4398
|
{
|
|
4384
4399
|
className: o(
|
|
4385
4400
|
H.options.items,
|
|
4386
|
-
|
|
4401
|
+
Q && "opacity-50"
|
|
4387
4402
|
),
|
|
4388
|
-
onClick: (
|
|
4389
|
-
|
|
4403
|
+
onClick: (X) => {
|
|
4404
|
+
X.stopPropagation(), X.preventDefault(), Q || v(W.value);
|
|
4390
4405
|
},
|
|
4391
4406
|
children: [
|
|
4392
4407
|
/* @__PURE__ */ p(
|
|
@@ -4398,32 +4413,32 @@ const Re = {
|
|
|
4398
4413
|
re && "before:bg-dark-10"
|
|
4399
4414
|
),
|
|
4400
4415
|
children: [
|
|
4401
|
-
|
|
4402
|
-
|
|
4416
|
+
W.label,
|
|
4417
|
+
Q && " (редактируется...)"
|
|
4403
4418
|
]
|
|
4404
4419
|
}
|
|
4405
4420
|
),
|
|
4406
4421
|
/* @__PURE__ */ p("div", { className: "flex gap-2", children: [
|
|
4407
4422
|
/* @__PURE__ */ e(
|
|
4408
|
-
|
|
4423
|
+
M,
|
|
4409
4424
|
{
|
|
4410
4425
|
variant: "text",
|
|
4411
|
-
icon:
|
|
4426
|
+
icon: St,
|
|
4412
4427
|
classNames: {
|
|
4413
4428
|
base: "p-0",
|
|
4414
4429
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4415
4430
|
},
|
|
4416
|
-
onClick: (
|
|
4431
|
+
onClick: (X) => C(W.value, X),
|
|
4417
4432
|
iconDimensions: {
|
|
4418
4433
|
height: 20,
|
|
4419
4434
|
width: 20,
|
|
4420
4435
|
viewBox: "0 0 31 31"
|
|
4421
4436
|
},
|
|
4422
|
-
disabled:
|
|
4437
|
+
disabled: Q
|
|
4423
4438
|
}
|
|
4424
4439
|
),
|
|
4425
4440
|
/* @__PURE__ */ e(
|
|
4426
|
-
|
|
4441
|
+
M,
|
|
4427
4442
|
{
|
|
4428
4443
|
variant: "text",
|
|
4429
4444
|
icon: Fe,
|
|
@@ -4431,34 +4446,34 @@ const Re = {
|
|
|
4431
4446
|
base: "p-0",
|
|
4432
4447
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4433
4448
|
},
|
|
4434
|
-
onClick: (
|
|
4449
|
+
onClick: (X) => j(W.value, X),
|
|
4435
4450
|
iconDimensions: {
|
|
4436
4451
|
height: 20,
|
|
4437
4452
|
width: 20,
|
|
4438
4453
|
viewBox: "0 0 30 30"
|
|
4439
4454
|
},
|
|
4440
|
-
disabled:
|
|
4455
|
+
disabled: Q
|
|
4441
4456
|
}
|
|
4442
4457
|
)
|
|
4443
4458
|
] })
|
|
4444
4459
|
]
|
|
4445
4460
|
},
|
|
4446
|
-
|
|
4461
|
+
W.value
|
|
4447
4462
|
);
|
|
4448
4463
|
}) }),
|
|
4449
4464
|
/* @__PURE__ */ p("div", { className: o(H.options.primaryActionsWrapper), children: [
|
|
4450
4465
|
/* @__PURE__ */ e(
|
|
4451
|
-
|
|
4466
|
+
M,
|
|
4452
4467
|
{
|
|
4453
4468
|
type: "button",
|
|
4454
4469
|
variant: "secondary",
|
|
4455
4470
|
className: o(H.options.primaryActionCancel),
|
|
4456
|
-
onClick:
|
|
4471
|
+
onClick: _,
|
|
4457
4472
|
children: "Отмена"
|
|
4458
4473
|
}
|
|
4459
4474
|
),
|
|
4460
4475
|
/* @__PURE__ */ e(
|
|
4461
|
-
|
|
4476
|
+
M,
|
|
4462
4477
|
{
|
|
4463
4478
|
type: "button",
|
|
4464
4479
|
variant: "primary",
|
|
@@ -4476,7 +4491,7 @@ const Re = {
|
|
|
4476
4491
|
] });
|
|
4477
4492
|
}
|
|
4478
4493
|
);
|
|
4479
|
-
|
|
4494
|
+
Jn.displayName = "SelectList";
|
|
4480
4495
|
const H = {
|
|
4481
4496
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4482
4497
|
base: {
|
|
@@ -4584,7 +4599,7 @@ const H = {
|
|
|
4584
4599
|
children: [
|
|
4585
4600
|
/* @__PURE__ */ p(de, { open: f, onOpenChange: h, children: [
|
|
4586
4601
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4587
|
-
|
|
4602
|
+
M,
|
|
4588
4603
|
{
|
|
4589
4604
|
variant: "text",
|
|
4590
4605
|
type: "button",
|
|
@@ -4654,7 +4669,7 @@ const H = {
|
|
|
4654
4669
|
/* @__PURE__ */ e("div", { className: o(Le.actions, r == null ? void 0 : r.actions), children: a == null ? void 0 : a.map((u) => {
|
|
4655
4670
|
var b, x;
|
|
4656
4671
|
return /* @__PURE__ */ e(
|
|
4657
|
-
|
|
4672
|
+
kt,
|
|
4658
4673
|
{
|
|
4659
4674
|
icon: u.icon,
|
|
4660
4675
|
shape: "circle",
|
|
@@ -4734,18 +4749,18 @@ const H = {
|
|
|
4734
4749
|
visibleSelections: f
|
|
4735
4750
|
}) => {
|
|
4736
4751
|
const h = t === i;
|
|
4737
|
-
return /* @__PURE__ */ p("div", { className:
|
|
4752
|
+
return /* @__PURE__ */ p("div", { className: Ke.root, children: [
|
|
4738
4753
|
l && !h && /* @__PURE__ */ e(
|
|
4739
|
-
|
|
4754
|
+
Zt,
|
|
4740
4755
|
{
|
|
4741
4756
|
imageSrc: r == null ? void 0 : r.url,
|
|
4742
4757
|
alt: r == null ? void 0 : r.alt,
|
|
4743
4758
|
classNames: { wrapper: "shrink-0" }
|
|
4744
4759
|
}
|
|
4745
4760
|
),
|
|
4746
|
-
/* @__PURE__ */ e("ul", { role: "list", className: o(
|
|
4761
|
+
/* @__PURE__ */ e("ul", { role: "list", className: o(Ke.list, h && "items-end"), children: n.map((u, b, x) => {
|
|
4747
4762
|
const s = (u == null ? void 0 : u.id) && (c == null ? void 0 : c.includes(u.id));
|
|
4748
|
-
return /* @__PURE__ */ p("ul", { role: "listitem", className:
|
|
4763
|
+
return /* @__PURE__ */ p("ul", { role: "listitem", className: Ke.item, children: [
|
|
4749
4764
|
/* @__PURE__ */ e(
|
|
4750
4765
|
Mr,
|
|
4751
4766
|
{
|
|
@@ -4766,7 +4781,7 @@ const H = {
|
|
|
4766
4781
|
{
|
|
4767
4782
|
"data-testid": "select-icon",
|
|
4768
4783
|
className: o(
|
|
4769
|
-
|
|
4784
|
+
Ke.selection,
|
|
4770
4785
|
s && "bg-sidebar-20"
|
|
4771
4786
|
),
|
|
4772
4787
|
onClick: () => a == null ? void 0 : a(u == null ? void 0 : u.id),
|
|
@@ -4786,7 +4801,7 @@ const H = {
|
|
|
4786
4801
|
] });
|
|
4787
4802
|
}) })
|
|
4788
4803
|
] });
|
|
4789
|
-
},
|
|
4804
|
+
}, Ke = {
|
|
4790
4805
|
root: "w-full flex items-end gap-4",
|
|
4791
4806
|
list: "w-full flex flex-col items-start gap-2.5",
|
|
4792
4807
|
item: "flex items-end gap-4",
|
|
@@ -4800,21 +4815,21 @@ const H = {
|
|
|
4800
4815
|
}) => {
|
|
4801
4816
|
const l = () => {
|
|
4802
4817
|
d(), n();
|
|
4803
|
-
}, c =
|
|
4804
|
-
return /* @__PURE__ */ e("div", { className: o(
|
|
4818
|
+
}, c = Xe.delete;
|
|
4819
|
+
return /* @__PURE__ */ e("div", { className: o(Xe.wrapper, r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ p(
|
|
4805
4820
|
"div",
|
|
4806
4821
|
{
|
|
4807
4822
|
"data-testid": "delete-message-group",
|
|
4808
4823
|
className: o(
|
|
4809
|
-
|
|
4824
|
+
Xe.content,
|
|
4810
4825
|
r == null ? void 0 : r.content,
|
|
4811
4826
|
i ? "animate-slide-up" : "animate-slide-down"
|
|
4812
4827
|
),
|
|
4813
4828
|
children: [
|
|
4814
4829
|
/* @__PURE__ */ e(
|
|
4815
|
-
|
|
4830
|
+
kt,
|
|
4816
4831
|
{
|
|
4817
|
-
icon:
|
|
4832
|
+
icon: Ue,
|
|
4818
4833
|
shape: "circle",
|
|
4819
4834
|
variant: "text",
|
|
4820
4835
|
classNames: {
|
|
@@ -4830,12 +4845,12 @@ const H = {
|
|
|
4830
4845
|
}
|
|
4831
4846
|
}
|
|
4832
4847
|
),
|
|
4833
|
-
/* @__PURE__ */ p("p", { className:
|
|
4848
|
+
/* @__PURE__ */ p("p", { className: Xe.amount, children: [
|
|
4834
4849
|
t,
|
|
4835
4850
|
" сообщения"
|
|
4836
4851
|
] }),
|
|
4837
4852
|
/* @__PURE__ */ e(
|
|
4838
|
-
|
|
4853
|
+
M,
|
|
4839
4854
|
{
|
|
4840
4855
|
variant: "text",
|
|
4841
4856
|
icon: Fe,
|
|
@@ -4856,7 +4871,7 @@ const H = {
|
|
|
4856
4871
|
]
|
|
4857
4872
|
}
|
|
4858
4873
|
) });
|
|
4859
|
-
},
|
|
4874
|
+
}, Xe = {
|
|
4860
4875
|
wrapper: "flex justify-center",
|
|
4861
4876
|
content: "flex items-center py-3 px-5 border rounded-xl border-dark-40/[.25] fixed bottom-0 bg-white",
|
|
4862
4877
|
delete: {
|
|
@@ -4877,7 +4892,7 @@ const H = {
|
|
|
4877
4892
|
},
|
|
4878
4893
|
{
|
|
4879
4894
|
id: "edit",
|
|
4880
|
-
icon:
|
|
4895
|
+
icon: St,
|
|
4881
4896
|
iconSizes: {
|
|
4882
4897
|
width: 20,
|
|
4883
4898
|
height: 20,
|
|
@@ -4928,7 +4943,7 @@ const H = {
|
|
|
4928
4943
|
u.preventDefault(), n(!0);
|
|
4929
4944
|
}, l = (u) => {
|
|
4930
4945
|
i(u), n(!1);
|
|
4931
|
-
}, { icon: c, base: a } =
|
|
4946
|
+
}, { icon: c, base: a } = gt.button.normal, { icon: f, base: h } = gt.button.danger;
|
|
4932
4947
|
return /* @__PURE__ */ p(de, { open: d, onOpenChange: n, children: [
|
|
4933
4948
|
/* @__PURE__ */ e(ae, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4934
4949
|
"div",
|
|
@@ -4944,9 +4959,9 @@ const H = {
|
|
|
4944
4959
|
align: "center",
|
|
4945
4960
|
sideOffset: 4,
|
|
4946
4961
|
side: "top",
|
|
4947
|
-
className:
|
|
4948
|
-
children: Nn.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text:
|
|
4949
|
-
|
|
4962
|
+
className: gt.wrapper,
|
|
4963
|
+
children: Nn.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: y }) => /* @__PURE__ */ e(
|
|
4964
|
+
M,
|
|
4950
4965
|
{
|
|
4951
4966
|
"data-testid": "action",
|
|
4952
4967
|
variant: "text",
|
|
@@ -4958,14 +4973,14 @@ const H = {
|
|
|
4958
4973
|
icon: s ? f : c,
|
|
4959
4974
|
base: s ? h : a
|
|
4960
4975
|
},
|
|
4961
|
-
children:
|
|
4976
|
+
children: y
|
|
4962
4977
|
},
|
|
4963
4978
|
u
|
|
4964
4979
|
))
|
|
4965
4980
|
}
|
|
4966
4981
|
)
|
|
4967
4982
|
] });
|
|
4968
|
-
},
|
|
4983
|
+
}, gt = {
|
|
4969
4984
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
4970
4985
|
button: {
|
|
4971
4986
|
normal: {
|
|
@@ -4978,9 +4993,9 @@ const H = {
|
|
|
4978
4993
|
}
|
|
4979
4994
|
}
|
|
4980
4995
|
}, pi = ({ tabs: t }) => {
|
|
4981
|
-
const i =
|
|
4996
|
+
const i = Kt();
|
|
4982
4997
|
return /* @__PURE__ */ e("div", { className: eo.wrapper, "data-testid": "tab-list", children: t.map(({ id: d, icon: n, label: r, isActive: l, href: c }) => /* @__PURE__ */ e(
|
|
4983
|
-
|
|
4998
|
+
Fr,
|
|
4984
4999
|
{
|
|
4985
5000
|
icon: n,
|
|
4986
5001
|
active: l,
|
|
@@ -5018,7 +5033,7 @@ const H = {
|
|
|
5018
5033
|
),
|
|
5019
5034
|
children: [
|
|
5020
5035
|
i ? u == null ? void 0 : u.name.ru : d,
|
|
5021
|
-
/* @__PURE__ */ e(
|
|
5036
|
+
/* @__PURE__ */ e(or, { className: o(oe.icon, f && "-rotate-180") })
|
|
5022
5037
|
]
|
|
5023
5038
|
}
|
|
5024
5039
|
),
|
|
@@ -5031,22 +5046,22 @@ const H = {
|
|
|
5031
5046
|
oe.name,
|
|
5032
5047
|
i === s && "before:bg-dark-10"
|
|
5033
5048
|
),
|
|
5034
|
-
onClick: (
|
|
5049
|
+
onClick: (y) => b(y, s),
|
|
5035
5050
|
children: x.ru
|
|
5036
5051
|
}
|
|
5037
5052
|
),
|
|
5038
5053
|
/* @__PURE__ */ p("div", { className: oe.actions, children: [
|
|
5039
5054
|
/* @__PURE__ */ e(
|
|
5040
|
-
|
|
5055
|
+
M,
|
|
5041
5056
|
{
|
|
5042
5057
|
"data-testid": "edit-button",
|
|
5043
5058
|
variant: "text",
|
|
5044
5059
|
classNames: { base: "p-0" },
|
|
5045
|
-
onClick: (
|
|
5046
|
-
|
|
5060
|
+
onClick: (y) => {
|
|
5061
|
+
y.stopPropagation(), c(s);
|
|
5047
5062
|
},
|
|
5048
5063
|
children: /* @__PURE__ */ e(
|
|
5049
|
-
|
|
5064
|
+
St,
|
|
5050
5065
|
{
|
|
5051
5066
|
width: 20,
|
|
5052
5067
|
height: 20,
|
|
@@ -5057,13 +5072,13 @@ const H = {
|
|
|
5057
5072
|
}
|
|
5058
5073
|
),
|
|
5059
5074
|
/* @__PURE__ */ e(
|
|
5060
|
-
|
|
5075
|
+
M,
|
|
5061
5076
|
{
|
|
5062
5077
|
"data-testid": "delete-button",
|
|
5063
5078
|
variant: "text",
|
|
5064
5079
|
classNames: { base: "p-0" },
|
|
5065
|
-
onClick: (
|
|
5066
|
-
|
|
5080
|
+
onClick: (y) => {
|
|
5081
|
+
y.stopPropagation(), a(s);
|
|
5067
5082
|
},
|
|
5068
5083
|
children: /* @__PURE__ */ e(
|
|
5069
5084
|
Fe,
|
|
@@ -5079,7 +5094,7 @@ const H = {
|
|
|
5079
5094
|
] })
|
|
5080
5095
|
] }, s)) }),
|
|
5081
5096
|
/* @__PURE__ */ e(
|
|
5082
|
-
|
|
5097
|
+
M,
|
|
5083
5098
|
{
|
|
5084
5099
|
variant: "text",
|
|
5085
5100
|
icon: Xt,
|
|
@@ -5137,7 +5152,7 @@ const H = {
|
|
|
5137
5152
|
icon: "circle",
|
|
5138
5153
|
textStyle: {
|
|
5139
5154
|
padding: [0, 0, 0, 10],
|
|
5140
|
-
color:
|
|
5155
|
+
color: Pe.dark[10],
|
|
5141
5156
|
fontSize: 14,
|
|
5142
5157
|
fontWeight: 700,
|
|
5143
5158
|
rich: {
|
|
@@ -5169,7 +5184,7 @@ const H = {
|
|
|
5169
5184
|
}
|
|
5170
5185
|
]
|
|
5171
5186
|
};
|
|
5172
|
-
}, ui =
|
|
5187
|
+
}, ui = K(
|
|
5173
5188
|
({
|
|
5174
5189
|
chartMode: t = "doughtnut",
|
|
5175
5190
|
mode: i = "chart",
|
|
@@ -5198,7 +5213,7 @@ const H = {
|
|
|
5198
5213
|
children: [
|
|
5199
5214
|
/* @__PURE__ */ p("div", { className: o(E.header, c == null ? void 0 : c.header), children: [
|
|
5200
5215
|
/* @__PURE__ */ e(
|
|
5201
|
-
|
|
5216
|
+
Ye,
|
|
5202
5217
|
{
|
|
5203
5218
|
title: d,
|
|
5204
5219
|
icon: n,
|
|
@@ -5219,7 +5234,7 @@ const H = {
|
|
|
5219
5234
|
/* @__PURE__ */ e(k, { className: o(E.total, c == null ? void 0 : c.total), children: r.total }),
|
|
5220
5235
|
r.growth && /* @__PURE__ */ p("div", { className: o(E.badge, c == null ? void 0 : c.badge), children: [
|
|
5221
5236
|
/* @__PURE__ */ e(
|
|
5222
|
-
|
|
5237
|
+
vt,
|
|
5223
5238
|
{
|
|
5224
5239
|
width: 7,
|
|
5225
5240
|
height: 7,
|
|
@@ -5241,9 +5256,9 @@ const H = {
|
|
|
5241
5256
|
] })
|
|
5242
5257
|
] }),
|
|
5243
5258
|
i === "chart" && /* @__PURE__ */ e(
|
|
5244
|
-
|
|
5259
|
+
nt,
|
|
5245
5260
|
{
|
|
5246
|
-
echarts:
|
|
5261
|
+
echarts: ot,
|
|
5247
5262
|
option: u,
|
|
5248
5263
|
style: { height: 250 }
|
|
5249
5264
|
}
|
|
@@ -5255,12 +5270,12 @@ const H = {
|
|
|
5255
5270
|
className: o(E.progress.line, (x = c == null ? void 0 : c.progress) == null ? void 0 : x.line)
|
|
5256
5271
|
}
|
|
5257
5272
|
),
|
|
5258
|
-
h.map(({ name: s, value:
|
|
5259
|
-
var
|
|
5273
|
+
h.map(({ name: s, value: y }, v) => {
|
|
5274
|
+
var m, S, D;
|
|
5260
5275
|
return /* @__PURE__ */ p(
|
|
5261
5276
|
"div",
|
|
5262
5277
|
{
|
|
5263
|
-
className: o(E.progress.row, (
|
|
5278
|
+
className: o(E.progress.row, (m = c == null ? void 0 : c.progress) == null ? void 0 : m.row),
|
|
5264
5279
|
children: [
|
|
5265
5280
|
/* @__PURE__ */ e(
|
|
5266
5281
|
k,
|
|
@@ -5273,9 +5288,9 @@ const H = {
|
|
|
5273
5288
|
}
|
|
5274
5289
|
),
|
|
5275
5290
|
/* @__PURE__ */ e(
|
|
5276
|
-
|
|
5291
|
+
pr,
|
|
5277
5292
|
{
|
|
5278
|
-
value:
|
|
5293
|
+
value: y,
|
|
5279
5294
|
total: r.total,
|
|
5280
5295
|
color: l[v],
|
|
5281
5296
|
classNames: {
|
|
@@ -5289,9 +5304,9 @@ const H = {
|
|
|
5289
5304
|
{
|
|
5290
5305
|
className: o(
|
|
5291
5306
|
E.progress.value,
|
|
5292
|
-
(
|
|
5307
|
+
(D = c == null ? void 0 : c.progress) == null ? void 0 : D.value
|
|
5293
5308
|
),
|
|
5294
|
-
children:
|
|
5309
|
+
children: y
|
|
5295
5310
|
}
|
|
5296
5311
|
)
|
|
5297
5312
|
]
|
|
@@ -5369,14 +5384,14 @@ const H = {
|
|
|
5369
5384
|
}
|
|
5370
5385
|
]
|
|
5371
5386
|
};
|
|
5372
|
-
}, fi =
|
|
5387
|
+
}, fi = K(
|
|
5373
5388
|
({ data: t, title: i, mode: d = "stat", settings: n, classNames: r, ...l }, c) => {
|
|
5374
5389
|
const {
|
|
5375
5390
|
chartColor: a = "#1B9BE4",
|
|
5376
5391
|
allWhite: f = !1,
|
|
5377
5392
|
arrowDown: h = !1,
|
|
5378
5393
|
icon: u = null
|
|
5379
|
-
} = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ?
|
|
5394
|
+
} = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ? Ir(t.total) : t.total, s = no(d), y = oo(d, b);
|
|
5380
5395
|
return /* @__PURE__ */ p(
|
|
5381
5396
|
"div",
|
|
5382
5397
|
{
|
|
@@ -5411,7 +5426,7 @@ const H = {
|
|
|
5411
5426
|
d === "payment" && /* @__PURE__ */ e(k, { className: ie.payment, children: "Сум" }),
|
|
5412
5427
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.badge, r == null ? void 0 : r.badge), children: [
|
|
5413
5428
|
/* @__PURE__ */ e(
|
|
5414
|
-
|
|
5429
|
+
vt,
|
|
5415
5430
|
{
|
|
5416
5431
|
width: 7,
|
|
5417
5432
|
height: 7,
|
|
@@ -5426,8 +5441,8 @@ const H = {
|
|
|
5426
5441
|
] })
|
|
5427
5442
|
] }),
|
|
5428
5443
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.counBlock, r == null ? void 0 : r.countBlock), children: [
|
|
5429
|
-
/* @__PURE__ */ e(
|
|
5430
|
-
/* @__PURE__ */ e(
|
|
5444
|
+
/* @__PURE__ */ e(We, { label: "Физическое лицо:", value: t.physical }),
|
|
5445
|
+
/* @__PURE__ */ e(We, { label: "Юридическое лицо:", value: t.legal })
|
|
5431
5446
|
] }),
|
|
5432
5447
|
t.growth && d !== "count" && /* @__PURE__ */ p(
|
|
5433
5448
|
"div",
|
|
@@ -5436,7 +5451,7 @@ const H = {
|
|
|
5436
5451
|
style: { color: b },
|
|
5437
5452
|
children: [
|
|
5438
5453
|
/* @__PURE__ */ e(
|
|
5439
|
-
|
|
5454
|
+
vt,
|
|
5440
5455
|
{
|
|
5441
5456
|
width: 16,
|
|
5442
5457
|
height: 16,
|
|
@@ -5452,10 +5467,10 @@ const H = {
|
|
|
5452
5467
|
),
|
|
5453
5468
|
d === "stat" && /* @__PURE__ */ e("div", { className: o(ie.icon, r == null ? void 0 : r.icon), children: u }),
|
|
5454
5469
|
s && /* @__PURE__ */ e(
|
|
5455
|
-
|
|
5470
|
+
nt,
|
|
5456
5471
|
{
|
|
5457
|
-
echarts:
|
|
5458
|
-
option:
|
|
5472
|
+
echarts: ot,
|
|
5473
|
+
option: y,
|
|
5459
5474
|
style: {
|
|
5460
5475
|
...s,
|
|
5461
5476
|
position: "absolute",
|
|
@@ -5490,7 +5505,7 @@ const H = {
|
|
|
5490
5505
|
textStyle: {
|
|
5491
5506
|
fontSize: 22,
|
|
5492
5507
|
fontWeight: 600,
|
|
5493
|
-
color:
|
|
5508
|
+
color: Pe.dark[10]
|
|
5494
5509
|
}
|
|
5495
5510
|
},
|
|
5496
5511
|
tooltip: !1,
|
|
@@ -5506,14 +5521,14 @@ const H = {
|
|
|
5506
5521
|
data: [
|
|
5507
5522
|
{
|
|
5508
5523
|
value: t,
|
|
5509
|
-
itemStyle: { color:
|
|
5524
|
+
itemStyle: { color: Pe.success[20], borderRadius: 4 }
|
|
5510
5525
|
},
|
|
5511
5526
|
{ value: i, itemStyle: { color: "#F3F4F5" } }
|
|
5512
5527
|
]
|
|
5513
5528
|
}
|
|
5514
5529
|
]
|
|
5515
5530
|
};
|
|
5516
|
-
}, bi =
|
|
5531
|
+
}, bi = K(
|
|
5517
5532
|
({
|
|
5518
5533
|
mode: t = "master",
|
|
5519
5534
|
title: i,
|
|
@@ -5537,16 +5552,16 @@ const H = {
|
|
|
5537
5552
|
children: [
|
|
5538
5553
|
/* @__PURE__ */ p("div", { className: o(ze.block, a == null ? void 0 : a.block), children: [
|
|
5539
5554
|
/* @__PURE__ */ e(
|
|
5540
|
-
|
|
5555
|
+
Ye,
|
|
5541
5556
|
{
|
|
5542
5557
|
title: i,
|
|
5543
5558
|
icon: d,
|
|
5544
5559
|
classNames: { title: ze.title, wrapper: "items-center" }
|
|
5545
5560
|
}
|
|
5546
5561
|
),
|
|
5547
|
-
t === "master" && f && c && /* @__PURE__ */ p(
|
|
5562
|
+
t === "master" && f && c && /* @__PURE__ */ p(st, { children: [
|
|
5548
5563
|
/* @__PURE__ */ e(
|
|
5549
|
-
|
|
5564
|
+
Bt,
|
|
5550
5565
|
{
|
|
5551
5566
|
...f,
|
|
5552
5567
|
classNames: {
|
|
@@ -5556,11 +5571,11 @@ const H = {
|
|
|
5556
5571
|
}
|
|
5557
5572
|
}
|
|
5558
5573
|
),
|
|
5559
|
-
/* @__PURE__ */ e(
|
|
5574
|
+
/* @__PURE__ */ e(cr, { rating: c, position: "right" })
|
|
5560
5575
|
] }),
|
|
5561
|
-
t === "service" && l && /* @__PURE__ */ p(
|
|
5576
|
+
t === "service" && l && /* @__PURE__ */ p(st, { children: [
|
|
5562
5577
|
/* @__PURE__ */ e(
|
|
5563
|
-
|
|
5578
|
+
Ye,
|
|
5564
5579
|
{
|
|
5565
5580
|
title: l.name,
|
|
5566
5581
|
icon: l.icon,
|
|
@@ -5580,7 +5595,7 @@ const H = {
|
|
|
5580
5595
|
)
|
|
5581
5596
|
] }),
|
|
5582
5597
|
/* @__PURE__ */ e(
|
|
5583
|
-
|
|
5598
|
+
We,
|
|
5584
5599
|
{
|
|
5585
5600
|
label: "Заявки в месяц:",
|
|
5586
5601
|
value: r,
|
|
@@ -5589,9 +5604,9 @@ const H = {
|
|
|
5589
5604
|
)
|
|
5590
5605
|
] }),
|
|
5591
5606
|
/* @__PURE__ */ e(
|
|
5592
|
-
|
|
5607
|
+
nt,
|
|
5593
5608
|
{
|
|
5594
|
-
echarts:
|
|
5609
|
+
echarts: ot,
|
|
5595
5610
|
option: b,
|
|
5596
5611
|
style: { height: 135, width: 135 }
|
|
5597
5612
|
}
|
|
@@ -5609,7 +5624,7 @@ const H = {
|
|
|
5609
5624
|
}, ao = (t, i) => {
|
|
5610
5625
|
const d = i - t;
|
|
5611
5626
|
return d >= 1 ? 100 : d > 0 ? d * 100 : 0;
|
|
5612
|
-
},
|
|
5627
|
+
}, cr = ({
|
|
5613
5628
|
rating: t,
|
|
5614
5629
|
classNames: i,
|
|
5615
5630
|
position: d = "left",
|
|
@@ -5631,7 +5646,7 @@ const H = {
|
|
|
5631
5646
|
);
|
|
5632
5647
|
return /* @__PURE__ */ p("div", { className: o(he.overlay.block), children: [
|
|
5633
5648
|
/* @__PURE__ */ e(
|
|
5634
|
-
|
|
5649
|
+
Wt,
|
|
5635
5650
|
{
|
|
5636
5651
|
className: o(he.icon, he.empty),
|
|
5637
5652
|
"data-testid": "star-empty"
|
|
@@ -5644,7 +5659,7 @@ const H = {
|
|
|
5644
5659
|
style: { width: `${c}%` },
|
|
5645
5660
|
"data-testid": "star-overlay",
|
|
5646
5661
|
children: /* @__PURE__ */ e(
|
|
5647
|
-
|
|
5662
|
+
Wt,
|
|
5648
5663
|
{
|
|
5649
5664
|
className: o(he.icon, he.filled),
|
|
5650
5665
|
"data-testid": "star-filled"
|
|
@@ -5683,7 +5698,7 @@ const H = {
|
|
|
5683
5698
|
textStyle: {
|
|
5684
5699
|
fontSize: 20,
|
|
5685
5700
|
fontWeight: 600,
|
|
5686
|
-
color:
|
|
5701
|
+
color: Pe.dark[10]
|
|
5687
5702
|
}
|
|
5688
5703
|
},
|
|
5689
5704
|
tooltip: {
|
|
@@ -5706,7 +5721,7 @@ const H = {
|
|
|
5706
5721
|
}
|
|
5707
5722
|
]
|
|
5708
5723
|
};
|
|
5709
|
-
}, xi =
|
|
5724
|
+
}, xi = K(
|
|
5710
5725
|
({ title: t, icon: i, data: d, colors: n, classNames: r, ...l }, c) => {
|
|
5711
5726
|
var f;
|
|
5712
5727
|
const a = [
|
|
@@ -5724,7 +5739,7 @@ const H = {
|
|
|
5724
5739
|
children: [
|
|
5725
5740
|
/* @__PURE__ */ p("div", { className: o(N.header, r == null ? void 0 : r.header), children: [
|
|
5726
5741
|
/* @__PURE__ */ e(
|
|
5727
|
-
|
|
5742
|
+
Ye,
|
|
5728
5743
|
{
|
|
5729
5744
|
title: t,
|
|
5730
5745
|
icon: i,
|
|
@@ -5760,7 +5775,7 @@ const H = {
|
|
|
5760
5775
|
}
|
|
5761
5776
|
),
|
|
5762
5777
|
/* @__PURE__ */ e(
|
|
5763
|
-
|
|
5778
|
+
We,
|
|
5764
5779
|
{
|
|
5765
5780
|
label: h.label,
|
|
5766
5781
|
value: h.value,
|
|
@@ -5777,9 +5792,9 @@ const H = {
|
|
|
5777
5792
|
}) })
|
|
5778
5793
|
] }),
|
|
5779
5794
|
/* @__PURE__ */ e("div", { className: o(N.chartBlock, r == null ? void 0 : r.chartBlock), children: a.map((h, u) => /* @__PURE__ */ e(
|
|
5780
|
-
|
|
5795
|
+
nt,
|
|
5781
5796
|
{
|
|
5782
|
-
echarts:
|
|
5797
|
+
echarts: ot,
|
|
5783
5798
|
"data-testid": "chart",
|
|
5784
5799
|
option: lo({
|
|
5785
5800
|
total: d.total,
|
|
@@ -5809,7 +5824,7 @@ const H = {
|
|
|
5809
5824
|
root: "flex flex-col gap-2",
|
|
5810
5825
|
dot: "size-2 rounded-full"
|
|
5811
5826
|
}
|
|
5812
|
-
}, gi =
|
|
5827
|
+
}, gi = K(
|
|
5813
5828
|
({ paid: t, pending: i, overdue: d, title: n, icon: r, total: l, classNames: c, ...a }, f) => {
|
|
5814
5829
|
var u;
|
|
5815
5830
|
const h = [
|
|
@@ -5831,7 +5846,7 @@ const H = {
|
|
|
5831
5846
|
children: [
|
|
5832
5847
|
/* @__PURE__ */ p("div", { className: o(Ie.header, c == null ? void 0 : c.header), children: [
|
|
5833
5848
|
/* @__PURE__ */ e(
|
|
5834
|
-
|
|
5849
|
+
Ye,
|
|
5835
5850
|
{
|
|
5836
5851
|
title: n,
|
|
5837
5852
|
icon: r,
|
|
@@ -5847,23 +5862,23 @@ const H = {
|
|
|
5847
5862
|
}
|
|
5848
5863
|
)
|
|
5849
5864
|
] }),
|
|
5850
|
-
/* @__PURE__ */ e("div", { className: o(Ie.bar.block, (u = c == null ? void 0 : c.bar) == null ? void 0 : u.block), children: h.map(({ label: b, value: x, color: s },
|
|
5865
|
+
/* @__PURE__ */ e("div", { className: o(Ie.bar.block, (u = c == null ? void 0 : c.bar) == null ? void 0 : u.block), children: h.map(({ label: b, value: x, color: s }, y) => {
|
|
5851
5866
|
var v;
|
|
5852
5867
|
return /* @__PURE__ */ p("div", { children: [
|
|
5853
5868
|
/* @__PURE__ */ p("div", { className: o(Ie.bar.text, (v = c == null ? void 0 : c.bar) == null ? void 0 : v.text), children: [
|
|
5854
5869
|
/* @__PURE__ */ e(k, { children: b }),
|
|
5855
|
-
/* @__PURE__ */ p(k, { className: o(
|
|
5870
|
+
/* @__PURE__ */ p(k, { className: o(y === 2 && "text-danger-10"), children: [
|
|
5856
5871
|
x,
|
|
5857
5872
|
" сум"
|
|
5858
5873
|
] })
|
|
5859
5874
|
] }),
|
|
5860
5875
|
/* @__PURE__ */ e(
|
|
5861
|
-
|
|
5876
|
+
pr,
|
|
5862
5877
|
{
|
|
5863
5878
|
value: x,
|
|
5864
5879
|
total: l,
|
|
5865
5880
|
color: s,
|
|
5866
|
-
classNames: { bar: `${
|
|
5881
|
+
classNames: { bar: `${y === 0 && "h-9"}` }
|
|
5867
5882
|
}
|
|
5868
5883
|
)
|
|
5869
5884
|
] }, b);
|
|
@@ -5883,20 +5898,20 @@ const H = {
|
|
|
5883
5898
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5884
5899
|
indicator: "h-full rounded-md"
|
|
5885
5900
|
}
|
|
5886
|
-
},
|
|
5901
|
+
}, pr = ({
|
|
5887
5902
|
value: t,
|
|
5888
5903
|
total: i,
|
|
5889
5904
|
color: d,
|
|
5890
5905
|
classNames: n
|
|
5891
5906
|
}) => {
|
|
5892
5907
|
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] = F(0);
|
|
5893
|
-
return
|
|
5908
|
+
return Me(() => {
|
|
5894
5909
|
const a = requestAnimationFrame(() => {
|
|
5895
5910
|
c(r);
|
|
5896
5911
|
});
|
|
5897
5912
|
return () => cancelAnimationFrame(a);
|
|
5898
|
-
}, [r]), /* @__PURE__ */ e(
|
|
5899
|
-
|
|
5913
|
+
}, [r]), /* @__PURE__ */ e(Xr, { className: o(zt.bar, n == null ? void 0 : n.bar), children: /* @__PURE__ */ e(
|
|
5914
|
+
Jr,
|
|
5900
5915
|
{
|
|
5901
5916
|
className: o(zt.indicator, d, n == null ? void 0 : n.indicator),
|
|
5902
5917
|
style: {
|
|
@@ -5911,8 +5926,8 @@ const H = {
|
|
|
5911
5926
|
export {
|
|
5912
5927
|
jo as Accordion,
|
|
5913
5928
|
ni as ApartmentCard,
|
|
5914
|
-
|
|
5915
|
-
|
|
5929
|
+
Bt as AvatarGroup,
|
|
5930
|
+
_o as Breadcrumb,
|
|
5916
5931
|
ti as CardFiles,
|
|
5917
5932
|
bi as CardMonthly,
|
|
5918
5933
|
ui as CardPieChart,
|
|
@@ -5925,49 +5940,49 @@ export {
|
|
|
5925
5940
|
di as ChatList,
|
|
5926
5941
|
ai as ChatMessage,
|
|
5927
5942
|
ii as ChatSidebar,
|
|
5928
|
-
|
|
5943
|
+
dr as CheckboxGroup,
|
|
5929
5944
|
Ho as CommentInput,
|
|
5930
5945
|
Oo as CommentList,
|
|
5931
|
-
|
|
5946
|
+
Jo as DateOfBirth,
|
|
5932
5947
|
Ao as DatePicker,
|
|
5933
5948
|
$o as DateRangePicker,
|
|
5934
5949
|
li as DeleteMessage,
|
|
5935
|
-
|
|
5950
|
+
Xo as DragAndDrop,
|
|
5936
5951
|
zn as Dropdown,
|
|
5937
5952
|
Ro as FileUploader,
|
|
5938
5953
|
Lo as FilterTable,
|
|
5939
5954
|
hi as FloorSelect,
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5955
|
+
Ye as IconTitle,
|
|
5956
|
+
jt as InputGroup,
|
|
5957
|
+
We as LabelWithValue,
|
|
5958
|
+
Yo as Languages,
|
|
5959
|
+
Ge as Link,
|
|
5945
5960
|
ci as MessageSettings,
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5961
|
+
Mo as MultiSelect,
|
|
5962
|
+
qn as NavButton,
|
|
5963
|
+
Go as Pagination,
|
|
5949
5964
|
O as PaginationTokens,
|
|
5950
|
-
|
|
5965
|
+
Wo as PasswordInput,
|
|
5951
5966
|
ri as PaymentCard,
|
|
5952
5967
|
Eo as PhoneInput,
|
|
5953
5968
|
Vo as Plate,
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5969
|
+
pr as ProgressItem,
|
|
5970
|
+
ar as RadioGroup,
|
|
5971
|
+
cr as Rating,
|
|
5957
5972
|
Cn as SearchInput,
|
|
5958
5973
|
ei as SelectGroup,
|
|
5959
|
-
|
|
5974
|
+
Jn as SelectList,
|
|
5960
5975
|
oi as ServiceOrders,
|
|
5961
|
-
|
|
5962
|
-
|
|
5976
|
+
Uo as Sidebar,
|
|
5977
|
+
lr as StatusSelect,
|
|
5963
5978
|
Po as Stepper,
|
|
5964
|
-
|
|
5979
|
+
Qo as TabGroup,
|
|
5965
5980
|
pi as TabList,
|
|
5966
|
-
|
|
5967
|
-
|
|
5981
|
+
Zo as TabSwitch,
|
|
5982
|
+
ye as TabSwitchTokens,
|
|
5968
5983
|
Io as Table,
|
|
5969
|
-
|
|
5970
|
-
|
|
5984
|
+
qo as TextareaGroup,
|
|
5985
|
+
Ko as ToggleGroup,
|
|
5971
5986
|
Fo as UploadInput,
|
|
5972
5987
|
No as UserContact,
|
|
5973
5988
|
se as accordionTokens,
|
|
@@ -5982,50 +5997,50 @@ export {
|
|
|
5982
5997
|
pe as cardServicesTokens,
|
|
5983
5998
|
ie as cardStatTokens,
|
|
5984
5999
|
je as chatButtonTokens,
|
|
5985
|
-
|
|
6000
|
+
Se as chatCardTokens,
|
|
5986
6001
|
Lt as chatListTokens,
|
|
5987
|
-
|
|
6002
|
+
Ke as chatMessageTokens,
|
|
5988
6003
|
Le as chatSidebarTokens,
|
|
5989
6004
|
ne as checkboxGroupTokens,
|
|
5990
|
-
|
|
6005
|
+
Ze as commentInputTokens,
|
|
5991
6006
|
z as commentItemTokens,
|
|
5992
6007
|
At as dateOfBirthClasses,
|
|
5993
|
-
|
|
6008
|
+
B as datePickerTokens,
|
|
5994
6009
|
Rn as dateRangePickerTokens,
|
|
5995
6010
|
Ln as dayPickerClasses,
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6011
|
+
Xe as deleteMessageTokens,
|
|
6012
|
+
Be as dragAndDropTokens,
|
|
6013
|
+
Mt as dropdownTokens,
|
|
6014
|
+
U as fileUploaderTokens,
|
|
6015
|
+
ut as filterTableTokens,
|
|
6001
6016
|
oe as floorSelectTokens,
|
|
6002
6017
|
$t as iconTitleTokens,
|
|
6003
|
-
|
|
6018
|
+
qe as inputGroupTokens,
|
|
6004
6019
|
Rt as labelWithValueTokens,
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6020
|
+
ft as languagesTokens,
|
|
6021
|
+
Kn as linkTokens,
|
|
6022
|
+
gt as messageSettingsTokens,
|
|
6008
6023
|
A as multiSelectTokens,
|
|
6009
|
-
|
|
6024
|
+
bt as navButtonTokens,
|
|
6010
6025
|
kn as passwordInputTokens,
|
|
6011
|
-
|
|
6012
|
-
|
|
6026
|
+
q as paymentCardTokens,
|
|
6027
|
+
we as phoneInputTokens,
|
|
6013
6028
|
$e as plateTokens,
|
|
6014
6029
|
zt as progressItemsTokens,
|
|
6015
6030
|
me as radioGroupTokens,
|
|
6016
6031
|
he as ratingTokens,
|
|
6017
6032
|
ee as searchInputTokens,
|
|
6018
|
-
|
|
6033
|
+
Xn as selectGroupTokens,
|
|
6019
6034
|
H as selectListTokens,
|
|
6020
|
-
|
|
6021
|
-
|
|
6035
|
+
ke as serviceOrdersTokens,
|
|
6036
|
+
Qe as sidebarTokens,
|
|
6022
6037
|
Re as statusSelectTokens,
|
|
6023
|
-
|
|
6024
|
-
|
|
6038
|
+
Y as stepperTokens,
|
|
6039
|
+
De as tabGroupTokens,
|
|
6025
6040
|
eo as tabListTokens,
|
|
6026
6041
|
V as tableTokens,
|
|
6027
6042
|
Ot as textareaGroupTokens,
|
|
6028
6043
|
Vn as toggleGroupTokens,
|
|
6029
6044
|
ve as uploadInputTokens,
|
|
6030
|
-
|
|
6045
|
+
xt as userContactTokens
|
|
6031
6046
|
};
|