@namuna-nur/ui-kit 1.9.17 → 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 +804 -791
- 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 Or, getCoreRowModel as Ar, flexRender 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
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
|
|
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
|
|
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, y = se.title,
|
|
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",
|
|
@@ -74,7 +74,7 @@ const jo = ({
|
|
|
74
74
|
"span",
|
|
75
75
|
{
|
|
76
76
|
className: o(
|
|
77
|
-
|
|
77
|
+
v,
|
|
78
78
|
r && "text-dark-30/25",
|
|
79
79
|
a == null ? void 0 : a.subtitle
|
|
80
80
|
),
|
|
@@ -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,
|
|
@@ -212,22 +212,22 @@ function Io({
|
|
|
212
212
|
data: d,
|
|
213
213
|
getCoreRowModel: Ar(),
|
|
214
214
|
manualSorting: !0
|
|
215
|
-
}), u = ue(null), b = (
|
|
216
|
-
const
|
|
217
|
-
c == null || c({ key:
|
|
215
|
+
}), u = ue(null), b = (v) => {
|
|
216
|
+
const m = l == null ? void 0 : l.find((D) => D.id === v), S = m != null && m.desc ? "asc" : "desc";
|
|
217
|
+
c == null || c({ key: v, order: S });
|
|
218
218
|
}, x = h.getFooterGroups().some(
|
|
219
|
-
(
|
|
220
|
-
), s = (
|
|
221
|
-
n != null && n.includes(
|
|
219
|
+
(v) => v.headers.some((m) => m.column.columnDef.footer)
|
|
220
|
+
), s = (v) => {
|
|
221
|
+
n != null && n.includes(v) ? r(n.filter((m) => m !== v)) : r([...n, v]);
|
|
222
222
|
}, y = () => {
|
|
223
|
-
const
|
|
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
|
-
(n == null ? void 0 : n.length) ===
|
|
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
232
|
/* @__PURE__ */ e($r, { className: "fill-dark-30/50" }),
|
|
233
233
|
/* @__PURE__ */ e(k, { className: V.infoText, children: "Нет данных" })
|
|
@@ -238,8 +238,8 @@ function Io({
|
|
|
238
238
|
className: o(V.wrapper, t == null ? void 0 : t.wrapper),
|
|
239
239
|
ref: u,
|
|
240
240
|
children: /* @__PURE__ */ p("table", { className: V.table, children: [
|
|
241
|
-
/* @__PURE__ */ e("thead", { className: V.tableHeader, children: h.getHeaderGroups().map((
|
|
242
|
-
var
|
|
241
|
+
/* @__PURE__ */ e("thead", { className: V.tableHeader, children: h.getHeaderGroups().map((v) => {
|
|
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 = (
|
|
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
256
|
onChange: y
|
|
257
257
|
}
|
|
258
258
|
)
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
|
|
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
|
-
(
|
|
280
|
+
(w == null ? void 0 : w.isSortable) && /* @__PURE__ */ e(
|
|
281
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
|
-
/* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((
|
|
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,44 +312,44 @@ function Io({
|
|
|
312
312
|
t == null ? void 0 : t.firstBodyCell
|
|
313
313
|
),
|
|
314
314
|
children: /* @__PURE__ */ e(
|
|
315
|
-
|
|
315
|
+
mt,
|
|
316
316
|
{
|
|
317
|
-
id:
|
|
318
|
-
checked: n == null ? void 0 : n.includes(
|
|
319
|
-
onChange: () => s(
|
|
317
|
+
id: v.id,
|
|
318
|
+
checked: n == null ? void 0 : n.includes(m),
|
|
319
|
+
onChange: () => s(m)
|
|
320
320
|
}
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
|
-
|
|
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
|
-
(n == null ? void 0 : n.includes(
|
|
332
|
-
|
|
333
|
-
!a &&
|
|
331
|
+
(n == null ? void 0 : n.includes(v.id)) && "font-bold",
|
|
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
|
]
|
|
345
345
|
},
|
|
346
|
-
|
|
346
|
+
v.id
|
|
347
347
|
);
|
|
348
348
|
}) }),
|
|
349
|
-
x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((
|
|
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,8 +497,8 @@ const wn = ({
|
|
|
497
497
|
setSelectedItems: a,
|
|
498
498
|
classNames: f
|
|
499
499
|
}, h) => {
|
|
500
|
-
const [u, b] = F(""), [x, s] = F(!1), y = ue(null),
|
|
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),
|
|
@@ -507,29 +507,29 @@ const wn = ({
|
|
|
507
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
531
|
(C = y.current) == null || C.focus();
|
|
532
|
-
},
|
|
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: [
|
|
@@ -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,
|
|
@@ -616,10 +616,10 @@ const wn = ({
|
|
|
616
616
|
] })
|
|
617
617
|
}
|
|
618
618
|
),
|
|
619
|
-
/* @__PURE__ */ e("div", { ref:
|
|
619
|
+
/* @__PURE__ */ e("div", { ref: v, children: /* @__PURE__ */ p(
|
|
620
620
|
le,
|
|
621
621
|
{
|
|
622
|
-
container:
|
|
622
|
+
container: v.current,
|
|
623
623
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
624
624
|
className: o(A.options),
|
|
625
625
|
children: [
|
|
@@ -629,7 +629,7 @@ const wn = ({
|
|
|
629
629
|
"input",
|
|
630
630
|
{
|
|
631
631
|
ref: y,
|
|
632
|
-
onChange:
|
|
632
|
+
onChange: D,
|
|
633
633
|
value: u,
|
|
634
634
|
autoFocus: !0,
|
|
635
635
|
className: A.input,
|
|
@@ -643,20 +643,20 @@ const wn = ({
|
|
|
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,
|
|
@@ -744,33 +744,33 @@ const wn = ({
|
|
|
744
744
|
isSearchResultDisabled: x = !0,
|
|
745
745
|
classNames: s,
|
|
746
746
|
...y
|
|
747
|
-
},
|
|
748
|
-
const [
|
|
749
|
-
|
|
747
|
+
}, v) => {
|
|
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,13 +848,13 @@ 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",
|
|
855
855
|
{
|
|
856
856
|
role: "searchbox",
|
|
857
|
-
ref:
|
|
857
|
+
ref: v,
|
|
858
858
|
value: t,
|
|
859
859
|
type: "text",
|
|
860
860
|
placeholder: "Поиск",
|
|
@@ -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 = {
|
|
@@ -1017,10 +1017,10 @@ const wn = ({
|
|
|
1017
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,13 +1043,13 @@ const wn = ({
|
|
|
1043
1043
|
disabled: h = !1,
|
|
1044
1044
|
...u
|
|
1045
1045
|
}, b) => {
|
|
1046
|
-
const [x, s] = $.useState(!1), y = $.useRef(null),
|
|
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
|
};
|
|
1052
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
1052
|
+
return /* @__PURE__ */ p("div", { className: o(v, a == null ? void 0 : a.root), children: [
|
|
1053
1053
|
/* @__PURE__ */ p("div", { className: ve.label.wrapper, children: [
|
|
1054
1054
|
!!d && /* @__PURE__ */ e(
|
|
1055
1055
|
P,
|
|
@@ -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
|
|
@@ -1090,20 +1090,22 @@ const wn = ({
|
|
|
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,
|
|
@@ -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",
|
|
@@ -1161,7 +1163,7 @@ const wn = ({
|
|
|
1161
1163
|
t.map(
|
|
1162
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,7 +1200,7 @@ const wn = ({
|
|
|
1198
1200
|
),
|
|
1199
1201
|
children: [
|
|
1200
1202
|
c && /* @__PURE__ */ e(
|
|
1201
|
-
|
|
1203
|
+
cr,
|
|
1202
1204
|
{
|
|
1203
1205
|
rating: y,
|
|
1204
1206
|
classNames: {
|
|
@@ -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), y = 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
|
)
|
|
@@ -1468,27 +1470,27 @@ const wn = ({
|
|
|
1468
1470
|
role: "dialog",
|
|
1469
1471
|
ref: s,
|
|
1470
1472
|
container: y.current,
|
|
1471
|
-
className:
|
|
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
|
-
}), y = $.useRef(null),
|
|
1621
|
+
}), y = $.useRef(null), v = $.useRef(!1);
|
|
1620
1622
|
$.useEffect(() => {
|
|
1621
|
-
if (
|
|
1622
|
-
const
|
|
1623
|
-
u(g ? `${
|
|
1623
|
+
if (v.current || !t || !(t.to && t.from)) return;
|
|
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
|
-
},
|
|
1641
|
-
|
|
1642
|
-
const { value: g } =
|
|
1642
|
+
}, D = (w) => {
|
|
1643
|
+
v.current = !0;
|
|
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,
|
|
@@ -1685,13 +1687,13 @@ const wn = ({
|
|
|
1685
1687
|
side: "bottom",
|
|
1686
1688
|
align: "start",
|
|
1687
1689
|
container: y.current,
|
|
1688
|
-
className: o(
|
|
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,12 +1837,12 @@ const wn = ({
|
|
|
1835
1837
|
align: c = "start",
|
|
1836
1838
|
classNames: a
|
|
1837
1839
|
}) => {
|
|
1838
|
-
const [f, h] = $.useState(), [u] =
|
|
1839
|
-
h(
|
|
1840
|
-
}, s =
|
|
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
1848
|
className: o(s.trigger, a == null ? void 0 : a.trigger),
|
|
@@ -1848,13 +1850,13 @@ const wn = ({
|
|
|
1848
1850
|
}
|
|
1849
1851
|
),
|
|
1850
1852
|
/* @__PURE__ */ e(
|
|
1851
|
-
|
|
1853
|
+
rt,
|
|
1852
1854
|
{
|
|
1853
1855
|
side: l,
|
|
1854
1856
|
align: c,
|
|
1855
1857
|
className: o(s.content, a == null ? void 0 : a.content),
|
|
1856
|
-
children: d == null ? void 0 : d.map((
|
|
1857
|
-
const S = (f == null ? void 0 : f.id) ===
|
|
1858
|
+
children: d == null ? void 0 : d.map((m) => {
|
|
1859
|
+
const S = (f == null ? void 0 : f.id) === m.id;
|
|
1858
1860
|
return /* @__PURE__ */ e(
|
|
1859
1861
|
"div",
|
|
1860
1862
|
{
|
|
@@ -1866,9 +1868,9 @@ const wn = ({
|
|
|
1866
1868
|
children: /* @__PURE__ */ p(
|
|
1867
1869
|
Dt,
|
|
1868
1870
|
{
|
|
1869
|
-
onClick: () => x(
|
|
1871
|
+
onClick: () => x(m),
|
|
1870
1872
|
className: o(
|
|
1871
|
-
|
|
1873
|
+
v.base,
|
|
1872
1874
|
S && "font-bold",
|
|
1873
1875
|
S && (a == null ? void 0 : a.text)
|
|
1874
1876
|
),
|
|
@@ -1877,24 +1879,24 @@ const wn = ({
|
|
|
1877
1879
|
"span",
|
|
1878
1880
|
{
|
|
1879
1881
|
className: o(
|
|
1880
|
-
|
|
1882
|
+
v.dot,
|
|
1881
1883
|
S && "bg-primary-10",
|
|
1882
1884
|
a == null ? void 0 : a.dot
|
|
1883
1885
|
)
|
|
1884
1886
|
}
|
|
1885
1887
|
),
|
|
1886
|
-
/* @__PURE__ */ e("span", { children:
|
|
1888
|
+
/* @__PURE__ */ e("span", { children: m.label })
|
|
1887
1889
|
]
|
|
1888
1890
|
}
|
|
1889
1891
|
)
|
|
1890
1892
|
},
|
|
1891
|
-
|
|
1893
|
+
m.id
|
|
1892
1894
|
);
|
|
1893
1895
|
})
|
|
1894
1896
|
}
|
|
1895
1897
|
)
|
|
1896
1898
|
] });
|
|
1897
|
-
},
|
|
1899
|
+
}, Mt = {
|
|
1898
1900
|
modal: {
|
|
1899
1901
|
trigger: "focus-visible:outline-none",
|
|
1900
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",
|
|
@@ -1913,21 +1915,21 @@ const wn = ({
|
|
|
1913
1915
|
onFilesUpload: n,
|
|
1914
1916
|
onDelete: r,
|
|
1915
1917
|
classNames: l
|
|
1916
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
1917
|
-
t && /* @__PURE__ */ p("div", { className:
|
|
1918
|
-
/* @__PURE__ */ e(kr, { className:
|
|
1919
|
-
/* @__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: [
|
|
1920
1922
|
t,
|
|
1921
1923
|
"(",
|
|
1922
1924
|
d.length,
|
|
1923
1925
|
")"
|
|
1924
1926
|
] })
|
|
1925
1927
|
] }),
|
|
1926
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
1928
|
+
/* @__PURE__ */ p("div", { className: o(U.container, l == null ? void 0 : l.container), children: [
|
|
1927
1929
|
d.length > 0 && d.map((c, a) => /* @__PURE__ */ e("div", { children: c.type.startsWith("image/") && c.publicUrl ? /* @__PURE__ */ p(
|
|
1928
1930
|
"div",
|
|
1929
1931
|
{
|
|
1930
|
-
className: o(
|
|
1932
|
+
className: o(U.imageWrapper, l == null ? void 0 : l.imageWrapper),
|
|
1931
1933
|
children: [
|
|
1932
1934
|
/* @__PURE__ */ p("div", { className: "relative group", children: [
|
|
1933
1935
|
/* @__PURE__ */ e(
|
|
@@ -1935,48 +1937,48 @@ const wn = ({
|
|
|
1935
1937
|
{
|
|
1936
1938
|
src: c.publicUrl,
|
|
1937
1939
|
alt: c.name,
|
|
1938
|
-
className: o(
|
|
1940
|
+
className: o(U.image, l == null ? void 0 : l.image)
|
|
1939
1941
|
}
|
|
1940
1942
|
),
|
|
1941
1943
|
/* @__PURE__ */ e(
|
|
1942
|
-
|
|
1944
|
+
Ue,
|
|
1943
1945
|
{
|
|
1944
1946
|
width: 20,
|
|
1945
1947
|
height: 20,
|
|
1946
|
-
className: o(
|
|
1948
|
+
className: o(U.closeIcon),
|
|
1947
1949
|
onClick: () => r == null ? void 0 : r(c.id)
|
|
1948
1950
|
}
|
|
1949
1951
|
)
|
|
1950
1952
|
] }),
|
|
1951
1953
|
/* @__PURE__ */ e(
|
|
1952
|
-
|
|
1954
|
+
Ge,
|
|
1953
1955
|
{
|
|
1954
1956
|
href: c.publicUrl,
|
|
1955
|
-
classNames: { root:
|
|
1957
|
+
classNames: { root: U.imageText },
|
|
1956
1958
|
isIconVisible: !1,
|
|
1957
1959
|
children: c.name
|
|
1958
1960
|
}
|
|
1959
1961
|
)
|
|
1960
1962
|
]
|
|
1961
1963
|
}
|
|
1962
|
-
) : /* @__PURE__ */ p("div", { className: o(
|
|
1963
|
-
/* @__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" }),
|
|
1964
1966
|
/* @__PURE__ */ p("div", { children: [
|
|
1965
|
-
/* @__PURE__ */ e(k, { variant: "p", className:
|
|
1966
|
-
/* @__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) })
|
|
1967
1969
|
] }),
|
|
1968
1970
|
/* @__PURE__ */ e(
|
|
1969
|
-
|
|
1971
|
+
Ge,
|
|
1970
1972
|
{
|
|
1971
1973
|
href: c.downloadUrl ?? "#",
|
|
1972
1974
|
isIconVisible: !1,
|
|
1973
1975
|
classNames: { root: "p-0" },
|
|
1974
1976
|
target: "_blank",
|
|
1975
1977
|
children: /* @__PURE__ */ e(
|
|
1976
|
-
|
|
1978
|
+
nr,
|
|
1977
1979
|
{
|
|
1978
1980
|
"data-testid": "download-icon",
|
|
1979
|
-
className:
|
|
1981
|
+
className: U.icon,
|
|
1980
1982
|
width: 24,
|
|
1981
1983
|
height: 24,
|
|
1982
1984
|
viewBox: "0 0 16 17"
|
|
@@ -1985,11 +1987,11 @@ const wn = ({
|
|
|
1985
1987
|
}
|
|
1986
1988
|
),
|
|
1987
1989
|
/* @__PURE__ */ e(
|
|
1988
|
-
|
|
1990
|
+
Ue,
|
|
1989
1991
|
{
|
|
1990
1992
|
width: 24,
|
|
1991
1993
|
height: 24,
|
|
1992
|
-
className:
|
|
1994
|
+
className: U.icon,
|
|
1993
1995
|
onClick: () => r == null ? void 0 : r(c.id),
|
|
1994
1996
|
viewBox: "0 0 20 20"
|
|
1995
1997
|
}
|
|
@@ -1999,9 +2001,9 @@ const wn = ({
|
|
|
1999
2001
|
"label",
|
|
2000
2002
|
{
|
|
2001
2003
|
htmlFor: "file-upload",
|
|
2002
|
-
className: o(
|
|
2004
|
+
className: o(U.target, l == null ? void 0 : l.target),
|
|
2003
2005
|
children: [
|
|
2004
|
-
/* @__PURE__ */ e(Cr, { className:
|
|
2006
|
+
/* @__PURE__ */ e(Cr, { className: U.plusIcon, role: "img" }),
|
|
2005
2007
|
/* @__PURE__ */ e(
|
|
2006
2008
|
"input",
|
|
2007
2009
|
{
|
|
@@ -2009,7 +2011,7 @@ const wn = ({
|
|
|
2009
2011
|
type: "file",
|
|
2010
2012
|
onChange: n,
|
|
2011
2013
|
multiple: !0,
|
|
2012
|
-
className:
|
|
2014
|
+
className: U.input
|
|
2013
2015
|
}
|
|
2014
2016
|
)
|
|
2015
2017
|
]
|
|
@@ -2020,11 +2022,11 @@ const wn = ({
|
|
|
2020
2022
|
k,
|
|
2021
2023
|
{
|
|
2022
2024
|
variant: "p",
|
|
2023
|
-
className: o(
|
|
2025
|
+
className: o(U.description, l == null ? void 0 : l.description),
|
|
2024
2026
|
children: i
|
|
2025
2027
|
}
|
|
2026
2028
|
)
|
|
2027
|
-
] }),
|
|
2029
|
+
] }), U = {
|
|
2028
2030
|
wrapper: "flex flex-col w-full",
|
|
2029
2031
|
header: "flex flex-row gap-1 justify-start items-center",
|
|
2030
2032
|
headerIcon: "w-4 h-4 text-dark-40/[.30]",
|
|
@@ -2053,23 +2055,23 @@ const wn = ({
|
|
|
2053
2055
|
icon: c,
|
|
2054
2056
|
iconSizes: a
|
|
2055
2057
|
}) => {
|
|
2056
|
-
const [f, h] = F(!1), b =
|
|
2057
|
-
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,
|
|
2058
2060
|
text: S = ""
|
|
2059
2061
|
}) => /* @__PURE__ */ e(
|
|
2060
2062
|
k,
|
|
2061
2063
|
{
|
|
2062
2064
|
className: o(
|
|
2063
2065
|
x.placeholder,
|
|
2064
|
-
|
|
2066
|
+
m,
|
|
2065
2067
|
i && y
|
|
2066
2068
|
),
|
|
2067
2069
|
children: S
|
|
2068
2070
|
}
|
|
2069
2071
|
);
|
|
2070
|
-
return /* @__PURE__ */ p(
|
|
2072
|
+
return /* @__PURE__ */ p(et, { open: f, onOpenChange: h, children: [
|
|
2071
2073
|
/* @__PURE__ */ p(
|
|
2072
|
-
|
|
2074
|
+
tt,
|
|
2073
2075
|
{
|
|
2074
2076
|
role: "listbox",
|
|
2075
2077
|
disabled: i,
|
|
@@ -2087,16 +2089,16 @@ const wn = ({
|
|
|
2087
2089
|
viewBox: a == null ? void 0 : a.viewBox,
|
|
2088
2090
|
className: o(x.icon, t == null ? void 0 : t.icon)
|
|
2089
2091
|
}
|
|
2090
|
-
) : /* @__PURE__ */ e(
|
|
2092
|
+
) : /* @__PURE__ */ e(v, { text: "Сортировать:", className: x.label }),
|
|
2091
2093
|
l ? /* @__PURE__ */ e(
|
|
2092
|
-
|
|
2094
|
+
v,
|
|
2093
2095
|
{
|
|
2094
2096
|
"data-testid": "dropdown-selected-option",
|
|
2095
2097
|
text: b == null ? void 0 : b.label,
|
|
2096
2098
|
className: o(x.selected, t == null ? void 0 : t.selected)
|
|
2097
2099
|
}
|
|
2098
2100
|
) : /* @__PURE__ */ e(
|
|
2099
|
-
|
|
2101
|
+
v,
|
|
2100
2102
|
{
|
|
2101
2103
|
text: r,
|
|
2102
2104
|
className: o(x.placeholder, t == null ? void 0 : t.placeholder)
|
|
@@ -2116,36 +2118,36 @@ const wn = ({
|
|
|
2116
2118
|
}
|
|
2117
2119
|
),
|
|
2118
2120
|
/* @__PURE__ */ e(
|
|
2119
|
-
|
|
2121
|
+
rt,
|
|
2120
2122
|
{
|
|
2121
2123
|
className: o(x.content, t == null ? void 0 : t.content),
|
|
2122
2124
|
align: "end",
|
|
2123
2125
|
sideOffset: 1,
|
|
2124
|
-
children: n && (n == null ? void 0 : n.map((
|
|
2126
|
+
children: n && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ e(
|
|
2125
2127
|
Dt,
|
|
2126
2128
|
{
|
|
2127
2129
|
className: x.items,
|
|
2128
2130
|
onClick: (S) => {
|
|
2129
|
-
S.stopPropagation(), d(
|
|
2131
|
+
S.stopPropagation(), d(m.value), h(!1);
|
|
2130
2132
|
},
|
|
2131
2133
|
children: /* @__PURE__ */ e(
|
|
2132
2134
|
k,
|
|
2133
2135
|
{
|
|
2134
2136
|
className: o(
|
|
2135
2137
|
x.item,
|
|
2136
|
-
l ===
|
|
2137
|
-
l ===
|
|
2138
|
+
l === m.value && "before:bg-dark-10",
|
|
2139
|
+
l === m.value ? "font-semibold" : "font-regular"
|
|
2138
2140
|
),
|
|
2139
|
-
children:
|
|
2141
|
+
children: m.label
|
|
2140
2142
|
}
|
|
2141
2143
|
)
|
|
2142
2144
|
},
|
|
2143
|
-
|
|
2145
|
+
m.value
|
|
2144
2146
|
)))
|
|
2145
2147
|
}
|
|
2146
2148
|
)
|
|
2147
2149
|
] });
|
|
2148
|
-
},
|
|
2150
|
+
}, ut = {
|
|
2149
2151
|
base: {
|
|
2150
2152
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2151
2153
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2176,14 +2178,14 @@ const wn = ({
|
|
|
2176
2178
|
"div",
|
|
2177
2179
|
{
|
|
2178
2180
|
className: o(
|
|
2179
|
-
|
|
2181
|
+
Se.wrapper,
|
|
2180
2182
|
a && "bg-primary-10/[.10]",
|
|
2181
2183
|
n == null ? void 0 : n.wrapper
|
|
2182
2184
|
),
|
|
2183
2185
|
onClick: c,
|
|
2184
2186
|
children: [
|
|
2185
2187
|
/* @__PURE__ */ e(
|
|
2186
|
-
|
|
2188
|
+
Bt,
|
|
2187
2189
|
{
|
|
2188
2190
|
fullName: i,
|
|
2189
2191
|
jobTitle: d,
|
|
@@ -2195,17 +2197,17 @@ const wn = ({
|
|
|
2195
2197
|
}
|
|
2196
2198
|
},
|
|
2197
2199
|
classNames: {
|
|
2198
|
-
fullName:
|
|
2199
|
-
jobTitle:
|
|
2200
|
+
fullName: Se.fullName,
|
|
2201
|
+
jobTitle: Se.jobTitle
|
|
2200
2202
|
}
|
|
2201
2203
|
}
|
|
2202
2204
|
),
|
|
2203
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2204
|
-
/* @__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 }),
|
|
2205
2207
|
!!r && /* @__PURE__ */ e(
|
|
2206
2208
|
k,
|
|
2207
2209
|
{
|
|
2208
|
-
className: o(
|
|
2210
|
+
className: o(Se.notification, n == null ? void 0 : n.notification),
|
|
2209
2211
|
"data-testid": "notification",
|
|
2210
2212
|
children: r
|
|
2211
2213
|
}
|
|
@@ -2213,7 +2215,7 @@ const wn = ({
|
|
|
2213
2215
|
] })
|
|
2214
2216
|
]
|
|
2215
2217
|
}
|
|
2216
|
-
),
|
|
2218
|
+
), Se = {
|
|
2217
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",
|
|
2218
2220
|
labelWrapper: "flex flex-col",
|
|
2219
2221
|
timeWrapper: "ml-auto self-start",
|
|
@@ -2221,7 +2223,7 @@ const wn = ({
|
|
|
2221
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",
|
|
2222
2224
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2223
2225
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2224
|
-
}, zo =
|
|
2226
|
+
}, zo = K(
|
|
2225
2227
|
({ classNames: t, disabled: i, item: { icon: d, label: n = "" }, ...r }, l) => /* @__PURE__ */ p(
|
|
2226
2228
|
"button",
|
|
2227
2229
|
{
|
|
@@ -2288,10 +2290,10 @@ const wn = ({
|
|
|
2288
2290
|
container: "hover:border-primary-20/[.30]"
|
|
2289
2291
|
}
|
|
2290
2292
|
}, Ho = $.forwardRef(({ textareaProps: t, disabled: i, classNames: d, iconSizes: n, onIconClick: r }, l) => {
|
|
2291
|
-
const c =
|
|
2292
|
-
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: [
|
|
2293
2295
|
f && /* @__PURE__ */ e(be, { className: "fill-danger-10 mb-[5px]" }),
|
|
2294
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2296
|
+
/* @__PURE__ */ p("div", { className: o(Ze.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2295
2297
|
/* @__PURE__ */ e(
|
|
2296
2298
|
Qt,
|
|
2297
2299
|
{
|
|
@@ -2324,7 +2326,7 @@ const wn = ({
|
|
|
2324
2326
|
)
|
|
2325
2327
|
] })
|
|
2326
2328
|
] });
|
|
2327
|
-
}),
|
|
2329
|
+
}), Ze = {
|
|
2328
2330
|
parent: "flex flex-col",
|
|
2329
2331
|
wrapper: "relative flex items-center w-full",
|
|
2330
2332
|
base: "overflow-hidden resize-none pe-12 min-h-14 w-full",
|
|
@@ -2345,7 +2347,7 @@ const wn = ({
|
|
|
2345
2347
|
hover: "group-hover:text-primary-20",
|
|
2346
2348
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2347
2349
|
}
|
|
2348
|
-
},
|
|
2350
|
+
}, ar = K(
|
|
2349
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: [
|
|
2350
2352
|
/* @__PURE__ */ e(
|
|
2351
2353
|
qt,
|
|
@@ -2376,18 +2378,18 @@ const wn = ({
|
|
|
2376
2378
|
)
|
|
2377
2379
|
] })
|
|
2378
2380
|
);
|
|
2379
|
-
|
|
2380
|
-
const
|
|
2381
|
+
ar.displayName = "RadioGroup";
|
|
2382
|
+
const Un = ({
|
|
2381
2383
|
openDropdown: t,
|
|
2382
2384
|
setOpenDropdown: i,
|
|
2383
2385
|
isExpanded: d,
|
|
2384
2386
|
item: { id: n, label: r, icon: l, to: c, subItems: a },
|
|
2385
2387
|
onSubNavClick: f
|
|
2386
2388
|
}) => {
|
|
2387
|
-
const [h] =
|
|
2388
|
-
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: [
|
|
2389
2391
|
/* @__PURE__ */ p(
|
|
2390
|
-
|
|
2392
|
+
Qr,
|
|
2391
2393
|
{
|
|
2392
2394
|
className: o(
|
|
2393
2395
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px]",
|
|
@@ -2435,8 +2437,8 @@ const Yn = ({
|
|
|
2435
2437
|
]
|
|
2436
2438
|
}
|
|
2437
2439
|
),
|
|
2438
|
-
d && /* @__PURE__ */ e(
|
|
2439
|
-
|
|
2440
|
+
d && /* @__PURE__ */ e(qr, { className: "flex flex-col items-start", children: a == null ? void 0 : a.map((u) => /* @__PURE__ */ e(
|
|
2441
|
+
Tt,
|
|
2440
2442
|
{
|
|
2441
2443
|
to: `${c}/${u == null ? void 0 : u.to}?${h.toString()}`,
|
|
2442
2444
|
onClick: f,
|
|
@@ -2449,7 +2451,7 @@ const Yn = ({
|
|
|
2449
2451
|
u.id
|
|
2450
2452
|
)) })
|
|
2451
2453
|
] }) });
|
|
2452
|
-
},
|
|
2454
|
+
}, Uo = ({
|
|
2453
2455
|
isExpanded: t = !0,
|
|
2454
2456
|
navList: i,
|
|
2455
2457
|
onCollapse: d
|
|
@@ -2458,7 +2460,7 @@ const Yn = ({
|
|
|
2458
2460
|
null
|
|
2459
2461
|
);
|
|
2460
2462
|
$.useEffect(() => r(null), [l]);
|
|
2461
|
-
const a =
|
|
2463
|
+
const a = Qe.root, f = Qe.header, h = Qe.body, u = Qe.logo;
|
|
2462
2464
|
return /* @__PURE__ */ p(
|
|
2463
2465
|
"aside",
|
|
2464
2466
|
{
|
|
@@ -2471,9 +2473,9 @@ const Yn = ({
|
|
|
2471
2473
|
{
|
|
2472
2474
|
className: o(f.base, t && f.expanded),
|
|
2473
2475
|
children: [
|
|
2474
|
-
/* @__PURE__ */ e(
|
|
2476
|
+
/* @__PURE__ */ e(Tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Rr, {}) : /* @__PURE__ */ e(pn, {}) }),
|
|
2475
2477
|
/* @__PURE__ */ e(
|
|
2476
|
-
|
|
2478
|
+
M,
|
|
2477
2479
|
{
|
|
2478
2480
|
type: "button",
|
|
2479
2481
|
variant: "text",
|
|
@@ -2498,7 +2500,7 @@ const Yn = ({
|
|
|
2498
2500
|
/* @__PURE__ */ e("div", { className: o(h.base, !t && h.expanded), children: i.map((b) => {
|
|
2499
2501
|
var x;
|
|
2500
2502
|
return /* @__PURE__ */ e($.Fragment, { children: (x = b.subItems) != null && x.length ? /* @__PURE__ */ e(
|
|
2501
|
-
|
|
2503
|
+
Un,
|
|
2502
2504
|
{
|
|
2503
2505
|
item: b,
|
|
2504
2506
|
isExpanded: t,
|
|
@@ -2509,7 +2511,7 @@ const Yn = ({
|
|
|
2509
2511
|
onSubNavClick: () => r(null)
|
|
2510
2512
|
}
|
|
2511
2513
|
) : /* @__PURE__ */ e(
|
|
2512
|
-
|
|
2514
|
+
qn,
|
|
2513
2515
|
{
|
|
2514
2516
|
item: b,
|
|
2515
2517
|
badge: b.badge,
|
|
@@ -2522,7 +2524,7 @@ const Yn = ({
|
|
|
2522
2524
|
]
|
|
2523
2525
|
}
|
|
2524
2526
|
);
|
|
2525
|
-
},
|
|
2527
|
+
}, Qe = {
|
|
2526
2528
|
root: {
|
|
2527
2529
|
base: "w-16 min-h-screen bg-sidebar-50 transition-all duration-500 ease-in-out",
|
|
2528
2530
|
expanded: "w-[257px] overflow-x-hidden"
|
|
@@ -2536,7 +2538,7 @@ const Yn = ({
|
|
|
2536
2538
|
base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
|
|
2537
2539
|
expanded: "w-16 items-center"
|
|
2538
2540
|
}
|
|
2539
|
-
},
|
|
2541
|
+
}, Yo = ({
|
|
2540
2542
|
options: t,
|
|
2541
2543
|
selectedValue: i,
|
|
2542
2544
|
onChange: d,
|
|
@@ -2554,10 +2556,10 @@ const Yn = ({
|
|
|
2554
2556
|
"data-testid": "switcher-language",
|
|
2555
2557
|
children: /* @__PURE__ */ p(de, { open: l, onOpenChange: c, children: [
|
|
2556
2558
|
/* @__PURE__ */ e(ae, { className: "focus-visible:outline-none", asChild: !0, children: /* @__PURE__ */ e(
|
|
2557
|
-
|
|
2559
|
+
M,
|
|
2558
2560
|
{
|
|
2559
2561
|
variant: "text",
|
|
2560
|
-
icon:
|
|
2562
|
+
icon: Ne,
|
|
2561
2563
|
iconPosition: "right",
|
|
2562
2564
|
onClick: () => c(!l),
|
|
2563
2565
|
"data-testid": "language-button",
|
|
@@ -2573,7 +2575,7 @@ const Yn = ({
|
|
|
2573
2575
|
children: i.label
|
|
2574
2576
|
}
|
|
2575
2577
|
) }),
|
|
2576
|
-
r && /* @__PURE__ */ e(k, { className:
|
|
2578
|
+
r && /* @__PURE__ */ e(k, { className: ft.error, children: "Введите все языки" }),
|
|
2577
2579
|
/* @__PURE__ */ e(
|
|
2578
2580
|
le,
|
|
2579
2581
|
{
|
|
@@ -2581,11 +2583,11 @@ const Yn = ({
|
|
|
2581
2583
|
align: "center",
|
|
2582
2584
|
sideOffset: 4,
|
|
2583
2585
|
side: "bottom",
|
|
2584
|
-
className: o(
|
|
2585
|
-
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) => {
|
|
2586
2588
|
const u = `radio-${h.value}`;
|
|
2587
2589
|
return /* @__PURE__ */ e(
|
|
2588
|
-
|
|
2590
|
+
ar,
|
|
2589
2591
|
{
|
|
2590
2592
|
id: u,
|
|
2591
2593
|
checked: h.value === (i == null ? void 0 : i.value),
|
|
@@ -2600,11 +2602,11 @@ const Yn = ({
|
|
|
2600
2602
|
] })
|
|
2601
2603
|
}
|
|
2602
2604
|
);
|
|
2603
|
-
},
|
|
2605
|
+
}, ft = {
|
|
2604
2606
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2605
2607
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2606
2608
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
2607
|
-
},
|
|
2609
|
+
}, Yn = [
|
|
2608
2610
|
{
|
|
2609
2611
|
label: "10",
|
|
2610
2612
|
value: "10"
|
|
@@ -2622,7 +2624,7 @@ const Yn = ({
|
|
|
2622
2624
|
value: "100"
|
|
2623
2625
|
}
|
|
2624
2626
|
];
|
|
2625
|
-
function
|
|
2627
|
+
function Gn(t, i) {
|
|
2626
2628
|
if (i <= 10)
|
|
2627
2629
|
return Array.from({ length: i }, (l, c) => c + 1);
|
|
2628
2630
|
const d = [], n = Math.max(t - 2, 1), r = Math.min(t + 2, i);
|
|
@@ -2631,7 +2633,7 @@ function Un(t, i) {
|
|
|
2631
2633
|
l !== 1 && l !== i && d.push(l);
|
|
2632
2634
|
return r < i - 1 && d.push("..."), i > 1 && d.push(i), d;
|
|
2633
2635
|
}
|
|
2634
|
-
const
|
|
2636
|
+
const Go = ({
|
|
2635
2637
|
currentPageIndex: t,
|
|
2636
2638
|
onPageChange: i,
|
|
2637
2639
|
totalPages: d,
|
|
@@ -2640,7 +2642,7 @@ const Uo = ({
|
|
|
2640
2642
|
totalItems: l = 10,
|
|
2641
2643
|
className: c
|
|
2642
2644
|
}) => {
|
|
2643
|
-
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);
|
|
2644
2646
|
return /* @__PURE__ */ p("div", { className: o(O.wrapper, c), children: [
|
|
2645
2647
|
/* @__PURE__ */ p("div", { className: o(O.countWrapper.base), children: [
|
|
2646
2648
|
/* @__PURE__ */ e("p", { className: o(O.countWrapper.text), children: "Отображено: " }),
|
|
@@ -2654,7 +2656,7 @@ const Uo = ({
|
|
|
2654
2656
|
] }),
|
|
2655
2657
|
/* @__PURE__ */ p("div", { className: o(O.nav.base), children: [
|
|
2656
2658
|
/* @__PURE__ */ e(
|
|
2657
|
-
|
|
2659
|
+
M,
|
|
2658
2660
|
{
|
|
2659
2661
|
disabled: a,
|
|
2660
2662
|
"aria-label": "Previous Page",
|
|
@@ -2682,7 +2684,7 @@ const Uo = ({
|
|
|
2682
2684
|
),
|
|
2683
2685
|
/* @__PURE__ */ e("div", { className: o(O.nav.pageBtnWrapper), children: b.map(
|
|
2684
2686
|
(x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: o(O.pageButton.base), children: "..." }, `dots-${s}`) : /* @__PURE__ */ e(
|
|
2685
|
-
|
|
2687
|
+
M,
|
|
2686
2688
|
{
|
|
2687
2689
|
onClick: () => i == null ? void 0 : i(x),
|
|
2688
2690
|
"aria-current": x === t ? "page" : void 0,
|
|
@@ -2701,7 +2703,7 @@ const Uo = ({
|
|
|
2701
2703
|
)
|
|
2702
2704
|
) }),
|
|
2703
2705
|
/* @__PURE__ */ e(
|
|
2704
|
-
|
|
2706
|
+
M,
|
|
2705
2707
|
{
|
|
2706
2708
|
disabled: f,
|
|
2707
2709
|
"aria-label": "Next Page",
|
|
@@ -2729,9 +2731,9 @@ const Uo = ({
|
|
|
2729
2731
|
}
|
|
2730
2732
|
),
|
|
2731
2733
|
/* @__PURE__ */ e(
|
|
2732
|
-
|
|
2734
|
+
Ce,
|
|
2733
2735
|
{
|
|
2734
|
-
options:
|
|
2736
|
+
options: Yn,
|
|
2735
2737
|
onChange: r,
|
|
2736
2738
|
value: n,
|
|
2737
2739
|
classNames: {
|
|
@@ -2770,9 +2772,15 @@ const Uo = ({
|
|
|
2770
2772
|
text: "text-dark-40/[.50] font-mono text-sm leading-none font-medium",
|
|
2771
2773
|
current: "text-dark-30 font-mono text-sm leading-none font-medium"
|
|
2772
2774
|
}
|
|
2773
|
-
},
|
|
2774
|
-
|
|
2775
|
-
|
|
2775
|
+
}, Ft = {
|
|
2776
|
+
UZ: {
|
|
2777
|
+
mask: "+___ (__) ___ __ __",
|
|
2778
|
+
replacement: { _: /\d/ }
|
|
2779
|
+
},
|
|
2780
|
+
DEFAULT: {
|
|
2781
|
+
mask: "+_______________",
|
|
2782
|
+
replacement: { _: /\d/ }
|
|
2783
|
+
}
|
|
2776
2784
|
}, Eo = ({
|
|
2777
2785
|
value: t = "",
|
|
2778
2786
|
id: i,
|
|
@@ -2780,27 +2788,31 @@ const Uo = ({
|
|
|
2780
2788
|
disabled: n,
|
|
2781
2789
|
autoFocus: r = !1,
|
|
2782
2790
|
status: l,
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2791
|
+
countryCode: c = "DEFAULT",
|
|
2792
|
+
onChange: a,
|
|
2793
|
+
classNames: f,
|
|
2794
|
+
...h
|
|
2786
2795
|
}) => {
|
|
2787
|
-
const
|
|
2788
|
-
() =>
|
|
2796
|
+
const u = Ut(
|
|
2797
|
+
() => Ft[c] || Ft.DEFAULT,
|
|
2798
|
+
[c]
|
|
2799
|
+
), b = ir(u), [x, s] = F(
|
|
2800
|
+
() => ct(String(t), u)
|
|
2789
2801
|
);
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}, [t]);
|
|
2793
|
-
const
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2796
|
-
},
|
|
2797
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2798
|
-
/* @__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: [
|
|
2799
2811
|
!!d && /* @__PURE__ */ e(
|
|
2800
2812
|
P,
|
|
2801
2813
|
{
|
|
2802
2814
|
htmlFor: i,
|
|
2803
|
-
className: o(
|
|
2815
|
+
className: o(f == null ? void 0 : f.label),
|
|
2804
2816
|
disabled: n,
|
|
2805
2817
|
children: d
|
|
2806
2818
|
}
|
|
@@ -2810,36 +2822,37 @@ const Uo = ({
|
|
|
2810
2822
|
/* @__PURE__ */ e(
|
|
2811
2823
|
"input",
|
|
2812
2824
|
{
|
|
2813
|
-
ref:
|
|
2825
|
+
ref: b,
|
|
2814
2826
|
id: i,
|
|
2815
|
-
onChange:
|
|
2816
|
-
value:
|
|
2817
|
-
placeholder: "+998 (
|
|
2827
|
+
onChange: y,
|
|
2828
|
+
value: x,
|
|
2829
|
+
placeholder: c === "UZ" ? "+998 (__) ___ __ __" : "Введите телефон номер",
|
|
2818
2830
|
disabled: n,
|
|
2819
2831
|
autoFocus: r,
|
|
2820
2832
|
className: o(
|
|
2821
|
-
|
|
2822
|
-
!n &&
|
|
2823
|
-
!n &&
|
|
2824
|
-
!n && r &&
|
|
2825
|
-
n &&
|
|
2826
|
-
l === "danger" &&
|
|
2827
|
-
|
|
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
|
|
2828
2840
|
),
|
|
2829
|
-
...
|
|
2841
|
+
...h
|
|
2830
2842
|
}
|
|
2831
2843
|
)
|
|
2832
2844
|
] });
|
|
2833
|
-
},
|
|
2845
|
+
}, we = {
|
|
2834
2846
|
parent: "relative flex flex-col items-start",
|
|
2835
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",
|
|
2836
2849
|
hover: "hover:border-primary-10/[.30] hover:cursor-pointer transition-colors duration-100",
|
|
2837
2850
|
focus: "focus:bg-white focus:border-primary-10 focus:ring-2 focus:ring-primary-10/[.20] focus:outline-none",
|
|
2838
2851
|
disabled: "bg-gray-40 border-gray-40 placeholder:text-dark/25 placeholder:text-sm placeholder:text-sans cursor-not-allowed",
|
|
2839
2852
|
variants: {
|
|
2840
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"
|
|
2841
2854
|
}
|
|
2842
|
-
}, { Root: En } =
|
|
2855
|
+
}, { Root: En } = rr, Vo = Ht.forwardRef(
|
|
2843
2856
|
({
|
|
2844
2857
|
id: t = "",
|
|
2845
2858
|
title: i,
|
|
@@ -2855,54 +2868,54 @@ const Uo = ({
|
|
|
2855
2868
|
}, b) => {
|
|
2856
2869
|
const [x, s] = F(n || ""), y = (g) => {
|
|
2857
2870
|
s(g), r == null || r(t, g);
|
|
2858
|
-
},
|
|
2871
|
+
}, v = u.disabled || !1, m = $e.base, S = $e.pressed, D = $e.hover, I = $e.disabled, w = $e.content;
|
|
2859
2872
|
return /* @__PURE__ */ p(
|
|
2860
2873
|
En,
|
|
2861
2874
|
{
|
|
2862
2875
|
ref: b,
|
|
2863
2876
|
onClick: () => h == null ? void 0 : h(t),
|
|
2864
2877
|
className: o(
|
|
2865
|
-
|
|
2878
|
+
m,
|
|
2866
2879
|
S,
|
|
2867
|
-
!
|
|
2868
|
-
|
|
2880
|
+
!v && D,
|
|
2881
|
+
v && I,
|
|
2869
2882
|
f
|
|
2870
2883
|
),
|
|
2871
2884
|
...u,
|
|
2872
2885
|
children: [
|
|
2873
|
-
/* @__PURE__ */ p("div", { className:
|
|
2886
|
+
/* @__PURE__ */ p("div", { className: w.header, "data-testid": "plate", children: [
|
|
2874
2887
|
/* @__PURE__ */ e(
|
|
2875
2888
|
k,
|
|
2876
2889
|
{
|
|
2877
2890
|
className: o(
|
|
2878
|
-
|
|
2879
|
-
|
|
2891
|
+
w.title,
|
|
2892
|
+
v && w.disabled
|
|
2880
2893
|
),
|
|
2881
2894
|
children: i
|
|
2882
2895
|
}
|
|
2883
2896
|
),
|
|
2884
|
-
/* @__PURE__ */ p("div", { className:
|
|
2897
|
+
/* @__PURE__ */ p("div", { className: w.actions, children: [
|
|
2885
2898
|
!!c && /* @__PURE__ */ e(
|
|
2886
|
-
|
|
2899
|
+
lr,
|
|
2887
2900
|
{
|
|
2888
2901
|
options: c,
|
|
2889
2902
|
value: x,
|
|
2890
2903
|
onChange: y,
|
|
2891
|
-
disabled:
|
|
2904
|
+
disabled: v
|
|
2892
2905
|
}
|
|
2893
2906
|
),
|
|
2894
2907
|
!!a && /* @__PURE__ */ p(de, { children: [
|
|
2895
2908
|
/* @__PURE__ */ e(ae, { onClick: (g) => g.stopPropagation(), asChild: !0, children: /* @__PURE__ */ e(
|
|
2896
|
-
|
|
2909
|
+
M,
|
|
2897
2910
|
{
|
|
2898
2911
|
variant: "text",
|
|
2899
2912
|
classNames: {
|
|
2900
|
-
base:
|
|
2913
|
+
base: w.button
|
|
2901
2914
|
},
|
|
2902
2915
|
children: /* @__PURE__ */ e(
|
|
2903
2916
|
tn,
|
|
2904
2917
|
{
|
|
2905
|
-
className:
|
|
2918
|
+
className: w.icon,
|
|
2906
2919
|
width: 15,
|
|
2907
2920
|
height: 15,
|
|
2908
2921
|
viewBox: "0 0 6 24"
|
|
@@ -2910,22 +2923,23 @@ const Uo = ({
|
|
|
2910
2923
|
)
|
|
2911
2924
|
}
|
|
2912
2925
|
) }),
|
|
2913
|
-
/* @__PURE__ */ e(le, { className:
|
|
2926
|
+
/* @__PURE__ */ e(le, { className: w.popup, children: a })
|
|
2914
2927
|
] })
|
|
2915
2928
|
] })
|
|
2916
2929
|
] }),
|
|
2917
|
-
/* @__PURE__ */ e("div", { className:
|
|
2918
|
-
/* @__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: [
|
|
2919
2932
|
g.label,
|
|
2920
2933
|
":",
|
|
2921
2934
|
g.href ? /* @__PURE__ */ e(
|
|
2922
|
-
|
|
2935
|
+
Ge,
|
|
2923
2936
|
{
|
|
2924
2937
|
weight: "font-semibold",
|
|
2925
2938
|
isIconVisible: !1,
|
|
2926
2939
|
href: g.href,
|
|
2940
|
+
target: "_blank",
|
|
2927
2941
|
classNames: {
|
|
2928
|
-
root:
|
|
2942
|
+
root: w.link
|
|
2929
2943
|
},
|
|
2930
2944
|
children: String(g.value).slice(0, 15).padEnd(18, ".")
|
|
2931
2945
|
}
|
|
@@ -2933,8 +2947,8 @@ const Uo = ({
|
|
|
2933
2947
|
"span",
|
|
2934
2948
|
{
|
|
2935
2949
|
className: o(
|
|
2936
|
-
|
|
2937
|
-
|
|
2950
|
+
w.amount,
|
|
2951
|
+
v && w.disabled
|
|
2938
2952
|
),
|
|
2939
2953
|
children: g.value
|
|
2940
2954
|
}
|
|
@@ -2956,33 +2970,33 @@ const Uo = ({
|
|
|
2956
2970
|
flatType: "flex flex-s mb-2.5",
|
|
2957
2971
|
link: "inline bg-gray-40 rounded-xl pb-1.5 pt-1 px-3 text-dark-10",
|
|
2958
2972
|
flexWrapper: "flex flex-col gap-1",
|
|
2959
|
-
typography: "flex items-
|
|
2973
|
+
typography: "flex items-start gap-1 text-sm text-dark-10/[.40] text-start font-medium",
|
|
2960
2974
|
button: "p-0 flex items-center justify-center",
|
|
2961
2975
|
icon: "fill-secondary-10/[.40]",
|
|
2962
2976
|
popup: "flex flex-col px-3 py-2 w-auto items-start gap-2.5",
|
|
2963
|
-
amount: "text-dark-30 font-semibold",
|
|
2977
|
+
amount: "block text-dark-30 font-semibold break-all",
|
|
2964
2978
|
disabled: "text-dark-30/[.42]"
|
|
2965
2979
|
}
|
|
2966
|
-
},
|
|
2980
|
+
}, Zo = Ht.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: d, classNames: n, iconSizes: r }, l) => /* @__PURE__ */ e(
|
|
2967
2981
|
Jt,
|
|
2968
2982
|
{
|
|
2969
2983
|
ref: l,
|
|
2970
2984
|
value: i,
|
|
2971
2985
|
onValueChange: d,
|
|
2972
|
-
className: o(n == null ? void 0 : n.tab,
|
|
2973
|
-
children: /* @__PURE__ */ e(
|
|
2974
|
-
|
|
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,
|
|
2975
2989
|
{
|
|
2976
2990
|
value: c.value,
|
|
2977
2991
|
disabled: c.disabled,
|
|
2978
|
-
className: o(
|
|
2992
|
+
className: o(ye.trigger, n == null ? void 0 : n.trigger),
|
|
2979
2993
|
children: [
|
|
2980
|
-
/* @__PURE__ */ p(k, { variant: "span", className:
|
|
2994
|
+
/* @__PURE__ */ p(k, { variant: "span", className: ye.label, children: [
|
|
2981
2995
|
(c == null ? void 0 : c.icon) && /* @__PURE__ */ e(
|
|
2982
2996
|
c.icon,
|
|
2983
2997
|
{
|
|
2984
2998
|
className: o(
|
|
2985
|
-
i === c.value ?
|
|
2999
|
+
i === c.value ? ye.activeIcon : ye.iconInactive,
|
|
2986
3000
|
n == null ? void 0 : n.icon
|
|
2987
3001
|
),
|
|
2988
3002
|
width: r == null ? void 0 : r.width,
|
|
@@ -2993,13 +3007,13 @@ const Uo = ({
|
|
|
2993
3007
|
" ",
|
|
2994
3008
|
c.label
|
|
2995
3009
|
] }),
|
|
2996
|
-
c.badge && /* @__PURE__ */ e(k, { variant: "span", className:
|
|
3010
|
+
c.badge && /* @__PURE__ */ e(k, { variant: "span", className: ye.badge, children: c.badge })
|
|
2997
3011
|
]
|
|
2998
3012
|
},
|
|
2999
3013
|
c.value
|
|
3000
3014
|
)) })
|
|
3001
3015
|
}
|
|
3002
|
-
)),
|
|
3016
|
+
)), ye = {
|
|
3003
3017
|
tab: "w-full",
|
|
3004
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",
|
|
3005
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",
|
|
@@ -3008,14 +3022,14 @@ const Uo = ({
|
|
|
3008
3022
|
label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
|
|
3009
3023
|
activeIcon: "fill-dark-40",
|
|
3010
3024
|
iconInactive: "fill-dark-40/[.50]"
|
|
3011
|
-
},
|
|
3025
|
+
}, Qo = $.forwardRef(
|
|
3012
3026
|
({ tabs: t = [], activeTab: i, onTabChange: d, onEditTabContent: n, classNames: r }, l) => {
|
|
3013
|
-
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(
|
|
3014
3028
|
"ul",
|
|
3015
3029
|
{
|
|
3016
3030
|
role: "listbox",
|
|
3017
3031
|
className: o(b.base, r == null ? void 0 : r.datalist),
|
|
3018
|
-
children: s.map((y,
|
|
3032
|
+
children: s.map((y, v) => /* @__PURE__ */ p(
|
|
3019
3033
|
"li",
|
|
3020
3034
|
{
|
|
3021
3035
|
className: o(b.item, r == null ? void 0 : r.dataItem),
|
|
@@ -3028,7 +3042,7 @@ const Uo = ({
|
|
|
3028
3042
|
y.value
|
|
3029
3043
|
]
|
|
3030
3044
|
},
|
|
3031
|
-
|
|
3045
|
+
v
|
|
3032
3046
|
))
|
|
3033
3047
|
}
|
|
3034
3048
|
);
|
|
@@ -3040,15 +3054,15 @@ const Uo = ({
|
|
|
3040
3054
|
onValueChange: d,
|
|
3041
3055
|
className: o(c, r == null ? void 0 : r.base),
|
|
3042
3056
|
children: [
|
|
3043
|
-
/* @__PURE__ */ e(
|
|
3044
|
-
|
|
3057
|
+
/* @__PURE__ */ e(Pt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3058
|
+
Nt,
|
|
3045
3059
|
{
|
|
3046
3060
|
value: s.value,
|
|
3047
3061
|
disabled: s.disabled,
|
|
3048
3062
|
className: o(
|
|
3049
3063
|
"curved-tab",
|
|
3050
3064
|
y === 0 && "first-tab",
|
|
3051
|
-
y ===
|
|
3065
|
+
y === v.length - 1 && "last-tab",
|
|
3052
3066
|
f.base,
|
|
3053
3067
|
f.active,
|
|
3054
3068
|
f.hover,
|
|
@@ -3067,14 +3081,14 @@ const Uo = ({
|
|
|
3067
3081
|
},
|
|
3068
3082
|
s.value
|
|
3069
3083
|
)) }),
|
|
3070
|
-
t.map((s, y,
|
|
3071
|
-
|
|
3084
|
+
t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3085
|
+
Kr,
|
|
3072
3086
|
{
|
|
3073
3087
|
value: s.value,
|
|
3074
3088
|
className: o(
|
|
3075
3089
|
h.base,
|
|
3076
3090
|
y === 0 && "rounded-ss-none",
|
|
3077
|
-
y ===
|
|
3091
|
+
y === v.length - 1 && "rounded-se-none",
|
|
3078
3092
|
r == null ? void 0 : r.content
|
|
3079
3093
|
),
|
|
3080
3094
|
children: [
|
|
@@ -3088,7 +3102,7 @@ const Uo = ({
|
|
|
3088
3102
|
{
|
|
3089
3103
|
className: "hover:cursor-pointer",
|
|
3090
3104
|
onClick: () => n(s),
|
|
3091
|
-
children: /* @__PURE__ */ e(
|
|
3105
|
+
children: /* @__PURE__ */ e(Dr, { className: "fill-sidebar-10" })
|
|
3092
3106
|
}
|
|
3093
3107
|
)
|
|
3094
3108
|
] }),
|
|
@@ -3105,7 +3119,7 @@ const Uo = ({
|
|
|
3105
3119
|
}
|
|
3106
3120
|
);
|
|
3107
3121
|
}
|
|
3108
|
-
),
|
|
3122
|
+
), De = {
|
|
3109
3123
|
base: "relative w-full",
|
|
3110
3124
|
list: "gap-1.5 bg-transparent p-0",
|
|
3111
3125
|
trigger: {
|
|
@@ -3130,7 +3144,7 @@ const Uo = ({
|
|
|
3130
3144
|
base: "flex flex-col gap-1.5",
|
|
3131
3145
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3132
3146
|
}
|
|
3133
|
-
},
|
|
3147
|
+
}, qo = ({
|
|
3134
3148
|
disabled: t,
|
|
3135
3149
|
labelProps: i,
|
|
3136
3150
|
textareaProps: d,
|
|
@@ -3147,7 +3161,7 @@ const Uo = ({
|
|
|
3147
3161
|
}, Ot = {
|
|
3148
3162
|
root: "w-full flex flex-col gap-1.5",
|
|
3149
3163
|
labelWrapper: "flex items-center gap-2"
|
|
3150
|
-
},
|
|
3164
|
+
}, Ko = ({
|
|
3151
3165
|
fieldLabel: t,
|
|
3152
3166
|
disabled: i,
|
|
3153
3167
|
className: d,
|
|
@@ -3157,7 +3171,7 @@ const Uo = ({
|
|
|
3157
3171
|
}) => /* @__PURE__ */ p("div", { className: o(Vn.root, d), children: [
|
|
3158
3172
|
/* @__PURE__ */ e(P, { ...n, disabled: i, children: t }),
|
|
3159
3173
|
/* @__PURE__ */ e(
|
|
3160
|
-
|
|
3174
|
+
_r,
|
|
3161
3175
|
{
|
|
3162
3176
|
disabled: i,
|
|
3163
3177
|
onClick: l,
|
|
@@ -3169,14 +3183,14 @@ const Uo = ({
|
|
|
3169
3183
|
)
|
|
3170
3184
|
] }), Vn = {
|
|
3171
3185
|
root: "flex flex-col items-start gap-3"
|
|
3172
|
-
},
|
|
3186
|
+
}, Be = {
|
|
3173
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",
|
|
3174
3188
|
button: {
|
|
3175
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",
|
|
3176
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"
|
|
3177
3191
|
},
|
|
3178
3192
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3179
|
-
},
|
|
3193
|
+
}, Xo = K(
|
|
3180
3194
|
({
|
|
3181
3195
|
blockName: t,
|
|
3182
3196
|
className: i,
|
|
@@ -3190,34 +3204,34 @@ const Uo = ({
|
|
|
3190
3204
|
{
|
|
3191
3205
|
ref: a,
|
|
3192
3206
|
draggable: !0,
|
|
3193
|
-
className: o(
|
|
3207
|
+
className: o(Be.wrapper, i),
|
|
3194
3208
|
onDragStart: d,
|
|
3195
3209
|
onDragEnd: n,
|
|
3196
3210
|
...c,
|
|
3197
3211
|
children: [
|
|
3198
3212
|
/* @__PURE__ */ e(
|
|
3199
|
-
|
|
3213
|
+
M,
|
|
3200
3214
|
{
|
|
3201
3215
|
onClick: r,
|
|
3202
3216
|
type: "button",
|
|
3203
3217
|
"data-testid": "dragAndDrop-menu-button",
|
|
3204
3218
|
variant: "text",
|
|
3205
3219
|
classNames: {
|
|
3206
|
-
base: o(
|
|
3220
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3207
3221
|
},
|
|
3208
|
-
children: /* @__PURE__ */ e(
|
|
3222
|
+
children: /* @__PURE__ */ e(Gr, {})
|
|
3209
3223
|
}
|
|
3210
3224
|
),
|
|
3211
|
-
/* @__PURE__ */ e(k, { className:
|
|
3225
|
+
/* @__PURE__ */ e(k, { className: Be.wrapperBlockName, children: t || "-" }),
|
|
3212
3226
|
/* @__PURE__ */ e(
|
|
3213
|
-
|
|
3227
|
+
M,
|
|
3214
3228
|
{
|
|
3215
3229
|
onClick: l,
|
|
3216
3230
|
type: "button",
|
|
3217
3231
|
"data-testid": "dragAndDrop-close-button",
|
|
3218
3232
|
variant: "text",
|
|
3219
3233
|
classNames: {
|
|
3220
|
-
base: o(
|
|
3234
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3221
3235
|
},
|
|
3222
3236
|
children: /* @__PURE__ */ e(rn, {})
|
|
3223
3237
|
}
|
|
@@ -3225,7 +3239,7 @@ const Uo = ({
|
|
|
3225
3239
|
]
|
|
3226
3240
|
}
|
|
3227
3241
|
)
|
|
3228
|
-
),
|
|
3242
|
+
), Zn = [
|
|
3229
3243
|
"Январь",
|
|
3230
3244
|
"Февраль",
|
|
3231
3245
|
"Март",
|
|
@@ -3238,12 +3252,12 @@ const Uo = ({
|
|
|
3238
3252
|
"Октябрь",
|
|
3239
3253
|
"Ноябрь",
|
|
3240
3254
|
"Декабрь"
|
|
3241
|
-
],
|
|
3255
|
+
], Qn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
3242
3256
|
(t) => ({
|
|
3243
3257
|
label: t.toString(),
|
|
3244
3258
|
value: t.toString()
|
|
3245
3259
|
})
|
|
3246
|
-
),
|
|
3260
|
+
), Jo = ({
|
|
3247
3261
|
value: t,
|
|
3248
3262
|
setValue: i,
|
|
3249
3263
|
disabled: d,
|
|
@@ -3254,72 +3268,72 @@ const Uo = ({
|
|
|
3254
3268
|
const c = ue(null), a = (T) => {
|
|
3255
3269
|
if (!T) return;
|
|
3256
3270
|
if (T instanceof Date) return T;
|
|
3257
|
-
const
|
|
3258
|
-
if (
|
|
3271
|
+
const _ = wt(T, "dd.MM.yyyy", /* @__PURE__ */ new Date());
|
|
3272
|
+
if (_e(_)) return _;
|
|
3259
3273
|
const R = bn(T);
|
|
3260
|
-
return
|
|
3274
|
+
return _e(R) ? R : void 0;
|
|
3261
3275
|
}, [f, h] = F(
|
|
3262
3276
|
a(t)
|
|
3263
3277
|
), [u, b] = F(
|
|
3264
3278
|
f == null ? void 0 : f.getDate()
|
|
3265
3279
|
), [x, s] = F(
|
|
3266
3280
|
f == null ? void 0 : f.getMonth()
|
|
3267
|
-
), [y,
|
|
3281
|
+
), [y, v] = F(
|
|
3268
3282
|
f == null ? void 0 : f.getFullYear()
|
|
3269
3283
|
);
|
|
3270
|
-
|
|
3284
|
+
Me(() => {
|
|
3271
3285
|
const T = a(t);
|
|
3272
|
-
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()),
|
|
3286
|
+
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), v(T == null ? void 0 : T.getFullYear());
|
|
3273
3287
|
}, [t]);
|
|
3274
|
-
const
|
|
3275
|
-
const T = new Date(S,
|
|
3276
|
-
return Array.from({ length: T }, (
|
|
3277
|
-
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;
|
|
3278
3292
|
return {
|
|
3279
|
-
label:
|
|
3280
|
-
value:
|
|
3293
|
+
label: G.toString().padStart(2, "0"),
|
|
3294
|
+
value: G.toString()
|
|
3281
3295
|
};
|
|
3282
3296
|
});
|
|
3283
|
-
}, [
|
|
3284
|
-
if (T !== void 0 &&
|
|
3285
|
-
const
|
|
3286
|
-
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));
|
|
3287
3301
|
} else
|
|
3288
3302
|
h(void 0), i(void 0);
|
|
3289
3303
|
}, g = (T) => {
|
|
3290
|
-
const
|
|
3291
|
-
s(
|
|
3304
|
+
const _ = parseInt(T);
|
|
3305
|
+
s(_), w(u, _, y);
|
|
3292
3306
|
}, C = (T) => {
|
|
3293
|
-
const
|
|
3294
|
-
|
|
3295
|
-
},
|
|
3296
|
-
const
|
|
3297
|
-
b(
|
|
3307
|
+
const _ = parseInt(T);
|
|
3308
|
+
v(_), w(u, x, _);
|
|
3309
|
+
}, j = (T) => {
|
|
3310
|
+
const _ = parseInt(T);
|
|
3311
|
+
b(_), w(_, x, y);
|
|
3298
3312
|
};
|
|
3299
3313
|
return /* @__PURE__ */ p("div", { ref: c, className: At.root, children: [
|
|
3300
3314
|
!!n && /* @__PURE__ */ e(P, { className: o(l == null ? void 0 : l.label), children: n }),
|
|
3301
3315
|
/* @__PURE__ */ p("div", { className: At.selectContainer, children: [
|
|
3302
3316
|
/* @__PURE__ */ e(
|
|
3303
|
-
|
|
3317
|
+
Ce,
|
|
3304
3318
|
{
|
|
3305
|
-
options:
|
|
3319
|
+
options: I,
|
|
3306
3320
|
classNames: {
|
|
3307
3321
|
trigger: o("w-full h-11 bg-gray-50", l == null ? void 0 : l.selectTrigger),
|
|
3308
3322
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
3309
3323
|
},
|
|
3310
3324
|
disabled: d,
|
|
3311
|
-
onChange:
|
|
3325
|
+
onChange: j,
|
|
3312
3326
|
value: u !== void 0 ? String(u) : "",
|
|
3313
3327
|
placeholder: "День",
|
|
3314
3328
|
status: r === "danger" ? "danger" : void 0
|
|
3315
3329
|
}
|
|
3316
3330
|
),
|
|
3317
3331
|
/* @__PURE__ */ e(
|
|
3318
|
-
|
|
3332
|
+
Ce,
|
|
3319
3333
|
{
|
|
3320
|
-
options:
|
|
3334
|
+
options: Zn.map((T, _) => ({
|
|
3321
3335
|
label: T,
|
|
3322
|
-
value:
|
|
3336
|
+
value: _.toString()
|
|
3323
3337
|
})),
|
|
3324
3338
|
classNames: {
|
|
3325
3339
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
@@ -3333,9 +3347,9 @@ const Uo = ({
|
|
|
3333
3347
|
}
|
|
3334
3348
|
),
|
|
3335
3349
|
/* @__PURE__ */ e(
|
|
3336
|
-
|
|
3350
|
+
Ce,
|
|
3337
3351
|
{
|
|
3338
|
-
options:
|
|
3352
|
+
options: Qn,
|
|
3339
3353
|
classNames: {
|
|
3340
3354
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
3341
3355
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
@@ -3343,7 +3357,7 @@ const Uo = ({
|
|
|
3343
3357
|
disabled: d,
|
|
3344
3358
|
onChange: C,
|
|
3345
3359
|
value: y !== void 0 ? String(y) : "",
|
|
3346
|
-
autoFocusValue: String(
|
|
3360
|
+
autoFocusValue: String(m.getFullYear()),
|
|
3347
3361
|
placeholder: "Год",
|
|
3348
3362
|
status: r === "danger" ? "danger" : void 0
|
|
3349
3363
|
}
|
|
@@ -3355,7 +3369,7 @@ const Uo = ({
|
|
|
3355
3369
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3356
3370
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3357
3371
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3358
|
-
},
|
|
3372
|
+
}, qn = ({
|
|
3359
3373
|
badge: t,
|
|
3360
3374
|
isExpanded: i = !0,
|
|
3361
3375
|
isActive: d = !1,
|
|
@@ -3364,9 +3378,9 @@ const Uo = ({
|
|
|
3364
3378
|
classNames: a,
|
|
3365
3379
|
onClick: f
|
|
3366
3380
|
}) => {
|
|
3367
|
-
const [h] =
|
|
3381
|
+
const [h] = Ct(), u = bt.base;
|
|
3368
3382
|
return /* @__PURE__ */ p(
|
|
3369
|
-
|
|
3383
|
+
Tt,
|
|
3370
3384
|
{
|
|
3371
3385
|
tabIndex: 1,
|
|
3372
3386
|
role: "link",
|
|
@@ -3407,7 +3421,7 @@ const Uo = ({
|
|
|
3407
3421
|
{
|
|
3408
3422
|
"text-primary-10": d,
|
|
3409
3423
|
"text-sidebar/[.15]": n,
|
|
3410
|
-
[
|
|
3424
|
+
[bt.expanded.label]: !i
|
|
3411
3425
|
},
|
|
3412
3426
|
a == null ? void 0 : a.label
|
|
3413
3427
|
),
|
|
@@ -3420,7 +3434,7 @@ const Uo = ({
|
|
|
3420
3434
|
variant: "span",
|
|
3421
3435
|
className: o(
|
|
3422
3436
|
u.badge,
|
|
3423
|
-
!i &&
|
|
3437
|
+
!i && bt.expanded.badge,
|
|
3424
3438
|
a == null ? void 0 : a.badge
|
|
3425
3439
|
),
|
|
3426
3440
|
children: t
|
|
@@ -3430,7 +3444,7 @@ const Uo = ({
|
|
|
3430
3444
|
]
|
|
3431
3445
|
}
|
|
3432
3446
|
);
|
|
3433
|
-
},
|
|
3447
|
+
}, bt = {
|
|
3434
3448
|
base: {
|
|
3435
3449
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3436
3450
|
labelWrapper: "relative inline-block",
|
|
@@ -3450,14 +3464,14 @@ const Uo = ({
|
|
|
3450
3464
|
setActiveStep: d,
|
|
3451
3465
|
disabled: n = !1,
|
|
3452
3466
|
classNames: r
|
|
3453
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3454
|
-
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: [
|
|
3455
3469
|
/* @__PURE__ */ e(un, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3456
3470
|
/* @__PURE__ */ e(
|
|
3457
|
-
|
|
3471
|
+
Je,
|
|
3458
3472
|
{
|
|
3459
3473
|
variant: "h2",
|
|
3460
|
-
className:
|
|
3474
|
+
className: Y.headerTitle,
|
|
3461
3475
|
"data-testid": "stepper-title",
|
|
3462
3476
|
children: i
|
|
3463
3477
|
}
|
|
@@ -3466,34 +3480,34 @@ const Uo = ({
|
|
|
3466
3480
|
/* @__PURE__ */ e(
|
|
3467
3481
|
"div",
|
|
3468
3482
|
{
|
|
3469
|
-
className: o(
|
|
3483
|
+
className: o(Y.timeline, r == null ? void 0 : r.timeline),
|
|
3470
3484
|
"data-testid": "stepper-timeline",
|
|
3471
3485
|
children: t.map((l, c) => /* @__PURE__ */ p(
|
|
3472
3486
|
"div",
|
|
3473
3487
|
{
|
|
3474
3488
|
"data-testid": `step-${c}`,
|
|
3475
|
-
className: o(
|
|
3489
|
+
className: o(Y.stepWrapper, r == null ? void 0 : r.stepWrapper),
|
|
3476
3490
|
children: [
|
|
3477
|
-
c < t.length - 1 && /* @__PURE__ */ e("span", { className:
|
|
3478
|
-
/* @__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(
|
|
3479
3493
|
"div",
|
|
3480
3494
|
{
|
|
3481
3495
|
onClick: () => !n && d(c),
|
|
3482
3496
|
className: o(
|
|
3483
|
-
|
|
3497
|
+
Y.completedDotWrapper,
|
|
3484
3498
|
n ? "cursor-not-allowed" : "cursor-pointer"
|
|
3485
3499
|
),
|
|
3486
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3500
|
+
children: /* @__PURE__ */ e("span", { className: Y.completedDot })
|
|
3487
3501
|
}
|
|
3488
3502
|
) }),
|
|
3489
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
3503
|
+
/* @__PURE__ */ p("div", { className: o(Y.content, r == null ? void 0 : r.content), children: [
|
|
3490
3504
|
/* @__PURE__ */ e(
|
|
3491
|
-
|
|
3505
|
+
Je,
|
|
3492
3506
|
{
|
|
3493
3507
|
variant: "h3",
|
|
3494
3508
|
"data-testid": `step-${c}-title`,
|
|
3495
3509
|
className: o(
|
|
3496
|
-
l.activeStep ?
|
|
3510
|
+
l.activeStep ? Y.title : Y.titleCompleted,
|
|
3497
3511
|
r == null ? void 0 : r.title
|
|
3498
3512
|
),
|
|
3499
3513
|
children: l.title
|
|
@@ -3504,7 +3518,7 @@ const Uo = ({
|
|
|
3504
3518
|
{
|
|
3505
3519
|
"data-testid": `step-${c}-subtitle`,
|
|
3506
3520
|
className: o(
|
|
3507
|
-
l.activeStep ?
|
|
3521
|
+
l.activeStep ? Y.subtitle : Y.subtitleCompleted,
|
|
3508
3522
|
r == null ? void 0 : r.subtitle
|
|
3509
3523
|
),
|
|
3510
3524
|
children: l.subtitle
|
|
@@ -3515,7 +3529,7 @@ const Uo = ({
|
|
|
3515
3529
|
{
|
|
3516
3530
|
"data-testid": `step-${c}-date`,
|
|
3517
3531
|
className: o(
|
|
3518
|
-
l.activeStep ?
|
|
3532
|
+
l.activeStep ? Y.date : Y.dateCompleted,
|
|
3519
3533
|
r == null ? void 0 : r.date
|
|
3520
3534
|
),
|
|
3521
3535
|
children: l.date
|
|
@@ -3528,7 +3542,7 @@ const Uo = ({
|
|
|
3528
3542
|
))
|
|
3529
3543
|
}
|
|
3530
3544
|
)
|
|
3531
|
-
] }),
|
|
3545
|
+
] }), Y = {
|
|
3532
3546
|
root: "relative flex flex-col bg-white w-full",
|
|
3533
3547
|
header: "flex items-center gap-1.5 mb-3",
|
|
3534
3548
|
headerTitle: "text-dark-40 text-sm font-bold font-mono",
|
|
@@ -3548,7 +3562,7 @@ const Uo = ({
|
|
|
3548
3562
|
subtitleCompleted: "text-xs mb-1 text-dark-30/[.50]",
|
|
3549
3563
|
date: "text-[10px] mb-1 text-dark-40/[.50]",
|
|
3550
3564
|
dateCompleted: "text-[10px] mb-1 text-dark-30/[.50]"
|
|
3551
|
-
},
|
|
3565
|
+
}, Ye = ({
|
|
3552
3566
|
icon: t,
|
|
3553
3567
|
title: i,
|
|
3554
3568
|
classNames: d,
|
|
@@ -3570,7 +3584,7 @@ const Uo = ({
|
|
|
3570
3584
|
wrapper: "flex items-center gap-2 w-full",
|
|
3571
3585
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3572
3586
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3573
|
-
},
|
|
3587
|
+
}, jt = K(
|
|
3574
3588
|
({
|
|
3575
3589
|
id: t,
|
|
3576
3590
|
label: i,
|
|
@@ -3584,8 +3598,8 @@ const Uo = ({
|
|
|
3584
3598
|
inputProps: h,
|
|
3585
3599
|
...u
|
|
3586
3600
|
}, b) => {
|
|
3587
|
-
var
|
|
3588
|
-
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";
|
|
3589
3603
|
return /* @__PURE__ */ p("div", { className: o(x, a == null ? void 0 : a.parent), ...u, children: [
|
|
3590
3604
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3591
3605
|
!!i && /* @__PURE__ */ e(
|
|
@@ -3593,7 +3607,7 @@ const Uo = ({
|
|
|
3593
3607
|
{
|
|
3594
3608
|
htmlFor: t,
|
|
3595
3609
|
className: o(a == null ? void 0 : a.label),
|
|
3596
|
-
disabled:
|
|
3610
|
+
disabled: v,
|
|
3597
3611
|
children: i
|
|
3598
3612
|
}
|
|
3599
3613
|
),
|
|
@@ -3604,39 +3618,39 @@ const Uo = ({
|
|
|
3604
3618
|
{
|
|
3605
3619
|
className: o(
|
|
3606
3620
|
s,
|
|
3607
|
-
|
|
3621
|
+
m && qe.container,
|
|
3608
3622
|
a == null ? void 0 : a.base
|
|
3609
3623
|
),
|
|
3610
3624
|
children: [
|
|
3611
3625
|
/* @__PURE__ */ e(
|
|
3612
|
-
|
|
3626
|
+
Wr,
|
|
3613
3627
|
{
|
|
3614
3628
|
...h,
|
|
3615
3629
|
ref: b,
|
|
3616
3630
|
id: t,
|
|
3617
|
-
disabled:
|
|
3631
|
+
disabled: v,
|
|
3618
3632
|
classNames: {
|
|
3619
3633
|
...h == null ? void 0 : h.classNames,
|
|
3620
3634
|
target: o(
|
|
3621
|
-
(
|
|
3622
|
-
|
|
3623
|
-
|
|
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"
|
|
3624
3638
|
)
|
|
3625
3639
|
}
|
|
3626
3640
|
}
|
|
3627
3641
|
),
|
|
3628
|
-
|
|
3642
|
+
m && /* @__PURE__ */ p(
|
|
3629
3643
|
"button",
|
|
3630
3644
|
{
|
|
3631
3645
|
role: "button",
|
|
3632
3646
|
type: "button",
|
|
3633
|
-
disabled:
|
|
3647
|
+
disabled: v,
|
|
3634
3648
|
className: o(
|
|
3635
3649
|
y.base,
|
|
3636
3650
|
l === "left" && "left-3.5",
|
|
3637
3651
|
l === "right" && "right-3.5",
|
|
3638
3652
|
f && y.clickable,
|
|
3639
|
-
|
|
3653
|
+
v && y.disabled,
|
|
3640
3654
|
a == null ? void 0 : a.iconButton
|
|
3641
3655
|
),
|
|
3642
3656
|
onClick: f,
|
|
@@ -3660,7 +3674,7 @@ const Uo = ({
|
|
|
3660
3674
|
)
|
|
3661
3675
|
] });
|
|
3662
3676
|
}
|
|
3663
|
-
),
|
|
3677
|
+
), qe = {
|
|
3664
3678
|
parent: "flex flex-col w-full",
|
|
3665
3679
|
base: "mt-1.5",
|
|
3666
3680
|
button: {
|
|
@@ -3694,12 +3708,12 @@ const Uo = ({
|
|
|
3694
3708
|
element: i,
|
|
3695
3709
|
label: d,
|
|
3696
3710
|
classNames: n
|
|
3697
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3711
|
+
}) => /* @__PURE__ */ p("div", { className: o(xt.wrapper, n == null ? void 0 : n.wrapper), children: [
|
|
3698
3712
|
!!t && /* @__PURE__ */ e(
|
|
3699
3713
|
"div",
|
|
3700
3714
|
{
|
|
3701
3715
|
"data-testid": "user-icon",
|
|
3702
|
-
className: o(
|
|
3716
|
+
className: o(xt.iconWrapper, n == null ? void 0 : n.iconWrapper),
|
|
3703
3717
|
children: t
|
|
3704
3718
|
}
|
|
3705
3719
|
),
|
|
@@ -3708,12 +3722,12 @@ const Uo = ({
|
|
|
3708
3722
|
{
|
|
3709
3723
|
"data-testid": "user-label",
|
|
3710
3724
|
variant: "span",
|
|
3711
|
-
className: o(
|
|
3725
|
+
className: o(xt.label, n == null ? void 0 : n.label),
|
|
3712
3726
|
children: d
|
|
3713
3727
|
}
|
|
3714
3728
|
),
|
|
3715
3729
|
!!i && i
|
|
3716
|
-
] }),
|
|
3730
|
+
] }), xt = {
|
|
3717
3731
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3718
3732
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3719
3733
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3722,7 +3736,7 @@ const Uo = ({
|
|
|
3722
3736
|
base: "w-8 h-5",
|
|
3723
3737
|
thumb: "size-3.5"
|
|
3724
3738
|
}
|
|
3725
|
-
},
|
|
3739
|
+
}, Ge = ({
|
|
3726
3740
|
children: t,
|
|
3727
3741
|
disabled: i = !1,
|
|
3728
3742
|
href: d,
|
|
@@ -3738,15 +3752,15 @@ const Uo = ({
|
|
|
3738
3752
|
},
|
|
3739
3753
|
...h
|
|
3740
3754
|
}) => {
|
|
3741
|
-
const u =
|
|
3755
|
+
const u = Kn.states;
|
|
3742
3756
|
return /* @__PURE__ */ p(
|
|
3743
3757
|
Ee,
|
|
3744
3758
|
{
|
|
3745
|
-
"data-testid": "link-root",
|
|
3746
|
-
to: i ? "" : d,
|
|
3747
3759
|
...h,
|
|
3760
|
+
"data-testid": "link-root",
|
|
3761
|
+
to: d,
|
|
3748
3762
|
onClick: (x) => {
|
|
3749
|
-
if (i) {
|
|
3763
|
+
if (x.stopPropagation(), i) {
|
|
3750
3764
|
x.preventDefault();
|
|
3751
3765
|
return;
|
|
3752
3766
|
}
|
|
@@ -3776,7 +3790,7 @@ const Uo = ({
|
|
|
3776
3790
|
]
|
|
3777
3791
|
}
|
|
3778
3792
|
);
|
|
3779
|
-
},
|
|
3793
|
+
}, Kn = {
|
|
3780
3794
|
states: {
|
|
3781
3795
|
active: "active:text-primary-30",
|
|
3782
3796
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
@@ -3784,7 +3798,7 @@ const Uo = ({
|
|
|
3784
3798
|
hover: "hover:text-primary-20",
|
|
3785
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"
|
|
3786
3800
|
}
|
|
3787
|
-
},
|
|
3801
|
+
}, lr = K(
|
|
3788
3802
|
({
|
|
3789
3803
|
classNames: t,
|
|
3790
3804
|
disabled: i,
|
|
@@ -3793,29 +3807,29 @@ const Uo = ({
|
|
|
3793
3807
|
placeholder: r = "Choose",
|
|
3794
3808
|
value: l
|
|
3795
3809
|
}, c) => {
|
|
3796
|
-
var
|
|
3797
|
-
const [a, f] = F(!1), u =
|
|
3798
|
-
className:
|
|
3799
|
-
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 = ""
|
|
3800
3814
|
}) => /* @__PURE__ */ e(
|
|
3801
3815
|
k,
|
|
3802
3816
|
{
|
|
3803
3817
|
className: o(
|
|
3804
3818
|
x.placeholder,
|
|
3805
|
-
i &&
|
|
3806
|
-
|
|
3819
|
+
i && v,
|
|
3820
|
+
I
|
|
3807
3821
|
),
|
|
3808
|
-
children:
|
|
3822
|
+
children: w
|
|
3809
3823
|
}
|
|
3810
3824
|
);
|
|
3811
|
-
return
|
|
3825
|
+
return Me(() => {
|
|
3812
3826
|
a && setTimeout(() => {
|
|
3813
|
-
var
|
|
3814
|
-
(
|
|
3827
|
+
var I;
|
|
3828
|
+
(I = b.current) == null || I.scrollIntoView({ block: "center" });
|
|
3815
3829
|
}, 0);
|
|
3816
|
-
}, [a]), /* @__PURE__ */ p(
|
|
3830
|
+
}, [a]), /* @__PURE__ */ p(et, { open: a, onOpenChange: f, children: [
|
|
3817
3831
|
/* @__PURE__ */ p(
|
|
3818
|
-
|
|
3832
|
+
tt,
|
|
3819
3833
|
{
|
|
3820
3834
|
role: "listbox",
|
|
3821
3835
|
disabled: i,
|
|
@@ -3824,7 +3838,7 @@ const Uo = ({
|
|
|
3824
3838
|
i && y,
|
|
3825
3839
|
!a && !i && x.hover,
|
|
3826
3840
|
t == null ? void 0 : t.trigger,
|
|
3827
|
-
|
|
3841
|
+
m && Re.status[m]
|
|
3828
3842
|
),
|
|
3829
3843
|
children: [
|
|
3830
3844
|
l ? /* @__PURE__ */ e(
|
|
@@ -3841,7 +3855,7 @@ const Uo = ({
|
|
|
3841
3855
|
}
|
|
3842
3856
|
),
|
|
3843
3857
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3844
|
-
|
|
3858
|
+
or,
|
|
3845
3859
|
{
|
|
3846
3860
|
className: o(x.icon, a && "rotate-180"),
|
|
3847
3861
|
width: 16,
|
|
@@ -3853,29 +3867,29 @@ const Uo = ({
|
|
|
3853
3867
|
}
|
|
3854
3868
|
),
|
|
3855
3869
|
/* @__PURE__ */ e(
|
|
3856
|
-
|
|
3870
|
+
rt,
|
|
3857
3871
|
{
|
|
3858
3872
|
className: o(s.content, t == null ? void 0 : t.content),
|
|
3859
3873
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3860
3874
|
ref: c,
|
|
3861
|
-
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(
|
|
3862
3876
|
Dt,
|
|
3863
3877
|
{
|
|
3864
|
-
ref: l ===
|
|
3878
|
+
ref: l === I.value ? b : null,
|
|
3865
3879
|
className: o(s.items),
|
|
3866
|
-
onClick: (
|
|
3867
|
-
|
|
3880
|
+
onClick: (w) => {
|
|
3881
|
+
w.preventDefault(), w.stopPropagation(), d(I.value), f(!1);
|
|
3868
3882
|
},
|
|
3869
|
-
children: /* @__PURE__ */ e(He, { text:
|
|
3883
|
+
children: /* @__PURE__ */ e(He, { text: I.label, variant: I.status })
|
|
3870
3884
|
},
|
|
3871
|
-
|
|
3885
|
+
I.value
|
|
3872
3886
|
))) })
|
|
3873
3887
|
}
|
|
3874
3888
|
)
|
|
3875
3889
|
] });
|
|
3876
3890
|
}
|
|
3877
3891
|
);
|
|
3878
|
-
|
|
3892
|
+
lr.displayName = "StatusSelect";
|
|
3879
3893
|
const Re = {
|
|
3880
3894
|
base: {
|
|
3881
3895
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3908,15 +3922,15 @@ const Re = {
|
|
|
3908
3922
|
label: i,
|
|
3909
3923
|
selectProps: d,
|
|
3910
3924
|
...n
|
|
3911
|
-
}) => /* @__PURE__ */ p("div", { ...n, className: o(
|
|
3925
|
+
}) => /* @__PURE__ */ p("div", { ...n, className: o(Xn.container, t == null ? void 0 : t.container), children: [
|
|
3912
3926
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3913
3927
|
/* @__PURE__ */ e(P, { disabled: d == null ? void 0 : d.disabled, className: t == null ? void 0 : t.label, children: i }),
|
|
3914
3928
|
(d == null ? void 0 : d.status) === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3915
3929
|
] }),
|
|
3916
|
-
/* @__PURE__ */ e(
|
|
3917
|
-
] }),
|
|
3930
|
+
/* @__PURE__ */ e(Ce, { ...d })
|
|
3931
|
+
] }), Xn = {
|
|
3918
3932
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3919
|
-
}, ti =
|
|
3933
|
+
}, ti = K(
|
|
3920
3934
|
({
|
|
3921
3935
|
title: t,
|
|
3922
3936
|
file: i,
|
|
@@ -3945,7 +3959,7 @@ const Re = {
|
|
|
3945
3959
|
/* @__PURE__ */ e("div", { className: L.circle[c] }),
|
|
3946
3960
|
/* @__PURE__ */ e(k, { "data-testid": "title", className: L.text, children: t })
|
|
3947
3961
|
] }),
|
|
3948
|
-
/* @__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") })
|
|
3949
3963
|
] }),
|
|
3950
3964
|
/* @__PURE__ */ p("div", { className: L.fileContainer, children: [
|
|
3951
3965
|
/* @__PURE__ */ e("div", { className: L.iconContainer, children: i.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3957,7 +3971,7 @@ const Re = {
|
|
|
3957
3971
|
width: 22,
|
|
3958
3972
|
height: 30
|
|
3959
3973
|
}
|
|
3960
|
-
) : /* @__PURE__ */ e(
|
|
3974
|
+
) : /* @__PURE__ */ e(Et, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3961
3975
|
/* @__PURE__ */ p("div", { className: "flex-grow", children: [
|
|
3962
3976
|
/* @__PURE__ */ e(
|
|
3963
3977
|
k,
|
|
@@ -3969,13 +3983,12 @@ const Re = {
|
|
|
3969
3983
|
children: i.name
|
|
3970
3984
|
}
|
|
3971
3985
|
),
|
|
3972
|
-
/* @__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))) })
|
|
3973
3987
|
] }),
|
|
3974
3988
|
/* @__PURE__ */ p("div", { className: L.buttonContainer, children: [
|
|
3975
3989
|
/* @__PURE__ */ e(
|
|
3976
|
-
|
|
3990
|
+
Ge,
|
|
3977
3991
|
{
|
|
3978
|
-
"data-testid": "download-button",
|
|
3979
3992
|
classNames: {
|
|
3980
3993
|
root: o(L.button.basic, L.iconHover),
|
|
3981
3994
|
icon: L.downnloadIcon
|
|
@@ -3986,7 +3999,7 @@ const Re = {
|
|
|
3986
3999
|
}
|
|
3987
4000
|
),
|
|
3988
4001
|
/* @__PURE__ */ e(
|
|
3989
|
-
|
|
4002
|
+
M,
|
|
3990
4003
|
{
|
|
3991
4004
|
"data-testid": "delete-button",
|
|
3992
4005
|
classNames: {
|
|
@@ -4046,14 +4059,14 @@ const Re = {
|
|
|
4046
4059
|
lastStatusText: f = "Text",
|
|
4047
4060
|
price: h = "100 000 000 UZS",
|
|
4048
4061
|
classNames: u
|
|
4049
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
4050
|
-
/* @__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: [
|
|
4051
4064
|
/* @__PURE__ */ e(
|
|
4052
4065
|
"div",
|
|
4053
4066
|
{
|
|
4054
4067
|
"data-testid": "date-and-time",
|
|
4055
|
-
className:
|
|
4056
|
-
children:
|
|
4068
|
+
className: q.dateContainer.dateAndTime,
|
|
4069
|
+
children: Z(i, "dd.MM.yyyy HH:mm:ss")
|
|
4057
4070
|
}
|
|
4058
4071
|
),
|
|
4059
4072
|
/* @__PURE__ */ e(
|
|
@@ -4065,11 +4078,11 @@ const Re = {
|
|
|
4065
4078
|
}
|
|
4066
4079
|
)
|
|
4067
4080
|
] }),
|
|
4068
|
-
/* @__PURE__ */ p("div", { className:
|
|
4069
|
-
/* @__PURE__ */ e(k, { "data-testid": "title", className:
|
|
4070
|
-
/* @__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 })
|
|
4071
4084
|
] }),
|
|
4072
|
-
/* @__PURE__ */ p("div", { className:
|
|
4085
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.base, children: [
|
|
4073
4086
|
/* @__PURE__ */ e(
|
|
4074
4087
|
He,
|
|
4075
4088
|
{
|
|
@@ -4078,28 +4091,28 @@ const Re = {
|
|
|
4078
4091
|
className: u == null ? void 0 : u.status
|
|
4079
4092
|
}
|
|
4080
4093
|
),
|
|
4081
|
-
/* @__PURE__ */ p("div", { className:
|
|
4094
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.button, children: [
|
|
4082
4095
|
/* @__PURE__ */ e(
|
|
4083
|
-
|
|
4096
|
+
M,
|
|
4084
4097
|
{
|
|
4085
4098
|
"data-testid": "download-button",
|
|
4086
4099
|
classNames: {
|
|
4087
|
-
base: o(
|
|
4088
|
-
icon:
|
|
4100
|
+
base: o(q.button.basic),
|
|
4101
|
+
icon: q.button.icon
|
|
4089
4102
|
},
|
|
4090
4103
|
onClick: n,
|
|
4091
4104
|
variant: "text",
|
|
4092
|
-
icon:
|
|
4105
|
+
icon: nr,
|
|
4093
4106
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4094
4107
|
}
|
|
4095
4108
|
),
|
|
4096
4109
|
/* @__PURE__ */ e(
|
|
4097
|
-
|
|
4110
|
+
M,
|
|
4098
4111
|
{
|
|
4099
4112
|
"data-testid": "show-button",
|
|
4100
4113
|
classNames: {
|
|
4101
|
-
base: o(
|
|
4102
|
-
icon:
|
|
4114
|
+
base: o(q.button.basic),
|
|
4115
|
+
icon: q.button.icon
|
|
4103
4116
|
},
|
|
4104
4117
|
onClick: r,
|
|
4105
4118
|
variant: "text",
|
|
@@ -4108,12 +4121,12 @@ const Re = {
|
|
|
4108
4121
|
}
|
|
4109
4122
|
),
|
|
4110
4123
|
/* @__PURE__ */ e(
|
|
4111
|
-
|
|
4124
|
+
M,
|
|
4112
4125
|
{
|
|
4113
4126
|
"data-testid": "delete-button",
|
|
4114
4127
|
classNames: {
|
|
4115
|
-
base: o(
|
|
4116
|
-
icon:
|
|
4128
|
+
base: o(q.button.basic),
|
|
4129
|
+
icon: q.button.icon
|
|
4117
4130
|
},
|
|
4118
4131
|
onClick: d,
|
|
4119
4132
|
variant: "text",
|
|
@@ -4123,7 +4136,7 @@ const Re = {
|
|
|
4123
4136
|
)
|
|
4124
4137
|
] })
|
|
4125
4138
|
] })
|
|
4126
|
-
] }),
|
|
4139
|
+
] }), q = {
|
|
4127
4140
|
wrapper: "w-[371px] h-max border border-dark-30/[.15] px-[26px] py-[15px]",
|
|
4128
4141
|
dateContainer: {
|
|
4129
4142
|
base: "flex items-center justify-between w-full",
|
|
@@ -4151,7 +4164,7 @@ const Re = {
|
|
|
4151
4164
|
onCLick: l
|
|
4152
4165
|
}) => /* @__PURE__ */ p("div", { className: o(te.container, r == null ? void 0 : r.root), children: [
|
|
4153
4166
|
/* @__PURE__ */ e("div", { className: te.header, children: /* @__PURE__ */ e(
|
|
4154
|
-
|
|
4167
|
+
M,
|
|
4155
4168
|
{
|
|
4156
4169
|
icon: d,
|
|
4157
4170
|
variant: "text",
|
|
@@ -4168,12 +4181,12 @@ const Re = {
|
|
|
4168
4181
|
/* @__PURE__ */ e("div", { className: te.body, children: i == null ? void 0 : i.map((c, a) => {
|
|
4169
4182
|
var f;
|
|
4170
4183
|
return /* @__PURE__ */ p("div", { className: te.bodyItem, children: [
|
|
4171
|
-
!!c.sectionTitle && /* @__PURE__ */ e(
|
|
4172
|
-
!!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 }),
|
|
4173
4186
|
/* @__PURE__ */ e("ul", { className: te.items, children: (f = c.items) == null ? void 0 : f.map((h, u) => /* @__PURE__ */ p("li", { children: [
|
|
4174
4187
|
!!h.subtitle && /* @__PURE__ */ e(k, { "data-testid": "subtitle", className: te.item, children: h == null ? void 0 : h.subtitle }),
|
|
4175
4188
|
/* @__PURE__ */ e(
|
|
4176
|
-
|
|
4189
|
+
M,
|
|
4177
4190
|
{
|
|
4178
4191
|
"data-testid": "link",
|
|
4179
4192
|
onClick: () => l == null ? void 0 : l(h.id),
|
|
@@ -4204,7 +4217,7 @@ const Re = {
|
|
|
4204
4217
|
options: i,
|
|
4205
4218
|
classNames: d
|
|
4206
4219
|
}) => {
|
|
4207
|
-
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);
|
|
4208
4221
|
return /* @__PURE__ */ p("div", { className: o(n, d == null ? void 0 : d.root), children: [
|
|
4209
4222
|
/* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4210
4223
|
k,
|
|
@@ -4214,9 +4227,9 @@ const Re = {
|
|
|
4214
4227
|
children: t
|
|
4215
4228
|
}
|
|
4216
4229
|
) }),
|
|
4217
|
-
/* @__PURE__ */ p("div", { className:
|
|
4230
|
+
/* @__PURE__ */ p("div", { className: ke.content.items, children: [
|
|
4218
4231
|
u.map((b) => /* @__PURE__ */ e(
|
|
4219
|
-
|
|
4232
|
+
We,
|
|
4220
4233
|
{
|
|
4221
4234
|
"data-testid": "item",
|
|
4222
4235
|
value: b.value,
|
|
@@ -4229,7 +4242,7 @@ const Re = {
|
|
|
4229
4242
|
b.label
|
|
4230
4243
|
)),
|
|
4231
4244
|
h && /* @__PURE__ */ e(
|
|
4232
|
-
|
|
4245
|
+
We,
|
|
4233
4246
|
{
|
|
4234
4247
|
"data-testid": "total",
|
|
4235
4248
|
value: h.total,
|
|
@@ -4247,7 +4260,7 @@ const Re = {
|
|
|
4247
4260
|
)
|
|
4248
4261
|
] })
|
|
4249
4262
|
] });
|
|
4250
|
-
},
|
|
4263
|
+
}, ke = {
|
|
4251
4264
|
base: "w-max",
|
|
4252
4265
|
content: {
|
|
4253
4266
|
wrapper: "flex justify-between items-center mb-2.5",
|
|
@@ -4257,7 +4270,7 @@ const Re = {
|
|
|
4257
4270
|
amount: "ml-1 text-sm font-semibold font-mono",
|
|
4258
4271
|
amountBold: "ml-1 text-sm font-bold font-mono"
|
|
4259
4272
|
}
|
|
4260
|
-
},
|
|
4273
|
+
}, We = ({
|
|
4261
4274
|
value: t,
|
|
4262
4275
|
label: i,
|
|
4263
4276
|
classNames: d,
|
|
@@ -4276,7 +4289,7 @@ const Re = {
|
|
|
4276
4289
|
), Rt = {
|
|
4277
4290
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4278
4291
|
value: "text-sm text-dark-30 font-semibold"
|
|
4279
|
-
},
|
|
4292
|
+
}, Jn = K(
|
|
4280
4293
|
({
|
|
4281
4294
|
classNames: t,
|
|
4282
4295
|
disabled: i,
|
|
@@ -4291,27 +4304,27 @@ const Re = {
|
|
|
4291
4304
|
options: u = []
|
|
4292
4305
|
}, b) => {
|
|
4293
4306
|
var xe;
|
|
4294
|
-
const [x, s] = F(!1), [y,
|
|
4295
|
-
const
|
|
4296
|
-
|
|
4297
|
-
}, C = (
|
|
4298
|
-
|
|
4299
|
-
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);
|
|
4300
4313
|
re && S(re.label);
|
|
4301
|
-
},
|
|
4302
|
-
|
|
4314
|
+
}, j = (W, Q) => {
|
|
4315
|
+
Q.stopPropagation(), n(W), y === W && v("");
|
|
4303
4316
|
}, T = () => {
|
|
4304
|
-
S(""),
|
|
4305
|
-
},
|
|
4317
|
+
S(""), I(null);
|
|
4318
|
+
}, _ = () => {
|
|
4306
4319
|
s(!1), T();
|
|
4307
4320
|
}, R = () => {
|
|
4308
4321
|
d(y), s(!1), T();
|
|
4309
|
-
},
|
|
4310
|
-
s(
|
|
4311
|
-
},
|
|
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;
|
|
4312
4325
|
return /* @__PURE__ */ p("div", { className: H.container, children: [
|
|
4313
4326
|
f && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: i, children: f }),
|
|
4314
|
-
/* @__PURE__ */ p(de, { open: x, onOpenChange:
|
|
4327
|
+
/* @__PURE__ */ p(de, { open: x, onOpenChange: G, children: [
|
|
4315
4328
|
/* @__PURE__ */ p(
|
|
4316
4329
|
ae,
|
|
4317
4330
|
{
|
|
@@ -4331,14 +4344,14 @@ const Re = {
|
|
|
4331
4344
|
className: o(
|
|
4332
4345
|
H.base.text,
|
|
4333
4346
|
i && H.disabled.triggerText,
|
|
4334
|
-
t == null ? void 0 : t[
|
|
4335
|
-
|
|
4347
|
+
t == null ? void 0 : t[Te ? "selected" : "placeholder"],
|
|
4348
|
+
it
|
|
4336
4349
|
),
|
|
4337
|
-
children:
|
|
4350
|
+
children: Te || c
|
|
4338
4351
|
}
|
|
4339
4352
|
),
|
|
4340
4353
|
/* @__PURE__ */ e(
|
|
4341
|
-
|
|
4354
|
+
Ne,
|
|
4342
4355
|
{
|
|
4343
4356
|
width: 20,
|
|
4344
4357
|
height: 20,
|
|
@@ -4353,42 +4366,42 @@ const Re = {
|
|
|
4353
4366
|
]
|
|
4354
4367
|
}
|
|
4355
4368
|
),
|
|
4356
|
-
/* @__PURE__ */ e("div", { ref:
|
|
4369
|
+
/* @__PURE__ */ e("div", { ref: w, className: "relative z-50", children: /* @__PURE__ */ p(
|
|
4357
4370
|
le,
|
|
4358
4371
|
{
|
|
4359
|
-
container:
|
|
4372
|
+
container: w.current,
|
|
4360
4373
|
className: o(H.options.content, t == null ? void 0 : t.content),
|
|
4361
4374
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4362
4375
|
ref: b,
|
|
4363
4376
|
children: [
|
|
4364
4377
|
h && /* @__PURE__ */ e(k, { className: o(H.options.label), children: h }),
|
|
4365
4378
|
/* @__PURE__ */ e(
|
|
4366
|
-
|
|
4379
|
+
jt,
|
|
4367
4380
|
{
|
|
4368
4381
|
inputProps: {
|
|
4369
4382
|
id: "select-list",
|
|
4370
4383
|
classNames: { target: "px-3 py-[9px]" },
|
|
4371
|
-
placeholder:
|
|
4372
|
-
value:
|
|
4373
|
-
onChange: (
|
|
4384
|
+
placeholder: D && h ? `Редактировать ${h}` : h || "",
|
|
4385
|
+
value: m,
|
|
4386
|
+
onChange: (W) => S(W.target.value)
|
|
4374
4387
|
},
|
|
4375
|
-
icon:
|
|
4388
|
+
icon: Xt,
|
|
4376
4389
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4377
4390
|
iconPosition: "right",
|
|
4378
4391
|
onIconClick: g
|
|
4379
4392
|
}
|
|
4380
4393
|
),
|
|
4381
|
-
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((
|
|
4382
|
-
const
|
|
4394
|
+
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((W) => {
|
|
4395
|
+
const Q = D === W.value, re = y === W.value;
|
|
4383
4396
|
return /* @__PURE__ */ p(
|
|
4384
4397
|
"div",
|
|
4385
4398
|
{
|
|
4386
4399
|
className: o(
|
|
4387
4400
|
H.options.items,
|
|
4388
|
-
|
|
4401
|
+
Q && "opacity-50"
|
|
4389
4402
|
),
|
|
4390
|
-
onClick: (
|
|
4391
|
-
|
|
4403
|
+
onClick: (X) => {
|
|
4404
|
+
X.stopPropagation(), X.preventDefault(), Q || v(W.value);
|
|
4392
4405
|
},
|
|
4393
4406
|
children: [
|
|
4394
4407
|
/* @__PURE__ */ p(
|
|
@@ -4400,32 +4413,32 @@ const Re = {
|
|
|
4400
4413
|
re && "before:bg-dark-10"
|
|
4401
4414
|
),
|
|
4402
4415
|
children: [
|
|
4403
|
-
|
|
4404
|
-
|
|
4416
|
+
W.label,
|
|
4417
|
+
Q && " (редактируется...)"
|
|
4405
4418
|
]
|
|
4406
4419
|
}
|
|
4407
4420
|
),
|
|
4408
4421
|
/* @__PURE__ */ p("div", { className: "flex gap-2", children: [
|
|
4409
4422
|
/* @__PURE__ */ e(
|
|
4410
|
-
|
|
4423
|
+
M,
|
|
4411
4424
|
{
|
|
4412
4425
|
variant: "text",
|
|
4413
|
-
icon:
|
|
4426
|
+
icon: St,
|
|
4414
4427
|
classNames: {
|
|
4415
4428
|
base: "p-0",
|
|
4416
4429
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4417
4430
|
},
|
|
4418
|
-
onClick: (
|
|
4431
|
+
onClick: (X) => C(W.value, X),
|
|
4419
4432
|
iconDimensions: {
|
|
4420
4433
|
height: 20,
|
|
4421
4434
|
width: 20,
|
|
4422
4435
|
viewBox: "0 0 31 31"
|
|
4423
4436
|
},
|
|
4424
|
-
disabled:
|
|
4437
|
+
disabled: Q
|
|
4425
4438
|
}
|
|
4426
4439
|
),
|
|
4427
4440
|
/* @__PURE__ */ e(
|
|
4428
|
-
|
|
4441
|
+
M,
|
|
4429
4442
|
{
|
|
4430
4443
|
variant: "text",
|
|
4431
4444
|
icon: Fe,
|
|
@@ -4433,34 +4446,34 @@ const Re = {
|
|
|
4433
4446
|
base: "p-0",
|
|
4434
4447
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4435
4448
|
},
|
|
4436
|
-
onClick: (
|
|
4449
|
+
onClick: (X) => j(W.value, X),
|
|
4437
4450
|
iconDimensions: {
|
|
4438
4451
|
height: 20,
|
|
4439
4452
|
width: 20,
|
|
4440
4453
|
viewBox: "0 0 30 30"
|
|
4441
4454
|
},
|
|
4442
|
-
disabled:
|
|
4455
|
+
disabled: Q
|
|
4443
4456
|
}
|
|
4444
4457
|
)
|
|
4445
4458
|
] })
|
|
4446
4459
|
]
|
|
4447
4460
|
},
|
|
4448
|
-
|
|
4461
|
+
W.value
|
|
4449
4462
|
);
|
|
4450
4463
|
}) }),
|
|
4451
4464
|
/* @__PURE__ */ p("div", { className: o(H.options.primaryActionsWrapper), children: [
|
|
4452
4465
|
/* @__PURE__ */ e(
|
|
4453
|
-
|
|
4466
|
+
M,
|
|
4454
4467
|
{
|
|
4455
4468
|
type: "button",
|
|
4456
4469
|
variant: "secondary",
|
|
4457
4470
|
className: o(H.options.primaryActionCancel),
|
|
4458
|
-
onClick:
|
|
4471
|
+
onClick: _,
|
|
4459
4472
|
children: "Отмена"
|
|
4460
4473
|
}
|
|
4461
4474
|
),
|
|
4462
4475
|
/* @__PURE__ */ e(
|
|
4463
|
-
|
|
4476
|
+
M,
|
|
4464
4477
|
{
|
|
4465
4478
|
type: "button",
|
|
4466
4479
|
variant: "primary",
|
|
@@ -4478,7 +4491,7 @@ const Re = {
|
|
|
4478
4491
|
] });
|
|
4479
4492
|
}
|
|
4480
4493
|
);
|
|
4481
|
-
|
|
4494
|
+
Jn.displayName = "SelectList";
|
|
4482
4495
|
const H = {
|
|
4483
4496
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4484
4497
|
base: {
|
|
@@ -4586,7 +4599,7 @@ const H = {
|
|
|
4586
4599
|
children: [
|
|
4587
4600
|
/* @__PURE__ */ p(de, { open: f, onOpenChange: h, children: [
|
|
4588
4601
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4589
|
-
|
|
4602
|
+
M,
|
|
4590
4603
|
{
|
|
4591
4604
|
variant: "text",
|
|
4592
4605
|
type: "button",
|
|
@@ -4656,7 +4669,7 @@ const H = {
|
|
|
4656
4669
|
/* @__PURE__ */ e("div", { className: o(Le.actions, r == null ? void 0 : r.actions), children: a == null ? void 0 : a.map((u) => {
|
|
4657
4670
|
var b, x;
|
|
4658
4671
|
return /* @__PURE__ */ e(
|
|
4659
|
-
|
|
4672
|
+
kt,
|
|
4660
4673
|
{
|
|
4661
4674
|
icon: u.icon,
|
|
4662
4675
|
shape: "circle",
|
|
@@ -4736,20 +4749,20 @@ const H = {
|
|
|
4736
4749
|
visibleSelections: f
|
|
4737
4750
|
}) => {
|
|
4738
4751
|
const h = t === i;
|
|
4739
|
-
return /* @__PURE__ */ p("div", { className:
|
|
4752
|
+
return /* @__PURE__ */ p("div", { className: Ke.root, children: [
|
|
4740
4753
|
l && !h && /* @__PURE__ */ e(
|
|
4741
|
-
|
|
4754
|
+
Zt,
|
|
4742
4755
|
{
|
|
4743
4756
|
imageSrc: r == null ? void 0 : r.url,
|
|
4744
4757
|
alt: r == null ? void 0 : r.alt,
|
|
4745
4758
|
classNames: { wrapper: "shrink-0" }
|
|
4746
4759
|
}
|
|
4747
4760
|
),
|
|
4748
|
-
/* @__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) => {
|
|
4749
4762
|
const s = (u == null ? void 0 : u.id) && (c == null ? void 0 : c.includes(u.id));
|
|
4750
|
-
return /* @__PURE__ */ p("ul", { role: "listitem", className:
|
|
4763
|
+
return /* @__PURE__ */ p("ul", { role: "listitem", className: Ke.item, children: [
|
|
4751
4764
|
/* @__PURE__ */ e(
|
|
4752
|
-
|
|
4765
|
+
Mr,
|
|
4753
4766
|
{
|
|
4754
4767
|
id: u.id,
|
|
4755
4768
|
text: u.text,
|
|
@@ -4768,7 +4781,7 @@ const H = {
|
|
|
4768
4781
|
{
|
|
4769
4782
|
"data-testid": "select-icon",
|
|
4770
4783
|
className: o(
|
|
4771
|
-
|
|
4784
|
+
Ke.selection,
|
|
4772
4785
|
s && "bg-sidebar-20"
|
|
4773
4786
|
),
|
|
4774
4787
|
onClick: () => a == null ? void 0 : a(u == null ? void 0 : u.id),
|
|
@@ -4788,7 +4801,7 @@ const H = {
|
|
|
4788
4801
|
] });
|
|
4789
4802
|
}) })
|
|
4790
4803
|
] });
|
|
4791
|
-
},
|
|
4804
|
+
}, Ke = {
|
|
4792
4805
|
root: "w-full flex items-end gap-4",
|
|
4793
4806
|
list: "w-full flex flex-col items-start gap-2.5",
|
|
4794
4807
|
item: "flex items-end gap-4",
|
|
@@ -4802,21 +4815,21 @@ const H = {
|
|
|
4802
4815
|
}) => {
|
|
4803
4816
|
const l = () => {
|
|
4804
4817
|
d(), n();
|
|
4805
|
-
}, c =
|
|
4806
|
-
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(
|
|
4807
4820
|
"div",
|
|
4808
4821
|
{
|
|
4809
4822
|
"data-testid": "delete-message-group",
|
|
4810
4823
|
className: o(
|
|
4811
|
-
|
|
4824
|
+
Xe.content,
|
|
4812
4825
|
r == null ? void 0 : r.content,
|
|
4813
4826
|
i ? "animate-slide-up" : "animate-slide-down"
|
|
4814
4827
|
),
|
|
4815
4828
|
children: [
|
|
4816
4829
|
/* @__PURE__ */ e(
|
|
4817
|
-
|
|
4830
|
+
kt,
|
|
4818
4831
|
{
|
|
4819
|
-
icon:
|
|
4832
|
+
icon: Ue,
|
|
4820
4833
|
shape: "circle",
|
|
4821
4834
|
variant: "text",
|
|
4822
4835
|
classNames: {
|
|
@@ -4832,12 +4845,12 @@ const H = {
|
|
|
4832
4845
|
}
|
|
4833
4846
|
}
|
|
4834
4847
|
),
|
|
4835
|
-
/* @__PURE__ */ p("p", { className:
|
|
4848
|
+
/* @__PURE__ */ p("p", { className: Xe.amount, children: [
|
|
4836
4849
|
t,
|
|
4837
4850
|
" сообщения"
|
|
4838
4851
|
] }),
|
|
4839
4852
|
/* @__PURE__ */ e(
|
|
4840
|
-
|
|
4853
|
+
M,
|
|
4841
4854
|
{
|
|
4842
4855
|
variant: "text",
|
|
4843
4856
|
icon: Fe,
|
|
@@ -4858,7 +4871,7 @@ const H = {
|
|
|
4858
4871
|
]
|
|
4859
4872
|
}
|
|
4860
4873
|
) });
|
|
4861
|
-
},
|
|
4874
|
+
}, Xe = {
|
|
4862
4875
|
wrapper: "flex justify-center",
|
|
4863
4876
|
content: "flex items-center py-3 px-5 border rounded-xl border-dark-40/[.25] fixed bottom-0 bg-white",
|
|
4864
4877
|
delete: {
|
|
@@ -4869,7 +4882,7 @@ const H = {
|
|
|
4869
4882
|
}, Nn = [
|
|
4870
4883
|
{
|
|
4871
4884
|
id: "download",
|
|
4872
|
-
icon:
|
|
4885
|
+
icon: Br,
|
|
4873
4886
|
iconSizes: {
|
|
4874
4887
|
width: 20,
|
|
4875
4888
|
height: 20,
|
|
@@ -4879,7 +4892,7 @@ const H = {
|
|
|
4879
4892
|
},
|
|
4880
4893
|
{
|
|
4881
4894
|
id: "edit",
|
|
4882
|
-
icon:
|
|
4895
|
+
icon: St,
|
|
4883
4896
|
iconSizes: {
|
|
4884
4897
|
width: 20,
|
|
4885
4898
|
height: 20,
|
|
@@ -4930,7 +4943,7 @@ const H = {
|
|
|
4930
4943
|
u.preventDefault(), n(!0);
|
|
4931
4944
|
}, l = (u) => {
|
|
4932
4945
|
i(u), n(!1);
|
|
4933
|
-
}, { icon: c, base: a } =
|
|
4946
|
+
}, { icon: c, base: a } = gt.button.normal, { icon: f, base: h } = gt.button.danger;
|
|
4934
4947
|
return /* @__PURE__ */ p(de, { open: d, onOpenChange: n, children: [
|
|
4935
4948
|
/* @__PURE__ */ e(ae, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4936
4949
|
"div",
|
|
@@ -4946,9 +4959,9 @@ const H = {
|
|
|
4946
4959
|
align: "center",
|
|
4947
4960
|
sideOffset: 4,
|
|
4948
4961
|
side: "top",
|
|
4949
|
-
className:
|
|
4962
|
+
className: gt.wrapper,
|
|
4950
4963
|
children: Nn.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: y }) => /* @__PURE__ */ e(
|
|
4951
|
-
|
|
4964
|
+
M,
|
|
4952
4965
|
{
|
|
4953
4966
|
"data-testid": "action",
|
|
4954
4967
|
variant: "text",
|
|
@@ -4967,7 +4980,7 @@ const H = {
|
|
|
4967
4980
|
}
|
|
4968
4981
|
)
|
|
4969
4982
|
] });
|
|
4970
|
-
},
|
|
4983
|
+
}, gt = {
|
|
4971
4984
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
4972
4985
|
button: {
|
|
4973
4986
|
normal: {
|
|
@@ -4980,7 +4993,7 @@ const H = {
|
|
|
4980
4993
|
}
|
|
4981
4994
|
}
|
|
4982
4995
|
}, pi = ({ tabs: t }) => {
|
|
4983
|
-
const i =
|
|
4996
|
+
const i = Kt();
|
|
4984
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(
|
|
4985
4998
|
Fr,
|
|
4986
4999
|
{
|
|
@@ -5020,7 +5033,7 @@ const H = {
|
|
|
5020
5033
|
),
|
|
5021
5034
|
children: [
|
|
5022
5035
|
i ? u == null ? void 0 : u.name.ru : d,
|
|
5023
|
-
/* @__PURE__ */ e(
|
|
5036
|
+
/* @__PURE__ */ e(or, { className: o(oe.icon, f && "-rotate-180") })
|
|
5024
5037
|
]
|
|
5025
5038
|
}
|
|
5026
5039
|
),
|
|
@@ -5039,7 +5052,7 @@ const H = {
|
|
|
5039
5052
|
),
|
|
5040
5053
|
/* @__PURE__ */ p("div", { className: oe.actions, children: [
|
|
5041
5054
|
/* @__PURE__ */ e(
|
|
5042
|
-
|
|
5055
|
+
M,
|
|
5043
5056
|
{
|
|
5044
5057
|
"data-testid": "edit-button",
|
|
5045
5058
|
variant: "text",
|
|
@@ -5048,7 +5061,7 @@ const H = {
|
|
|
5048
5061
|
y.stopPropagation(), c(s);
|
|
5049
5062
|
},
|
|
5050
5063
|
children: /* @__PURE__ */ e(
|
|
5051
|
-
|
|
5064
|
+
St,
|
|
5052
5065
|
{
|
|
5053
5066
|
width: 20,
|
|
5054
5067
|
height: 20,
|
|
@@ -5059,7 +5072,7 @@ const H = {
|
|
|
5059
5072
|
}
|
|
5060
5073
|
),
|
|
5061
5074
|
/* @__PURE__ */ e(
|
|
5062
|
-
|
|
5075
|
+
M,
|
|
5063
5076
|
{
|
|
5064
5077
|
"data-testid": "delete-button",
|
|
5065
5078
|
variant: "text",
|
|
@@ -5081,10 +5094,10 @@ const H = {
|
|
|
5081
5094
|
] })
|
|
5082
5095
|
] }, s)) }),
|
|
5083
5096
|
/* @__PURE__ */ e(
|
|
5084
|
-
|
|
5097
|
+
M,
|
|
5085
5098
|
{
|
|
5086
5099
|
variant: "text",
|
|
5087
|
-
icon:
|
|
5100
|
+
icon: Xt,
|
|
5088
5101
|
iconPosition: "left",
|
|
5089
5102
|
iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
|
|
5090
5103
|
size: "medium",
|
|
@@ -5139,7 +5152,7 @@ const H = {
|
|
|
5139
5152
|
icon: "circle",
|
|
5140
5153
|
textStyle: {
|
|
5141
5154
|
padding: [0, 0, 0, 10],
|
|
5142
|
-
color:
|
|
5155
|
+
color: Pe.dark[10],
|
|
5143
5156
|
fontSize: 14,
|
|
5144
5157
|
fontWeight: 700,
|
|
5145
5158
|
rich: {
|
|
@@ -5171,7 +5184,7 @@ const H = {
|
|
|
5171
5184
|
}
|
|
5172
5185
|
]
|
|
5173
5186
|
};
|
|
5174
|
-
}, ui =
|
|
5187
|
+
}, ui = K(
|
|
5175
5188
|
({
|
|
5176
5189
|
chartMode: t = "doughtnut",
|
|
5177
5190
|
mode: i = "chart",
|
|
@@ -5200,7 +5213,7 @@ const H = {
|
|
|
5200
5213
|
children: [
|
|
5201
5214
|
/* @__PURE__ */ p("div", { className: o(E.header, c == null ? void 0 : c.header), children: [
|
|
5202
5215
|
/* @__PURE__ */ e(
|
|
5203
|
-
|
|
5216
|
+
Ye,
|
|
5204
5217
|
{
|
|
5205
5218
|
title: d,
|
|
5206
5219
|
icon: n,
|
|
@@ -5221,7 +5234,7 @@ const H = {
|
|
|
5221
5234
|
/* @__PURE__ */ e(k, { className: o(E.total, c == null ? void 0 : c.total), children: r.total }),
|
|
5222
5235
|
r.growth && /* @__PURE__ */ p("div", { className: o(E.badge, c == null ? void 0 : c.badge), children: [
|
|
5223
5236
|
/* @__PURE__ */ e(
|
|
5224
|
-
|
|
5237
|
+
vt,
|
|
5225
5238
|
{
|
|
5226
5239
|
width: 7,
|
|
5227
5240
|
height: 7,
|
|
@@ -5243,9 +5256,9 @@ const H = {
|
|
|
5243
5256
|
] })
|
|
5244
5257
|
] }),
|
|
5245
5258
|
i === "chart" && /* @__PURE__ */ e(
|
|
5246
|
-
|
|
5259
|
+
nt,
|
|
5247
5260
|
{
|
|
5248
|
-
echarts:
|
|
5261
|
+
echarts: ot,
|
|
5249
5262
|
option: u,
|
|
5250
5263
|
style: { height: 250 }
|
|
5251
5264
|
}
|
|
@@ -5257,12 +5270,12 @@ const H = {
|
|
|
5257
5270
|
className: o(E.progress.line, (x = c == null ? void 0 : c.progress) == null ? void 0 : x.line)
|
|
5258
5271
|
}
|
|
5259
5272
|
),
|
|
5260
|
-
h.map(({ name: s, value: y },
|
|
5261
|
-
var
|
|
5273
|
+
h.map(({ name: s, value: y }, v) => {
|
|
5274
|
+
var m, S, D;
|
|
5262
5275
|
return /* @__PURE__ */ p(
|
|
5263
5276
|
"div",
|
|
5264
5277
|
{
|
|
5265
|
-
className: o(E.progress.row, (
|
|
5278
|
+
className: o(E.progress.row, (m = c == null ? void 0 : c.progress) == null ? void 0 : m.row),
|
|
5266
5279
|
children: [
|
|
5267
5280
|
/* @__PURE__ */ e(
|
|
5268
5281
|
k,
|
|
@@ -5275,11 +5288,11 @@ const H = {
|
|
|
5275
5288
|
}
|
|
5276
5289
|
),
|
|
5277
5290
|
/* @__PURE__ */ e(
|
|
5278
|
-
|
|
5291
|
+
pr,
|
|
5279
5292
|
{
|
|
5280
5293
|
value: y,
|
|
5281
5294
|
total: r.total,
|
|
5282
|
-
color: l[
|
|
5295
|
+
color: l[v],
|
|
5283
5296
|
classNames: {
|
|
5284
5297
|
bar: E.progress.bar,
|
|
5285
5298
|
indicator: E.progress.indicator
|
|
@@ -5291,7 +5304,7 @@ const H = {
|
|
|
5291
5304
|
{
|
|
5292
5305
|
className: o(
|
|
5293
5306
|
E.progress.value,
|
|
5294
|
-
(
|
|
5307
|
+
(D = c == null ? void 0 : c.progress) == null ? void 0 : D.value
|
|
5295
5308
|
),
|
|
5296
5309
|
children: y
|
|
5297
5310
|
}
|
|
@@ -5371,7 +5384,7 @@ const H = {
|
|
|
5371
5384
|
}
|
|
5372
5385
|
]
|
|
5373
5386
|
};
|
|
5374
|
-
}, fi =
|
|
5387
|
+
}, fi = K(
|
|
5375
5388
|
({ data: t, title: i, mode: d = "stat", settings: n, classNames: r, ...l }, c) => {
|
|
5376
5389
|
const {
|
|
5377
5390
|
chartColor: a = "#1B9BE4",
|
|
@@ -5413,7 +5426,7 @@ const H = {
|
|
|
5413
5426
|
d === "payment" && /* @__PURE__ */ e(k, { className: ie.payment, children: "Сум" }),
|
|
5414
5427
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.badge, r == null ? void 0 : r.badge), children: [
|
|
5415
5428
|
/* @__PURE__ */ e(
|
|
5416
|
-
|
|
5429
|
+
vt,
|
|
5417
5430
|
{
|
|
5418
5431
|
width: 7,
|
|
5419
5432
|
height: 7,
|
|
@@ -5428,8 +5441,8 @@ const H = {
|
|
|
5428
5441
|
] })
|
|
5429
5442
|
] }),
|
|
5430
5443
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.counBlock, r == null ? void 0 : r.countBlock), children: [
|
|
5431
|
-
/* @__PURE__ */ e(
|
|
5432
|
-
/* @__PURE__ */ e(
|
|
5444
|
+
/* @__PURE__ */ e(We, { label: "Физическое лицо:", value: t.physical }),
|
|
5445
|
+
/* @__PURE__ */ e(We, { label: "Юридическое лицо:", value: t.legal })
|
|
5433
5446
|
] }),
|
|
5434
5447
|
t.growth && d !== "count" && /* @__PURE__ */ p(
|
|
5435
5448
|
"div",
|
|
@@ -5438,7 +5451,7 @@ const H = {
|
|
|
5438
5451
|
style: { color: b },
|
|
5439
5452
|
children: [
|
|
5440
5453
|
/* @__PURE__ */ e(
|
|
5441
|
-
|
|
5454
|
+
vt,
|
|
5442
5455
|
{
|
|
5443
5456
|
width: 16,
|
|
5444
5457
|
height: 16,
|
|
@@ -5454,9 +5467,9 @@ const H = {
|
|
|
5454
5467
|
),
|
|
5455
5468
|
d === "stat" && /* @__PURE__ */ e("div", { className: o(ie.icon, r == null ? void 0 : r.icon), children: u }),
|
|
5456
5469
|
s && /* @__PURE__ */ e(
|
|
5457
|
-
|
|
5470
|
+
nt,
|
|
5458
5471
|
{
|
|
5459
|
-
echarts:
|
|
5472
|
+
echarts: ot,
|
|
5460
5473
|
option: y,
|
|
5461
5474
|
style: {
|
|
5462
5475
|
...s,
|
|
@@ -5492,7 +5505,7 @@ const H = {
|
|
|
5492
5505
|
textStyle: {
|
|
5493
5506
|
fontSize: 22,
|
|
5494
5507
|
fontWeight: 600,
|
|
5495
|
-
color:
|
|
5508
|
+
color: Pe.dark[10]
|
|
5496
5509
|
}
|
|
5497
5510
|
},
|
|
5498
5511
|
tooltip: !1,
|
|
@@ -5508,14 +5521,14 @@ const H = {
|
|
|
5508
5521
|
data: [
|
|
5509
5522
|
{
|
|
5510
5523
|
value: t,
|
|
5511
|
-
itemStyle: { color:
|
|
5524
|
+
itemStyle: { color: Pe.success[20], borderRadius: 4 }
|
|
5512
5525
|
},
|
|
5513
5526
|
{ value: i, itemStyle: { color: "#F3F4F5" } }
|
|
5514
5527
|
]
|
|
5515
5528
|
}
|
|
5516
5529
|
]
|
|
5517
5530
|
};
|
|
5518
|
-
}, bi =
|
|
5531
|
+
}, bi = K(
|
|
5519
5532
|
({
|
|
5520
5533
|
mode: t = "master",
|
|
5521
5534
|
title: i,
|
|
@@ -5539,16 +5552,16 @@ const H = {
|
|
|
5539
5552
|
children: [
|
|
5540
5553
|
/* @__PURE__ */ p("div", { className: o(ze.block, a == null ? void 0 : a.block), children: [
|
|
5541
5554
|
/* @__PURE__ */ e(
|
|
5542
|
-
|
|
5555
|
+
Ye,
|
|
5543
5556
|
{
|
|
5544
5557
|
title: i,
|
|
5545
5558
|
icon: d,
|
|
5546
5559
|
classNames: { title: ze.title, wrapper: "items-center" }
|
|
5547
5560
|
}
|
|
5548
5561
|
),
|
|
5549
|
-
t === "master" && f && c && /* @__PURE__ */ p(
|
|
5562
|
+
t === "master" && f && c && /* @__PURE__ */ p(st, { children: [
|
|
5550
5563
|
/* @__PURE__ */ e(
|
|
5551
|
-
|
|
5564
|
+
Bt,
|
|
5552
5565
|
{
|
|
5553
5566
|
...f,
|
|
5554
5567
|
classNames: {
|
|
@@ -5558,11 +5571,11 @@ const H = {
|
|
|
5558
5571
|
}
|
|
5559
5572
|
}
|
|
5560
5573
|
),
|
|
5561
|
-
/* @__PURE__ */ e(
|
|
5574
|
+
/* @__PURE__ */ e(cr, { rating: c, position: "right" })
|
|
5562
5575
|
] }),
|
|
5563
|
-
t === "service" && l && /* @__PURE__ */ p(
|
|
5576
|
+
t === "service" && l && /* @__PURE__ */ p(st, { children: [
|
|
5564
5577
|
/* @__PURE__ */ e(
|
|
5565
|
-
|
|
5578
|
+
Ye,
|
|
5566
5579
|
{
|
|
5567
5580
|
title: l.name,
|
|
5568
5581
|
icon: l.icon,
|
|
@@ -5582,7 +5595,7 @@ const H = {
|
|
|
5582
5595
|
)
|
|
5583
5596
|
] }),
|
|
5584
5597
|
/* @__PURE__ */ e(
|
|
5585
|
-
|
|
5598
|
+
We,
|
|
5586
5599
|
{
|
|
5587
5600
|
label: "Заявки в месяц:",
|
|
5588
5601
|
value: r,
|
|
@@ -5591,9 +5604,9 @@ const H = {
|
|
|
5591
5604
|
)
|
|
5592
5605
|
] }),
|
|
5593
5606
|
/* @__PURE__ */ e(
|
|
5594
|
-
|
|
5607
|
+
nt,
|
|
5595
5608
|
{
|
|
5596
|
-
echarts:
|
|
5609
|
+
echarts: ot,
|
|
5597
5610
|
option: b,
|
|
5598
5611
|
style: { height: 135, width: 135 }
|
|
5599
5612
|
}
|
|
@@ -5611,7 +5624,7 @@ const H = {
|
|
|
5611
5624
|
}, ao = (t, i) => {
|
|
5612
5625
|
const d = i - t;
|
|
5613
5626
|
return d >= 1 ? 100 : d > 0 ? d * 100 : 0;
|
|
5614
|
-
},
|
|
5627
|
+
}, cr = ({
|
|
5615
5628
|
rating: t,
|
|
5616
5629
|
classNames: i,
|
|
5617
5630
|
position: d = "left",
|
|
@@ -5633,7 +5646,7 @@ const H = {
|
|
|
5633
5646
|
);
|
|
5634
5647
|
return /* @__PURE__ */ p("div", { className: o(he.overlay.block), children: [
|
|
5635
5648
|
/* @__PURE__ */ e(
|
|
5636
|
-
|
|
5649
|
+
Wt,
|
|
5637
5650
|
{
|
|
5638
5651
|
className: o(he.icon, he.empty),
|
|
5639
5652
|
"data-testid": "star-empty"
|
|
@@ -5646,7 +5659,7 @@ const H = {
|
|
|
5646
5659
|
style: { width: `${c}%` },
|
|
5647
5660
|
"data-testid": "star-overlay",
|
|
5648
5661
|
children: /* @__PURE__ */ e(
|
|
5649
|
-
|
|
5662
|
+
Wt,
|
|
5650
5663
|
{
|
|
5651
5664
|
className: o(he.icon, he.filled),
|
|
5652
5665
|
"data-testid": "star-filled"
|
|
@@ -5685,7 +5698,7 @@ const H = {
|
|
|
5685
5698
|
textStyle: {
|
|
5686
5699
|
fontSize: 20,
|
|
5687
5700
|
fontWeight: 600,
|
|
5688
|
-
color:
|
|
5701
|
+
color: Pe.dark[10]
|
|
5689
5702
|
}
|
|
5690
5703
|
},
|
|
5691
5704
|
tooltip: {
|
|
@@ -5708,7 +5721,7 @@ const H = {
|
|
|
5708
5721
|
}
|
|
5709
5722
|
]
|
|
5710
5723
|
};
|
|
5711
|
-
}, xi =
|
|
5724
|
+
}, xi = K(
|
|
5712
5725
|
({ title: t, icon: i, data: d, colors: n, classNames: r, ...l }, c) => {
|
|
5713
5726
|
var f;
|
|
5714
5727
|
const a = [
|
|
@@ -5726,7 +5739,7 @@ const H = {
|
|
|
5726
5739
|
children: [
|
|
5727
5740
|
/* @__PURE__ */ p("div", { className: o(N.header, r == null ? void 0 : r.header), children: [
|
|
5728
5741
|
/* @__PURE__ */ e(
|
|
5729
|
-
|
|
5742
|
+
Ye,
|
|
5730
5743
|
{
|
|
5731
5744
|
title: t,
|
|
5732
5745
|
icon: i,
|
|
@@ -5762,7 +5775,7 @@ const H = {
|
|
|
5762
5775
|
}
|
|
5763
5776
|
),
|
|
5764
5777
|
/* @__PURE__ */ e(
|
|
5765
|
-
|
|
5778
|
+
We,
|
|
5766
5779
|
{
|
|
5767
5780
|
label: h.label,
|
|
5768
5781
|
value: h.value,
|
|
@@ -5779,9 +5792,9 @@ const H = {
|
|
|
5779
5792
|
}) })
|
|
5780
5793
|
] }),
|
|
5781
5794
|
/* @__PURE__ */ e("div", { className: o(N.chartBlock, r == null ? void 0 : r.chartBlock), children: a.map((h, u) => /* @__PURE__ */ e(
|
|
5782
|
-
|
|
5795
|
+
nt,
|
|
5783
5796
|
{
|
|
5784
|
-
echarts:
|
|
5797
|
+
echarts: ot,
|
|
5785
5798
|
"data-testid": "chart",
|
|
5786
5799
|
option: lo({
|
|
5787
5800
|
total: d.total,
|
|
@@ -5811,7 +5824,7 @@ const H = {
|
|
|
5811
5824
|
root: "flex flex-col gap-2",
|
|
5812
5825
|
dot: "size-2 rounded-full"
|
|
5813
5826
|
}
|
|
5814
|
-
}, gi =
|
|
5827
|
+
}, gi = K(
|
|
5815
5828
|
({ paid: t, pending: i, overdue: d, title: n, icon: r, total: l, classNames: c, ...a }, f) => {
|
|
5816
5829
|
var u;
|
|
5817
5830
|
const h = [
|
|
@@ -5833,7 +5846,7 @@ const H = {
|
|
|
5833
5846
|
children: [
|
|
5834
5847
|
/* @__PURE__ */ p("div", { className: o(Ie.header, c == null ? void 0 : c.header), children: [
|
|
5835
5848
|
/* @__PURE__ */ e(
|
|
5836
|
-
|
|
5849
|
+
Ye,
|
|
5837
5850
|
{
|
|
5838
5851
|
title: n,
|
|
5839
5852
|
icon: r,
|
|
@@ -5850,9 +5863,9 @@ const H = {
|
|
|
5850
5863
|
)
|
|
5851
5864
|
] }),
|
|
5852
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) => {
|
|
5853
|
-
var
|
|
5866
|
+
var v;
|
|
5854
5867
|
return /* @__PURE__ */ p("div", { children: [
|
|
5855
|
-
/* @__PURE__ */ p("div", { className: o(Ie.bar.text, (
|
|
5868
|
+
/* @__PURE__ */ p("div", { className: o(Ie.bar.text, (v = c == null ? void 0 : c.bar) == null ? void 0 : v.text), children: [
|
|
5856
5869
|
/* @__PURE__ */ e(k, { children: b }),
|
|
5857
5870
|
/* @__PURE__ */ p(k, { className: o(y === 2 && "text-danger-10"), children: [
|
|
5858
5871
|
x,
|
|
@@ -5860,7 +5873,7 @@ const H = {
|
|
|
5860
5873
|
] })
|
|
5861
5874
|
] }),
|
|
5862
5875
|
/* @__PURE__ */ e(
|
|
5863
|
-
|
|
5876
|
+
pr,
|
|
5864
5877
|
{
|
|
5865
5878
|
value: x,
|
|
5866
5879
|
total: l,
|
|
@@ -5885,20 +5898,20 @@ const H = {
|
|
|
5885
5898
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5886
5899
|
indicator: "h-full rounded-md"
|
|
5887
5900
|
}
|
|
5888
|
-
},
|
|
5901
|
+
}, pr = ({
|
|
5889
5902
|
value: t,
|
|
5890
5903
|
total: i,
|
|
5891
5904
|
color: d,
|
|
5892
5905
|
classNames: n
|
|
5893
5906
|
}) => {
|
|
5894
5907
|
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] = F(0);
|
|
5895
|
-
return
|
|
5908
|
+
return Me(() => {
|
|
5896
5909
|
const a = requestAnimationFrame(() => {
|
|
5897
5910
|
c(r);
|
|
5898
5911
|
});
|
|
5899
5912
|
return () => cancelAnimationFrame(a);
|
|
5900
|
-
}, [r]), /* @__PURE__ */ e(
|
|
5901
|
-
|
|
5913
|
+
}, [r]), /* @__PURE__ */ e(Xr, { className: o(zt.bar, n == null ? void 0 : n.bar), children: /* @__PURE__ */ e(
|
|
5914
|
+
Jr,
|
|
5902
5915
|
{
|
|
5903
5916
|
className: o(zt.indicator, d, n == null ? void 0 : n.indicator),
|
|
5904
5917
|
style: {
|
|
@@ -5913,8 +5926,8 @@ const H = {
|
|
|
5913
5926
|
export {
|
|
5914
5927
|
jo as Accordion,
|
|
5915
5928
|
ni as ApartmentCard,
|
|
5916
|
-
|
|
5917
|
-
|
|
5929
|
+
Bt as AvatarGroup,
|
|
5930
|
+
_o as Breadcrumb,
|
|
5918
5931
|
ti as CardFiles,
|
|
5919
5932
|
bi as CardMonthly,
|
|
5920
5933
|
ui as CardPieChart,
|
|
@@ -5927,49 +5940,49 @@ export {
|
|
|
5927
5940
|
di as ChatList,
|
|
5928
5941
|
ai as ChatMessage,
|
|
5929
5942
|
ii as ChatSidebar,
|
|
5930
|
-
|
|
5943
|
+
dr as CheckboxGroup,
|
|
5931
5944
|
Ho as CommentInput,
|
|
5932
5945
|
Oo as CommentList,
|
|
5933
|
-
|
|
5946
|
+
Jo as DateOfBirth,
|
|
5934
5947
|
Ao as DatePicker,
|
|
5935
5948
|
$o as DateRangePicker,
|
|
5936
5949
|
li as DeleteMessage,
|
|
5937
|
-
|
|
5950
|
+
Xo as DragAndDrop,
|
|
5938
5951
|
zn as Dropdown,
|
|
5939
5952
|
Ro as FileUploader,
|
|
5940
5953
|
Lo as FilterTable,
|
|
5941
5954
|
hi as FloorSelect,
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5955
|
+
Ye as IconTitle,
|
|
5956
|
+
jt as InputGroup,
|
|
5957
|
+
We as LabelWithValue,
|
|
5958
|
+
Yo as Languages,
|
|
5959
|
+
Ge as Link,
|
|
5947
5960
|
ci as MessageSettings,
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5961
|
+
Mo as MultiSelect,
|
|
5962
|
+
qn as NavButton,
|
|
5963
|
+
Go as Pagination,
|
|
5951
5964
|
O as PaginationTokens,
|
|
5952
|
-
|
|
5965
|
+
Wo as PasswordInput,
|
|
5953
5966
|
ri as PaymentCard,
|
|
5954
5967
|
Eo as PhoneInput,
|
|
5955
5968
|
Vo as Plate,
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5969
|
+
pr as ProgressItem,
|
|
5970
|
+
ar as RadioGroup,
|
|
5971
|
+
cr as Rating,
|
|
5959
5972
|
Cn as SearchInput,
|
|
5960
5973
|
ei as SelectGroup,
|
|
5961
|
-
|
|
5974
|
+
Jn as SelectList,
|
|
5962
5975
|
oi as ServiceOrders,
|
|
5963
|
-
|
|
5964
|
-
|
|
5976
|
+
Uo as Sidebar,
|
|
5977
|
+
lr as StatusSelect,
|
|
5965
5978
|
Po as Stepper,
|
|
5966
|
-
|
|
5979
|
+
Qo as TabGroup,
|
|
5967
5980
|
pi as TabList,
|
|
5968
|
-
|
|
5969
|
-
|
|
5981
|
+
Zo as TabSwitch,
|
|
5982
|
+
ye as TabSwitchTokens,
|
|
5970
5983
|
Io as Table,
|
|
5971
|
-
|
|
5972
|
-
|
|
5984
|
+
qo as TextareaGroup,
|
|
5985
|
+
Ko as ToggleGroup,
|
|
5973
5986
|
Fo as UploadInput,
|
|
5974
5987
|
No as UserContact,
|
|
5975
5988
|
se as accordionTokens,
|
|
@@ -5984,50 +5997,50 @@ export {
|
|
|
5984
5997
|
pe as cardServicesTokens,
|
|
5985
5998
|
ie as cardStatTokens,
|
|
5986
5999
|
je as chatButtonTokens,
|
|
5987
|
-
|
|
6000
|
+
Se as chatCardTokens,
|
|
5988
6001
|
Lt as chatListTokens,
|
|
5989
|
-
|
|
6002
|
+
Ke as chatMessageTokens,
|
|
5990
6003
|
Le as chatSidebarTokens,
|
|
5991
6004
|
ne as checkboxGroupTokens,
|
|
5992
|
-
|
|
6005
|
+
Ze as commentInputTokens,
|
|
5993
6006
|
z as commentItemTokens,
|
|
5994
6007
|
At as dateOfBirthClasses,
|
|
5995
|
-
|
|
6008
|
+
B as datePickerTokens,
|
|
5996
6009
|
Rn as dateRangePickerTokens,
|
|
5997
6010
|
Ln as dayPickerClasses,
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6011
|
+
Xe as deleteMessageTokens,
|
|
6012
|
+
Be as dragAndDropTokens,
|
|
6013
|
+
Mt as dropdownTokens,
|
|
6014
|
+
U as fileUploaderTokens,
|
|
6015
|
+
ut as filterTableTokens,
|
|
6003
6016
|
oe as floorSelectTokens,
|
|
6004
6017
|
$t as iconTitleTokens,
|
|
6005
|
-
|
|
6018
|
+
qe as inputGroupTokens,
|
|
6006
6019
|
Rt as labelWithValueTokens,
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6020
|
+
ft as languagesTokens,
|
|
6021
|
+
Kn as linkTokens,
|
|
6022
|
+
gt as messageSettingsTokens,
|
|
6010
6023
|
A as multiSelectTokens,
|
|
6011
|
-
|
|
6024
|
+
bt as navButtonTokens,
|
|
6012
6025
|
kn as passwordInputTokens,
|
|
6013
|
-
|
|
6014
|
-
|
|
6026
|
+
q as paymentCardTokens,
|
|
6027
|
+
we as phoneInputTokens,
|
|
6015
6028
|
$e as plateTokens,
|
|
6016
6029
|
zt as progressItemsTokens,
|
|
6017
6030
|
me as radioGroupTokens,
|
|
6018
6031
|
he as ratingTokens,
|
|
6019
6032
|
ee as searchInputTokens,
|
|
6020
|
-
|
|
6033
|
+
Xn as selectGroupTokens,
|
|
6021
6034
|
H as selectListTokens,
|
|
6022
|
-
|
|
6023
|
-
|
|
6035
|
+
ke as serviceOrdersTokens,
|
|
6036
|
+
Qe as sidebarTokens,
|
|
6024
6037
|
Re as statusSelectTokens,
|
|
6025
|
-
|
|
6026
|
-
|
|
6038
|
+
Y as stepperTokens,
|
|
6039
|
+
De as tabGroupTokens,
|
|
6027
6040
|
eo as tabListTokens,
|
|
6028
6041
|
V as tableTokens,
|
|
6029
6042
|
Ot as textareaGroupTokens,
|
|
6030
6043
|
Vn as toggleGroupTokens,
|
|
6031
6044
|
ve as uploadInputTokens,
|
|
6032
|
-
|
|
6045
|
+
xt as userContactTokens
|
|
6033
6046
|
};
|