@namuna-nur/ui-kit 1.9.18 → 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/index.js +105 -103
- package/lib/molecules/index.js +512 -496
- package/lib/src/molecules/CommentList/CommentList.tokens.d.ts +1 -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,22 +1,22 @@
|
|
|
1
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 Ne, b as
|
|
5
|
-
import { cn as o, formatFileSize as yt, formatDateToDayMonthYear as jr, numberFormat as
|
|
6
|
-
import { Checkbox as mt, Label as P, Spinner as
|
|
7
|
-
import { useReactTable as Or, getCoreRowModel as
|
|
8
|
-
import { b as
|
|
9
|
-
import { Link as Ee, useSearchParams as Ct, useNavigate as
|
|
10
|
-
import { S as
|
|
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
|
|
12
|
-
import { d as Ue, e as
|
|
13
|
-
import { useDebounce as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
17
|
-
import { format as Z, addMonths 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
18
|
import { ru as pt } from "date-fns/locale";
|
|
19
|
-
import { DayPicker as
|
|
19
|
+
import { DayPicker as gn } from "react-day-picker";
|
|
20
20
|
import nt from "echarts-for-react/lib/core";
|
|
21
21
|
import { colorTokens as Pe } from "../tokens/index.js";
|
|
22
22
|
import * as ot from "echarts/core";
|
|
@@ -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",
|
|
@@ -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,7 +210,7 @@ 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
215
|
}), u = ue(null), b = (v) => {
|
|
216
216
|
const m = l == null ? void 0 : l.find((D) => D.id === v), S = m != null && m.desc ? "asc" : "desc";
|
|
@@ -227,9 +227,9 @@ function Io({
|
|
|
227
227
|
(n == null ? void 0 : n.length) === v.length ? r([]) : r(v);
|
|
228
228
|
};
|
|
229
229
|
return /* @__PURE__ */ p("div", { className: o(V.root, t == null ? void 0 : t.root), children: [
|
|
230
|
-
f && /* @__PURE__ */ e(
|
|
230
|
+
f && /* @__PURE__ */ e(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(
|
|
@@ -258,7 +258,7 @@ function Io({
|
|
|
258
258
|
)
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
v.headers.map((D,
|
|
261
|
+
v.headers.map((D, j) => {
|
|
262
262
|
var g;
|
|
263
263
|
const w = D.column.columnDef.meta;
|
|
264
264
|
return /* @__PURE__ */ e(
|
|
@@ -269,7 +269,7 @@ function Io({
|
|
|
269
269
|
V.headerCell,
|
|
270
270
|
w == null ? void 0 : w.headerClass,
|
|
271
271
|
D.index === v.headers.length - 1 && "rounded-r-[10px]",
|
|
272
|
-
!a &&
|
|
272
|
+
!a && j === 0 && V.firstHeaderCell
|
|
273
273
|
),
|
|
274
274
|
onClick: () => (w == null ? void 0 : w.isSortable) && b(D.column.id),
|
|
275
275
|
children: /* @__PURE__ */ p("div", { className: V.headerText, children: [
|
|
@@ -278,7 +278,7 @@ function Io({
|
|
|
278
278
|
D.getContext()
|
|
279
279
|
),
|
|
280
280
|
(w == null ? void 0 : w.isSortable) && /* @__PURE__ */ e(
|
|
281
|
-
|
|
281
|
+
mr,
|
|
282
282
|
{
|
|
283
283
|
className: o(
|
|
284
284
|
V.sortIcon,
|
|
@@ -321,7 +321,7 @@ function Io({
|
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
|
-
v.getVisibleCells().map((D,
|
|
324
|
+
v.getVisibleCells().map((D, j, w) => {
|
|
325
325
|
const g = D.column.columnDef.meta;
|
|
326
326
|
return /* @__PURE__ */ e(
|
|
327
327
|
"td",
|
|
@@ -329,8 +329,8 @@ function Io({
|
|
|
329
329
|
className: o(
|
|
330
330
|
V.bodyCell,
|
|
331
331
|
(n == null ? void 0 : n.includes(v.id)) && "font-bold",
|
|
332
|
-
|
|
333
|
-
!a &&
|
|
332
|
+
j === w.length - 1 && "rounded-r-[10px]",
|
|
333
|
+
!a && j === 0 && "px-8",
|
|
334
334
|
g == null ? void 0 : g.cellClass
|
|
335
335
|
),
|
|
336
336
|
children: lt(
|
|
@@ -356,8 +356,8 @@ function Io({
|
|
|
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
|
-
),
|
|
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
422
|
}) => /* @__PURE__ */ p(st, { children: [
|
|
423
|
-
/* @__PURE__ */ e(
|
|
424
|
-
|
|
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,14 +439,14 @@ 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",
|
|
446
446
|
link: "transition-colors hover:text-foreground",
|
|
447
447
|
page: "font-normal text-foreground",
|
|
448
448
|
separator: "[&>svg]:w-3.5 [&>svg]:h-3.5"
|
|
449
|
-
},
|
|
449
|
+
}, Mo = ({
|
|
450
450
|
disabled: t = !1,
|
|
451
451
|
value: i,
|
|
452
452
|
placeholder: d = "Введите пароль",
|
|
@@ -459,14 +459,14 @@ const wn = ({
|
|
|
459
459
|
classNames: h,
|
|
460
460
|
...u
|
|
461
461
|
}) => /* @__PURE__ */ e(
|
|
462
|
-
|
|
462
|
+
It,
|
|
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),
|
|
@@ -508,32 +508,32 @@ const wn = ({
|
|
|
508
508
|
}
|
|
509
509
|
}), []);
|
|
510
510
|
const m = (g) => {
|
|
511
|
-
var
|
|
511
|
+
var I;
|
|
512
512
|
const C = i.find((T) => T.id === g);
|
|
513
|
-
C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (
|
|
513
|
+
C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (I = y.current) == null || I.focus();
|
|
514
514
|
}, S = (g, C) => {
|
|
515
|
-
var
|
|
516
|
-
C.stopPropagation(), a(c.filter((T) => T.id !== g)), (
|
|
515
|
+
var I;
|
|
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;
|
|
521
521
|
if (!u.trim()) return;
|
|
522
522
|
if (!i.find(
|
|
523
|
-
(
|
|
523
|
+
(I) => I.label.toLowerCase() === u
|
|
524
524
|
)) {
|
|
525
|
-
const
|
|
525
|
+
const I = {
|
|
526
526
|
id: i.length + 1,
|
|
527
527
|
label: u
|
|
528
528
|
};
|
|
529
|
-
i.push(
|
|
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
|
}
|
|
@@ -592,7 +592,7 @@ const wn = ({
|
|
|
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"
|
|
@@ -608,7 +608,7 @@ const wn = ({
|
|
|
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
|
}
|
|
@@ -621,10 +621,10 @@ const wn = ({
|
|
|
621
621
|
{
|
|
622
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
|
{
|
|
@@ -632,44 +632,44 @@ const wn = ({
|
|
|
632
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:
|
|
646
|
-
onClick:
|
|
645
|
+
className: O.plusIcon,
|
|
646
|
+
onClick: j
|
|
647
647
|
}
|
|
648
648
|
)
|
|
649
649
|
] }),
|
|
650
|
-
w.length > 0 ? w.map((g, C,
|
|
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
656
|
onChange: () => m(g.id),
|
|
657
657
|
className: o(
|
|
658
|
-
|
|
659
|
-
|
|
658
|
+
O.option,
|
|
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: "Отмена"
|
|
@@ -680,8 +680,8 @@ const wn = ({
|
|
|
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,
|
|
@@ -745,32 +745,32 @@ const wn = ({
|
|
|
745
745
|
classNames: s,
|
|
746
746
|
...y
|
|
747
747
|
}, v) => {
|
|
748
|
-
const [m, S] =
|
|
748
|
+
const [m, S] = A(r ?? []), [D, j] = A(l ?? []), [w, g] = A(!1), [C, I] = A(!1), T = pn(t, a);
|
|
749
749
|
Me(() => {
|
|
750
750
|
g(!!T), f == null || f(T);
|
|
751
751
|
}, [T, f]);
|
|
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,
|
|
753
|
-
const fe = (
|
|
754
|
-
(at) => at.id === ge.id && ge.label === ge.label ? { ...at, checked:
|
|
755
|
-
), dt = ce === "status" ? fe(m) : m,
|
|
756
|
-
S(dt),
|
|
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
759
|
status: m,
|
|
760
760
|
module: D
|
|
761
|
-
}),
|
|
762
|
-
},
|
|
761
|
+
}), I(!1);
|
|
762
|
+
}, br = (ce) => {
|
|
763
763
|
u == null || u(ce), g(!1);
|
|
764
|
-
}, _t = ({ type: ce, title: ge, items:
|
|
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: (dt) =>
|
|
773
|
+
onChange: (dt) => ur(ce, fe, dt.target.checked)
|
|
774
774
|
},
|
|
775
775
|
fe.id
|
|
776
776
|
))
|
|
@@ -787,7 +787,7 @@ const wn = ({
|
|
|
787
787
|
s == null ? void 0 : s.base
|
|
788
788
|
),
|
|
789
789
|
children: [
|
|
790
|
-
/* @__PURE__ */ p(et, { open: C, onOpenChange:
|
|
790
|
+
/* @__PURE__ */ p(et, { open: C, onOpenChange: I, children: [
|
|
791
791
|
/* @__PURE__ */ e(tt, { asChild: !0, disabled: d, children: n && /* @__PURE__ */ e(
|
|
792
792
|
"button",
|
|
793
793
|
{
|
|
@@ -797,7 +797,7 @@ 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,
|
|
@@ -831,14 +831,14 @@ const wn = ({
|
|
|
831
831
|
{
|
|
832
832
|
variant: "secondary",
|
|
833
833
|
className: o(W.base, W.cancel),
|
|
834
|
-
onClick: () =>
|
|
834
|
+
onClick: () => I(!1),
|
|
835
835
|
children: "Отмена"
|
|
836
836
|
}
|
|
837
837
|
),
|
|
838
838
|
/* @__PURE__ */ e(
|
|
839
839
|
M,
|
|
840
840
|
{
|
|
841
|
-
onClick:
|
|
841
|
+
onClick: fr,
|
|
842
842
|
className: o(W.base, W.save),
|
|
843
843
|
children: "Сохранить"
|
|
844
844
|
}
|
|
@@ -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,
|
|
@@ -898,7 +898,7 @@ const wn = ({
|
|
|
898
898
|
children: h == null ? void 0 : h.map((ce, ge) => /* @__PURE__ */ e(
|
|
899
899
|
k,
|
|
900
900
|
{
|
|
901
|
-
onClick: () =>
|
|
901
|
+
onClick: () => br(ce),
|
|
902
902
|
className: X.item,
|
|
903
903
|
children: ce
|
|
904
904
|
},
|
|
@@ -906,7 +906,7 @@ const wn = ({
|
|
|
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
|
] })
|
|
@@ -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,7 +981,7 @@ 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
|
),
|
|
@@ -990,31 +990,31 @@ const wn = ({
|
|
|
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
1020
|
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: yt(t.size) })
|
|
@@ -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,9 +1043,9 @@ const wn = ({
|
|
|
1043
1043
|
disabled: h = !1,
|
|
1044
1044
|
...u
|
|
1045
1045
|
}, b) => {
|
|
1046
|
-
const [x, s] = $.useState(!1), y = $.useRef(null), v = ve.root, m = ve.input, S = ve.icon, D = ve.placeholder,
|
|
1047
|
-
var
|
|
1048
|
-
h || (s(!0), (
|
|
1046
|
+
const [x, s] = $.useState(!1), y = $.useRef(null), v = ve.root, m = ve.input, S = ve.icon, D = ve.placeholder, j = ve.list, w = ve.status, g = () => {
|
|
1047
|
+
var I;
|
|
1048
|
+
h || (s(!0), (I = y.current) == null || I.click());
|
|
1049
1049
|
}, C = () => {
|
|
1050
1050
|
s(!1);
|
|
1051
1051
|
};
|
|
@@ -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,
|
|
@@ -1090,25 +1090,25 @@ const wn = ({
|
|
|
1090
1090
|
type: "file",
|
|
1091
1091
|
multiple: r,
|
|
1092
1092
|
accept: "application/pdf, .doc, .docx, .xls, .xlsx",
|
|
1093
|
-
onChange: (
|
|
1094
|
-
l(
|
|
1093
|
+
onChange: (I) => {
|
|
1094
|
+
l(I), I.target.value = "";
|
|
1095
1095
|
},
|
|
1096
1096
|
className: "hidden",
|
|
1097
1097
|
...u
|
|
1098
1098
|
}
|
|
1099
1099
|
),
|
|
1100
|
-
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className:
|
|
1101
|
-
|
|
1100
|
+
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: j, children: i.map((I) => /* @__PURE__ */ e(
|
|
1101
|
+
Sn,
|
|
1102
1102
|
{
|
|
1103
|
-
file:
|
|
1103
|
+
file: I,
|
|
1104
1104
|
onClick: (T) => {
|
|
1105
|
-
T.stopPropagation(), c == null || c(
|
|
1105
|
+
T.stopPropagation(), c == null || c(I.id);
|
|
1106
1106
|
}
|
|
1107
1107
|
},
|
|
1108
|
-
|
|
1108
|
+
I.id
|
|
1109
1109
|
)) }) : /* @__PURE__ */ p($.Fragment, { children: [
|
|
1110
1110
|
/* @__PURE__ */ e(
|
|
1111
|
-
|
|
1111
|
+
kr,
|
|
1112
1112
|
{
|
|
1113
1113
|
"data-testid": "file-upload-icon",
|
|
1114
1114
|
width: 16,
|
|
@@ -1149,7 +1149,7 @@ const wn = ({
|
|
|
1149
1149
|
}) => {
|
|
1150
1150
|
const c = d === "review";
|
|
1151
1151
|
return /* @__PURE__ */ p("div", { className: o(z.root, n == null ? void 0 : n.root), children: [
|
|
1152
|
-
!(t != null && t.length) && (r ? /* @__PURE__ */ e(
|
|
1152
|
+
!(t != null && t.length) && (r ? /* @__PURE__ */ e(Zt, {}) : /* @__PURE__ */ e(
|
|
1153
1153
|
k,
|
|
1154
1154
|
{
|
|
1155
1155
|
variant: "p",
|
|
@@ -1185,7 +1185,8 @@ const wn = ({
|
|
|
1185
1185
|
z.avatar.wrapperBase,
|
|
1186
1186
|
c ? z.avatar.wrapperReview : z.avatar.wrapperComment
|
|
1187
1187
|
),
|
|
1188
|
-
img: z.avatar.img
|
|
1188
|
+
img: z.avatar.img,
|
|
1189
|
+
fallbackIcon: z.avatar.fallbackIcon
|
|
1189
1190
|
}
|
|
1190
1191
|
}
|
|
1191
1192
|
}
|
|
@@ -1200,7 +1201,7 @@ const wn = ({
|
|
|
1200
1201
|
),
|
|
1201
1202
|
children: [
|
|
1202
1203
|
c && /* @__PURE__ */ e(
|
|
1203
|
-
|
|
1204
|
+
pr,
|
|
1204
1205
|
{
|
|
1205
1206
|
rating: y,
|
|
1206
1207
|
classNames: {
|
|
@@ -1218,7 +1219,7 @@ const wn = ({
|
|
|
1218
1219
|
l && /* @__PURE__ */ e(
|
|
1219
1220
|
kt,
|
|
1220
1221
|
{
|
|
1221
|
-
icon:
|
|
1222
|
+
icon: Gr,
|
|
1222
1223
|
shape: "circle",
|
|
1223
1224
|
onClick: () => l(a),
|
|
1224
1225
|
classNames: {
|
|
@@ -1242,10 +1243,11 @@ const wn = ({
|
|
|
1242
1243
|
root: "font-mono flex flex-col gap-3 w-full",
|
|
1243
1244
|
wrapper: "flex gap-3 pt-1 flex-col justify-center",
|
|
1244
1245
|
avatar: {
|
|
1245
|
-
wrapperBase: "bg-
|
|
1246
|
+
wrapperBase: "bg-dark-40/[.10] rounded-full flex items-center justify-center",
|
|
1246
1247
|
wrapperComment: "size-[25.6px]",
|
|
1247
1248
|
wrapperReview: "size-[18px] bg-gray-50",
|
|
1248
|
-
img: "rounded-full object-cover"
|
|
1249
|
+
img: "rounded-full object-cover",
|
|
1250
|
+
fallbackIcon: "fill-dark-30/50"
|
|
1249
1251
|
},
|
|
1250
1252
|
author: {
|
|
1251
1253
|
fullNameBase: "leading-none font-semibold text-dark-40",
|
|
@@ -1279,7 +1281,7 @@ const wn = ({
|
|
|
1279
1281
|
}, ht = (t) => {
|
|
1280
1282
|
const i = t.getDate().toString().padStart(2, "0"), d = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getFullYear();
|
|
1281
1283
|
return `${i}/${d}/${n}`;
|
|
1282
|
-
},
|
|
1284
|
+
}, Bn = (t) => {
|
|
1283
1285
|
const i = t.getFullYear(), d = t.getMonth(), n = new Date(i, d, 1), l = new Date(i, d + 1, 0).getDate();
|
|
1284
1286
|
let c = n.getDay();
|
|
1285
1287
|
c = c === 0 ? 6 : c - 1;
|
|
@@ -1294,15 +1296,15 @@ const wn = ({
|
|
|
1294
1296
|
for (let h = 1; h <= f; h++)
|
|
1295
1297
|
a.push({ date: new Date(i, d + 1, h), isCurrentMonth: !1 });
|
|
1296
1298
|
return a;
|
|
1297
|
-
},
|
|
1299
|
+
}, In = /* @__PURE__ */ new Date(), jn = (t) => t.toDateString() === In.toDateString(), _n = (t) => {
|
|
1298
1300
|
const i = t.getDay();
|
|
1299
1301
|
return i === 0 || i === 6;
|
|
1300
|
-
},
|
|
1302
|
+
}, Wn = (t, i) => i && t.toDateString() === i.toDateString(), Mn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
1301
1303
|
(t) => ({
|
|
1302
1304
|
label: t.toString(),
|
|
1303
1305
|
value: t.toString()
|
|
1304
1306
|
})
|
|
1305
|
-
),
|
|
1307
|
+
), An = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Fn = [
|
|
1306
1308
|
"Январь",
|
|
1307
1309
|
"Февраль",
|
|
1308
1310
|
"Март",
|
|
@@ -1327,12 +1329,12 @@ const wn = ({
|
|
|
1327
1329
|
return new Date(n, d - 1, i);
|
|
1328
1330
|
}
|
|
1329
1331
|
return null;
|
|
1330
|
-
},
|
|
1332
|
+
}, $n = (t, i, d = /* @__PURE__ */ new Date(), n) => {
|
|
1331
1333
|
const r = i ? On(i) : null;
|
|
1332
|
-
return
|
|
1334
|
+
return Bn(d).map((l, c) => {
|
|
1333
1335
|
const { date: a, isCurrentMonth: f } = l, h = a.getDate(), u = r ? a <= r : !1;
|
|
1334
1336
|
let b = B.dayButton;
|
|
1335
|
-
return u ? b += ` ${B.dayDisabled}` : f ?
|
|
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(
|
|
1336
1338
|
"button",
|
|
1337
1339
|
{
|
|
1338
1340
|
onClick: (x) => {
|
|
@@ -1345,7 +1347,7 @@ const wn = ({
|
|
|
1345
1347
|
c
|
|
1346
1348
|
);
|
|
1347
1349
|
});
|
|
1348
|
-
},
|
|
1350
|
+
}, $o = ({
|
|
1349
1351
|
value: t,
|
|
1350
1352
|
setValue: i,
|
|
1351
1353
|
classNames: d,
|
|
@@ -1354,9 +1356,9 @@ const wn = ({
|
|
|
1354
1356
|
status: l,
|
|
1355
1357
|
disabledDate: c
|
|
1356
1358
|
}) => {
|
|
1357
|
-
const [a, f] =
|
|
1359
|
+
const [a, f] = A(!1), [h, u] = A(
|
|
1358
1360
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1359
|
-
), [b, x] =
|
|
1361
|
+
), [b, x] = A(
|
|
1360
1362
|
t ? ht(new Date(t)) : ""
|
|
1361
1363
|
);
|
|
1362
1364
|
Me(() => {
|
|
@@ -1370,9 +1372,9 @@ const wn = ({
|
|
|
1370
1372
|
i(void 0);
|
|
1371
1373
|
return;
|
|
1372
1374
|
}
|
|
1373
|
-
const
|
|
1374
|
-
if (
|
|
1375
|
-
const T = parseInt(
|
|
1375
|
+
const I = C.split("/");
|
|
1376
|
+
if (I.length === 3) {
|
|
1377
|
+
const T = parseInt(I[0]), _ = parseInt(I[1]) - 1, R = parseInt(I[2]);
|
|
1376
1378
|
if (T > 0 && T <= 31 && _ >= 0 && _ <= 11 && R > 1900) {
|
|
1377
1379
|
const G = new Date(R, _, T);
|
|
1378
1380
|
G.getDate() === T && G.getMonth() === _ && G.getFullYear() === R && (i(G.toISOString()), u(new Date(R, _, 1)));
|
|
@@ -1384,7 +1386,7 @@ const wn = ({
|
|
|
1384
1386
|
}, D = (g) => {
|
|
1385
1387
|
const C = parseInt(g);
|
|
1386
1388
|
u(new Date(h.getFullYear(), C, 1));
|
|
1387
|
-
},
|
|
1389
|
+
}, j = (g) => {
|
|
1388
1390
|
const C = parseInt(g);
|
|
1389
1391
|
u(new Date(C, h.getMonth(), 1));
|
|
1390
1392
|
}, w = (g) => {
|
|
@@ -1445,7 +1447,7 @@ const wn = ({
|
|
|
1445
1447
|
n && B.calendarButton.disabled
|
|
1446
1448
|
),
|
|
1447
1449
|
children: /* @__PURE__ */ e(
|
|
1448
|
-
|
|
1450
|
+
tr,
|
|
1449
1451
|
{
|
|
1450
1452
|
width: 18,
|
|
1451
1453
|
height: 18,
|
|
@@ -1479,7 +1481,7 @@ const wn = ({
|
|
|
1479
1481
|
onClick: () => S(-1),
|
|
1480
1482
|
className: B.navButton,
|
|
1481
1483
|
children: /* @__PURE__ */ e(
|
|
1482
|
-
|
|
1484
|
+
Gt,
|
|
1483
1485
|
{
|
|
1484
1486
|
width: 6,
|
|
1485
1487
|
height: 10,
|
|
@@ -1509,13 +1511,13 @@ const wn = ({
|
|
|
1509
1511
|
/* @__PURE__ */ e(
|
|
1510
1512
|
Ce,
|
|
1511
1513
|
{
|
|
1512
|
-
options:
|
|
1514
|
+
options: Mn,
|
|
1513
1515
|
classNames: {
|
|
1514
1516
|
trigger: "w-28 h-8"
|
|
1515
1517
|
},
|
|
1516
1518
|
disabled: !1,
|
|
1517
1519
|
onChange: (g) => {
|
|
1518
|
-
|
|
1520
|
+
j(g), f(!0);
|
|
1519
1521
|
},
|
|
1520
1522
|
value: String(h.getFullYear())
|
|
1521
1523
|
}
|
|
@@ -1527,7 +1529,7 @@ const wn = ({
|
|
|
1527
1529
|
onClick: () => S(1),
|
|
1528
1530
|
className: B.navButton,
|
|
1529
1531
|
children: /* @__PURE__ */ e(
|
|
1530
|
-
|
|
1532
|
+
Et,
|
|
1531
1533
|
{
|
|
1532
1534
|
width: 6,
|
|
1533
1535
|
height: 10,
|
|
@@ -1537,8 +1539,8 @@ const wn = ({
|
|
|
1537
1539
|
}
|
|
1538
1540
|
)
|
|
1539
1541
|
] }),
|
|
1540
|
-
/* @__PURE__ */ e("div", { className: B.weekHeader, children:
|
|
1541
|
-
/* @__PURE__ */ e("div", { className: B.calendar, children:
|
|
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) }),
|
|
1542
1544
|
/* @__PURE__ */ e("div", { className: B.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: w, className: B.resetButton, children: "Сбросить" }) })
|
|
1543
1545
|
] })
|
|
1544
1546
|
}
|
|
@@ -1607,7 +1609,7 @@ const wn = ({
|
|
|
1607
1609
|
line: "border border-gray-40",
|
|
1608
1610
|
saveButtonWrapper: "mt-[22px] flex justify-end p-4 pt-0",
|
|
1609
1611
|
saveButton: "px-[15px] py-3 bg-primary-10 text-sidebar-10 text-sm font-semibold rounded-[10px]"
|
|
1610
|
-
}, J = "dd/MM/yyyy",
|
|
1612
|
+
}, J = "dd/MM/yyyy", Rn = (t, i, d) => !i || !d ? !1 : t > i && t < d, Ro = ({
|
|
1611
1613
|
value: t,
|
|
1612
1614
|
setValue: i,
|
|
1613
1615
|
label: d,
|
|
@@ -1615,7 +1617,7 @@ const wn = ({
|
|
|
1615
1617
|
disabled: r = !1,
|
|
1616
1618
|
classNames: l
|
|
1617
1619
|
}) => {
|
|
1618
|
-
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({
|
|
1619
1621
|
mask: "__/__/____ - __/__/____",
|
|
1620
1622
|
replacement: { _: /\d/ }
|
|
1621
1623
|
}), y = $.useRef(null), v = $.useRef(!1);
|
|
@@ -1624,7 +1626,7 @@ const wn = ({
|
|
|
1624
1626
|
const w = t.from ? Z(new Date(t.from), J) : "", g = t.to ? Z(new Date(t.to), J) : "";
|
|
1625
1627
|
u(g ? `${w} - ${g}` : `${w} - `);
|
|
1626
1628
|
}, [t]);
|
|
1627
|
-
const m =
|
|
1629
|
+
const m = Ln.base, S = (w) => {
|
|
1628
1630
|
if (!w)
|
|
1629
1631
|
u(""), i(void 0);
|
|
1630
1632
|
else if (w.from && !w.to)
|
|
@@ -1641,16 +1643,16 @@ const wn = ({
|
|
|
1641
1643
|
);
|
|
1642
1644
|
}, D = (w) => {
|
|
1643
1645
|
v.current = !0;
|
|
1644
|
-
const { value: g } = w.target, [C,
|
|
1646
|
+
const { value: g } = w.target, [C, I] = g.split("-").map((R) => R.trim());
|
|
1645
1647
|
u(g);
|
|
1646
|
-
const T = wt(C, J, /* @__PURE__ */ new Date()), _ =
|
|
1648
|
+
const T = wt(C, J, /* @__PURE__ */ new Date()), _ = I ? wt(I, J, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1647
1649
|
_e(T) && _e(_) ? i({ from: T, to: _ }) : _e(T) && !_e(_) ? i({ from: T, to: void 0 }) : i({ from: void 0, to: void 0 });
|
|
1648
|
-
},
|
|
1650
|
+
}, j = () => {
|
|
1649
1651
|
u(""), i(void 0), f(/* @__PURE__ */ new Date());
|
|
1650
1652
|
};
|
|
1651
1653
|
return /* @__PURE__ */ e("div", { className: o(m.wrapper, l == null ? void 0 : l.wrapper), children: /* @__PURE__ */ p(de, { open: b, onOpenChange: x, children: [
|
|
1652
1654
|
/* @__PURE__ */ e(ae, { asChild: !0, role: "trigger", className: l == null ? void 0 : l.trigger, children: /* @__PURE__ */ e(
|
|
1653
|
-
|
|
1655
|
+
It,
|
|
1654
1656
|
{
|
|
1655
1657
|
ref: s,
|
|
1656
1658
|
label: d,
|
|
@@ -1667,7 +1669,7 @@ const wn = ({
|
|
|
1667
1669
|
},
|
|
1668
1670
|
disabled: r
|
|
1669
1671
|
},
|
|
1670
|
-
icon:
|
|
1672
|
+
icon: tr,
|
|
1671
1673
|
onIconClick: () => x(!0),
|
|
1672
1674
|
iconProps: {
|
|
1673
1675
|
width: 18,
|
|
@@ -1690,7 +1692,7 @@ const wn = ({
|
|
|
1690
1692
|
className: o(m.content, l == null ? void 0 : l.content),
|
|
1691
1693
|
children: [
|
|
1692
1694
|
/* @__PURE__ */ e(
|
|
1693
|
-
|
|
1695
|
+
gn,
|
|
1694
1696
|
{
|
|
1695
1697
|
month: a,
|
|
1696
1698
|
locale: pt,
|
|
@@ -1700,10 +1702,10 @@ const wn = ({
|
|
|
1700
1702
|
pagedNavigation: !0,
|
|
1701
1703
|
selected: t,
|
|
1702
1704
|
onSelect: S,
|
|
1703
|
-
classNames:
|
|
1705
|
+
classNames: zn,
|
|
1704
1706
|
components: {
|
|
1705
1707
|
DayButton: (w) => {
|
|
1706
|
-
const g =
|
|
1708
|
+
const g = Rn(
|
|
1707
1709
|
w.day.date,
|
|
1708
1710
|
t == null ? void 0 : t.from,
|
|
1709
1711
|
t == null ? void 0 : t.to
|
|
@@ -1747,10 +1749,10 @@ const wn = ({
|
|
|
1747
1749
|
const {
|
|
1748
1750
|
className: g,
|
|
1749
1751
|
onNextClick: C,
|
|
1750
|
-
onPreviousClick:
|
|
1752
|
+
onPreviousClick: I,
|
|
1751
1753
|
nextMonth: T,
|
|
1752
1754
|
previousMonth: _
|
|
1753
|
-
} = w, R = a, G =
|
|
1755
|
+
} = w, R = a, G = bn(a, 1);
|
|
1754
1756
|
return /* @__PURE__ */ p(
|
|
1755
1757
|
"div",
|
|
1756
1758
|
{
|
|
@@ -1763,11 +1765,11 @@ const wn = ({
|
|
|
1763
1765
|
/* @__PURE__ */ e(
|
|
1764
1766
|
"button",
|
|
1765
1767
|
{
|
|
1766
|
-
onClick:
|
|
1768
|
+
onClick: I,
|
|
1767
1769
|
disabled: !_,
|
|
1768
1770
|
className: "flex items-center justify-center",
|
|
1769
1771
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1770
|
-
|
|
1772
|
+
Gt,
|
|
1771
1773
|
{
|
|
1772
1774
|
width: 14,
|
|
1773
1775
|
height: 14,
|
|
@@ -1782,7 +1784,7 @@ const wn = ({
|
|
|
1782
1784
|
/* @__PURE__ */ p("div", { className: "flex items-center w-1/2", children: [
|
|
1783
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 }) }) }),
|
|
1784
1786
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1785
|
-
|
|
1787
|
+
Et,
|
|
1786
1788
|
{
|
|
1787
1789
|
width: 14,
|
|
1788
1790
|
height: 14,
|
|
@@ -1803,7 +1805,7 @@ const wn = ({
|
|
|
1803
1805
|
{
|
|
1804
1806
|
variant: "text",
|
|
1805
1807
|
type: "button",
|
|
1806
|
-
onClick:
|
|
1808
|
+
onClick: j,
|
|
1807
1809
|
classNames: {
|
|
1808
1810
|
base: m.resetButton
|
|
1809
1811
|
},
|
|
@@ -1814,7 +1816,7 @@ const wn = ({
|
|
|
1814
1816
|
}
|
|
1815
1817
|
) })
|
|
1816
1818
|
] }) });
|
|
1817
|
-
},
|
|
1819
|
+
}, Ln = {
|
|
1818
1820
|
base: {
|
|
1819
1821
|
wrapper: "w-full h-max",
|
|
1820
1822
|
input: "w-60 h-11 !text-base text-dark-30 font-mono font-medium",
|
|
@@ -1822,12 +1824,12 @@ const wn = ({
|
|
|
1822
1824
|
selectButton: "flex items-center justify-center p-1",
|
|
1823
1825
|
resetButton: "justify-start p-0 text-xs text-primary-10 font-mono underline underline-offset-[3px] hover:decoration-primary-10"
|
|
1824
1826
|
}
|
|
1825
|
-
},
|
|
1827
|
+
}, zn = {
|
|
1826
1828
|
months: "[&>.monthContainer:nth-child(2)]:left-0 [&>.monthContainer:nth-child(3)]:right-0 relative",
|
|
1827
1829
|
month: "monthContainer absolute",
|
|
1828
1830
|
weekdays: "size-6",
|
|
1829
1831
|
weekday: "text-sm text-dark-30 font-mono font-semibold"
|
|
1830
|
-
},
|
|
1832
|
+
}, Hn = ({
|
|
1831
1833
|
triggerElement: t,
|
|
1832
1834
|
mainUrl: i,
|
|
1833
1835
|
options: d,
|
|
@@ -1837,9 +1839,9 @@ const wn = ({
|
|
|
1837
1839
|
align: c = "start",
|
|
1838
1840
|
classNames: a
|
|
1839
1841
|
}) => {
|
|
1840
|
-
const [f, h] = $.useState(), [u] = Ct(), b =
|
|
1842
|
+
const [f, h] = $.useState(), [u] = Ct(), b = Xt(), x = (m) => {
|
|
1841
1843
|
h(m), b(`${i}/${m.to}?${u.toString()}`);
|
|
1842
|
-
}, s =
|
|
1844
|
+
}, s = At.modal, y = s.item, v = At.text;
|
|
1843
1845
|
return /* @__PURE__ */ p(et, { open: n, onOpenChange: r, children: [
|
|
1844
1846
|
/* @__PURE__ */ e(
|
|
1845
1847
|
tt,
|
|
@@ -1896,7 +1898,7 @@ const wn = ({
|
|
|
1896
1898
|
}
|
|
1897
1899
|
)
|
|
1898
1900
|
] });
|
|
1899
|
-
},
|
|
1901
|
+
}, At = {
|
|
1900
1902
|
modal: {
|
|
1901
1903
|
trigger: "focus-visible:outline-none",
|
|
1902
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",
|
|
@@ -1908,7 +1910,7 @@ const wn = ({
|
|
|
1908
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",
|
|
1909
1911
|
dot: "inline-block w-[7px] h-[7px] bg-dark-30/[.15] rounded-full group-hover:bg-primary-20"
|
|
1910
1912
|
}
|
|
1911
|
-
},
|
|
1913
|
+
}, Lo = ({
|
|
1912
1914
|
title: t,
|
|
1913
1915
|
description: i,
|
|
1914
1916
|
files: d = [],
|
|
@@ -1917,7 +1919,7 @@ const wn = ({
|
|
|
1917
1919
|
classNames: l
|
|
1918
1920
|
}) => /* @__PURE__ */ p("div", { className: o(U.wrapper, l == null ? void 0 : l.wrapper), children: [
|
|
1919
1921
|
t && /* @__PURE__ */ p("div", { className: U.header, children: [
|
|
1920
|
-
/* @__PURE__ */ e(
|
|
1922
|
+
/* @__PURE__ */ e(Cr, { className: U.headerIcon, role: "img" }),
|
|
1921
1923
|
/* @__PURE__ */ p(k, { variant: "p", className: U.headerText, children: [
|
|
1922
1924
|
t,
|
|
1923
1925
|
"(",
|
|
@@ -1962,7 +1964,7 @@ const wn = ({
|
|
|
1962
1964
|
]
|
|
1963
1965
|
}
|
|
1964
1966
|
) : /* @__PURE__ */ p("div", { className: o(U.fileWrapper, l == null ? void 0 : l.file), children: [
|
|
1965
|
-
/* @__PURE__ */ e(
|
|
1967
|
+
/* @__PURE__ */ e(Vt, { className: U.fileIcon, role: "img" }),
|
|
1966
1968
|
/* @__PURE__ */ p("div", { children: [
|
|
1967
1969
|
/* @__PURE__ */ e(k, { variant: "p", className: U.fileText, children: c.name }),
|
|
1968
1970
|
/* @__PURE__ */ e(k, { variant: "p", className: U.fileSize, children: yt(c.size) })
|
|
@@ -1975,7 +1977,7 @@ const wn = ({
|
|
|
1975
1977
|
classNames: { root: "p-0" },
|
|
1976
1978
|
target: "_blank",
|
|
1977
1979
|
children: /* @__PURE__ */ e(
|
|
1978
|
-
|
|
1980
|
+
or,
|
|
1979
1981
|
{
|
|
1980
1982
|
"data-testid": "download-icon",
|
|
1981
1983
|
className: U.icon,
|
|
@@ -2003,7 +2005,7 @@ const wn = ({
|
|
|
2003
2005
|
htmlFor: "file-upload",
|
|
2004
2006
|
className: o(U.target, l == null ? void 0 : l.target),
|
|
2005
2007
|
children: [
|
|
2006
|
-
/* @__PURE__ */ e(
|
|
2008
|
+
/* @__PURE__ */ e(Tr, { className: U.plusIcon, role: "img" }),
|
|
2007
2009
|
/* @__PURE__ */ e(
|
|
2008
2010
|
"input",
|
|
2009
2011
|
{
|
|
@@ -2045,7 +2047,7 @@ const wn = ({
|
|
|
2045
2047
|
plusIcon: "text-dark-40/[.30]",
|
|
2046
2048
|
input: "hidden",
|
|
2047
2049
|
description: "text-xs text-dark-40/[.80] mt-0.5 font-semibold"
|
|
2048
|
-
},
|
|
2050
|
+
}, zo = ({
|
|
2049
2051
|
classNames: t,
|
|
2050
2052
|
disabled: i,
|
|
2051
2053
|
onChange: d,
|
|
@@ -2055,7 +2057,7 @@ const wn = ({
|
|
|
2055
2057
|
icon: c,
|
|
2056
2058
|
iconSizes: a
|
|
2057
2059
|
}) => {
|
|
2058
|
-
const [f, h] =
|
|
2060
|
+
const [f, h] = A(!1), b = rr(n)(l), x = ut.base, s = ut.disabled.trigger, y = ut.disabled.triggerText, v = ({
|
|
2059
2061
|
className: m,
|
|
2060
2062
|
text: S = ""
|
|
2061
2063
|
}) => /* @__PURE__ */ e(
|
|
@@ -2111,7 +2113,7 @@ const wn = ({
|
|
|
2111
2113
|
x.dropdownIcon,
|
|
2112
2114
|
f && "rotate-180 transition-transform"
|
|
2113
2115
|
),
|
|
2114
|
-
children: /* @__PURE__ */ e(
|
|
2116
|
+
children: /* @__PURE__ */ e(Sr, { className: "fill-dark-30" })
|
|
2115
2117
|
}
|
|
2116
2118
|
)
|
|
2117
2119
|
]
|
|
@@ -2165,7 +2167,7 @@ const wn = ({
|
|
|
2165
2167
|
},
|
|
2166
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",
|
|
2167
2169
|
hover: "hover:bg-primary-20 hover:border-primary-20"
|
|
2168
|
-
},
|
|
2170
|
+
}, Un = ({
|
|
2169
2171
|
photo: t,
|
|
2170
2172
|
fullname: i,
|
|
2171
2173
|
status: d,
|
|
@@ -2223,7 +2225,7 @@ const wn = ({
|
|
|
2223
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",
|
|
2224
2226
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2225
2227
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2226
|
-
},
|
|
2228
|
+
}, Ho = K(
|
|
2227
2229
|
({ classNames: t, disabled: i, item: { icon: d, label: n = "" }, ...r }, l) => /* @__PURE__ */ p(
|
|
2228
2230
|
"button",
|
|
2229
2231
|
{
|
|
@@ -2289,13 +2291,13 @@ const wn = ({
|
|
|
2289
2291
|
hover: {
|
|
2290
2292
|
container: "hover:border-primary-20/[.30]"
|
|
2291
2293
|
}
|
|
2292
|
-
},
|
|
2294
|
+
}, Uo = $.forwardRef(({ textareaProps: t, disabled: i, classNames: d, iconSizes: n, onIconClick: r }, l) => {
|
|
2293
2295
|
const c = Ze.base, a = Ze.button, f = (t == null ? void 0 : t.status) === "danger";
|
|
2294
2296
|
return /* @__PURE__ */ p("div", { className: o(Ze.parent, d == null ? void 0 : d.parent), children: [
|
|
2295
2297
|
f && /* @__PURE__ */ e(be, { className: "fill-danger-10 mb-[5px]" }),
|
|
2296
2298
|
/* @__PURE__ */ p("div", { className: o(Ze.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2297
2299
|
/* @__PURE__ */ e(
|
|
2298
|
-
|
|
2300
|
+
qt,
|
|
2299
2301
|
{
|
|
2300
2302
|
...t,
|
|
2301
2303
|
"aria-label": "Комментарий",
|
|
@@ -2314,7 +2316,7 @@ const wn = ({
|
|
|
2314
2316
|
d == null ? void 0 : d.button
|
|
2315
2317
|
),
|
|
2316
2318
|
children: /* @__PURE__ */ e(
|
|
2317
|
-
|
|
2319
|
+
Dr,
|
|
2318
2320
|
{
|
|
2319
2321
|
width: n == null ? void 0 : n.width,
|
|
2320
2322
|
height: n == null ? void 0 : n.height,
|
|
@@ -2347,10 +2349,10 @@ const wn = ({
|
|
|
2347
2349
|
hover: "group-hover:text-primary-20",
|
|
2348
2350
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2349
2351
|
}
|
|
2350
|
-
},
|
|
2352
|
+
}, lr = K(
|
|
2351
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: [
|
|
2352
2354
|
/* @__PURE__ */ e(
|
|
2353
|
-
|
|
2355
|
+
Kt,
|
|
2354
2356
|
{
|
|
2355
2357
|
className: o(
|
|
2356
2358
|
!d && me.radio.base,
|
|
@@ -2378,8 +2380,8 @@ const wn = ({
|
|
|
2378
2380
|
)
|
|
2379
2381
|
] })
|
|
2380
2382
|
);
|
|
2381
|
-
|
|
2382
|
-
const
|
|
2383
|
+
lr.displayName = "RadioGroup";
|
|
2384
|
+
const Yn = ({
|
|
2383
2385
|
openDropdown: t,
|
|
2384
2386
|
setOpenDropdown: i,
|
|
2385
2387
|
isExpanded: d,
|
|
@@ -2387,13 +2389,13 @@ const Un = ({
|
|
|
2387
2389
|
onSubNavClick: f
|
|
2388
2390
|
}) => {
|
|
2389
2391
|
const [h] = Ct();
|
|
2390
|
-
return /* @__PURE__ */ e(
|
|
2392
|
+
return /* @__PURE__ */ e(Zr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Qr, { value: String(n), children: [
|
|
2391
2393
|
/* @__PURE__ */ p(
|
|
2392
|
-
|
|
2394
|
+
qr,
|
|
2393
2395
|
{
|
|
2394
2396
|
className: o(
|
|
2395
2397
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px]",
|
|
2396
|
-
!d && "w-[51px]",
|
|
2398
|
+
!d && "w-[51px] p-0",
|
|
2397
2399
|
!d && t && "bg-sidebar-40"
|
|
2398
2400
|
),
|
|
2399
2401
|
icon: {
|
|
@@ -2404,14 +2406,22 @@ const Un = ({
|
|
|
2404
2406
|
},
|
|
2405
2407
|
children: [
|
|
2406
2408
|
!!l && (d ? /* @__PURE__ */ e(l, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
|
|
2407
|
-
|
|
2409
|
+
Hn,
|
|
2408
2410
|
{
|
|
2409
2411
|
triggerElement: /* @__PURE__ */ e(
|
|
2410
|
-
|
|
2412
|
+
"div",
|
|
2411
2413
|
{
|
|
2412
2414
|
className: o(
|
|
2413
|
-
"
|
|
2414
|
-
|
|
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
|
+
}
|
|
2415
2425
|
)
|
|
2416
2426
|
}
|
|
2417
2427
|
),
|
|
@@ -2437,7 +2447,7 @@ const Un = ({
|
|
|
2437
2447
|
]
|
|
2438
2448
|
}
|
|
2439
2449
|
),
|
|
2440
|
-
d && /* @__PURE__ */ e(
|
|
2450
|
+
d && /* @__PURE__ */ e(Kr, { className: "flex flex-col items-start", children: a == null ? void 0 : a.map((u) => /* @__PURE__ */ e(
|
|
2441
2451
|
Tt,
|
|
2442
2452
|
{
|
|
2443
2453
|
to: `${c}/${u == null ? void 0 : u.to}?${h.toString()}`,
|
|
@@ -2451,7 +2461,7 @@ const Un = ({
|
|
|
2451
2461
|
u.id
|
|
2452
2462
|
)) })
|
|
2453
2463
|
] }) });
|
|
2454
|
-
},
|
|
2464
|
+
}, Yo = ({
|
|
2455
2465
|
isExpanded: t = !0,
|
|
2456
2466
|
navList: i,
|
|
2457
2467
|
onCollapse: d
|
|
@@ -2473,7 +2483,7 @@ const Un = ({
|
|
|
2473
2483
|
{
|
|
2474
2484
|
className: o(f.base, t && f.expanded),
|
|
2475
2485
|
children: [
|
|
2476
|
-
/* @__PURE__ */ e(Tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(
|
|
2486
|
+
/* @__PURE__ */ e(Tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Lr, {}) : /* @__PURE__ */ e(hn, {}) }),
|
|
2477
2487
|
/* @__PURE__ */ e(
|
|
2478
2488
|
M,
|
|
2479
2489
|
{
|
|
@@ -2482,7 +2492,7 @@ const Un = ({
|
|
|
2482
2492
|
classNames: { base: "p-0" },
|
|
2483
2493
|
onClick: d,
|
|
2484
2494
|
children: /* @__PURE__ */ e(
|
|
2485
|
-
|
|
2495
|
+
un,
|
|
2486
2496
|
{
|
|
2487
2497
|
className: o(
|
|
2488
2498
|
u,
|
|
@@ -2500,7 +2510,7 @@ const Un = ({
|
|
|
2500
2510
|
/* @__PURE__ */ e("div", { className: o(h.base, !t && h.expanded), children: i.map((b) => {
|
|
2501
2511
|
var x;
|
|
2502
2512
|
return /* @__PURE__ */ e($.Fragment, { children: (x = b.subItems) != null && x.length ? /* @__PURE__ */ e(
|
|
2503
|
-
|
|
2513
|
+
Yn,
|
|
2504
2514
|
{
|
|
2505
2515
|
item: b,
|
|
2506
2516
|
isExpanded: t,
|
|
@@ -2511,7 +2521,7 @@ const Un = ({
|
|
|
2511
2521
|
onSubNavClick: () => r(null)
|
|
2512
2522
|
}
|
|
2513
2523
|
) : /* @__PURE__ */ e(
|
|
2514
|
-
|
|
2524
|
+
Kn,
|
|
2515
2525
|
{
|
|
2516
2526
|
item: b,
|
|
2517
2527
|
badge: b.badge,
|
|
@@ -2538,14 +2548,14 @@ const Un = ({
|
|
|
2538
2548
|
base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
|
|
2539
2549
|
expanded: "w-16 items-center"
|
|
2540
2550
|
}
|
|
2541
|
-
},
|
|
2551
|
+
}, Go = ({
|
|
2542
2552
|
options: t,
|
|
2543
2553
|
selectedValue: i,
|
|
2544
2554
|
onChange: d,
|
|
2545
2555
|
classNames: n,
|
|
2546
2556
|
isError: r = !1
|
|
2547
2557
|
}) => {
|
|
2548
|
-
const [l, c] =
|
|
2558
|
+
const [l, c] = A(!1), a = ue(null), f = (h) => {
|
|
2549
2559
|
d(h), c(!1);
|
|
2550
2560
|
};
|
|
2551
2561
|
return /* @__PURE__ */ e(
|
|
@@ -2587,7 +2597,7 @@ const Un = ({
|
|
|
2587
2597
|
children: /* @__PURE__ */ e("div", { className: o(ft.optionsWrapper), children: t.map((h) => {
|
|
2588
2598
|
const u = `radio-${h.value}`;
|
|
2589
2599
|
return /* @__PURE__ */ e(
|
|
2590
|
-
|
|
2600
|
+
lr,
|
|
2591
2601
|
{
|
|
2592
2602
|
id: u,
|
|
2593
2603
|
checked: h.value === (i == null ? void 0 : i.value),
|
|
@@ -2606,7 +2616,7 @@ const Un = ({
|
|
|
2606
2616
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2607
2617
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2608
2618
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
2609
|
-
},
|
|
2619
|
+
}, Gn = [
|
|
2610
2620
|
{
|
|
2611
2621
|
label: "10",
|
|
2612
2622
|
value: "10"
|
|
@@ -2624,7 +2634,7 @@ const Un = ({
|
|
|
2624
2634
|
value: "100"
|
|
2625
2635
|
}
|
|
2626
2636
|
];
|
|
2627
|
-
function
|
|
2637
|
+
function En(t, i) {
|
|
2628
2638
|
if (i <= 10)
|
|
2629
2639
|
return Array.from({ length: i }, (l, c) => c + 1);
|
|
2630
2640
|
const d = [], n = Math.max(t - 2, 1), r = Math.min(t + 2, i);
|
|
@@ -2633,7 +2643,7 @@ function Gn(t, i) {
|
|
|
2633
2643
|
l !== 1 && l !== i && d.push(l);
|
|
2634
2644
|
return r < i - 1 && d.push("..."), i > 1 && d.push(i), d;
|
|
2635
2645
|
}
|
|
2636
|
-
const
|
|
2646
|
+
const Eo = ({
|
|
2637
2647
|
currentPageIndex: t,
|
|
2638
2648
|
onPageChange: i,
|
|
2639
2649
|
totalPages: d,
|
|
@@ -2642,11 +2652,11 @@ const Go = ({
|
|
|
2642
2652
|
totalItems: l = 10,
|
|
2643
2653
|
className: c
|
|
2644
2654
|
}) => {
|
|
2645
|
-
const a = t === 1, f = t === d, h = (t - 1) * Number(n) + 1, u = Math.min(t * Number(n), l), b =
|
|
2646
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
2647
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2648
|
-
/* @__PURE__ */ e("p", { className: o(
|
|
2649
|
-
/* @__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: [
|
|
2650
2660
|
h,
|
|
2651
2661
|
" - ",
|
|
2652
2662
|
u,
|
|
@@ -2654,7 +2664,7 @@ const Go = ({
|
|
|
2654
2664
|
l
|
|
2655
2665
|
] })
|
|
2656
2666
|
] }),
|
|
2657
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
2667
|
+
/* @__PURE__ */ p("div", { className: o(F.nav.base), children: [
|
|
2658
2668
|
/* @__PURE__ */ e(
|
|
2659
2669
|
M,
|
|
2660
2670
|
{
|
|
@@ -2663,38 +2673,38 @@ const Go = ({
|
|
|
2663
2673
|
onClick: () => i == null ? void 0 : i(t - 1),
|
|
2664
2674
|
classNames: {
|
|
2665
2675
|
base: o(
|
|
2666
|
-
|
|
2667
|
-
!a &&
|
|
2668
|
-
|
|
2669
|
-
a &&
|
|
2676
|
+
F.arrowButton.base,
|
|
2677
|
+
!a && F.arrowButton.hover,
|
|
2678
|
+
F.arrowButton.pressed,
|
|
2679
|
+
a && F.arrowButton.disabled
|
|
2670
2680
|
)
|
|
2671
2681
|
},
|
|
2672
2682
|
children: /* @__PURE__ */ e(
|
|
2673
|
-
|
|
2683
|
+
zr,
|
|
2674
2684
|
{
|
|
2675
2685
|
width: 28,
|
|
2676
2686
|
height: 28,
|
|
2677
2687
|
className: o(
|
|
2678
|
-
|
|
2679
|
-
a &&
|
|
2688
|
+
F.arrowButton.icon,
|
|
2689
|
+
a && F.arrowButton.iconDisabled
|
|
2680
2690
|
)
|
|
2681
2691
|
}
|
|
2682
2692
|
)
|
|
2683
2693
|
}
|
|
2684
2694
|
),
|
|
2685
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
2686
|
-
(x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: o(
|
|
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(
|
|
2687
2697
|
M,
|
|
2688
2698
|
{
|
|
2689
2699
|
onClick: () => i == null ? void 0 : i(x),
|
|
2690
2700
|
"aria-current": x === t ? "page" : void 0,
|
|
2691
2701
|
classNames: {
|
|
2692
2702
|
base: o(
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
x === t &&
|
|
2703
|
+
F.pageButton.base,
|
|
2704
|
+
F.pageButton.hover,
|
|
2705
|
+
F.pageButton.focus,
|
|
2706
|
+
F.pageButton.pressed,
|
|
2707
|
+
x === t && F.pageButton.active
|
|
2698
2708
|
)
|
|
2699
2709
|
},
|
|
2700
2710
|
children: x
|
|
@@ -2710,21 +2720,21 @@ const Go = ({
|
|
|
2710
2720
|
onClick: () => i == null ? void 0 : i(t + 1),
|
|
2711
2721
|
classNames: {
|
|
2712
2722
|
base: o(
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
f &&
|
|
2723
|
+
F.arrowButton.base,
|
|
2724
|
+
F.arrowButton.hover,
|
|
2725
|
+
F.arrowButton.focus,
|
|
2726
|
+
F.arrowButton.pressed,
|
|
2727
|
+
f && F.arrowButton.disabled
|
|
2718
2728
|
)
|
|
2719
2729
|
},
|
|
2720
2730
|
children: /* @__PURE__ */ e(
|
|
2721
|
-
|
|
2731
|
+
tn,
|
|
2722
2732
|
{
|
|
2723
2733
|
width: 28,
|
|
2724
2734
|
height: 28,
|
|
2725
2735
|
className: o(
|
|
2726
|
-
|
|
2727
|
-
f &&
|
|
2736
|
+
F.arrowButton.icon,
|
|
2737
|
+
f && F.arrowButton.iconDisabled
|
|
2728
2738
|
)
|
|
2729
2739
|
}
|
|
2730
2740
|
)
|
|
@@ -2733,7 +2743,7 @@ const Go = ({
|
|
|
2733
2743
|
/* @__PURE__ */ e(
|
|
2734
2744
|
Ce,
|
|
2735
2745
|
{
|
|
2736
|
-
options:
|
|
2746
|
+
options: Gn,
|
|
2737
2747
|
onChange: r,
|
|
2738
2748
|
value: n,
|
|
2739
2749
|
classNames: {
|
|
@@ -2745,7 +2755,7 @@ const Go = ({
|
|
|
2745
2755
|
)
|
|
2746
2756
|
] })
|
|
2747
2757
|
] });
|
|
2748
|
-
},
|
|
2758
|
+
}, F = {
|
|
2749
2759
|
wrapper: "flex items-center w-full py-5",
|
|
2750
2760
|
nav: {
|
|
2751
2761
|
base: "flex items-center gap-4 grow justify-center h-7",
|
|
@@ -2781,7 +2791,7 @@ const Go = ({
|
|
|
2781
2791
|
mask: "+_______________",
|
|
2782
2792
|
replacement: { _: /\d/ }
|
|
2783
2793
|
}
|
|
2784
|
-
},
|
|
2794
|
+
}, Vo = ({
|
|
2785
2795
|
value: t = "",
|
|
2786
2796
|
id: i,
|
|
2787
2797
|
label: d,
|
|
@@ -2793,19 +2803,19 @@ const Go = ({
|
|
|
2793
2803
|
classNames: f,
|
|
2794
2804
|
...h
|
|
2795
2805
|
}) => {
|
|
2796
|
-
const u =
|
|
2806
|
+
const u = Yt(
|
|
2797
2807
|
() => Ft[c] || Ft.DEFAULT,
|
|
2798
2808
|
[c]
|
|
2799
|
-
), b =
|
|
2809
|
+
), b = dr(u), [x, s] = A(
|
|
2800
2810
|
() => ct(String(t), u)
|
|
2801
2811
|
);
|
|
2802
2812
|
Me(() => {
|
|
2803
2813
|
s(ct(String(t), u));
|
|
2804
2814
|
}, [t, u]);
|
|
2805
2815
|
const y = (g) => {
|
|
2806
|
-
const C = g.target.value.replace(/\D/g, ""),
|
|
2807
|
-
s(
|
|
2808
|
-
}, v = we.parent, m = we.base, S = we.hover, D = we.focus,
|
|
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];
|
|
2809
2819
|
return /* @__PURE__ */ p("div", { className: o(v, f == null ? void 0 : f.parent), children: [
|
|
2810
2820
|
/* @__PURE__ */ p("div", { className: we.title, children: [
|
|
2811
2821
|
!!d && /* @__PURE__ */ e(
|
|
@@ -2834,7 +2844,7 @@ const Go = ({
|
|
|
2834
2844
|
!n && S,
|
|
2835
2845
|
!n && D,
|
|
2836
2846
|
!n && r && D,
|
|
2837
|
-
n &&
|
|
2847
|
+
n && j,
|
|
2838
2848
|
l === "danger" && w,
|
|
2839
2849
|
f == null ? void 0 : f.target
|
|
2840
2850
|
),
|
|
@@ -2852,7 +2862,7 @@ const Go = ({
|
|
|
2852
2862
|
variants: {
|
|
2853
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"
|
|
2854
2864
|
}
|
|
2855
|
-
}, { Root:
|
|
2865
|
+
}, { Root: Vn } = nr, Zo = Ut.forwardRef(
|
|
2856
2866
|
({
|
|
2857
2867
|
id: t = "",
|
|
2858
2868
|
title: i,
|
|
@@ -2866,11 +2876,11 @@ const Go = ({
|
|
|
2866
2876
|
onClick: h,
|
|
2867
2877
|
...u
|
|
2868
2878
|
}, b) => {
|
|
2869
|
-
const [x, s] =
|
|
2879
|
+
const [x, s] = A(n || ""), y = (g) => {
|
|
2870
2880
|
s(g), r == null || r(t, g);
|
|
2871
|
-
}, v = u.disabled || !1, m = $e.base, S = $e.pressed, D = $e.hover,
|
|
2881
|
+
}, v = u.disabled || !1, m = $e.base, S = $e.pressed, D = $e.hover, j = $e.disabled, w = $e.content;
|
|
2872
2882
|
return /* @__PURE__ */ p(
|
|
2873
|
-
|
|
2883
|
+
Vn,
|
|
2874
2884
|
{
|
|
2875
2885
|
ref: b,
|
|
2876
2886
|
onClick: () => h == null ? void 0 : h(t),
|
|
@@ -2878,7 +2888,7 @@ const Go = ({
|
|
|
2878
2888
|
m,
|
|
2879
2889
|
S,
|
|
2880
2890
|
!v && D,
|
|
2881
|
-
v &&
|
|
2891
|
+
v && j,
|
|
2882
2892
|
f
|
|
2883
2893
|
),
|
|
2884
2894
|
...u,
|
|
@@ -2896,7 +2906,7 @@ const Go = ({
|
|
|
2896
2906
|
),
|
|
2897
2907
|
/* @__PURE__ */ p("div", { className: w.actions, children: [
|
|
2898
2908
|
!!c && /* @__PURE__ */ e(
|
|
2899
|
-
|
|
2909
|
+
cr,
|
|
2900
2910
|
{
|
|
2901
2911
|
options: c,
|
|
2902
2912
|
value: x,
|
|
@@ -2913,7 +2923,7 @@ const Go = ({
|
|
|
2913
2923
|
base: w.button
|
|
2914
2924
|
},
|
|
2915
2925
|
children: /* @__PURE__ */ e(
|
|
2916
|
-
|
|
2926
|
+
rn,
|
|
2917
2927
|
{
|
|
2918
2928
|
className: w.icon,
|
|
2919
2929
|
width: 15,
|
|
@@ -2941,7 +2951,7 @@ const Go = ({
|
|
|
2941
2951
|
classNames: {
|
|
2942
2952
|
root: w.link
|
|
2943
2953
|
},
|
|
2944
|
-
children: String(g.value).slice(0, 15)
|
|
2954
|
+
children: String(g.value).length > 15 ? `${String(g.value).slice(0, 15)}...` : g.value
|
|
2945
2955
|
}
|
|
2946
2956
|
) : /* @__PURE__ */ e(
|
|
2947
2957
|
"span",
|
|
@@ -2977,15 +2987,15 @@ const Go = ({
|
|
|
2977
2987
|
amount: "block text-dark-30 font-semibold break-all",
|
|
2978
2988
|
disabled: "text-dark-30/[.42]"
|
|
2979
2989
|
}
|
|
2980
|
-
},
|
|
2981
|
-
|
|
2990
|
+
}, Qo = Ut.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: d, classNames: n, iconSizes: r }, l) => /* @__PURE__ */ e(
|
|
2991
|
+
Pt,
|
|
2982
2992
|
{
|
|
2983
2993
|
ref: l,
|
|
2984
2994
|
value: i,
|
|
2985
2995
|
onValueChange: d,
|
|
2986
2996
|
className: o(n == null ? void 0 : n.tab, ye.tab),
|
|
2987
|
-
children: /* @__PURE__ */ e(
|
|
2988
|
-
|
|
2997
|
+
children: /* @__PURE__ */ e(Nt, { className: o(ye.list, n == null ? void 0 : n.list), children: t && t.map((c) => /* @__PURE__ */ p(
|
|
2998
|
+
er,
|
|
2989
2999
|
{
|
|
2990
3000
|
value: c.value,
|
|
2991
3001
|
disabled: c.disabled,
|
|
@@ -3022,7 +3032,7 @@ const Go = ({
|
|
|
3022
3032
|
label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
|
|
3023
3033
|
activeIcon: "fill-dark-40",
|
|
3024
3034
|
iconInactive: "fill-dark-40/[.50]"
|
|
3025
|
-
},
|
|
3035
|
+
}, qo = $.forwardRef(
|
|
3026
3036
|
({ tabs: t = [], activeTab: i, onTabChange: d, onEditTabContent: n, classNames: r }, l) => {
|
|
3027
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(
|
|
3028
3038
|
"ul",
|
|
@@ -3047,15 +3057,15 @@ const Go = ({
|
|
|
3047
3057
|
}
|
|
3048
3058
|
);
|
|
3049
3059
|
return /* @__PURE__ */ p(
|
|
3050
|
-
|
|
3060
|
+
Pt,
|
|
3051
3061
|
{
|
|
3052
3062
|
ref: l,
|
|
3053
3063
|
value: i,
|
|
3054
3064
|
onValueChange: d,
|
|
3055
3065
|
className: o(c, r == null ? void 0 : r.base),
|
|
3056
3066
|
children: [
|
|
3057
|
-
/* @__PURE__ */ e(
|
|
3058
|
-
|
|
3067
|
+
/* @__PURE__ */ e(Nt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3068
|
+
er,
|
|
3059
3069
|
{
|
|
3060
3070
|
value: s.value,
|
|
3061
3071
|
disabled: s.disabled,
|
|
@@ -3082,7 +3092,7 @@ const Go = ({
|
|
|
3082
3092
|
s.value
|
|
3083
3093
|
)) }),
|
|
3084
3094
|
t.map((s, y, v) => /* @__PURE__ */ p(
|
|
3085
|
-
|
|
3095
|
+
Xr,
|
|
3086
3096
|
{
|
|
3087
3097
|
value: s.value,
|
|
3088
3098
|
className: o(
|
|
@@ -3102,7 +3112,7 @@ const Go = ({
|
|
|
3102
3112
|
{
|
|
3103
3113
|
className: "hover:cursor-pointer",
|
|
3104
3114
|
onClick: () => n(s),
|
|
3105
|
-
children: /* @__PURE__ */ e(
|
|
3115
|
+
children: /* @__PURE__ */ e(Br, { className: "fill-sidebar-10" })
|
|
3106
3116
|
}
|
|
3107
3117
|
)
|
|
3108
3118
|
] }),
|
|
@@ -3144,7 +3154,7 @@ const Go = ({
|
|
|
3144
3154
|
base: "flex flex-col gap-1.5",
|
|
3145
3155
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3146
3156
|
}
|
|
3147
|
-
},
|
|
3157
|
+
}, Ko = ({
|
|
3148
3158
|
disabled: t,
|
|
3149
3159
|
labelProps: i,
|
|
3150
3160
|
textareaProps: d,
|
|
@@ -3156,22 +3166,22 @@ const Go = ({
|
|
|
3156
3166
|
!!(i != null && i.children) && /* @__PURE__ */ e(P, { ...i, disabled: t }),
|
|
3157
3167
|
l && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3158
3168
|
] }),
|
|
3159
|
-
/* @__PURE__ */ e(
|
|
3169
|
+
/* @__PURE__ */ e(qt, { ...d, disabled: t })
|
|
3160
3170
|
] });
|
|
3161
3171
|
}, Ot = {
|
|
3162
3172
|
root: "w-full flex flex-col gap-1.5",
|
|
3163
3173
|
labelWrapper: "flex items-center gap-2"
|
|
3164
|
-
},
|
|
3174
|
+
}, Xo = ({
|
|
3165
3175
|
fieldLabel: t,
|
|
3166
3176
|
disabled: i,
|
|
3167
3177
|
className: d,
|
|
3168
3178
|
labelProps: n,
|
|
3169
3179
|
toggleProps: r,
|
|
3170
3180
|
onClick: l
|
|
3171
|
-
}) => /* @__PURE__ */ p("div", { className: o(
|
|
3181
|
+
}) => /* @__PURE__ */ p("div", { className: o(Zn.root, d), children: [
|
|
3172
3182
|
/* @__PURE__ */ e(P, { ...n, disabled: i, children: t }),
|
|
3173
3183
|
/* @__PURE__ */ e(
|
|
3174
|
-
|
|
3184
|
+
Wr,
|
|
3175
3185
|
{
|
|
3176
3186
|
disabled: i,
|
|
3177
3187
|
onClick: l,
|
|
@@ -3181,7 +3191,7 @@ const Go = ({
|
|
|
3181
3191
|
labelPosition: r.labelPosition
|
|
3182
3192
|
}
|
|
3183
3193
|
)
|
|
3184
|
-
] }),
|
|
3194
|
+
] }), Zn = {
|
|
3185
3195
|
root: "flex flex-col items-start gap-3"
|
|
3186
3196
|
}, Be = {
|
|
3187
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",
|
|
@@ -3190,7 +3200,7 @@ const Go = ({
|
|
|
3190
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"
|
|
3191
3201
|
},
|
|
3192
3202
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3193
|
-
},
|
|
3203
|
+
}, Jo = K(
|
|
3194
3204
|
({
|
|
3195
3205
|
blockName: t,
|
|
3196
3206
|
className: i,
|
|
@@ -3219,7 +3229,7 @@ const Go = ({
|
|
|
3219
3229
|
classNames: {
|
|
3220
3230
|
base: o(Be.button.basic, Be.button.active)
|
|
3221
3231
|
},
|
|
3222
|
-
children: /* @__PURE__ */ e(
|
|
3232
|
+
children: /* @__PURE__ */ e(Er, {})
|
|
3223
3233
|
}
|
|
3224
3234
|
),
|
|
3225
3235
|
/* @__PURE__ */ e(k, { className: Be.wrapperBlockName, children: t || "-" }),
|
|
@@ -3233,13 +3243,13 @@ const Go = ({
|
|
|
3233
3243
|
classNames: {
|
|
3234
3244
|
base: o(Be.button.basic, Be.button.active)
|
|
3235
3245
|
},
|
|
3236
|
-
children: /* @__PURE__ */ e(
|
|
3246
|
+
children: /* @__PURE__ */ e(nn, {})
|
|
3237
3247
|
}
|
|
3238
3248
|
)
|
|
3239
3249
|
]
|
|
3240
3250
|
}
|
|
3241
3251
|
)
|
|
3242
|
-
),
|
|
3252
|
+
), Qn = [
|
|
3243
3253
|
"Январь",
|
|
3244
3254
|
"Февраль",
|
|
3245
3255
|
"Март",
|
|
@@ -3252,12 +3262,12 @@ const Go = ({
|
|
|
3252
3262
|
"Октябрь",
|
|
3253
3263
|
"Ноябрь",
|
|
3254
3264
|
"Декабрь"
|
|
3255
|
-
],
|
|
3265
|
+
], qn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
|
|
3256
3266
|
(t) => ({
|
|
3257
3267
|
label: t.toString(),
|
|
3258
3268
|
value: t.toString()
|
|
3259
3269
|
})
|
|
3260
|
-
),
|
|
3270
|
+
), Po = ({
|
|
3261
3271
|
value: t,
|
|
3262
3272
|
setValue: i,
|
|
3263
3273
|
disabled: d,
|
|
@@ -3268,24 +3278,28 @@ const Go = ({
|
|
|
3268
3278
|
const c = ue(null), a = (T) => {
|
|
3269
3279
|
if (!T) return;
|
|
3270
3280
|
if (T instanceof Date) return T;
|
|
3271
|
-
const _ = wt(
|
|
3281
|
+
const _ = wt(
|
|
3282
|
+
T,
|
|
3283
|
+
Wt,
|
|
3284
|
+
/* @__PURE__ */ new Date()
|
|
3285
|
+
);
|
|
3272
3286
|
if (_e(_)) return _;
|
|
3273
|
-
const R =
|
|
3287
|
+
const R = xn(T);
|
|
3274
3288
|
return _e(R) ? R : void 0;
|
|
3275
|
-
}, [f, h] =
|
|
3289
|
+
}, [f, h] = A(
|
|
3276
3290
|
a(t)
|
|
3277
|
-
), [u, b] =
|
|
3291
|
+
), [u, b] = A(
|
|
3278
3292
|
f == null ? void 0 : f.getDate()
|
|
3279
|
-
), [x, s] =
|
|
3293
|
+
), [x, s] = A(
|
|
3280
3294
|
f == null ? void 0 : f.getMonth()
|
|
3281
|
-
), [y, v] =
|
|
3295
|
+
), [y, v] = A(
|
|
3282
3296
|
f == null ? void 0 : f.getFullYear()
|
|
3283
3297
|
);
|
|
3284
3298
|
Me(() => {
|
|
3285
3299
|
const T = a(t);
|
|
3286
3300
|
h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), v(T == null ? void 0 : T.getFullYear());
|
|
3287
3301
|
}, [t]);
|
|
3288
|
-
const m = /* @__PURE__ */ new Date(), S = y ?? m.getFullYear(), D = x ?? m.getMonth(),
|
|
3302
|
+
const m = /* @__PURE__ */ new Date(), S = y ?? m.getFullYear(), D = x ?? m.getMonth(), j = Yt(() => {
|
|
3289
3303
|
const T = new Date(S, D + 1, 0).getDate();
|
|
3290
3304
|
return Array.from({ length: T }, (_, R) => {
|
|
3291
3305
|
const G = R + 1;
|
|
@@ -3297,7 +3311,9 @@ const Go = ({
|
|
|
3297
3311
|
}, [D, S]), w = (T, _, R) => {
|
|
3298
3312
|
if (T !== void 0 && _ !== void 0 && R !== void 0) {
|
|
3299
3313
|
const G = new Date(R, _, T);
|
|
3300
|
-
h(G), i(
|
|
3314
|
+
h(G), i(
|
|
3315
|
+
jr(G, Wt)
|
|
3316
|
+
);
|
|
3301
3317
|
} else
|
|
3302
3318
|
h(void 0), i(void 0);
|
|
3303
3319
|
}, g = (T) => {
|
|
@@ -3306,23 +3322,23 @@ const Go = ({
|
|
|
3306
3322
|
}, C = (T) => {
|
|
3307
3323
|
const _ = parseInt(T);
|
|
3308
3324
|
v(_), w(u, x, _);
|
|
3309
|
-
},
|
|
3325
|
+
}, I = (T) => {
|
|
3310
3326
|
const _ = parseInt(T);
|
|
3311
3327
|
b(_), w(_, x, y);
|
|
3312
3328
|
};
|
|
3313
|
-
return /* @__PURE__ */ p("div", { ref: c, className:
|
|
3329
|
+
return /* @__PURE__ */ p("div", { ref: c, className: $t.root, children: [
|
|
3314
3330
|
!!n && /* @__PURE__ */ e(P, { className: o(l == null ? void 0 : l.label), children: n }),
|
|
3315
|
-
/* @__PURE__ */ p("div", { className:
|
|
3331
|
+
/* @__PURE__ */ p("div", { className: $t.selectContainer, children: [
|
|
3316
3332
|
/* @__PURE__ */ e(
|
|
3317
3333
|
Ce,
|
|
3318
3334
|
{
|
|
3319
|
-
options:
|
|
3335
|
+
options: j,
|
|
3320
3336
|
classNames: {
|
|
3321
3337
|
trigger: o("w-full h-11 bg-gray-50", l == null ? void 0 : l.selectTrigger),
|
|
3322
3338
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
3323
3339
|
},
|
|
3324
3340
|
disabled: d,
|
|
3325
|
-
onChange:
|
|
3341
|
+
onChange: I,
|
|
3326
3342
|
value: u !== void 0 ? String(u) : "",
|
|
3327
3343
|
placeholder: "День",
|
|
3328
3344
|
status: r === "danger" ? "danger" : void 0
|
|
@@ -3331,7 +3347,7 @@ const Go = ({
|
|
|
3331
3347
|
/* @__PURE__ */ e(
|
|
3332
3348
|
Ce,
|
|
3333
3349
|
{
|
|
3334
|
-
options:
|
|
3350
|
+
options: Qn.map((T, _) => ({
|
|
3335
3351
|
label: T,
|
|
3336
3352
|
value: _.toString()
|
|
3337
3353
|
})),
|
|
@@ -3349,7 +3365,7 @@ const Go = ({
|
|
|
3349
3365
|
/* @__PURE__ */ e(
|
|
3350
3366
|
Ce,
|
|
3351
3367
|
{
|
|
3352
|
-
options:
|
|
3368
|
+
options: qn,
|
|
3353
3369
|
classNames: {
|
|
3354
3370
|
trigger: o("w-full h-11", l == null ? void 0 : l.selectTrigger),
|
|
3355
3371
|
selected: o("text-sm", l == null ? void 0 : l.selectSelected)
|
|
@@ -3364,12 +3380,12 @@ const Go = ({
|
|
|
3364
3380
|
)
|
|
3365
3381
|
] })
|
|
3366
3382
|
] });
|
|
3367
|
-
},
|
|
3383
|
+
}, $t = {
|
|
3368
3384
|
root: "relative w-full flex items-start flex-col gap-1.5",
|
|
3369
3385
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3370
3386
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3371
3387
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3372
|
-
},
|
|
3388
|
+
}, Kn = ({
|
|
3373
3389
|
badge: t,
|
|
3374
3390
|
isExpanded: i = !0,
|
|
3375
3391
|
isActive: d = !1,
|
|
@@ -3458,7 +3474,7 @@ const Go = ({
|
|
|
3458
3474
|
badge: "top-0 translate-x-1 -translate-y-4",
|
|
3459
3475
|
label: "w-0 opacity-0"
|
|
3460
3476
|
}
|
|
3461
|
-
},
|
|
3477
|
+
}, No = ({
|
|
3462
3478
|
options: t,
|
|
3463
3479
|
title: i,
|
|
3464
3480
|
setActiveStep: d,
|
|
@@ -3466,7 +3482,7 @@ const Go = ({
|
|
|
3466
3482
|
classNames: r
|
|
3467
3483
|
}) => /* @__PURE__ */ p("div", { className: o(Y.root, r == null ? void 0 : r.root), "data-testid": "stepper", children: [
|
|
3468
3484
|
i && /* @__PURE__ */ p("div", { className: o(Y.header, r == null ? void 0 : r.header), children: [
|
|
3469
|
-
/* @__PURE__ */ e(
|
|
3485
|
+
/* @__PURE__ */ e(fn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3470
3486
|
/* @__PURE__ */ e(
|
|
3471
3487
|
Je,
|
|
3472
3488
|
{
|
|
@@ -3571,20 +3587,20 @@ const Go = ({
|
|
|
3571
3587
|
"div",
|
|
3572
3588
|
{
|
|
3573
3589
|
className: o(
|
|
3574
|
-
|
|
3590
|
+
Rt.wrapper,
|
|
3575
3591
|
n === "right" && "flex-row-reverse",
|
|
3576
3592
|
d == null ? void 0 : d.wrapper
|
|
3577
3593
|
),
|
|
3578
3594
|
children: [
|
|
3579
3595
|
!!t && t,
|
|
3580
|
-
/* @__PURE__ */ e(k, { className: o(
|
|
3596
|
+
/* @__PURE__ */ e(k, { className: o(Rt.headerTitle, d == null ? void 0 : d.title), children: i })
|
|
3581
3597
|
]
|
|
3582
3598
|
}
|
|
3583
|
-
),
|
|
3599
|
+
), Rt = {
|
|
3584
3600
|
wrapper: "flex items-center gap-2 w-full",
|
|
3585
3601
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3586
3602
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3587
|
-
},
|
|
3603
|
+
}, It = K(
|
|
3588
3604
|
({
|
|
3589
3605
|
id: t,
|
|
3590
3606
|
label: i,
|
|
@@ -3623,7 +3639,7 @@ const Go = ({
|
|
|
3623
3639
|
),
|
|
3624
3640
|
children: [
|
|
3625
3641
|
/* @__PURE__ */ e(
|
|
3626
|
-
|
|
3642
|
+
Mr,
|
|
3627
3643
|
{
|
|
3628
3644
|
...h,
|
|
3629
3645
|
ref: b,
|
|
@@ -3703,7 +3719,7 @@ const Go = ({
|
|
|
3703
3719
|
icon: "fill-dark-10/60 size-6",
|
|
3704
3720
|
text: "text-gray-10 text-sm font-mono leading-none"
|
|
3705
3721
|
}
|
|
3706
|
-
},
|
|
3722
|
+
}, ei = ({
|
|
3707
3723
|
icon: t,
|
|
3708
3724
|
element: i,
|
|
3709
3725
|
label: d,
|
|
@@ -3752,7 +3768,7 @@ const Go = ({
|
|
|
3752
3768
|
},
|
|
3753
3769
|
...h
|
|
3754
3770
|
}) => {
|
|
3755
|
-
const u =
|
|
3771
|
+
const u = Xn.states;
|
|
3756
3772
|
return /* @__PURE__ */ p(
|
|
3757
3773
|
Ee,
|
|
3758
3774
|
{
|
|
@@ -3778,7 +3794,7 @@ const Go = ({
|
|
|
3778
3794
|
),
|
|
3779
3795
|
children: [
|
|
3780
3796
|
l && /* @__PURE__ */ e(
|
|
3781
|
-
|
|
3797
|
+
Hr,
|
|
3782
3798
|
{
|
|
3783
3799
|
width: f.width,
|
|
3784
3800
|
height: f.height,
|
|
@@ -3790,7 +3806,7 @@ const Go = ({
|
|
|
3790
3806
|
]
|
|
3791
3807
|
}
|
|
3792
3808
|
);
|
|
3793
|
-
},
|
|
3809
|
+
}, Xn = {
|
|
3794
3810
|
states: {
|
|
3795
3811
|
active: "active:text-primary-30",
|
|
3796
3812
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
@@ -3798,7 +3814,7 @@ const Go = ({
|
|
|
3798
3814
|
hover: "hover:text-primary-20",
|
|
3799
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"
|
|
3800
3816
|
}
|
|
3801
|
-
},
|
|
3817
|
+
}, cr = K(
|
|
3802
3818
|
({
|
|
3803
3819
|
classNames: t,
|
|
3804
3820
|
disabled: i,
|
|
@@ -3808,8 +3824,8 @@ const Go = ({
|
|
|
3808
3824
|
value: l
|
|
3809
3825
|
}, c) => {
|
|
3810
3826
|
var D;
|
|
3811
|
-
const [a, f] =
|
|
3812
|
-
className:
|
|
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 = ({
|
|
3828
|
+
className: j,
|
|
3813
3829
|
text: w = ""
|
|
3814
3830
|
}) => /* @__PURE__ */ e(
|
|
3815
3831
|
k,
|
|
@@ -3817,15 +3833,15 @@ const Go = ({
|
|
|
3817
3833
|
className: o(
|
|
3818
3834
|
x.placeholder,
|
|
3819
3835
|
i && v,
|
|
3820
|
-
|
|
3836
|
+
j
|
|
3821
3837
|
),
|
|
3822
3838
|
children: w
|
|
3823
3839
|
}
|
|
3824
3840
|
);
|
|
3825
3841
|
return Me(() => {
|
|
3826
3842
|
a && setTimeout(() => {
|
|
3827
|
-
var
|
|
3828
|
-
(
|
|
3843
|
+
var j;
|
|
3844
|
+
(j = b.current) == null || j.scrollIntoView({ block: "center" });
|
|
3829
3845
|
}, 0);
|
|
3830
3846
|
}, [a]), /* @__PURE__ */ p(et, { open: a, onOpenChange: f, children: [
|
|
3831
3847
|
/* @__PURE__ */ p(
|
|
@@ -3855,7 +3871,7 @@ const Go = ({
|
|
|
3855
3871
|
}
|
|
3856
3872
|
),
|
|
3857
3873
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3858
|
-
|
|
3874
|
+
ir,
|
|
3859
3875
|
{
|
|
3860
3876
|
className: o(x.icon, a && "rotate-180"),
|
|
3861
3877
|
width: 16,
|
|
@@ -3872,24 +3888,24 @@ const Go = ({
|
|
|
3872
3888
|
className: o(s.content, t == null ? void 0 : t.content),
|
|
3873
3889
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3874
3890
|
ref: c,
|
|
3875
|
-
children: /* @__PURE__ */ e("div", { className: o(s.wrapper), children: !!n && (n == null ? void 0 : n.map((
|
|
3891
|
+
children: /* @__PURE__ */ e("div", { className: o(s.wrapper), children: !!n && (n == null ? void 0 : n.map((j) => /* @__PURE__ */ e(
|
|
3876
3892
|
Dt,
|
|
3877
3893
|
{
|
|
3878
|
-
ref: l ===
|
|
3894
|
+
ref: l === j.value ? b : null,
|
|
3879
3895
|
className: o(s.items),
|
|
3880
3896
|
onClick: (w) => {
|
|
3881
|
-
w.preventDefault(), w.stopPropagation(), d(
|
|
3897
|
+
w.preventDefault(), w.stopPropagation(), d(j.value), f(!1);
|
|
3882
3898
|
},
|
|
3883
|
-
children: /* @__PURE__ */ e(He, { text:
|
|
3899
|
+
children: /* @__PURE__ */ e(He, { text: j.label, variant: j.status })
|
|
3884
3900
|
},
|
|
3885
|
-
|
|
3901
|
+
j.value
|
|
3886
3902
|
))) })
|
|
3887
3903
|
}
|
|
3888
3904
|
)
|
|
3889
3905
|
] });
|
|
3890
3906
|
}
|
|
3891
3907
|
);
|
|
3892
|
-
|
|
3908
|
+
cr.displayName = "StatusSelect";
|
|
3893
3909
|
const Re = {
|
|
3894
3910
|
base: {
|
|
3895
3911
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3917,20 +3933,20 @@ const Re = {
|
|
|
3917
3933
|
items: "group rounded-[5px] cursor-pointer p-0",
|
|
3918
3934
|
itemsText: "flex items-center w-full mr-1.5 text-dark-30 text-xs font-normal py-1 px-3 rounded-[50px]"
|
|
3919
3935
|
}
|
|
3920
|
-
},
|
|
3936
|
+
}, ti = ({
|
|
3921
3937
|
classNames: t,
|
|
3922
3938
|
label: i,
|
|
3923
3939
|
selectProps: d,
|
|
3924
3940
|
...n
|
|
3925
|
-
}) => /* @__PURE__ */ p("div", { ...n, className: o(
|
|
3941
|
+
}) => /* @__PURE__ */ p("div", { ...n, className: o(Jn.container, t == null ? void 0 : t.container), children: [
|
|
3926
3942
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3927
3943
|
/* @__PURE__ */ e(P, { disabled: d == null ? void 0 : d.disabled, className: t == null ? void 0 : t.label, children: i }),
|
|
3928
3944
|
(d == null ? void 0 : d.status) === "danger" && /* @__PURE__ */ e(be, { className: "fill-danger-10" })
|
|
3929
3945
|
] }),
|
|
3930
3946
|
/* @__PURE__ */ e(Ce, { ...d })
|
|
3931
|
-
] }),
|
|
3947
|
+
] }), Jn = {
|
|
3932
3948
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3933
|
-
},
|
|
3949
|
+
}, ri = K(
|
|
3934
3950
|
({
|
|
3935
3951
|
title: t,
|
|
3936
3952
|
file: i,
|
|
@@ -3971,7 +3987,7 @@ const Re = {
|
|
|
3971
3987
|
width: 22,
|
|
3972
3988
|
height: 30
|
|
3973
3989
|
}
|
|
3974
|
-
) : /* @__PURE__ */ e(
|
|
3990
|
+
) : /* @__PURE__ */ e(Vt, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3975
3991
|
/* @__PURE__ */ p("div", { className: "flex-grow", children: [
|
|
3976
3992
|
/* @__PURE__ */ e(
|
|
3977
3993
|
k,
|
|
@@ -4008,7 +4024,7 @@ const Re = {
|
|
|
4008
4024
|
},
|
|
4009
4025
|
onClick: r,
|
|
4010
4026
|
variant: "text",
|
|
4011
|
-
icon:
|
|
4027
|
+
icon: Ae,
|
|
4012
4028
|
iconDimensions: { height: 20, width: 20, viewBox: "0 0 30 30" }
|
|
4013
4029
|
}
|
|
4014
4030
|
)
|
|
@@ -4047,7 +4063,7 @@ const Re = {
|
|
|
4047
4063
|
textDisabled: "text-dark-30/25 fill-dark-30/25 decoration-dark-30/25",
|
|
4048
4064
|
iconContainer: "mr-3 pt-1.5 h-full",
|
|
4049
4065
|
fileImg: " object-cover"
|
|
4050
|
-
},
|
|
4066
|
+
}, ni = ({
|
|
4051
4067
|
title: t,
|
|
4052
4068
|
dateAndTime: i,
|
|
4053
4069
|
onDelete: d,
|
|
@@ -4102,7 +4118,7 @@ const Re = {
|
|
|
4102
4118
|
},
|
|
4103
4119
|
onClick: n,
|
|
4104
4120
|
variant: "text",
|
|
4105
|
-
icon:
|
|
4121
|
+
icon: or,
|
|
4106
4122
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4107
4123
|
}
|
|
4108
4124
|
),
|
|
@@ -4116,7 +4132,7 @@ const Re = {
|
|
|
4116
4132
|
},
|
|
4117
4133
|
onClick: r,
|
|
4118
4134
|
variant: "text",
|
|
4119
|
-
icon:
|
|
4135
|
+
icon: Vr,
|
|
4120
4136
|
iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
|
|
4121
4137
|
}
|
|
4122
4138
|
),
|
|
@@ -4130,7 +4146,7 @@ const Re = {
|
|
|
4130
4146
|
},
|
|
4131
4147
|
onClick: d,
|
|
4132
4148
|
variant: "text",
|
|
4133
|
-
icon:
|
|
4149
|
+
icon: Ae,
|
|
4134
4150
|
iconDimensions: { height: 13, width: 13, viewBox: "0 0 26 26" }
|
|
4135
4151
|
}
|
|
4136
4152
|
)
|
|
@@ -4155,7 +4171,7 @@ const Re = {
|
|
|
4155
4171
|
basic: " p-0",
|
|
4156
4172
|
icon: "fill-dark-30/[.50]"
|
|
4157
4173
|
}
|
|
4158
|
-
},
|
|
4174
|
+
}, oi = ({
|
|
4159
4175
|
title: t,
|
|
4160
4176
|
options: i,
|
|
4161
4177
|
icon: d,
|
|
@@ -4212,7 +4228,7 @@ const Re = {
|
|
|
4212
4228
|
link: "font-medium text-sm text-[#2AABEE] font-mono p-0 underline underline-offset-[3px] hover:text-[#2AABEE]",
|
|
4213
4229
|
headerIcon: "p-0 text-dark-10 font-semibold text-xl gap-1.5",
|
|
4214
4230
|
icon: "fill-dark-30"
|
|
4215
|
-
},
|
|
4231
|
+
}, ii = ({
|
|
4216
4232
|
title: t,
|
|
4217
4233
|
options: i,
|
|
4218
4234
|
classNames: d
|
|
@@ -4279,17 +4295,17 @@ const Re = {
|
|
|
4279
4295
|
k,
|
|
4280
4296
|
{
|
|
4281
4297
|
"data-testid": "label",
|
|
4282
|
-
className: o(
|
|
4298
|
+
className: o(Lt.label, d == null ? void 0 : d.label),
|
|
4283
4299
|
...n,
|
|
4284
4300
|
children: [
|
|
4285
4301
|
i,
|
|
4286
|
-
/* @__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 })
|
|
4287
4303
|
]
|
|
4288
4304
|
}
|
|
4289
|
-
),
|
|
4305
|
+
), Lt = {
|
|
4290
4306
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4291
4307
|
value: "text-sm text-dark-30 font-semibold"
|
|
4292
|
-
},
|
|
4308
|
+
}, Pn = K(
|
|
4293
4309
|
({
|
|
4294
4310
|
classNames: t,
|
|
4295
4311
|
disabled: i,
|
|
@@ -4304,17 +4320,17 @@ const Re = {
|
|
|
4304
4320
|
options: u = []
|
|
4305
4321
|
}, b) => {
|
|
4306
4322
|
var xe;
|
|
4307
|
-
const [x, s] =
|
|
4323
|
+
const [x, s] = A(!1), [y, v] = A(a || ""), [m, S] = A(""), [D, j] = A(null), w = ue(null), g = () => {
|
|
4308
4324
|
const W = m.trim();
|
|
4309
|
-
W && (D && l ? (l(W, D),
|
|
4325
|
+
W && (D && l ? (l(W, D), j(null)) : r(W), S(""));
|
|
4310
4326
|
}, C = (W, Q) => {
|
|
4311
|
-
Q.stopPropagation(),
|
|
4327
|
+
Q.stopPropagation(), j(W);
|
|
4312
4328
|
const re = u.find((X) => X.value === W);
|
|
4313
4329
|
re && S(re.label);
|
|
4314
|
-
},
|
|
4330
|
+
}, I = (W, Q) => {
|
|
4315
4331
|
Q.stopPropagation(), n(W), y === W && v("");
|
|
4316
4332
|
}, T = () => {
|
|
4317
|
-
S(""),
|
|
4333
|
+
S(""), j(null);
|
|
4318
4334
|
}, _ = () => {
|
|
4319
4335
|
s(!1), T();
|
|
4320
4336
|
}, R = () => {
|
|
@@ -4376,7 +4392,7 @@ const Re = {
|
|
|
4376
4392
|
children: [
|
|
4377
4393
|
h && /* @__PURE__ */ e(k, { className: o(H.options.label), children: h }),
|
|
4378
4394
|
/* @__PURE__ */ e(
|
|
4379
|
-
|
|
4395
|
+
It,
|
|
4380
4396
|
{
|
|
4381
4397
|
inputProps: {
|
|
4382
4398
|
id: "select-list",
|
|
@@ -4385,7 +4401,7 @@ const Re = {
|
|
|
4385
4401
|
value: m,
|
|
4386
4402
|
onChange: (W) => S(W.target.value)
|
|
4387
4403
|
},
|
|
4388
|
-
icon:
|
|
4404
|
+
icon: Jt,
|
|
4389
4405
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4390
4406
|
iconPosition: "right",
|
|
4391
4407
|
onIconClick: g
|
|
@@ -4441,12 +4457,12 @@ const Re = {
|
|
|
4441
4457
|
M,
|
|
4442
4458
|
{
|
|
4443
4459
|
variant: "text",
|
|
4444
|
-
icon:
|
|
4460
|
+
icon: Ae,
|
|
4445
4461
|
classNames: {
|
|
4446
4462
|
base: "p-0",
|
|
4447
4463
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4448
4464
|
},
|
|
4449
|
-
onClick: (X) =>
|
|
4465
|
+
onClick: (X) => I(W.value, X),
|
|
4450
4466
|
iconDimensions: {
|
|
4451
4467
|
height: 20,
|
|
4452
4468
|
width: 20,
|
|
@@ -4491,7 +4507,7 @@ const Re = {
|
|
|
4491
4507
|
] });
|
|
4492
4508
|
}
|
|
4493
4509
|
);
|
|
4494
|
-
|
|
4510
|
+
Pn.displayName = "SelectList";
|
|
4495
4511
|
const H = {
|
|
4496
4512
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4497
4513
|
base: {
|
|
@@ -4522,7 +4538,7 @@ const H = {
|
|
|
4522
4538
|
primaryActionCancel: "text-sm font-semibold text-dark-30 font-mono cursor-pointer border border-dark-30/[.25] px-4 py-3 rounded-[10px]",
|
|
4523
4539
|
primaryActionApply: "text-sm font-semibold bg-primary-10 text-sidebar-10 font-mono cursor-pointer px-4 py-3 rounded-[10px]"
|
|
4524
4540
|
}
|
|
4525
|
-
},
|
|
4541
|
+
}, Nn = ({
|
|
4526
4542
|
classNames: t,
|
|
4527
4543
|
isActive: i,
|
|
4528
4544
|
item: { icon: d, label: n = "" },
|
|
@@ -4531,9 +4547,9 @@ const H = {
|
|
|
4531
4547
|
"div",
|
|
4532
4548
|
{
|
|
4533
4549
|
className: o(
|
|
4534
|
-
|
|
4550
|
+
Ie.base.container,
|
|
4535
4551
|
{
|
|
4536
|
-
[
|
|
4552
|
+
[Ie.active.container]: i
|
|
4537
4553
|
},
|
|
4538
4554
|
t == null ? void 0 : t.container
|
|
4539
4555
|
),
|
|
@@ -4544,9 +4560,9 @@ const H = {
|
|
|
4544
4560
|
d,
|
|
4545
4561
|
{
|
|
4546
4562
|
className: o(
|
|
4547
|
-
|
|
4563
|
+
Ie.base.icon,
|
|
4548
4564
|
{
|
|
4549
|
-
[
|
|
4565
|
+
[Ie.active.icon]: i
|
|
4550
4566
|
},
|
|
4551
4567
|
t == null ? void 0 : t.icon
|
|
4552
4568
|
)
|
|
@@ -4556,9 +4572,9 @@ const H = {
|
|
|
4556
4572
|
k,
|
|
4557
4573
|
{
|
|
4558
4574
|
className: o(
|
|
4559
|
-
|
|
4575
|
+
Ie.base.label,
|
|
4560
4576
|
{
|
|
4561
|
-
[
|
|
4577
|
+
[Ie.active.label]: i
|
|
4562
4578
|
},
|
|
4563
4579
|
t == null ? void 0 : t.label
|
|
4564
4580
|
),
|
|
@@ -4567,7 +4583,7 @@ const H = {
|
|
|
4567
4583
|
)
|
|
4568
4584
|
]
|
|
4569
4585
|
}
|
|
4570
|
-
),
|
|
4586
|
+
), Ie = {
|
|
4571
4587
|
active: {
|
|
4572
4588
|
container: "bg-sidebar-20",
|
|
4573
4589
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10",
|
|
@@ -4578,7 +4594,7 @@ const H = {
|
|
|
4578
4594
|
icon: "fill-dark-40/[.80] group-hover:fill-primary-10",
|
|
4579
4595
|
label: "max-w-[55px] text-xs text-center text-dark-40/[.80] font-semibold truncate group-hover:text-primary-10"
|
|
4580
4596
|
}
|
|
4581
|
-
},
|
|
4597
|
+
}, di = ({
|
|
4582
4598
|
tabs: t = [],
|
|
4583
4599
|
activeTabId: i,
|
|
4584
4600
|
popoverOptions: d = [],
|
|
@@ -4609,7 +4625,7 @@ const H = {
|
|
|
4609
4625
|
base: "items-center justify-center h-[60px]",
|
|
4610
4626
|
icon: "fill-dark-40/[.80] hover:fill-primary-10"
|
|
4611
4627
|
},
|
|
4612
|
-
icon:
|
|
4628
|
+
icon: on
|
|
4613
4629
|
}
|
|
4614
4630
|
) }),
|
|
4615
4631
|
/* @__PURE__ */ e(
|
|
@@ -4631,7 +4647,7 @@ const H = {
|
|
|
4631
4647
|
},
|
|
4632
4648
|
children: [
|
|
4633
4649
|
/* @__PURE__ */ e(
|
|
4634
|
-
|
|
4650
|
+
Kt,
|
|
4635
4651
|
{
|
|
4636
4652
|
id: `popover-radio-${u.value}`,
|
|
4637
4653
|
checked: b,
|
|
@@ -4658,7 +4674,7 @@ const H = {
|
|
|
4658
4674
|
)
|
|
4659
4675
|
] }),
|
|
4660
4676
|
/* @__PURE__ */ e("div", { className: o(Le.body, r == null ? void 0 : r.body), children: t.map((u) => /* @__PURE__ */ e(
|
|
4661
|
-
|
|
4677
|
+
Nn,
|
|
4662
4678
|
{
|
|
4663
4679
|
item: u,
|
|
4664
4680
|
isActive: i === u.id,
|
|
@@ -4697,17 +4713,17 @@ const H = {
|
|
|
4697
4713
|
popover: "flex flex-col gap-2 p-1 w-auto",
|
|
4698
4714
|
popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
|
|
4699
4715
|
actions: "flex flex-col mt-auto gap-5 mb-5"
|
|
4700
|
-
},
|
|
4716
|
+
}, ai = ({
|
|
4701
4717
|
chats: t,
|
|
4702
4718
|
onSelectChat: i,
|
|
4703
4719
|
classNames: d
|
|
4704
4720
|
}) => {
|
|
4705
|
-
const [n, r] =
|
|
4721
|
+
const [n, r] = A(null), [l, c] = A(""), a = (f) => {
|
|
4706
4722
|
r(f), i == null || i(f);
|
|
4707
4723
|
};
|
|
4708
|
-
return /* @__PURE__ */ p("div", { className: o(
|
|
4724
|
+
return /* @__PURE__ */ p("div", { className: o(zt.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
4709
4725
|
/* @__PURE__ */ e(
|
|
4710
|
-
|
|
4726
|
+
Tn,
|
|
4711
4727
|
{
|
|
4712
4728
|
value: l,
|
|
4713
4729
|
onChange: (f) => c(f.target.value),
|
|
@@ -4719,8 +4735,8 @@ const H = {
|
|
|
4719
4735
|
isSearchIcon: !1
|
|
4720
4736
|
}
|
|
4721
4737
|
),
|
|
4722
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
4723
|
-
|
|
4738
|
+
/* @__PURE__ */ e("div", { className: o(zt.list, d == null ? void 0 : d.list), children: t.map((f) => /* @__PURE__ */ e(
|
|
4739
|
+
Un,
|
|
4724
4740
|
{
|
|
4725
4741
|
onClick: () => a(f.id),
|
|
4726
4742
|
photo: f.photo,
|
|
@@ -4734,10 +4750,10 @@ const H = {
|
|
|
4734
4750
|
f.id
|
|
4735
4751
|
)) })
|
|
4736
4752
|
] });
|
|
4737
|
-
},
|
|
4753
|
+
}, zt = {
|
|
4738
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",
|
|
4739
4755
|
list: "flex flex-col justify-center items-center overflow-y-auto w-full pt-5"
|
|
4740
|
-
},
|
|
4756
|
+
}, li = ({
|
|
4741
4757
|
currentUserId: t,
|
|
4742
4758
|
senderId: i,
|
|
4743
4759
|
senderName: d,
|
|
@@ -4751,7 +4767,7 @@ const H = {
|
|
|
4751
4767
|
const h = t === i;
|
|
4752
4768
|
return /* @__PURE__ */ p("div", { className: Ke.root, children: [
|
|
4753
4769
|
l && !h && /* @__PURE__ */ e(
|
|
4754
|
-
|
|
4770
|
+
Qt,
|
|
4755
4771
|
{
|
|
4756
4772
|
imageSrc: r == null ? void 0 : r.url,
|
|
4757
4773
|
alt: r == null ? void 0 : r.alt,
|
|
@@ -4762,7 +4778,7 @@ const H = {
|
|
|
4762
4778
|
const s = (u == null ? void 0 : u.id) && (c == null ? void 0 : c.includes(u.id));
|
|
4763
4779
|
return /* @__PURE__ */ p("ul", { role: "listitem", className: Ke.item, children: [
|
|
4764
4780
|
/* @__PURE__ */ e(
|
|
4765
|
-
|
|
4781
|
+
Ar,
|
|
4766
4782
|
{
|
|
4767
4783
|
id: u.id,
|
|
4768
4784
|
text: u.text,
|
|
@@ -4786,7 +4802,7 @@ const H = {
|
|
|
4786
4802
|
),
|
|
4787
4803
|
onClick: () => a == null ? void 0 : a(u == null ? void 0 : u.id),
|
|
4788
4804
|
children: /* @__PURE__ */ e(
|
|
4789
|
-
|
|
4805
|
+
dn,
|
|
4790
4806
|
{
|
|
4791
4807
|
className: o(
|
|
4792
4808
|
s ? "fill-sidebar-10" : "fill-transparent"
|
|
@@ -4806,7 +4822,7 @@ const H = {
|
|
|
4806
4822
|
list: "w-full flex flex-col items-start gap-2.5",
|
|
4807
4823
|
item: "flex items-end gap-4",
|
|
4808
4824
|
selection: "flex items-center justify-center size-7 rounded-full bg-dark-30/[.08]"
|
|
4809
|
-
},
|
|
4825
|
+
}, ci = ({
|
|
4810
4826
|
messagesCount: t,
|
|
4811
4827
|
open: i,
|
|
4812
4828
|
onDelete: d,
|
|
@@ -4853,7 +4869,7 @@ const H = {
|
|
|
4853
4869
|
M,
|
|
4854
4870
|
{
|
|
4855
4871
|
variant: "text",
|
|
4856
|
-
icon:
|
|
4872
|
+
icon: Ae,
|
|
4857
4873
|
classNames: {
|
|
4858
4874
|
base: c.button,
|
|
4859
4875
|
icon: c.icon
|
|
@@ -4879,10 +4895,10 @@ const H = {
|
|
|
4879
4895
|
icon: "fill-danger-10"
|
|
4880
4896
|
},
|
|
4881
4897
|
amount: "ms-5 me-9"
|
|
4882
|
-
},
|
|
4898
|
+
}, eo = [
|
|
4883
4899
|
{
|
|
4884
4900
|
id: "download",
|
|
4885
|
-
icon:
|
|
4901
|
+
icon: Ir,
|
|
4886
4902
|
iconSizes: {
|
|
4887
4903
|
width: 20,
|
|
4888
4904
|
height: 20,
|
|
@@ -4902,7 +4918,7 @@ const H = {
|
|
|
4902
4918
|
},
|
|
4903
4919
|
{
|
|
4904
4920
|
id: "response",
|
|
4905
|
-
icon:
|
|
4921
|
+
icon: an,
|
|
4906
4922
|
iconSizes: {
|
|
4907
4923
|
width: 20,
|
|
4908
4924
|
height: 20
|
|
@@ -4911,7 +4927,7 @@ const H = {
|
|
|
4911
4927
|
},
|
|
4912
4928
|
{
|
|
4913
4929
|
id: "copy",
|
|
4914
|
-
icon:
|
|
4930
|
+
icon: ln,
|
|
4915
4931
|
iconSizes: {
|
|
4916
4932
|
width: 20,
|
|
4917
4933
|
height: 20
|
|
@@ -4920,7 +4936,7 @@ const H = {
|
|
|
4920
4936
|
},
|
|
4921
4937
|
{
|
|
4922
4938
|
id: "select",
|
|
4923
|
-
icon:
|
|
4939
|
+
icon: cn,
|
|
4924
4940
|
iconSizes: {
|
|
4925
4941
|
width: 20,
|
|
4926
4942
|
height: 20
|
|
@@ -4929,7 +4945,7 @@ const H = {
|
|
|
4929
4945
|
},
|
|
4930
4946
|
{
|
|
4931
4947
|
id: "delete",
|
|
4932
|
-
icon:
|
|
4948
|
+
icon: Ae,
|
|
4933
4949
|
iconSizes: {
|
|
4934
4950
|
width: 20,
|
|
4935
4951
|
height: 20,
|
|
@@ -4938,8 +4954,8 @@ const H = {
|
|
|
4938
4954
|
isDanger: !0,
|
|
4939
4955
|
text: "Удалить"
|
|
4940
4956
|
}
|
|
4941
|
-
],
|
|
4942
|
-
const [d, n] =
|
|
4957
|
+
], pi = ({ trigger: t, onClick: i }) => {
|
|
4958
|
+
const [d, n] = A(!1), r = (u) => {
|
|
4943
4959
|
u.preventDefault(), n(!0);
|
|
4944
4960
|
}, l = (u) => {
|
|
4945
4961
|
i(u), n(!1);
|
|
@@ -4960,7 +4976,7 @@ const H = {
|
|
|
4960
4976
|
sideOffset: 4,
|
|
4961
4977
|
side: "top",
|
|
4962
4978
|
className: gt.wrapper,
|
|
4963
|
-
children:
|
|
4979
|
+
children: eo.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: y }) => /* @__PURE__ */ e(
|
|
4964
4980
|
M,
|
|
4965
4981
|
{
|
|
4966
4982
|
"data-testid": "action",
|
|
@@ -4992,9 +5008,9 @@ const H = {
|
|
|
4992
5008
|
base: "text-danger-10 hover:text-danger-20 p-0 active:text-danger-30 justify-start text-base"
|
|
4993
5009
|
}
|
|
4994
5010
|
}
|
|
4995
|
-
},
|
|
4996
|
-
const i =
|
|
4997
|
-
return /* @__PURE__ */ e("div", { className:
|
|
5011
|
+
}, hi = ({ tabs: t }) => {
|
|
5012
|
+
const i = Xt();
|
|
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(
|
|
4998
5014
|
Fr,
|
|
4999
5015
|
{
|
|
5000
5016
|
icon: n,
|
|
@@ -5005,9 +5021,9 @@ const H = {
|
|
|
5005
5021
|
},
|
|
5006
5022
|
d
|
|
5007
5023
|
)) });
|
|
5008
|
-
},
|
|
5024
|
+
}, to = {
|
|
5009
5025
|
wrapper: "flex items-center mt-4 mb-6 gap-2"
|
|
5010
|
-
},
|
|
5026
|
+
}, ui = ({
|
|
5011
5027
|
options: t = [],
|
|
5012
5028
|
value: i,
|
|
5013
5029
|
placeholder: d,
|
|
@@ -5017,7 +5033,7 @@ const H = {
|
|
|
5017
5033
|
onEdit: c,
|
|
5018
5034
|
onDelete: a
|
|
5019
5035
|
}) => {
|
|
5020
|
-
const [f, h] =
|
|
5036
|
+
const [f, h] = A(!1), u = t == null ? void 0 : t.find((x) => x.id === i), b = (x, s) => {
|
|
5021
5037
|
x.stopPropagation(), r(s), h(!1);
|
|
5022
5038
|
};
|
|
5023
5039
|
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ p(de, { open: f, onOpenChange: h, children: [
|
|
@@ -5033,7 +5049,7 @@ const H = {
|
|
|
5033
5049
|
),
|
|
5034
5050
|
children: [
|
|
5035
5051
|
i ? u == null ? void 0 : u.name.ru : d,
|
|
5036
|
-
/* @__PURE__ */ e(
|
|
5052
|
+
/* @__PURE__ */ e(ir, { className: o(oe.icon, f && "-rotate-180") })
|
|
5037
5053
|
]
|
|
5038
5054
|
}
|
|
5039
5055
|
),
|
|
@@ -5081,7 +5097,7 @@ const H = {
|
|
|
5081
5097
|
y.stopPropagation(), a(s);
|
|
5082
5098
|
},
|
|
5083
5099
|
children: /* @__PURE__ */ e(
|
|
5084
|
-
|
|
5100
|
+
Ae,
|
|
5085
5101
|
{
|
|
5086
5102
|
width: 20,
|
|
5087
5103
|
height: 20,
|
|
@@ -5097,7 +5113,7 @@ const H = {
|
|
|
5097
5113
|
M,
|
|
5098
5114
|
{
|
|
5099
5115
|
variant: "text",
|
|
5100
|
-
icon:
|
|
5116
|
+
icon: Jt,
|
|
5101
5117
|
iconPosition: "left",
|
|
5102
5118
|
iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
|
|
5103
5119
|
size: "medium",
|
|
@@ -5121,7 +5137,7 @@ const H = {
|
|
|
5121
5137
|
item: "flex items-center justify-between cursor-pointer",
|
|
5122
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',
|
|
5123
5139
|
actions: "flex gap-2"
|
|
5124
|
-
},
|
|
5140
|
+
}, ro = {
|
|
5125
5141
|
pie: {
|
|
5126
5142
|
radius: ["0%", "90%"],
|
|
5127
5143
|
legendPosition: { orient: "vertical", left: 0, bottom: "10%" },
|
|
@@ -5132,12 +5148,12 @@ const H = {
|
|
|
5132
5148
|
legendPosition: { orient: "vertical", left: "55%", top: "5%" },
|
|
5133
5149
|
chartCenter: ["25%", "50%"]
|
|
5134
5150
|
}
|
|
5135
|
-
},
|
|
5151
|
+
}, no = ({
|
|
5136
5152
|
chartMode: t = "pie",
|
|
5137
5153
|
colors: i,
|
|
5138
5154
|
items: d
|
|
5139
5155
|
}) => {
|
|
5140
|
-
const { radius: n, legendPosition: r, chartCenter: l } =
|
|
5156
|
+
const { radius: n, legendPosition: r, chartCenter: l } = ro[t];
|
|
5141
5157
|
return {
|
|
5142
5158
|
color: i,
|
|
5143
5159
|
tooltip: {
|
|
@@ -5184,7 +5200,7 @@ const H = {
|
|
|
5184
5200
|
}
|
|
5185
5201
|
]
|
|
5186
5202
|
};
|
|
5187
|
-
},
|
|
5203
|
+
}, fi = K(
|
|
5188
5204
|
({
|
|
5189
5205
|
chartMode: t = "doughtnut",
|
|
5190
5206
|
mode: i = "chart",
|
|
@@ -5202,7 +5218,7 @@ const H = {
|
|
|
5202
5218
|
{ value: r.free, name: "Свободно" }
|
|
5203
5219
|
];
|
|
5204
5220
|
r.blocked !== void 0 && h.push({ value: r.blocked, name: "Заблокировано" });
|
|
5205
|
-
const u = i === "chart" ?
|
|
5221
|
+
const u = i === "chart" ? no({ chartMode: t, colors: l, items: h }) : void 0;
|
|
5206
5222
|
return /* @__PURE__ */ p(
|
|
5207
5223
|
"div",
|
|
5208
5224
|
{
|
|
@@ -5288,7 +5304,7 @@ const H = {
|
|
|
5288
5304
|
}
|
|
5289
5305
|
),
|
|
5290
5306
|
/* @__PURE__ */ e(
|
|
5291
|
-
|
|
5307
|
+
hr,
|
|
5292
5308
|
{
|
|
5293
5309
|
value: y,
|
|
5294
5310
|
total: r.total,
|
|
@@ -5338,7 +5354,7 @@ const H = {
|
|
|
5338
5354
|
indicator: "h-full rounded-e-md",
|
|
5339
5355
|
value: "text-xs font-semibold w-5 text-left"
|
|
5340
5356
|
}
|
|
5341
|
-
},
|
|
5357
|
+
}, oo = (t) => {
|
|
5342
5358
|
switch (t) {
|
|
5343
5359
|
case "payment":
|
|
5344
5360
|
return { width: 240, height: 110 };
|
|
@@ -5348,7 +5364,7 @@ const H = {
|
|
|
5348
5364
|
default:
|
|
5349
5365
|
return null;
|
|
5350
5366
|
}
|
|
5351
|
-
},
|
|
5367
|
+
}, io = (t, i) => {
|
|
5352
5368
|
const d = [20, 50, 100, 101, ...t === "payment" ? [140] : []];
|
|
5353
5369
|
return {
|
|
5354
5370
|
grid: {
|
|
@@ -5384,14 +5400,14 @@ const H = {
|
|
|
5384
5400
|
}
|
|
5385
5401
|
]
|
|
5386
5402
|
};
|
|
5387
|
-
},
|
|
5403
|
+
}, bi = K(
|
|
5388
5404
|
({ data: t, title: i, mode: d = "stat", settings: n, classNames: r, ...l }, c) => {
|
|
5389
5405
|
const {
|
|
5390
5406
|
chartColor: a = "#1B9BE4",
|
|
5391
5407
|
allWhite: f = !1,
|
|
5392
5408
|
arrowDown: h = !1,
|
|
5393
5409
|
icon: u = null
|
|
5394
|
-
} = 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);
|
|
5395
5411
|
return /* @__PURE__ */ p(
|
|
5396
5412
|
"div",
|
|
5397
5413
|
{
|
|
@@ -5494,7 +5510,7 @@ const H = {
|
|
|
5494
5510
|
payment: "text-base font-medium text-dark-30/50",
|
|
5495
5511
|
counBlock: "flex flex-col gap-1",
|
|
5496
5512
|
totalBlock: "flex flex-row items-start gap-2"
|
|
5497
|
-
},
|
|
5513
|
+
}, ao = (t) => {
|
|
5498
5514
|
const i = 100 - t;
|
|
5499
5515
|
return {
|
|
5500
5516
|
emphasis: { disabled: !0 },
|
|
@@ -5528,7 +5544,7 @@ const H = {
|
|
|
5528
5544
|
}
|
|
5529
5545
|
]
|
|
5530
5546
|
};
|
|
5531
|
-
},
|
|
5547
|
+
}, xi = K(
|
|
5532
5548
|
({
|
|
5533
5549
|
mode: t = "master",
|
|
5534
5550
|
title: i,
|
|
@@ -5541,7 +5557,7 @@ const H = {
|
|
|
5541
5557
|
avatarGroupProps: f,
|
|
5542
5558
|
...h
|
|
5543
5559
|
}, u) => {
|
|
5544
|
-
const b =
|
|
5560
|
+
const b = ao(n);
|
|
5545
5561
|
return /* @__PURE__ */ p(
|
|
5546
5562
|
"div",
|
|
5547
5563
|
{
|
|
@@ -5571,7 +5587,7 @@ const H = {
|
|
|
5571
5587
|
}
|
|
5572
5588
|
}
|
|
5573
5589
|
),
|
|
5574
|
-
/* @__PURE__ */ e(
|
|
5590
|
+
/* @__PURE__ */ e(pr, { rating: c, position: "right" })
|
|
5575
5591
|
] }),
|
|
5576
5592
|
t === "service" && l && /* @__PURE__ */ p(st, { children: [
|
|
5577
5593
|
/* @__PURE__ */ e(
|
|
@@ -5621,10 +5637,10 @@ const H = {
|
|
|
5621
5637
|
status: "rounded-[8px] text-sm text-secondary-10 font-medium w-max py-1 px-2",
|
|
5622
5638
|
block: "flex flex-col h-full gap-4",
|
|
5623
5639
|
serviceTitle: "text-2xl text-semibold leading-none pt-2"
|
|
5624
|
-
},
|
|
5640
|
+
}, lo = (t, i) => {
|
|
5625
5641
|
const d = i - t;
|
|
5626
5642
|
return d >= 1 ? 100 : d > 0 ? d * 100 : 0;
|
|
5627
|
-
},
|
|
5643
|
+
}, pr = ({
|
|
5628
5644
|
rating: t,
|
|
5629
5645
|
classNames: i,
|
|
5630
5646
|
position: d = "left",
|
|
@@ -5642,11 +5658,11 @@ const H = {
|
|
|
5642
5658
|
/* @__PURE__ */ e("div", { className: o(he.block, i == null ? void 0 : i.block), children: [...Array(5)].map((r, l) => {
|
|
5643
5659
|
const c = Math.max(
|
|
5644
5660
|
0,
|
|
5645
|
-
Math.min(100,
|
|
5661
|
+
Math.min(100, lo(l, t))
|
|
5646
5662
|
);
|
|
5647
5663
|
return /* @__PURE__ */ p("div", { className: o(he.overlay.block), children: [
|
|
5648
5664
|
/* @__PURE__ */ e(
|
|
5649
|
-
|
|
5665
|
+
Mt,
|
|
5650
5666
|
{
|
|
5651
5667
|
className: o(he.icon, he.empty),
|
|
5652
5668
|
"data-testid": "star-empty"
|
|
@@ -5659,7 +5675,7 @@ const H = {
|
|
|
5659
5675
|
style: { width: `${c}%` },
|
|
5660
5676
|
"data-testid": "star-overlay",
|
|
5661
5677
|
children: /* @__PURE__ */ e(
|
|
5662
|
-
|
|
5678
|
+
Mt,
|
|
5663
5679
|
{
|
|
5664
5680
|
className: o(he.icon, he.filled),
|
|
5665
5681
|
"data-testid": "star-filled"
|
|
@@ -5683,7 +5699,7 @@ const H = {
|
|
|
5683
5699
|
block: "relative",
|
|
5684
5700
|
star: "absolute inset-0 overflow-hidden"
|
|
5685
5701
|
}
|
|
5686
|
-
},
|
|
5702
|
+
}, co = ({
|
|
5687
5703
|
total: t,
|
|
5688
5704
|
value: i,
|
|
5689
5705
|
color: d
|
|
@@ -5721,7 +5737,7 @@ const H = {
|
|
|
5721
5737
|
}
|
|
5722
5738
|
]
|
|
5723
5739
|
};
|
|
5724
|
-
},
|
|
5740
|
+
}, gi = K(
|
|
5725
5741
|
({ title: t, icon: i, data: d, colors: n, classNames: r, ...l }, c) => {
|
|
5726
5742
|
var f;
|
|
5727
5743
|
const a = [
|
|
@@ -5796,7 +5812,7 @@ const H = {
|
|
|
5796
5812
|
{
|
|
5797
5813
|
echarts: ot,
|
|
5798
5814
|
"data-testid": "chart",
|
|
5799
|
-
option:
|
|
5815
|
+
option: co({
|
|
5800
5816
|
total: d.total,
|
|
5801
5817
|
value: h.value,
|
|
5802
5818
|
color: n[u]
|
|
@@ -5824,7 +5840,7 @@ const H = {
|
|
|
5824
5840
|
root: "flex flex-col gap-2",
|
|
5825
5841
|
dot: "size-2 rounded-full"
|
|
5826
5842
|
}
|
|
5827
|
-
},
|
|
5843
|
+
}, si = K(
|
|
5828
5844
|
({ paid: t, pending: i, overdue: d, title: n, icon: r, total: l, classNames: c, ...a }, f) => {
|
|
5829
5845
|
var u;
|
|
5830
5846
|
const h = [
|
|
@@ -5840,32 +5856,32 @@ const H = {
|
|
|
5840
5856
|
"div",
|
|
5841
5857
|
{
|
|
5842
5858
|
...a,
|
|
5843
|
-
className: o(
|
|
5859
|
+
className: o(je.root, c == null ? void 0 : c.root),
|
|
5844
5860
|
"data-testid": "card-progress",
|
|
5845
5861
|
ref: f,
|
|
5846
5862
|
children: [
|
|
5847
|
-
/* @__PURE__ */ p("div", { className: o(
|
|
5863
|
+
/* @__PURE__ */ p("div", { className: o(je.header, c == null ? void 0 : c.header), children: [
|
|
5848
5864
|
/* @__PURE__ */ e(
|
|
5849
5865
|
Ye,
|
|
5850
5866
|
{
|
|
5851
5867
|
title: n,
|
|
5852
5868
|
icon: r,
|
|
5853
|
-
classNames: { title:
|
|
5869
|
+
classNames: { title: je.title, wrapper: "items-center" }
|
|
5854
5870
|
}
|
|
5855
5871
|
),
|
|
5856
5872
|
/* @__PURE__ */ e(
|
|
5857
5873
|
Ee,
|
|
5858
5874
|
{
|
|
5859
5875
|
to: "/analytics-reporting",
|
|
5860
|
-
className: o(
|
|
5876
|
+
className: o(je.link, c == null ? void 0 : c.link),
|
|
5861
5877
|
children: "Подробнее"
|
|
5862
5878
|
}
|
|
5863
5879
|
)
|
|
5864
5880
|
] }),
|
|
5865
|
-
/* @__PURE__ */ e("div", { className: o(
|
|
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) => {
|
|
5866
5882
|
var v;
|
|
5867
5883
|
return /* @__PURE__ */ p("div", { children: [
|
|
5868
|
-
/* @__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: [
|
|
5869
5885
|
/* @__PURE__ */ e(k, { children: b }),
|
|
5870
5886
|
/* @__PURE__ */ p(k, { className: o(y === 2 && "text-danger-10"), children: [
|
|
5871
5887
|
x,
|
|
@@ -5873,7 +5889,7 @@ const H = {
|
|
|
5873
5889
|
] })
|
|
5874
5890
|
] }),
|
|
5875
5891
|
/* @__PURE__ */ e(
|
|
5876
|
-
|
|
5892
|
+
hr,
|
|
5877
5893
|
{
|
|
5878
5894
|
value: x,
|
|
5879
5895
|
total: l,
|
|
@@ -5887,7 +5903,7 @@ const H = {
|
|
|
5887
5903
|
}
|
|
5888
5904
|
);
|
|
5889
5905
|
}
|
|
5890
|
-
),
|
|
5906
|
+
), je = {
|
|
5891
5907
|
root: "w-[651px] h-[287px] bg-white p-5 shadow-3xl rounded-[10px] font-mono",
|
|
5892
5908
|
header: "flex flex-row justify-between",
|
|
5893
5909
|
link: "text-dark-40 cursor-pointer font-medium text-base",
|
|
@@ -5898,149 +5914,149 @@ const H = {
|
|
|
5898
5914
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5899
5915
|
indicator: "h-full rounded-md"
|
|
5900
5916
|
}
|
|
5901
|
-
},
|
|
5917
|
+
}, hr = ({
|
|
5902
5918
|
value: t,
|
|
5903
5919
|
total: i,
|
|
5904
5920
|
color: d,
|
|
5905
5921
|
classNames: n
|
|
5906
5922
|
}) => {
|
|
5907
|
-
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] =
|
|
5923
|
+
const r = i ? Math.abs(t) / i * 100 : 0, [l, c] = A(0);
|
|
5908
5924
|
return Me(() => {
|
|
5909
5925
|
const a = requestAnimationFrame(() => {
|
|
5910
5926
|
c(r);
|
|
5911
5927
|
});
|
|
5912
5928
|
return () => cancelAnimationFrame(a);
|
|
5913
|
-
}, [r]), /* @__PURE__ */ e(
|
|
5914
|
-
|
|
5929
|
+
}, [r]), /* @__PURE__ */ e(Jr, { className: o(Ht.bar, n == null ? void 0 : n.bar), children: /* @__PURE__ */ e(
|
|
5930
|
+
Pr,
|
|
5915
5931
|
{
|
|
5916
|
-
className: o(
|
|
5932
|
+
className: o(Ht.indicator, d, n == null ? void 0 : n.indicator),
|
|
5917
5933
|
style: {
|
|
5918
5934
|
transform: `translateX(-${100 - l}%)`
|
|
5919
5935
|
}
|
|
5920
5936
|
}
|
|
5921
5937
|
) });
|
|
5922
|
-
},
|
|
5938
|
+
}, Ht = {
|
|
5923
5939
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5924
5940
|
indicator: "h-full rounded-md"
|
|
5925
5941
|
};
|
|
5926
5942
|
export {
|
|
5927
5943
|
jo as Accordion,
|
|
5928
|
-
|
|
5944
|
+
oi as ApartmentCard,
|
|
5929
5945
|
Bt as AvatarGroup,
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5946
|
+
Wo as Breadcrumb,
|
|
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,
|
|
5945
5961
|
Oo as CommentList,
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5962
|
+
Po as DateOfBirth,
|
|
5963
|
+
$o as DatePicker,
|
|
5964
|
+
Ro as DateRangePicker,
|
|
5965
|
+
ci as DeleteMessage,
|
|
5966
|
+
Jo as DragAndDrop,
|
|
5967
|
+
Hn as Dropdown,
|
|
5968
|
+
Lo as FileUploader,
|
|
5969
|
+
zo as FilterTable,
|
|
5970
|
+
ui as FloorSelect,
|
|
5955
5971
|
Ye as IconTitle,
|
|
5956
|
-
|
|
5972
|
+
It as InputGroup,
|
|
5957
5973
|
We as LabelWithValue,
|
|
5958
|
-
|
|
5974
|
+
Go as Languages,
|
|
5959
5975
|
Ge as Link,
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5976
|
+
pi as MessageSettings,
|
|
5977
|
+
Ao as MultiSelect,
|
|
5978
|
+
Kn as NavButton,
|
|
5979
|
+
Eo as Pagination,
|
|
5980
|
+
F as PaginationTokens,
|
|
5981
|
+
Mo as PasswordInput,
|
|
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,
|
|
5992
|
+
Yo as Sidebar,
|
|
5993
|
+
cr as StatusSelect,
|
|
5994
|
+
No as Stepper,
|
|
5995
|
+
qo as TabGroup,
|
|
5996
|
+
hi as TabList,
|
|
5997
|
+
Qo as TabSwitch,
|
|
5982
5998
|
ye as TabSwitchTokens,
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5999
|
+
_o as Table,
|
|
6000
|
+
Ko as TextareaGroup,
|
|
6001
|
+
Xo as ToggleGroup,
|
|
5986
6002
|
Fo as UploadInput,
|
|
5987
|
-
|
|
6003
|
+
ei as UserContact,
|
|
5988
6004
|
se as accordionTokens,
|
|
5989
6005
|
te as apartmentCardTokens,
|
|
5990
|
-
|
|
6006
|
+
Oe as avatarTokens,
|
|
5991
6007
|
Ve as breadcrumnbTokens,
|
|
5992
6008
|
L as cardFilesTokens,
|
|
5993
6009
|
ze as cardMonthlyTokens,
|
|
5994
6010
|
E as cardPieChartTokens,
|
|
5995
|
-
|
|
6011
|
+
je as cardProgressTokens,
|
|
5996
6012
|
N as cardRingChartTokens,
|
|
5997
6013
|
pe as cardServicesTokens,
|
|
5998
6014
|
ie as cardStatTokens,
|
|
5999
|
-
|
|
6015
|
+
Ie as chatButtonTokens,
|
|
6000
6016
|
Se as chatCardTokens,
|
|
6001
|
-
|
|
6017
|
+
zt as chatListTokens,
|
|
6002
6018
|
Ke as chatMessageTokens,
|
|
6003
6019
|
Le as chatSidebarTokens,
|
|
6004
6020
|
ne as checkboxGroupTokens,
|
|
6005
6021
|
Ze as commentInputTokens,
|
|
6006
6022
|
z as commentItemTokens,
|
|
6007
|
-
|
|
6023
|
+
$t as dateOfBirthClasses,
|
|
6008
6024
|
B as datePickerTokens,
|
|
6009
|
-
|
|
6010
|
-
|
|
6025
|
+
Ln as dateRangePickerTokens,
|
|
6026
|
+
zn as dayPickerClasses,
|
|
6011
6027
|
Xe as deleteMessageTokens,
|
|
6012
6028
|
Be as dragAndDropTokens,
|
|
6013
|
-
|
|
6029
|
+
At as dropdownTokens,
|
|
6014
6030
|
U as fileUploaderTokens,
|
|
6015
6031
|
ut as filterTableTokens,
|
|
6016
6032
|
oe as floorSelectTokens,
|
|
6017
|
-
|
|
6033
|
+
Rt as iconTitleTokens,
|
|
6018
6034
|
qe as inputGroupTokens,
|
|
6019
|
-
|
|
6035
|
+
Lt as labelWithValueTokens,
|
|
6020
6036
|
ft as languagesTokens,
|
|
6021
|
-
|
|
6037
|
+
Xn as linkTokens,
|
|
6022
6038
|
gt as messageSettingsTokens,
|
|
6023
|
-
|
|
6039
|
+
O as multiSelectTokens,
|
|
6024
6040
|
bt as navButtonTokens,
|
|
6025
|
-
|
|
6041
|
+
Cn as passwordInputTokens,
|
|
6026
6042
|
q as paymentCardTokens,
|
|
6027
6043
|
we as phoneInputTokens,
|
|
6028
6044
|
$e as plateTokens,
|
|
6029
|
-
|
|
6045
|
+
Ht as progressItemsTokens,
|
|
6030
6046
|
me as radioGroupTokens,
|
|
6031
6047
|
he as ratingTokens,
|
|
6032
6048
|
ee as searchInputTokens,
|
|
6033
|
-
|
|
6049
|
+
Jn as selectGroupTokens,
|
|
6034
6050
|
H as selectListTokens,
|
|
6035
6051
|
ke as serviceOrdersTokens,
|
|
6036
6052
|
Qe as sidebarTokens,
|
|
6037
6053
|
Re as statusSelectTokens,
|
|
6038
6054
|
Y as stepperTokens,
|
|
6039
6055
|
De as tabGroupTokens,
|
|
6040
|
-
|
|
6056
|
+
to as tabListTokens,
|
|
6041
6057
|
V as tableTokens,
|
|
6042
6058
|
Ot as textareaGroupTokens,
|
|
6043
|
-
|
|
6059
|
+
Zn as toggleGroupTokens,
|
|
6044
6060
|
ve as uploadInputTokens,
|
|
6045
6061
|
xt as userContactTokens
|
|
6046
6062
|
};
|