@namuna-nur/ui-kit 1.9.17 → 1.9.19
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/index.js +105 -103
- package/lib/molecules/index.js +1004 -975
- 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/CommentList/CommentList.tokens.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/lib/src/utils/date.d.ts +3 -1
- package/lib/utils/index.js +32 -30
- 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
|
|
4
|
-
import { S as
|
|
5
|
-
import { cn as o, formatFileSize as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useReactTable as Or, getCoreRowModel as
|
|
8
|
-
import { b as
|
|
9
|
-
import { Link as Ee, useSearchParams as
|
|
10
|
-
import { S as
|
|
11
|
-
import { P as de, b as ae, c as le, D as
|
|
12
|
-
import { d as
|
|
13
|
-
import { useDebounce as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
17
|
-
import { format as
|
|
18
|
-
import { ru as
|
|
19
|
-
import { DayPicker as
|
|
20
|
-
import
|
|
21
|
-
import { colorTokens as
|
|
22
|
-
import * as
|
|
3
|
+
import Ut, { useRef as ue, forwardRef as K, useState as A, useImperativeHandle as sr, useEffect as Me, Fragment as vr, useMemo as Yt } from "react";
|
|
4
|
+
import { S as Ne, b as mr, c as be, d as wr, e as yr, f as kr, g as Gt, h as Et, i as Cr, j as Vt, k as Tr, l as Sr, m as Dr, n as Br, o as Ir, p as vt } from "../shared/assets-icons-2.js";
|
|
5
|
+
import { cn as o, formatFileSize as yt, DATE_FORMAT_DAY_MONTH_YEAR_DASH as Wt, formatDateToDayMonthYear as jr, numberFormat as _r } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as mt, Label as P, Spinner as Zt, Text as k, Button as M, Avatar as Qt, IconButton as kt, Select as Ce, Textarea as qt, Radio as Kt, Status as He, Toggle as Wr, Headline as Je, Input as Mr, Message as Ar, Tab as Fr } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Or, getCoreRowModel as $r, flexRender as lt } from "@tanstack/react-table";
|
|
8
|
+
import { b as Rr, c as Lr, d as zr, e as Hr } from "../shared/assets-icons-3.js";
|
|
9
|
+
import { Link as Ee, useSearchParams as Ct, useNavigate as Xt, NavLink as Tt } from "react-router-dom";
|
|
10
|
+
import { S as Ur, a as Yr, b as Gr, c as Er, d as Vr, e as Jt, 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 Zr, g as Qr, h as qr, i as Kr, j as Pt, k as Nt, l as er, m as Xr, n as Jr, o as Pr } from "../shared/shared.js";
|
|
12
|
+
import { d as Ue, e as Nr, f as en, g as tr, h as tn, i as rn, j as nn, k as on, a as dn, l as an, m as ln, n as cn } from "../shared/assets-icons-4.js";
|
|
13
|
+
import { useDebounce as pn, useOption as rr } from "../hooks/index.js";
|
|
14
|
+
import * as nr from "@radix-ui/react-toggle";
|
|
15
|
+
import { e as or, f as hn, g as un, h as fn, i as ir, j as Ae, k as Mt } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { useMask as dr, format as ct } from "@react-input/mask";
|
|
17
|
+
import { format as Z, addMonths as bn, parse as wt, isValid as _e, parseISO as xn } from "date-fns";
|
|
18
|
+
import { ru as pt } from "date-fns/locale";
|
|
19
|
+
import { DayPicker as gn } from "react-day-picker";
|
|
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
|
+
}, ar = ({
|
|
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,
|
|
@@ -195,7 +195,7 @@ const jo = ({
|
|
|
195
195
|
},
|
|
196
196
|
disabled: "text-tertiary-30"
|
|
197
197
|
};
|
|
198
|
-
function
|
|
198
|
+
function _o({
|
|
199
199
|
classNames: t,
|
|
200
200
|
columns: i,
|
|
201
201
|
data: d,
|
|
@@ -210,26 +210,26 @@ function Io({
|
|
|
210
210
|
const h = Or({
|
|
211
211
|
columns: i,
|
|
212
212
|
data: d,
|
|
213
|
-
getCoreRowModel:
|
|
213
|
+
getCoreRowModel: $r(),
|
|
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(Zt, {}),
|
|
231
231
|
!f && !d.length && /* @__PURE__ */ p("div", { className: V.info, children: [
|
|
232
|
-
/* @__PURE__ */ e(
|
|
232
|
+
/* @__PURE__ */ e(Rr, { className: "fill-dark-30/50" }),
|
|
233
233
|
/* @__PURE__ */ e(k, { className: V.infoText, children: "Нет данных" })
|
|
234
234
|
] }),
|
|
235
235
|
/* @__PURE__ */ e(
|
|
@@ -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, j) => {
|
|
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
|
-
|
|
270
|
+
w == null ? void 0 : w.headerClass,
|
|
271
|
+
D.index === v.headers.length - 1 && "rounded-r-[10px]",
|
|
272
272
|
!a && j === 0 && V.firstHeaderCell
|
|
273
273
|
),
|
|
274
|
-
onClick: () => (
|
|
274
|
+
onClick: () => (w == null ? void 0 : w.isSortable) && b(D.column.id),
|
|
275
275
|
children: /* @__PURE__ */ p("div", { className: V.headerText, children: [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
lt(
|
|
277
|
+
D.column.columnDef.header,
|
|
278
|
+
D.getContext()
|
|
279
279
|
),
|
|
280
|
-
(
|
|
281
|
-
|
|
280
|
+
(w == null ? void 0 : w.isSortable) && /* @__PURE__ */ e(
|
|
281
|
+
mr,
|
|
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,52 +312,52 @@ 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, j, 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
|
-
j ===
|
|
331
|
+
(n == null ? void 0 : n.includes(v.id)) && "font-bold",
|
|
332
|
+
j === w.length - 1 && "rounded-r-[10px]",
|
|
333
333
|
!a && j === 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
|
)
|
|
356
356
|
] });
|
|
357
357
|
}
|
|
358
358
|
const V = {
|
|
359
|
-
root: "relative h-
|
|
360
|
-
wrapper: "overflow-x-auto
|
|
359
|
+
root: "relative h-[60vh] flex flex-col justify-between bg-sidebar-10 transition-[width] duration-500 ease-in-out",
|
|
360
|
+
wrapper: "overflow-x-auto w-full",
|
|
361
361
|
table: "w-full border-none",
|
|
362
362
|
tableHeader: 'sticky top-0 z-40 bg-gray-50 rounded-[10px] after:content-[""] after:block after:h-2.5 after:bg-sidebar-10',
|
|
363
363
|
firstHeaderCell: "pl-8 py-3 rounded-l-[10px]",
|
|
@@ -371,7 +371,7 @@ const V = {
|
|
|
371
371
|
sortIcon: "transition-transform duration-200 fill-dark-50",
|
|
372
372
|
info: "flex flex-col gap-1 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
373
373
|
infoText: "text-sm font-semibold text-dark-40/50 font-mono"
|
|
374
|
-
},
|
|
374
|
+
}, sn = $.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), vn = $.forwardRef(({ className: t, ...i }, d) => /* @__PURE__ */ e("ol", { ref: d, className: o(Ve.list, t), ...i })), mn = $.forwardRef(({ className: t, ...i }, d) => /* @__PURE__ */ e("li", { ref: d, className: o(Ve.item, t), ...i })), wn = $.forwardRef(
|
|
375
375
|
({ className: t, ...i }, d) => /* @__PURE__ */ e(
|
|
376
376
|
Ee,
|
|
377
377
|
{
|
|
@@ -392,7 +392,7 @@ $.forwardRef(({ className: t, ...i }, d) => /* @__PURE__ */ e(
|
|
|
392
392
|
...i
|
|
393
393
|
}
|
|
394
394
|
));
|
|
395
|
-
const
|
|
395
|
+
const yn = ({
|
|
396
396
|
children: t,
|
|
397
397
|
className: i,
|
|
398
398
|
...d
|
|
@@ -405,8 +405,8 @@ const wn = ({
|
|
|
405
405
|
...d,
|
|
406
406
|
children: t
|
|
407
407
|
}
|
|
408
|
-
), Wo = ({ paths: t }) => /* @__PURE__ */ e(
|
|
409
|
-
|
|
408
|
+
), Wo = ({ paths: t }) => /* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e(vn, { children: t.map((i, d) => /* @__PURE__ */ e(
|
|
409
|
+
kn,
|
|
410
410
|
{
|
|
411
411
|
label: i.label,
|
|
412
412
|
href: i.href,
|
|
@@ -414,14 +414,14 @@ const wn = ({
|
|
|
414
414
|
isLast: d === t.length - 1
|
|
415
415
|
},
|
|
416
416
|
i.label
|
|
417
|
-
)) }) }),
|
|
417
|
+
)) }) }), kn = ({
|
|
418
418
|
href: t,
|
|
419
419
|
isLast: i,
|
|
420
420
|
label: d,
|
|
421
421
|
disabled: n
|
|
422
|
-
}) => /* @__PURE__ */ p(
|
|
423
|
-
/* @__PURE__ */ e(
|
|
424
|
-
|
|
422
|
+
}) => /* @__PURE__ */ p(st, { children: [
|
|
423
|
+
/* @__PURE__ */ e(mn, { children: /* @__PURE__ */ e(
|
|
424
|
+
wn,
|
|
425
425
|
{
|
|
426
426
|
className: o(i && "pointer-events-none"),
|
|
427
427
|
to: n ? "/" : t,
|
|
@@ -439,7 +439,7 @@ const wn = ({
|
|
|
439
439
|
)
|
|
440
440
|
}
|
|
441
441
|
) }),
|
|
442
|
-
!i && /* @__PURE__ */ e(
|
|
442
|
+
!i && /* @__PURE__ */ e(yn, { className: "text-dark-40/[.50] font-medium", children: "/" })
|
|
443
443
|
] }), Ve = {
|
|
444
444
|
list: "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2",
|
|
445
445
|
item: "inline-flex items-center gap-1.5",
|
|
@@ -463,10 +463,10 @@ const wn = ({
|
|
|
463
463
|
{
|
|
464
464
|
label: l,
|
|
465
465
|
iconPosition: "right",
|
|
466
|
-
icon: c ?
|
|
466
|
+
icon: c ? Ur : Yr,
|
|
467
467
|
onIconClick: f,
|
|
468
468
|
classNames: {
|
|
469
|
-
icon:
|
|
469
|
+
icon: Cn.icon,
|
|
470
470
|
label: h == null ? void 0 : h.label,
|
|
471
471
|
parent: h == null ? void 0 : h.parent,
|
|
472
472
|
base: h == null ? void 0 : h.base
|
|
@@ -483,9 +483,9 @@ const wn = ({
|
|
|
483
483
|
type: c ? "text" : "password"
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
),
|
|
486
|
+
), Cn = {
|
|
487
487
|
icon: "size-6 fill-gray-20"
|
|
488
|
-
},
|
|
488
|
+
}, Ao = 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] =
|
|
501
|
-
|
|
500
|
+
const [u, b] = A(""), [x, s] = A(!1), y = ue(null), v = ue(null);
|
|
501
|
+
sr(h, () => ({
|
|
502
502
|
open: () => s(!0),
|
|
503
503
|
close: () => s(!1),
|
|
504
504
|
toggle: () => s((g) => !g),
|
|
@@ -507,14 +507,14 @@ const wn = ({
|
|
|
507
507
|
return (g = y.current) == null ? void 0 : g.focus();
|
|
508
508
|
}
|
|
509
509
|
}), []);
|
|
510
|
-
const
|
|
510
|
+
const m = (g) => {
|
|
511
511
|
var I;
|
|
512
512
|
const C = i.find((T) => T.id === g);
|
|
513
513
|
C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (I = y.current) == null || I.focus();
|
|
514
514
|
}, S = (g, C) => {
|
|
515
515
|
var I;
|
|
516
516
|
C.stopPropagation(), a(c.filter((T) => T.id !== g)), (I = y.current) == null || I.focus();
|
|
517
|
-
},
|
|
517
|
+
}, D = (g) => {
|
|
518
518
|
b(g.target.value.toLowerCase());
|
|
519
519
|
}, j = () => {
|
|
520
520
|
var C;
|
|
@@ -529,11 +529,11 @@ const wn = ({
|
|
|
529
529
|
i.push(I), 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: [
|
|
536
|
-
/* @__PURE__ */ p("div", { className:
|
|
536
|
+
/* @__PURE__ */ p("div", { className: O.labelWrapper, children: [
|
|
537
537
|
!!t && /* @__PURE__ */ e(P, { disabled: n, className: f == null ? void 0 : f.label, children: t }),
|
|
538
538
|
r === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
539
539
|
] }),
|
|
@@ -553,32 +553,32 @@ const wn = ({
|
|
|
553
553
|
disabled: n,
|
|
554
554
|
"data-testid": "dropdown-trigger",
|
|
555
555
|
className: o(
|
|
556
|
-
|
|
556
|
+
O.trigger,
|
|
557
557
|
{
|
|
558
|
-
[
|
|
559
|
-
[
|
|
560
|
-
[
|
|
558
|
+
[O.hoverTrigger]: !n,
|
|
559
|
+
[O.status.danger]: r === "danger",
|
|
560
|
+
[O.focusTrigger]: x || c.length > 0,
|
|
561
561
|
"pl-1.5 pr-3.5 py-[5px]": c.length > 0,
|
|
562
|
-
[
|
|
562
|
+
[O.disabled.trigger]: n
|
|
563
563
|
},
|
|
564
564
|
f == null ? void 0 : f.trigger
|
|
565
565
|
),
|
|
566
|
-
children: /* @__PURE__ */ p("div", { className:
|
|
566
|
+
children: /* @__PURE__ */ p("div", { className: O.selectedItems, children: [
|
|
567
567
|
c.length === 0 && /* @__PURE__ */ e(
|
|
568
568
|
k,
|
|
569
569
|
{
|
|
570
570
|
className: o(
|
|
571
|
-
|
|
572
|
-
n &&
|
|
571
|
+
O.text,
|
|
572
|
+
n && O.disabled.text
|
|
573
573
|
),
|
|
574
574
|
children: d
|
|
575
575
|
}
|
|
576
576
|
),
|
|
577
|
-
c.map((g) => /* @__PURE__ */ p("div", { className:
|
|
577
|
+
c.map((g) => /* @__PURE__ */ p("div", { className: O.selectedItem, children: [
|
|
578
578
|
/* @__PURE__ */ e(
|
|
579
579
|
k,
|
|
580
580
|
{
|
|
581
|
-
className:
|
|
581
|
+
className: O.selectedItemText,
|
|
582
582
|
variant: "p",
|
|
583
583
|
children: g.label
|
|
584
584
|
}
|
|
@@ -590,9 +590,9 @@ const wn = ({
|
|
|
590
590
|
onPointerDownCapture: (C) => C.stopPropagation(),
|
|
591
591
|
"aria-label": "Close",
|
|
592
592
|
children: /* @__PURE__ */ e(
|
|
593
|
-
|
|
593
|
+
Ue,
|
|
594
594
|
{
|
|
595
|
-
className:
|
|
595
|
+
className: O.closeIcon,
|
|
596
596
|
width: 12,
|
|
597
597
|
height: 12,
|
|
598
598
|
viewBox: "0 0 20 20"
|
|
@@ -602,13 +602,13 @@ 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,
|
|
609
609
|
viewBox: "0 0 20 20",
|
|
610
610
|
className: o(
|
|
611
|
-
|
|
611
|
+
O.arrowIcon,
|
|
612
612
|
x && "-rotate-180"
|
|
613
613
|
)
|
|
614
614
|
}
|
|
@@ -616,72 +616,72 @@ 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
|
-
className: o(
|
|
624
|
+
className: o(O.options),
|
|
625
625
|
children: [
|
|
626
626
|
/* @__PURE__ */ e(k, { className: "text-dark-40 font-mono mb-[18px] font-medium", children: t }),
|
|
627
|
-
l && /* @__PURE__ */ p("div", { className:
|
|
627
|
+
l && /* @__PURE__ */ p("div", { className: O.wrapperInput, children: [
|
|
628
628
|
/* @__PURE__ */ e(
|
|
629
629
|
"input",
|
|
630
630
|
{
|
|
631
631
|
ref: y,
|
|
632
|
-
onChange:
|
|
632
|
+
onChange: D,
|
|
633
633
|
value: u,
|
|
634
634
|
autoFocus: !0,
|
|
635
|
-
className:
|
|
635
|
+
className: O.input,
|
|
636
636
|
placeholder: "Тип договора"
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ e(
|
|
640
|
-
|
|
640
|
+
wr,
|
|
641
641
|
{
|
|
642
642
|
width: 20,
|
|
643
643
|
height: 20,
|
|
644
644
|
viewBox: "0 0 21 21",
|
|
645
|
-
className:
|
|
645
|
+
className: O.plusIcon,
|
|
646
646
|
onClick: j
|
|
647
647
|
}
|
|
648
648
|
)
|
|
649
649
|
] }),
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
w.length > 0 ? w.map((g, C, I) => /* @__PURE__ */ e(
|
|
651
|
+
ar,
|
|
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
|
+
O.option,
|
|
659
659
|
I.length - 1 !== C && "mb-2.5"
|
|
660
660
|
),
|
|
661
661
|
label: g.label
|
|
662
662
|
},
|
|
663
663
|
g.id
|
|
664
|
-
)) : /* @__PURE__ */ e("div", { className:
|
|
665
|
-
/* @__PURE__ */ p("div", { className:
|
|
664
|
+
)) : /* @__PURE__ */ e("div", { className: O.noItemsFound, children: "No items found" }),
|
|
665
|
+
/* @__PURE__ */ p("div", { className: O.buttons, children: [
|
|
666
666
|
/* @__PURE__ */ e(
|
|
667
|
-
|
|
667
|
+
M,
|
|
668
668
|
{
|
|
669
669
|
variant: "secondary",
|
|
670
670
|
className: o(
|
|
671
|
-
|
|
672
|
-
|
|
671
|
+
O.button.base,
|
|
672
|
+
O.button.cancel
|
|
673
673
|
),
|
|
674
674
|
onClick: () => s(!1),
|
|
675
675
|
children: "Отмена"
|
|
676
676
|
}
|
|
677
677
|
),
|
|
678
678
|
/* @__PURE__ */ e(
|
|
679
|
-
|
|
679
|
+
M,
|
|
680
680
|
{
|
|
681
681
|
variant: "primary",
|
|
682
682
|
className: o(
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
O.button.base,
|
|
684
|
+
O.button.save
|
|
685
685
|
),
|
|
686
686
|
isShadow: !0,
|
|
687
687
|
onClick: () => s(!1),
|
|
@@ -697,7 +697,7 @@ const wn = ({
|
|
|
697
697
|
)
|
|
698
698
|
] });
|
|
699
699
|
}
|
|
700
|
-
),
|
|
700
|
+
), O = {
|
|
701
701
|
trigger: "w-full bg-gray-50 z-10 rounded-[10px] border border-gray-50 px-3.5 py-3",
|
|
702
702
|
labelWrapper: "flex items-center gap-2 mb-2",
|
|
703
703
|
text: "text-dark-40/50 font-mono text-sm leading-none",
|
|
@@ -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
|
-
},
|
|
730
|
+
}, Tn = 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] = A(r ?? []), [D, j] = A(l ?? []), [w, g] = A(!1), [C, I] = A(!1), T = pn(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, jt = ee.emptyPopover, ur = (ce, ge, Fe) => {
|
|
753
|
+
const fe = (gr = []) => gr.map(
|
|
754
|
+
(at) => at.id === ge.id && ge.label === ge.label ? { ...at, checked: Fe } : at
|
|
755
|
+
), dt = ce === "status" ? fe(m) : m, xr = ce === "module" ? fe(D) : D;
|
|
756
|
+
S(dt), j(xr);
|
|
757
|
+
}, fr = () => {
|
|
758
758
|
c && c({
|
|
759
|
-
status:
|
|
760
|
-
module:
|
|
759
|
+
status: m,
|
|
760
|
+
module: D
|
|
761
761
|
}), I(!1);
|
|
762
|
-
},
|
|
762
|
+
}, br = (ce) => {
|
|
763
763
|
u == null || u(ce), g(!1);
|
|
764
|
-
},
|
|
764
|
+
}, _t = ({ type: ce, title: ge, items: Fe }) => /* @__PURE__ */ p(vr, { children: [
|
|
765
765
|
/* @__PURE__ */ e(k, { className: re.typeFilter, children: ge }),
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
Fe == null ? void 0 : Fe.map((fe) => /* @__PURE__ */ e(
|
|
767
|
+
ar,
|
|
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) => ur(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: I, children: [
|
|
791
|
+
/* @__PURE__ */ e(tt, { asChild: !0, disabled: d, children: n && /* @__PURE__ */ e(
|
|
792
792
|
"button",
|
|
793
793
|
{
|
|
794
794
|
role: "button",
|
|
@@ -797,22 +797,22 @@ const wn = ({
|
|
|
797
797
|
type: "button",
|
|
798
798
|
className: "outline-none",
|
|
799
799
|
children: /* @__PURE__ */ e(
|
|
800
|
-
|
|
800
|
+
Nr,
|
|
801
801
|
{
|
|
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(
|
|
833
|
+
className: o(W.base, W.cancel),
|
|
834
834
|
onClick: () => I(!1),
|
|
835
835
|
children: "Отмена"
|
|
836
836
|
}
|
|
837
837
|
),
|
|
838
838
|
/* @__PURE__ */ e(
|
|
839
|
-
|
|
839
|
+
M,
|
|
840
840
|
{
|
|
841
|
-
onClick:
|
|
842
|
-
className: o(
|
|
841
|
+
onClick: fr,
|
|
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: "Поиск",
|
|
@@ -865,7 +865,7 @@ const wn = ({
|
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
b && /* @__PURE__ */ e(
|
|
868
|
-
|
|
868
|
+
en,
|
|
869
869
|
{
|
|
870
870
|
className: o(
|
|
871
871
|
xe.icon,
|
|
@@ -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: () => br(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: jt.wrapper, children: /* @__PURE__ */ e(k, { className: jt.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",
|
|
@@ -971,7 +971,7 @@ const wn = ({
|
|
|
971
971
|
{
|
|
972
972
|
"data-testid": "root-element",
|
|
973
973
|
className: o(
|
|
974
|
-
|
|
974
|
+
Oe.root,
|
|
975
975
|
d === "left" && "flex-row-reverse",
|
|
976
976
|
n == null ? void 0 : n.root
|
|
977
977
|
),
|
|
@@ -981,46 +981,46 @@ const wn = ({
|
|
|
981
981
|
"div",
|
|
982
982
|
{
|
|
983
983
|
className: o(
|
|
984
|
-
|
|
984
|
+
Oe.textWrapper,
|
|
985
985
|
d === "left" && "items-start",
|
|
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(
|
|
993
|
-
|
|
993
|
+
Oe.fullName,
|
|
994
994
|
a && "text-primary-10",
|
|
995
995
|
n == null ? void 0 : n.fullName
|
|
996
996
|
),
|
|
997
997
|
children: [
|
|
998
998
|
t,
|
|
999
|
-
/* @__PURE__ */ e("span", { className: o(
|
|
999
|
+
/* @__PURE__ */ e("span", { className: o(Oe.subText, n == null ? void 0 : n.subText), children: f })
|
|
1000
1000
|
]
|
|
1001
1001
|
}
|
|
1002
1002
|
),
|
|
1003
|
-
c || !!i && /* @__PURE__ */ e(k, { className: o(
|
|
1003
|
+
c || !!i && /* @__PURE__ */ e(k, { className: o(Oe.jobTitle, n == null ? void 0 : n.jobTitle), children: i })
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
|
-
/* @__PURE__ */ e(
|
|
1007
|
+
/* @__PURE__ */ e(Qt, { ...r, isActive: a, hasBadge: a })
|
|
1008
1008
|
]
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), Oe = {
|
|
1011
1011
|
root: "flex items-center gap-2.5",
|
|
1012
1012
|
textWrapper: "flex flex-col items-end justify-center",
|
|
1013
1013
|
fullName: "text-sm text-dark-40 font-bold flex items-end gap-1",
|
|
1014
1014
|
jobTitle: "text-xs text-dark-40/50 font-medium",
|
|
1015
1015
|
subText: "text-xs text-dark-40/50 font-normal"
|
|
1016
|
-
},
|
|
1017
|
-
/* @__PURE__ */ e(
|
|
1016
|
+
}, Sn = ({ file: t, onClick: i }) => /* @__PURE__ */ p("li", { className: "flex items-center bg-white px-2 py-1.5 border border-dark-30/[.15] rounded-lg w-[112px] justify-between", children: [
|
|
1017
|
+
/* @__PURE__ */ e(yr, { 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:
|
|
1032
|
+
] }), { Root: Dn } = nr, 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),
|
|
1046
|
+
const [x, s] = $.useState(!1), y = $.useRef(null), v = ve.root, m = ve.input, S = ve.icon, D = ve.placeholder, j = ve.list, w = ve.status, g = () => {
|
|
1047
1047
|
var I;
|
|
1048
1048
|
h || (s(!0), (I = y.current) == null || I.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,
|
|
@@ -1063,7 +1063,7 @@ const wn = ({
|
|
|
1063
1063
|
f === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
1064
1064
|
] }),
|
|
1065
1065
|
/* @__PURE__ */ p(
|
|
1066
|
-
|
|
1066
|
+
Dn,
|
|
1067
1067
|
{
|
|
1068
1068
|
ref: b,
|
|
1069
1069
|
onClick: g,
|
|
@@ -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,13 +1090,15 @@ const wn = ({
|
|
|
1090
1090
|
type: "file",
|
|
1091
1091
|
multiple: r,
|
|
1092
1092
|
accept: "application/pdf, .doc, .docx, .xls, .xlsx",
|
|
1093
|
-
onChange:
|
|
1093
|
+
onChange: (I) => {
|
|
1094
|
+
l(I), I.target.value = "";
|
|
1095
|
+
},
|
|
1094
1096
|
className: "hidden",
|
|
1095
1097
|
...u
|
|
1096
1098
|
}
|
|
1097
1099
|
),
|
|
1098
1100
|
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: j, children: i.map((I) => /* @__PURE__ */ e(
|
|
1099
|
-
|
|
1101
|
+
Sn,
|
|
1100
1102
|
{
|
|
1101
1103
|
file: I,
|
|
1102
1104
|
onClick: (T) => {
|
|
@@ -1106,7 +1108,7 @@ const wn = ({
|
|
|
1106
1108
|
I.id
|
|
1107
1109
|
)) }) : /* @__PURE__ */ p($.Fragment, { children: [
|
|
1108
1110
|
/* @__PURE__ */ e(
|
|
1109
|
-
|
|
1111
|
+
kr,
|
|
1110
1112
|
{
|
|
1111
1113
|
"data-testid": "file-upload-icon",
|
|
1112
1114
|
width: 16,
|
|
@@ -1114,7 +1116,7 @@ const wn = ({
|
|
|
1114
1116
|
className: S
|
|
1115
1117
|
}
|
|
1116
1118
|
),
|
|
1117
|
-
/* @__PURE__ */ e("span", { className:
|
|
1119
|
+
/* @__PURE__ */ e("span", { className: D, children: n })
|
|
1118
1120
|
] })
|
|
1119
1121
|
]
|
|
1120
1122
|
}
|
|
@@ -1147,7 +1149,7 @@ const wn = ({
|
|
|
1147
1149
|
}) => {
|
|
1148
1150
|
const c = d === "review";
|
|
1149
1151
|
return /* @__PURE__ */ p("div", { className: o(z.root, n == null ? void 0 : n.root), children: [
|
|
1150
|
-
!(t != null && t.length) && (r ? /* @__PURE__ */ e(
|
|
1152
|
+
!(t != null && t.length) && (r ? /* @__PURE__ */ e(Zt, {}) : /* @__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 || "",
|
|
@@ -1183,7 +1185,8 @@ const wn = ({
|
|
|
1183
1185
|
z.avatar.wrapperBase,
|
|
1184
1186
|
c ? z.avatar.wrapperReview : z.avatar.wrapperComment
|
|
1185
1187
|
),
|
|
1186
|
-
img: z.avatar.img
|
|
1188
|
+
img: z.avatar.img,
|
|
1189
|
+
fallbackIcon: z.avatar.fallbackIcon
|
|
1187
1190
|
}
|
|
1188
1191
|
}
|
|
1189
1192
|
}
|
|
@@ -1198,7 +1201,7 @@ const wn = ({
|
|
|
1198
1201
|
),
|
|
1199
1202
|
children: [
|
|
1200
1203
|
c && /* @__PURE__ */ e(
|
|
1201
|
-
|
|
1204
|
+
pr,
|
|
1202
1205
|
{
|
|
1203
1206
|
rating: y,
|
|
1204
1207
|
classNames: {
|
|
@@ -1214,7 +1217,7 @@ const wn = ({
|
|
|
1214
1217
|
s
|
|
1215
1218
|
] }),
|
|
1216
1219
|
l && /* @__PURE__ */ e(
|
|
1217
|
-
|
|
1220
|
+
kt,
|
|
1218
1221
|
{
|
|
1219
1222
|
icon: Gr,
|
|
1220
1223
|
shape: "circle",
|
|
@@ -1240,10 +1243,11 @@ const wn = ({
|
|
|
1240
1243
|
root: "font-mono flex flex-col gap-3 w-full",
|
|
1241
1244
|
wrapper: "flex gap-3 pt-1 flex-col justify-center",
|
|
1242
1245
|
avatar: {
|
|
1243
|
-
wrapperBase: "bg-
|
|
1246
|
+
wrapperBase: "bg-dark-40/[.10] rounded-full flex items-center justify-center",
|
|
1244
1247
|
wrapperComment: "size-[25.6px]",
|
|
1245
1248
|
wrapperReview: "size-[18px] bg-gray-50",
|
|
1246
|
-
img: "rounded-full object-cover"
|
|
1249
|
+
img: "rounded-full object-cover",
|
|
1250
|
+
fallbackIcon: "fill-dark-30/50"
|
|
1247
1251
|
},
|
|
1248
1252
|
author: {
|
|
1249
1253
|
fullNameBase: "leading-none font-semibold text-dark-40",
|
|
@@ -1274,7 +1278,7 @@ const wn = ({
|
|
|
1274
1278
|
button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
|
|
1275
1279
|
icon: "fill-sidebar-50/50"
|
|
1276
1280
|
}
|
|
1277
|
-
},
|
|
1281
|
+
}, ht = (t) => {
|
|
1278
1282
|
const i = t.getDate().toString().padStart(2, "0"), d = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getFullYear();
|
|
1279
1283
|
return `${i}/${d}/${n}`;
|
|
1280
1284
|
}, Bn = (t) => {
|
|
@@ -1292,7 +1296,7 @@ const wn = ({
|
|
|
1292
1296
|
for (let h = 1; h <= f; h++)
|
|
1293
1297
|
a.push({ date: new Date(i, d + 1, h), isCurrentMonth: !1 });
|
|
1294
1298
|
return a;
|
|
1295
|
-
},
|
|
1299
|
+
}, In = /* @__PURE__ */ new Date(), jn = (t) => t.toDateString() === In.toDateString(), _n = (t) => {
|
|
1296
1300
|
const i = t.getDay();
|
|
1297
1301
|
return i === 0 || i === 6;
|
|
1298
1302
|
}, Wn = (t, i) => i && t.toDateString() === i.toDateString(), Mn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
@@ -1300,7 +1304,7 @@ const wn = ({
|
|
|
1300
1304
|
label: t.toString(),
|
|
1301
1305
|
value: t.toString()
|
|
1302
1306
|
})
|
|
1303
|
-
),
|
|
1307
|
+
), An = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Fn = [
|
|
1304
1308
|
"Январь",
|
|
1305
1309
|
"Февраль",
|
|
1306
1310
|
"Март",
|
|
@@ -1325,12 +1329,12 @@ const wn = ({
|
|
|
1325
1329
|
return new Date(n, d - 1, i);
|
|
1326
1330
|
}
|
|
1327
1331
|
return null;
|
|
1328
|
-
},
|
|
1332
|
+
}, $n = (t, i, d = /* @__PURE__ */ new Date(), n) => {
|
|
1329
1333
|
const r = i ? On(i) : null;
|
|
1330
1334
|
return Bn(d).map((l, c) => {
|
|
1331
1335
|
const { date: a, isCurrentMonth: f } = l, h = a.getDate(), u = r ? a <= r : !1;
|
|
1332
|
-
let b =
|
|
1333
|
-
return u ? b += ` ${
|
|
1336
|
+
let b = B.dayButton;
|
|
1337
|
+
return u ? b += ` ${B.dayDisabled}` : f ? Wn(a, n ? new Date(n) : void 0) ? b += ` ${B.daySelected}` : jn(a) ? b += ` ${B.dayToday}` : _n(a) ? b += ` ${B.dayWeekend}` : b += ` ${B.dayNormal}` : b += ` ${B.dayOutside}`, /* @__PURE__ */ e(
|
|
1334
1338
|
"button",
|
|
1335
1339
|
{
|
|
1336
1340
|
onClick: (x) => {
|
|
@@ -1343,7 +1347,7 @@ const wn = ({
|
|
|
1343
1347
|
c
|
|
1344
1348
|
);
|
|
1345
1349
|
});
|
|
1346
|
-
},
|
|
1350
|
+
}, $o = ({
|
|
1347
1351
|
value: t,
|
|
1348
1352
|
setValue: i,
|
|
1349
1353
|
classNames: d,
|
|
@@ -1352,17 +1356,17 @@ const wn = ({
|
|
|
1352
1356
|
status: l,
|
|
1353
1357
|
disabledDate: c
|
|
1354
1358
|
}) => {
|
|
1355
|
-
const [a, f] =
|
|
1359
|
+
const [a, f] = A(!1), [h, u] = A(
|
|
1356
1360
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1357
|
-
), [b, x] =
|
|
1358
|
-
t ?
|
|
1361
|
+
), [b, x] = A(
|
|
1362
|
+
t ? ht(new Date(t)) : ""
|
|
1359
1363
|
);
|
|
1360
|
-
|
|
1361
|
-
t ? (x(
|
|
1364
|
+
Me(() => {
|
|
1365
|
+
t ? (x(ht(new Date(t))), u(new Date(t))) : x("");
|
|
1362
1366
|
}, [t]);
|
|
1363
|
-
const s = ue(null), y = ue(null),
|
|
1364
|
-
i(g.toISOString()), x(
|
|
1365
|
-
},
|
|
1367
|
+
const s = ue(null), y = ue(null), v = (g) => {
|
|
1368
|
+
i(g.toISOString()), x(ht(g)), f(!1);
|
|
1369
|
+
}, m = (g) => {
|
|
1366
1370
|
let C = g.target.value.replace(/\D/g, "");
|
|
1367
1371
|
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
1372
|
i(void 0);
|
|
@@ -1370,26 +1374,26 @@ const wn = ({
|
|
|
1370
1374
|
}
|
|
1371
1375
|
const I = C.split("/");
|
|
1372
1376
|
if (I.length === 3) {
|
|
1373
|
-
const T = parseInt(I[0]),
|
|
1374
|
-
if (T > 0 && T <= 31 &&
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
+
const T = parseInt(I[0]), _ = parseInt(I[1]) - 1, R = parseInt(I[2]);
|
|
1378
|
+
if (T > 0 && T <= 31 && _ >= 0 && _ <= 11 && R > 1900) {
|
|
1379
|
+
const G = new Date(R, _, T);
|
|
1380
|
+
G.getDate() === T && G.getMonth() === _ && G.getFullYear() === R && (i(G.toISOString()), u(new Date(R, _, 1)));
|
|
1377
1381
|
}
|
|
1378
1382
|
}
|
|
1379
1383
|
}, S = (g) => {
|
|
1380
1384
|
const C = new Date(h);
|
|
1381
1385
|
C.setMonth(h.getMonth() + g), u(C);
|
|
1382
|
-
},
|
|
1386
|
+
}, D = (g) => {
|
|
1383
1387
|
const C = parseInt(g);
|
|
1384
1388
|
u(new Date(h.getFullYear(), C, 1));
|
|
1385
1389
|
}, j = (g) => {
|
|
1386
1390
|
const C = parseInt(g);
|
|
1387
1391
|
u(new Date(C, h.getMonth(), 1));
|
|
1388
|
-
},
|
|
1392
|
+
}, w = (g) => {
|
|
1389
1393
|
g.stopPropagation(), g.preventDefault(), i(void 0), x(""), f(!1);
|
|
1390
1394
|
};
|
|
1391
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1392
|
-
/* @__PURE__ */ p("div", { className:
|
|
1395
|
+
return /* @__PURE__ */ p("div", { className: B.base, children: [
|
|
1396
|
+
/* @__PURE__ */ p("div", { className: B.label.wrapper, children: [
|
|
1393
1397
|
!!r && /* @__PURE__ */ e(P, { disabled: n, children: r }),
|
|
1394
1398
|
l === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
1395
1399
|
] }),
|
|
@@ -1399,13 +1403,13 @@ const wn = ({
|
|
|
1399
1403
|
{
|
|
1400
1404
|
asChild: !0,
|
|
1401
1405
|
className: o(
|
|
1402
|
-
|
|
1403
|
-
!n &&
|
|
1404
|
-
a &&
|
|
1405
|
-
n &&
|
|
1406
|
-
!n && !a &&
|
|
1407
|
-
!n &&
|
|
1408
|
-
!n && l === "danger" &&
|
|
1406
|
+
B.inputWrapper.base,
|
|
1407
|
+
!n && B.inputWrapper.active,
|
|
1408
|
+
a && B.inputWrapper.focus,
|
|
1409
|
+
n && B.inputWrapper.disabled,
|
|
1410
|
+
!n && !a && B.inputWrapper.hover,
|
|
1411
|
+
!n && B.inputWrapper.pressed,
|
|
1412
|
+
!n && l === "danger" && B.status.danger,
|
|
1409
1413
|
d == null ? void 0 : d.inputWrapper
|
|
1410
1414
|
),
|
|
1411
1415
|
children: /* @__PURE__ */ p("div", { className: "flex items-center", children: [
|
|
@@ -1414,15 +1418,15 @@ const wn = ({
|
|
|
1414
1418
|
{
|
|
1415
1419
|
type: "text",
|
|
1416
1420
|
value: b,
|
|
1417
|
-
onChange:
|
|
1421
|
+
onChange: m,
|
|
1418
1422
|
placeholder: "__ / __ / ____",
|
|
1419
1423
|
disabled: n,
|
|
1420
1424
|
className: o(
|
|
1421
|
-
|
|
1422
|
-
!n && a &&
|
|
1423
|
-
!n && !a &&
|
|
1424
|
-
!n &&
|
|
1425
|
-
n &&
|
|
1425
|
+
B.input.base,
|
|
1426
|
+
!n && a && B.input.focus,
|
|
1427
|
+
!n && !a && B.input.hover,
|
|
1428
|
+
!n && B.input.pressed,
|
|
1429
|
+
n && B.input.disabled,
|
|
1426
1430
|
d == null ? void 0 : d.input
|
|
1427
1431
|
),
|
|
1428
1432
|
onClick: () => f(!a)
|
|
@@ -1436,24 +1440,24 @@ const wn = ({
|
|
|
1436
1440
|
},
|
|
1437
1441
|
disabled: n,
|
|
1438
1442
|
className: o(
|
|
1439
|
-
|
|
1440
|
-
!n && a &&
|
|
1441
|
-
!n && !a &&
|
|
1442
|
-
!n &&
|
|
1443
|
-
n &&
|
|
1443
|
+
B.calendarButton.base,
|
|
1444
|
+
!n && a && B.calendarButton.focus,
|
|
1445
|
+
!n && !a && B.calendarButton.hover,
|
|
1446
|
+
!n && B.calendarButton.active,
|
|
1447
|
+
n && B.calendarButton.disabled
|
|
1444
1448
|
),
|
|
1445
1449
|
children: /* @__PURE__ */ e(
|
|
1446
|
-
|
|
1450
|
+
tr,
|
|
1447
1451
|
{
|
|
1448
1452
|
width: 18,
|
|
1449
1453
|
height: 18,
|
|
1450
1454
|
viewBox: "0 0 18 18",
|
|
1451
1455
|
className: o(
|
|
1452
|
-
|
|
1453
|
-
!n && a &&
|
|
1454
|
-
!n && !a &&
|
|
1455
|
-
!n &&
|
|
1456
|
-
n &&
|
|
1456
|
+
B.calendarIcon.base,
|
|
1457
|
+
!n && a && B.calendarIcon.focus,
|
|
1458
|
+
!n && !a && B.calendarIcon.hover,
|
|
1459
|
+
!n && B.calendarIcon.active,
|
|
1460
|
+
n && B.calendarIcon.disabled
|
|
1457
1461
|
)
|
|
1458
1462
|
}
|
|
1459
1463
|
)
|
|
@@ -1468,27 +1472,27 @@ const wn = ({
|
|
|
1468
1472
|
role: "dialog",
|
|
1469
1473
|
ref: s,
|
|
1470
1474
|
container: y.current,
|
|
1471
|
-
className:
|
|
1475
|
+
className: B.popoverWrapper,
|
|
1472
1476
|
children: /* @__PURE__ */ p("div", { children: [
|
|
1473
|
-
/* @__PURE__ */ p("div", { className:
|
|
1477
|
+
/* @__PURE__ */ p("div", { className: B.navigation, children: [
|
|
1474
1478
|
/* @__PURE__ */ e(
|
|
1475
1479
|
"button",
|
|
1476
1480
|
{
|
|
1477
1481
|
onClick: () => S(-1),
|
|
1478
|
-
className:
|
|
1482
|
+
className: B.navButton,
|
|
1479
1483
|
children: /* @__PURE__ */ e(
|
|
1480
|
-
|
|
1484
|
+
Gt,
|
|
1481
1485
|
{
|
|
1482
1486
|
width: 6,
|
|
1483
1487
|
height: 10,
|
|
1484
|
-
className:
|
|
1488
|
+
className: B.navButton
|
|
1485
1489
|
}
|
|
1486
1490
|
)
|
|
1487
1491
|
}
|
|
1488
1492
|
),
|
|
1489
|
-
/* @__PURE__ */ p("div", { className:
|
|
1493
|
+
/* @__PURE__ */ p("div", { className: B.selectContainer, children: [
|
|
1490
1494
|
/* @__PURE__ */ e(
|
|
1491
|
-
|
|
1495
|
+
Ce,
|
|
1492
1496
|
{
|
|
1493
1497
|
options: Fn.map((g, C) => ({
|
|
1494
1498
|
label: g,
|
|
@@ -1499,13 +1503,13 @@ const wn = ({
|
|
|
1499
1503
|
},
|
|
1500
1504
|
disabled: !1,
|
|
1501
1505
|
onChange: (g) => {
|
|
1502
|
-
|
|
1506
|
+
D(g), f(!0);
|
|
1503
1507
|
},
|
|
1504
1508
|
value: String(h.getMonth())
|
|
1505
1509
|
}
|
|
1506
1510
|
),
|
|
1507
1511
|
/* @__PURE__ */ e(
|
|
1508
|
-
|
|
1512
|
+
Ce,
|
|
1509
1513
|
{
|
|
1510
1514
|
options: Mn,
|
|
1511
1515
|
classNames: {
|
|
@@ -1523,27 +1527,27 @@ const wn = ({
|
|
|
1523
1527
|
"button",
|
|
1524
1528
|
{
|
|
1525
1529
|
onClick: () => S(1),
|
|
1526
|
-
className:
|
|
1530
|
+
className: B.navButton,
|
|
1527
1531
|
children: /* @__PURE__ */ e(
|
|
1528
|
-
|
|
1532
|
+
Et,
|
|
1529
1533
|
{
|
|
1530
1534
|
width: 6,
|
|
1531
1535
|
height: 10,
|
|
1532
|
-
className:
|
|
1536
|
+
className: B.navButton
|
|
1533
1537
|
}
|
|
1534
1538
|
)
|
|
1535
1539
|
}
|
|
1536
1540
|
)
|
|
1537
1541
|
] }),
|
|
1538
|
-
/* @__PURE__ */ e("div", { className:
|
|
1539
|
-
/* @__PURE__ */ e("div", { className:
|
|
1540
|
-
/* @__PURE__ */ e("div", { className:
|
|
1542
|
+
/* @__PURE__ */ e("div", { className: B.weekHeader, children: An.map((g) => /* @__PURE__ */ e("div", { className: B.weekDay, children: g }, g)) }),
|
|
1543
|
+
/* @__PURE__ */ e("div", { className: B.calendar, children: $n(v, c, h, t) }),
|
|
1544
|
+
/* @__PURE__ */ e("div", { className: B.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: w, className: B.resetButton, children: "Сбросить" }) })
|
|
1541
1545
|
] })
|
|
1542
1546
|
}
|
|
1543
1547
|
) })
|
|
1544
1548
|
] })
|
|
1545
1549
|
] });
|
|
1546
|
-
},
|
|
1550
|
+
}, B = {
|
|
1547
1551
|
base: "relative flex items-start flex-col gap-1.5",
|
|
1548
1552
|
container: "w-full max-w-[132px] h-9",
|
|
1549
1553
|
inputContainer: "relative",
|
|
@@ -1605,7 +1609,7 @@ const wn = ({
|
|
|
1605
1609
|
line: "border border-gray-40",
|
|
1606
1610
|
saveButtonWrapper: "mt-[22px] flex justify-end p-4 pt-0",
|
|
1607
1611
|
saveButton: "px-[15px] py-3 bg-primary-10 text-sidebar-10 text-sm font-semibold rounded-[10px]"
|
|
1608
|
-
},
|
|
1612
|
+
}, J = "dd/MM/yyyy", Rn = (t, i, d) => !i || !d ? !1 : t > i && t < d, Ro = ({
|
|
1609
1613
|
value: t,
|
|
1610
1614
|
setValue: i,
|
|
1611
1615
|
label: d,
|
|
@@ -1613,40 +1617,40 @@ const wn = ({
|
|
|
1613
1617
|
disabled: r = !1,
|
|
1614
1618
|
classNames: l
|
|
1615
1619
|
}) => {
|
|
1616
|
-
const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s =
|
|
1620
|
+
const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s = dr({
|
|
1617
1621
|
mask: "__/__/____ - __/__/____",
|
|
1618
1622
|
replacement: { _: /\d/ }
|
|
1619
|
-
}), y = $.useRef(null),
|
|
1623
|
+
}), y = $.useRef(null), v = $.useRef(!1);
|
|
1620
1624
|
$.useEffect(() => {
|
|
1621
|
-
if (
|
|
1622
|
-
const
|
|
1623
|
-
u(g ? `${
|
|
1625
|
+
if (v.current || !t || !(t.to && t.from)) return;
|
|
1626
|
+
const w = t.from ? Z(new Date(t.from), J) : "", g = t.to ? Z(new Date(t.to), J) : "";
|
|
1627
|
+
u(g ? `${w} - ${g}` : `${w} - `);
|
|
1624
1628
|
}, [t]);
|
|
1625
|
-
const
|
|
1626
|
-
if (!
|
|
1629
|
+
const m = Ln.base, S = (w) => {
|
|
1630
|
+
if (!w)
|
|
1627
1631
|
u(""), i(void 0);
|
|
1628
|
-
else if (
|
|
1629
|
-
i(
|
|
1630
|
-
else if (
|
|
1631
|
-
if (
|
|
1632
|
-
const g = { from:
|
|
1632
|
+
else if (w.from && !w.to)
|
|
1633
|
+
i(w), f(w.from), u(Z(new Date(w.from), J) + " - ");
|
|
1634
|
+
else if (w.from && w.to)
|
|
1635
|
+
if (w.to < w.from) {
|
|
1636
|
+
const g = { from: w.to, to: w.from };
|
|
1633
1637
|
i(g), u(
|
|
1634
|
-
|
|
1638
|
+
Z(new Date(g.from), J) + " - " + Z(new Date(g.to), J)
|
|
1635
1639
|
);
|
|
1636
1640
|
} else
|
|
1637
|
-
i(
|
|
1638
|
-
|
|
1641
|
+
i(w), u(
|
|
1642
|
+
Z(new Date(w.from), J) + " - " + Z(new Date(w.to), J)
|
|
1639
1643
|
);
|
|
1640
|
-
},
|
|
1641
|
-
|
|
1642
|
-
const { value: g } =
|
|
1644
|
+
}, D = (w) => {
|
|
1645
|
+
v.current = !0;
|
|
1646
|
+
const { value: g } = w.target, [C, I] = g.split("-").map((R) => R.trim());
|
|
1643
1647
|
u(g);
|
|
1644
|
-
const T =
|
|
1645
|
-
|
|
1648
|
+
const T = wt(C, J, /* @__PURE__ */ new Date()), _ = I ? wt(I, J, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1649
|
+
_e(T) && _e(_) ? i({ from: T, to: _ }) : _e(T) && !_e(_) ? i({ from: T, to: void 0 }) : i({ from: void 0, to: void 0 });
|
|
1646
1650
|
}, j = () => {
|
|
1647
1651
|
u(""), i(void 0), f(/* @__PURE__ */ new Date());
|
|
1648
1652
|
};
|
|
1649
|
-
return /* @__PURE__ */ e("div", { className: o(
|
|
1653
|
+
return /* @__PURE__ */ e("div", { className: o(m.wrapper, l == null ? void 0 : l.wrapper), children: /* @__PURE__ */ p(de, { open: b, onOpenChange: x, children: [
|
|
1650
1654
|
/* @__PURE__ */ e(ae, { asChild: !0, role: "trigger", className: l == null ? void 0 : l.trigger, children: /* @__PURE__ */ e(
|
|
1651
1655
|
It,
|
|
1652
1656
|
{
|
|
@@ -1655,17 +1659,17 @@ const wn = ({
|
|
|
1655
1659
|
inputProps: {
|
|
1656
1660
|
id: c,
|
|
1657
1661
|
role: "textbox",
|
|
1658
|
-
onChange:
|
|
1662
|
+
onChange: D,
|
|
1659
1663
|
style: { fontSize: "inherit" },
|
|
1660
1664
|
value: h,
|
|
1661
1665
|
placeholder: "dd/mm/yyyy - dd/mm/yyyy",
|
|
1662
1666
|
status: n,
|
|
1663
1667
|
classNames: {
|
|
1664
|
-
target: o(
|
|
1668
|
+
target: o(m.input, l == null ? void 0 : l.input)
|
|
1665
1669
|
},
|
|
1666
1670
|
disabled: r
|
|
1667
1671
|
},
|
|
1668
|
-
icon:
|
|
1672
|
+
icon: tr,
|
|
1669
1673
|
onIconClick: () => x(!0),
|
|
1670
1674
|
iconProps: {
|
|
1671
1675
|
width: 18,
|
|
@@ -1685,24 +1689,24 @@ const wn = ({
|
|
|
1685
1689
|
side: "bottom",
|
|
1686
1690
|
align: "start",
|
|
1687
1691
|
container: y.current,
|
|
1688
|
-
className: o(
|
|
1692
|
+
className: o(m.content, l == null ? void 0 : l.content),
|
|
1689
1693
|
children: [
|
|
1690
1694
|
/* @__PURE__ */ e(
|
|
1691
|
-
|
|
1695
|
+
gn,
|
|
1692
1696
|
{
|
|
1693
1697
|
month: a,
|
|
1694
|
-
locale:
|
|
1698
|
+
locale: pt,
|
|
1695
1699
|
onMonthChange: f,
|
|
1696
1700
|
mode: "range",
|
|
1697
1701
|
numberOfMonths: 2,
|
|
1698
1702
|
pagedNavigation: !0,
|
|
1699
1703
|
selected: t,
|
|
1700
1704
|
onSelect: S,
|
|
1701
|
-
classNames:
|
|
1705
|
+
classNames: zn,
|
|
1702
1706
|
components: {
|
|
1703
|
-
DayButton: (
|
|
1704
|
-
const g =
|
|
1705
|
-
|
|
1707
|
+
DayButton: (w) => {
|
|
1708
|
+
const g = Rn(
|
|
1709
|
+
w.day.date,
|
|
1706
1710
|
t == null ? void 0 : t.from,
|
|
1707
1711
|
t == null ? void 0 : t.to
|
|
1708
1712
|
);
|
|
@@ -1713,7 +1717,7 @@ const wn = ({
|
|
|
1713
1717
|
S(void 0);
|
|
1714
1718
|
},
|
|
1715
1719
|
onClick: () => {
|
|
1716
|
-
const C = new Date(
|
|
1720
|
+
const C = new Date(w.day.date);
|
|
1717
1721
|
t != null && t.from ? C <= t.from ? S({
|
|
1718
1722
|
from: C,
|
|
1719
1723
|
to: t.from
|
|
@@ -1725,30 +1729,30 @@ const wn = ({
|
|
|
1725
1729
|
to: void 0
|
|
1726
1730
|
});
|
|
1727
1731
|
},
|
|
1728
|
-
className:
|
|
1732
|
+
className: m.selectButton,
|
|
1729
1733
|
children: /* @__PURE__ */ e(
|
|
1730
1734
|
"div",
|
|
1731
1735
|
{
|
|
1732
1736
|
className: o(
|
|
1733
1737
|
"size-6 rounded-full flex items-center justify-center",
|
|
1734
|
-
(t == null ? void 0 : t.from) &&
|
|
1735
|
-
(t == null ? void 0 : t.to) &&
|
|
1738
|
+
(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",
|
|
1739
|
+
(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
1740
|
g && "!bg-primary-40 text-dark-50"
|
|
1737
1741
|
),
|
|
1738
|
-
children: /* @__PURE__ */ e(k, { className: "text-sm font-mono font-medium", children:
|
|
1742
|
+
children: /* @__PURE__ */ e(k, { className: "text-sm font-mono font-medium", children: w.children })
|
|
1739
1743
|
}
|
|
1740
1744
|
)
|
|
1741
1745
|
}
|
|
1742
1746
|
);
|
|
1743
1747
|
},
|
|
1744
|
-
Nav: (
|
|
1748
|
+
Nav: (w) => {
|
|
1745
1749
|
const {
|
|
1746
1750
|
className: g,
|
|
1747
1751
|
onNextClick: C,
|
|
1748
1752
|
onPreviousClick: I,
|
|
1749
1753
|
nextMonth: T,
|
|
1750
|
-
previousMonth:
|
|
1751
|
-
} =
|
|
1754
|
+
previousMonth: _
|
|
1755
|
+
} = w, R = a, G = bn(a, 1);
|
|
1752
1756
|
return /* @__PURE__ */ p(
|
|
1753
1757
|
"div",
|
|
1754
1758
|
{
|
|
@@ -1762,10 +1766,10 @@ const wn = ({
|
|
|
1762
1766
|
"button",
|
|
1763
1767
|
{
|
|
1764
1768
|
onClick: I,
|
|
1765
|
-
disabled: !
|
|
1769
|
+
disabled: !_,
|
|
1766
1770
|
className: "flex items-center justify-center",
|
|
1767
1771
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1768
|
-
|
|
1772
|
+
Gt,
|
|
1769
1773
|
{
|
|
1770
1774
|
width: 14,
|
|
1771
1775
|
height: 14,
|
|
@@ -1775,12 +1779,12 @@ const wn = ({
|
|
|
1775
1779
|
) })
|
|
1776
1780
|
}
|
|
1777
1781
|
),
|
|
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:
|
|
1782
|
+
/* @__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
1783
|
] }),
|
|
1780
1784
|
/* @__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:
|
|
1785
|
+
/* @__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
1786
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1783
|
-
|
|
1787
|
+
Et,
|
|
1784
1788
|
{
|
|
1785
1789
|
width: 14,
|
|
1786
1790
|
height: 14,
|
|
@@ -1797,13 +1801,13 @@ const wn = ({
|
|
|
1797
1801
|
}
|
|
1798
1802
|
),
|
|
1799
1803
|
/* @__PURE__ */ e(
|
|
1800
|
-
|
|
1804
|
+
M,
|
|
1801
1805
|
{
|
|
1802
1806
|
variant: "text",
|
|
1803
1807
|
type: "button",
|
|
1804
1808
|
onClick: j,
|
|
1805
1809
|
classNames: {
|
|
1806
|
-
base:
|
|
1810
|
+
base: m.resetButton
|
|
1807
1811
|
},
|
|
1808
1812
|
children: "Сбросить"
|
|
1809
1813
|
}
|
|
@@ -1812,7 +1816,7 @@ const wn = ({
|
|
|
1812
1816
|
}
|
|
1813
1817
|
) })
|
|
1814
1818
|
] }) });
|
|
1815
|
-
},
|
|
1819
|
+
}, Ln = {
|
|
1816
1820
|
base: {
|
|
1817
1821
|
wrapper: "w-full h-max",
|
|
1818
1822
|
input: "w-60 h-11 !text-base text-dark-30 font-mono font-medium",
|
|
@@ -1820,12 +1824,12 @@ const wn = ({
|
|
|
1820
1824
|
selectButton: "flex items-center justify-center p-1",
|
|
1821
1825
|
resetButton: "justify-start p-0 text-xs text-primary-10 font-mono underline underline-offset-[3px] hover:decoration-primary-10"
|
|
1822
1826
|
}
|
|
1823
|
-
},
|
|
1827
|
+
}, zn = {
|
|
1824
1828
|
months: "[&>.monthContainer:nth-child(2)]:left-0 [&>.monthContainer:nth-child(3)]:right-0 relative",
|
|
1825
1829
|
month: "monthContainer absolute",
|
|
1826
1830
|
weekdays: "size-6",
|
|
1827
1831
|
weekday: "text-sm text-dark-30 font-mono font-semibold"
|
|
1828
|
-
},
|
|
1832
|
+
}, Hn = ({
|
|
1829
1833
|
triggerElement: t,
|
|
1830
1834
|
mainUrl: i,
|
|
1831
1835
|
options: d,
|
|
@@ -1835,12 +1839,12 @@ const wn = ({
|
|
|
1835
1839
|
align: c = "start",
|
|
1836
1840
|
classNames: a
|
|
1837
1841
|
}) => {
|
|
1838
|
-
const [f, h] = $.useState(), [u] =
|
|
1839
|
-
h(
|
|
1840
|
-
}, s =
|
|
1841
|
-
return /* @__PURE__ */ p(
|
|
1842
|
+
const [f, h] = $.useState(), [u] = Ct(), b = Xt(), x = (m) => {
|
|
1843
|
+
h(m), b(`${i}/${m.to}?${u.toString()}`);
|
|
1844
|
+
}, s = At.modal, y = s.item, v = At.text;
|
|
1845
|
+
return /* @__PURE__ */ p(et, { open: n, onOpenChange: r, children: [
|
|
1842
1846
|
/* @__PURE__ */ e(
|
|
1843
|
-
|
|
1847
|
+
tt,
|
|
1844
1848
|
{
|
|
1845
1849
|
asChild: !0,
|
|
1846
1850
|
className: o(s.trigger, a == null ? void 0 : a.trigger),
|
|
@@ -1848,13 +1852,13 @@ const wn = ({
|
|
|
1848
1852
|
}
|
|
1849
1853
|
),
|
|
1850
1854
|
/* @__PURE__ */ e(
|
|
1851
|
-
|
|
1855
|
+
rt,
|
|
1852
1856
|
{
|
|
1853
1857
|
side: l,
|
|
1854
1858
|
align: c,
|
|
1855
1859
|
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) ===
|
|
1860
|
+
children: d == null ? void 0 : d.map((m) => {
|
|
1861
|
+
const S = (f == null ? void 0 : f.id) === m.id;
|
|
1858
1862
|
return /* @__PURE__ */ e(
|
|
1859
1863
|
"div",
|
|
1860
1864
|
{
|
|
@@ -1866,9 +1870,9 @@ const wn = ({
|
|
|
1866
1870
|
children: /* @__PURE__ */ p(
|
|
1867
1871
|
Dt,
|
|
1868
1872
|
{
|
|
1869
|
-
onClick: () => x(
|
|
1873
|
+
onClick: () => x(m),
|
|
1870
1874
|
className: o(
|
|
1871
|
-
|
|
1875
|
+
v.base,
|
|
1872
1876
|
S && "font-bold",
|
|
1873
1877
|
S && (a == null ? void 0 : a.text)
|
|
1874
1878
|
),
|
|
@@ -1877,24 +1881,24 @@ const wn = ({
|
|
|
1877
1881
|
"span",
|
|
1878
1882
|
{
|
|
1879
1883
|
className: o(
|
|
1880
|
-
|
|
1884
|
+
v.dot,
|
|
1881
1885
|
S && "bg-primary-10",
|
|
1882
1886
|
a == null ? void 0 : a.dot
|
|
1883
1887
|
)
|
|
1884
1888
|
}
|
|
1885
1889
|
),
|
|
1886
|
-
/* @__PURE__ */ e("span", { children:
|
|
1890
|
+
/* @__PURE__ */ e("span", { children: m.label })
|
|
1887
1891
|
]
|
|
1888
1892
|
}
|
|
1889
1893
|
)
|
|
1890
1894
|
},
|
|
1891
|
-
|
|
1895
|
+
m.id
|
|
1892
1896
|
);
|
|
1893
1897
|
})
|
|
1894
1898
|
}
|
|
1895
1899
|
)
|
|
1896
1900
|
] });
|
|
1897
|
-
},
|
|
1901
|
+
}, At = {
|
|
1898
1902
|
modal: {
|
|
1899
1903
|
trigger: "focus-visible:outline-none",
|
|
1900
1904
|
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",
|
|
@@ -1906,28 +1910,28 @@ const wn = ({
|
|
|
1906
1910
|
base: "font-medium group text-dark-30 text-sm font-sans leading-none hover:text-primary-20 flex items-center flex-nowrap gap-2.5 hover:cursor-pointer",
|
|
1907
1911
|
dot: "inline-block w-[7px] h-[7px] bg-dark-30/[.15] rounded-full group-hover:bg-primary-20"
|
|
1908
1912
|
}
|
|
1909
|
-
},
|
|
1913
|
+
}, Lo = ({
|
|
1910
1914
|
title: t,
|
|
1911
1915
|
description: i,
|
|
1912
1916
|
files: d = [],
|
|
1913
1917
|
onFilesUpload: n,
|
|
1914
1918
|
onDelete: r,
|
|
1915
1919
|
classNames: l
|
|
1916
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
1917
|
-
t && /* @__PURE__ */ p("div", { className:
|
|
1918
|
-
/* @__PURE__ */ e(
|
|
1919
|
-
/* @__PURE__ */ p(k, { variant: "p", className:
|
|
1920
|
+
}) => /* @__PURE__ */ p("div", { className: o(U.wrapper, l == null ? void 0 : l.wrapper), children: [
|
|
1921
|
+
t && /* @__PURE__ */ p("div", { className: U.header, children: [
|
|
1922
|
+
/* @__PURE__ */ e(Cr, { className: U.headerIcon, role: "img" }),
|
|
1923
|
+
/* @__PURE__ */ p(k, { variant: "p", className: U.headerText, children: [
|
|
1920
1924
|
t,
|
|
1921
1925
|
"(",
|
|
1922
1926
|
d.length,
|
|
1923
1927
|
")"
|
|
1924
1928
|
] })
|
|
1925
1929
|
] }),
|
|
1926
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
1930
|
+
/* @__PURE__ */ p("div", { className: o(U.container, l == null ? void 0 : l.container), children: [
|
|
1927
1931
|
d.length > 0 && d.map((c, a) => /* @__PURE__ */ e("div", { children: c.type.startsWith("image/") && c.publicUrl ? /* @__PURE__ */ p(
|
|
1928
1932
|
"div",
|
|
1929
1933
|
{
|
|
1930
|
-
className: o(
|
|
1934
|
+
className: o(U.imageWrapper, l == null ? void 0 : l.imageWrapper),
|
|
1931
1935
|
children: [
|
|
1932
1936
|
/* @__PURE__ */ p("div", { className: "relative group", children: [
|
|
1933
1937
|
/* @__PURE__ */ e(
|
|
@@ -1935,48 +1939,48 @@ const wn = ({
|
|
|
1935
1939
|
{
|
|
1936
1940
|
src: c.publicUrl,
|
|
1937
1941
|
alt: c.name,
|
|
1938
|
-
className: o(
|
|
1942
|
+
className: o(U.image, l == null ? void 0 : l.image)
|
|
1939
1943
|
}
|
|
1940
1944
|
),
|
|
1941
1945
|
/* @__PURE__ */ e(
|
|
1942
|
-
|
|
1946
|
+
Ue,
|
|
1943
1947
|
{
|
|
1944
1948
|
width: 20,
|
|
1945
1949
|
height: 20,
|
|
1946
|
-
className: o(
|
|
1950
|
+
className: o(U.closeIcon),
|
|
1947
1951
|
onClick: () => r == null ? void 0 : r(c.id)
|
|
1948
1952
|
}
|
|
1949
1953
|
)
|
|
1950
1954
|
] }),
|
|
1951
1955
|
/* @__PURE__ */ e(
|
|
1952
|
-
|
|
1956
|
+
Ge,
|
|
1953
1957
|
{
|
|
1954
1958
|
href: c.publicUrl,
|
|
1955
|
-
classNames: { root:
|
|
1959
|
+
classNames: { root: U.imageText },
|
|
1956
1960
|
isIconVisible: !1,
|
|
1957
1961
|
children: c.name
|
|
1958
1962
|
}
|
|
1959
1963
|
)
|
|
1960
1964
|
]
|
|
1961
1965
|
}
|
|
1962
|
-
) : /* @__PURE__ */ p("div", { className: o(
|
|
1963
|
-
/* @__PURE__ */ e(
|
|
1966
|
+
) : /* @__PURE__ */ p("div", { className: o(U.fileWrapper, l == null ? void 0 : l.file), children: [
|
|
1967
|
+
/* @__PURE__ */ e(Vt, { className: U.fileIcon, role: "img" }),
|
|
1964
1968
|
/* @__PURE__ */ p("div", { children: [
|
|
1965
|
-
/* @__PURE__ */ e(k, { variant: "p", className:
|
|
1966
|
-
/* @__PURE__ */ e(k, { variant: "p", className:
|
|
1969
|
+
/* @__PURE__ */ e(k, { variant: "p", className: U.fileText, children: c.name }),
|
|
1970
|
+
/* @__PURE__ */ e(k, { variant: "p", className: U.fileSize, children: yt(c.size) })
|
|
1967
1971
|
] }),
|
|
1968
1972
|
/* @__PURE__ */ e(
|
|
1969
|
-
|
|
1973
|
+
Ge,
|
|
1970
1974
|
{
|
|
1971
1975
|
href: c.downloadUrl ?? "#",
|
|
1972
1976
|
isIconVisible: !1,
|
|
1973
1977
|
classNames: { root: "p-0" },
|
|
1974
1978
|
target: "_blank",
|
|
1975
1979
|
children: /* @__PURE__ */ e(
|
|
1976
|
-
|
|
1980
|
+
or,
|
|
1977
1981
|
{
|
|
1978
1982
|
"data-testid": "download-icon",
|
|
1979
|
-
className:
|
|
1983
|
+
className: U.icon,
|
|
1980
1984
|
width: 24,
|
|
1981
1985
|
height: 24,
|
|
1982
1986
|
viewBox: "0 0 16 17"
|
|
@@ -1985,11 +1989,11 @@ const wn = ({
|
|
|
1985
1989
|
}
|
|
1986
1990
|
),
|
|
1987
1991
|
/* @__PURE__ */ e(
|
|
1988
|
-
|
|
1992
|
+
Ue,
|
|
1989
1993
|
{
|
|
1990
1994
|
width: 24,
|
|
1991
1995
|
height: 24,
|
|
1992
|
-
className:
|
|
1996
|
+
className: U.icon,
|
|
1993
1997
|
onClick: () => r == null ? void 0 : r(c.id),
|
|
1994
1998
|
viewBox: "0 0 20 20"
|
|
1995
1999
|
}
|
|
@@ -1999,9 +2003,9 @@ const wn = ({
|
|
|
1999
2003
|
"label",
|
|
2000
2004
|
{
|
|
2001
2005
|
htmlFor: "file-upload",
|
|
2002
|
-
className: o(
|
|
2006
|
+
className: o(U.target, l == null ? void 0 : l.target),
|
|
2003
2007
|
children: [
|
|
2004
|
-
/* @__PURE__ */ e(
|
|
2008
|
+
/* @__PURE__ */ e(Tr, { className: U.plusIcon, role: "img" }),
|
|
2005
2009
|
/* @__PURE__ */ e(
|
|
2006
2010
|
"input",
|
|
2007
2011
|
{
|
|
@@ -2009,7 +2013,7 @@ const wn = ({
|
|
|
2009
2013
|
type: "file",
|
|
2010
2014
|
onChange: n,
|
|
2011
2015
|
multiple: !0,
|
|
2012
|
-
className:
|
|
2016
|
+
className: U.input
|
|
2013
2017
|
}
|
|
2014
2018
|
)
|
|
2015
2019
|
]
|
|
@@ -2020,11 +2024,11 @@ const wn = ({
|
|
|
2020
2024
|
k,
|
|
2021
2025
|
{
|
|
2022
2026
|
variant: "p",
|
|
2023
|
-
className: o(
|
|
2027
|
+
className: o(U.description, l == null ? void 0 : l.description),
|
|
2024
2028
|
children: i
|
|
2025
2029
|
}
|
|
2026
2030
|
)
|
|
2027
|
-
] }),
|
|
2031
|
+
] }), U = {
|
|
2028
2032
|
wrapper: "flex flex-col w-full",
|
|
2029
2033
|
header: "flex flex-row gap-1 justify-start items-center",
|
|
2030
2034
|
headerIcon: "w-4 h-4 text-dark-40/[.30]",
|
|
@@ -2043,7 +2047,7 @@ const wn = ({
|
|
|
2043
2047
|
plusIcon: "text-dark-40/[.30]",
|
|
2044
2048
|
input: "hidden",
|
|
2045
2049
|
description: "text-xs text-dark-40/[.80] mt-0.5 font-semibold"
|
|
2046
|
-
},
|
|
2050
|
+
}, zo = ({
|
|
2047
2051
|
classNames: t,
|
|
2048
2052
|
disabled: i,
|
|
2049
2053
|
onChange: d,
|
|
@@ -2053,23 +2057,23 @@ const wn = ({
|
|
|
2053
2057
|
icon: c,
|
|
2054
2058
|
iconSizes: a
|
|
2055
2059
|
}) => {
|
|
2056
|
-
const [f, h] =
|
|
2057
|
-
className:
|
|
2060
|
+
const [f, h] = A(!1), b = rr(n)(l), x = ut.base, s = ut.disabled.trigger, y = ut.disabled.triggerText, v = ({
|
|
2061
|
+
className: m,
|
|
2058
2062
|
text: S = ""
|
|
2059
2063
|
}) => /* @__PURE__ */ e(
|
|
2060
2064
|
k,
|
|
2061
2065
|
{
|
|
2062
2066
|
className: o(
|
|
2063
2067
|
x.placeholder,
|
|
2064
|
-
|
|
2068
|
+
m,
|
|
2065
2069
|
i && y
|
|
2066
2070
|
),
|
|
2067
2071
|
children: S
|
|
2068
2072
|
}
|
|
2069
2073
|
);
|
|
2070
|
-
return /* @__PURE__ */ p(
|
|
2074
|
+
return /* @__PURE__ */ p(et, { open: f, onOpenChange: h, children: [
|
|
2071
2075
|
/* @__PURE__ */ p(
|
|
2072
|
-
|
|
2076
|
+
tt,
|
|
2073
2077
|
{
|
|
2074
2078
|
role: "listbox",
|
|
2075
2079
|
disabled: i,
|
|
@@ -2087,16 +2091,16 @@ const wn = ({
|
|
|
2087
2091
|
viewBox: a == null ? void 0 : a.viewBox,
|
|
2088
2092
|
className: o(x.icon, t == null ? void 0 : t.icon)
|
|
2089
2093
|
}
|
|
2090
|
-
) : /* @__PURE__ */ e(
|
|
2094
|
+
) : /* @__PURE__ */ e(v, { text: "Сортировать:", className: x.label }),
|
|
2091
2095
|
l ? /* @__PURE__ */ e(
|
|
2092
|
-
|
|
2096
|
+
v,
|
|
2093
2097
|
{
|
|
2094
2098
|
"data-testid": "dropdown-selected-option",
|
|
2095
2099
|
text: b == null ? void 0 : b.label,
|
|
2096
2100
|
className: o(x.selected, t == null ? void 0 : t.selected)
|
|
2097
2101
|
}
|
|
2098
2102
|
) : /* @__PURE__ */ e(
|
|
2099
|
-
|
|
2103
|
+
v,
|
|
2100
2104
|
{
|
|
2101
2105
|
text: r,
|
|
2102
2106
|
className: o(x.placeholder, t == null ? void 0 : t.placeholder)
|
|
@@ -2109,43 +2113,43 @@ const wn = ({
|
|
|
2109
2113
|
x.dropdownIcon,
|
|
2110
2114
|
f && "rotate-180 transition-transform"
|
|
2111
2115
|
),
|
|
2112
|
-
children: /* @__PURE__ */ e(
|
|
2116
|
+
children: /* @__PURE__ */ e(Sr, { className: "fill-dark-30" })
|
|
2113
2117
|
}
|
|
2114
2118
|
)
|
|
2115
2119
|
]
|
|
2116
2120
|
}
|
|
2117
2121
|
),
|
|
2118
2122
|
/* @__PURE__ */ e(
|
|
2119
|
-
|
|
2123
|
+
rt,
|
|
2120
2124
|
{
|
|
2121
2125
|
className: o(x.content, t == null ? void 0 : t.content),
|
|
2122
2126
|
align: "end",
|
|
2123
2127
|
sideOffset: 1,
|
|
2124
|
-
children: n && (n == null ? void 0 : n.map((
|
|
2128
|
+
children: n && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ e(
|
|
2125
2129
|
Dt,
|
|
2126
2130
|
{
|
|
2127
2131
|
className: x.items,
|
|
2128
2132
|
onClick: (S) => {
|
|
2129
|
-
S.stopPropagation(), d(
|
|
2133
|
+
S.stopPropagation(), d(m.value), h(!1);
|
|
2130
2134
|
},
|
|
2131
2135
|
children: /* @__PURE__ */ e(
|
|
2132
2136
|
k,
|
|
2133
2137
|
{
|
|
2134
2138
|
className: o(
|
|
2135
2139
|
x.item,
|
|
2136
|
-
l ===
|
|
2137
|
-
l ===
|
|
2140
|
+
l === m.value && "before:bg-dark-10",
|
|
2141
|
+
l === m.value ? "font-semibold" : "font-regular"
|
|
2138
2142
|
),
|
|
2139
|
-
children:
|
|
2143
|
+
children: m.label
|
|
2140
2144
|
}
|
|
2141
2145
|
)
|
|
2142
2146
|
},
|
|
2143
|
-
|
|
2147
|
+
m.value
|
|
2144
2148
|
)))
|
|
2145
2149
|
}
|
|
2146
2150
|
)
|
|
2147
2151
|
] });
|
|
2148
|
-
},
|
|
2152
|
+
}, ut = {
|
|
2149
2153
|
base: {
|
|
2150
2154
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2151
2155
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2163,7 +2167,7 @@ const wn = ({
|
|
|
2163
2167
|
},
|
|
2164
2168
|
focus: "focus-visible:ring-8 focus-visible:bg-primary-10 focus-visible:bg-primary-10 focus-visible:ring-primary-30 focus-visible:border-primary-10",
|
|
2165
2169
|
hover: "hover:bg-primary-20 hover:border-primary-20"
|
|
2166
|
-
},
|
|
2170
|
+
}, Un = ({
|
|
2167
2171
|
photo: t,
|
|
2168
2172
|
fullname: i,
|
|
2169
2173
|
status: d,
|
|
@@ -2176,14 +2180,14 @@ const wn = ({
|
|
|
2176
2180
|
"div",
|
|
2177
2181
|
{
|
|
2178
2182
|
className: o(
|
|
2179
|
-
|
|
2183
|
+
Se.wrapper,
|
|
2180
2184
|
a && "bg-primary-10/[.10]",
|
|
2181
2185
|
n == null ? void 0 : n.wrapper
|
|
2182
2186
|
),
|
|
2183
2187
|
onClick: c,
|
|
2184
2188
|
children: [
|
|
2185
2189
|
/* @__PURE__ */ e(
|
|
2186
|
-
|
|
2190
|
+
Bt,
|
|
2187
2191
|
{
|
|
2188
2192
|
fullName: i,
|
|
2189
2193
|
jobTitle: d,
|
|
@@ -2195,17 +2199,17 @@ const wn = ({
|
|
|
2195
2199
|
}
|
|
2196
2200
|
},
|
|
2197
2201
|
classNames: {
|
|
2198
|
-
fullName:
|
|
2199
|
-
jobTitle:
|
|
2202
|
+
fullName: Se.fullName,
|
|
2203
|
+
jobTitle: Se.jobTitle
|
|
2200
2204
|
}
|
|
2201
2205
|
}
|
|
2202
2206
|
),
|
|
2203
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2204
|
-
/* @__PURE__ */ e("time", { className: o(
|
|
2207
|
+
/* @__PURE__ */ p("div", { className: o(Se.timeWrapper, n == null ? void 0 : n.timeWrapper), children: [
|
|
2208
|
+
/* @__PURE__ */ e("time", { className: o(Se.time, n == null ? void 0 : n.time), children: l }),
|
|
2205
2209
|
!!r && /* @__PURE__ */ e(
|
|
2206
2210
|
k,
|
|
2207
2211
|
{
|
|
2208
|
-
className: o(
|
|
2212
|
+
className: o(Se.notification, n == null ? void 0 : n.notification),
|
|
2209
2213
|
"data-testid": "notification",
|
|
2210
2214
|
children: r
|
|
2211
2215
|
}
|
|
@@ -2213,7 +2217,7 @@ const wn = ({
|
|
|
2213
2217
|
] })
|
|
2214
2218
|
]
|
|
2215
2219
|
}
|
|
2216
|
-
),
|
|
2220
|
+
), Se = {
|
|
2217
2221
|
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
2222
|
labelWrapper: "flex flex-col",
|
|
2219
2223
|
timeWrapper: "ml-auto self-start",
|
|
@@ -2221,7 +2225,7 @@ const wn = ({
|
|
|
2221
2225
|
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
2226
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2223
2227
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2224
|
-
},
|
|
2228
|
+
}, Ho = K(
|
|
2225
2229
|
({ classNames: t, disabled: i, item: { icon: d, label: n = "" }, ...r }, l) => /* @__PURE__ */ p(
|
|
2226
2230
|
"button",
|
|
2227
2231
|
{
|
|
@@ -2287,13 +2291,13 @@ const wn = ({
|
|
|
2287
2291
|
hover: {
|
|
2288
2292
|
container: "hover:border-primary-20/[.30]"
|
|
2289
2293
|
}
|
|
2290
|
-
},
|
|
2291
|
-
const c =
|
|
2292
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2294
|
+
}, Uo = $.forwardRef(({ textareaProps: t, disabled: i, classNames: d, iconSizes: n, onIconClick: r }, l) => {
|
|
2295
|
+
const c = Ze.base, a = Ze.button, f = (t == null ? void 0 : t.status) === "danger";
|
|
2296
|
+
return /* @__PURE__ */ p("div", { className: o(Ze.parent, d == null ? void 0 : d.parent), children: [
|
|
2293
2297
|
f && /* @__PURE__ */ e(be, { className: "fill-danger-10 mb-[5px]" }),
|
|
2294
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2298
|
+
/* @__PURE__ */ p("div", { className: o(Ze.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2295
2299
|
/* @__PURE__ */ e(
|
|
2296
|
-
|
|
2300
|
+
qt,
|
|
2297
2301
|
{
|
|
2298
2302
|
...t,
|
|
2299
2303
|
"aria-label": "Комментарий",
|
|
@@ -2312,7 +2316,7 @@ const wn = ({
|
|
|
2312
2316
|
d == null ? void 0 : d.button
|
|
2313
2317
|
),
|
|
2314
2318
|
children: /* @__PURE__ */ e(
|
|
2315
|
-
|
|
2319
|
+
Dr,
|
|
2316
2320
|
{
|
|
2317
2321
|
width: n == null ? void 0 : n.width,
|
|
2318
2322
|
height: n == null ? void 0 : n.height,
|
|
@@ -2324,7 +2328,7 @@ const wn = ({
|
|
|
2324
2328
|
)
|
|
2325
2329
|
] })
|
|
2326
2330
|
] });
|
|
2327
|
-
}),
|
|
2331
|
+
}), Ze = {
|
|
2328
2332
|
parent: "flex flex-col",
|
|
2329
2333
|
wrapper: "relative flex items-center w-full",
|
|
2330
2334
|
base: "overflow-hidden resize-none pe-12 min-h-14 w-full",
|
|
@@ -2345,10 +2349,10 @@ const wn = ({
|
|
|
2345
2349
|
hover: "group-hover:text-primary-20",
|
|
2346
2350
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2347
2351
|
}
|
|
2348
|
-
},
|
|
2352
|
+
}, lr = K(
|
|
2349
2353
|
({ 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
2354
|
/* @__PURE__ */ e(
|
|
2351
|
-
|
|
2355
|
+
Kt,
|
|
2352
2356
|
{
|
|
2353
2357
|
className: o(
|
|
2354
2358
|
!d && me.radio.base,
|
|
@@ -2376,7 +2380,7 @@ const wn = ({
|
|
|
2376
2380
|
)
|
|
2377
2381
|
] })
|
|
2378
2382
|
);
|
|
2379
|
-
|
|
2383
|
+
lr.displayName = "RadioGroup";
|
|
2380
2384
|
const Yn = ({
|
|
2381
2385
|
openDropdown: t,
|
|
2382
2386
|
setOpenDropdown: i,
|
|
@@ -2384,14 +2388,14 @@ const Yn = ({
|
|
|
2384
2388
|
item: { id: n, label: r, icon: l, to: c, subItems: a },
|
|
2385
2389
|
onSubNavClick: f
|
|
2386
2390
|
}) => {
|
|
2387
|
-
const [h] =
|
|
2388
|
-
return /* @__PURE__ */ e(
|
|
2391
|
+
const [h] = Ct();
|
|
2392
|
+
return /* @__PURE__ */ e(Zr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Qr, { value: String(n), children: [
|
|
2389
2393
|
/* @__PURE__ */ p(
|
|
2390
2394
|
qr,
|
|
2391
2395
|
{
|
|
2392
2396
|
className: o(
|
|
2393
2397
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px]",
|
|
2394
|
-
!d && "w-[51px]",
|
|
2398
|
+
!d && "w-[51px] p-0",
|
|
2395
2399
|
!d && t && "bg-sidebar-40"
|
|
2396
2400
|
),
|
|
2397
2401
|
icon: {
|
|
@@ -2402,14 +2406,22 @@ const Yn = ({
|
|
|
2402
2406
|
},
|
|
2403
2407
|
children: [
|
|
2404
2408
|
!!l && (d ? /* @__PURE__ */ e(l, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
|
|
2405
|
-
|
|
2409
|
+
Hn,
|
|
2406
2410
|
{
|
|
2407
2411
|
triggerElement: /* @__PURE__ */ e(
|
|
2408
|
-
|
|
2412
|
+
"div",
|
|
2409
2413
|
{
|
|
2410
2414
|
className: o(
|
|
2411
|
-
"
|
|
2412
|
-
|
|
2415
|
+
!d && "p-4 flex items-center justify-center"
|
|
2416
|
+
),
|
|
2417
|
+
children: /* @__PURE__ */ e(
|
|
2418
|
+
l,
|
|
2419
|
+
{
|
|
2420
|
+
className: o(
|
|
2421
|
+
"fill-sidebar-10 shrink-0",
|
|
2422
|
+
t && "fill-primary-10"
|
|
2423
|
+
)
|
|
2424
|
+
}
|
|
2413
2425
|
)
|
|
2414
2426
|
}
|
|
2415
2427
|
),
|
|
@@ -2435,8 +2447,8 @@ const Yn = ({
|
|
|
2435
2447
|
]
|
|
2436
2448
|
}
|
|
2437
2449
|
),
|
|
2438
|
-
d && /* @__PURE__ */ e(
|
|
2439
|
-
|
|
2450
|
+
d && /* @__PURE__ */ e(Kr, { className: "flex flex-col items-start", children: a == null ? void 0 : a.map((u) => /* @__PURE__ */ e(
|
|
2451
|
+
Tt,
|
|
2440
2452
|
{
|
|
2441
2453
|
to: `${c}/${u == null ? void 0 : u.to}?${h.toString()}`,
|
|
2442
2454
|
onClick: f,
|
|
@@ -2458,7 +2470,7 @@ const Yn = ({
|
|
|
2458
2470
|
null
|
|
2459
2471
|
);
|
|
2460
2472
|
$.useEffect(() => r(null), [l]);
|
|
2461
|
-
const a =
|
|
2473
|
+
const a = Qe.root, f = Qe.header, h = Qe.body, u = Qe.logo;
|
|
2462
2474
|
return /* @__PURE__ */ p(
|
|
2463
2475
|
"aside",
|
|
2464
2476
|
{
|
|
@@ -2471,16 +2483,16 @@ const Yn = ({
|
|
|
2471
2483
|
{
|
|
2472
2484
|
className: o(f.base, t && f.expanded),
|
|
2473
2485
|
children: [
|
|
2474
|
-
/* @__PURE__ */ e(
|
|
2486
|
+
/* @__PURE__ */ e(Tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Lr, {}) : /* @__PURE__ */ e(hn, {}) }),
|
|
2475
2487
|
/* @__PURE__ */ e(
|
|
2476
|
-
|
|
2488
|
+
M,
|
|
2477
2489
|
{
|
|
2478
2490
|
type: "button",
|
|
2479
2491
|
variant: "text",
|
|
2480
2492
|
classNames: { base: "p-0" },
|
|
2481
2493
|
onClick: d,
|
|
2482
2494
|
children: /* @__PURE__ */ e(
|
|
2483
|
-
|
|
2495
|
+
un,
|
|
2484
2496
|
{
|
|
2485
2497
|
className: o(
|
|
2486
2498
|
u,
|
|
@@ -2509,7 +2521,7 @@ const Yn = ({
|
|
|
2509
2521
|
onSubNavClick: () => r(null)
|
|
2510
2522
|
}
|
|
2511
2523
|
) : /* @__PURE__ */ e(
|
|
2512
|
-
|
|
2524
|
+
Kn,
|
|
2513
2525
|
{
|
|
2514
2526
|
item: b,
|
|
2515
2527
|
badge: b.badge,
|
|
@@ -2522,7 +2534,7 @@ const Yn = ({
|
|
|
2522
2534
|
]
|
|
2523
2535
|
}
|
|
2524
2536
|
);
|
|
2525
|
-
},
|
|
2537
|
+
}, Qe = {
|
|
2526
2538
|
root: {
|
|
2527
2539
|
base: "w-16 min-h-screen bg-sidebar-50 transition-all duration-500 ease-in-out",
|
|
2528
2540
|
expanded: "w-[257px] overflow-x-hidden"
|
|
@@ -2543,7 +2555,7 @@ const Yn = ({
|
|
|
2543
2555
|
classNames: n,
|
|
2544
2556
|
isError: r = !1
|
|
2545
2557
|
}) => {
|
|
2546
|
-
const [l, c] =
|
|
2558
|
+
const [l, c] = A(!1), a = ue(null), f = (h) => {
|
|
2547
2559
|
d(h), c(!1);
|
|
2548
2560
|
};
|
|
2549
2561
|
return /* @__PURE__ */ e(
|
|
@@ -2554,10 +2566,10 @@ const Yn = ({
|
|
|
2554
2566
|
"data-testid": "switcher-language",
|
|
2555
2567
|
children: /* @__PURE__ */ p(de, { open: l, onOpenChange: c, children: [
|
|
2556
2568
|
/* @__PURE__ */ e(ae, { className: "focus-visible:outline-none", asChild: !0, children: /* @__PURE__ */ e(
|
|
2557
|
-
|
|
2569
|
+
M,
|
|
2558
2570
|
{
|
|
2559
2571
|
variant: "text",
|
|
2560
|
-
icon:
|
|
2572
|
+
icon: Ne,
|
|
2561
2573
|
iconPosition: "right",
|
|
2562
2574
|
onClick: () => c(!l),
|
|
2563
2575
|
"data-testid": "language-button",
|
|
@@ -2573,7 +2585,7 @@ const Yn = ({
|
|
|
2573
2585
|
children: i.label
|
|
2574
2586
|
}
|
|
2575
2587
|
) }),
|
|
2576
|
-
r && /* @__PURE__ */ e(k, { className:
|
|
2588
|
+
r && /* @__PURE__ */ e(k, { className: ft.error, children: "Введите все языки" }),
|
|
2577
2589
|
/* @__PURE__ */ e(
|
|
2578
2590
|
le,
|
|
2579
2591
|
{
|
|
@@ -2581,11 +2593,11 @@ const Yn = ({
|
|
|
2581
2593
|
align: "center",
|
|
2582
2594
|
sideOffset: 4,
|
|
2583
2595
|
side: "bottom",
|
|
2584
|
-
className: o(
|
|
2585
|
-
children: /* @__PURE__ */ e("div", { className: o(
|
|
2596
|
+
className: o(ft.root, n == null ? void 0 : n.content),
|
|
2597
|
+
children: /* @__PURE__ */ e("div", { className: o(ft.optionsWrapper), children: t.map((h) => {
|
|
2586
2598
|
const u = `radio-${h.value}`;
|
|
2587
2599
|
return /* @__PURE__ */ e(
|
|
2588
|
-
|
|
2600
|
+
lr,
|
|
2589
2601
|
{
|
|
2590
2602
|
id: u,
|
|
2591
2603
|
checked: h.value === (i == null ? void 0 : i.value),
|
|
@@ -2600,7 +2612,7 @@ const Yn = ({
|
|
|
2600
2612
|
] })
|
|
2601
2613
|
}
|
|
2602
2614
|
);
|
|
2603
|
-
},
|
|
2615
|
+
}, ft = {
|
|
2604
2616
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2605
2617
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2606
2618
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
@@ -2622,7 +2634,7 @@ const Yn = ({
|
|
|
2622
2634
|
value: "100"
|
|
2623
2635
|
}
|
|
2624
2636
|
];
|
|
2625
|
-
function
|
|
2637
|
+
function En(t, i) {
|
|
2626
2638
|
if (i <= 10)
|
|
2627
2639
|
return Array.from({ length: i }, (l, c) => c + 1);
|
|
2628
2640
|
const d = [], n = Math.max(t - 2, 1), r = Math.min(t + 2, i);
|
|
@@ -2631,7 +2643,7 @@ function Un(t, i) {
|
|
|
2631
2643
|
l !== 1 && l !== i && d.push(l);
|
|
2632
2644
|
return r < i - 1 && d.push("..."), i > 1 && d.push(i), d;
|
|
2633
2645
|
}
|
|
2634
|
-
const
|
|
2646
|
+
const Eo = ({
|
|
2635
2647
|
currentPageIndex: t,
|
|
2636
2648
|
onPageChange: i,
|
|
2637
2649
|
totalPages: d,
|
|
@@ -2640,11 +2652,11 @@ const Uo = ({
|
|
|
2640
2652
|
totalItems: l = 10,
|
|
2641
2653
|
className: c
|
|
2642
2654
|
}) => {
|
|
2643
|
-
const a = t === 1, f = t === d, h = (t - 1) * Number(n) + 1, u = Math.min(t * Number(n), l), b =
|
|
2644
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2645
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2646
|
-
/* @__PURE__ */ e("p", { className: o(
|
|
2647
|
-
/* @__PURE__ */ p("span", { className: o(
|
|
2655
|
+
const a = t === 1, f = t === d, h = (t - 1) * Number(n) + 1, u = Math.min(t * Number(n), l), b = En(t, d);
|
|
2656
|
+
return /* @__PURE__ */ p("div", { className: o(F.wrapper, c), children: [
|
|
2657
|
+
/* @__PURE__ */ p("div", { className: o(F.countWrapper.base), children: [
|
|
2658
|
+
/* @__PURE__ */ e("p", { className: o(F.countWrapper.text), children: "Отображено: " }),
|
|
2659
|
+
/* @__PURE__ */ p("span", { className: o(F.countWrapper.current), children: [
|
|
2648
2660
|
h,
|
|
2649
2661
|
" - ",
|
|
2650
2662
|
u,
|
|
@@ -2652,47 +2664,47 @@ const Uo = ({
|
|
|
2652
2664
|
l
|
|
2653
2665
|
] })
|
|
2654
2666
|
] }),
|
|
2655
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2667
|
+
/* @__PURE__ */ p("div", { className: o(F.nav.base), children: [
|
|
2656
2668
|
/* @__PURE__ */ e(
|
|
2657
|
-
|
|
2669
|
+
M,
|
|
2658
2670
|
{
|
|
2659
2671
|
disabled: a,
|
|
2660
2672
|
"aria-label": "Previous Page",
|
|
2661
2673
|
onClick: () => i == null ? void 0 : i(t - 1),
|
|
2662
2674
|
classNames: {
|
|
2663
2675
|
base: o(
|
|
2664
|
-
|
|
2665
|
-
!a &&
|
|
2666
|
-
|
|
2667
|
-
a &&
|
|
2676
|
+
F.arrowButton.base,
|
|
2677
|
+
!a && F.arrowButton.hover,
|
|
2678
|
+
F.arrowButton.pressed,
|
|
2679
|
+
a && F.arrowButton.disabled
|
|
2668
2680
|
)
|
|
2669
2681
|
},
|
|
2670
2682
|
children: /* @__PURE__ */ e(
|
|
2671
|
-
|
|
2683
|
+
zr,
|
|
2672
2684
|
{
|
|
2673
2685
|
width: 28,
|
|
2674
2686
|
height: 28,
|
|
2675
2687
|
className: o(
|
|
2676
|
-
|
|
2677
|
-
a &&
|
|
2688
|
+
F.arrowButton.icon,
|
|
2689
|
+
a && F.arrowButton.iconDisabled
|
|
2678
2690
|
)
|
|
2679
2691
|
}
|
|
2680
2692
|
)
|
|
2681
2693
|
}
|
|
2682
2694
|
),
|
|
2683
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
2684
|
-
(x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: o(
|
|
2685
|
-
|
|
2695
|
+
/* @__PURE__ */ e("div", { className: o(F.nav.pageBtnWrapper), children: b.map(
|
|
2696
|
+
(x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: o(F.pageButton.base), children: "..." }, `dots-${s}`) : /* @__PURE__ */ e(
|
|
2697
|
+
M,
|
|
2686
2698
|
{
|
|
2687
2699
|
onClick: () => i == null ? void 0 : i(x),
|
|
2688
2700
|
"aria-current": x === t ? "page" : void 0,
|
|
2689
2701
|
classNames: {
|
|
2690
2702
|
base: o(
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
x === t &&
|
|
2703
|
+
F.pageButton.base,
|
|
2704
|
+
F.pageButton.hover,
|
|
2705
|
+
F.pageButton.focus,
|
|
2706
|
+
F.pageButton.pressed,
|
|
2707
|
+
x === t && F.pageButton.active
|
|
2696
2708
|
)
|
|
2697
2709
|
},
|
|
2698
2710
|
children: x
|
|
@@ -2701,35 +2713,35 @@ const Uo = ({
|
|
|
2701
2713
|
)
|
|
2702
2714
|
) }),
|
|
2703
2715
|
/* @__PURE__ */ e(
|
|
2704
|
-
|
|
2716
|
+
M,
|
|
2705
2717
|
{
|
|
2706
2718
|
disabled: f,
|
|
2707
2719
|
"aria-label": "Next Page",
|
|
2708
2720
|
onClick: () => i == null ? void 0 : i(t + 1),
|
|
2709
2721
|
classNames: {
|
|
2710
2722
|
base: o(
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
f &&
|
|
2723
|
+
F.arrowButton.base,
|
|
2724
|
+
F.arrowButton.hover,
|
|
2725
|
+
F.arrowButton.focus,
|
|
2726
|
+
F.arrowButton.pressed,
|
|
2727
|
+
f && F.arrowButton.disabled
|
|
2716
2728
|
)
|
|
2717
2729
|
},
|
|
2718
2730
|
children: /* @__PURE__ */ e(
|
|
2719
|
-
|
|
2731
|
+
tn,
|
|
2720
2732
|
{
|
|
2721
2733
|
width: 28,
|
|
2722
2734
|
height: 28,
|
|
2723
2735
|
className: o(
|
|
2724
|
-
|
|
2725
|
-
f &&
|
|
2736
|
+
F.arrowButton.icon,
|
|
2737
|
+
f && F.arrowButton.iconDisabled
|
|
2726
2738
|
)
|
|
2727
2739
|
}
|
|
2728
2740
|
)
|
|
2729
2741
|
}
|
|
2730
2742
|
),
|
|
2731
2743
|
/* @__PURE__ */ e(
|
|
2732
|
-
|
|
2744
|
+
Ce,
|
|
2733
2745
|
{
|
|
2734
2746
|
options: Gn,
|
|
2735
2747
|
onChange: r,
|
|
@@ -2743,7 +2755,7 @@ const Uo = ({
|
|
|
2743
2755
|
)
|
|
2744
2756
|
] })
|
|
2745
2757
|
] });
|
|
2746
|
-
},
|
|
2758
|
+
}, F = {
|
|
2747
2759
|
wrapper: "flex items-center w-full py-5",
|
|
2748
2760
|
nav: {
|
|
2749
2761
|
base: "flex items-center gap-4 grow justify-center h-7",
|
|
@@ -2770,37 +2782,47 @@ const Uo = ({
|
|
|
2770
2782
|
text: "text-dark-40/[.50] font-mono text-sm leading-none font-medium",
|
|
2771
2783
|
current: "text-dark-30 font-mono text-sm leading-none font-medium"
|
|
2772
2784
|
}
|
|
2773
|
-
},
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2785
|
+
}, Ft = {
|
|
2786
|
+
UZ: {
|
|
2787
|
+
mask: "+___ (__) ___ __ __",
|
|
2788
|
+
replacement: { _: /\d/ }
|
|
2789
|
+
},
|
|
2790
|
+
DEFAULT: {
|
|
2791
|
+
mask: "+_______________",
|
|
2792
|
+
replacement: { _: /\d/ }
|
|
2793
|
+
}
|
|
2794
|
+
}, Vo = ({
|
|
2777
2795
|
value: t = "",
|
|
2778
2796
|
id: i,
|
|
2779
2797
|
label: d,
|
|
2780
2798
|
disabled: n,
|
|
2781
2799
|
autoFocus: r = !1,
|
|
2782
2800
|
status: l,
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2801
|
+
countryCode: c = "DEFAULT",
|
|
2802
|
+
onChange: a,
|
|
2803
|
+
classNames: f,
|
|
2804
|
+
...h
|
|
2786
2805
|
}) => {
|
|
2787
|
-
const
|
|
2788
|
-
() =>
|
|
2806
|
+
const u = Yt(
|
|
2807
|
+
() => Ft[c] || Ft.DEFAULT,
|
|
2808
|
+
[c]
|
|
2809
|
+
), b = dr(u), [x, s] = A(
|
|
2810
|
+
() => ct(String(t), u)
|
|
2789
2811
|
);
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}, [t]);
|
|
2793
|
-
const
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2796
|
-
},
|
|
2797
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2798
|
-
/* @__PURE__ */ p("div", { className:
|
|
2812
|
+
Me(() => {
|
|
2813
|
+
s(ct(String(t), u));
|
|
2814
|
+
}, [t, u]);
|
|
2815
|
+
const y = (g) => {
|
|
2816
|
+
const C = g.target.value.replace(/\D/g, ""), I = ct(C, u);
|
|
2817
|
+
s(I), a == null || a(C);
|
|
2818
|
+
}, v = we.parent, m = we.base, S = we.hover, D = we.focus, j = we.disabled, w = l && we.variants[l];
|
|
2819
|
+
return /* @__PURE__ */ p("div", { className: o(v, f == null ? void 0 : f.parent), children: [
|
|
2820
|
+
/* @__PURE__ */ p("div", { className: we.title, children: [
|
|
2799
2821
|
!!d && /* @__PURE__ */ e(
|
|
2800
2822
|
P,
|
|
2801
2823
|
{
|
|
2802
2824
|
htmlFor: i,
|
|
2803
|
-
className: o(
|
|
2825
|
+
className: o(f == null ? void 0 : f.label),
|
|
2804
2826
|
disabled: n,
|
|
2805
2827
|
children: d
|
|
2806
2828
|
}
|
|
@@ -2810,36 +2832,37 @@ const Uo = ({
|
|
|
2810
2832
|
/* @__PURE__ */ e(
|
|
2811
2833
|
"input",
|
|
2812
2834
|
{
|
|
2813
|
-
ref:
|
|
2835
|
+
ref: b,
|
|
2814
2836
|
id: i,
|
|
2815
|
-
onChange:
|
|
2816
|
-
value:
|
|
2817
|
-
placeholder: "+998 (
|
|
2837
|
+
onChange: y,
|
|
2838
|
+
value: x,
|
|
2839
|
+
placeholder: c === "UZ" ? "+998 (__) ___ __ __" : "Введите телефон номер",
|
|
2818
2840
|
disabled: n,
|
|
2819
2841
|
autoFocus: r,
|
|
2820
2842
|
className: o(
|
|
2821
|
-
|
|
2822
|
-
!n &&
|
|
2823
|
-
!n &&
|
|
2824
|
-
!n && r &&
|
|
2825
|
-
n &&
|
|
2826
|
-
l === "danger" &&
|
|
2827
|
-
|
|
2843
|
+
m,
|
|
2844
|
+
!n && S,
|
|
2845
|
+
!n && D,
|
|
2846
|
+
!n && r && D,
|
|
2847
|
+
n && j,
|
|
2848
|
+
l === "danger" && w,
|
|
2849
|
+
f == null ? void 0 : f.target
|
|
2828
2850
|
),
|
|
2829
|
-
...
|
|
2851
|
+
...h
|
|
2830
2852
|
}
|
|
2831
2853
|
)
|
|
2832
2854
|
] });
|
|
2833
|
-
},
|
|
2855
|
+
}, we = {
|
|
2834
2856
|
parent: "relative flex flex-col items-start",
|
|
2835
2857
|
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",
|
|
2858
|
+
title: "flex items-center gap-2",
|
|
2836
2859
|
hover: "hover:border-primary-10/[.30] hover:cursor-pointer transition-colors duration-100",
|
|
2837
2860
|
focus: "focus:bg-white focus:border-primary-10 focus:ring-2 focus:ring-primary-10/[.20] focus:outline-none",
|
|
2838
2861
|
disabled: "bg-gray-40 border-gray-40 placeholder:text-dark/25 placeholder:text-sm placeholder:text-sans cursor-not-allowed",
|
|
2839
2862
|
variants: {
|
|
2840
2863
|
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
2864
|
}
|
|
2842
|
-
}, { Root:
|
|
2865
|
+
}, { Root: Vn } = nr, Zo = Ut.forwardRef(
|
|
2843
2866
|
({
|
|
2844
2867
|
id: t = "",
|
|
2845
2868
|
title: i,
|
|
@@ -2853,56 +2876,56 @@ const Uo = ({
|
|
|
2853
2876
|
onClick: h,
|
|
2854
2877
|
...u
|
|
2855
2878
|
}, b) => {
|
|
2856
|
-
const [x, s] =
|
|
2879
|
+
const [x, s] = A(n || ""), y = (g) => {
|
|
2857
2880
|
s(g), r == null || r(t, g);
|
|
2858
|
-
},
|
|
2881
|
+
}, v = u.disabled || !1, m = $e.base, S = $e.pressed, D = $e.hover, j = $e.disabled, w = $e.content;
|
|
2859
2882
|
return /* @__PURE__ */ p(
|
|
2860
|
-
|
|
2883
|
+
Vn,
|
|
2861
2884
|
{
|
|
2862
2885
|
ref: b,
|
|
2863
2886
|
onClick: () => h == null ? void 0 : h(t),
|
|
2864
2887
|
className: o(
|
|
2865
|
-
|
|
2888
|
+
m,
|
|
2866
2889
|
S,
|
|
2867
|
-
!
|
|
2868
|
-
|
|
2890
|
+
!v && D,
|
|
2891
|
+
v && j,
|
|
2869
2892
|
f
|
|
2870
2893
|
),
|
|
2871
2894
|
...u,
|
|
2872
2895
|
children: [
|
|
2873
|
-
/* @__PURE__ */ p("div", { className:
|
|
2896
|
+
/* @__PURE__ */ p("div", { className: w.header, "data-testid": "plate", children: [
|
|
2874
2897
|
/* @__PURE__ */ e(
|
|
2875
2898
|
k,
|
|
2876
2899
|
{
|
|
2877
2900
|
className: o(
|
|
2878
|
-
|
|
2879
|
-
|
|
2901
|
+
w.title,
|
|
2902
|
+
v && w.disabled
|
|
2880
2903
|
),
|
|
2881
2904
|
children: i
|
|
2882
2905
|
}
|
|
2883
2906
|
),
|
|
2884
|
-
/* @__PURE__ */ p("div", { className:
|
|
2907
|
+
/* @__PURE__ */ p("div", { className: w.actions, children: [
|
|
2885
2908
|
!!c && /* @__PURE__ */ e(
|
|
2886
|
-
|
|
2909
|
+
cr,
|
|
2887
2910
|
{
|
|
2888
2911
|
options: c,
|
|
2889
2912
|
value: x,
|
|
2890
2913
|
onChange: y,
|
|
2891
|
-
disabled:
|
|
2914
|
+
disabled: v
|
|
2892
2915
|
}
|
|
2893
2916
|
),
|
|
2894
2917
|
!!a && /* @__PURE__ */ p(de, { children: [
|
|
2895
2918
|
/* @__PURE__ */ e(ae, { onClick: (g) => g.stopPropagation(), asChild: !0, children: /* @__PURE__ */ e(
|
|
2896
|
-
|
|
2919
|
+
M,
|
|
2897
2920
|
{
|
|
2898
2921
|
variant: "text",
|
|
2899
2922
|
classNames: {
|
|
2900
|
-
base:
|
|
2923
|
+
base: w.button
|
|
2901
2924
|
},
|
|
2902
2925
|
children: /* @__PURE__ */ e(
|
|
2903
|
-
|
|
2926
|
+
rn,
|
|
2904
2927
|
{
|
|
2905
|
-
className:
|
|
2928
|
+
className: w.icon,
|
|
2906
2929
|
width: 15,
|
|
2907
2930
|
height: 15,
|
|
2908
2931
|
viewBox: "0 0 6 24"
|
|
@@ -2910,31 +2933,32 @@ const Uo = ({
|
|
|
2910
2933
|
)
|
|
2911
2934
|
}
|
|
2912
2935
|
) }),
|
|
2913
|
-
/* @__PURE__ */ e(le, { className:
|
|
2936
|
+
/* @__PURE__ */ e(le, { className: w.popup, children: a })
|
|
2914
2937
|
] })
|
|
2915
2938
|
] })
|
|
2916
2939
|
] }),
|
|
2917
|
-
/* @__PURE__ */ e("div", { className:
|
|
2918
|
-
/* @__PURE__ */ e("div", { className:
|
|
2940
|
+
/* @__PURE__ */ e("div", { className: w.flatType, children: !!l && /* @__PURE__ */ e(He, { text: l, variant: "warning" }) }),
|
|
2941
|
+
/* @__PURE__ */ e("div", { className: w.flexWrapper, children: d.map((g) => /* @__PURE__ */ p(k, { className: w.typography, children: [
|
|
2919
2942
|
g.label,
|
|
2920
2943
|
":",
|
|
2921
2944
|
g.href ? /* @__PURE__ */ e(
|
|
2922
|
-
|
|
2945
|
+
Ge,
|
|
2923
2946
|
{
|
|
2924
2947
|
weight: "font-semibold",
|
|
2925
2948
|
isIconVisible: !1,
|
|
2926
2949
|
href: g.href,
|
|
2950
|
+
target: "_blank",
|
|
2927
2951
|
classNames: {
|
|
2928
|
-
root:
|
|
2952
|
+
root: w.link
|
|
2929
2953
|
},
|
|
2930
|
-
children: String(g.value).slice(0, 15)
|
|
2954
|
+
children: String(g.value).length > 15 ? `${String(g.value).slice(0, 15)}...` : g.value
|
|
2931
2955
|
}
|
|
2932
2956
|
) : /* @__PURE__ */ e(
|
|
2933
2957
|
"span",
|
|
2934
2958
|
{
|
|
2935
2959
|
className: o(
|
|
2936
|
-
|
|
2937
|
-
|
|
2960
|
+
w.amount,
|
|
2961
|
+
v && w.disabled
|
|
2938
2962
|
),
|
|
2939
2963
|
children: g.value
|
|
2940
2964
|
}
|
|
@@ -2956,33 +2980,33 @@ const Uo = ({
|
|
|
2956
2980
|
flatType: "flex flex-s mb-2.5",
|
|
2957
2981
|
link: "inline bg-gray-40 rounded-xl pb-1.5 pt-1 px-3 text-dark-10",
|
|
2958
2982
|
flexWrapper: "flex flex-col gap-1",
|
|
2959
|
-
typography: "flex items-
|
|
2983
|
+
typography: "flex items-start gap-1 text-sm text-dark-10/[.40] text-start font-medium",
|
|
2960
2984
|
button: "p-0 flex items-center justify-center",
|
|
2961
2985
|
icon: "fill-secondary-10/[.40]",
|
|
2962
2986
|
popup: "flex flex-col px-3 py-2 w-auto items-start gap-2.5",
|
|
2963
|
-
amount: "text-dark-30 font-semibold",
|
|
2987
|
+
amount: "block text-dark-30 font-semibold break-all",
|
|
2964
2988
|
disabled: "text-dark-30/[.42]"
|
|
2965
2989
|
}
|
|
2966
|
-
}, Qo =
|
|
2967
|
-
|
|
2990
|
+
}, Qo = Ut.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: d, classNames: n, iconSizes: r }, l) => /* @__PURE__ */ e(
|
|
2991
|
+
Pt,
|
|
2968
2992
|
{
|
|
2969
2993
|
ref: l,
|
|
2970
2994
|
value: i,
|
|
2971
2995
|
onValueChange: d,
|
|
2972
|
-
className: o(n == null ? void 0 : n.tab,
|
|
2973
|
-
children: /* @__PURE__ */ e(
|
|
2974
|
-
|
|
2996
|
+
className: o(n == null ? void 0 : n.tab, ye.tab),
|
|
2997
|
+
children: /* @__PURE__ */ e(Nt, { className: o(ye.list, n == null ? void 0 : n.list), children: t && t.map((c) => /* @__PURE__ */ p(
|
|
2998
|
+
er,
|
|
2975
2999
|
{
|
|
2976
3000
|
value: c.value,
|
|
2977
3001
|
disabled: c.disabled,
|
|
2978
|
-
className: o(
|
|
3002
|
+
className: o(ye.trigger, n == null ? void 0 : n.trigger),
|
|
2979
3003
|
children: [
|
|
2980
|
-
/* @__PURE__ */ p(k, { variant: "span", className:
|
|
3004
|
+
/* @__PURE__ */ p(k, { variant: "span", className: ye.label, children: [
|
|
2981
3005
|
(c == null ? void 0 : c.icon) && /* @__PURE__ */ e(
|
|
2982
3006
|
c.icon,
|
|
2983
3007
|
{
|
|
2984
3008
|
className: o(
|
|
2985
|
-
i === c.value ?
|
|
3009
|
+
i === c.value ? ye.activeIcon : ye.iconInactive,
|
|
2986
3010
|
n == null ? void 0 : n.icon
|
|
2987
3011
|
),
|
|
2988
3012
|
width: r == null ? void 0 : r.width,
|
|
@@ -2993,13 +3017,13 @@ const Uo = ({
|
|
|
2993
3017
|
" ",
|
|
2994
3018
|
c.label
|
|
2995
3019
|
] }),
|
|
2996
|
-
c.badge && /* @__PURE__ */ e(k, { variant: "span", className:
|
|
3020
|
+
c.badge && /* @__PURE__ */ e(k, { variant: "span", className: ye.badge, children: c.badge })
|
|
2997
3021
|
]
|
|
2998
3022
|
},
|
|
2999
3023
|
c.value
|
|
3000
3024
|
)) })
|
|
3001
3025
|
}
|
|
3002
|
-
)),
|
|
3026
|
+
)), ye = {
|
|
3003
3027
|
tab: "w-full",
|
|
3004
3028
|
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
3029
|
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",
|
|
@@ -3010,12 +3034,12 @@ const Uo = ({
|
|
|
3010
3034
|
iconInactive: "fill-dark-40/[.50]"
|
|
3011
3035
|
}, qo = $.forwardRef(
|
|
3012
3036
|
({ tabs: t = [], activeTab: i, onTabChange: d, onEditTabContent: n, classNames: r }, l) => {
|
|
3013
|
-
const c =
|
|
3037
|
+
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
3038
|
"ul",
|
|
3015
3039
|
{
|
|
3016
3040
|
role: "listbox",
|
|
3017
3041
|
className: o(b.base, r == null ? void 0 : r.datalist),
|
|
3018
|
-
children: s.map((y,
|
|
3042
|
+
children: s.map((y, v) => /* @__PURE__ */ p(
|
|
3019
3043
|
"li",
|
|
3020
3044
|
{
|
|
3021
3045
|
className: o(b.item, r == null ? void 0 : r.dataItem),
|
|
@@ -3028,27 +3052,27 @@ const Uo = ({
|
|
|
3028
3052
|
y.value
|
|
3029
3053
|
]
|
|
3030
3054
|
},
|
|
3031
|
-
|
|
3055
|
+
v
|
|
3032
3056
|
))
|
|
3033
3057
|
}
|
|
3034
3058
|
);
|
|
3035
3059
|
return /* @__PURE__ */ p(
|
|
3036
|
-
|
|
3060
|
+
Pt,
|
|
3037
3061
|
{
|
|
3038
3062
|
ref: l,
|
|
3039
3063
|
value: i,
|
|
3040
3064
|
onValueChange: d,
|
|
3041
3065
|
className: o(c, r == null ? void 0 : r.base),
|
|
3042
3066
|
children: [
|
|
3043
|
-
/* @__PURE__ */ e(
|
|
3044
|
-
|
|
3067
|
+
/* @__PURE__ */ e(Nt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3068
|
+
er,
|
|
3045
3069
|
{
|
|
3046
3070
|
value: s.value,
|
|
3047
3071
|
disabled: s.disabled,
|
|
3048
3072
|
className: o(
|
|
3049
3073
|
"curved-tab",
|
|
3050
3074
|
y === 0 && "first-tab",
|
|
3051
|
-
y ===
|
|
3075
|
+
y === v.length - 1 && "last-tab",
|
|
3052
3076
|
f.base,
|
|
3053
3077
|
f.active,
|
|
3054
3078
|
f.hover,
|
|
@@ -3067,14 +3091,14 @@ const Uo = ({
|
|
|
3067
3091
|
},
|
|
3068
3092
|
s.value
|
|
3069
3093
|
)) }),
|
|
3070
|
-
t.map((s, y,
|
|
3071
|
-
|
|
3094
|
+
t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3095
|
+
Xr,
|
|
3072
3096
|
{
|
|
3073
3097
|
value: s.value,
|
|
3074
3098
|
className: o(
|
|
3075
3099
|
h.base,
|
|
3076
3100
|
y === 0 && "rounded-ss-none",
|
|
3077
|
-
y ===
|
|
3101
|
+
y === v.length - 1 && "rounded-se-none",
|
|
3078
3102
|
r == null ? void 0 : r.content
|
|
3079
3103
|
),
|
|
3080
3104
|
children: [
|
|
@@ -3105,7 +3129,7 @@ const Uo = ({
|
|
|
3105
3129
|
}
|
|
3106
3130
|
);
|
|
3107
3131
|
}
|
|
3108
|
-
),
|
|
3132
|
+
), De = {
|
|
3109
3133
|
base: "relative w-full",
|
|
3110
3134
|
list: "gap-1.5 bg-transparent p-0",
|
|
3111
3135
|
trigger: {
|
|
@@ -3130,7 +3154,7 @@ const Uo = ({
|
|
|
3130
3154
|
base: "flex flex-col gap-1.5",
|
|
3131
3155
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3132
3156
|
}
|
|
3133
|
-
},
|
|
3157
|
+
}, Ko = ({
|
|
3134
3158
|
disabled: t,
|
|
3135
3159
|
labelProps: i,
|
|
3136
3160
|
textareaProps: d,
|
|
@@ -3142,19 +3166,19 @@ const Uo = ({
|
|
|
3142
3166
|
!!(i != null && i.children) && /* @__PURE__ */ e(P, { ...i, disabled: t }),
|
|
3143
3167
|
l && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3144
3168
|
] }),
|
|
3145
|
-
/* @__PURE__ */ e(
|
|
3169
|
+
/* @__PURE__ */ e(qt, { ...d, disabled: t })
|
|
3146
3170
|
] });
|
|
3147
3171
|
}, Ot = {
|
|
3148
3172
|
root: "w-full flex flex-col gap-1.5",
|
|
3149
3173
|
labelWrapper: "flex items-center gap-2"
|
|
3150
|
-
},
|
|
3174
|
+
}, Xo = ({
|
|
3151
3175
|
fieldLabel: t,
|
|
3152
3176
|
disabled: i,
|
|
3153
3177
|
className: d,
|
|
3154
3178
|
labelProps: n,
|
|
3155
3179
|
toggleProps: r,
|
|
3156
3180
|
onClick: l
|
|
3157
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3181
|
+
}) => /* @__PURE__ */ p("div", { className: o(Zn.root, d), children: [
|
|
3158
3182
|
/* @__PURE__ */ e(P, { ...n, disabled: i, children: t }),
|
|
3159
3183
|
/* @__PURE__ */ e(
|
|
3160
3184
|
Wr,
|
|
@@ -3167,16 +3191,16 @@ const Uo = ({
|
|
|
3167
3191
|
labelPosition: r.labelPosition
|
|
3168
3192
|
}
|
|
3169
3193
|
)
|
|
3170
|
-
] }),
|
|
3194
|
+
] }), Zn = {
|
|
3171
3195
|
root: "flex flex-col items-start gap-3"
|
|
3172
|
-
},
|
|
3196
|
+
}, Be = {
|
|
3173
3197
|
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
3198
|
button: {
|
|
3175
3199
|
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
3200
|
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
3201
|
},
|
|
3178
3202
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3179
|
-
}, Jo =
|
|
3203
|
+
}, Jo = K(
|
|
3180
3204
|
({
|
|
3181
3205
|
blockName: t,
|
|
3182
3206
|
className: i,
|
|
@@ -3190,36 +3214,36 @@ const Uo = ({
|
|
|
3190
3214
|
{
|
|
3191
3215
|
ref: a,
|
|
3192
3216
|
draggable: !0,
|
|
3193
|
-
className: o(
|
|
3217
|
+
className: o(Be.wrapper, i),
|
|
3194
3218
|
onDragStart: d,
|
|
3195
3219
|
onDragEnd: n,
|
|
3196
3220
|
...c,
|
|
3197
3221
|
children: [
|
|
3198
3222
|
/* @__PURE__ */ e(
|
|
3199
|
-
|
|
3223
|
+
M,
|
|
3200
3224
|
{
|
|
3201
3225
|
onClick: r,
|
|
3202
3226
|
type: "button",
|
|
3203
3227
|
"data-testid": "dragAndDrop-menu-button",
|
|
3204
3228
|
variant: "text",
|
|
3205
3229
|
classNames: {
|
|
3206
|
-
base: o(
|
|
3230
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3207
3231
|
},
|
|
3208
|
-
children: /* @__PURE__ */ e(
|
|
3232
|
+
children: /* @__PURE__ */ e(Er, {})
|
|
3209
3233
|
}
|
|
3210
3234
|
),
|
|
3211
|
-
/* @__PURE__ */ e(k, { className:
|
|
3235
|
+
/* @__PURE__ */ e(k, { className: Be.wrapperBlockName, children: t || "-" }),
|
|
3212
3236
|
/* @__PURE__ */ e(
|
|
3213
|
-
|
|
3237
|
+
M,
|
|
3214
3238
|
{
|
|
3215
3239
|
onClick: l,
|
|
3216
3240
|
type: "button",
|
|
3217
3241
|
"data-testid": "dragAndDrop-close-button",
|
|
3218
3242
|
variant: "text",
|
|
3219
3243
|
classNames: {
|
|
3220
|
-
base: o(
|
|
3244
|
+
base: o(Be.button.basic, Be.button.active)
|
|
3221
3245
|
},
|
|
3222
|
-
children: /* @__PURE__ */ e(
|
|
3246
|
+
children: /* @__PURE__ */ e(nn, {})
|
|
3223
3247
|
}
|
|
3224
3248
|
)
|
|
3225
3249
|
]
|
|
@@ -3243,7 +3267,7 @@ const Uo = ({
|
|
|
3243
3267
|
label: t.toString(),
|
|
3244
3268
|
value: t.toString()
|
|
3245
3269
|
})
|
|
3246
|
-
),
|
|
3270
|
+
), Po = ({
|
|
3247
3271
|
value: t,
|
|
3248
3272
|
setValue: i,
|
|
3249
3273
|
disabled: d,
|
|
@@ -3254,53 +3278,59 @@ const Uo = ({
|
|
|
3254
3278
|
const c = ue(null), a = (T) => {
|
|
3255
3279
|
if (!T) return;
|
|
3256
3280
|
if (T instanceof Date) return T;
|
|
3257
|
-
const
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3281
|
+
const _ = wt(
|
|
3282
|
+
T,
|
|
3283
|
+
Wt,
|
|
3284
|
+
/* @__PURE__ */ new Date()
|
|
3285
|
+
);
|
|
3286
|
+
if (_e(_)) return _;
|
|
3287
|
+
const R = xn(T);
|
|
3288
|
+
return _e(R) ? R : void 0;
|
|
3289
|
+
}, [f, h] = A(
|
|
3262
3290
|
a(t)
|
|
3263
|
-
), [u, b] =
|
|
3291
|
+
), [u, b] = A(
|
|
3264
3292
|
f == null ? void 0 : f.getDate()
|
|
3265
|
-
), [x, s] =
|
|
3293
|
+
), [x, s] = A(
|
|
3266
3294
|
f == null ? void 0 : f.getMonth()
|
|
3267
|
-
), [y,
|
|
3295
|
+
), [y, v] = A(
|
|
3268
3296
|
f == null ? void 0 : f.getFullYear()
|
|
3269
3297
|
);
|
|
3270
|
-
|
|
3298
|
+
Me(() => {
|
|
3271
3299
|
const T = a(t);
|
|
3272
|
-
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()),
|
|
3300
|
+
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), v(T == null ? void 0 : T.getFullYear());
|
|
3273
3301
|
}, [t]);
|
|
3274
|
-
const
|
|
3275
|
-
const T = new Date(S,
|
|
3276
|
-
return Array.from({ length: T }, (
|
|
3277
|
-
const
|
|
3302
|
+
const m = /* @__PURE__ */ new Date(), S = y ?? m.getFullYear(), D = x ?? m.getMonth(), j = Yt(() => {
|
|
3303
|
+
const T = new Date(S, D + 1, 0).getDate();
|
|
3304
|
+
return Array.from({ length: T }, (_, R) => {
|
|
3305
|
+
const G = R + 1;
|
|
3278
3306
|
return {
|
|
3279
|
-
label:
|
|
3280
|
-
value:
|
|
3307
|
+
label: G.toString().padStart(2, "0"),
|
|
3308
|
+
value: G.toString()
|
|
3281
3309
|
};
|
|
3282
3310
|
});
|
|
3283
|
-
}, [
|
|
3284
|
-
if (T !== void 0 &&
|
|
3285
|
-
const
|
|
3286
|
-
h(
|
|
3311
|
+
}, [D, S]), w = (T, _, R) => {
|
|
3312
|
+
if (T !== void 0 && _ !== void 0 && R !== void 0) {
|
|
3313
|
+
const G = new Date(R, _, T);
|
|
3314
|
+
h(G), i(
|
|
3315
|
+
jr(G, Wt)
|
|
3316
|
+
);
|
|
3287
3317
|
} else
|
|
3288
3318
|
h(void 0), i(void 0);
|
|
3289
3319
|
}, g = (T) => {
|
|
3290
|
-
const
|
|
3291
|
-
s(
|
|
3320
|
+
const _ = parseInt(T);
|
|
3321
|
+
s(_), w(u, _, y);
|
|
3292
3322
|
}, C = (T) => {
|
|
3293
|
-
const
|
|
3294
|
-
|
|
3323
|
+
const _ = parseInt(T);
|
|
3324
|
+
v(_), w(u, x, _);
|
|
3295
3325
|
}, I = (T) => {
|
|
3296
|
-
const
|
|
3297
|
-
b(
|
|
3326
|
+
const _ = parseInt(T);
|
|
3327
|
+
b(_), w(_, x, y);
|
|
3298
3328
|
};
|
|
3299
|
-
return /* @__PURE__ */ p("div", { ref: c, className:
|
|
3329
|
+
return /* @__PURE__ */ p("div", { ref: c, className: $t.root, children: [
|
|
3300
3330
|
!!n && /* @__PURE__ */ e(P, { className: o(l == null ? void 0 : l.label), children: n }),
|
|
3301
|
-
/* @__PURE__ */ p("div", { className:
|
|
3331
|
+
/* @__PURE__ */ p("div", { className: $t.selectContainer, children: [
|
|
3302
3332
|
/* @__PURE__ */ e(
|
|
3303
|
-
|
|
3333
|
+
Ce,
|
|
3304
3334
|
{
|
|
3305
3335
|
options: j,
|
|
3306
3336
|
classNames: {
|
|
@@ -3315,11 +3345,11 @@ const Uo = ({
|
|
|
3315
3345
|
}
|
|
3316
3346
|
),
|
|
3317
3347
|
/* @__PURE__ */ e(
|
|
3318
|
-
|
|
3348
|
+
Ce,
|
|
3319
3349
|
{
|
|
3320
|
-
options: Qn.map((T,
|
|
3350
|
+
options: Qn.map((T, _) => ({
|
|
3321
3351
|
label: T,
|
|
3322
|
-
value:
|
|
3352
|
+
value: _.toString()
|
|
3323
3353
|
})),
|
|
3324
3354
|
classNames: {
|
|
3325
3355
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
@@ -3333,7 +3363,7 @@ const Uo = ({
|
|
|
3333
3363
|
}
|
|
3334
3364
|
),
|
|
3335
3365
|
/* @__PURE__ */ e(
|
|
3336
|
-
|
|
3366
|
+
Ce,
|
|
3337
3367
|
{
|
|
3338
3368
|
options: qn,
|
|
3339
3369
|
classNames: {
|
|
@@ -3343,19 +3373,19 @@ const Uo = ({
|
|
|
3343
3373
|
disabled: d,
|
|
3344
3374
|
onChange: C,
|
|
3345
3375
|
value: y !== void 0 ? String(y) : "",
|
|
3346
|
-
autoFocusValue: String(
|
|
3376
|
+
autoFocusValue: String(m.getFullYear()),
|
|
3347
3377
|
placeholder: "Год",
|
|
3348
3378
|
status: r === "danger" ? "danger" : void 0
|
|
3349
3379
|
}
|
|
3350
3380
|
)
|
|
3351
3381
|
] })
|
|
3352
3382
|
] });
|
|
3353
|
-
},
|
|
3383
|
+
}, $t = {
|
|
3354
3384
|
root: "relative w-full flex items-start flex-col gap-1.5",
|
|
3355
3385
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3356
3386
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3357
3387
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3358
|
-
},
|
|
3388
|
+
}, Kn = ({
|
|
3359
3389
|
badge: t,
|
|
3360
3390
|
isExpanded: i = !0,
|
|
3361
3391
|
isActive: d = !1,
|
|
@@ -3364,9 +3394,9 @@ const Uo = ({
|
|
|
3364
3394
|
classNames: a,
|
|
3365
3395
|
onClick: f
|
|
3366
3396
|
}) => {
|
|
3367
|
-
const [h] =
|
|
3397
|
+
const [h] = Ct(), u = bt.base;
|
|
3368
3398
|
return /* @__PURE__ */ p(
|
|
3369
|
-
|
|
3399
|
+
Tt,
|
|
3370
3400
|
{
|
|
3371
3401
|
tabIndex: 1,
|
|
3372
3402
|
role: "link",
|
|
@@ -3407,7 +3437,7 @@ const Uo = ({
|
|
|
3407
3437
|
{
|
|
3408
3438
|
"text-primary-10": d,
|
|
3409
3439
|
"text-sidebar/[.15]": n,
|
|
3410
|
-
[
|
|
3440
|
+
[bt.expanded.label]: !i
|
|
3411
3441
|
},
|
|
3412
3442
|
a == null ? void 0 : a.label
|
|
3413
3443
|
),
|
|
@@ -3420,7 +3450,7 @@ const Uo = ({
|
|
|
3420
3450
|
variant: "span",
|
|
3421
3451
|
className: o(
|
|
3422
3452
|
u.badge,
|
|
3423
|
-
!i &&
|
|
3453
|
+
!i && bt.expanded.badge,
|
|
3424
3454
|
a == null ? void 0 : a.badge
|
|
3425
3455
|
),
|
|
3426
3456
|
children: t
|
|
@@ -3430,7 +3460,7 @@ const Uo = ({
|
|
|
3430
3460
|
]
|
|
3431
3461
|
}
|
|
3432
3462
|
);
|
|
3433
|
-
},
|
|
3463
|
+
}, bt = {
|
|
3434
3464
|
base: {
|
|
3435
3465
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3436
3466
|
labelWrapper: "relative inline-block",
|
|
@@ -3444,20 +3474,20 @@ const Uo = ({
|
|
|
3444
3474
|
badge: "top-0 translate-x-1 -translate-y-4",
|
|
3445
3475
|
label: "w-0 opacity-0"
|
|
3446
3476
|
}
|
|
3447
|
-
},
|
|
3477
|
+
}, No = ({
|
|
3448
3478
|
options: t,
|
|
3449
3479
|
title: i,
|
|
3450
3480
|
setActiveStep: d,
|
|
3451
3481
|
disabled: n = !1,
|
|
3452
3482
|
classNames: r
|
|
3453
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3454
|
-
i && /* @__PURE__ */ p("div", { className: o(
|
|
3455
|
-
/* @__PURE__ */ e(
|
|
3483
|
+
}) => /* @__PURE__ */ p("div", { className: o(Y.root, r == null ? void 0 : r.root), "data-testid": "stepper", children: [
|
|
3484
|
+
i && /* @__PURE__ */ p("div", { className: o(Y.header, r == null ? void 0 : r.header), children: [
|
|
3485
|
+
/* @__PURE__ */ e(fn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3456
3486
|
/* @__PURE__ */ e(
|
|
3457
|
-
|
|
3487
|
+
Je,
|
|
3458
3488
|
{
|
|
3459
3489
|
variant: "h2",
|
|
3460
|
-
className:
|
|
3490
|
+
className: Y.headerTitle,
|
|
3461
3491
|
"data-testid": "stepper-title",
|
|
3462
3492
|
children: i
|
|
3463
3493
|
}
|
|
@@ -3466,34 +3496,34 @@ const Uo = ({
|
|
|
3466
3496
|
/* @__PURE__ */ e(
|
|
3467
3497
|
"div",
|
|
3468
3498
|
{
|
|
3469
|
-
className: o(
|
|
3499
|
+
className: o(Y.timeline, r == null ? void 0 : r.timeline),
|
|
3470
3500
|
"data-testid": "stepper-timeline",
|
|
3471
3501
|
children: t.map((l, c) => /* @__PURE__ */ p(
|
|
3472
3502
|
"div",
|
|
3473
3503
|
{
|
|
3474
3504
|
"data-testid": `step-${c}`,
|
|
3475
|
-
className: o(
|
|
3505
|
+
className: o(Y.stepWrapper, r == null ? void 0 : r.stepWrapper),
|
|
3476
3506
|
children: [
|
|
3477
|
-
c < t.length - 1 && /* @__PURE__ */ e("span", { className:
|
|
3478
|
-
/* @__PURE__ */ e("div", { className:
|
|
3507
|
+
c < t.length - 1 && /* @__PURE__ */ e("span", { className: Y.verticalLine }),
|
|
3508
|
+
/* @__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
3509
|
"div",
|
|
3480
3510
|
{
|
|
3481
3511
|
onClick: () => !n && d(c),
|
|
3482
3512
|
className: o(
|
|
3483
|
-
|
|
3513
|
+
Y.completedDotWrapper,
|
|
3484
3514
|
n ? "cursor-not-allowed" : "cursor-pointer"
|
|
3485
3515
|
),
|
|
3486
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3516
|
+
children: /* @__PURE__ */ e("span", { className: Y.completedDot })
|
|
3487
3517
|
}
|
|
3488
3518
|
) }),
|
|
3489
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
3519
|
+
/* @__PURE__ */ p("div", { className: o(Y.content, r == null ? void 0 : r.content), children: [
|
|
3490
3520
|
/* @__PURE__ */ e(
|
|
3491
|
-
|
|
3521
|
+
Je,
|
|
3492
3522
|
{
|
|
3493
3523
|
variant: "h3",
|
|
3494
3524
|
"data-testid": `step-${c}-title`,
|
|
3495
3525
|
className: o(
|
|
3496
|
-
l.activeStep ?
|
|
3526
|
+
l.activeStep ? Y.title : Y.titleCompleted,
|
|
3497
3527
|
r == null ? void 0 : r.title
|
|
3498
3528
|
),
|
|
3499
3529
|
children: l.title
|
|
@@ -3504,7 +3534,7 @@ const Uo = ({
|
|
|
3504
3534
|
{
|
|
3505
3535
|
"data-testid": `step-${c}-subtitle`,
|
|
3506
3536
|
className: o(
|
|
3507
|
-
l.activeStep ?
|
|
3537
|
+
l.activeStep ? Y.subtitle : Y.subtitleCompleted,
|
|
3508
3538
|
r == null ? void 0 : r.subtitle
|
|
3509
3539
|
),
|
|
3510
3540
|
children: l.subtitle
|
|
@@ -3515,7 +3545,7 @@ const Uo = ({
|
|
|
3515
3545
|
{
|
|
3516
3546
|
"data-testid": `step-${c}-date`,
|
|
3517
3547
|
className: o(
|
|
3518
|
-
l.activeStep ?
|
|
3548
|
+
l.activeStep ? Y.date : Y.dateCompleted,
|
|
3519
3549
|
r == null ? void 0 : r.date
|
|
3520
3550
|
),
|
|
3521
3551
|
children: l.date
|
|
@@ -3528,7 +3558,7 @@ const Uo = ({
|
|
|
3528
3558
|
))
|
|
3529
3559
|
}
|
|
3530
3560
|
)
|
|
3531
|
-
] }),
|
|
3561
|
+
] }), Y = {
|
|
3532
3562
|
root: "relative flex flex-col bg-white w-full",
|
|
3533
3563
|
header: "flex items-center gap-1.5 mb-3",
|
|
3534
3564
|
headerTitle: "text-dark-40 text-sm font-bold font-mono",
|
|
@@ -3548,7 +3578,7 @@ const Uo = ({
|
|
|
3548
3578
|
subtitleCompleted: "text-xs mb-1 text-dark-30/[.50]",
|
|
3549
3579
|
date: "text-[10px] mb-1 text-dark-40/[.50]",
|
|
3550
3580
|
dateCompleted: "text-[10px] mb-1 text-dark-30/[.50]"
|
|
3551
|
-
},
|
|
3581
|
+
}, Ye = ({
|
|
3552
3582
|
icon: t,
|
|
3553
3583
|
title: i,
|
|
3554
3584
|
classNames: d,
|
|
@@ -3557,20 +3587,20 @@ const Uo = ({
|
|
|
3557
3587
|
"div",
|
|
3558
3588
|
{
|
|
3559
3589
|
className: o(
|
|
3560
|
-
|
|
3590
|
+
Rt.wrapper,
|
|
3561
3591
|
n === "right" && "flex-row-reverse",
|
|
3562
3592
|
d == null ? void 0 : d.wrapper
|
|
3563
3593
|
),
|
|
3564
3594
|
children: [
|
|
3565
3595
|
!!t && t,
|
|
3566
|
-
/* @__PURE__ */ e(k, { className: o(
|
|
3596
|
+
/* @__PURE__ */ e(k, { className: o(Rt.headerTitle, d == null ? void 0 : d.title), children: i })
|
|
3567
3597
|
]
|
|
3568
3598
|
}
|
|
3569
|
-
),
|
|
3599
|
+
), Rt = {
|
|
3570
3600
|
wrapper: "flex items-center gap-2 w-full",
|
|
3571
3601
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3572
3602
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3573
|
-
}, It =
|
|
3603
|
+
}, It = K(
|
|
3574
3604
|
({
|
|
3575
3605
|
id: t,
|
|
3576
3606
|
label: i,
|
|
@@ -3584,8 +3614,8 @@ const Uo = ({
|
|
|
3584
3614
|
inputProps: h,
|
|
3585
3615
|
...u
|
|
3586
3616
|
}, b) => {
|
|
3587
|
-
var
|
|
3588
|
-
const x =
|
|
3617
|
+
var D;
|
|
3618
|
+
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
3619
|
return /* @__PURE__ */ p("div", { className: o(x, a == null ? void 0 : a.parent), ...u, children: [
|
|
3590
3620
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3591
3621
|
!!i && /* @__PURE__ */ e(
|
|
@@ -3593,7 +3623,7 @@ const Uo = ({
|
|
|
3593
3623
|
{
|
|
3594
3624
|
htmlFor: t,
|
|
3595
3625
|
className: o(a == null ? void 0 : a.label),
|
|
3596
|
-
disabled:
|
|
3626
|
+
disabled: v,
|
|
3597
3627
|
children: i
|
|
3598
3628
|
}
|
|
3599
3629
|
),
|
|
@@ -3604,7 +3634,7 @@ const Uo = ({
|
|
|
3604
3634
|
{
|
|
3605
3635
|
className: o(
|
|
3606
3636
|
s,
|
|
3607
|
-
|
|
3637
|
+
m && qe.container,
|
|
3608
3638
|
a == null ? void 0 : a.base
|
|
3609
3639
|
),
|
|
3610
3640
|
children: [
|
|
@@ -3614,29 +3644,29 @@ const Uo = ({
|
|
|
3614
3644
|
...h,
|
|
3615
3645
|
ref: b,
|
|
3616
3646
|
id: t,
|
|
3617
|
-
disabled:
|
|
3647
|
+
disabled: v,
|
|
3618
3648
|
classNames: {
|
|
3619
3649
|
...h == null ? void 0 : h.classNames,
|
|
3620
3650
|
target: o(
|
|
3621
|
-
(
|
|
3622
|
-
|
|
3623
|
-
|
|
3651
|
+
(D = h == null ? void 0 : h.classNames) == null ? void 0 : D.target,
|
|
3652
|
+
m && l === "left" && "pl-11",
|
|
3653
|
+
m && l === "right" && "pr-11"
|
|
3624
3654
|
)
|
|
3625
3655
|
}
|
|
3626
3656
|
}
|
|
3627
3657
|
),
|
|
3628
|
-
|
|
3658
|
+
m && /* @__PURE__ */ p(
|
|
3629
3659
|
"button",
|
|
3630
3660
|
{
|
|
3631
3661
|
role: "button",
|
|
3632
3662
|
type: "button",
|
|
3633
|
-
disabled:
|
|
3663
|
+
disabled: v,
|
|
3634
3664
|
className: o(
|
|
3635
3665
|
y.base,
|
|
3636
3666
|
l === "left" && "left-3.5",
|
|
3637
3667
|
l === "right" && "right-3.5",
|
|
3638
3668
|
f && y.clickable,
|
|
3639
|
-
|
|
3669
|
+
v && y.disabled,
|
|
3640
3670
|
a == null ? void 0 : a.iconButton
|
|
3641
3671
|
),
|
|
3642
3672
|
onClick: f,
|
|
@@ -3660,7 +3690,7 @@ const Uo = ({
|
|
|
3660
3690
|
)
|
|
3661
3691
|
] });
|
|
3662
3692
|
}
|
|
3663
|
-
),
|
|
3693
|
+
), qe = {
|
|
3664
3694
|
parent: "flex flex-col w-full",
|
|
3665
3695
|
base: "mt-1.5",
|
|
3666
3696
|
button: {
|
|
@@ -3689,17 +3719,17 @@ const Uo = ({
|
|
|
3689
3719
|
icon: "fill-dark-10/60 size-6",
|
|
3690
3720
|
text: "text-gray-10 text-sm font-mono leading-none"
|
|
3691
3721
|
}
|
|
3692
|
-
},
|
|
3722
|
+
}, ei = ({
|
|
3693
3723
|
icon: t,
|
|
3694
3724
|
element: i,
|
|
3695
3725
|
label: d,
|
|
3696
3726
|
classNames: n
|
|
3697
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3727
|
+
}) => /* @__PURE__ */ p("div", { className: o(xt.wrapper, n == null ? void 0 : n.wrapper), children: [
|
|
3698
3728
|
!!t && /* @__PURE__ */ e(
|
|
3699
3729
|
"div",
|
|
3700
3730
|
{
|
|
3701
3731
|
"data-testid": "user-icon",
|
|
3702
|
-
className: o(
|
|
3732
|
+
className: o(xt.iconWrapper, n == null ? void 0 : n.iconWrapper),
|
|
3703
3733
|
children: t
|
|
3704
3734
|
}
|
|
3705
3735
|
),
|
|
@@ -3708,12 +3738,12 @@ const Uo = ({
|
|
|
3708
3738
|
{
|
|
3709
3739
|
"data-testid": "user-label",
|
|
3710
3740
|
variant: "span",
|
|
3711
|
-
className: o(
|
|
3741
|
+
className: o(xt.label, n == null ? void 0 : n.label),
|
|
3712
3742
|
children: d
|
|
3713
3743
|
}
|
|
3714
3744
|
),
|
|
3715
3745
|
!!i && i
|
|
3716
|
-
] }),
|
|
3746
|
+
] }), xt = {
|
|
3717
3747
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3718
3748
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3719
3749
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3722,7 +3752,7 @@ const Uo = ({
|
|
|
3722
3752
|
base: "w-8 h-5",
|
|
3723
3753
|
thumb: "size-3.5"
|
|
3724
3754
|
}
|
|
3725
|
-
},
|
|
3755
|
+
}, Ge = ({
|
|
3726
3756
|
children: t,
|
|
3727
3757
|
disabled: i = !1,
|
|
3728
3758
|
href: d,
|
|
@@ -3738,15 +3768,15 @@ const Uo = ({
|
|
|
3738
3768
|
},
|
|
3739
3769
|
...h
|
|
3740
3770
|
}) => {
|
|
3741
|
-
const u =
|
|
3771
|
+
const u = Xn.states;
|
|
3742
3772
|
return /* @__PURE__ */ p(
|
|
3743
3773
|
Ee,
|
|
3744
3774
|
{
|
|
3745
|
-
"data-testid": "link-root",
|
|
3746
|
-
to: i ? "" : d,
|
|
3747
3775
|
...h,
|
|
3776
|
+
"data-testid": "link-root",
|
|
3777
|
+
to: d,
|
|
3748
3778
|
onClick: (x) => {
|
|
3749
|
-
if (i) {
|
|
3779
|
+
if (x.stopPropagation(), i) {
|
|
3750
3780
|
x.preventDefault();
|
|
3751
3781
|
return;
|
|
3752
3782
|
}
|
|
@@ -3764,7 +3794,7 @@ const Uo = ({
|
|
|
3764
3794
|
),
|
|
3765
3795
|
children: [
|
|
3766
3796
|
l && /* @__PURE__ */ e(
|
|
3767
|
-
|
|
3797
|
+
Hr,
|
|
3768
3798
|
{
|
|
3769
3799
|
width: f.width,
|
|
3770
3800
|
height: f.height,
|
|
@@ -3776,7 +3806,7 @@ const Uo = ({
|
|
|
3776
3806
|
]
|
|
3777
3807
|
}
|
|
3778
3808
|
);
|
|
3779
|
-
},
|
|
3809
|
+
}, Xn = {
|
|
3780
3810
|
states: {
|
|
3781
3811
|
active: "active:text-primary-30",
|
|
3782
3812
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
@@ -3784,7 +3814,7 @@ const Uo = ({
|
|
|
3784
3814
|
hover: "hover:text-primary-20",
|
|
3785
3815
|
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
3816
|
}
|
|
3787
|
-
},
|
|
3817
|
+
}, cr = K(
|
|
3788
3818
|
({
|
|
3789
3819
|
classNames: t,
|
|
3790
3820
|
disabled: i,
|
|
@@ -3793,29 +3823,29 @@ const Uo = ({
|
|
|
3793
3823
|
placeholder: r = "Choose",
|
|
3794
3824
|
value: l
|
|
3795
3825
|
}, c) => {
|
|
3796
|
-
var
|
|
3797
|
-
const [a, f] =
|
|
3826
|
+
var D;
|
|
3827
|
+
const [a, f] = A(!1), u = rr(n)(l), b = ue(null), x = Re.base, s = Re.options, y = Re.disabled.trigger, v = Re.disabled.triggerText, m = (D = n.find((j) => j.value === l)) == null ? void 0 : D.status, S = ({
|
|
3798
3828
|
className: j,
|
|
3799
|
-
text:
|
|
3829
|
+
text: w = ""
|
|
3800
3830
|
}) => /* @__PURE__ */ e(
|
|
3801
3831
|
k,
|
|
3802
3832
|
{
|
|
3803
3833
|
className: o(
|
|
3804
3834
|
x.placeholder,
|
|
3805
|
-
i &&
|
|
3835
|
+
i && v,
|
|
3806
3836
|
j
|
|
3807
3837
|
),
|
|
3808
|
-
children:
|
|
3838
|
+
children: w
|
|
3809
3839
|
}
|
|
3810
3840
|
);
|
|
3811
|
-
return
|
|
3841
|
+
return Me(() => {
|
|
3812
3842
|
a && setTimeout(() => {
|
|
3813
3843
|
var j;
|
|
3814
3844
|
(j = b.current) == null || j.scrollIntoView({ block: "center" });
|
|
3815
3845
|
}, 0);
|
|
3816
|
-
}, [a]), /* @__PURE__ */ p(
|
|
3846
|
+
}, [a]), /* @__PURE__ */ p(et, { open: a, onOpenChange: f, children: [
|
|
3817
3847
|
/* @__PURE__ */ p(
|
|
3818
|
-
|
|
3848
|
+
tt,
|
|
3819
3849
|
{
|
|
3820
3850
|
role: "listbox",
|
|
3821
3851
|
disabled: i,
|
|
@@ -3824,7 +3854,7 @@ const Uo = ({
|
|
|
3824
3854
|
i && y,
|
|
3825
3855
|
!a && !i && x.hover,
|
|
3826
3856
|
t == null ? void 0 : t.trigger,
|
|
3827
|
-
|
|
3857
|
+
m && Re.status[m]
|
|
3828
3858
|
),
|
|
3829
3859
|
children: [
|
|
3830
3860
|
l ? /* @__PURE__ */ e(
|
|
@@ -3841,7 +3871,7 @@ const Uo = ({
|
|
|
3841
3871
|
}
|
|
3842
3872
|
),
|
|
3843
3873
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3844
|
-
|
|
3874
|
+
ir,
|
|
3845
3875
|
{
|
|
3846
3876
|
className: o(x.icon, a && "rotate-180"),
|
|
3847
3877
|
width: 16,
|
|
@@ -3853,7 +3883,7 @@ const Uo = ({
|
|
|
3853
3883
|
}
|
|
3854
3884
|
),
|
|
3855
3885
|
/* @__PURE__ */ e(
|
|
3856
|
-
|
|
3886
|
+
rt,
|
|
3857
3887
|
{
|
|
3858
3888
|
className: o(s.content, t == null ? void 0 : t.content),
|
|
3859
3889
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
@@ -3863,8 +3893,8 @@ const Uo = ({
|
|
|
3863
3893
|
{
|
|
3864
3894
|
ref: l === j.value ? b : null,
|
|
3865
3895
|
className: o(s.items),
|
|
3866
|
-
onClick: (
|
|
3867
|
-
|
|
3896
|
+
onClick: (w) => {
|
|
3897
|
+
w.preventDefault(), w.stopPropagation(), d(j.value), f(!1);
|
|
3868
3898
|
},
|
|
3869
3899
|
children: /* @__PURE__ */ e(He, { text: j.label, variant: j.status })
|
|
3870
3900
|
},
|
|
@@ -3875,7 +3905,7 @@ const Uo = ({
|
|
|
3875
3905
|
] });
|
|
3876
3906
|
}
|
|
3877
3907
|
);
|
|
3878
|
-
|
|
3908
|
+
cr.displayName = "StatusSelect";
|
|
3879
3909
|
const Re = {
|
|
3880
3910
|
base: {
|
|
3881
3911
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3903,7 +3933,7 @@ const Re = {
|
|
|
3903
3933
|
items: "group rounded-[5px] cursor-pointer p-0",
|
|
3904
3934
|
itemsText: "flex items-center w-full mr-1.5 text-dark-30 text-xs font-normal py-1 px-3 rounded-[50px]"
|
|
3905
3935
|
}
|
|
3906
|
-
},
|
|
3936
|
+
}, ti = ({
|
|
3907
3937
|
classNames: t,
|
|
3908
3938
|
label: i,
|
|
3909
3939
|
selectProps: d,
|
|
@@ -3913,10 +3943,10 @@ const Re = {
|
|
|
3913
3943
|
/* @__PURE__ */ e(P, { disabled: d == null ? void 0 : d.disabled, className: t == null ? void 0 : t.label, children: i }),
|
|
3914
3944
|
(d == null ? void 0 : d.status) === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3915
3945
|
] }),
|
|
3916
|
-
/* @__PURE__ */ e(
|
|
3946
|
+
/* @__PURE__ */ e(Ce, { ...d })
|
|
3917
3947
|
] }), Jn = {
|
|
3918
3948
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3919
|
-
},
|
|
3949
|
+
}, ri = K(
|
|
3920
3950
|
({
|
|
3921
3951
|
title: t,
|
|
3922
3952
|
file: i,
|
|
@@ -3945,7 +3975,7 @@ const Re = {
|
|
|
3945
3975
|
/* @__PURE__ */ e("div", { className: L.circle[c] }),
|
|
3946
3976
|
/* @__PURE__ */ e(k, { "data-testid": "title", className: L.text, children: t })
|
|
3947
3977
|
] }),
|
|
3948
|
-
/* @__PURE__ */ e(k, { "data-testid": "date-and-time", className: L.dateAndTime, children:
|
|
3978
|
+
/* @__PURE__ */ e(k, { "data-testid": "date-and-time", className: L.dateAndTime, children: Z(d, "dd.MM.yyyy HH:mm:ss") })
|
|
3949
3979
|
] }),
|
|
3950
3980
|
/* @__PURE__ */ p("div", { className: L.fileContainer, children: [
|
|
3951
3981
|
/* @__PURE__ */ e("div", { className: L.iconContainer, children: i.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3957,7 +3987,7 @@ const Re = {
|
|
|
3957
3987
|
width: 22,
|
|
3958
3988
|
height: 30
|
|
3959
3989
|
}
|
|
3960
|
-
) : /* @__PURE__ */ e(
|
|
3990
|
+
) : /* @__PURE__ */ e(Vt, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3961
3991
|
/* @__PURE__ */ p("div", { className: "flex-grow", children: [
|
|
3962
3992
|
/* @__PURE__ */ e(
|
|
3963
3993
|
k,
|
|
@@ -3969,13 +3999,12 @@ const Re = {
|
|
|
3969
3999
|
children: i.name
|
|
3970
4000
|
}
|
|
3971
4001
|
),
|
|
3972
|
-
/* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children:
|
|
4002
|
+
/* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children: yt(Number(i.size.toFixed(1))) })
|
|
3973
4003
|
] }),
|
|
3974
4004
|
/* @__PURE__ */ p("div", { className: L.buttonContainer, children: [
|
|
3975
4005
|
/* @__PURE__ */ e(
|
|
3976
|
-
|
|
4006
|
+
Ge,
|
|
3977
4007
|
{
|
|
3978
|
-
"data-testid": "download-button",
|
|
3979
4008
|
classNames: {
|
|
3980
4009
|
root: o(L.button.basic, L.iconHover),
|
|
3981
4010
|
icon: L.downnloadIcon
|
|
@@ -3986,7 +4015,7 @@ const Re = {
|
|
|
3986
4015
|
}
|
|
3987
4016
|
),
|
|
3988
4017
|
/* @__PURE__ */ e(
|
|
3989
|
-
|
|
4018
|
+
M,
|
|
3990
4019
|
{
|
|
3991
4020
|
"data-testid": "delete-button",
|
|
3992
4021
|
classNames: {
|
|
@@ -3995,7 +4024,7 @@ const Re = {
|
|
|
3995
4024
|
},
|
|
3996
4025
|
onClick: r,
|
|
3997
4026
|
variant: "text",
|
|
3998
|
-
icon:
|
|
4027
|
+
icon: Ae,
|
|
3999
4028
|
iconDimensions: { height: 20, width: 20, viewBox: "0 0 30 30" }
|
|
4000
4029
|
}
|
|
4001
4030
|
)
|
|
@@ -4034,7 +4063,7 @@ const Re = {
|
|
|
4034
4063
|
textDisabled: "text-dark-30/25 fill-dark-30/25 decoration-dark-30/25",
|
|
4035
4064
|
iconContainer: "mr-3 pt-1.5 h-full",
|
|
4036
4065
|
fileImg: " object-cover"
|
|
4037
|
-
},
|
|
4066
|
+
}, ni = ({
|
|
4038
4067
|
title: t,
|
|
4039
4068
|
dateAndTime: i,
|
|
4040
4069
|
onDelete: d,
|
|
@@ -4046,14 +4075,14 @@ const Re = {
|
|
|
4046
4075
|
lastStatusText: f = "Text",
|
|
4047
4076
|
price: h = "100 000 000 UZS",
|
|
4048
4077
|
classNames: u
|
|
4049
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
4050
|
-
/* @__PURE__ */ p("div", { className:
|
|
4078
|
+
}) => /* @__PURE__ */ p("div", { className: o(q.wrapper, u == null ? void 0 : u.wrapper), children: [
|
|
4079
|
+
/* @__PURE__ */ p("div", { className: q.dateContainer.base, children: [
|
|
4051
4080
|
/* @__PURE__ */ e(
|
|
4052
4081
|
"div",
|
|
4053
4082
|
{
|
|
4054
4083
|
"data-testid": "date-and-time",
|
|
4055
|
-
className:
|
|
4056
|
-
children:
|
|
4084
|
+
className: q.dateContainer.dateAndTime,
|
|
4085
|
+
children: Z(i, "dd.MM.yyyy HH:mm:ss")
|
|
4057
4086
|
}
|
|
4058
4087
|
),
|
|
4059
4088
|
/* @__PURE__ */ e(
|
|
@@ -4065,11 +4094,11 @@ const Re = {
|
|
|
4065
4094
|
}
|
|
4066
4095
|
)
|
|
4067
4096
|
] }),
|
|
4068
|
-
/* @__PURE__ */ p("div", { className:
|
|
4069
|
-
/* @__PURE__ */ e(k, { "data-testid": "title", className:
|
|
4070
|
-
/* @__PURE__ */ e(k, { "data-testid": "price", className:
|
|
4097
|
+
/* @__PURE__ */ p("div", { className: q.titleContainer.base, children: [
|
|
4098
|
+
/* @__PURE__ */ e(k, { "data-testid": "title", className: q.titleContainer.title, children: t }),
|
|
4099
|
+
/* @__PURE__ */ e(k, { "data-testid": "price", className: q.titleContainer.price, children: h })
|
|
4071
4100
|
] }),
|
|
4072
|
-
/* @__PURE__ */ p("div", { className:
|
|
4101
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.base, children: [
|
|
4073
4102
|
/* @__PURE__ */ e(
|
|
4074
4103
|
He,
|
|
4075
4104
|
{
|
|
@@ -4078,52 +4107,52 @@ const Re = {
|
|
|
4078
4107
|
className: u == null ? void 0 : u.status
|
|
4079
4108
|
}
|
|
4080
4109
|
),
|
|
4081
|
-
/* @__PURE__ */ p("div", { className:
|
|
4110
|
+
/* @__PURE__ */ p("div", { className: q.buttonContainer.button, children: [
|
|
4082
4111
|
/* @__PURE__ */ e(
|
|
4083
|
-
|
|
4112
|
+
M,
|
|
4084
4113
|
{
|
|
4085
4114
|
"data-testid": "download-button",
|
|
4086
4115
|
classNames: {
|
|
4087
|
-
base: o(
|
|
4088
|
-
icon:
|
|
4116
|
+
base: o(q.button.basic),
|
|
4117
|
+
icon: q.button.icon
|
|
4089
4118
|
},
|
|
4090
4119
|
onClick: n,
|
|
4091
4120
|
variant: "text",
|
|
4092
|
-
icon:
|
|
4121
|
+
icon: or,
|
|
4093
4122
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4094
4123
|
}
|
|
4095
4124
|
),
|
|
4096
4125
|
/* @__PURE__ */ e(
|
|
4097
|
-
|
|
4126
|
+
M,
|
|
4098
4127
|
{
|
|
4099
4128
|
"data-testid": "show-button",
|
|
4100
4129
|
classNames: {
|
|
4101
|
-
base: o(
|
|
4102
|
-
icon:
|
|
4130
|
+
base: o(q.button.basic),
|
|
4131
|
+
icon: q.button.icon
|
|
4103
4132
|
},
|
|
4104
4133
|
onClick: r,
|
|
4105
4134
|
variant: "text",
|
|
4106
|
-
icon:
|
|
4135
|
+
icon: Vr,
|
|
4107
4136
|
iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
|
|
4108
4137
|
}
|
|
4109
4138
|
),
|
|
4110
4139
|
/* @__PURE__ */ e(
|
|
4111
|
-
|
|
4140
|
+
M,
|
|
4112
4141
|
{
|
|
4113
4142
|
"data-testid": "delete-button",
|
|
4114
4143
|
classNames: {
|
|
4115
|
-
base: o(
|
|
4116
|
-
icon:
|
|
4144
|
+
base: o(q.button.basic),
|
|
4145
|
+
icon: q.button.icon
|
|
4117
4146
|
},
|
|
4118
4147
|
onClick: d,
|
|
4119
4148
|
variant: "text",
|
|
4120
|
-
icon:
|
|
4149
|
+
icon: Ae,
|
|
4121
4150
|
iconDimensions: { height: 13, width: 13, viewBox: "0 0 26 26" }
|
|
4122
4151
|
}
|
|
4123
4152
|
)
|
|
4124
4153
|
] })
|
|
4125
4154
|
] })
|
|
4126
|
-
] }),
|
|
4155
|
+
] }), q = {
|
|
4127
4156
|
wrapper: "w-[371px] h-max border border-dark-30/[.15] px-[26px] py-[15px]",
|
|
4128
4157
|
dateContainer: {
|
|
4129
4158
|
base: "flex items-center justify-between w-full",
|
|
@@ -4142,7 +4171,7 @@ const Re = {
|
|
|
4142
4171
|
basic: " p-0",
|
|
4143
4172
|
icon: "fill-dark-30/[.50]"
|
|
4144
4173
|
}
|
|
4145
|
-
},
|
|
4174
|
+
}, oi = ({
|
|
4146
4175
|
title: t,
|
|
4147
4176
|
options: i,
|
|
4148
4177
|
icon: d,
|
|
@@ -4151,7 +4180,7 @@ const Re = {
|
|
|
4151
4180
|
onCLick: l
|
|
4152
4181
|
}) => /* @__PURE__ */ p("div", { className: o(te.container, r == null ? void 0 : r.root), children: [
|
|
4153
4182
|
/* @__PURE__ */ e("div", { className: te.header, children: /* @__PURE__ */ e(
|
|
4154
|
-
|
|
4183
|
+
M,
|
|
4155
4184
|
{
|
|
4156
4185
|
icon: d,
|
|
4157
4186
|
variant: "text",
|
|
@@ -4168,12 +4197,12 @@ const Re = {
|
|
|
4168
4197
|
/* @__PURE__ */ e("div", { className: te.body, children: i == null ? void 0 : i.map((c, a) => {
|
|
4169
4198
|
var f;
|
|
4170
4199
|
return /* @__PURE__ */ p("div", { className: te.bodyItem, children: [
|
|
4171
|
-
!!c.sectionTitle && /* @__PURE__ */ e(
|
|
4172
|
-
!!c.sectionSubtitle && /* @__PURE__ */ e(
|
|
4200
|
+
!!c.sectionTitle && /* @__PURE__ */ e(Je, { variant: "h2", className: te.title, children: c.sectionTitle }),
|
|
4201
|
+
!!c.sectionSubtitle && /* @__PURE__ */ e(Je, { variant: "h3", className: te.subTitle, children: c.sectionSubtitle }),
|
|
4173
4202
|
/* @__PURE__ */ e("ul", { className: te.items, children: (f = c.items) == null ? void 0 : f.map((h, u) => /* @__PURE__ */ p("li", { children: [
|
|
4174
4203
|
!!h.subtitle && /* @__PURE__ */ e(k, { "data-testid": "subtitle", className: te.item, children: h == null ? void 0 : h.subtitle }),
|
|
4175
4204
|
/* @__PURE__ */ e(
|
|
4176
|
-
|
|
4205
|
+
M,
|
|
4177
4206
|
{
|
|
4178
4207
|
"data-testid": "link",
|
|
4179
4208
|
onClick: () => l == null ? void 0 : l(h.id),
|
|
@@ -4199,12 +4228,12 @@ const Re = {
|
|
|
4199
4228
|
link: "font-medium text-sm text-[#2AABEE] font-mono p-0 underline underline-offset-[3px] hover:text-[#2AABEE]",
|
|
4200
4229
|
headerIcon: "p-0 text-dark-10 font-semibold text-xl gap-1.5",
|
|
4201
4230
|
icon: "fill-dark-30"
|
|
4202
|
-
},
|
|
4231
|
+
}, ii = ({
|
|
4203
4232
|
title: t,
|
|
4204
4233
|
options: i,
|
|
4205
4234
|
classNames: d
|
|
4206
4235
|
}) => {
|
|
4207
|
-
const n =
|
|
4236
|
+
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
4237
|
return /* @__PURE__ */ p("div", { className: o(n, d == null ? void 0 : d.root), children: [
|
|
4209
4238
|
/* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4210
4239
|
k,
|
|
@@ -4214,9 +4243,9 @@ const Re = {
|
|
|
4214
4243
|
children: t
|
|
4215
4244
|
}
|
|
4216
4245
|
) }),
|
|
4217
|
-
/* @__PURE__ */ p("div", { className:
|
|
4246
|
+
/* @__PURE__ */ p("div", { className: ke.content.items, children: [
|
|
4218
4247
|
u.map((b) => /* @__PURE__ */ e(
|
|
4219
|
-
|
|
4248
|
+
We,
|
|
4220
4249
|
{
|
|
4221
4250
|
"data-testid": "item",
|
|
4222
4251
|
value: b.value,
|
|
@@ -4229,7 +4258,7 @@ const Re = {
|
|
|
4229
4258
|
b.label
|
|
4230
4259
|
)),
|
|
4231
4260
|
h && /* @__PURE__ */ e(
|
|
4232
|
-
|
|
4261
|
+
We,
|
|
4233
4262
|
{
|
|
4234
4263
|
"data-testid": "total",
|
|
4235
4264
|
value: h.total,
|
|
@@ -4247,7 +4276,7 @@ const Re = {
|
|
|
4247
4276
|
)
|
|
4248
4277
|
] })
|
|
4249
4278
|
] });
|
|
4250
|
-
},
|
|
4279
|
+
}, ke = {
|
|
4251
4280
|
base: "w-max",
|
|
4252
4281
|
content: {
|
|
4253
4282
|
wrapper: "flex justify-between items-center mb-2.5",
|
|
@@ -4257,7 +4286,7 @@ const Re = {
|
|
|
4257
4286
|
amount: "ml-1 text-sm font-semibold font-mono",
|
|
4258
4287
|
amountBold: "ml-1 text-sm font-bold font-mono"
|
|
4259
4288
|
}
|
|
4260
|
-
},
|
|
4289
|
+
}, We = ({
|
|
4261
4290
|
value: t,
|
|
4262
4291
|
label: i,
|
|
4263
4292
|
classNames: d,
|
|
@@ -4266,17 +4295,17 @@ const Re = {
|
|
|
4266
4295
|
k,
|
|
4267
4296
|
{
|
|
4268
4297
|
"data-testid": "label",
|
|
4269
|
-
className: o(
|
|
4298
|
+
className: o(Lt.label, d == null ? void 0 : d.label),
|
|
4270
4299
|
...n,
|
|
4271
4300
|
children: [
|
|
4272
4301
|
i,
|
|
4273
|
-
/* @__PURE__ */ e("span", { "data-testid": "value", className: o(
|
|
4302
|
+
/* @__PURE__ */ e("span", { "data-testid": "value", className: o(Lt.value, d == null ? void 0 : d.value), children: t })
|
|
4274
4303
|
]
|
|
4275
4304
|
}
|
|
4276
|
-
),
|
|
4305
|
+
), Lt = {
|
|
4277
4306
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4278
4307
|
value: "text-sm text-dark-30 font-semibold"
|
|
4279
|
-
},
|
|
4308
|
+
}, Pn = K(
|
|
4280
4309
|
({
|
|
4281
4310
|
classNames: t,
|
|
4282
4311
|
disabled: i,
|
|
@@ -4291,27 +4320,27 @@ const Re = {
|
|
|
4291
4320
|
options: u = []
|
|
4292
4321
|
}, b) => {
|
|
4293
4322
|
var xe;
|
|
4294
|
-
const [x, s] =
|
|
4295
|
-
const
|
|
4296
|
-
|
|
4297
|
-
}, C = (
|
|
4298
|
-
|
|
4299
|
-
const re = u.find((
|
|
4323
|
+
const [x, s] = A(!1), [y, v] = A(a || ""), [m, S] = A(""), [D, j] = A(null), w = ue(null), g = () => {
|
|
4324
|
+
const W = m.trim();
|
|
4325
|
+
W && (D && l ? (l(W, D), j(null)) : r(W), S(""));
|
|
4326
|
+
}, C = (W, Q) => {
|
|
4327
|
+
Q.stopPropagation(), j(W);
|
|
4328
|
+
const re = u.find((X) => X.value === W);
|
|
4300
4329
|
re && S(re.label);
|
|
4301
|
-
}, I = (
|
|
4302
|
-
|
|
4330
|
+
}, I = (W, Q) => {
|
|
4331
|
+
Q.stopPropagation(), n(W), y === W && v("");
|
|
4303
4332
|
}, T = () => {
|
|
4304
4333
|
S(""), j(null);
|
|
4305
|
-
},
|
|
4334
|
+
}, _ = () => {
|
|
4306
4335
|
s(!1), T();
|
|
4307
4336
|
}, R = () => {
|
|
4308
4337
|
d(y), s(!1), T();
|
|
4309
|
-
},
|
|
4310
|
-
s(
|
|
4311
|
-
},
|
|
4338
|
+
}, G = (W) => {
|
|
4339
|
+
s(W), W || T();
|
|
4340
|
+
}, Te = a ? ((xe = u.find((W) => W.value === a)) == null ? void 0 : xe.label) || a : "", it = Te ? H.base.selected : H.base.placeholder;
|
|
4312
4341
|
return /* @__PURE__ */ p("div", { className: H.container, children: [
|
|
4313
4342
|
f && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: i, children: f }),
|
|
4314
|
-
/* @__PURE__ */ p(de, { open: x, onOpenChange:
|
|
4343
|
+
/* @__PURE__ */ p(de, { open: x, onOpenChange: G, children: [
|
|
4315
4344
|
/* @__PURE__ */ p(
|
|
4316
4345
|
ae,
|
|
4317
4346
|
{
|
|
@@ -4331,14 +4360,14 @@ const Re = {
|
|
|
4331
4360
|
className: o(
|
|
4332
4361
|
H.base.text,
|
|
4333
4362
|
i && H.disabled.triggerText,
|
|
4334
|
-
t == null ? void 0 : t[
|
|
4335
|
-
|
|
4363
|
+
t == null ? void 0 : t[Te ? "selected" : "placeholder"],
|
|
4364
|
+
it
|
|
4336
4365
|
),
|
|
4337
|
-
children:
|
|
4366
|
+
children: Te || c
|
|
4338
4367
|
}
|
|
4339
4368
|
),
|
|
4340
4369
|
/* @__PURE__ */ e(
|
|
4341
|
-
|
|
4370
|
+
Ne,
|
|
4342
4371
|
{
|
|
4343
4372
|
width: 20,
|
|
4344
4373
|
height: 20,
|
|
@@ -4353,10 +4382,10 @@ const Re = {
|
|
|
4353
4382
|
]
|
|
4354
4383
|
}
|
|
4355
4384
|
),
|
|
4356
|
-
/* @__PURE__ */ e("div", { ref:
|
|
4385
|
+
/* @__PURE__ */ e("div", { ref: w, className: "relative z-50", children: /* @__PURE__ */ p(
|
|
4357
4386
|
le,
|
|
4358
4387
|
{
|
|
4359
|
-
container:
|
|
4388
|
+
container: w.current,
|
|
4360
4389
|
className: o(H.options.content, t == null ? void 0 : t.content),
|
|
4361
4390
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4362
4391
|
ref: b,
|
|
@@ -4368,27 +4397,27 @@ const Re = {
|
|
|
4368
4397
|
inputProps: {
|
|
4369
4398
|
id: "select-list",
|
|
4370
4399
|
classNames: { target: "px-3 py-[9px]" },
|
|
4371
|
-
placeholder:
|
|
4372
|
-
value:
|
|
4373
|
-
onChange: (
|
|
4400
|
+
placeholder: D && h ? `Редактировать ${h}` : h || "",
|
|
4401
|
+
value: m,
|
|
4402
|
+
onChange: (W) => S(W.target.value)
|
|
4374
4403
|
},
|
|
4375
|
-
icon:
|
|
4404
|
+
icon: Jt,
|
|
4376
4405
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4377
4406
|
iconPosition: "right",
|
|
4378
4407
|
onIconClick: g
|
|
4379
4408
|
}
|
|
4380
4409
|
),
|
|
4381
|
-
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((
|
|
4382
|
-
const
|
|
4410
|
+
/* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((W) => {
|
|
4411
|
+
const Q = D === W.value, re = y === W.value;
|
|
4383
4412
|
return /* @__PURE__ */ p(
|
|
4384
4413
|
"div",
|
|
4385
4414
|
{
|
|
4386
4415
|
className: o(
|
|
4387
4416
|
H.options.items,
|
|
4388
|
-
|
|
4417
|
+
Q && "opacity-50"
|
|
4389
4418
|
),
|
|
4390
|
-
onClick: (
|
|
4391
|
-
|
|
4419
|
+
onClick: (X) => {
|
|
4420
|
+
X.stopPropagation(), X.preventDefault(), Q || v(W.value);
|
|
4392
4421
|
},
|
|
4393
4422
|
children: [
|
|
4394
4423
|
/* @__PURE__ */ p(
|
|
@@ -4400,67 +4429,67 @@ const Re = {
|
|
|
4400
4429
|
re && "before:bg-dark-10"
|
|
4401
4430
|
),
|
|
4402
4431
|
children: [
|
|
4403
|
-
|
|
4404
|
-
|
|
4432
|
+
W.label,
|
|
4433
|
+
Q && " (редактируется...)"
|
|
4405
4434
|
]
|
|
4406
4435
|
}
|
|
4407
4436
|
),
|
|
4408
4437
|
/* @__PURE__ */ p("div", { className: "flex gap-2", children: [
|
|
4409
4438
|
/* @__PURE__ */ e(
|
|
4410
|
-
|
|
4439
|
+
M,
|
|
4411
4440
|
{
|
|
4412
4441
|
variant: "text",
|
|
4413
|
-
icon:
|
|
4442
|
+
icon: St,
|
|
4414
4443
|
classNames: {
|
|
4415
4444
|
base: "p-0",
|
|
4416
4445
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4417
4446
|
},
|
|
4418
|
-
onClick: (
|
|
4447
|
+
onClick: (X) => C(W.value, X),
|
|
4419
4448
|
iconDimensions: {
|
|
4420
4449
|
height: 20,
|
|
4421
4450
|
width: 20,
|
|
4422
4451
|
viewBox: "0 0 31 31"
|
|
4423
4452
|
},
|
|
4424
|
-
disabled:
|
|
4453
|
+
disabled: Q
|
|
4425
4454
|
}
|
|
4426
4455
|
),
|
|
4427
4456
|
/* @__PURE__ */ e(
|
|
4428
|
-
|
|
4457
|
+
M,
|
|
4429
4458
|
{
|
|
4430
4459
|
variant: "text",
|
|
4431
|
-
icon:
|
|
4460
|
+
icon: Ae,
|
|
4432
4461
|
classNames: {
|
|
4433
4462
|
base: "p-0",
|
|
4434
4463
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4435
4464
|
},
|
|
4436
|
-
onClick: (
|
|
4465
|
+
onClick: (X) => I(W.value, X),
|
|
4437
4466
|
iconDimensions: {
|
|
4438
4467
|
height: 20,
|
|
4439
4468
|
width: 20,
|
|
4440
4469
|
viewBox: "0 0 30 30"
|
|
4441
4470
|
},
|
|
4442
|
-
disabled:
|
|
4471
|
+
disabled: Q
|
|
4443
4472
|
}
|
|
4444
4473
|
)
|
|
4445
4474
|
] })
|
|
4446
4475
|
]
|
|
4447
4476
|
},
|
|
4448
|
-
|
|
4477
|
+
W.value
|
|
4449
4478
|
);
|
|
4450
4479
|
}) }),
|
|
4451
4480
|
/* @__PURE__ */ p("div", { className: o(H.options.primaryActionsWrapper), children: [
|
|
4452
4481
|
/* @__PURE__ */ e(
|
|
4453
|
-
|
|
4482
|
+
M,
|
|
4454
4483
|
{
|
|
4455
4484
|
type: "button",
|
|
4456
4485
|
variant: "secondary",
|
|
4457
4486
|
className: o(H.options.primaryActionCancel),
|
|
4458
|
-
onClick:
|
|
4487
|
+
onClick: _,
|
|
4459
4488
|
children: "Отмена"
|
|
4460
4489
|
}
|
|
4461
4490
|
),
|
|
4462
4491
|
/* @__PURE__ */ e(
|
|
4463
|
-
|
|
4492
|
+
M,
|
|
4464
4493
|
{
|
|
4465
4494
|
type: "button",
|
|
4466
4495
|
variant: "primary",
|
|
@@ -4478,7 +4507,7 @@ const Re = {
|
|
|
4478
4507
|
] });
|
|
4479
4508
|
}
|
|
4480
4509
|
);
|
|
4481
|
-
|
|
4510
|
+
Pn.displayName = "SelectList";
|
|
4482
4511
|
const H = {
|
|
4483
4512
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4484
4513
|
base: {
|
|
@@ -4509,7 +4538,7 @@ const H = {
|
|
|
4509
4538
|
primaryActionCancel: "text-sm font-semibold text-dark-30 font-mono cursor-pointer border border-dark-30/[.25] px-4 py-3 rounded-[10px]",
|
|
4510
4539
|
primaryActionApply: "text-sm font-semibold bg-primary-10 text-sidebar-10 font-mono cursor-pointer px-4 py-3 rounded-[10px]"
|
|
4511
4540
|
}
|
|
4512
|
-
},
|
|
4541
|
+
}, Nn = ({
|
|
4513
4542
|
classNames: t,
|
|
4514
4543
|
isActive: i,
|
|
4515
4544
|
item: { icon: d, label: n = "" },
|
|
@@ -4518,9 +4547,9 @@ const H = {
|
|
|
4518
4547
|
"div",
|
|
4519
4548
|
{
|
|
4520
4549
|
className: o(
|
|
4521
|
-
|
|
4550
|
+
Ie.base.container,
|
|
4522
4551
|
{
|
|
4523
|
-
[
|
|
4552
|
+
[Ie.active.container]: i
|
|
4524
4553
|
},
|
|
4525
4554
|
t == null ? void 0 : t.container
|
|
4526
4555
|
),
|
|
@@ -4531,9 +4560,9 @@ const H = {
|
|
|
4531
4560
|
d,
|
|
4532
4561
|
{
|
|
4533
4562
|
className: o(
|
|
4534
|
-
|
|
4563
|
+
Ie.base.icon,
|
|
4535
4564
|
{
|
|
4536
|
-
[
|
|
4565
|
+
[Ie.active.icon]: i
|
|
4537
4566
|
},
|
|
4538
4567
|
t == null ? void 0 : t.icon
|
|
4539
4568
|
)
|
|
@@ -4543,9 +4572,9 @@ const H = {
|
|
|
4543
4572
|
k,
|
|
4544
4573
|
{
|
|
4545
4574
|
className: o(
|
|
4546
|
-
|
|
4575
|
+
Ie.base.label,
|
|
4547
4576
|
{
|
|
4548
|
-
[
|
|
4577
|
+
[Ie.active.label]: i
|
|
4549
4578
|
},
|
|
4550
4579
|
t == null ? void 0 : t.label
|
|
4551
4580
|
),
|
|
@@ -4554,7 +4583,7 @@ const H = {
|
|
|
4554
4583
|
)
|
|
4555
4584
|
]
|
|
4556
4585
|
}
|
|
4557
|
-
),
|
|
4586
|
+
), Ie = {
|
|
4558
4587
|
active: {
|
|
4559
4588
|
container: "bg-sidebar-20",
|
|
4560
4589
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10",
|
|
@@ -4565,7 +4594,7 @@ const H = {
|
|
|
4565
4594
|
icon: "fill-dark-40/[.80] group-hover:fill-primary-10",
|
|
4566
4595
|
label: "max-w-[55px] text-xs text-center text-dark-40/[.80] font-semibold truncate group-hover:text-primary-10"
|
|
4567
4596
|
}
|
|
4568
|
-
},
|
|
4597
|
+
}, di = ({
|
|
4569
4598
|
tabs: t = [],
|
|
4570
4599
|
activeTabId: i,
|
|
4571
4600
|
popoverOptions: d = [],
|
|
@@ -4586,7 +4615,7 @@ const H = {
|
|
|
4586
4615
|
children: [
|
|
4587
4616
|
/* @__PURE__ */ p(de, { open: f, onOpenChange: h, children: [
|
|
4588
4617
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4589
|
-
|
|
4618
|
+
M,
|
|
4590
4619
|
{
|
|
4591
4620
|
variant: "text",
|
|
4592
4621
|
type: "button",
|
|
@@ -4596,7 +4625,7 @@ const H = {
|
|
|
4596
4625
|
base: "items-center justify-center h-[60px]",
|
|
4597
4626
|
icon: "fill-dark-40/[.80] hover:fill-primary-10"
|
|
4598
4627
|
},
|
|
4599
|
-
icon:
|
|
4628
|
+
icon: on
|
|
4600
4629
|
}
|
|
4601
4630
|
) }),
|
|
4602
4631
|
/* @__PURE__ */ e(
|
|
@@ -4618,7 +4647,7 @@ const H = {
|
|
|
4618
4647
|
},
|
|
4619
4648
|
children: [
|
|
4620
4649
|
/* @__PURE__ */ e(
|
|
4621
|
-
|
|
4650
|
+
Kt,
|
|
4622
4651
|
{
|
|
4623
4652
|
id: `popover-radio-${u.value}`,
|
|
4624
4653
|
checked: b,
|
|
@@ -4645,7 +4674,7 @@ const H = {
|
|
|
4645
4674
|
)
|
|
4646
4675
|
] }),
|
|
4647
4676
|
/* @__PURE__ */ e("div", { className: o(Le.body, r == null ? void 0 : r.body), children: t.map((u) => /* @__PURE__ */ e(
|
|
4648
|
-
|
|
4677
|
+
Nn,
|
|
4649
4678
|
{
|
|
4650
4679
|
item: u,
|
|
4651
4680
|
isActive: i === u.id,
|
|
@@ -4656,7 +4685,7 @@ const H = {
|
|
|
4656
4685
|
/* @__PURE__ */ e("div", { className: o(Le.actions, r == null ? void 0 : r.actions), children: a == null ? void 0 : a.map((u) => {
|
|
4657
4686
|
var b, x;
|
|
4658
4687
|
return /* @__PURE__ */ e(
|
|
4659
|
-
|
|
4688
|
+
kt,
|
|
4660
4689
|
{
|
|
4661
4690
|
icon: u.icon,
|
|
4662
4691
|
shape: "circle",
|
|
@@ -4684,17 +4713,17 @@ const H = {
|
|
|
4684
4713
|
popover: "flex flex-col gap-2 p-1 w-auto",
|
|
4685
4714
|
popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
|
|
4686
4715
|
actions: "flex flex-col mt-auto gap-5 mb-5"
|
|
4687
|
-
},
|
|
4716
|
+
}, ai = ({
|
|
4688
4717
|
chats: t,
|
|
4689
4718
|
onSelectChat: i,
|
|
4690
4719
|
classNames: d
|
|
4691
4720
|
}) => {
|
|
4692
|
-
const [n, r] =
|
|
4721
|
+
const [n, r] = A(null), [l, c] = A(""), a = (f) => {
|
|
4693
4722
|
r(f), i == null || i(f);
|
|
4694
4723
|
};
|
|
4695
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
4724
|
+
return /* @__PURE__ */ p("div", { className: o(zt.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
4696
4725
|
/* @__PURE__ */ e(
|
|
4697
|
-
|
|
4726
|
+
Tn,
|
|
4698
4727
|
{
|
|
4699
4728
|
value: l,
|
|
4700
4729
|
onChange: (f) => c(f.target.value),
|
|
@@ -4706,8 +4735,8 @@ const H = {
|
|
|
4706
4735
|
isSearchIcon: !1
|
|
4707
4736
|
}
|
|
4708
4737
|
),
|
|
4709
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
4710
|
-
|
|
4738
|
+
/* @__PURE__ */ e("div", { className: o(zt.list, d == null ? void 0 : d.list), children: t.map((f) => /* @__PURE__ */ e(
|
|
4739
|
+
Un,
|
|
4711
4740
|
{
|
|
4712
4741
|
onClick: () => a(f.id),
|
|
4713
4742
|
photo: f.photo,
|
|
@@ -4721,10 +4750,10 @@ const H = {
|
|
|
4721
4750
|
f.id
|
|
4722
4751
|
)) })
|
|
4723
4752
|
] });
|
|
4724
|
-
},
|
|
4753
|
+
}, zt = {
|
|
4725
4754
|
wrapper: "w-[280px] h-full flex flex-col items-center justify-start bg-sidebar-10 border-y border-e border-dark-30/[0.15] py-5",
|
|
4726
4755
|
list: "flex flex-col justify-center items-center overflow-y-auto w-full pt-5"
|
|
4727
|
-
},
|
|
4756
|
+
}, li = ({
|
|
4728
4757
|
currentUserId: t,
|
|
4729
4758
|
senderId: i,
|
|
4730
4759
|
senderName: d,
|
|
@@ -4736,20 +4765,20 @@ const H = {
|
|
|
4736
4765
|
visibleSelections: f
|
|
4737
4766
|
}) => {
|
|
4738
4767
|
const h = t === i;
|
|
4739
|
-
return /* @__PURE__ */ p("div", { className:
|
|
4768
|
+
return /* @__PURE__ */ p("div", { className: Ke.root, children: [
|
|
4740
4769
|
l && !h && /* @__PURE__ */ e(
|
|
4741
|
-
|
|
4770
|
+
Qt,
|
|
4742
4771
|
{
|
|
4743
4772
|
imageSrc: r == null ? void 0 : r.url,
|
|
4744
4773
|
alt: r == null ? void 0 : r.alt,
|
|
4745
4774
|
classNames: { wrapper: "shrink-0" }
|
|
4746
4775
|
}
|
|
4747
4776
|
),
|
|
4748
|
-
/* @__PURE__ */ e("ul", { role: "list", className: o(
|
|
4777
|
+
/* @__PURE__ */ e("ul", { role: "list", className: o(Ke.list, h && "items-end"), children: n.map((u, b, x) => {
|
|
4749
4778
|
const s = (u == null ? void 0 : u.id) && (c == null ? void 0 : c.includes(u.id));
|
|
4750
|
-
return /* @__PURE__ */ p("ul", { role: "listitem", className:
|
|
4779
|
+
return /* @__PURE__ */ p("ul", { role: "listitem", className: Ke.item, children: [
|
|
4751
4780
|
/* @__PURE__ */ e(
|
|
4752
|
-
|
|
4781
|
+
Ar,
|
|
4753
4782
|
{
|
|
4754
4783
|
id: u.id,
|
|
4755
4784
|
text: u.text,
|
|
@@ -4768,12 +4797,12 @@ const H = {
|
|
|
4768
4797
|
{
|
|
4769
4798
|
"data-testid": "select-icon",
|
|
4770
4799
|
className: o(
|
|
4771
|
-
|
|
4800
|
+
Ke.selection,
|
|
4772
4801
|
s && "bg-sidebar-20"
|
|
4773
4802
|
),
|
|
4774
4803
|
onClick: () => a == null ? void 0 : a(u == null ? void 0 : u.id),
|
|
4775
4804
|
children: /* @__PURE__ */ e(
|
|
4776
|
-
|
|
4805
|
+
dn,
|
|
4777
4806
|
{
|
|
4778
4807
|
className: o(
|
|
4779
4808
|
s ? "fill-sidebar-10" : "fill-transparent"
|
|
@@ -4788,12 +4817,12 @@ const H = {
|
|
|
4788
4817
|
] });
|
|
4789
4818
|
}) })
|
|
4790
4819
|
] });
|
|
4791
|
-
},
|
|
4820
|
+
}, Ke = {
|
|
4792
4821
|
root: "w-full flex items-end gap-4",
|
|
4793
4822
|
list: "w-full flex flex-col items-start gap-2.5",
|
|
4794
4823
|
item: "flex items-end gap-4",
|
|
4795
4824
|
selection: "flex items-center justify-center size-7 rounded-full bg-dark-30/[.08]"
|
|
4796
|
-
},
|
|
4825
|
+
}, ci = ({
|
|
4797
4826
|
messagesCount: t,
|
|
4798
4827
|
open: i,
|
|
4799
4828
|
onDelete: d,
|
|
@@ -4802,21 +4831,21 @@ const H = {
|
|
|
4802
4831
|
}) => {
|
|
4803
4832
|
const l = () => {
|
|
4804
4833
|
d(), n();
|
|
4805
|
-
}, c =
|
|
4806
|
-
return /* @__PURE__ */ e("div", { className: o(
|
|
4834
|
+
}, c = Xe.delete;
|
|
4835
|
+
return /* @__PURE__ */ e("div", { className: o(Xe.wrapper, r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ p(
|
|
4807
4836
|
"div",
|
|
4808
4837
|
{
|
|
4809
4838
|
"data-testid": "delete-message-group",
|
|
4810
4839
|
className: o(
|
|
4811
|
-
|
|
4840
|
+
Xe.content,
|
|
4812
4841
|
r == null ? void 0 : r.content,
|
|
4813
4842
|
i ? "animate-slide-up" : "animate-slide-down"
|
|
4814
4843
|
),
|
|
4815
4844
|
children: [
|
|
4816
4845
|
/* @__PURE__ */ e(
|
|
4817
|
-
|
|
4846
|
+
kt,
|
|
4818
4847
|
{
|
|
4819
|
-
icon:
|
|
4848
|
+
icon: Ue,
|
|
4820
4849
|
shape: "circle",
|
|
4821
4850
|
variant: "text",
|
|
4822
4851
|
classNames: {
|
|
@@ -4832,15 +4861,15 @@ const H = {
|
|
|
4832
4861
|
}
|
|
4833
4862
|
}
|
|
4834
4863
|
),
|
|
4835
|
-
/* @__PURE__ */ p("p", { className:
|
|
4864
|
+
/* @__PURE__ */ p("p", { className: Xe.amount, children: [
|
|
4836
4865
|
t,
|
|
4837
4866
|
" сообщения"
|
|
4838
4867
|
] }),
|
|
4839
4868
|
/* @__PURE__ */ e(
|
|
4840
|
-
|
|
4869
|
+
M,
|
|
4841
4870
|
{
|
|
4842
4871
|
variant: "text",
|
|
4843
|
-
icon:
|
|
4872
|
+
icon: Ae,
|
|
4844
4873
|
classNames: {
|
|
4845
4874
|
base: c.button,
|
|
4846
4875
|
icon: c.icon
|
|
@@ -4858,7 +4887,7 @@ const H = {
|
|
|
4858
4887
|
]
|
|
4859
4888
|
}
|
|
4860
4889
|
) });
|
|
4861
|
-
},
|
|
4890
|
+
}, Xe = {
|
|
4862
4891
|
wrapper: "flex justify-center",
|
|
4863
4892
|
content: "flex items-center py-3 px-5 border rounded-xl border-dark-40/[.25] fixed bottom-0 bg-white",
|
|
4864
4893
|
delete: {
|
|
@@ -4866,10 +4895,10 @@ const H = {
|
|
|
4866
4895
|
icon: "fill-danger-10"
|
|
4867
4896
|
},
|
|
4868
4897
|
amount: "ms-5 me-9"
|
|
4869
|
-
},
|
|
4898
|
+
}, eo = [
|
|
4870
4899
|
{
|
|
4871
4900
|
id: "download",
|
|
4872
|
-
icon:
|
|
4901
|
+
icon: Ir,
|
|
4873
4902
|
iconSizes: {
|
|
4874
4903
|
width: 20,
|
|
4875
4904
|
height: 20,
|
|
@@ -4879,7 +4908,7 @@ const H = {
|
|
|
4879
4908
|
},
|
|
4880
4909
|
{
|
|
4881
4910
|
id: "edit",
|
|
4882
|
-
icon:
|
|
4911
|
+
icon: St,
|
|
4883
4912
|
iconSizes: {
|
|
4884
4913
|
width: 20,
|
|
4885
4914
|
height: 20,
|
|
@@ -4889,7 +4918,7 @@ const H = {
|
|
|
4889
4918
|
},
|
|
4890
4919
|
{
|
|
4891
4920
|
id: "response",
|
|
4892
|
-
icon:
|
|
4921
|
+
icon: an,
|
|
4893
4922
|
iconSizes: {
|
|
4894
4923
|
width: 20,
|
|
4895
4924
|
height: 20
|
|
@@ -4898,7 +4927,7 @@ const H = {
|
|
|
4898
4927
|
},
|
|
4899
4928
|
{
|
|
4900
4929
|
id: "copy",
|
|
4901
|
-
icon:
|
|
4930
|
+
icon: ln,
|
|
4902
4931
|
iconSizes: {
|
|
4903
4932
|
width: 20,
|
|
4904
4933
|
height: 20
|
|
@@ -4907,7 +4936,7 @@ const H = {
|
|
|
4907
4936
|
},
|
|
4908
4937
|
{
|
|
4909
4938
|
id: "select",
|
|
4910
|
-
icon:
|
|
4939
|
+
icon: cn,
|
|
4911
4940
|
iconSizes: {
|
|
4912
4941
|
width: 20,
|
|
4913
4942
|
height: 20
|
|
@@ -4916,7 +4945,7 @@ const H = {
|
|
|
4916
4945
|
},
|
|
4917
4946
|
{
|
|
4918
4947
|
id: "delete",
|
|
4919
|
-
icon:
|
|
4948
|
+
icon: Ae,
|
|
4920
4949
|
iconSizes: {
|
|
4921
4950
|
width: 20,
|
|
4922
4951
|
height: 20,
|
|
@@ -4925,12 +4954,12 @@ const H = {
|
|
|
4925
4954
|
isDanger: !0,
|
|
4926
4955
|
text: "Удалить"
|
|
4927
4956
|
}
|
|
4928
|
-
],
|
|
4929
|
-
const [d, n] =
|
|
4957
|
+
], pi = ({ trigger: t, onClick: i }) => {
|
|
4958
|
+
const [d, n] = A(!1), r = (u) => {
|
|
4930
4959
|
u.preventDefault(), n(!0);
|
|
4931
4960
|
}, l = (u) => {
|
|
4932
4961
|
i(u), n(!1);
|
|
4933
|
-
}, { icon: c, base: a } =
|
|
4962
|
+
}, { icon: c, base: a } = gt.button.normal, { icon: f, base: h } = gt.button.danger;
|
|
4934
4963
|
return /* @__PURE__ */ p(de, { open: d, onOpenChange: n, children: [
|
|
4935
4964
|
/* @__PURE__ */ e(ae, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4936
4965
|
"div",
|
|
@@ -4946,9 +4975,9 @@ const H = {
|
|
|
4946
4975
|
align: "center",
|
|
4947
4976
|
sideOffset: 4,
|
|
4948
4977
|
side: "top",
|
|
4949
|
-
className:
|
|
4950
|
-
children:
|
|
4951
|
-
|
|
4978
|
+
className: gt.wrapper,
|
|
4979
|
+
children: eo.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: y }) => /* @__PURE__ */ e(
|
|
4980
|
+
M,
|
|
4952
4981
|
{
|
|
4953
4982
|
"data-testid": "action",
|
|
4954
4983
|
variant: "text",
|
|
@@ -4967,7 +4996,7 @@ const H = {
|
|
|
4967
4996
|
}
|
|
4968
4997
|
)
|
|
4969
4998
|
] });
|
|
4970
|
-
},
|
|
4999
|
+
}, gt = {
|
|
4971
5000
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
4972
5001
|
button: {
|
|
4973
5002
|
normal: {
|
|
@@ -4979,9 +5008,9 @@ const H = {
|
|
|
4979
5008
|
base: "text-danger-10 hover:text-danger-20 p-0 active:text-danger-30 justify-start text-base"
|
|
4980
5009
|
}
|
|
4981
5010
|
}
|
|
4982
|
-
},
|
|
5011
|
+
}, hi = ({ tabs: t }) => {
|
|
4983
5012
|
const i = Xt();
|
|
4984
|
-
return /* @__PURE__ */ e("div", { className:
|
|
5013
|
+
return /* @__PURE__ */ e("div", { className: to.wrapper, "data-testid": "tab-list", children: t.map(({ id: d, icon: n, label: r, isActive: l, href: c }) => /* @__PURE__ */ e(
|
|
4985
5014
|
Fr,
|
|
4986
5015
|
{
|
|
4987
5016
|
icon: n,
|
|
@@ -4992,9 +5021,9 @@ const H = {
|
|
|
4992
5021
|
},
|
|
4993
5022
|
d
|
|
4994
5023
|
)) });
|
|
4995
|
-
},
|
|
5024
|
+
}, to = {
|
|
4996
5025
|
wrapper: "flex items-center mt-4 mb-6 gap-2"
|
|
4997
|
-
},
|
|
5026
|
+
}, ui = ({
|
|
4998
5027
|
options: t = [],
|
|
4999
5028
|
value: i,
|
|
5000
5029
|
placeholder: d,
|
|
@@ -5004,7 +5033,7 @@ const H = {
|
|
|
5004
5033
|
onEdit: c,
|
|
5005
5034
|
onDelete: a
|
|
5006
5035
|
}) => {
|
|
5007
|
-
const [f, h] =
|
|
5036
|
+
const [f, h] = A(!1), u = t == null ? void 0 : t.find((x) => x.id === i), b = (x, s) => {
|
|
5008
5037
|
x.stopPropagation(), r(s), h(!1);
|
|
5009
5038
|
};
|
|
5010
5039
|
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ p(de, { open: f, onOpenChange: h, children: [
|
|
@@ -5020,7 +5049,7 @@ const H = {
|
|
|
5020
5049
|
),
|
|
5021
5050
|
children: [
|
|
5022
5051
|
i ? u == null ? void 0 : u.name.ru : d,
|
|
5023
|
-
/* @__PURE__ */ e(
|
|
5052
|
+
/* @__PURE__ */ e(ir, { className: o(oe.icon, f && "-rotate-180") })
|
|
5024
5053
|
]
|
|
5025
5054
|
}
|
|
5026
5055
|
),
|
|
@@ -5039,7 +5068,7 @@ const H = {
|
|
|
5039
5068
|
),
|
|
5040
5069
|
/* @__PURE__ */ p("div", { className: oe.actions, children: [
|
|
5041
5070
|
/* @__PURE__ */ e(
|
|
5042
|
-
|
|
5071
|
+
M,
|
|
5043
5072
|
{
|
|
5044
5073
|
"data-testid": "edit-button",
|
|
5045
5074
|
variant: "text",
|
|
@@ -5048,7 +5077,7 @@ const H = {
|
|
|
5048
5077
|
y.stopPropagation(), c(s);
|
|
5049
5078
|
},
|
|
5050
5079
|
children: /* @__PURE__ */ e(
|
|
5051
|
-
|
|
5080
|
+
St,
|
|
5052
5081
|
{
|
|
5053
5082
|
width: 20,
|
|
5054
5083
|
height: 20,
|
|
@@ -5059,7 +5088,7 @@ const H = {
|
|
|
5059
5088
|
}
|
|
5060
5089
|
),
|
|
5061
5090
|
/* @__PURE__ */ e(
|
|
5062
|
-
|
|
5091
|
+
M,
|
|
5063
5092
|
{
|
|
5064
5093
|
"data-testid": "delete-button",
|
|
5065
5094
|
variant: "text",
|
|
@@ -5068,7 +5097,7 @@ const H = {
|
|
|
5068
5097
|
y.stopPropagation(), a(s);
|
|
5069
5098
|
},
|
|
5070
5099
|
children: /* @__PURE__ */ e(
|
|
5071
|
-
|
|
5100
|
+
Ae,
|
|
5072
5101
|
{
|
|
5073
5102
|
width: 20,
|
|
5074
5103
|
height: 20,
|
|
@@ -5081,10 +5110,10 @@ const H = {
|
|
|
5081
5110
|
] })
|
|
5082
5111
|
] }, s)) }),
|
|
5083
5112
|
/* @__PURE__ */ e(
|
|
5084
|
-
|
|
5113
|
+
M,
|
|
5085
5114
|
{
|
|
5086
5115
|
variant: "text",
|
|
5087
|
-
icon:
|
|
5116
|
+
icon: Jt,
|
|
5088
5117
|
iconPosition: "left",
|
|
5089
5118
|
iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
|
|
5090
5119
|
size: "medium",
|
|
@@ -5108,7 +5137,7 @@ const H = {
|
|
|
5108
5137
|
item: "flex items-center justify-between cursor-pointer",
|
|
5109
5138
|
name: 'w-full hover:text-primary-10 flex items-center before:content-[""] before:block before:bg-sidebar-10 before:size-2 before:rounded-full before:mr-3.5',
|
|
5110
5139
|
actions: "flex gap-2"
|
|
5111
|
-
},
|
|
5140
|
+
}, ro = {
|
|
5112
5141
|
pie: {
|
|
5113
5142
|
radius: ["0%", "90%"],
|
|
5114
5143
|
legendPosition: { orient: "vertical", left: 0, bottom: "10%" },
|
|
@@ -5119,12 +5148,12 @@ const H = {
|
|
|
5119
5148
|
legendPosition: { orient: "vertical", left: "55%", top: "5%" },
|
|
5120
5149
|
chartCenter: ["25%", "50%"]
|
|
5121
5150
|
}
|
|
5122
|
-
},
|
|
5151
|
+
}, no = ({
|
|
5123
5152
|
chartMode: t = "pie",
|
|
5124
5153
|
colors: i,
|
|
5125
5154
|
items: d
|
|
5126
5155
|
}) => {
|
|
5127
|
-
const { radius: n, legendPosition: r, chartCenter: l } =
|
|
5156
|
+
const { radius: n, legendPosition: r, chartCenter: l } = ro[t];
|
|
5128
5157
|
return {
|
|
5129
5158
|
color: i,
|
|
5130
5159
|
tooltip: {
|
|
@@ -5139,7 +5168,7 @@ const H = {
|
|
|
5139
5168
|
icon: "circle",
|
|
5140
5169
|
textStyle: {
|
|
5141
5170
|
padding: [0, 0, 0, 10],
|
|
5142
|
-
color:
|
|
5171
|
+
color: Pe.dark[10],
|
|
5143
5172
|
fontSize: 14,
|
|
5144
5173
|
fontWeight: 700,
|
|
5145
5174
|
rich: {
|
|
@@ -5171,7 +5200,7 @@ const H = {
|
|
|
5171
5200
|
}
|
|
5172
5201
|
]
|
|
5173
5202
|
};
|
|
5174
|
-
},
|
|
5203
|
+
}, fi = K(
|
|
5175
5204
|
({
|
|
5176
5205
|
chartMode: t = "doughtnut",
|
|
5177
5206
|
mode: i = "chart",
|
|
@@ -5189,7 +5218,7 @@ const H = {
|
|
|
5189
5218
|
{ value: r.free, name: "Свободно" }
|
|
5190
5219
|
];
|
|
5191
5220
|
r.blocked !== void 0 && h.push({ value: r.blocked, name: "Заблокировано" });
|
|
5192
|
-
const u = i === "chart" ?
|
|
5221
|
+
const u = i === "chart" ? no({ chartMode: t, colors: l, items: h }) : void 0;
|
|
5193
5222
|
return /* @__PURE__ */ p(
|
|
5194
5223
|
"div",
|
|
5195
5224
|
{
|
|
@@ -5200,7 +5229,7 @@ const H = {
|
|
|
5200
5229
|
children: [
|
|
5201
5230
|
/* @__PURE__ */ p("div", { className: o(E.header, c == null ? void 0 : c.header), children: [
|
|
5202
5231
|
/* @__PURE__ */ e(
|
|
5203
|
-
|
|
5232
|
+
Ye,
|
|
5204
5233
|
{
|
|
5205
5234
|
title: d,
|
|
5206
5235
|
icon: n,
|
|
@@ -5221,7 +5250,7 @@ const H = {
|
|
|
5221
5250
|
/* @__PURE__ */ e(k, { className: o(E.total, c == null ? void 0 : c.total), children: r.total }),
|
|
5222
5251
|
r.growth && /* @__PURE__ */ p("div", { className: o(E.badge, c == null ? void 0 : c.badge), children: [
|
|
5223
5252
|
/* @__PURE__ */ e(
|
|
5224
|
-
|
|
5253
|
+
vt,
|
|
5225
5254
|
{
|
|
5226
5255
|
width: 7,
|
|
5227
5256
|
height: 7,
|
|
@@ -5243,9 +5272,9 @@ const H = {
|
|
|
5243
5272
|
] })
|
|
5244
5273
|
] }),
|
|
5245
5274
|
i === "chart" && /* @__PURE__ */ e(
|
|
5246
|
-
|
|
5275
|
+
nt,
|
|
5247
5276
|
{
|
|
5248
|
-
echarts:
|
|
5277
|
+
echarts: ot,
|
|
5249
5278
|
option: u,
|
|
5250
5279
|
style: { height: 250 }
|
|
5251
5280
|
}
|
|
@@ -5257,12 +5286,12 @@ const H = {
|
|
|
5257
5286
|
className: o(E.progress.line, (x = c == null ? void 0 : c.progress) == null ? void 0 : x.line)
|
|
5258
5287
|
}
|
|
5259
5288
|
),
|
|
5260
|
-
h.map(({ name: s, value: y },
|
|
5261
|
-
var
|
|
5289
|
+
h.map(({ name: s, value: y }, v) => {
|
|
5290
|
+
var m, S, D;
|
|
5262
5291
|
return /* @__PURE__ */ p(
|
|
5263
5292
|
"div",
|
|
5264
5293
|
{
|
|
5265
|
-
className: o(E.progress.row, (
|
|
5294
|
+
className: o(E.progress.row, (m = c == null ? void 0 : c.progress) == null ? void 0 : m.row),
|
|
5266
5295
|
children: [
|
|
5267
5296
|
/* @__PURE__ */ e(
|
|
5268
5297
|
k,
|
|
@@ -5275,11 +5304,11 @@ const H = {
|
|
|
5275
5304
|
}
|
|
5276
5305
|
),
|
|
5277
5306
|
/* @__PURE__ */ e(
|
|
5278
|
-
|
|
5307
|
+
hr,
|
|
5279
5308
|
{
|
|
5280
5309
|
value: y,
|
|
5281
5310
|
total: r.total,
|
|
5282
|
-
color: l[
|
|
5311
|
+
color: l[v],
|
|
5283
5312
|
classNames: {
|
|
5284
5313
|
bar: E.progress.bar,
|
|
5285
5314
|
indicator: E.progress.indicator
|
|
@@ -5291,7 +5320,7 @@ const H = {
|
|
|
5291
5320
|
{
|
|
5292
5321
|
className: o(
|
|
5293
5322
|
E.progress.value,
|
|
5294
|
-
(
|
|
5323
|
+
(D = c == null ? void 0 : c.progress) == null ? void 0 : D.value
|
|
5295
5324
|
),
|
|
5296
5325
|
children: y
|
|
5297
5326
|
}
|
|
@@ -5325,7 +5354,7 @@ const H = {
|
|
|
5325
5354
|
indicator: "h-full rounded-e-md",
|
|
5326
5355
|
value: "text-xs font-semibold w-5 text-left"
|
|
5327
5356
|
}
|
|
5328
|
-
},
|
|
5357
|
+
}, oo = (t) => {
|
|
5329
5358
|
switch (t) {
|
|
5330
5359
|
case "payment":
|
|
5331
5360
|
return { width: 240, height: 110 };
|
|
@@ -5335,7 +5364,7 @@ const H = {
|
|
|
5335
5364
|
default:
|
|
5336
5365
|
return null;
|
|
5337
5366
|
}
|
|
5338
|
-
},
|
|
5367
|
+
}, io = (t, i) => {
|
|
5339
5368
|
const d = [20, 50, 100, 101, ...t === "payment" ? [140] : []];
|
|
5340
5369
|
return {
|
|
5341
5370
|
grid: {
|
|
@@ -5371,14 +5400,14 @@ const H = {
|
|
|
5371
5400
|
}
|
|
5372
5401
|
]
|
|
5373
5402
|
};
|
|
5374
|
-
},
|
|
5403
|
+
}, bi = K(
|
|
5375
5404
|
({ data: t, title: i, mode: d = "stat", settings: n, classNames: r, ...l }, c) => {
|
|
5376
5405
|
const {
|
|
5377
5406
|
chartColor: a = "#1B9BE4",
|
|
5378
5407
|
allWhite: f = !1,
|
|
5379
5408
|
arrowDown: h = !1,
|
|
5380
5409
|
icon: u = null
|
|
5381
|
-
} = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ?
|
|
5410
|
+
} = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ? _r(t.total) : t.total, s = oo(d), y = io(d, b);
|
|
5382
5411
|
return /* @__PURE__ */ p(
|
|
5383
5412
|
"div",
|
|
5384
5413
|
{
|
|
@@ -5413,7 +5442,7 @@ const H = {
|
|
|
5413
5442
|
d === "payment" && /* @__PURE__ */ e(k, { className: ie.payment, children: "Сум" }),
|
|
5414
5443
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.badge, r == null ? void 0 : r.badge), children: [
|
|
5415
5444
|
/* @__PURE__ */ e(
|
|
5416
|
-
|
|
5445
|
+
vt,
|
|
5417
5446
|
{
|
|
5418
5447
|
width: 7,
|
|
5419
5448
|
height: 7,
|
|
@@ -5428,8 +5457,8 @@ const H = {
|
|
|
5428
5457
|
] })
|
|
5429
5458
|
] }),
|
|
5430
5459
|
d === "count" && /* @__PURE__ */ p("div", { className: o(ie.counBlock, r == null ? void 0 : r.countBlock), children: [
|
|
5431
|
-
/* @__PURE__ */ e(
|
|
5432
|
-
/* @__PURE__ */ e(
|
|
5460
|
+
/* @__PURE__ */ e(We, { label: "Физическое лицо:", value: t.physical }),
|
|
5461
|
+
/* @__PURE__ */ e(We, { label: "Юридическое лицо:", value: t.legal })
|
|
5433
5462
|
] }),
|
|
5434
5463
|
t.growth && d !== "count" && /* @__PURE__ */ p(
|
|
5435
5464
|
"div",
|
|
@@ -5438,7 +5467,7 @@ const H = {
|
|
|
5438
5467
|
style: { color: b },
|
|
5439
5468
|
children: [
|
|
5440
5469
|
/* @__PURE__ */ e(
|
|
5441
|
-
|
|
5470
|
+
vt,
|
|
5442
5471
|
{
|
|
5443
5472
|
width: 16,
|
|
5444
5473
|
height: 16,
|
|
@@ -5454,9 +5483,9 @@ const H = {
|
|
|
5454
5483
|
),
|
|
5455
5484
|
d === "stat" && /* @__PURE__ */ e("div", { className: o(ie.icon, r == null ? void 0 : r.icon), children: u }),
|
|
5456
5485
|
s && /* @__PURE__ */ e(
|
|
5457
|
-
|
|
5486
|
+
nt,
|
|
5458
5487
|
{
|
|
5459
|
-
echarts:
|
|
5488
|
+
echarts: ot,
|
|
5460
5489
|
option: y,
|
|
5461
5490
|
style: {
|
|
5462
5491
|
...s,
|
|
@@ -5481,7 +5510,7 @@ const H = {
|
|
|
5481
5510
|
payment: "text-base font-medium text-dark-30/50",
|
|
5482
5511
|
counBlock: "flex flex-col gap-1",
|
|
5483
5512
|
totalBlock: "flex flex-row items-start gap-2"
|
|
5484
|
-
},
|
|
5513
|
+
}, ao = (t) => {
|
|
5485
5514
|
const i = 100 - t;
|
|
5486
5515
|
return {
|
|
5487
5516
|
emphasis: { disabled: !0 },
|
|
@@ -5492,7 +5521,7 @@ const H = {
|
|
|
5492
5521
|
textStyle: {
|
|
5493
5522
|
fontSize: 22,
|
|
5494
5523
|
fontWeight: 600,
|
|
5495
|
-
color:
|
|
5524
|
+
color: Pe.dark[10]
|
|
5496
5525
|
}
|
|
5497
5526
|
},
|
|
5498
5527
|
tooltip: !1,
|
|
@@ -5508,14 +5537,14 @@ const H = {
|
|
|
5508
5537
|
data: [
|
|
5509
5538
|
{
|
|
5510
5539
|
value: t,
|
|
5511
|
-
itemStyle: { color:
|
|
5540
|
+
itemStyle: { color: Pe.success[20], borderRadius: 4 }
|
|
5512
5541
|
},
|
|
5513
5542
|
{ value: i, itemStyle: { color: "#F3F4F5" } }
|
|
5514
5543
|
]
|
|
5515
5544
|
}
|
|
5516
5545
|
]
|
|
5517
5546
|
};
|
|
5518
|
-
},
|
|
5547
|
+
}, xi = K(
|
|
5519
5548
|
({
|
|
5520
5549
|
mode: t = "master",
|
|
5521
5550
|
title: i,
|
|
@@ -5528,7 +5557,7 @@ const H = {
|
|
|
5528
5557
|
avatarGroupProps: f,
|
|
5529
5558
|
...h
|
|
5530
5559
|
}, u) => {
|
|
5531
|
-
const b =
|
|
5560
|
+
const b = ao(n);
|
|
5532
5561
|
return /* @__PURE__ */ p(
|
|
5533
5562
|
"div",
|
|
5534
5563
|
{
|
|
@@ -5539,16 +5568,16 @@ const H = {
|
|
|
5539
5568
|
children: [
|
|
5540
5569
|
/* @__PURE__ */ p("div", { className: o(ze.block, a == null ? void 0 : a.block), children: [
|
|
5541
5570
|
/* @__PURE__ */ e(
|
|
5542
|
-
|
|
5571
|
+
Ye,
|
|
5543
5572
|
{
|
|
5544
5573
|
title: i,
|
|
5545
5574
|
icon: d,
|
|
5546
5575
|
classNames: { title: ze.title, wrapper: "items-center" }
|
|
5547
5576
|
}
|
|
5548
5577
|
),
|
|
5549
|
-
t === "master" && f && c && /* @__PURE__ */ p(
|
|
5578
|
+
t === "master" && f && c && /* @__PURE__ */ p(st, { children: [
|
|
5550
5579
|
/* @__PURE__ */ e(
|
|
5551
|
-
|
|
5580
|
+
Bt,
|
|
5552
5581
|
{
|
|
5553
5582
|
...f,
|
|
5554
5583
|
classNames: {
|
|
@@ -5558,11 +5587,11 @@ const H = {
|
|
|
5558
5587
|
}
|
|
5559
5588
|
}
|
|
5560
5589
|
),
|
|
5561
|
-
/* @__PURE__ */ e(
|
|
5590
|
+
/* @__PURE__ */ e(pr, { rating: c, position: "right" })
|
|
5562
5591
|
] }),
|
|
5563
|
-
t === "service" && l && /* @__PURE__ */ p(
|
|
5592
|
+
t === "service" && l && /* @__PURE__ */ p(st, { children: [
|
|
5564
5593
|
/* @__PURE__ */ e(
|
|
5565
|
-
|
|
5594
|
+
Ye,
|
|
5566
5595
|
{
|
|
5567
5596
|
title: l.name,
|
|
5568
5597
|
icon: l.icon,
|
|
@@ -5582,7 +5611,7 @@ const H = {
|
|
|
5582
5611
|
)
|
|
5583
5612
|
] }),
|
|
5584
5613
|
/* @__PURE__ */ e(
|
|
5585
|
-
|
|
5614
|
+
We,
|
|
5586
5615
|
{
|
|
5587
5616
|
label: "Заявки в месяц:",
|
|
5588
5617
|
value: r,
|
|
@@ -5591,9 +5620,9 @@ const H = {
|
|
|
5591
5620
|
)
|
|
5592
5621
|
] }),
|
|
5593
5622
|
/* @__PURE__ */ e(
|
|
5594
|
-
|
|
5623
|
+
nt,
|
|
5595
5624
|
{
|
|
5596
|
-
echarts:
|
|
5625
|
+
echarts: ot,
|
|
5597
5626
|
option: b,
|
|
5598
5627
|
style: { height: 135, width: 135 }
|
|
5599
5628
|
}
|
|
@@ -5608,10 +5637,10 @@ const H = {
|
|
|
5608
5637
|
status: "rounded-[8px] text-sm text-secondary-10 font-medium w-max py-1 px-2",
|
|
5609
5638
|
block: "flex flex-col h-full gap-4",
|
|
5610
5639
|
serviceTitle: "text-2xl text-semibold leading-none pt-2"
|
|
5611
|
-
},
|
|
5640
|
+
}, lo = (t, i) => {
|
|
5612
5641
|
const d = i - t;
|
|
5613
5642
|
return d >= 1 ? 100 : d > 0 ? d * 100 : 0;
|
|
5614
|
-
},
|
|
5643
|
+
}, pr = ({
|
|
5615
5644
|
rating: t,
|
|
5616
5645
|
classNames: i,
|
|
5617
5646
|
position: d = "left",
|
|
@@ -5629,11 +5658,11 @@ const H = {
|
|
|
5629
5658
|
/* @__PURE__ */ e("div", { className: o(he.block, i == null ? void 0 : i.block), children: [...Array(5)].map((r, l) => {
|
|
5630
5659
|
const c = Math.max(
|
|
5631
5660
|
0,
|
|
5632
|
-
Math.min(100,
|
|
5661
|
+
Math.min(100, lo(l, t))
|
|
5633
5662
|
);
|
|
5634
5663
|
return /* @__PURE__ */ p("div", { className: o(he.overlay.block), children: [
|
|
5635
5664
|
/* @__PURE__ */ e(
|
|
5636
|
-
|
|
5665
|
+
Mt,
|
|
5637
5666
|
{
|
|
5638
5667
|
className: o(he.icon, he.empty),
|
|
5639
5668
|
"data-testid": "star-empty"
|
|
@@ -5646,7 +5675,7 @@ const H = {
|
|
|
5646
5675
|
style: { width: `${c}%` },
|
|
5647
5676
|
"data-testid": "star-overlay",
|
|
5648
5677
|
children: /* @__PURE__ */ e(
|
|
5649
|
-
|
|
5678
|
+
Mt,
|
|
5650
5679
|
{
|
|
5651
5680
|
className: o(he.icon, he.filled),
|
|
5652
5681
|
"data-testid": "star-filled"
|
|
@@ -5670,7 +5699,7 @@ const H = {
|
|
|
5670
5699
|
block: "relative",
|
|
5671
5700
|
star: "absolute inset-0 overflow-hidden"
|
|
5672
5701
|
}
|
|
5673
|
-
},
|
|
5702
|
+
}, co = ({
|
|
5674
5703
|
total: t,
|
|
5675
5704
|
value: i,
|
|
5676
5705
|
color: d
|
|
@@ -5685,7 +5714,7 @@ const H = {
|
|
|
5685
5714
|
textStyle: {
|
|
5686
5715
|
fontSize: 20,
|
|
5687
5716
|
fontWeight: 600,
|
|
5688
|
-
color:
|
|
5717
|
+
color: Pe.dark[10]
|
|
5689
5718
|
}
|
|
5690
5719
|
},
|
|
5691
5720
|
tooltip: {
|
|
@@ -5708,7 +5737,7 @@ const H = {
|
|
|
5708
5737
|
}
|
|
5709
5738
|
]
|
|
5710
5739
|
};
|
|
5711
|
-
},
|
|
5740
|
+
}, gi = K(
|
|
5712
5741
|
({ title: t, icon: i, data: d, colors: n, classNames: r, ...l }, c) => {
|
|
5713
5742
|
var f;
|
|
5714
5743
|
const a = [
|
|
@@ -5726,7 +5755,7 @@ const H = {
|
|
|
5726
5755
|
children: [
|
|
5727
5756
|
/* @__PURE__ */ p("div", { className: o(N.header, r == null ? void 0 : r.header), children: [
|
|
5728
5757
|
/* @__PURE__ */ e(
|
|
5729
|
-
|
|
5758
|
+
Ye,
|
|
5730
5759
|
{
|
|
5731
5760
|
title: t,
|
|
5732
5761
|
icon: i,
|
|
@@ -5762,7 +5791,7 @@ const H = {
|
|
|
5762
5791
|
}
|
|
5763
5792
|
),
|
|
5764
5793
|
/* @__PURE__ */ e(
|
|
5765
|
-
|
|
5794
|
+
We,
|
|
5766
5795
|
{
|
|
5767
5796
|
label: h.label,
|
|
5768
5797
|
value: h.value,
|
|
@@ -5779,11 +5808,11 @@ const H = {
|
|
|
5779
5808
|
}) })
|
|
5780
5809
|
] }),
|
|
5781
5810
|
/* @__PURE__ */ e("div", { className: o(N.chartBlock, r == null ? void 0 : r.chartBlock), children: a.map((h, u) => /* @__PURE__ */ e(
|
|
5782
|
-
|
|
5811
|
+
nt,
|
|
5783
5812
|
{
|
|
5784
|
-
echarts:
|
|
5813
|
+
echarts: ot,
|
|
5785
5814
|
"data-testid": "chart",
|
|
5786
|
-
option:
|
|
5815
|
+
option: co({
|
|
5787
5816
|
total: d.total,
|
|
5788
5817
|
value: h.value,
|
|
5789
5818
|
color: n[u]
|
|
@@ -5811,7 +5840,7 @@ const H = {
|
|
|
5811
5840
|
root: "flex flex-col gap-2",
|
|
5812
5841
|
dot: "size-2 rounded-full"
|
|
5813
5842
|
}
|
|
5814
|
-
},
|
|
5843
|
+
}, si = K(
|
|
5815
5844
|
({ paid: t, pending: i, overdue: d, title: n, icon: r, total: l, classNames: c, ...a }, f) => {
|
|
5816
5845
|
var u;
|
|
5817
5846
|
const h = [
|
|
@@ -5827,32 +5856,32 @@ const H = {
|
|
|
5827
5856
|
"div",
|
|
5828
5857
|
{
|
|
5829
5858
|
...a,
|
|
5830
|
-
className: o(
|
|
5859
|
+
className: o(je.root, c == null ? void 0 : c.root),
|
|
5831
5860
|
"data-testid": "card-progress",
|
|
5832
5861
|
ref: f,
|
|
5833
5862
|
children: [
|
|
5834
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
5863
|
+
/* @__PURE__ */ p("div", { className: o(je.header, c == null ? void 0 : c.header), children: [
|
|
5835
5864
|
/* @__PURE__ */ e(
|
|
5836
|
-
|
|
5865
|
+
Ye,
|
|
5837
5866
|
{
|
|
5838
5867
|
title: n,
|
|
5839
5868
|
icon: r,
|
|
5840
|
-
classNames: { title:
|
|
5869
|
+
classNames: { title: je.title, wrapper: "items-center" }
|
|
5841
5870
|
}
|
|
5842
5871
|
),
|
|
5843
5872
|
/* @__PURE__ */ e(
|
|
5844
5873
|
Ee,
|
|
5845
5874
|
{
|
|
5846
5875
|
to: "/analytics-reporting",
|
|
5847
|
-
className: o(
|
|
5876
|
+
className: o(je.link, c == null ? void 0 : c.link),
|
|
5848
5877
|
children: "Подробнее"
|
|
5849
5878
|
}
|
|
5850
5879
|
)
|
|
5851
5880
|
] }),
|
|
5852
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
5853
|
-
var
|
|
5881
|
+
/* @__PURE__ */ e("div", { className: o(je.bar.block, (u = c == null ? void 0 : c.bar) == null ? void 0 : u.block), children: h.map(({ label: b, value: x, color: s }, y) => {
|
|
5882
|
+
var v;
|
|
5854
5883
|
return /* @__PURE__ */ p("div", { children: [
|
|
5855
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
5884
|
+
/* @__PURE__ */ p("div", { className: o(je.bar.text, (v = c == null ? void 0 : c.bar) == null ? void 0 : v.text), children: [
|
|
5856
5885
|
/* @__PURE__ */ e(k, { children: b }),
|
|
5857
5886
|
/* @__PURE__ */ p(k, { className: o(y === 2 && "text-danger-10"), children: [
|
|
5858
5887
|
x,
|
|
@@ -5860,7 +5889,7 @@ const H = {
|
|
|
5860
5889
|
] })
|
|
5861
5890
|
] }),
|
|
5862
5891
|
/* @__PURE__ */ e(
|
|
5863
|
-
|
|
5892
|
+
hr,
|
|
5864
5893
|
{
|
|
5865
5894
|
value: x,
|
|
5866
5895
|
total: l,
|
|
@@ -5874,7 +5903,7 @@ const H = {
|
|
|
5874
5903
|
}
|
|
5875
5904
|
);
|
|
5876
5905
|
}
|
|
5877
|
-
),
|
|
5906
|
+
), je = {
|
|
5878
5907
|
root: "w-[651px] h-[287px] bg-white p-5 shadow-3xl rounded-[10px] font-mono",
|
|
5879
5908
|
header: "flex flex-row justify-between",
|
|
5880
5909
|
link: "text-dark-40 cursor-pointer font-medium text-base",
|
|
@@ -5885,149 +5914,149 @@ const H = {
|
|
|
5885
5914
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5886
5915
|
indicator: "h-full rounded-md"
|
|
5887
5916
|
}
|
|
5888
|
-
},
|
|
5917
|
+
}, hr = ({
|
|
5889
5918
|
value: t,
|
|
5890
5919
|
total: i,
|
|
5891
5920
|
color: d,
|
|
5892
5921
|
classNames: n
|
|
5893
5922
|
}) => {
|
|
5894
|
-
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] =
|
|
5895
|
-
return
|
|
5923
|
+
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] = A(0);
|
|
5924
|
+
return Me(() => {
|
|
5896
5925
|
const a = requestAnimationFrame(() => {
|
|
5897
5926
|
c(r);
|
|
5898
5927
|
});
|
|
5899
5928
|
return () => cancelAnimationFrame(a);
|
|
5900
|
-
}, [r]), /* @__PURE__ */ e(Jr, { className: o(
|
|
5901
|
-
|
|
5929
|
+
}, [r]), /* @__PURE__ */ e(Jr, { className: o(Ht.bar, n == null ? void 0 : n.bar), children: /* @__PURE__ */ e(
|
|
5930
|
+
Pr,
|
|
5902
5931
|
{
|
|
5903
|
-
className: o(
|
|
5932
|
+
className: o(Ht.indicator, d, n == null ? void 0 : n.indicator),
|
|
5904
5933
|
style: {
|
|
5905
5934
|
transform: `translateX(-${100 - l}%)`
|
|
5906
5935
|
}
|
|
5907
5936
|
}
|
|
5908
5937
|
) });
|
|
5909
|
-
},
|
|
5938
|
+
}, Ht = {
|
|
5910
5939
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5911
5940
|
indicator: "h-full rounded-md"
|
|
5912
5941
|
};
|
|
5913
5942
|
export {
|
|
5914
5943
|
jo as Accordion,
|
|
5915
|
-
|
|
5916
|
-
|
|
5944
|
+
oi as ApartmentCard,
|
|
5945
|
+
Bt as AvatarGroup,
|
|
5917
5946
|
Wo as Breadcrumb,
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5947
|
+
ri as CardFiles,
|
|
5948
|
+
xi as CardMonthly,
|
|
5949
|
+
fi as CardPieChart,
|
|
5950
|
+
si as CardProgress,
|
|
5951
|
+
gi as CardRingChart,
|
|
5952
|
+
Ho as CardServices,
|
|
5953
|
+
bi as CardStat,
|
|
5954
|
+
Nn as ChatButton,
|
|
5955
|
+
Un as ChatCard,
|
|
5956
|
+
ai as ChatList,
|
|
5957
|
+
li as ChatMessage,
|
|
5958
|
+
di as ChatSidebar,
|
|
5959
|
+
ar as CheckboxGroup,
|
|
5960
|
+
Uo as CommentInput,
|
|
5932
5961
|
Oo as CommentList,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5962
|
+
Po as DateOfBirth,
|
|
5963
|
+
$o as DatePicker,
|
|
5964
|
+
Ro as DateRangePicker,
|
|
5965
|
+
ci as DeleteMessage,
|
|
5937
5966
|
Jo as DragAndDrop,
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5967
|
+
Hn as Dropdown,
|
|
5968
|
+
Lo as FileUploader,
|
|
5969
|
+
zo as FilterTable,
|
|
5970
|
+
ui as FloorSelect,
|
|
5971
|
+
Ye as IconTitle,
|
|
5943
5972
|
It as InputGroup,
|
|
5944
|
-
|
|
5973
|
+
We as LabelWithValue,
|
|
5945
5974
|
Go as Languages,
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5975
|
+
Ge as Link,
|
|
5976
|
+
pi as MessageSettings,
|
|
5977
|
+
Ao as MultiSelect,
|
|
5978
|
+
Kn as NavButton,
|
|
5979
|
+
Eo as Pagination,
|
|
5980
|
+
F as PaginationTokens,
|
|
5952
5981
|
Mo as PasswordInput,
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5982
|
+
ni as PaymentCard,
|
|
5983
|
+
Vo as PhoneInput,
|
|
5984
|
+
Zo as Plate,
|
|
5985
|
+
hr as ProgressItem,
|
|
5986
|
+
lr as RadioGroup,
|
|
5987
|
+
pr as Rating,
|
|
5988
|
+
Tn as SearchInput,
|
|
5989
|
+
ti as SelectGroup,
|
|
5990
|
+
Pn as SelectList,
|
|
5991
|
+
ii as ServiceOrders,
|
|
5963
5992
|
Yo as Sidebar,
|
|
5964
|
-
|
|
5965
|
-
|
|
5993
|
+
cr as StatusSelect,
|
|
5994
|
+
No as Stepper,
|
|
5966
5995
|
qo as TabGroup,
|
|
5967
|
-
|
|
5996
|
+
hi as TabList,
|
|
5968
5997
|
Qo as TabSwitch,
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5998
|
+
ye as TabSwitchTokens,
|
|
5999
|
+
_o as Table,
|
|
6000
|
+
Ko as TextareaGroup,
|
|
6001
|
+
Xo as ToggleGroup,
|
|
5973
6002
|
Fo as UploadInput,
|
|
5974
|
-
|
|
6003
|
+
ei as UserContact,
|
|
5975
6004
|
se as accordionTokens,
|
|
5976
6005
|
te as apartmentCardTokens,
|
|
5977
|
-
|
|
6006
|
+
Oe as avatarTokens,
|
|
5978
6007
|
Ve as breadcrumnbTokens,
|
|
5979
6008
|
L as cardFilesTokens,
|
|
5980
6009
|
ze as cardMonthlyTokens,
|
|
5981
6010
|
E as cardPieChartTokens,
|
|
5982
|
-
|
|
6011
|
+
je as cardProgressTokens,
|
|
5983
6012
|
N as cardRingChartTokens,
|
|
5984
6013
|
pe as cardServicesTokens,
|
|
5985
6014
|
ie as cardStatTokens,
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
6015
|
+
Ie as chatButtonTokens,
|
|
6016
|
+
Se as chatCardTokens,
|
|
6017
|
+
zt as chatListTokens,
|
|
6018
|
+
Ke as chatMessageTokens,
|
|
5990
6019
|
Le as chatSidebarTokens,
|
|
5991
6020
|
ne as checkboxGroupTokens,
|
|
5992
|
-
|
|
6021
|
+
Ze as commentInputTokens,
|
|
5993
6022
|
z as commentItemTokens,
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6023
|
+
$t as dateOfBirthClasses,
|
|
6024
|
+
B as datePickerTokens,
|
|
6025
|
+
Ln as dateRangePickerTokens,
|
|
6026
|
+
zn as dayPickerClasses,
|
|
6027
|
+
Xe as deleteMessageTokens,
|
|
6028
|
+
Be as dragAndDropTokens,
|
|
6029
|
+
At as dropdownTokens,
|
|
6030
|
+
U as fileUploaderTokens,
|
|
6031
|
+
ut as filterTableTokens,
|
|
6003
6032
|
oe as floorSelectTokens,
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6033
|
+
Rt as iconTitleTokens,
|
|
6034
|
+
qe as inputGroupTokens,
|
|
6035
|
+
Lt as labelWithValueTokens,
|
|
6036
|
+
ft as languagesTokens,
|
|
6037
|
+
Xn as linkTokens,
|
|
6038
|
+
gt as messageSettingsTokens,
|
|
6039
|
+
O as multiSelectTokens,
|
|
6040
|
+
bt as navButtonTokens,
|
|
6041
|
+
Cn as passwordInputTokens,
|
|
6042
|
+
q as paymentCardTokens,
|
|
6043
|
+
we as phoneInputTokens,
|
|
6015
6044
|
$e as plateTokens,
|
|
6016
|
-
|
|
6045
|
+
Ht as progressItemsTokens,
|
|
6017
6046
|
me as radioGroupTokens,
|
|
6018
6047
|
he as ratingTokens,
|
|
6019
6048
|
ee as searchInputTokens,
|
|
6020
6049
|
Jn as selectGroupTokens,
|
|
6021
6050
|
H as selectListTokens,
|
|
6022
|
-
|
|
6023
|
-
|
|
6051
|
+
ke as serviceOrdersTokens,
|
|
6052
|
+
Qe as sidebarTokens,
|
|
6024
6053
|
Re as statusSelectTokens,
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6054
|
+
Y as stepperTokens,
|
|
6055
|
+
De as tabGroupTokens,
|
|
6056
|
+
to as tabListTokens,
|
|
6028
6057
|
V as tableTokens,
|
|
6029
6058
|
Ot as textareaGroupTokens,
|
|
6030
|
-
|
|
6059
|
+
Zn as toggleGroupTokens,
|
|
6031
6060
|
ve as uploadInputTokens,
|
|
6032
|
-
|
|
6061
|
+
xt as userContactTokens
|
|
6033
6062
|
};
|