@namuna-nur/ui-kit 1.10.6 → 1.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/atoms/index.js +549 -1734
- package/lib/index.js +29 -27
- package/lib/molecules/index.js +644 -644
- package/lib/src/atoms/ReplyMessage/ReplyMessage.data.d.ts +1 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.stories.d.ts +2 -3
- package/lib/src/atoms/ReplyMessage/ReplyMessage.types.d.ts +3 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.utils.d.ts +1 -0
- package/lib/src/molecules/CardFiles/CardFiles.types.d.ts +2 -2
- package/lib/src/molecules/DocumentMessage/DocumentMessage.d.ts +1 -1
- package/lib/src/molecules/DocumentMessage/DocumentMessage.data.d.ts +3 -3
- package/lib/src/molecules/DocumentMessage/DocumentMessage.types.d.ts +2 -2
- package/lib/src/molecules/FileCard/FileCard.d.ts +1 -1
- package/lib/src/molecules/FileCard/FileCard.types.d.ts +1 -1
- package/lib/src/molecules/PaymentCard/PaymentCard.d.ts +1 -1
- package/lib/src/molecules/PaymentCard/PaymentCard.types.d.ts +1 -1
- package/lib/src/utils/date.d.ts +2 -0
- package/lib/utils/index.js +37 -29
- package/package.json +1 -1
package/lib/molecules/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as u, jsx as e, Fragment as ct } from "react/jsx-runtime";
|
|
2
2
|
import * as z from "react";
|
|
3
|
-
import
|
|
4
|
-
import { S as Je, b as
|
|
5
|
-
import { cn as r, formatFileSize as ft, DATE_FORMAT_DAY_MONTH_YEAR_DASH as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useReactTable as
|
|
8
|
-
import { b as
|
|
9
|
-
import { Link as Pe, useSearchParams as
|
|
10
|
-
import { S as
|
|
11
|
-
import { P as ae, b as le, c as pe, D as
|
|
12
|
-
import { b as Ke, c as
|
|
13
|
-
import { useDebounce as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
17
|
-
import { format as
|
|
18
|
-
import { ru as
|
|
19
|
-
import { DayPicker as
|
|
20
|
-
import
|
|
3
|
+
import Pt, { forwardRef as Q, useState as A, useRef as oe, useImperativeHandle as Nt, useEffect as ve, Fragment as Tr, useMemo as ht, useCallback as nt } from "react";
|
|
4
|
+
import { S as Je, b as Br, c as se, d as Sr, e as Dr, f as er, g as tr, h as jr, i as rr, j as Ir, k as _r, l as Wr, m as Ar, n as Mr, o as _t, p as Or, q as Fr } from "../shared/assets-icons-2.js";
|
|
5
|
+
import { cn as r, formatFileSize as ft, DATE_FORMAT_DAY_MONTH_YEAR_DASH as Ht, formatDateToDayMonthYear as Rr, formatDate as xt, numberFormat as $r, formatTime as bt } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as Wt, Label as P, Spinner as gt, Text as y, Button as O, Avatar as nr, IconButton as Mt, Select as De, Textarea as or, Radio as ir, Status as qe, Toggle as Lr, Headline as ut, Input as zr, Tab as Hr, ReplyMessage as Ur } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Yr, getCoreRowModel as Er, flexRender as Ut } from "@tanstack/react-table";
|
|
8
|
+
import { b as Gr, c as Vr, d as qr, e as Kr, f as Zr, g as Qr, h as Xr } from "../shared/assets-icons-3.js";
|
|
9
|
+
import { Link as Pe, useSearchParams as Ot, useNavigate as dr, NavLink as Ft } from "react-router-dom";
|
|
10
|
+
import { S as Jr, a as Pr, b as Nr, c as en, d as tn, e as ar, f as Rt } from "../shared/assets-icons-1.js";
|
|
11
|
+
import { P as ae, b as le, c as pe, D as vt, d as st, e as mt, f as $t, A as rn, g as nn, h as on, i as dn, j as lr, k as pr, l as cr, m as an, n as ln, o as pn } from "../shared/shared.js";
|
|
12
|
+
import { b as Ke, c as cn, d as ur, e as hr, f as un, g as hn, h as fn, i as xn, j as $e, k as bn, l as gn, m as vn, n as Ne } from "../shared/assets-icons-4.js";
|
|
13
|
+
import { useDebounce as fr, useOption as xr } from "../hooks/index.js";
|
|
14
|
+
import * as br from "@radix-ui/react-toggle";
|
|
15
|
+
import { e as gr, f as sn, g as mn, h as wn, i as vr, j as Le, k as Yt, l as yn } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { useMask as sr, format as kt } from "@react-input/mask";
|
|
17
|
+
import { format as N, addMonths as kn, parse as At, isValid as Fe, parseISO as Cn } from "date-fns";
|
|
18
|
+
import { ru as Ct } from "date-fns/locale";
|
|
19
|
+
import { DayPicker as Tn } from "react-day-picker";
|
|
20
|
+
import wt from "echarts-for-react/lib/core";
|
|
21
21
|
import { colorTokens as Ze } from "../tokens/index.js";
|
|
22
|
-
import * as
|
|
23
|
-
const
|
|
22
|
+
import * as yt from "echarts/core";
|
|
23
|
+
const Lo = ({
|
|
24
24
|
isOpen: t,
|
|
25
25
|
children: d,
|
|
26
26
|
icon: i,
|
|
@@ -132,7 +132,7 @@ const Ro = ({
|
|
|
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
|
+
}, Bn = ({
|
|
136
136
|
id: t,
|
|
137
137
|
label: d,
|
|
138
138
|
labelPosition: i = "right",
|
|
@@ -152,7 +152,7 @@ const Ro = ({
|
|
|
152
152
|
),
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
Wt,
|
|
156
156
|
{
|
|
157
157
|
id: t,
|
|
158
158
|
checked: c,
|
|
@@ -165,7 +165,7 @@ const Ro = ({
|
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
167
|
!!d && /* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
P,
|
|
169
169
|
{
|
|
170
170
|
htmlFor: t,
|
|
171
171
|
className: r(
|
|
@@ -195,7 +195,7 @@ const Ro = ({
|
|
|
195
195
|
},
|
|
196
196
|
disabled: "text-tertiary-30"
|
|
197
197
|
};
|
|
198
|
-
function
|
|
198
|
+
function zo({
|
|
199
199
|
classNames: t,
|
|
200
200
|
columns: d,
|
|
201
201
|
data: i,
|
|
@@ -207,10 +207,10 @@ function $o({
|
|
|
207
207
|
isCheckboxVisible: a = !0,
|
|
208
208
|
isLoading: h = !1
|
|
209
209
|
}) {
|
|
210
|
-
const p =
|
|
210
|
+
const p = Yr({
|
|
211
211
|
columns: d,
|
|
212
212
|
data: i,
|
|
213
|
-
getCoreRowModel:
|
|
213
|
+
getCoreRowModel: Er(),
|
|
214
214
|
manualSorting: !0
|
|
215
215
|
}), f = (b) => {
|
|
216
216
|
const s = c == null ? void 0 : c.find((m) => m.id === b), w = s != null && s.desc ? "asc" : "desc";
|
|
@@ -224,25 +224,25 @@ function $o({
|
|
|
224
224
|
});
|
|
225
225
|
(o == null ? void 0 : o.length) === b.length ? n([]) : n(b);
|
|
226
226
|
};
|
|
227
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
228
|
-
h && /* @__PURE__ */ e(
|
|
229
|
-
!h && !i.length && /* @__PURE__ */ u("div", { className:
|
|
230
|
-
/* @__PURE__ */ e(
|
|
231
|
-
/* @__PURE__ */ e(y, { className:
|
|
227
|
+
return /* @__PURE__ */ u("div", { className: r(X.root, t == null ? void 0 : t.root), children: [
|
|
228
|
+
h && /* @__PURE__ */ e(gt, {}),
|
|
229
|
+
!h && !i.length && /* @__PURE__ */ u("div", { className: X.info, children: [
|
|
230
|
+
/* @__PURE__ */ e(Gr, { className: "fill-dark-30/50" }),
|
|
231
|
+
/* @__PURE__ */ e(y, { className: X.infoText, children: "Нет данных" })
|
|
232
232
|
] }),
|
|
233
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
234
|
-
/* @__PURE__ */ e("thead", { className:
|
|
233
|
+
/* @__PURE__ */ e("div", { className: r(X.container, t == null ? void 0 : t.container), children: /* @__PURE__ */ u("table", { className: r(X.table, t == null ? void 0 : t.table), children: [
|
|
234
|
+
/* @__PURE__ */ e("thead", { className: X.tableHeader, children: p.getHeaderGroups().map((b) => {
|
|
235
235
|
var s, w;
|
|
236
236
|
return /* @__PURE__ */ u("tr", { children: [
|
|
237
237
|
a && /* @__PURE__ */ e(
|
|
238
238
|
"th",
|
|
239
239
|
{
|
|
240
240
|
className: r(
|
|
241
|
-
|
|
241
|
+
X.firstHeaderCell,
|
|
242
242
|
t == null ? void 0 : t.firstHeaderCell
|
|
243
243
|
),
|
|
244
244
|
children: /* @__PURE__ */ e(
|
|
245
|
-
|
|
245
|
+
Wt,
|
|
246
246
|
{
|
|
247
247
|
id: "selectAll",
|
|
248
248
|
checked: (o == null ? void 0 : o.length) === ((w = (s = p == null ? void 0 : p.getCoreRowModel()) == null ? void 0 : s.rows) == null ? void 0 : w.length),
|
|
@@ -259,22 +259,22 @@ function $o({
|
|
|
259
259
|
{
|
|
260
260
|
colSpan: m.colSpan,
|
|
261
261
|
className: r(
|
|
262
|
-
|
|
262
|
+
X.headerCell,
|
|
263
263
|
S == null ? void 0 : S.headerClass,
|
|
264
264
|
m.index === b.headers.length - 1 && "rounded-r-[10px]",
|
|
265
|
-
!a && B === 0 &&
|
|
265
|
+
!a && B === 0 && X.firstHeaderCell
|
|
266
266
|
),
|
|
267
267
|
onClick: () => (S == null ? void 0 : S.isSortable) && f(m.column.id),
|
|
268
|
-
children: /* @__PURE__ */ u("div", { className:
|
|
269
|
-
|
|
268
|
+
children: /* @__PURE__ */ u("div", { className: X.headerText, children: [
|
|
269
|
+
Ut(
|
|
270
270
|
m.column.columnDef.header,
|
|
271
271
|
m.getContext()
|
|
272
272
|
),
|
|
273
273
|
(S == null ? void 0 : S.isSortable) && /* @__PURE__ */ e(
|
|
274
|
-
|
|
274
|
+
Br,
|
|
275
275
|
{
|
|
276
276
|
className: r(
|
|
277
|
-
|
|
277
|
+
X.sortIcon,
|
|
278
278
|
(j = c == null ? void 0 : c.find((k) => k.id === m.column.id)) != null && j.desc ? "rotate-0" : "rotate-180"
|
|
279
279
|
)
|
|
280
280
|
}
|
|
@@ -293,7 +293,7 @@ function $o({
|
|
|
293
293
|
"tr",
|
|
294
294
|
{
|
|
295
295
|
className: r(
|
|
296
|
-
|
|
296
|
+
X.row,
|
|
297
297
|
(o == null ? void 0 : o.includes(s)) && "bg-gray-50"
|
|
298
298
|
),
|
|
299
299
|
children: [
|
|
@@ -301,11 +301,11 @@ function $o({
|
|
|
301
301
|
"td",
|
|
302
302
|
{
|
|
303
303
|
className: r(
|
|
304
|
-
|
|
304
|
+
X.firstBodyCell,
|
|
305
305
|
t == null ? void 0 : t.firstBodyCell
|
|
306
306
|
),
|
|
307
307
|
children: /* @__PURE__ */ e(
|
|
308
|
-
|
|
308
|
+
Wt,
|
|
309
309
|
{
|
|
310
310
|
id: b.id,
|
|
311
311
|
checked: o == null ? void 0 : o.includes(s),
|
|
@@ -320,13 +320,13 @@ function $o({
|
|
|
320
320
|
"td",
|
|
321
321
|
{
|
|
322
322
|
className: r(
|
|
323
|
-
|
|
323
|
+
X.bodyCell,
|
|
324
324
|
(o == null ? void 0 : o.includes(b.id)) && "font-bold",
|
|
325
325
|
B === S.length - 1 && "rounded-r-[10px]",
|
|
326
326
|
!a && B === 0 && "px-8",
|
|
327
327
|
j == null ? void 0 : j.cellClass
|
|
328
328
|
),
|
|
329
|
-
children:
|
|
329
|
+
children: Ut(
|
|
330
330
|
m.column.columnDef.cell,
|
|
331
331
|
m.getContext()
|
|
332
332
|
)
|
|
@@ -342,7 +342,7 @@ function $o({
|
|
|
342
342
|
] }) })
|
|
343
343
|
] });
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const X = {
|
|
346
346
|
root: "relative flex flex-col flex-1 min-h-0 h-full justify-between bg-sidebar-10 transition-all duration-500 ease-in-out",
|
|
347
347
|
container: "flex-1 overflow-auto [scrollbar-gutter:stable]",
|
|
348
348
|
table: "w-full border-none ",
|
|
@@ -357,7 +357,7 @@ const J = {
|
|
|
357
357
|
sortIcon: "transition-transform duration-200 fill-dark-50",
|
|
358
358
|
info: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex flex-col gap-1 items-center justify-center",
|
|
359
359
|
infoText: "text-sm font-semibold text-dark-40/50 font-mono"
|
|
360
|
-
},
|
|
360
|
+
}, Sn = z.forwardRef(({ ...t }, d) => /* @__PURE__ */ e("nav", { ref: d, "aria-label": "breadcrumb", ...t })), Dn = z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e("ol", { ref: i, className: r(et.list, t), ...d })), jn = z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e("li", { ref: i, className: r(et.item, t), ...d })), In = z.forwardRef(
|
|
361
361
|
({ className: t, ...d }, i) => /* @__PURE__ */ e(
|
|
362
362
|
Pe,
|
|
363
363
|
{
|
|
@@ -378,7 +378,7 @@ z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e(
|
|
|
378
378
|
...d
|
|
379
379
|
}
|
|
380
380
|
));
|
|
381
|
-
const
|
|
381
|
+
const _n = ({
|
|
382
382
|
children: t,
|
|
383
383
|
className: d,
|
|
384
384
|
...i
|
|
@@ -391,8 +391,8 @@ const jn = ({
|
|
|
391
391
|
...i,
|
|
392
392
|
children: t
|
|
393
393
|
}
|
|
394
|
-
),
|
|
395
|
-
|
|
394
|
+
), Ho = ({ paths: t }) => /* @__PURE__ */ e(Sn, { children: /* @__PURE__ */ e(Dn, { children: t.map((d, i) => /* @__PURE__ */ e(
|
|
395
|
+
Wn,
|
|
396
396
|
{
|
|
397
397
|
label: d.label,
|
|
398
398
|
href: d.href,
|
|
@@ -400,14 +400,14 @@ const jn = ({
|
|
|
400
400
|
isLast: i === t.length - 1
|
|
401
401
|
},
|
|
402
402
|
d.label
|
|
403
|
-
)) }) }),
|
|
403
|
+
)) }) }), Wn = ({
|
|
404
404
|
href: t,
|
|
405
405
|
isLast: d,
|
|
406
406
|
label: i,
|
|
407
407
|
disabled: o
|
|
408
408
|
}) => /* @__PURE__ */ u(ct, { children: [
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
|
|
409
|
+
/* @__PURE__ */ e(jn, { children: /* @__PURE__ */ e(
|
|
410
|
+
In,
|
|
411
411
|
{
|
|
412
412
|
className: r(d && "pointer-events-none"),
|
|
413
413
|
to: o ? "/" : t,
|
|
@@ -425,14 +425,14 @@ const jn = ({
|
|
|
425
425
|
)
|
|
426
426
|
}
|
|
427
427
|
) }),
|
|
428
|
-
!d && /* @__PURE__ */ e(
|
|
428
|
+
!d && /* @__PURE__ */ e(_n, { className: "text-dark-40/[.50] font-medium", children: "/" })
|
|
429
429
|
] }), et = {
|
|
430
430
|
list: "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2",
|
|
431
431
|
item: "inline-flex items-center gap-1.5",
|
|
432
432
|
link: "transition-colors hover:text-foreground",
|
|
433
433
|
page: "font-normal text-foreground",
|
|
434
434
|
separator: "[&>svg]:w-3.5 [&>svg]:h-3.5"
|
|
435
|
-
},
|
|
435
|
+
}, Uo = ({
|
|
436
436
|
disabled: t = !1,
|
|
437
437
|
value: d,
|
|
438
438
|
placeholder: i = "Введите пароль",
|
|
@@ -445,14 +445,14 @@ const jn = ({
|
|
|
445
445
|
classNames: p,
|
|
446
446
|
...f
|
|
447
447
|
}) => /* @__PURE__ */ e(
|
|
448
|
-
|
|
448
|
+
zt,
|
|
449
449
|
{
|
|
450
450
|
label: c,
|
|
451
451
|
iconPosition: "right",
|
|
452
|
-
icon: l ?
|
|
452
|
+
icon: l ? Jr : Pr,
|
|
453
453
|
onIconClick: h,
|
|
454
454
|
classNames: {
|
|
455
|
-
icon:
|
|
455
|
+
icon: An.icon,
|
|
456
456
|
label: p == null ? void 0 : p.label,
|
|
457
457
|
parent: p == null ? void 0 : p.parent,
|
|
458
458
|
base: p == null ? void 0 : p.base
|
|
@@ -469,9 +469,9 @@ const jn = ({
|
|
|
469
469
|
type: l ? "text" : "password"
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
),
|
|
472
|
+
), An = {
|
|
473
473
|
icon: "size-6 fill-gray-20"
|
|
474
|
-
},
|
|
474
|
+
}, Yo = Q(
|
|
475
475
|
({
|
|
476
476
|
label: t,
|
|
477
477
|
options: d,
|
|
@@ -484,8 +484,8 @@ const jn = ({
|
|
|
484
484
|
classNames: h,
|
|
485
485
|
inputPlaceholder: p
|
|
486
486
|
}, f) => {
|
|
487
|
-
const [g, x] =
|
|
488
|
-
|
|
487
|
+
const [g, x] = A(""), [b, s] = A(!1), w = oe(null), m = oe(null);
|
|
488
|
+
Nt(f, () => ({
|
|
489
489
|
open: () => s(!0),
|
|
490
490
|
close: () => s(!1),
|
|
491
491
|
toggle: () => s((v) => !v),
|
|
@@ -512,7 +512,7 @@ const jn = ({
|
|
|
512
512
|
);
|
|
513
513
|
return /* @__PURE__ */ u("div", { className: r("flex flex-col", h == null ? void 0 : h.wrapper), children: [
|
|
514
514
|
/* @__PURE__ */ u("div", { className: L.labelWrapper, children: [
|
|
515
|
-
!!t && /* @__PURE__ */ e(
|
|
515
|
+
!!t && /* @__PURE__ */ e(P, { disabled: o, className: h == null ? void 0 : h.label, children: t }),
|
|
516
516
|
n === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
517
517
|
] }),
|
|
518
518
|
/* @__PURE__ */ u(
|
|
@@ -622,7 +622,7 @@ const jn = ({
|
|
|
622
622
|
}
|
|
623
623
|
) }),
|
|
624
624
|
k.length > 0 ? k.map((v, C, D) => /* @__PURE__ */ e(
|
|
625
|
-
|
|
625
|
+
Bn,
|
|
626
626
|
{
|
|
627
627
|
id: v.value.toString(),
|
|
628
628
|
"data-testid": "menuitemcheckbox",
|
|
@@ -702,7 +702,7 @@ const jn = ({
|
|
|
702
702
|
status: {
|
|
703
703
|
danger: "border-danger-20 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
704
704
|
}
|
|
705
|
-
},
|
|
705
|
+
}, Mn = Q(
|
|
706
706
|
({
|
|
707
707
|
value: t,
|
|
708
708
|
onChange: d,
|
|
@@ -720,15 +720,15 @@ const jn = ({
|
|
|
720
720
|
classNames: b,
|
|
721
721
|
...s
|
|
722
722
|
}, w) => {
|
|
723
|
-
const [m, B] =
|
|
723
|
+
const [m, B] = A({
|
|
724
724
|
id: "",
|
|
725
725
|
label: ""
|
|
726
|
-
}), [S, j] =
|
|
726
|
+
}), [S, j] = A(!1), [k, v] = A(!1), C = fr(t, l);
|
|
727
727
|
ve(() => {
|
|
728
728
|
j(!!C), a == null || a(C);
|
|
729
729
|
}, [C, a]);
|
|
730
|
-
const D = re.base, T = re.hover, I = re.focus, { focusWithin: F } = re,
|
|
731
|
-
/* @__PURE__ */ e(y, { className:
|
|
730
|
+
const D = re.base, T = re.hover, I = re.focus, { focusWithin: F } = re, V = re.disabled, ie = re.input, ce = re.button, xe = re.filterIcon, M = re.dropdown, K = re.popover, W = re.emptyPopover, H = re.options, tt = ({ title: je, items: ze }) => /* @__PURE__ */ u(Tr, { children: [
|
|
731
|
+
/* @__PURE__ */ e(y, { className: M.typeFilter, children: je }),
|
|
732
732
|
/* @__PURE__ */ e("div", { className: H.items, children: ze == null ? void 0 : ze.map((rt) => /* @__PURE__ */ e(
|
|
733
733
|
y,
|
|
734
734
|
{
|
|
@@ -750,12 +750,12 @@ const jn = ({
|
|
|
750
750
|
!i && F,
|
|
751
751
|
(k || S) && !i && I,
|
|
752
752
|
!(k || S) && !i && T,
|
|
753
|
-
i &&
|
|
753
|
+
i && V,
|
|
754
754
|
b == null ? void 0 : b.base
|
|
755
755
|
),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */ u(
|
|
758
|
-
/* @__PURE__ */ e(
|
|
757
|
+
/* @__PURE__ */ u(vt, { open: k, onOpenChange: v, children: [
|
|
758
|
+
/* @__PURE__ */ e(st, { asChild: !0, disabled: i, children: o && /* @__PURE__ */ e(
|
|
759
759
|
"button",
|
|
760
760
|
{
|
|
761
761
|
role: "button",
|
|
@@ -764,7 +764,7 @@ const jn = ({
|
|
|
764
764
|
type: "button",
|
|
765
765
|
className: "outline-none",
|
|
766
766
|
children: /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
cn,
|
|
768
768
|
{
|
|
769
769
|
width: 14,
|
|
770
770
|
height: 14,
|
|
@@ -779,16 +779,16 @@ const jn = ({
|
|
|
779
779
|
}
|
|
780
780
|
) }),
|
|
781
781
|
/* @__PURE__ */ u(
|
|
782
|
-
|
|
782
|
+
mt,
|
|
783
783
|
{
|
|
784
784
|
align: "start",
|
|
785
785
|
sideOffset: 18,
|
|
786
786
|
alignOffset: -12,
|
|
787
787
|
onInteractOutside: (je) => je.preventDefault(),
|
|
788
|
-
className: r(
|
|
788
|
+
className: r(M.content, b == null ? void 0 : b.dropdown),
|
|
789
789
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
790
790
|
children: [
|
|
791
|
-
/* @__PURE__ */ e("div", { className:
|
|
791
|
+
/* @__PURE__ */ e("div", { className: M.wrapperModule, children: /* @__PURE__ */ e(tt, { title: "Поиск по модулям", items: n }) }),
|
|
792
792
|
/* @__PURE__ */ u("div", { className: ce.parent, children: [
|
|
793
793
|
/* @__PURE__ */ e(
|
|
794
794
|
O,
|
|
@@ -833,7 +833,7 @@ const jn = ({
|
|
|
833
833
|
}
|
|
834
834
|
),
|
|
835
835
|
f && /* @__PURE__ */ e(
|
|
836
|
-
|
|
836
|
+
ur,
|
|
837
837
|
{
|
|
838
838
|
className: r(
|
|
839
839
|
ie.icon,
|
|
@@ -850,9 +850,9 @@ const jn = ({
|
|
|
850
850
|
sideOffset: 18,
|
|
851
851
|
alignOffset: o ? -42 : -76,
|
|
852
852
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
853
|
-
className: r(
|
|
854
|
-
children: x ? /* @__PURE__ */ e("div", { className: W.wrapper, children: /* @__PURE__ */ e(
|
|
855
|
-
/* @__PURE__ */ u(y, { className:
|
|
853
|
+
className: r(K.content, b == null ? void 0 : b.popover),
|
|
854
|
+
children: x ? /* @__PURE__ */ e("div", { className: W.wrapper, children: /* @__PURE__ */ e(gt, { width: 30, height: 30 }) }) : h && (h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ u("div", { className: K.wrapper, children: [
|
|
855
|
+
/* @__PURE__ */ u(y, { className: K.title, children: [
|
|
856
856
|
"Результаты (",
|
|
857
857
|
h == null ? void 0 : h.length,
|
|
858
858
|
")"
|
|
@@ -869,7 +869,7 @@ const jn = ({
|
|
|
869
869
|
onClick: () => {
|
|
870
870
|
p == null || p(je), j(!1);
|
|
871
871
|
},
|
|
872
|
-
className:
|
|
872
|
+
className: K.item,
|
|
873
873
|
children: je
|
|
874
874
|
},
|
|
875
875
|
ze
|
|
@@ -928,7 +928,7 @@ const jn = ({
|
|
|
928
928
|
itemsText: 'flex items-center w-full text-dark-30 text-sm font-normal hover:text-primary-10 before:content-[""] before:block before:bg-sidebar-10 before:w-2 before:h-2 before:rounded-full before:mr-3.5',
|
|
929
929
|
active: "text-dark-10 font-bold"
|
|
930
930
|
}
|
|
931
|
-
},
|
|
931
|
+
}, Lt = ({
|
|
932
932
|
fullName: t,
|
|
933
933
|
jobTitle: d,
|
|
934
934
|
position: i = "right",
|
|
@@ -977,7 +977,7 @@ const jn = ({
|
|
|
977
977
|
]
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
|
-
/* @__PURE__ */ e(
|
|
980
|
+
/* @__PURE__ */ e(nr, { ...n, isActive: a, hasBadge: a })
|
|
981
981
|
]
|
|
982
982
|
}
|
|
983
983
|
), He = {
|
|
@@ -986,8 +986,8 @@ const jn = ({
|
|
|
986
986
|
fullName: "text-sm text-dark-40 font-bold flex items-end gap-1",
|
|
987
987
|
jobTitle: "text-xs text-dark-40/50 font-medium",
|
|
988
988
|
subText: "text-xs text-dark-40/50 font-normal"
|
|
989
|
-
},
|
|
990
|
-
/* @__PURE__ */ e(
|
|
989
|
+
}, On = ({ file: t, onClick: d }) => /* @__PURE__ */ u("li", { className: "flex items-center bg-white px-2 py-1.5 border border-dark-30/[.15] rounded-lg w-[112px] justify-between", children: [
|
|
990
|
+
/* @__PURE__ */ e(Sr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
|
|
991
991
|
/* @__PURE__ */ u("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
|
|
992
992
|
/* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
|
|
993
993
|
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: ft(t.size) })
|
|
@@ -1002,7 +1002,7 @@ const jn = ({
|
|
|
1002
1002
|
viewBox: "0 0 20 20"
|
|
1003
1003
|
}
|
|
1004
1004
|
)
|
|
1005
|
-
] }), { Root:
|
|
1005
|
+
] }), { Root: Fn } = br, Eo = z.forwardRef(
|
|
1006
1006
|
({
|
|
1007
1007
|
id: t,
|
|
1008
1008
|
files: d = [],
|
|
@@ -1025,7 +1025,7 @@ const jn = ({
|
|
|
1025
1025
|
return /* @__PURE__ */ u("div", { className: r(w, a == null ? void 0 : a.root), children: [
|
|
1026
1026
|
/* @__PURE__ */ u("div", { className: we.label.wrapper, children: [
|
|
1027
1027
|
!!i && /* @__PURE__ */ e(
|
|
1028
|
-
|
|
1028
|
+
P,
|
|
1029
1029
|
{
|
|
1030
1030
|
htmlFor: t,
|
|
1031
1031
|
disabled: p,
|
|
@@ -1036,7 +1036,7 @@ const jn = ({
|
|
|
1036
1036
|
h === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1037
1037
|
] }),
|
|
1038
1038
|
/* @__PURE__ */ u(
|
|
1039
|
-
|
|
1039
|
+
Fn,
|
|
1040
1040
|
{
|
|
1041
1041
|
ref: g,
|
|
1042
1042
|
onClick: v,
|
|
@@ -1071,7 +1071,7 @@ const jn = ({
|
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
1073
|
d.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: j, children: d.map((D) => /* @__PURE__ */ e(
|
|
1074
|
-
|
|
1074
|
+
On,
|
|
1075
1075
|
{
|
|
1076
1076
|
file: D,
|
|
1077
1077
|
onClick: (T) => {
|
|
@@ -1081,7 +1081,7 @@ const jn = ({
|
|
|
1081
1081
|
D.id
|
|
1082
1082
|
)) }) : /* @__PURE__ */ u(z.Fragment, { children: [
|
|
1083
1083
|
/* @__PURE__ */ e(
|
|
1084
|
-
|
|
1084
|
+
Dr,
|
|
1085
1085
|
{
|
|
1086
1086
|
"data-testid": "file-upload-icon",
|
|
1087
1087
|
width: 16,
|
|
@@ -1112,7 +1112,7 @@ const jn = ({
|
|
|
1112
1112
|
status: {
|
|
1113
1113
|
danger: "bg-white border-danger-10 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
1114
1114
|
}
|
|
1115
|
-
},
|
|
1115
|
+
}, Go = ({
|
|
1116
1116
|
comments: t = [],
|
|
1117
1117
|
emptyText: d = "Комментариев нет...",
|
|
1118
1118
|
variant: i = "comment",
|
|
@@ -1122,7 +1122,7 @@ const jn = ({
|
|
|
1122
1122
|
}) => {
|
|
1123
1123
|
const l = i === "review";
|
|
1124
1124
|
return /* @__PURE__ */ u("div", { className: r(Y.root, o == null ? void 0 : o.root), children: [
|
|
1125
|
-
!(t != null && t.length) && (n ? /* @__PURE__ */ e(
|
|
1125
|
+
!(t != null && t.length) && (n ? /* @__PURE__ */ e(gt, {}) : /* @__PURE__ */ e(
|
|
1126
1126
|
y,
|
|
1127
1127
|
{
|
|
1128
1128
|
variant: "p",
|
|
@@ -1136,7 +1136,7 @@ const jn = ({
|
|
|
1136
1136
|
t.map(
|
|
1137
1137
|
({ id: a, avatarSrc: h, fullName: p, role: f, comment: g, date: x, time: b, stars: s = 0 }) => /* @__PURE__ */ u("div", { className: Y.wrapper, children: [
|
|
1138
1138
|
/* @__PURE__ */ e(
|
|
1139
|
-
|
|
1139
|
+
Lt,
|
|
1140
1140
|
{
|
|
1141
1141
|
fullName: p,
|
|
1142
1142
|
jobTitle: f || "",
|
|
@@ -1174,7 +1174,7 @@ const jn = ({
|
|
|
1174
1174
|
),
|
|
1175
1175
|
children: [
|
|
1176
1176
|
l && /* @__PURE__ */ e(
|
|
1177
|
-
|
|
1177
|
+
yr,
|
|
1178
1178
|
{
|
|
1179
1179
|
rating: s,
|
|
1180
1180
|
classNames: {
|
|
@@ -1190,9 +1190,9 @@ const jn = ({
|
|
|
1190
1190
|
b
|
|
1191
1191
|
] }),
|
|
1192
1192
|
c && /* @__PURE__ */ e(
|
|
1193
|
-
|
|
1193
|
+
Mt,
|
|
1194
1194
|
{
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: Nr,
|
|
1196
1196
|
shape: "circle",
|
|
1197
1197
|
onClick: () => c(a),
|
|
1198
1198
|
classNames: {
|
|
@@ -1251,10 +1251,10 @@ const jn = ({
|
|
|
1251
1251
|
button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
|
|
1252
1252
|
icon: "fill-sidebar-50/50"
|
|
1253
1253
|
}
|
|
1254
|
-
},
|
|
1254
|
+
}, Tt = (t) => {
|
|
1255
1255
|
const d = t.getDate().toString().padStart(2, "0"), i = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getFullYear();
|
|
1256
1256
|
return `${d}/${i}/${o}`;
|
|
1257
|
-
},
|
|
1257
|
+
}, Rn = (t) => {
|
|
1258
1258
|
const d = t.getFullYear(), i = t.getMonth(), o = new Date(d, i, 1), c = new Date(d, i + 1, 0).getDate();
|
|
1259
1259
|
let l = o.getDay();
|
|
1260
1260
|
l = l === 0 ? 6 : l - 1;
|
|
@@ -1269,15 +1269,15 @@ const jn = ({
|
|
|
1269
1269
|
for (let p = 1; p <= h; p++)
|
|
1270
1270
|
a.push({ date: new Date(d, i + 1, p), isCurrentMonth: !1 });
|
|
1271
1271
|
return a;
|
|
1272
|
-
},
|
|
1272
|
+
}, $n = /* @__PURE__ */ new Date(), Ln = (t) => t.toDateString() === $n.toDateString(), zn = (t) => {
|
|
1273
1273
|
const d = t.getDay();
|
|
1274
1274
|
return d === 0 || d === 6;
|
|
1275
|
-
},
|
|
1275
|
+
}, Hn = (t, d) => d && t.toDateString() === d.toDateString(), Un = Array.from({ length: 200 }, (t, d) => 1900 + d).map(
|
|
1276
1276
|
(t) => ({
|
|
1277
1277
|
label: t.toString(),
|
|
1278
1278
|
value: t.toString()
|
|
1279
1279
|
})
|
|
1280
|
-
),
|
|
1280
|
+
), Yn = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], En = [
|
|
1281
1281
|
"Январь",
|
|
1282
1282
|
"Февраль",
|
|
1283
1283
|
"Март",
|
|
@@ -1290,7 +1290,7 @@ const jn = ({
|
|
|
1290
1290
|
"Октябрь",
|
|
1291
1291
|
"Ноябрь",
|
|
1292
1292
|
"Декабрь"
|
|
1293
|
-
],
|
|
1293
|
+
], Gn = (t) => {
|
|
1294
1294
|
if (/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
1295
1295
|
return new Date(t);
|
|
1296
1296
|
if (/^\d{2}\.\d{2}\.\d{4}$/.test(t)) {
|
|
@@ -1302,12 +1302,12 @@ const jn = ({
|
|
|
1302
1302
|
return new Date(o, i - 1, d);
|
|
1303
1303
|
}
|
|
1304
1304
|
return null;
|
|
1305
|
-
},
|
|
1306
|
-
const n = d ?
|
|
1307
|
-
return
|
|
1305
|
+
}, Vn = (t, d, i = /* @__PURE__ */ new Date(), o) => {
|
|
1306
|
+
const n = d ? Gn(d) : null;
|
|
1307
|
+
return Rn(i).map((c, l) => {
|
|
1308
1308
|
const { date: a, isCurrentMonth: h } = c, p = a.getDate(), f = n ? a <= n : !1;
|
|
1309
1309
|
let g = _.dayButton;
|
|
1310
|
-
return f ? g += ` ${_.dayDisabled}` : h ?
|
|
1310
|
+
return f ? g += ` ${_.dayDisabled}` : h ? Hn(a, o ? new Date(o) : void 0) ? g += ` ${_.daySelected}` : Ln(a) ? g += ` ${_.dayToday}` : zn(a) ? g += ` ${_.dayWeekend}` : g += ` ${_.dayNormal}` : g += ` ${_.dayOutside}`, /* @__PURE__ */ e(
|
|
1311
1311
|
"button",
|
|
1312
1312
|
{
|
|
1313
1313
|
onClick: (x) => {
|
|
@@ -1320,7 +1320,7 @@ const jn = ({
|
|
|
1320
1320
|
l
|
|
1321
1321
|
);
|
|
1322
1322
|
});
|
|
1323
|
-
},
|
|
1323
|
+
}, Vo = ({
|
|
1324
1324
|
value: t,
|
|
1325
1325
|
setValue: d,
|
|
1326
1326
|
classNames: i,
|
|
@@ -1329,16 +1329,16 @@ const jn = ({
|
|
|
1329
1329
|
status: c,
|
|
1330
1330
|
disabledDate: l
|
|
1331
1331
|
}) => {
|
|
1332
|
-
const [a, h] =
|
|
1332
|
+
const [a, h] = A(!1), [p, f] = A(
|
|
1333
1333
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1334
|
-
), [g, x] =
|
|
1335
|
-
t ?
|
|
1334
|
+
), [g, x] = A(
|
|
1335
|
+
t ? Tt(new Date(t)) : ""
|
|
1336
1336
|
);
|
|
1337
1337
|
ve(() => {
|
|
1338
|
-
t ? (x(
|
|
1338
|
+
t ? (x(Tt(new Date(t))), f(new Date(t))) : x("");
|
|
1339
1339
|
}, [t]);
|
|
1340
1340
|
const b = oe(null), s = oe(null), w = (v) => {
|
|
1341
|
-
d(v.toISOString()), x(
|
|
1341
|
+
d(v.toISOString()), x(Tt(v)), h(!1);
|
|
1342
1342
|
}, m = (v) => {
|
|
1343
1343
|
let C = v.target.value.replace(/\D/g, "");
|
|
1344
1344
|
if (C.length >= 3 && C.length <= 4 ? C = `${C.slice(0, 2)}/${C.slice(2)}` : C.length > 4 && (C = `${C.slice(0, 2)}/${C.slice(2, 4)}/${C.slice(4, 8)}`), C.length > 10 && (C = C.slice(0, 10)), x(C), !C || C.trim() === "") {
|
|
@@ -1349,8 +1349,8 @@ const jn = ({
|
|
|
1349
1349
|
if (D.length === 3) {
|
|
1350
1350
|
const T = parseInt(D[0]), I = parseInt(D[1]) - 1, F = parseInt(D[2]);
|
|
1351
1351
|
if (T > 0 && T <= 31 && I >= 0 && I <= 11 && F > 1900) {
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1352
|
+
const V = new Date(F, I, T);
|
|
1353
|
+
V.getDate() === T && V.getMonth() === I && V.getFullYear() === F && (d(V.toISOString()), f(new Date(F, I, 1)));
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}, B = (v) => {
|
|
@@ -1367,7 +1367,7 @@ const jn = ({
|
|
|
1367
1367
|
};
|
|
1368
1368
|
return /* @__PURE__ */ u("div", { className: _.base, children: [
|
|
1369
1369
|
/* @__PURE__ */ u("div", { className: _.label.wrapper, children: [
|
|
1370
|
-
!!n && /* @__PURE__ */ e(
|
|
1370
|
+
!!n && /* @__PURE__ */ e(P, { disabled: o, children: n }),
|
|
1371
1371
|
c === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1372
1372
|
] }),
|
|
1373
1373
|
/* @__PURE__ */ u(ae, { open: a, onOpenChange: h, children: [
|
|
@@ -1420,7 +1420,7 @@ const jn = ({
|
|
|
1420
1420
|
o && _.calendarButton.disabled
|
|
1421
1421
|
),
|
|
1422
1422
|
children: /* @__PURE__ */ e(
|
|
1423
|
-
|
|
1423
|
+
hr,
|
|
1424
1424
|
{
|
|
1425
1425
|
width: 18,
|
|
1426
1426
|
height: 18,
|
|
@@ -1454,7 +1454,7 @@ const jn = ({
|
|
|
1454
1454
|
onClick: () => B(-1),
|
|
1455
1455
|
className: _.navButton,
|
|
1456
1456
|
children: /* @__PURE__ */ e(
|
|
1457
|
-
|
|
1457
|
+
er,
|
|
1458
1458
|
{
|
|
1459
1459
|
width: 6,
|
|
1460
1460
|
height: 10,
|
|
@@ -1467,7 +1467,7 @@ const jn = ({
|
|
|
1467
1467
|
/* @__PURE__ */ e(
|
|
1468
1468
|
De,
|
|
1469
1469
|
{
|
|
1470
|
-
options:
|
|
1470
|
+
options: En.map((v, C) => ({
|
|
1471
1471
|
label: v,
|
|
1472
1472
|
value: C.toString()
|
|
1473
1473
|
})),
|
|
@@ -1484,7 +1484,7 @@ const jn = ({
|
|
|
1484
1484
|
/* @__PURE__ */ e(
|
|
1485
1485
|
De,
|
|
1486
1486
|
{
|
|
1487
|
-
options:
|
|
1487
|
+
options: Un,
|
|
1488
1488
|
classNames: {
|
|
1489
1489
|
trigger: "w-28 h-8"
|
|
1490
1490
|
},
|
|
@@ -1502,7 +1502,7 @@ const jn = ({
|
|
|
1502
1502
|
onClick: () => B(1),
|
|
1503
1503
|
className: _.navButton,
|
|
1504
1504
|
children: /* @__PURE__ */ e(
|
|
1505
|
-
|
|
1505
|
+
tr,
|
|
1506
1506
|
{
|
|
1507
1507
|
width: 6,
|
|
1508
1508
|
height: 10,
|
|
@@ -1512,8 +1512,8 @@ const jn = ({
|
|
|
1512
1512
|
}
|
|
1513
1513
|
)
|
|
1514
1514
|
] }),
|
|
1515
|
-
/* @__PURE__ */ e("div", { className: _.weekHeader, children:
|
|
1516
|
-
/* @__PURE__ */ e("div", { className: _.calendar, children:
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: _.weekHeader, children: Yn.map((v) => /* @__PURE__ */ e("div", { className: _.weekDay, children: v }, v)) }),
|
|
1516
|
+
/* @__PURE__ */ e("div", { className: _.calendar, children: Vn(w, l, p, t) }),
|
|
1517
1517
|
/* @__PURE__ */ e("div", { className: _.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: k, className: _.resetButton, children: "Сбросить" }) })
|
|
1518
1518
|
] })
|
|
1519
1519
|
}
|
|
@@ -1582,7 +1582,7 @@ const jn = ({
|
|
|
1582
1582
|
line: "border border-gray-40",
|
|
1583
1583
|
saveButtonWrapper: "mt-[22px] flex justify-end p-4 pt-0",
|
|
1584
1584
|
saveButton: "px-[15px] py-3 bg-primary-10 text-sidebar-10 text-sm font-semibold rounded-[10px]"
|
|
1585
|
-
}, ee = "dd/MM/yyyy",
|
|
1585
|
+
}, ee = "dd/MM/yyyy", qn = (t, d, i) => !d || !i ? !1 : t > d && t < i, qo = ({
|
|
1586
1586
|
value: t,
|
|
1587
1587
|
setValue: d,
|
|
1588
1588
|
label: i,
|
|
@@ -1590,42 +1590,42 @@ const jn = ({
|
|
|
1590
1590
|
disabled: n = !1,
|
|
1591
1591
|
classNames: c
|
|
1592
1592
|
}) => {
|
|
1593
|
-
const l = z.useId(), [a, h] = z.useState(/* @__PURE__ */ new Date()), [p, f] = z.useState(""), [g, x] = z.useState(!1), b =
|
|
1593
|
+
const l = z.useId(), [a, h] = z.useState(/* @__PURE__ */ new Date()), [p, f] = z.useState(""), [g, x] = z.useState(!1), b = sr({
|
|
1594
1594
|
mask: "__/__/____ - __/__/____",
|
|
1595
1595
|
replacement: { _: /\d/ }
|
|
1596
1596
|
}), s = z.useRef(null), w = z.useRef(!1);
|
|
1597
1597
|
z.useEffect(() => {
|
|
1598
1598
|
if (w.current || !t || !(t.to && t.from)) return;
|
|
1599
|
-
const k = t.from ?
|
|
1599
|
+
const k = t.from ? N(new Date(t.from), ee) : "", v = t.to ? N(new Date(t.to), ee) : "";
|
|
1600
1600
|
f(v ? `${k} - ${v}` : `${k} - `);
|
|
1601
1601
|
}, [t]);
|
|
1602
|
-
const m =
|
|
1602
|
+
const m = Kn.base, B = (k) => {
|
|
1603
1603
|
if (!k)
|
|
1604
1604
|
f(""), d(void 0);
|
|
1605
1605
|
else if (k.from && !k.to)
|
|
1606
|
-
d(k), h(k.from), f(
|
|
1606
|
+
d(k), h(k.from), f(N(new Date(k.from), ee) + " - ");
|
|
1607
1607
|
else if (k.from && k.to)
|
|
1608
1608
|
if (k.to < k.from) {
|
|
1609
1609
|
const v = { from: k.to, to: k.from };
|
|
1610
1610
|
d(v), f(
|
|
1611
|
-
|
|
1611
|
+
N(new Date(v.from), ee) + " - " + N(new Date(v.to), ee)
|
|
1612
1612
|
);
|
|
1613
1613
|
} else
|
|
1614
1614
|
d(k), f(
|
|
1615
|
-
|
|
1615
|
+
N(new Date(k.from), ee) + " - " + N(new Date(k.to), ee)
|
|
1616
1616
|
);
|
|
1617
1617
|
}, S = (k) => {
|
|
1618
1618
|
w.current = !0;
|
|
1619
1619
|
const { value: v } = k.target, [C, D] = v.split("-").map((F) => F.trim());
|
|
1620
1620
|
f(v);
|
|
1621
|
-
const T =
|
|
1621
|
+
const T = At(C, ee, /* @__PURE__ */ new Date()), I = D ? At(D, ee, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1622
1622
|
Fe(T) && Fe(I) ? d({ from: T, to: I }) : Fe(T) && !Fe(I) ? d({ from: T, to: void 0 }) : d({ from: void 0, to: void 0 });
|
|
1623
1623
|
}, j = () => {
|
|
1624
1624
|
f(""), d(void 0), h(/* @__PURE__ */ new Date());
|
|
1625
1625
|
};
|
|
1626
1626
|
return /* @__PURE__ */ e("div", { className: r(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ u(ae, { open: g, onOpenChange: x, children: [
|
|
1627
1627
|
/* @__PURE__ */ e(le, { asChild: !0, role: "trigger", className: c == null ? void 0 : c.trigger, children: /* @__PURE__ */ e(
|
|
1628
|
-
|
|
1628
|
+
zt,
|
|
1629
1629
|
{
|
|
1630
1630
|
ref: b,
|
|
1631
1631
|
label: i,
|
|
@@ -1642,7 +1642,7 @@ const jn = ({
|
|
|
1642
1642
|
},
|
|
1643
1643
|
disabled: n
|
|
1644
1644
|
},
|
|
1645
|
-
icon:
|
|
1645
|
+
icon: hr,
|
|
1646
1646
|
onIconClick: () => x(!0),
|
|
1647
1647
|
iconProps: {
|
|
1648
1648
|
width: 18,
|
|
@@ -1665,20 +1665,20 @@ const jn = ({
|
|
|
1665
1665
|
className: r(m.content, c == null ? void 0 : c.content),
|
|
1666
1666
|
children: [
|
|
1667
1667
|
/* @__PURE__ */ e(
|
|
1668
|
-
|
|
1668
|
+
Tn,
|
|
1669
1669
|
{
|
|
1670
1670
|
month: a,
|
|
1671
|
-
locale:
|
|
1671
|
+
locale: Ct,
|
|
1672
1672
|
onMonthChange: h,
|
|
1673
1673
|
mode: "range",
|
|
1674
1674
|
numberOfMonths: 2,
|
|
1675
1675
|
pagedNavigation: !0,
|
|
1676
1676
|
selected: t,
|
|
1677
1677
|
onSelect: B,
|
|
1678
|
-
classNames:
|
|
1678
|
+
classNames: Zn,
|
|
1679
1679
|
components: {
|
|
1680
1680
|
DayButton: (k) => {
|
|
1681
|
-
const v =
|
|
1681
|
+
const v = qn(
|
|
1682
1682
|
k.day.date,
|
|
1683
1683
|
t == null ? void 0 : t.from,
|
|
1684
1684
|
t == null ? void 0 : t.to
|
|
@@ -1708,8 +1708,8 @@ const jn = ({
|
|
|
1708
1708
|
{
|
|
1709
1709
|
className: r(
|
|
1710
1710
|
"size-6 rounded-full flex items-center justify-center",
|
|
1711
|
-
(t == null ? void 0 : t.from) &&
|
|
1712
|
-
(t == null ? void 0 : t.to) &&
|
|
1711
|
+
(t == null ? void 0 : t.from) && N(new Date(t == null ? void 0 : t.from), ee) === N(new Date(k.day.date), ee) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1712
|
+
(t == null ? void 0 : t.to) && N(new Date(t == null ? void 0 : t.to), ee) === N(new Date(k.day.date), ee) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1713
1713
|
v && "!bg-primary-40 text-dark-50"
|
|
1714
1714
|
),
|
|
1715
1715
|
children: /* @__PURE__ */ e(y, { className: "text-sm font-mono font-medium", children: k.children })
|
|
@@ -1725,7 +1725,7 @@ const jn = ({
|
|
|
1725
1725
|
onPreviousClick: D,
|
|
1726
1726
|
nextMonth: T,
|
|
1727
1727
|
previousMonth: I
|
|
1728
|
-
} = k, F = a,
|
|
1728
|
+
} = k, F = a, V = kn(a, 1);
|
|
1729
1729
|
return /* @__PURE__ */ u(
|
|
1730
1730
|
"div",
|
|
1731
1731
|
{
|
|
@@ -1742,7 +1742,7 @@ const jn = ({
|
|
|
1742
1742
|
disabled: !I,
|
|
1743
1743
|
className: "flex items-center justify-center",
|
|
1744
1744
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1745
|
-
|
|
1745
|
+
er,
|
|
1746
1746
|
{
|
|
1747
1747
|
width: 14,
|
|
1748
1748
|
height: 14,
|
|
@@ -1752,12 +1752,12 @@ const jn = ({
|
|
|
1752
1752
|
) })
|
|
1753
1753
|
}
|
|
1754
1754
|
),
|
|
1755
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(y, { className: "text-base text-dark-40 font-semibold font-mono", children:
|
|
1755
|
+
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(y, { className: "text-base text-dark-40 font-semibold font-mono", children: N(F, "MMMM yyyy", { locale: Ct }) }) })
|
|
1756
1756
|
] }),
|
|
1757
1757
|
/* @__PURE__ */ u("div", { className: "flex items-center w-1/2", children: [
|
|
1758
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(y, { className: "text-base text-dark-40 font-semibold font-mono", children:
|
|
1758
|
+
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(y, { className: "text-base text-dark-40 font-semibold font-mono", children: N(V, "MMMM yyyy", { locale: Ct }) }) }),
|
|
1759
1759
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1760
|
-
|
|
1760
|
+
tr,
|
|
1761
1761
|
{
|
|
1762
1762
|
width: 14,
|
|
1763
1763
|
height: 14,
|
|
@@ -1789,7 +1789,7 @@ const jn = ({
|
|
|
1789
1789
|
}
|
|
1790
1790
|
) })
|
|
1791
1791
|
] }) });
|
|
1792
|
-
},
|
|
1792
|
+
}, Kn = {
|
|
1793
1793
|
base: {
|
|
1794
1794
|
wrapper: "w-full h-max",
|
|
1795
1795
|
input: "w-60 h-11 !text-base text-dark-30 font-mono font-medium",
|
|
@@ -1797,12 +1797,12 @@ const jn = ({
|
|
|
1797
1797
|
selectButton: "flex items-center justify-center p-1",
|
|
1798
1798
|
resetButton: "justify-start p-0 text-xs text-primary-10 font-mono underline underline-offset-[3px] hover:decoration-primary-10"
|
|
1799
1799
|
}
|
|
1800
|
-
},
|
|
1800
|
+
}, Zn = {
|
|
1801
1801
|
months: "[&>.monthContainer:nth-child(2)]:left-0 [&>.monthContainer:nth-child(3)]:right-0 relative",
|
|
1802
1802
|
month: "monthContainer absolute",
|
|
1803
1803
|
weekdays: "size-6",
|
|
1804
1804
|
weekday: "text-sm text-dark-30 font-mono font-semibold"
|
|
1805
|
-
},
|
|
1805
|
+
}, Qn = ({
|
|
1806
1806
|
triggerElement: t,
|
|
1807
1807
|
mainUrl: d,
|
|
1808
1808
|
options: i,
|
|
@@ -1812,12 +1812,12 @@ const jn = ({
|
|
|
1812
1812
|
align: l = "start",
|
|
1813
1813
|
classNames: a
|
|
1814
1814
|
}) => {
|
|
1815
|
-
const [h, p] = z.useState(), [f] =
|
|
1815
|
+
const [h, p] = z.useState(), [f] = Ot(), g = dr(), x = (m) => {
|
|
1816
1816
|
p(m), g(`${d}/${m.to}?${f.toString()}`);
|
|
1817
|
-
}, b =
|
|
1818
|
-
return /* @__PURE__ */ u(
|
|
1817
|
+
}, b = Et.modal, s = b.item, w = Et.text;
|
|
1818
|
+
return /* @__PURE__ */ u(vt, { open: o, onOpenChange: n, children: [
|
|
1819
1819
|
/* @__PURE__ */ e(
|
|
1820
|
-
|
|
1820
|
+
st,
|
|
1821
1821
|
{
|
|
1822
1822
|
asChild: !0,
|
|
1823
1823
|
className: r(b.trigger, a == null ? void 0 : a.trigger),
|
|
@@ -1825,7 +1825,7 @@ const jn = ({
|
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
|
-
|
|
1828
|
+
mt,
|
|
1829
1829
|
{
|
|
1830
1830
|
side: c,
|
|
1831
1831
|
align: l,
|
|
@@ -1841,7 +1841,7 @@ const jn = ({
|
|
|
1841
1841
|
B && (a == null ? void 0 : a.item)
|
|
1842
1842
|
),
|
|
1843
1843
|
children: /* @__PURE__ */ u(
|
|
1844
|
-
|
|
1844
|
+
$t,
|
|
1845
1845
|
{
|
|
1846
1846
|
onClick: () => x(m),
|
|
1847
1847
|
className: r(
|
|
@@ -1871,7 +1871,7 @@ const jn = ({
|
|
|
1871
1871
|
}
|
|
1872
1872
|
)
|
|
1873
1873
|
] });
|
|
1874
|
-
},
|
|
1874
|
+
}, Et = {
|
|
1875
1875
|
modal: {
|
|
1876
1876
|
trigger: "focus-visible:outline-none",
|
|
1877
1877
|
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",
|
|
@@ -1883,7 +1883,7 @@ const jn = ({
|
|
|
1883
1883
|
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",
|
|
1884
1884
|
dot: "inline-block w-[7px] h-[7px] bg-dark-30/[.15] rounded-full group-hover:bg-primary-20"
|
|
1885
1885
|
}
|
|
1886
|
-
},
|
|
1886
|
+
}, Ko = ({
|
|
1887
1887
|
title: t,
|
|
1888
1888
|
description: d,
|
|
1889
1889
|
files: i = [],
|
|
@@ -1891,21 +1891,21 @@ const jn = ({
|
|
|
1891
1891
|
onFilesUpload: n,
|
|
1892
1892
|
onDelete: c,
|
|
1893
1893
|
classNames: l
|
|
1894
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
1895
|
-
t && /* @__PURE__ */ u("div", { className:
|
|
1896
|
-
/* @__PURE__ */ e(
|
|
1897
|
-
/* @__PURE__ */ u(y, { variant: "p", className:
|
|
1894
|
+
}) => /* @__PURE__ */ u("div", { className: r(G.wrapper, l == null ? void 0 : l.wrapper), children: [
|
|
1895
|
+
t && /* @__PURE__ */ u("div", { className: G.header, children: [
|
|
1896
|
+
/* @__PURE__ */ e(jr, { className: G.headerIcon, role: "img" }),
|
|
1897
|
+
/* @__PURE__ */ u(y, { variant: "p", className: G.headerText, children: [
|
|
1898
1898
|
t,
|
|
1899
1899
|
"(",
|
|
1900
1900
|
i.length,
|
|
1901
1901
|
")"
|
|
1902
1902
|
] })
|
|
1903
1903
|
] }),
|
|
1904
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
1904
|
+
/* @__PURE__ */ u("div", { className: r(G.container, l == null ? void 0 : l.container), children: [
|
|
1905
1905
|
i.length > 0 && i.map((a, h) => /* @__PURE__ */ e("div", { children: a.type.startsWith("image/") && a.publicUrl ? /* @__PURE__ */ u(
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
|
-
className: r(
|
|
1908
|
+
className: r(G.imageWrapper, l == null ? void 0 : l.imageWrapper),
|
|
1909
1909
|
children: [
|
|
1910
1910
|
/* @__PURE__ */ u("div", { className: "relative group", children: [
|
|
1911
1911
|
/* @__PURE__ */ e(
|
|
@@ -1913,7 +1913,7 @@ const jn = ({
|
|
|
1913
1913
|
{
|
|
1914
1914
|
src: a.publicUrl,
|
|
1915
1915
|
alt: a.name,
|
|
1916
|
-
className: r(
|
|
1916
|
+
className: r(G.image, l == null ? void 0 : l.image)
|
|
1917
1917
|
}
|
|
1918
1918
|
),
|
|
1919
1919
|
/* @__PURE__ */ e(
|
|
@@ -1921,7 +1921,7 @@ const jn = ({
|
|
|
1921
1921
|
{
|
|
1922
1922
|
width: 20,
|
|
1923
1923
|
height: 20,
|
|
1924
|
-
className: r(
|
|
1924
|
+
className: r(G.closeIcon),
|
|
1925
1925
|
onClick: () => c == null ? void 0 : c(a.id)
|
|
1926
1926
|
}
|
|
1927
1927
|
)
|
|
@@ -1930,18 +1930,18 @@ const jn = ({
|
|
|
1930
1930
|
Xe,
|
|
1931
1931
|
{
|
|
1932
1932
|
href: a.publicUrl,
|
|
1933
|
-
classNames: { root:
|
|
1933
|
+
classNames: { root: G.imageText },
|
|
1934
1934
|
isIconVisible: !1,
|
|
1935
1935
|
children: a.name
|
|
1936
1936
|
}
|
|
1937
1937
|
)
|
|
1938
1938
|
]
|
|
1939
1939
|
}
|
|
1940
|
-
) : /* @__PURE__ */ u("div", { className: r(
|
|
1941
|
-
/* @__PURE__ */ e(
|
|
1940
|
+
) : /* @__PURE__ */ u("div", { className: r(G.fileWrapper, l == null ? void 0 : l.file), children: [
|
|
1941
|
+
/* @__PURE__ */ e(rr, { className: G.fileIcon, role: "img" }),
|
|
1942
1942
|
/* @__PURE__ */ u("div", { children: [
|
|
1943
|
-
/* @__PURE__ */ e(y, { variant: "p", className:
|
|
1944
|
-
/* @__PURE__ */ e(y, { variant: "p", className:
|
|
1943
|
+
/* @__PURE__ */ e(y, { variant: "p", className: G.fileText, children: a.name }),
|
|
1944
|
+
/* @__PURE__ */ e(y, { variant: "p", className: G.fileSize, children: ft(a.size) })
|
|
1945
1945
|
] }),
|
|
1946
1946
|
/* @__PURE__ */ e(
|
|
1947
1947
|
Xe,
|
|
@@ -1951,10 +1951,10 @@ const jn = ({
|
|
|
1951
1951
|
classNames: { root: "p-0" },
|
|
1952
1952
|
target: "_blank",
|
|
1953
1953
|
children: /* @__PURE__ */ e(
|
|
1954
|
-
|
|
1954
|
+
gr,
|
|
1955
1955
|
{
|
|
1956
1956
|
"data-testid": "download-icon",
|
|
1957
|
-
className:
|
|
1957
|
+
className: G.icon,
|
|
1958
1958
|
width: 24,
|
|
1959
1959
|
height: 24,
|
|
1960
1960
|
viewBox: "0 0 16 17"
|
|
@@ -1967,7 +1967,7 @@ const jn = ({
|
|
|
1967
1967
|
{
|
|
1968
1968
|
width: 24,
|
|
1969
1969
|
height: 24,
|
|
1970
|
-
className:
|
|
1970
|
+
className: G.icon,
|
|
1971
1971
|
onClick: () => c == null ? void 0 : c(a.id),
|
|
1972
1972
|
viewBox: "0 0 20 20"
|
|
1973
1973
|
}
|
|
@@ -1977,9 +1977,9 @@ const jn = ({
|
|
|
1977
1977
|
"label",
|
|
1978
1978
|
{
|
|
1979
1979
|
htmlFor: "file-upload",
|
|
1980
|
-
className: r(
|
|
1980
|
+
className: r(G.target, l == null ? void 0 : l.target),
|
|
1981
1981
|
children: [
|
|
1982
|
-
/* @__PURE__ */ e(
|
|
1982
|
+
/* @__PURE__ */ e(Ir, { className: G.plusIcon, role: "img" }),
|
|
1983
1983
|
/* @__PURE__ */ e(
|
|
1984
1984
|
"input",
|
|
1985
1985
|
{
|
|
@@ -1987,7 +1987,7 @@ const jn = ({
|
|
|
1987
1987
|
type: "file",
|
|
1988
1988
|
onChange: n,
|
|
1989
1989
|
multiple: !0,
|
|
1990
|
-
className:
|
|
1990
|
+
className: G.input
|
|
1991
1991
|
}
|
|
1992
1992
|
)
|
|
1993
1993
|
]
|
|
@@ -1998,11 +1998,11 @@ const jn = ({
|
|
|
1998
1998
|
y,
|
|
1999
1999
|
{
|
|
2000
2000
|
variant: "p",
|
|
2001
|
-
className: r(
|
|
2001
|
+
className: r(G.description, l == null ? void 0 : l.description),
|
|
2002
2002
|
children: d
|
|
2003
2003
|
}
|
|
2004
2004
|
)
|
|
2005
|
-
] }),
|
|
2005
|
+
] }), G = {
|
|
2006
2006
|
wrapper: "flex flex-col w-full",
|
|
2007
2007
|
header: "flex flex-row gap-1 justify-start items-center",
|
|
2008
2008
|
headerIcon: "w-4 h-4 text-dark-40/[.30]",
|
|
@@ -2021,7 +2021,7 @@ const jn = ({
|
|
|
2021
2021
|
plusIcon: "text-dark-40/[.30]",
|
|
2022
2022
|
input: "hidden",
|
|
2023
2023
|
description: "text-xs text-dark-40/[.80] mt-0.5 font-semibold"
|
|
2024
|
-
},
|
|
2024
|
+
}, Zo = ({
|
|
2025
2025
|
classNames: t,
|
|
2026
2026
|
disabled: d,
|
|
2027
2027
|
onChange: i,
|
|
@@ -2031,7 +2031,7 @@ const jn = ({
|
|
|
2031
2031
|
icon: l,
|
|
2032
2032
|
iconSizes: a
|
|
2033
2033
|
}) => {
|
|
2034
|
-
const [h, p] =
|
|
2034
|
+
const [h, p] = A(!1), g = xr(o)(c), x = Bt.base, b = Bt.disabled.trigger, s = Bt.disabled.triggerText, w = ({
|
|
2035
2035
|
className: m,
|
|
2036
2036
|
text: B = ""
|
|
2037
2037
|
}) => /* @__PURE__ */ e(
|
|
@@ -2045,9 +2045,9 @@ const jn = ({
|
|
|
2045
2045
|
children: B
|
|
2046
2046
|
}
|
|
2047
2047
|
);
|
|
2048
|
-
return /* @__PURE__ */ u(
|
|
2048
|
+
return /* @__PURE__ */ u(vt, { open: h, onOpenChange: p, children: [
|
|
2049
2049
|
/* @__PURE__ */ u(
|
|
2050
|
-
|
|
2050
|
+
st,
|
|
2051
2051
|
{
|
|
2052
2052
|
role: "listbox",
|
|
2053
2053
|
disabled: d,
|
|
@@ -2087,20 +2087,20 @@ const jn = ({
|
|
|
2087
2087
|
x.dropdownIcon,
|
|
2088
2088
|
h && "rotate-180 transition-transform"
|
|
2089
2089
|
),
|
|
2090
|
-
children: /* @__PURE__ */ e(
|
|
2090
|
+
children: /* @__PURE__ */ e(_r, { className: "fill-dark-30" })
|
|
2091
2091
|
}
|
|
2092
2092
|
)
|
|
2093
2093
|
]
|
|
2094
2094
|
}
|
|
2095
2095
|
),
|
|
2096
2096
|
/* @__PURE__ */ e(
|
|
2097
|
-
|
|
2097
|
+
mt,
|
|
2098
2098
|
{
|
|
2099
2099
|
className: r(x.content, t == null ? void 0 : t.content),
|
|
2100
2100
|
align: "end",
|
|
2101
2101
|
sideOffset: 1,
|
|
2102
2102
|
children: o && (o == null ? void 0 : o.map((m) => /* @__PURE__ */ e(
|
|
2103
|
-
|
|
2103
|
+
$t,
|
|
2104
2104
|
{
|
|
2105
2105
|
className: x.items,
|
|
2106
2106
|
onClick: (B) => {
|
|
@@ -2123,7 +2123,7 @@ const jn = ({
|
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
] });
|
|
2126
|
-
},
|
|
2126
|
+
}, Bt = {
|
|
2127
2127
|
base: {
|
|
2128
2128
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2129
2129
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2141,7 +2141,7 @@ const jn = ({
|
|
|
2141
2141
|
},
|
|
2142
2142
|
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",
|
|
2143
2143
|
hover: "hover:bg-primary-20 hover:border-primary-20"
|
|
2144
|
-
},
|
|
2144
|
+
}, Xn = ({
|
|
2145
2145
|
photo: t,
|
|
2146
2146
|
fullname: d,
|
|
2147
2147
|
status: i,
|
|
@@ -2161,7 +2161,7 @@ const jn = ({
|
|
|
2161
2161
|
onClick: l,
|
|
2162
2162
|
children: [
|
|
2163
2163
|
/* @__PURE__ */ e(
|
|
2164
|
-
|
|
2164
|
+
Lt,
|
|
2165
2165
|
{
|
|
2166
2166
|
fullName: d,
|
|
2167
2167
|
jobTitle: i,
|
|
@@ -2199,7 +2199,7 @@ const jn = ({
|
|
|
2199
2199
|
notification: "flex items-center justify-center bg-primary-30 w-auto px-1 h-4 text-xs text-sidebar-10 rounded-full font-medium",
|
|
2200
2200
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2201
2201
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2202
|
-
},
|
|
2202
|
+
}, Qo = Q(
|
|
2203
2203
|
({ classNames: t, disabled: d, item: { icon: i, label: o = "" }, ...n }, c) => /* @__PURE__ */ u(
|
|
2204
2204
|
"button",
|
|
2205
2205
|
{
|
|
@@ -2265,7 +2265,7 @@ const jn = ({
|
|
|
2265
2265
|
hover: {
|
|
2266
2266
|
container: "hover:border-primary-20/[.30]"
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, Xo = z.forwardRef(({ textareaProps: t, disabled: d, classNames: i, iconSizes: o, onIconClick: n }, c) => {
|
|
2269
2269
|
const l = ot.base, a = ot.button, h = (t == null ? void 0 : t.status) === "danger", p = z.useRef(null), f = (g) => {
|
|
2270
2270
|
var x;
|
|
2271
2271
|
g.key === "Enter" && (g.preventDefault(), (x = p.current) == null || x.click());
|
|
@@ -2274,7 +2274,7 @@ const jn = ({
|
|
|
2274
2274
|
h && /* @__PURE__ */ e(se, { className: "fill-danger-10 mb-[5px]" }),
|
|
2275
2275
|
/* @__PURE__ */ u("div", { className: r(ot.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
2276
2276
|
/* @__PURE__ */ e(
|
|
2277
|
-
|
|
2277
|
+
or,
|
|
2278
2278
|
{
|
|
2279
2279
|
...t,
|
|
2280
2280
|
"aria-label": "Комментарий",
|
|
@@ -2295,7 +2295,7 @@ const jn = ({
|
|
|
2295
2295
|
i == null ? void 0 : i.button
|
|
2296
2296
|
),
|
|
2297
2297
|
children: /* @__PURE__ */ e(
|
|
2298
|
-
|
|
2298
|
+
Wr,
|
|
2299
2299
|
{
|
|
2300
2300
|
width: o == null ? void 0 : o.width,
|
|
2301
2301
|
height: o == null ? void 0 : o.height,
|
|
@@ -2328,10 +2328,10 @@ const jn = ({
|
|
|
2328
2328
|
hover: "group-hover:text-primary-20",
|
|
2329
2329
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2330
2330
|
}
|
|
2331
|
-
},
|
|
2331
|
+
}, mr = Q(
|
|
2332
2332
|
({ checked: t, classNames: d, disabled: i, label: o, ...n }, c) => /* @__PURE__ */ u("div", { className: r(ye.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2333
2333
|
/* @__PURE__ */ e(
|
|
2334
|
-
|
|
2334
|
+
ir,
|
|
2335
2335
|
{
|
|
2336
2336
|
className: r(
|
|
2337
2337
|
!i && ye.radio.base,
|
|
@@ -2344,7 +2344,7 @@ const jn = ({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
2346
2346
|
/* @__PURE__ */ e(
|
|
2347
|
-
|
|
2347
|
+
P,
|
|
2348
2348
|
{
|
|
2349
2349
|
className: r(
|
|
2350
2350
|
ye.label.base,
|
|
@@ -2359,18 +2359,18 @@ const jn = ({
|
|
|
2359
2359
|
)
|
|
2360
2360
|
] })
|
|
2361
2361
|
);
|
|
2362
|
-
|
|
2363
|
-
const
|
|
2362
|
+
mr.displayName = "RadioGroup";
|
|
2363
|
+
const Jn = ({
|
|
2364
2364
|
openDropdown: t,
|
|
2365
2365
|
setOpenDropdown: d,
|
|
2366
2366
|
isExpanded: i,
|
|
2367
2367
|
item: { id: o, label: n, icon: c, to: l, subItems: a },
|
|
2368
2368
|
onSubNavClick: h
|
|
2369
2369
|
}) => {
|
|
2370
|
-
const [p] =
|
|
2371
|
-
return /* @__PURE__ */ e(
|
|
2370
|
+
const [p] = Ot();
|
|
2371
|
+
return /* @__PURE__ */ e(rn, { type: "single", collapsible: !0, children: /* @__PURE__ */ u(nn, { value: String(o), children: [
|
|
2372
2372
|
/* @__PURE__ */ u(
|
|
2373
|
-
|
|
2373
|
+
on,
|
|
2374
2374
|
{
|
|
2375
2375
|
className: r(
|
|
2376
2376
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px] hover:data-[state=open]:bg-dark-20",
|
|
@@ -2385,7 +2385,7 @@ const Qn = ({
|
|
|
2385
2385
|
},
|
|
2386
2386
|
children: [
|
|
2387
2387
|
!!c && (i ? /* @__PURE__ */ e(c, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
|
|
2388
|
-
|
|
2388
|
+
Qn,
|
|
2389
2389
|
{
|
|
2390
2390
|
triggerElement: /* @__PURE__ */ e(
|
|
2391
2391
|
"div",
|
|
@@ -2426,8 +2426,8 @@ const Qn = ({
|
|
|
2426
2426
|
]
|
|
2427
2427
|
}
|
|
2428
2428
|
),
|
|
2429
|
-
i && /* @__PURE__ */ e(
|
|
2430
|
-
|
|
2429
|
+
i && /* @__PURE__ */ e(dn, { className: "flex flex-col gap-[2.5px] items-start", children: a == null ? void 0 : a.map((f) => /* @__PURE__ */ e(
|
|
2430
|
+
Ft,
|
|
2431
2431
|
{
|
|
2432
2432
|
to: `${l}/${f == null ? void 0 : f.to}?${p.toString()}`,
|
|
2433
2433
|
onClick: h,
|
|
@@ -2440,7 +2440,7 @@ const Qn = ({
|
|
|
2440
2440
|
f.id
|
|
2441
2441
|
)) })
|
|
2442
2442
|
] }) });
|
|
2443
|
-
},
|
|
2443
|
+
}, Jo = ({
|
|
2444
2444
|
isExpanded: t = !0,
|
|
2445
2445
|
navList: d,
|
|
2446
2446
|
onCollapse: i
|
|
@@ -2460,7 +2460,7 @@ const Qn = ({
|
|
|
2460
2460
|
{
|
|
2461
2461
|
className: r(l.base, t && l.expanded),
|
|
2462
2462
|
children: [
|
|
2463
|
-
/* @__PURE__ */ e(
|
|
2463
|
+
/* @__PURE__ */ e(Ft, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Vr, {}) : /* @__PURE__ */ e(sn, {}) }),
|
|
2464
2464
|
/* @__PURE__ */ e(
|
|
2465
2465
|
O,
|
|
2466
2466
|
{
|
|
@@ -2469,7 +2469,7 @@ const Qn = ({
|
|
|
2469
2469
|
classNames: { base: "p-0" },
|
|
2470
2470
|
onClick: i,
|
|
2471
2471
|
children: /* @__PURE__ */ e(
|
|
2472
|
-
|
|
2472
|
+
mn,
|
|
2473
2473
|
{
|
|
2474
2474
|
className: r(
|
|
2475
2475
|
h,
|
|
@@ -2487,7 +2487,7 @@ const Qn = ({
|
|
|
2487
2487
|
/* @__PURE__ */ e("div", { className: r(a.base, !t && a.expanded), children: d.map((p) => {
|
|
2488
2488
|
var f;
|
|
2489
2489
|
return /* @__PURE__ */ e(z.Fragment, { children: (f = p.subItems) != null && f.length ? /* @__PURE__ */ e(
|
|
2490
|
-
|
|
2490
|
+
Jn,
|
|
2491
2491
|
{
|
|
2492
2492
|
item: p,
|
|
2493
2493
|
isExpanded: t,
|
|
@@ -2497,7 +2497,7 @@ const Qn = ({
|
|
|
2497
2497
|
)
|
|
2498
2498
|
}
|
|
2499
2499
|
) : /* @__PURE__ */ e(
|
|
2500
|
-
|
|
2500
|
+
oo,
|
|
2501
2501
|
{
|
|
2502
2502
|
item: p,
|
|
2503
2503
|
badge: p.badge,
|
|
@@ -2522,14 +2522,14 @@ const Qn = ({
|
|
|
2522
2522
|
base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
|
|
2523
2523
|
expanded: "w-16 items-center"
|
|
2524
2524
|
}
|
|
2525
|
-
},
|
|
2525
|
+
}, Po = ({
|
|
2526
2526
|
options: t,
|
|
2527
2527
|
selectedValue: d,
|
|
2528
2528
|
onChange: i,
|
|
2529
2529
|
classNames: o,
|
|
2530
2530
|
isError: n = !1
|
|
2531
2531
|
}) => {
|
|
2532
|
-
const [c, l] =
|
|
2532
|
+
const [c, l] = A(!1), a = oe(null), h = (p) => {
|
|
2533
2533
|
i(p), l(!1);
|
|
2534
2534
|
};
|
|
2535
2535
|
return /* @__PURE__ */ e(
|
|
@@ -2559,7 +2559,7 @@ const Qn = ({
|
|
|
2559
2559
|
children: d.label
|
|
2560
2560
|
}
|
|
2561
2561
|
) }),
|
|
2562
|
-
n && /* @__PURE__ */ e(y, { className:
|
|
2562
|
+
n && /* @__PURE__ */ e(y, { className: St.error, children: "Введите все языки" }),
|
|
2563
2563
|
/* @__PURE__ */ e(
|
|
2564
2564
|
pe,
|
|
2565
2565
|
{
|
|
@@ -2567,11 +2567,11 @@ const Qn = ({
|
|
|
2567
2567
|
align: "center",
|
|
2568
2568
|
sideOffset: 4,
|
|
2569
2569
|
side: "bottom",
|
|
2570
|
-
className: r(
|
|
2571
|
-
children: /* @__PURE__ */ e("div", { className: r(
|
|
2570
|
+
className: r(St.root, o == null ? void 0 : o.content),
|
|
2571
|
+
children: /* @__PURE__ */ e("div", { className: r(St.optionsWrapper), children: t.map((p) => {
|
|
2572
2572
|
const f = `radio-${p.value}`;
|
|
2573
2573
|
return /* @__PURE__ */ e(
|
|
2574
|
-
|
|
2574
|
+
mr,
|
|
2575
2575
|
{
|
|
2576
2576
|
id: f,
|
|
2577
2577
|
checked: p.value === (d == null ? void 0 : d.value),
|
|
@@ -2586,11 +2586,11 @@ const Qn = ({
|
|
|
2586
2586
|
] })
|
|
2587
2587
|
}
|
|
2588
2588
|
);
|
|
2589
|
-
},
|
|
2589
|
+
}, St = {
|
|
2590
2590
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2591
2591
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2592
2592
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
2593
|
-
},
|
|
2593
|
+
}, Pn = [
|
|
2594
2594
|
{
|
|
2595
2595
|
label: "10",
|
|
2596
2596
|
value: "10"
|
|
@@ -2608,7 +2608,7 @@ const Qn = ({
|
|
|
2608
2608
|
value: "100"
|
|
2609
2609
|
}
|
|
2610
2610
|
];
|
|
2611
|
-
function
|
|
2611
|
+
function Nn(t, d) {
|
|
2612
2612
|
if (d <= 10)
|
|
2613
2613
|
return Array.from({ length: d }, (c, l) => l + 1);
|
|
2614
2614
|
const i = [], o = Math.max(t - 2, 1), n = Math.min(t + 2, d);
|
|
@@ -2617,7 +2617,7 @@ function Jn(t, d) {
|
|
|
2617
2617
|
c !== 1 && c !== d && i.push(c);
|
|
2618
2618
|
return n < d - 1 && i.push("..."), d > 1 && i.push(d), i;
|
|
2619
2619
|
}
|
|
2620
|
-
const
|
|
2620
|
+
const No = ({
|
|
2621
2621
|
currentPageIndex: t,
|
|
2622
2622
|
onPageChange: d,
|
|
2623
2623
|
totalPages: i,
|
|
@@ -2626,7 +2626,7 @@ const Jo = ({
|
|
|
2626
2626
|
totalItems: c = 10,
|
|
2627
2627
|
className: l
|
|
2628
2628
|
}) => {
|
|
2629
|
-
const a = t === 1, h = t === i, p = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), g =
|
|
2629
|
+
const a = t === 1, h = t === i, p = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), g = Nn(t, i);
|
|
2630
2630
|
return /* @__PURE__ */ u("div", { className: r($.wrapper, l), children: [
|
|
2631
2631
|
/* @__PURE__ */ u("div", { className: r($.countWrapper.base), children: [
|
|
2632
2632
|
/* @__PURE__ */ e("p", { className: r($.countWrapper.text), children: "Отображено: " }),
|
|
@@ -2654,7 +2654,7 @@ const Jo = ({
|
|
|
2654
2654
|
)
|
|
2655
2655
|
},
|
|
2656
2656
|
children: /* @__PURE__ */ e(
|
|
2657
|
-
|
|
2657
|
+
qr,
|
|
2658
2658
|
{
|
|
2659
2659
|
width: 28,
|
|
2660
2660
|
height: 28,
|
|
@@ -2702,7 +2702,7 @@ const Jo = ({
|
|
|
2702
2702
|
)
|
|
2703
2703
|
},
|
|
2704
2704
|
children: /* @__PURE__ */ e(
|
|
2705
|
-
|
|
2705
|
+
un,
|
|
2706
2706
|
{
|
|
2707
2707
|
width: 28,
|
|
2708
2708
|
height: 28,
|
|
@@ -2717,7 +2717,7 @@ const Jo = ({
|
|
|
2717
2717
|
/* @__PURE__ */ e(
|
|
2718
2718
|
De,
|
|
2719
2719
|
{
|
|
2720
|
-
options:
|
|
2720
|
+
options: Pn,
|
|
2721
2721
|
onChange: n,
|
|
2722
2722
|
value: o,
|
|
2723
2723
|
classNames: {
|
|
@@ -2756,7 +2756,7 @@ const Jo = ({
|
|
|
2756
2756
|
text: "text-dark-40/[.50] font-mono text-sm leading-none font-medium",
|
|
2757
2757
|
current: "text-dark-30 font-mono text-sm leading-none font-medium"
|
|
2758
2758
|
}
|
|
2759
|
-
},
|
|
2759
|
+
}, Gt = {
|
|
2760
2760
|
UZ: {
|
|
2761
2761
|
mask: "+___ (__) ___ __ __",
|
|
2762
2762
|
replacement: { _: /\d/ }
|
|
@@ -2765,7 +2765,7 @@ const Jo = ({
|
|
|
2765
2765
|
mask: "+_______________",
|
|
2766
2766
|
replacement: { _: /\d/ }
|
|
2767
2767
|
}
|
|
2768
|
-
},
|
|
2768
|
+
}, ei = ({
|
|
2769
2769
|
value: t = "",
|
|
2770
2770
|
id: d,
|
|
2771
2771
|
label: i,
|
|
@@ -2778,22 +2778,22 @@ const Jo = ({
|
|
|
2778
2778
|
...p
|
|
2779
2779
|
}) => {
|
|
2780
2780
|
const f = ht(
|
|
2781
|
-
() =>
|
|
2781
|
+
() => Gt[l] || Gt.DEFAULT,
|
|
2782
2782
|
[l]
|
|
2783
|
-
), g =
|
|
2784
|
-
() =>
|
|
2783
|
+
), g = sr(f), [x, b] = A(
|
|
2784
|
+
() => kt(String(t), f)
|
|
2785
2785
|
);
|
|
2786
2786
|
ve(() => {
|
|
2787
|
-
b(
|
|
2787
|
+
b(kt(String(t), f));
|
|
2788
2788
|
}, [t, f]);
|
|
2789
2789
|
const s = (v) => {
|
|
2790
|
-
const C = v.target.value.replace(/\D/g, ""), D =
|
|
2790
|
+
const C = v.target.value.replace(/\D/g, ""), D = kt(C, f);
|
|
2791
2791
|
b(D), a == null || a(C);
|
|
2792
2792
|
}, w = ke.parent, m = ke.base, B = ke.hover, S = ke.focus, j = ke.disabled, k = c && ke.variants[c];
|
|
2793
2793
|
return /* @__PURE__ */ u("div", { className: r(w, h == null ? void 0 : h.parent), children: [
|
|
2794
2794
|
/* @__PURE__ */ u("div", { className: ke.title, children: [
|
|
2795
2795
|
!!i && /* @__PURE__ */ e(
|
|
2796
|
-
|
|
2796
|
+
P,
|
|
2797
2797
|
{
|
|
2798
2798
|
htmlFor: d,
|
|
2799
2799
|
className: r(h == null ? void 0 : h.label),
|
|
@@ -2836,7 +2836,7 @@ const Jo = ({
|
|
|
2836
2836
|
variants: {
|
|
2837
2837
|
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"
|
|
2838
2838
|
}
|
|
2839
|
-
}, { Root:
|
|
2839
|
+
}, { Root: eo } = br, ti = Pt.forwardRef(
|
|
2840
2840
|
({
|
|
2841
2841
|
id: t = "",
|
|
2842
2842
|
title: d,
|
|
@@ -2850,11 +2850,11 @@ const Jo = ({
|
|
|
2850
2850
|
onClick: p,
|
|
2851
2851
|
...f
|
|
2852
2852
|
}, g) => {
|
|
2853
|
-
const [x, b] =
|
|
2853
|
+
const [x, b] = A(o || ""), s = (v) => {
|
|
2854
2854
|
b(v), n == null || n(t, v);
|
|
2855
2855
|
}, w = f.disabled || !1, m = Ue.base, B = Ue.pressed, S = Ue.hover, j = Ue.disabled, k = Ue.content;
|
|
2856
2856
|
return /* @__PURE__ */ u(
|
|
2857
|
-
|
|
2857
|
+
eo,
|
|
2858
2858
|
{
|
|
2859
2859
|
ref: g,
|
|
2860
2860
|
onClick: () => p == null ? void 0 : p(t),
|
|
@@ -2880,7 +2880,7 @@ const Jo = ({
|
|
|
2880
2880
|
),
|
|
2881
2881
|
/* @__PURE__ */ u("div", { className: k.actions, children: [
|
|
2882
2882
|
!!l && /* @__PURE__ */ e(
|
|
2883
|
-
|
|
2883
|
+
wr,
|
|
2884
2884
|
{
|
|
2885
2885
|
options: l,
|
|
2886
2886
|
value: x,
|
|
@@ -2897,7 +2897,7 @@ const Jo = ({
|
|
|
2897
2897
|
base: k.button
|
|
2898
2898
|
},
|
|
2899
2899
|
children: /* @__PURE__ */ e(
|
|
2900
|
-
|
|
2900
|
+
hn,
|
|
2901
2901
|
{
|
|
2902
2902
|
className: k.icon,
|
|
2903
2903
|
width: 15,
|
|
@@ -2961,15 +2961,15 @@ const Jo = ({
|
|
|
2961
2961
|
amount: "block text-dark-30 font-semibold break-all",
|
|
2962
2962
|
disabled: "text-dark-30/[.42]"
|
|
2963
2963
|
}
|
|
2964
|
-
},
|
|
2965
|
-
|
|
2964
|
+
}, ri = Pt.forwardRef(({ tabs: t = [], activeTab: d, onTabChange: i, classNames: o, iconSizes: n }, c) => /* @__PURE__ */ e(
|
|
2965
|
+
lr,
|
|
2966
2966
|
{
|
|
2967
2967
|
ref: c,
|
|
2968
2968
|
value: d,
|
|
2969
2969
|
onValueChange: i,
|
|
2970
2970
|
className: r(o == null ? void 0 : o.tab, Ce.tab),
|
|
2971
|
-
children: /* @__PURE__ */ e(
|
|
2972
|
-
|
|
2971
|
+
children: /* @__PURE__ */ e(pr, { className: r(Ce.list, o == null ? void 0 : o.list), children: t && t.map((l) => /* @__PURE__ */ u(
|
|
2972
|
+
cr,
|
|
2973
2973
|
{
|
|
2974
2974
|
value: l.value,
|
|
2975
2975
|
disabled: l.disabled,
|
|
@@ -3006,7 +3006,7 @@ const Jo = ({
|
|
|
3006
3006
|
label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
|
|
3007
3007
|
activeIcon: "fill-dark-40",
|
|
3008
3008
|
iconInactive: "fill-dark-40/[.50]"
|
|
3009
|
-
},
|
|
3009
|
+
}, ni = z.forwardRef(
|
|
3010
3010
|
({ tabs: t = [], activeTab: d, onTabChange: i, onEditTabContent: o, classNames: n }, c) => {
|
|
3011
3011
|
const l = _e.base, a = _e.list, h = _e.trigger, p = _e.content, f = _e.overlayBorder, g = _e.datalist, x = ({ list: b }) => /* @__PURE__ */ e(
|
|
3012
3012
|
"ul",
|
|
@@ -3031,15 +3031,15 @@ const Jo = ({
|
|
|
3031
3031
|
}
|
|
3032
3032
|
);
|
|
3033
3033
|
return /* @__PURE__ */ u(
|
|
3034
|
-
|
|
3034
|
+
lr,
|
|
3035
3035
|
{
|
|
3036
3036
|
ref: c,
|
|
3037
3037
|
value: d,
|
|
3038
3038
|
onValueChange: i,
|
|
3039
3039
|
className: r(l, n == null ? void 0 : n.base),
|
|
3040
3040
|
children: [
|
|
3041
|
-
/* @__PURE__ */ e(
|
|
3042
|
-
|
|
3041
|
+
/* @__PURE__ */ e(pr, { className: r(a, n == null ? void 0 : n.list), children: t.map((b, s, w) => /* @__PURE__ */ u(
|
|
3042
|
+
cr,
|
|
3043
3043
|
{
|
|
3044
3044
|
value: b.value,
|
|
3045
3045
|
disabled: b.disabled,
|
|
@@ -3066,7 +3066,7 @@ const Jo = ({
|
|
|
3066
3066
|
b.value
|
|
3067
3067
|
)) }),
|
|
3068
3068
|
t.map((b, s, w) => /* @__PURE__ */ u(
|
|
3069
|
-
|
|
3069
|
+
an,
|
|
3070
3070
|
{
|
|
3071
3071
|
value: b.value,
|
|
3072
3072
|
className: r(
|
|
@@ -3086,7 +3086,7 @@ const Jo = ({
|
|
|
3086
3086
|
{
|
|
3087
3087
|
className: "hover:cursor-pointer",
|
|
3088
3088
|
onClick: () => o(b),
|
|
3089
|
-
children: /* @__PURE__ */ e(
|
|
3089
|
+
children: /* @__PURE__ */ e(Ar, { className: "fill-sidebar-10" })
|
|
3090
3090
|
}
|
|
3091
3091
|
)
|
|
3092
3092
|
] }),
|
|
@@ -3128,34 +3128,34 @@ const Jo = ({
|
|
|
3128
3128
|
base: "flex flex-col gap-1.5",
|
|
3129
3129
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3130
3130
|
}
|
|
3131
|
-
},
|
|
3131
|
+
}, oi = ({
|
|
3132
3132
|
disabled: t,
|
|
3133
3133
|
labelProps: d,
|
|
3134
3134
|
textareaProps: i,
|
|
3135
3135
|
...o
|
|
3136
3136
|
}) => {
|
|
3137
|
-
const n =
|
|
3137
|
+
const n = Vt.root, c = (i == null ? void 0 : i.status) === "danger";
|
|
3138
3138
|
return /* @__PURE__ */ u("div", { ...o, className: n, children: [
|
|
3139
|
-
/* @__PURE__ */ u("div", { className:
|
|
3140
|
-
!!(d != null && d.children) && /* @__PURE__ */ e(
|
|
3139
|
+
/* @__PURE__ */ u("div", { className: Vt.labelWrapper, children: [
|
|
3140
|
+
!!(d != null && d.children) && /* @__PURE__ */ e(P, { ...d, disabled: t }),
|
|
3141
3141
|
c && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3142
3142
|
] }),
|
|
3143
|
-
/* @__PURE__ */ e(
|
|
3143
|
+
/* @__PURE__ */ e(or, { ...i, disabled: t })
|
|
3144
3144
|
] });
|
|
3145
|
-
},
|
|
3145
|
+
}, Vt = {
|
|
3146
3146
|
root: "w-full flex flex-col gap-1.5",
|
|
3147
3147
|
labelWrapper: "flex items-center gap-2"
|
|
3148
|
-
},
|
|
3148
|
+
}, ii = ({
|
|
3149
3149
|
fieldLabel: t,
|
|
3150
3150
|
disabled: d,
|
|
3151
3151
|
className: i,
|
|
3152
3152
|
labelProps: o,
|
|
3153
3153
|
toggleProps: n,
|
|
3154
3154
|
onClick: c
|
|
3155
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3156
|
-
/* @__PURE__ */ e(
|
|
3155
|
+
}) => /* @__PURE__ */ u("div", { className: r(to.root, i), children: [
|
|
3156
|
+
/* @__PURE__ */ e(P, { ...o, disabled: d, children: t }),
|
|
3157
3157
|
/* @__PURE__ */ e(
|
|
3158
|
-
|
|
3158
|
+
Lr,
|
|
3159
3159
|
{
|
|
3160
3160
|
disabled: d,
|
|
3161
3161
|
onClick: c,
|
|
@@ -3165,7 +3165,7 @@ const Jo = ({
|
|
|
3165
3165
|
labelPosition: n.labelPosition
|
|
3166
3166
|
}
|
|
3167
3167
|
)
|
|
3168
|
-
] }),
|
|
3168
|
+
] }), to = {
|
|
3169
3169
|
root: "flex flex-col items-start gap-3"
|
|
3170
3170
|
}, We = {
|
|
3171
3171
|
wrapper: "flex items-center justify-between cursor-pointer w-[330px] h-11 bg-gray-50 rounded-2xl p-4 border-2 border-transparent transition-all duration-300 ease-in-out hover:border-2 hover:border-primary-20/20",
|
|
@@ -3174,7 +3174,7 @@ const Jo = ({
|
|
|
3174
3174
|
active: "active:bg-transparent w-4 h-4 p-0 bg-transparent focus:bg-transparent hover:bg-transparent shadow-none hover:shadow-none active:shadow-none focus:shadow-none ring-0 focus:outline-none border-none"
|
|
3175
3175
|
},
|
|
3176
3176
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3177
|
-
},
|
|
3177
|
+
}, di = Q(
|
|
3178
3178
|
({
|
|
3179
3179
|
blockName: t,
|
|
3180
3180
|
className: d,
|
|
@@ -3203,7 +3203,7 @@ const Jo = ({
|
|
|
3203
3203
|
classNames: {
|
|
3204
3204
|
base: r(We.button.basic, We.button.active)
|
|
3205
3205
|
},
|
|
3206
|
-
children: /* @__PURE__ */ e(
|
|
3206
|
+
children: /* @__PURE__ */ e(en, {})
|
|
3207
3207
|
}
|
|
3208
3208
|
),
|
|
3209
3209
|
/* @__PURE__ */ e(y, { className: We.wrapperBlockName, children: t || "-" }),
|
|
@@ -3217,13 +3217,13 @@ const Jo = ({
|
|
|
3217
3217
|
classNames: {
|
|
3218
3218
|
base: r(We.button.basic, We.button.active)
|
|
3219
3219
|
},
|
|
3220
|
-
children: /* @__PURE__ */ e(
|
|
3220
|
+
children: /* @__PURE__ */ e(fn, {})
|
|
3221
3221
|
}
|
|
3222
3222
|
)
|
|
3223
3223
|
]
|
|
3224
3224
|
}
|
|
3225
3225
|
)
|
|
3226
|
-
),
|
|
3226
|
+
), ro = [
|
|
3227
3227
|
"Январь",
|
|
3228
3228
|
"Февраль",
|
|
3229
3229
|
"Март",
|
|
@@ -3236,12 +3236,12 @@ const Jo = ({
|
|
|
3236
3236
|
"Октябрь",
|
|
3237
3237
|
"Ноябрь",
|
|
3238
3238
|
"Декабрь"
|
|
3239
|
-
],
|
|
3239
|
+
], no = Array.from({ length: 200 }, (t, d) => 1900 + d).map(
|
|
3240
3240
|
(t) => ({
|
|
3241
3241
|
label: t.toString(),
|
|
3242
3242
|
value: t.toString()
|
|
3243
3243
|
})
|
|
3244
|
-
),
|
|
3244
|
+
), ai = ({
|
|
3245
3245
|
value: t,
|
|
3246
3246
|
setValue: d,
|
|
3247
3247
|
disabled: i,
|
|
@@ -3252,21 +3252,21 @@ const Jo = ({
|
|
|
3252
3252
|
const l = oe(null), a = (T) => {
|
|
3253
3253
|
if (!T) return;
|
|
3254
3254
|
if (T instanceof Date) return T;
|
|
3255
|
-
const I =
|
|
3255
|
+
const I = At(
|
|
3256
3256
|
T,
|
|
3257
|
-
|
|
3257
|
+
Ht,
|
|
3258
3258
|
/* @__PURE__ */ new Date()
|
|
3259
3259
|
);
|
|
3260
3260
|
if (Fe(I)) return I;
|
|
3261
|
-
const F =
|
|
3261
|
+
const F = Cn(T);
|
|
3262
3262
|
return Fe(F) ? F : void 0;
|
|
3263
|
-
}, [h, p] =
|
|
3263
|
+
}, [h, p] = A(
|
|
3264
3264
|
a(t)
|
|
3265
|
-
), [f, g] =
|
|
3265
|
+
), [f, g] = A(
|
|
3266
3266
|
h == null ? void 0 : h.getDate()
|
|
3267
|
-
), [x, b] =
|
|
3267
|
+
), [x, b] = A(
|
|
3268
3268
|
h == null ? void 0 : h.getMonth()
|
|
3269
|
-
), [s, w] =
|
|
3269
|
+
), [s, w] = A(
|
|
3270
3270
|
h == null ? void 0 : h.getFullYear()
|
|
3271
3271
|
);
|
|
3272
3272
|
ve(() => {
|
|
@@ -3276,17 +3276,17 @@ const Jo = ({
|
|
|
3276
3276
|
const m = /* @__PURE__ */ new Date(), B = s ?? m.getFullYear(), S = x ?? m.getMonth(), j = ht(() => {
|
|
3277
3277
|
const T = new Date(B, S + 1, 0).getDate();
|
|
3278
3278
|
return Array.from({ length: T }, (I, F) => {
|
|
3279
|
-
const
|
|
3279
|
+
const V = F + 1;
|
|
3280
3280
|
return {
|
|
3281
|
-
label:
|
|
3282
|
-
value:
|
|
3281
|
+
label: V.toString().padStart(2, "0"),
|
|
3282
|
+
value: V.toString()
|
|
3283
3283
|
};
|
|
3284
3284
|
});
|
|
3285
3285
|
}, [S, B]), k = (T, I, F) => {
|
|
3286
3286
|
if (T !== void 0 && I !== void 0 && F !== void 0) {
|
|
3287
|
-
const
|
|
3288
|
-
p(
|
|
3289
|
-
|
|
3287
|
+
const V = new Date(F, I, T);
|
|
3288
|
+
p(V), d(
|
|
3289
|
+
Rr(V, Ht)
|
|
3290
3290
|
);
|
|
3291
3291
|
} else
|
|
3292
3292
|
p(void 0), d(void 0);
|
|
@@ -3300,9 +3300,9 @@ const Jo = ({
|
|
|
3300
3300
|
const I = parseInt(T);
|
|
3301
3301
|
g(I), k(I, x, s);
|
|
3302
3302
|
};
|
|
3303
|
-
return /* @__PURE__ */ u("div", { ref: l, className:
|
|
3304
|
-
!!o && /* @__PURE__ */ e(
|
|
3305
|
-
/* @__PURE__ */ u("div", { className:
|
|
3303
|
+
return /* @__PURE__ */ u("div", { ref: l, className: qt.root, children: [
|
|
3304
|
+
!!o && /* @__PURE__ */ e(P, { className: r(c == null ? void 0 : c.label), children: o }),
|
|
3305
|
+
/* @__PURE__ */ u("div", { className: qt.selectContainer, children: [
|
|
3306
3306
|
/* @__PURE__ */ e(
|
|
3307
3307
|
De,
|
|
3308
3308
|
{
|
|
@@ -3321,7 +3321,7 @@ const Jo = ({
|
|
|
3321
3321
|
/* @__PURE__ */ e(
|
|
3322
3322
|
De,
|
|
3323
3323
|
{
|
|
3324
|
-
options:
|
|
3324
|
+
options: ro.map((T, I) => ({
|
|
3325
3325
|
label: T,
|
|
3326
3326
|
value: I.toString()
|
|
3327
3327
|
})),
|
|
@@ -3339,7 +3339,7 @@ const Jo = ({
|
|
|
3339
3339
|
/* @__PURE__ */ e(
|
|
3340
3340
|
De,
|
|
3341
3341
|
{
|
|
3342
|
-
options:
|
|
3342
|
+
options: no,
|
|
3343
3343
|
classNames: {
|
|
3344
3344
|
trigger: r("w-full h-11", c == null ? void 0 : c.selectTrigger),
|
|
3345
3345
|
selected: r("text-sm", c == null ? void 0 : c.selectSelected)
|
|
@@ -3354,21 +3354,21 @@ const Jo = ({
|
|
|
3354
3354
|
)
|
|
3355
3355
|
] })
|
|
3356
3356
|
] });
|
|
3357
|
-
},
|
|
3357
|
+
}, qt = {
|
|
3358
3358
|
root: "relative w-full flex items-start flex-col gap-1.5",
|
|
3359
3359
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3360
3360
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3361
3361
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3362
|
-
},
|
|
3362
|
+
}, oo = ({
|
|
3363
3363
|
badge: t,
|
|
3364
3364
|
isExpanded: d = !0,
|
|
3365
3365
|
disabled: i = !1,
|
|
3366
3366
|
item: { icon: o, label: n = "", to: c },
|
|
3367
3367
|
classNames: l
|
|
3368
3368
|
}) => {
|
|
3369
|
-
const [a] =
|
|
3369
|
+
const [a] = Ot(), h = Dt.base;
|
|
3370
3370
|
return /* @__PURE__ */ e(
|
|
3371
|
-
|
|
3371
|
+
Ft,
|
|
3372
3372
|
{
|
|
3373
3373
|
tabIndex: 1,
|
|
3374
3374
|
role: "link",
|
|
@@ -3415,7 +3415,7 @@ const Jo = ({
|
|
|
3415
3415
|
{
|
|
3416
3416
|
"text-primary-10": p,
|
|
3417
3417
|
"text-sidebar/[.15]": i,
|
|
3418
|
-
[
|
|
3418
|
+
[Dt.expanded.label]: !d
|
|
3419
3419
|
},
|
|
3420
3420
|
l == null ? void 0 : l.label
|
|
3421
3421
|
),
|
|
@@ -3428,7 +3428,7 @@ const Jo = ({
|
|
|
3428
3428
|
variant: "span",
|
|
3429
3429
|
className: r(
|
|
3430
3430
|
h.badge,
|
|
3431
|
-
!d &&
|
|
3431
|
+
!d && Dt.expanded.badge,
|
|
3432
3432
|
l == null ? void 0 : l.badge
|
|
3433
3433
|
),
|
|
3434
3434
|
children: t
|
|
@@ -3440,7 +3440,7 @@ const Jo = ({
|
|
|
3440
3440
|
] })
|
|
3441
3441
|
}
|
|
3442
3442
|
);
|
|
3443
|
-
},
|
|
3443
|
+
}, Dt = {
|
|
3444
3444
|
base: {
|
|
3445
3445
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3446
3446
|
labelWrapper: "relative inline-block",
|
|
@@ -3454,20 +3454,20 @@ const Jo = ({
|
|
|
3454
3454
|
badge: "top-0 translate-x-1 -translate-y-4",
|
|
3455
3455
|
label: "w-0 opacity-0"
|
|
3456
3456
|
}
|
|
3457
|
-
},
|
|
3457
|
+
}, li = ({
|
|
3458
3458
|
options: t,
|
|
3459
3459
|
title: d,
|
|
3460
3460
|
setActiveStep: i,
|
|
3461
3461
|
disabled: o = !1,
|
|
3462
3462
|
classNames: n
|
|
3463
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3464
|
-
d && /* @__PURE__ */ u("div", { className: r(
|
|
3465
|
-
/* @__PURE__ */ e(
|
|
3463
|
+
}) => /* @__PURE__ */ u("div", { className: r(q.root, n == null ? void 0 : n.root), "data-testid": "stepper", children: [
|
|
3464
|
+
d && /* @__PURE__ */ u("div", { className: r(q.header, n == null ? void 0 : n.header), children: [
|
|
3465
|
+
/* @__PURE__ */ e(wn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3466
3466
|
/* @__PURE__ */ e(
|
|
3467
3467
|
ut,
|
|
3468
3468
|
{
|
|
3469
3469
|
variant: "h2",
|
|
3470
|
-
className:
|
|
3470
|
+
className: q.headerTitle,
|
|
3471
3471
|
"data-testid": "stepper-title",
|
|
3472
3472
|
children: d
|
|
3473
3473
|
}
|
|
@@ -3476,34 +3476,34 @@ const Jo = ({
|
|
|
3476
3476
|
/* @__PURE__ */ e(
|
|
3477
3477
|
"div",
|
|
3478
3478
|
{
|
|
3479
|
-
className: r(
|
|
3479
|
+
className: r(q.timeline, n == null ? void 0 : n.timeline),
|
|
3480
3480
|
"data-testid": "stepper-timeline",
|
|
3481
3481
|
children: t.map((c, l) => /* @__PURE__ */ u(
|
|
3482
3482
|
"div",
|
|
3483
3483
|
{
|
|
3484
3484
|
"data-testid": `step-${l}`,
|
|
3485
|
-
className: r(
|
|
3485
|
+
className: r(q.stepWrapper, n == null ? void 0 : n.stepWrapper),
|
|
3486
3486
|
children: [
|
|
3487
|
-
l < t.length - 1 && /* @__PURE__ */ e("span", { className:
|
|
3488
|
-
/* @__PURE__ */ e("div", { className:
|
|
3487
|
+
l < t.length - 1 && /* @__PURE__ */ e("span", { className: q.verticalLine }),
|
|
3488
|
+
/* @__PURE__ */ e("div", { className: q.statusDotWrapper, children: c.activeStep ? /* @__PURE__ */ e("div", { className: q.activeDot, children: /* @__PURE__ */ e("span", { className: q.activeDotInner }) }) : /* @__PURE__ */ e(
|
|
3489
3489
|
"div",
|
|
3490
3490
|
{
|
|
3491
3491
|
onClick: () => !o && i(l),
|
|
3492
3492
|
className: r(
|
|
3493
|
-
|
|
3493
|
+
q.completedDotWrapper,
|
|
3494
3494
|
o ? "cursor-not-allowed" : "cursor-pointer"
|
|
3495
3495
|
),
|
|
3496
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3496
|
+
children: /* @__PURE__ */ e("span", { className: q.completedDot })
|
|
3497
3497
|
}
|
|
3498
3498
|
) }),
|
|
3499
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
3499
|
+
/* @__PURE__ */ u("div", { className: r(q.content, n == null ? void 0 : n.content), children: [
|
|
3500
3500
|
/* @__PURE__ */ e(
|
|
3501
3501
|
ut,
|
|
3502
3502
|
{
|
|
3503
3503
|
variant: "h3",
|
|
3504
3504
|
"data-testid": `step-${l}-title`,
|
|
3505
3505
|
className: r(
|
|
3506
|
-
c.activeStep ?
|
|
3506
|
+
c.activeStep ? q.title : q.titleCompleted,
|
|
3507
3507
|
n == null ? void 0 : n.title
|
|
3508
3508
|
),
|
|
3509
3509
|
children: c.title
|
|
@@ -3514,7 +3514,7 @@ const Jo = ({
|
|
|
3514
3514
|
{
|
|
3515
3515
|
"data-testid": `step-${l}-subtitle`,
|
|
3516
3516
|
className: r(
|
|
3517
|
-
c.activeStep ?
|
|
3517
|
+
c.activeStep ? q.subtitle : q.subtitleCompleted,
|
|
3518
3518
|
n == null ? void 0 : n.subtitle
|
|
3519
3519
|
),
|
|
3520
3520
|
children: c.subtitle
|
|
@@ -3525,7 +3525,7 @@ const Jo = ({
|
|
|
3525
3525
|
{
|
|
3526
3526
|
"data-testid": `step-${l}-date`,
|
|
3527
3527
|
className: r(
|
|
3528
|
-
c.activeStep ?
|
|
3528
|
+
c.activeStep ? q.date : q.dateCompleted,
|
|
3529
3529
|
n == null ? void 0 : n.date
|
|
3530
3530
|
),
|
|
3531
3531
|
children: c.date
|
|
@@ -3538,7 +3538,7 @@ const Jo = ({
|
|
|
3538
3538
|
))
|
|
3539
3539
|
}
|
|
3540
3540
|
)
|
|
3541
|
-
] }),
|
|
3541
|
+
] }), q = {
|
|
3542
3542
|
root: "relative flex flex-col bg-white w-full",
|
|
3543
3543
|
header: "flex items-center gap-1.5 mb-3",
|
|
3544
3544
|
headerTitle: "text-dark-40 text-sm font-bold font-mono",
|
|
@@ -3567,20 +3567,20 @@ const Jo = ({
|
|
|
3567
3567
|
"div",
|
|
3568
3568
|
{
|
|
3569
3569
|
className: r(
|
|
3570
|
-
|
|
3570
|
+
Kt.wrapper,
|
|
3571
3571
|
o === "right" && "flex-row-reverse",
|
|
3572
3572
|
i == null ? void 0 : i.wrapper
|
|
3573
3573
|
),
|
|
3574
3574
|
children: [
|
|
3575
3575
|
!!t && t,
|
|
3576
|
-
/* @__PURE__ */ e(y, { className: r(
|
|
3576
|
+
/* @__PURE__ */ e(y, { className: r(Kt.headerTitle, i == null ? void 0 : i.title), children: d })
|
|
3577
3577
|
]
|
|
3578
3578
|
}
|
|
3579
|
-
),
|
|
3579
|
+
), Kt = {
|
|
3580
3580
|
wrapper: "flex items-center gap-2 w-full",
|
|
3581
3581
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3582
3582
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3583
|
-
},
|
|
3583
|
+
}, zt = Q(
|
|
3584
3584
|
({
|
|
3585
3585
|
id: t,
|
|
3586
3586
|
label: d,
|
|
@@ -3599,7 +3599,7 @@ const Jo = ({
|
|
|
3599
3599
|
return /* @__PURE__ */ u("div", { className: r(x, a == null ? void 0 : a.parent), ...f, children: [
|
|
3600
3600
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
3601
3601
|
!!d && /* @__PURE__ */ e(
|
|
3602
|
-
|
|
3602
|
+
P,
|
|
3603
3603
|
{
|
|
3604
3604
|
htmlFor: t,
|
|
3605
3605
|
className: r(a == null ? void 0 : a.label),
|
|
@@ -3619,7 +3619,7 @@ const Jo = ({
|
|
|
3619
3619
|
),
|
|
3620
3620
|
children: [
|
|
3621
3621
|
/* @__PURE__ */ e(
|
|
3622
|
-
|
|
3622
|
+
zr,
|
|
3623
3623
|
{
|
|
3624
3624
|
...p,
|
|
3625
3625
|
ref: g,
|
|
@@ -3699,17 +3699,17 @@ const Jo = ({
|
|
|
3699
3699
|
icon: "fill-dark-10/60 size-6",
|
|
3700
3700
|
text: "text-gray-10 text-sm font-mono leading-none"
|
|
3701
3701
|
}
|
|
3702
|
-
},
|
|
3702
|
+
}, pi = ({
|
|
3703
3703
|
icon: t,
|
|
3704
3704
|
element: d,
|
|
3705
3705
|
label: i,
|
|
3706
3706
|
classNames: o
|
|
3707
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3707
|
+
}) => /* @__PURE__ */ u("div", { className: r(jt.wrapper, o == null ? void 0 : o.wrapper), children: [
|
|
3708
3708
|
!!t && /* @__PURE__ */ e(
|
|
3709
3709
|
"div",
|
|
3710
3710
|
{
|
|
3711
3711
|
"data-testid": "user-icon",
|
|
3712
|
-
className: r(
|
|
3712
|
+
className: r(jt.iconWrapper, o == null ? void 0 : o.iconWrapper),
|
|
3713
3713
|
children: t
|
|
3714
3714
|
}
|
|
3715
3715
|
),
|
|
@@ -3718,12 +3718,12 @@ const Jo = ({
|
|
|
3718
3718
|
{
|
|
3719
3719
|
"data-testid": "user-label",
|
|
3720
3720
|
variant: "span",
|
|
3721
|
-
className: r(
|
|
3721
|
+
className: r(jt.label, o == null ? void 0 : o.label),
|
|
3722
3722
|
children: i
|
|
3723
3723
|
}
|
|
3724
3724
|
),
|
|
3725
3725
|
!!d && d
|
|
3726
|
-
] }),
|
|
3726
|
+
] }), jt = {
|
|
3727
3727
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3728
3728
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3729
3729
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3748,7 +3748,7 @@ const Jo = ({
|
|
|
3748
3748
|
},
|
|
3749
3749
|
...p
|
|
3750
3750
|
}) => {
|
|
3751
|
-
const f =
|
|
3751
|
+
const f = io.states;
|
|
3752
3752
|
return /* @__PURE__ */ u(
|
|
3753
3753
|
Pe,
|
|
3754
3754
|
{
|
|
@@ -3774,7 +3774,7 @@ const Jo = ({
|
|
|
3774
3774
|
),
|
|
3775
3775
|
children: [
|
|
3776
3776
|
c && /* @__PURE__ */ e(
|
|
3777
|
-
|
|
3777
|
+
Kr,
|
|
3778
3778
|
{
|
|
3779
3779
|
width: h.width,
|
|
3780
3780
|
height: h.height,
|
|
@@ -3786,7 +3786,7 @@ const Jo = ({
|
|
|
3786
3786
|
]
|
|
3787
3787
|
}
|
|
3788
3788
|
);
|
|
3789
|
-
},
|
|
3789
|
+
}, io = {
|
|
3790
3790
|
states: {
|
|
3791
3791
|
active: "active:text-primary-30",
|
|
3792
3792
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
@@ -3794,7 +3794,7 @@ const Jo = ({
|
|
|
3794
3794
|
hover: "hover:text-primary-20",
|
|
3795
3795
|
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"
|
|
3796
3796
|
}
|
|
3797
|
-
},
|
|
3797
|
+
}, wr = Q(
|
|
3798
3798
|
({
|
|
3799
3799
|
classNames: t,
|
|
3800
3800
|
disabled: d,
|
|
@@ -3804,7 +3804,7 @@ const Jo = ({
|
|
|
3804
3804
|
value: c
|
|
3805
3805
|
}, l) => {
|
|
3806
3806
|
var S;
|
|
3807
|
-
const [a, h] =
|
|
3807
|
+
const [a, h] = A(!1), f = xr(o)(c), g = oe(null), x = Ye.base, b = Ye.options, s = Ye.disabled.trigger, w = Ye.disabled.triggerText, m = (S = o.find((j) => j.value === c)) == null ? void 0 : S.status, B = ({
|
|
3808
3808
|
className: j,
|
|
3809
3809
|
text: k = ""
|
|
3810
3810
|
}) => /* @__PURE__ */ e(
|
|
@@ -3823,9 +3823,9 @@ const Jo = ({
|
|
|
3823
3823
|
var j;
|
|
3824
3824
|
(j = g.current) == null || j.scrollIntoView({ block: "center" });
|
|
3825
3825
|
}, 0);
|
|
3826
|
-
}, [a]), /* @__PURE__ */ u(
|
|
3826
|
+
}, [a]), /* @__PURE__ */ u(vt, { open: a, onOpenChange: h, children: [
|
|
3827
3827
|
/* @__PURE__ */ u(
|
|
3828
|
-
|
|
3828
|
+
st,
|
|
3829
3829
|
{
|
|
3830
3830
|
role: "listbox",
|
|
3831
3831
|
disabled: d,
|
|
@@ -3851,7 +3851,7 @@ const Jo = ({
|
|
|
3851
3851
|
}
|
|
3852
3852
|
),
|
|
3853
3853
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3854
|
-
|
|
3854
|
+
vr,
|
|
3855
3855
|
{
|
|
3856
3856
|
className: r(x.icon, a && "rotate-180"),
|
|
3857
3857
|
width: 16,
|
|
@@ -3863,13 +3863,13 @@ const Jo = ({
|
|
|
3863
3863
|
}
|
|
3864
3864
|
),
|
|
3865
3865
|
/* @__PURE__ */ e(
|
|
3866
|
-
|
|
3866
|
+
mt,
|
|
3867
3867
|
{
|
|
3868
3868
|
className: r(b.content, t == null ? void 0 : t.content),
|
|
3869
3869
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3870
3870
|
ref: l,
|
|
3871
3871
|
children: /* @__PURE__ */ e("div", { className: r(b.wrapper), children: !!o && (o == null ? void 0 : o.map((j) => /* @__PURE__ */ e(
|
|
3872
|
-
|
|
3872
|
+
$t,
|
|
3873
3873
|
{
|
|
3874
3874
|
ref: c === j.value ? g : null,
|
|
3875
3875
|
className: r(b.items),
|
|
@@ -3885,7 +3885,7 @@ const Jo = ({
|
|
|
3885
3885
|
] });
|
|
3886
3886
|
}
|
|
3887
3887
|
);
|
|
3888
|
-
|
|
3888
|
+
wr.displayName = "StatusSelect";
|
|
3889
3889
|
const Ye = {
|
|
3890
3890
|
base: {
|
|
3891
3891
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3913,24 +3913,24 @@ const Ye = {
|
|
|
3913
3913
|
items: "group rounded-[5px] cursor-pointer p-0",
|
|
3914
3914
|
itemsText: "flex items-center w-full mr-1.5 text-dark-30 text-xs font-normal py-1 px-3 rounded-[50px]"
|
|
3915
3915
|
}
|
|
3916
|
-
},
|
|
3916
|
+
}, ci = ({
|
|
3917
3917
|
classNames: t,
|
|
3918
3918
|
label: d,
|
|
3919
3919
|
selectProps: i,
|
|
3920
3920
|
...o
|
|
3921
|
-
}) => /* @__PURE__ */ u("div", { ...o, className: r(
|
|
3921
|
+
}) => /* @__PURE__ */ u("div", { ...o, className: r(ao.container, t == null ? void 0 : t.container), children: [
|
|
3922
3922
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
3923
|
-
/* @__PURE__ */ e(
|
|
3923
|
+
/* @__PURE__ */ e(P, { disabled: i == null ? void 0 : i.disabled, className: t == null ? void 0 : t.label, children: d }),
|
|
3924
3924
|
(i == null ? void 0 : i.status) === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3925
3925
|
] }),
|
|
3926
3926
|
/* @__PURE__ */ e(De, { ...i })
|
|
3927
|
-
] }),
|
|
3927
|
+
] }), ao = {
|
|
3928
3928
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3929
|
-
},
|
|
3929
|
+
}, ui = Q(
|
|
3930
3930
|
({
|
|
3931
3931
|
title: t,
|
|
3932
3932
|
file: d,
|
|
3933
|
-
|
|
3933
|
+
dateTime: i,
|
|
3934
3934
|
isDisabled: o = !1,
|
|
3935
3935
|
onDelete: n,
|
|
3936
3936
|
downloadUrl: c,
|
|
@@ -3955,7 +3955,7 @@ const Ye = {
|
|
|
3955
3955
|
/* @__PURE__ */ e("div", { className: U.circle[l] }),
|
|
3956
3956
|
/* @__PURE__ */ e(y, { "data-testid": "title", className: U.text, children: t })
|
|
3957
3957
|
] }),
|
|
3958
|
-
/* @__PURE__ */ e(y, { "data-testid": "date-and-time", className: U.dateAndTime, children:
|
|
3958
|
+
/* @__PURE__ */ e(y, { "data-testid": "date-and-time", className: U.dateAndTime, children: xt(i) })
|
|
3959
3959
|
] }),
|
|
3960
3960
|
/* @__PURE__ */ u("div", { className: U.fileContainer, children: [
|
|
3961
3961
|
/* @__PURE__ */ e("div", { className: U.iconContainer, children: d.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3967,7 +3967,7 @@ const Ye = {
|
|
|
3967
3967
|
width: 22,
|
|
3968
3968
|
height: 30
|
|
3969
3969
|
}
|
|
3970
|
-
) : /* @__PURE__ */ e(
|
|
3970
|
+
) : /* @__PURE__ */ e(rr, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3971
3971
|
/* @__PURE__ */ u("div", { className: "flex-grow", children: [
|
|
3972
3972
|
/* @__PURE__ */ e(
|
|
3973
3973
|
y,
|
|
@@ -4043,9 +4043,9 @@ const Ye = {
|
|
|
4043
4043
|
textDisabled: "text-dark-30/25 fill-dark-30/25 decoration-dark-30/25",
|
|
4044
4044
|
iconContainer: "mr-3 pt-1.5 h-full",
|
|
4045
4045
|
fileImg: " object-cover"
|
|
4046
|
-
},
|
|
4046
|
+
}, hi = ({
|
|
4047
4047
|
title: t,
|
|
4048
|
-
|
|
4048
|
+
dateTime: d,
|
|
4049
4049
|
onDelete: i,
|
|
4050
4050
|
onDownload: o,
|
|
4051
4051
|
onShow: n,
|
|
@@ -4055,14 +4055,14 @@ const Ye = {
|
|
|
4055
4055
|
lastStatusText: h = "Text",
|
|
4056
4056
|
price: p = "100 000 000 UZS",
|
|
4057
4057
|
classNames: f
|
|
4058
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
4059
|
-
/* @__PURE__ */ u("div", { className:
|
|
4058
|
+
}) => /* @__PURE__ */ u("div", { className: r(J.wrapper, f == null ? void 0 : f.wrapper), children: [
|
|
4059
|
+
/* @__PURE__ */ u("div", { className: J.dateContainer.base, children: [
|
|
4060
4060
|
/* @__PURE__ */ e(
|
|
4061
4061
|
"div",
|
|
4062
4062
|
{
|
|
4063
4063
|
"data-testid": "date-and-time",
|
|
4064
|
-
className:
|
|
4065
|
-
children:
|
|
4064
|
+
className: J.dateContainer.dateAndTime,
|
|
4065
|
+
children: xt(d)
|
|
4066
4066
|
}
|
|
4067
4067
|
),
|
|
4068
4068
|
/* @__PURE__ */ e(
|
|
@@ -4074,11 +4074,11 @@ const Ye = {
|
|
|
4074
4074
|
}
|
|
4075
4075
|
)
|
|
4076
4076
|
] }),
|
|
4077
|
-
/* @__PURE__ */ u("div", { className:
|
|
4078
|
-
/* @__PURE__ */ e(y, { "data-testid": "title", className:
|
|
4079
|
-
/* @__PURE__ */ e(y, { "data-testid": "price", className:
|
|
4077
|
+
/* @__PURE__ */ u("div", { className: J.titleContainer.base, children: [
|
|
4078
|
+
/* @__PURE__ */ e(y, { "data-testid": "title", className: J.titleContainer.title, children: t }),
|
|
4079
|
+
/* @__PURE__ */ e(y, { "data-testid": "price", className: J.titleContainer.price, children: p })
|
|
4080
4080
|
] }),
|
|
4081
|
-
/* @__PURE__ */ u("div", { className:
|
|
4081
|
+
/* @__PURE__ */ u("div", { className: J.buttonContainer.base, children: [
|
|
4082
4082
|
/* @__PURE__ */ e(
|
|
4083
4083
|
qe,
|
|
4084
4084
|
{
|
|
@@ -4087,18 +4087,18 @@ const Ye = {
|
|
|
4087
4087
|
className: f == null ? void 0 : f.status
|
|
4088
4088
|
}
|
|
4089
4089
|
),
|
|
4090
|
-
/* @__PURE__ */ u("div", { className:
|
|
4090
|
+
/* @__PURE__ */ u("div", { className: J.buttonContainer.button, children: [
|
|
4091
4091
|
/* @__PURE__ */ e(
|
|
4092
4092
|
O,
|
|
4093
4093
|
{
|
|
4094
4094
|
"data-testid": "download-button",
|
|
4095
4095
|
classNames: {
|
|
4096
|
-
base: r(
|
|
4097
|
-
icon:
|
|
4096
|
+
base: r(J.button.basic),
|
|
4097
|
+
icon: J.button.icon
|
|
4098
4098
|
},
|
|
4099
4099
|
onClick: o,
|
|
4100
4100
|
variant: "text",
|
|
4101
|
-
icon:
|
|
4101
|
+
icon: gr,
|
|
4102
4102
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4103
4103
|
}
|
|
4104
4104
|
),
|
|
@@ -4107,12 +4107,12 @@ const Ye = {
|
|
|
4107
4107
|
{
|
|
4108
4108
|
"data-testid": "show-button",
|
|
4109
4109
|
classNames: {
|
|
4110
|
-
base: r(
|
|
4111
|
-
icon:
|
|
4110
|
+
base: r(J.button.basic),
|
|
4111
|
+
icon: J.button.icon
|
|
4112
4112
|
},
|
|
4113
4113
|
onClick: n,
|
|
4114
4114
|
variant: "text",
|
|
4115
|
-
icon:
|
|
4115
|
+
icon: tn,
|
|
4116
4116
|
iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
|
|
4117
4117
|
}
|
|
4118
4118
|
),
|
|
@@ -4121,8 +4121,8 @@ const Ye = {
|
|
|
4121
4121
|
{
|
|
4122
4122
|
"data-testid": "delete-button",
|
|
4123
4123
|
classNames: {
|
|
4124
|
-
base: r(
|
|
4125
|
-
icon:
|
|
4124
|
+
base: r(J.button.basic),
|
|
4125
|
+
icon: J.button.icon
|
|
4126
4126
|
},
|
|
4127
4127
|
onClick: i,
|
|
4128
4128
|
variant: "text",
|
|
@@ -4132,7 +4132,7 @@ const Ye = {
|
|
|
4132
4132
|
)
|
|
4133
4133
|
] })
|
|
4134
4134
|
] })
|
|
4135
|
-
] }),
|
|
4135
|
+
] }), J = {
|
|
4136
4136
|
wrapper: "w-[371px] h-max border border-dark-30/[.15] px-[26px] py-[15px]",
|
|
4137
4137
|
dateContainer: {
|
|
4138
4138
|
base: "flex items-center justify-between w-full",
|
|
@@ -4151,7 +4151,7 @@ const Ye = {
|
|
|
4151
4151
|
basic: " p-0",
|
|
4152
4152
|
icon: "fill-dark-30/[.50]"
|
|
4153
4153
|
}
|
|
4154
|
-
},
|
|
4154
|
+
}, fi = ({
|
|
4155
4155
|
title: t,
|
|
4156
4156
|
options: d,
|
|
4157
4157
|
icon: i,
|
|
@@ -4208,7 +4208,7 @@ const Ye = {
|
|
|
4208
4208
|
link: "font-medium text-sm text-[#2AABEE] font-mono p-0 underline underline-offset-[3px] hover:text-[#2AABEE]",
|
|
4209
4209
|
headerIcon: "p-0 text-dark-10 font-semibold text-xl gap-1.5",
|
|
4210
4210
|
icon: "fill-dark-30"
|
|
4211
|
-
},
|
|
4211
|
+
}, xi = ({
|
|
4212
4212
|
title: t,
|
|
4213
4213
|
options: d,
|
|
4214
4214
|
classNames: i
|
|
@@ -4275,17 +4275,17 @@ const Ye = {
|
|
|
4275
4275
|
y,
|
|
4276
4276
|
{
|
|
4277
4277
|
"data-testid": "label",
|
|
4278
|
-
className: r(
|
|
4278
|
+
className: r(Zt.label, i == null ? void 0 : i.label),
|
|
4279
4279
|
...o,
|
|
4280
4280
|
children: [
|
|
4281
4281
|
d,
|
|
4282
|
-
/* @__PURE__ */ e("span", { "data-testid": "value", className: r(
|
|
4282
|
+
/* @__PURE__ */ e("span", { "data-testid": "value", className: r(Zt.value, i == null ? void 0 : i.value), children: t })
|
|
4283
4283
|
]
|
|
4284
4284
|
}
|
|
4285
|
-
),
|
|
4285
|
+
), Zt = {
|
|
4286
4286
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4287
4287
|
value: "text-sm text-dark-30 font-semibold"
|
|
4288
|
-
},
|
|
4288
|
+
}, lo = Q(
|
|
4289
4289
|
({
|
|
4290
4290
|
classNames: t,
|
|
4291
4291
|
disabled: d,
|
|
@@ -4300,37 +4300,37 @@ const Ye = {
|
|
|
4300
4300
|
options: f = []
|
|
4301
4301
|
}, g) => {
|
|
4302
4302
|
var xe;
|
|
4303
|
-
const [x, b] =
|
|
4304
|
-
const
|
|
4305
|
-
|
|
4306
|
-
}, C = (
|
|
4307
|
-
|
|
4308
|
-
const W = f.find((H) => H.value ===
|
|
4303
|
+
const [x, b] = A(!1), [s, w] = A(a || ""), [m, B] = A(""), [S, j] = A(null), k = oe(null), v = () => {
|
|
4304
|
+
const M = m.trim();
|
|
4305
|
+
M && (S && c ? (c(M, S), j(null)) : n(M), B(""));
|
|
4306
|
+
}, C = (M, K) => {
|
|
4307
|
+
K.stopPropagation(), j(M);
|
|
4308
|
+
const W = f.find((H) => H.value === M);
|
|
4309
4309
|
W && B(W.label);
|
|
4310
|
-
}, D = (
|
|
4311
|
-
|
|
4310
|
+
}, D = (M, K) => {
|
|
4311
|
+
K.stopPropagation(), o(M), s === M && w("");
|
|
4312
4312
|
}, T = () => {
|
|
4313
4313
|
B(""), j(null);
|
|
4314
4314
|
}, I = () => {
|
|
4315
4315
|
b(!1), T();
|
|
4316
4316
|
}, F = () => {
|
|
4317
4317
|
i(s), b(!1), T();
|
|
4318
|
-
},
|
|
4319
|
-
b(
|
|
4320
|
-
}, ie = a ? ((xe = f.find((
|
|
4321
|
-
return /* @__PURE__ */ u("div", { className:
|
|
4322
|
-
h && /* @__PURE__ */ e(
|
|
4323
|
-
/* @__PURE__ */ u(ae, { open: x, onOpenChange:
|
|
4318
|
+
}, V = (M) => {
|
|
4319
|
+
b(M), M || T();
|
|
4320
|
+
}, ie = a ? ((xe = f.find((M) => M.value === a)) == null ? void 0 : xe.label) || a : "", ce = ie ? E.base.selected : E.base.placeholder;
|
|
4321
|
+
return /* @__PURE__ */ u("div", { className: E.container, children: [
|
|
4322
|
+
h && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: d, children: h }),
|
|
4323
|
+
/* @__PURE__ */ u(ae, { open: x, onOpenChange: V, children: [
|
|
4324
4324
|
/* @__PURE__ */ u(
|
|
4325
4325
|
le,
|
|
4326
4326
|
{
|
|
4327
4327
|
role: "listbox",
|
|
4328
4328
|
disabled: d,
|
|
4329
4329
|
className: r(
|
|
4330
|
-
|
|
4331
|
-
d &&
|
|
4332
|
-
x &&
|
|
4333
|
-
!x && !d &&
|
|
4330
|
+
E.base.trigger,
|
|
4331
|
+
d && E.disabled.trigger,
|
|
4332
|
+
x && E.base.focus,
|
|
4333
|
+
!x && !d && E.base.hover,
|
|
4334
4334
|
t == null ? void 0 : t.trigger
|
|
4335
4335
|
),
|
|
4336
4336
|
children: [
|
|
@@ -4338,8 +4338,8 @@ const Ye = {
|
|
|
4338
4338
|
y,
|
|
4339
4339
|
{
|
|
4340
4340
|
className: r(
|
|
4341
|
-
|
|
4342
|
-
d &&
|
|
4341
|
+
E.base.text,
|
|
4342
|
+
d && E.disabled.triggerText,
|
|
4343
4343
|
t == null ? void 0 : t[ie ? "selected" : "placeholder"],
|
|
4344
4344
|
ce
|
|
4345
4345
|
),
|
|
@@ -4353,8 +4353,8 @@ const Ye = {
|
|
|
4353
4353
|
height: 20,
|
|
4354
4354
|
viewBox: "0 0 20 20",
|
|
4355
4355
|
className: r(
|
|
4356
|
-
|
|
4357
|
-
d &&
|
|
4356
|
+
E.base.icon,
|
|
4357
|
+
d && E.base.iconDisabled,
|
|
4358
4358
|
x && "-rotate-180"
|
|
4359
4359
|
)
|
|
4360
4360
|
}
|
|
@@ -4366,51 +4366,51 @@ const Ye = {
|
|
|
4366
4366
|
pe,
|
|
4367
4367
|
{
|
|
4368
4368
|
container: k.current,
|
|
4369
|
-
className: r(
|
|
4369
|
+
className: r(E.options.content, t == null ? void 0 : t.content),
|
|
4370
4370
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4371
4371
|
ref: g,
|
|
4372
4372
|
children: [
|
|
4373
|
-
p && /* @__PURE__ */ e(y, { className: r(
|
|
4373
|
+
p && /* @__PURE__ */ e(y, { className: r(E.options.label), children: p }),
|
|
4374
4374
|
/* @__PURE__ */ e(
|
|
4375
|
-
|
|
4375
|
+
zt,
|
|
4376
4376
|
{
|
|
4377
4377
|
inputProps: {
|
|
4378
4378
|
id: "select-list",
|
|
4379
4379
|
classNames: { target: "px-3 py-[9px]" },
|
|
4380
4380
|
placeholder: S && p ? `Редактировать ${p}` : p || "",
|
|
4381
4381
|
value: m,
|
|
4382
|
-
onChange: (
|
|
4382
|
+
onChange: (M) => B(M.target.value)
|
|
4383
4383
|
},
|
|
4384
|
-
icon:
|
|
4384
|
+
icon: ar,
|
|
4385
4385
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4386
4386
|
iconPosition: "right",
|
|
4387
4387
|
onIconClick: v
|
|
4388
4388
|
}
|
|
4389
4389
|
),
|
|
4390
|
-
/* @__PURE__ */ e("div", { className:
|
|
4391
|
-
const
|
|
4390
|
+
/* @__PURE__ */ e("div", { className: E.options.optionsWrapper, children: f.map((M) => {
|
|
4391
|
+
const K = S === M.value, W = s === M.value;
|
|
4392
4392
|
return /* @__PURE__ */ u(
|
|
4393
4393
|
"div",
|
|
4394
4394
|
{
|
|
4395
4395
|
className: r(
|
|
4396
|
-
|
|
4397
|
-
|
|
4396
|
+
E.options.items,
|
|
4397
|
+
K && "opacity-50"
|
|
4398
4398
|
),
|
|
4399
4399
|
onClick: (H) => {
|
|
4400
|
-
H.stopPropagation(), H.preventDefault(),
|
|
4400
|
+
H.stopPropagation(), H.preventDefault(), K || w(M.value);
|
|
4401
4401
|
},
|
|
4402
4402
|
children: [
|
|
4403
4403
|
/* @__PURE__ */ u(
|
|
4404
4404
|
y,
|
|
4405
4405
|
{
|
|
4406
4406
|
className: r(
|
|
4407
|
-
|
|
4408
|
-
|
|
4407
|
+
E.options.itemsText,
|
|
4408
|
+
E.options.dot,
|
|
4409
4409
|
W && "before:bg-dark-10"
|
|
4410
4410
|
),
|
|
4411
4411
|
children: [
|
|
4412
|
-
|
|
4413
|
-
|
|
4412
|
+
M.label,
|
|
4413
|
+
K && " (редактируется...)"
|
|
4414
4414
|
]
|
|
4415
4415
|
}
|
|
4416
4416
|
),
|
|
@@ -4419,18 +4419,18 @@ const Ye = {
|
|
|
4419
4419
|
O,
|
|
4420
4420
|
{
|
|
4421
4421
|
variant: "text",
|
|
4422
|
-
icon:
|
|
4422
|
+
icon: Rt,
|
|
4423
4423
|
classNames: {
|
|
4424
4424
|
base: "p-0",
|
|
4425
4425
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4426
4426
|
},
|
|
4427
|
-
onClick: (H) => C(
|
|
4427
|
+
onClick: (H) => C(M.value, H),
|
|
4428
4428
|
iconDimensions: {
|
|
4429
4429
|
height: 20,
|
|
4430
4430
|
width: 20,
|
|
4431
4431
|
viewBox: "0 0 31 31"
|
|
4432
4432
|
},
|
|
4433
|
-
disabled:
|
|
4433
|
+
disabled: K
|
|
4434
4434
|
}
|
|
4435
4435
|
),
|
|
4436
4436
|
/* @__PURE__ */ e(
|
|
@@ -4442,28 +4442,28 @@ const Ye = {
|
|
|
4442
4442
|
base: "p-0",
|
|
4443
4443
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4444
4444
|
},
|
|
4445
|
-
onClick: (H) => D(
|
|
4445
|
+
onClick: (H) => D(M.value, H),
|
|
4446
4446
|
iconDimensions: {
|
|
4447
4447
|
height: 20,
|
|
4448
4448
|
width: 20,
|
|
4449
4449
|
viewBox: "0 0 30 30"
|
|
4450
4450
|
},
|
|
4451
|
-
disabled:
|
|
4451
|
+
disabled: K
|
|
4452
4452
|
}
|
|
4453
4453
|
)
|
|
4454
4454
|
] })
|
|
4455
4455
|
]
|
|
4456
4456
|
},
|
|
4457
|
-
|
|
4457
|
+
M.value
|
|
4458
4458
|
);
|
|
4459
4459
|
}) }),
|
|
4460
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
4460
|
+
/* @__PURE__ */ u("div", { className: r(E.options.primaryActionsWrapper), children: [
|
|
4461
4461
|
/* @__PURE__ */ e(
|
|
4462
4462
|
O,
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "button",
|
|
4465
4465
|
variant: "secondary",
|
|
4466
|
-
className: r(
|
|
4466
|
+
className: r(E.options.primaryActionCancel),
|
|
4467
4467
|
onClick: I,
|
|
4468
4468
|
children: "Отмена"
|
|
4469
4469
|
}
|
|
@@ -4473,7 +4473,7 @@ const Ye = {
|
|
|
4473
4473
|
{
|
|
4474
4474
|
type: "button",
|
|
4475
4475
|
variant: "primary",
|
|
4476
|
-
className: r(
|
|
4476
|
+
className: r(E.options.primaryActionApply),
|
|
4477
4477
|
isShadow: !0,
|
|
4478
4478
|
onClick: F,
|
|
4479
4479
|
children: "Сохранить"
|
|
@@ -4487,8 +4487,8 @@ const Ye = {
|
|
|
4487
4487
|
] });
|
|
4488
4488
|
}
|
|
4489
4489
|
);
|
|
4490
|
-
|
|
4491
|
-
const
|
|
4490
|
+
lo.displayName = "SelectList";
|
|
4491
|
+
const E = {
|
|
4492
4492
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4493
4493
|
base: {
|
|
4494
4494
|
icon: "ml-auto fill-sidebar-30/[.70] rounded hover:cursor-pointer transition-transform durantion-300",
|
|
@@ -4518,7 +4518,7 @@ const G = {
|
|
|
4518
4518
|
primaryActionCancel: "text-sm font-semibold text-dark-30 font-mono cursor-pointer border border-dark-30/[.25] px-4 py-3 rounded-[10px]",
|
|
4519
4519
|
primaryActionApply: "text-sm font-semibold bg-primary-10 text-sidebar-10 font-mono cursor-pointer px-4 py-3 rounded-[10px]"
|
|
4520
4520
|
}
|
|
4521
|
-
},
|
|
4521
|
+
}, po = ({
|
|
4522
4522
|
classNames: t,
|
|
4523
4523
|
isActive: d,
|
|
4524
4524
|
item: { icon: i, label: o = "" },
|
|
@@ -4527,9 +4527,9 @@ const G = {
|
|
|
4527
4527
|
"div",
|
|
4528
4528
|
{
|
|
4529
4529
|
className: r(
|
|
4530
|
-
|
|
4530
|
+
Ae.base.container,
|
|
4531
4531
|
{
|
|
4532
|
-
[
|
|
4532
|
+
[Ae.active.container]: d
|
|
4533
4533
|
},
|
|
4534
4534
|
t == null ? void 0 : t.container
|
|
4535
4535
|
),
|
|
@@ -4540,9 +4540,9 @@ const G = {
|
|
|
4540
4540
|
i,
|
|
4541
4541
|
{
|
|
4542
4542
|
className: r(
|
|
4543
|
-
|
|
4543
|
+
Ae.base.icon,
|
|
4544
4544
|
{
|
|
4545
|
-
[
|
|
4545
|
+
[Ae.active.icon]: d
|
|
4546
4546
|
},
|
|
4547
4547
|
t == null ? void 0 : t.icon
|
|
4548
4548
|
)
|
|
@@ -4552,9 +4552,9 @@ const G = {
|
|
|
4552
4552
|
y,
|
|
4553
4553
|
{
|
|
4554
4554
|
className: r(
|
|
4555
|
-
|
|
4555
|
+
Ae.base.label,
|
|
4556
4556
|
{
|
|
4557
|
-
[
|
|
4557
|
+
[Ae.active.label]: d
|
|
4558
4558
|
},
|
|
4559
4559
|
t == null ? void 0 : t.label
|
|
4560
4560
|
),
|
|
@@ -4563,7 +4563,7 @@ const G = {
|
|
|
4563
4563
|
)
|
|
4564
4564
|
]
|
|
4565
4565
|
}
|
|
4566
|
-
),
|
|
4566
|
+
), Ae = {
|
|
4567
4567
|
active: {
|
|
4568
4568
|
container: "bg-sidebar-20",
|
|
4569
4569
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10",
|
|
@@ -4574,7 +4574,7 @@ const G = {
|
|
|
4574
4574
|
icon: "fill-dark-40/[.80] group-hover:fill-primary-10",
|
|
4575
4575
|
label: "max-w-[55px] text-xs text-center text-dark-40/[.80] font-semibold truncate group-hover:text-primary-10"
|
|
4576
4576
|
}
|
|
4577
|
-
},
|
|
4577
|
+
}, bi = ({
|
|
4578
4578
|
tabs: t = [],
|
|
4579
4579
|
activeTabId: d,
|
|
4580
4580
|
popoverOptions: i = [],
|
|
@@ -4605,7 +4605,7 @@ const G = {
|
|
|
4605
4605
|
base: "items-center justify-center h-[60px]",
|
|
4606
4606
|
icon: "fill-dark-40/[.80] hover:fill-primary-10"
|
|
4607
4607
|
},
|
|
4608
|
-
icon:
|
|
4608
|
+
icon: xn
|
|
4609
4609
|
}
|
|
4610
4610
|
) }),
|
|
4611
4611
|
/* @__PURE__ */ e(
|
|
@@ -4618,7 +4618,7 @@ const G = {
|
|
|
4618
4618
|
children: i.map((f) => {
|
|
4619
4619
|
const g = o === f.value;
|
|
4620
4620
|
return /* @__PURE__ */ u(
|
|
4621
|
-
|
|
4621
|
+
P,
|
|
4622
4622
|
{
|
|
4623
4623
|
htmlFor: `popover-radio-${f.value}`,
|
|
4624
4624
|
className: r(Ee.popoverItem, n == null ? void 0 : n.popoverItem),
|
|
@@ -4627,7 +4627,7 @@ const G = {
|
|
|
4627
4627
|
},
|
|
4628
4628
|
children: [
|
|
4629
4629
|
/* @__PURE__ */ e(
|
|
4630
|
-
|
|
4630
|
+
ir,
|
|
4631
4631
|
{
|
|
4632
4632
|
id: `popover-radio-${f.value}`,
|
|
4633
4633
|
checked: g,
|
|
@@ -4654,7 +4654,7 @@ const G = {
|
|
|
4654
4654
|
)
|
|
4655
4655
|
] }),
|
|
4656
4656
|
/* @__PURE__ */ e("div", { className: r(Ee.body, n == null ? void 0 : n.body), children: t.map((f) => /* @__PURE__ */ e(
|
|
4657
|
-
|
|
4657
|
+
po,
|
|
4658
4658
|
{
|
|
4659
4659
|
item: f,
|
|
4660
4660
|
isActive: d === f.value,
|
|
@@ -4665,7 +4665,7 @@ const G = {
|
|
|
4665
4665
|
/* @__PURE__ */ e("div", { className: r(Ee.actions, n == null ? void 0 : n.actions), children: a == null ? void 0 : a.map((f) => {
|
|
4666
4666
|
var g, x;
|
|
4667
4667
|
return /* @__PURE__ */ e(
|
|
4668
|
-
|
|
4668
|
+
Mt,
|
|
4669
4669
|
{
|
|
4670
4670
|
icon: f.icon,
|
|
4671
4671
|
shape: "circle",
|
|
@@ -4693,20 +4693,20 @@ const G = {
|
|
|
4693
4693
|
popover: "flex flex-col gap-2 p-1 w-auto",
|
|
4694
4694
|
popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
|
|
4695
4695
|
actions: "flex flex-col mt-auto gap-5 mb-5"
|
|
4696
|
-
},
|
|
4696
|
+
}, gi = ({
|
|
4697
4697
|
chats: t,
|
|
4698
4698
|
onSelectChat: d,
|
|
4699
4699
|
classNames: i
|
|
4700
4700
|
}) => {
|
|
4701
|
-
const [o, n] =
|
|
4701
|
+
const [o, n] = A(null), [c, l] = A(""), a = (p) => {
|
|
4702
4702
|
n(p), d == null || d(p);
|
|
4703
4703
|
}, h = ht(() => {
|
|
4704
4704
|
const p = c.trim().toLowerCase();
|
|
4705
4705
|
return p ? t.filter((f) => f.fullname.toLowerCase().includes(p)) : t;
|
|
4706
4706
|
}, [t, c]);
|
|
4707
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
4707
|
+
return /* @__PURE__ */ u("div", { className: r(Qt.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
4708
4708
|
/* @__PURE__ */ e(
|
|
4709
|
-
|
|
4709
|
+
Mn,
|
|
4710
4710
|
{
|
|
4711
4711
|
value: c,
|
|
4712
4712
|
onChange: (p) => l(p.target.value),
|
|
@@ -4718,8 +4718,8 @@ const G = {
|
|
|
4718
4718
|
isSearchIcon: !1
|
|
4719
4719
|
}
|
|
4720
4720
|
),
|
|
4721
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
4722
|
-
|
|
4721
|
+
/* @__PURE__ */ e("div", { className: r(Qt.list, i == null ? void 0 : i.list), children: h.map((p) => /* @__PURE__ */ e(
|
|
4722
|
+
Xn,
|
|
4723
4723
|
{
|
|
4724
4724
|
onClick: () => a(p.value),
|
|
4725
4725
|
photo: p.photo,
|
|
@@ -4733,10 +4733,10 @@ const G = {
|
|
|
4733
4733
|
p.value
|
|
4734
4734
|
)) })
|
|
4735
4735
|
] });
|
|
4736
|
-
},
|
|
4736
|
+
}, Qt = {
|
|
4737
4737
|
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",
|
|
4738
4738
|
list: "overflow-y-auto w-full h-full mt-2"
|
|
4739
|
-
},
|
|
4739
|
+
}, vi = ({
|
|
4740
4740
|
currentUserId: t,
|
|
4741
4741
|
senderId: d,
|
|
4742
4742
|
senderName: i,
|
|
@@ -4752,7 +4752,7 @@ const G = {
|
|
|
4752
4752
|
const g = t === d;
|
|
4753
4753
|
return /* @__PURE__ */ u("div", { className: r(at.root, p == null ? void 0 : p.root), children: [
|
|
4754
4754
|
c && !g && /* @__PURE__ */ e(
|
|
4755
|
-
|
|
4755
|
+
nr,
|
|
4756
4756
|
{
|
|
4757
4757
|
imageSrc: n == null ? void 0 : n.url,
|
|
4758
4758
|
alt: n == null ? void 0 : n.alt,
|
|
@@ -4773,11 +4773,11 @@ const G = {
|
|
|
4773
4773
|
className: r(at.item, p == null ? void 0 : p.item),
|
|
4774
4774
|
children: [
|
|
4775
4775
|
/* @__PURE__ */ e(
|
|
4776
|
-
|
|
4776
|
+
co,
|
|
4777
4777
|
{
|
|
4778
4778
|
isMine: g,
|
|
4779
4779
|
trigger: /* @__PURE__ */ e(
|
|
4780
|
-
|
|
4780
|
+
Cr,
|
|
4781
4781
|
{
|
|
4782
4782
|
id: x.id,
|
|
4783
4783
|
text: x.text,
|
|
@@ -4833,7 +4833,7 @@ const G = {
|
|
|
4833
4833
|
list: "w-full flex flex-col-reverse items-start gap-2.5",
|
|
4834
4834
|
item: "flex items-end gap-4",
|
|
4835
4835
|
selection: "flex items-center justify-center size-7 rounded-full bg-dark-30/[.08]"
|
|
4836
|
-
},
|
|
4836
|
+
}, si = ({
|
|
4837
4837
|
messagesCount: t,
|
|
4838
4838
|
open: d,
|
|
4839
4839
|
onDelete: i,
|
|
@@ -4854,7 +4854,7 @@ const G = {
|
|
|
4854
4854
|
),
|
|
4855
4855
|
children: [
|
|
4856
4856
|
/* @__PURE__ */ e(
|
|
4857
|
-
|
|
4857
|
+
Mt,
|
|
4858
4858
|
{
|
|
4859
4859
|
icon: Ke,
|
|
4860
4860
|
shape: "circle",
|
|
@@ -4906,10 +4906,10 @@ const G = {
|
|
|
4906
4906
|
icon: "fill-danger-10"
|
|
4907
4907
|
},
|
|
4908
4908
|
amount: "ms-5 me-9"
|
|
4909
|
-
},
|
|
4909
|
+
}, Xt = [
|
|
4910
4910
|
{
|
|
4911
4911
|
id: "download",
|
|
4912
|
-
icon:
|
|
4912
|
+
icon: Mr,
|
|
4913
4913
|
iconSizes: {
|
|
4914
4914
|
width: 20,
|
|
4915
4915
|
height: 20,
|
|
@@ -4919,7 +4919,7 @@ const G = {
|
|
|
4919
4919
|
},
|
|
4920
4920
|
{
|
|
4921
4921
|
id: "edit",
|
|
4922
|
-
icon:
|
|
4922
|
+
icon: Rt,
|
|
4923
4923
|
iconSizes: {
|
|
4924
4924
|
width: 20,
|
|
4925
4925
|
height: 20,
|
|
@@ -4929,7 +4929,7 @@ const G = {
|
|
|
4929
4929
|
},
|
|
4930
4930
|
{
|
|
4931
4931
|
id: "response",
|
|
4932
|
-
icon:
|
|
4932
|
+
icon: bn,
|
|
4933
4933
|
iconSizes: {
|
|
4934
4934
|
width: 20,
|
|
4935
4935
|
height: 20
|
|
@@ -4938,7 +4938,7 @@ const G = {
|
|
|
4938
4938
|
},
|
|
4939
4939
|
{
|
|
4940
4940
|
id: "copy",
|
|
4941
|
-
icon:
|
|
4941
|
+
icon: gn,
|
|
4942
4942
|
iconSizes: {
|
|
4943
4943
|
width: 20,
|
|
4944
4944
|
height: 20
|
|
@@ -4947,7 +4947,7 @@ const G = {
|
|
|
4947
4947
|
},
|
|
4948
4948
|
{
|
|
4949
4949
|
id: "select",
|
|
4950
|
-
icon:
|
|
4950
|
+
icon: vn,
|
|
4951
4951
|
iconSizes: {
|
|
4952
4952
|
width: 20,
|
|
4953
4953
|
height: 20
|
|
@@ -4965,16 +4965,16 @@ const G = {
|
|
|
4965
4965
|
isDanger: !0,
|
|
4966
4966
|
text: "Удалить"
|
|
4967
4967
|
}
|
|
4968
|
-
],
|
|
4968
|
+
], co = ({
|
|
4969
4969
|
trigger: t,
|
|
4970
4970
|
onClick: d,
|
|
4971
4971
|
isMine: i = !1
|
|
4972
4972
|
}) => {
|
|
4973
|
-
const [o, n] =
|
|
4973
|
+
const [o, n] = A(!1), c = (x) => {
|
|
4974
4974
|
x.preventDefault(), n(!0);
|
|
4975
4975
|
}, l = (x) => {
|
|
4976
4976
|
d(x), n(!1);
|
|
4977
|
-
}, { icon: a, base: h } =
|
|
4977
|
+
}, { icon: a, base: h } = It.button.normal, { icon: p, base: f } = It.button.danger, g = i ? Xt : Xt.filter((x) => x.id !== "edit");
|
|
4978
4978
|
return /* @__PURE__ */ u(ae, { open: o, onOpenChange: n, children: [
|
|
4979
4979
|
/* @__PURE__ */ e(le, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4980
4980
|
"div",
|
|
@@ -4990,7 +4990,7 @@ const G = {
|
|
|
4990
4990
|
align: "center",
|
|
4991
4991
|
sideOffset: 4,
|
|
4992
4992
|
side: "top",
|
|
4993
|
-
className:
|
|
4993
|
+
className: It.wrapper,
|
|
4994
4994
|
children: g.map(({ id: x, icon: b, iconSizes: s, isDanger: w, text: m }) => /* @__PURE__ */ e(
|
|
4995
4995
|
O,
|
|
4996
4996
|
{
|
|
@@ -5011,7 +5011,7 @@ const G = {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
)
|
|
5013
5013
|
] });
|
|
5014
|
-
},
|
|
5014
|
+
}, It = {
|
|
5015
5015
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
5016
5016
|
button: {
|
|
5017
5017
|
normal: {
|
|
@@ -5023,10 +5023,10 @@ const G = {
|
|
|
5023
5023
|
base: "text-danger-10 hover:text-danger-20 p-0 active:text-danger-30 justify-start text-base"
|
|
5024
5024
|
}
|
|
5025
5025
|
}
|
|
5026
|
-
},
|
|
5027
|
-
const d =
|
|
5028
|
-
return /* @__PURE__ */ e("div", { className:
|
|
5029
|
-
|
|
5026
|
+
}, mi = ({ tabs: t }) => {
|
|
5027
|
+
const d = dr();
|
|
5028
|
+
return /* @__PURE__ */ e("div", { className: uo.wrapper, "data-testid": "tab-list", children: t.map(({ id: i, icon: o, label: n, isActive: c, href: l }) => /* @__PURE__ */ e(
|
|
5029
|
+
Hr,
|
|
5030
5030
|
{
|
|
5031
5031
|
icon: o,
|
|
5032
5032
|
active: c,
|
|
@@ -5036,9 +5036,9 @@ const G = {
|
|
|
5036
5036
|
},
|
|
5037
5037
|
i
|
|
5038
5038
|
)) });
|
|
5039
|
-
},
|
|
5039
|
+
}, uo = {
|
|
5040
5040
|
wrapper: "flex items-center mt-4 mb-6 gap-2"
|
|
5041
|
-
},
|
|
5041
|
+
}, wi = ({
|
|
5042
5042
|
options: t = [],
|
|
5043
5043
|
value: d,
|
|
5044
5044
|
placeholder: i,
|
|
@@ -5048,7 +5048,7 @@ const G = {
|
|
|
5048
5048
|
onEdit: l,
|
|
5049
5049
|
onDelete: a
|
|
5050
5050
|
}) => {
|
|
5051
|
-
const [h, p] =
|
|
5051
|
+
const [h, p] = A(!1), f = t == null ? void 0 : t.find((x) => x.id === d), g = (x, b) => {
|
|
5052
5052
|
x.stopPropagation(), n(b), p(!1);
|
|
5053
5053
|
};
|
|
5054
5054
|
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ u(ae, { open: h, onOpenChange: p, children: [
|
|
@@ -5064,7 +5064,7 @@ const G = {
|
|
|
5064
5064
|
),
|
|
5065
5065
|
children: [
|
|
5066
5066
|
d ? f == null ? void 0 : f.name.ru : i,
|
|
5067
|
-
/* @__PURE__ */ e(
|
|
5067
|
+
/* @__PURE__ */ e(vr, { className: r(he.icon, h && "-rotate-180") })
|
|
5068
5068
|
]
|
|
5069
5069
|
}
|
|
5070
5070
|
),
|
|
@@ -5092,7 +5092,7 @@ const G = {
|
|
|
5092
5092
|
s.stopPropagation(), l(b);
|
|
5093
5093
|
},
|
|
5094
5094
|
children: /* @__PURE__ */ e(
|
|
5095
|
-
|
|
5095
|
+
Rt,
|
|
5096
5096
|
{
|
|
5097
5097
|
width: 20,
|
|
5098
5098
|
height: 20,
|
|
@@ -5128,7 +5128,7 @@ const G = {
|
|
|
5128
5128
|
O,
|
|
5129
5129
|
{
|
|
5130
5130
|
variant: "text",
|
|
5131
|
-
icon:
|
|
5131
|
+
icon: ar,
|
|
5132
5132
|
iconPosition: "left",
|
|
5133
5133
|
iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
|
|
5134
5134
|
size: "medium",
|
|
@@ -5152,7 +5152,7 @@ const G = {
|
|
|
5152
5152
|
item: "flex items-center justify-between cursor-pointer",
|
|
5153
5153
|
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',
|
|
5154
5154
|
actions: "flex gap-2"
|
|
5155
|
-
},
|
|
5155
|
+
}, ho = {
|
|
5156
5156
|
pie: {
|
|
5157
5157
|
radius: ["0%", "90%"],
|
|
5158
5158
|
legendPosition: { orient: "vertical", left: 0, bottom: "10%" },
|
|
@@ -5163,12 +5163,12 @@ const G = {
|
|
|
5163
5163
|
legendPosition: { orient: "vertical", left: "55%", top: "5%" },
|
|
5164
5164
|
chartCenter: ["25%", "50%"]
|
|
5165
5165
|
}
|
|
5166
|
-
},
|
|
5166
|
+
}, fo = ({
|
|
5167
5167
|
chartMode: t = "pie",
|
|
5168
5168
|
colors: d,
|
|
5169
5169
|
items: i
|
|
5170
5170
|
}) => {
|
|
5171
|
-
const { radius: o, legendPosition: n, chartCenter: c } =
|
|
5171
|
+
const { radius: o, legendPosition: n, chartCenter: c } = ho[t], l = i.every(({ value: p }) => !p), a = l ? [Ze.gray[30]] : d, h = l ? [{ value: 1, name: "пусто" }] : i;
|
|
5172
5172
|
return {
|
|
5173
5173
|
color: a,
|
|
5174
5174
|
tooltip: {
|
|
@@ -5215,7 +5215,7 @@ const G = {
|
|
|
5215
5215
|
}
|
|
5216
5216
|
]
|
|
5217
5217
|
};
|
|
5218
|
-
},
|
|
5218
|
+
}, yi = Q(
|
|
5219
5219
|
({
|
|
5220
5220
|
chartMode: t = "doughtnut",
|
|
5221
5221
|
mode: d = "chart",
|
|
@@ -5233,39 +5233,39 @@ const G = {
|
|
|
5233
5233
|
{ value: n.free, name: "Свободно" }
|
|
5234
5234
|
];
|
|
5235
5235
|
n.blocked !== void 0 && p.push({ value: n.blocked, name: "Заблокировано" });
|
|
5236
|
-
const f = d === "chart" ?
|
|
5236
|
+
const f = d === "chart" ? fo({ chartMode: t, colors: c, items: p }) : void 0;
|
|
5237
5237
|
return /* @__PURE__ */ u(
|
|
5238
5238
|
"div",
|
|
5239
5239
|
{
|
|
5240
|
-
className: r(
|
|
5240
|
+
className: r(Z.root, l == null ? void 0 : l.root),
|
|
5241
5241
|
"data-testid": "chart-container",
|
|
5242
5242
|
ref: h,
|
|
5243
5243
|
...a,
|
|
5244
5244
|
children: [
|
|
5245
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5245
|
+
/* @__PURE__ */ u("div", { className: r(Z.header, l == null ? void 0 : l.header), children: [
|
|
5246
5246
|
/* @__PURE__ */ e(
|
|
5247
5247
|
Qe,
|
|
5248
5248
|
{
|
|
5249
5249
|
title: i,
|
|
5250
5250
|
icon: o,
|
|
5251
|
-
classNames: { title:
|
|
5251
|
+
classNames: { title: Z.title, wrapper: "items-center" }
|
|
5252
5252
|
}
|
|
5253
5253
|
),
|
|
5254
5254
|
/* @__PURE__ */ e(
|
|
5255
5255
|
Pe,
|
|
5256
5256
|
{
|
|
5257
5257
|
to: "/analytics-reporting",
|
|
5258
|
-
className: r(
|
|
5258
|
+
className: r(Z.link, l == null ? void 0 : l.link),
|
|
5259
5259
|
children: "Подробнее"
|
|
5260
5260
|
}
|
|
5261
5261
|
)
|
|
5262
5262
|
] }),
|
|
5263
|
-
/* @__PURE__ */ e(y, { className: r(
|
|
5264
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5265
|
-
/* @__PURE__ */ e(y, { className: r(
|
|
5266
|
-
!!n.growth && /* @__PURE__ */ u("div", { className: r(
|
|
5263
|
+
/* @__PURE__ */ e(y, { className: r(Z.totalText, l == null ? void 0 : l.totalText), children: "Общее количество" }),
|
|
5264
|
+
/* @__PURE__ */ u("div", { className: r(Z.block, l == null ? void 0 : l.block), children: [
|
|
5265
|
+
/* @__PURE__ */ e(y, { className: r(Z.total, l == null ? void 0 : l.total), children: n.total }),
|
|
5266
|
+
!!n.growth && /* @__PURE__ */ u("div", { className: r(Z.badge, l == null ? void 0 : l.badge), children: [
|
|
5267
5267
|
/* @__PURE__ */ e(
|
|
5268
|
-
|
|
5268
|
+
_t,
|
|
5269
5269
|
{
|
|
5270
5270
|
width: 7,
|
|
5271
5271
|
height: 7,
|
|
@@ -5277,7 +5277,7 @@ const G = {
|
|
|
5277
5277
|
y,
|
|
5278
5278
|
{
|
|
5279
5279
|
variant: "span",
|
|
5280
|
-
className: r(
|
|
5280
|
+
className: r(Z.percent, l == null ? void 0 : l.percent),
|
|
5281
5281
|
children: [
|
|
5282
5282
|
n.growth,
|
|
5283
5283
|
"%"
|
|
@@ -5287,18 +5287,18 @@ const G = {
|
|
|
5287
5287
|
] })
|
|
5288
5288
|
] }),
|
|
5289
5289
|
d === "chart" && /* @__PURE__ */ e(
|
|
5290
|
-
|
|
5290
|
+
wt,
|
|
5291
5291
|
{
|
|
5292
|
-
echarts:
|
|
5292
|
+
echarts: yt,
|
|
5293
5293
|
option: f,
|
|
5294
5294
|
style: { height: 250 }
|
|
5295
5295
|
}
|
|
5296
5296
|
),
|
|
5297
|
-
d === "progress" && /* @__PURE__ */ u("div", { className: r(
|
|
5297
|
+
d === "progress" && /* @__PURE__ */ u("div", { className: r(Z.progress.root, (g = l == null ? void 0 : l.progress) == null ? void 0 : g.root), children: [
|
|
5298
5298
|
/* @__PURE__ */ e(
|
|
5299
5299
|
"div",
|
|
5300
5300
|
{
|
|
5301
|
-
className: r(
|
|
5301
|
+
className: r(Z.progress.line, (x = l == null ? void 0 : l.progress) == null ? void 0 : x.line)
|
|
5302
5302
|
}
|
|
5303
5303
|
),
|
|
5304
5304
|
p.map(({ name: b, value: s }, w) => {
|
|
@@ -5306,27 +5306,27 @@ const G = {
|
|
|
5306
5306
|
return /* @__PURE__ */ u(
|
|
5307
5307
|
"div",
|
|
5308
5308
|
{
|
|
5309
|
-
className: r(
|
|
5309
|
+
className: r(Z.progress.row, (m = l == null ? void 0 : l.progress) == null ? void 0 : m.row),
|
|
5310
5310
|
children: [
|
|
5311
5311
|
/* @__PURE__ */ e(
|
|
5312
5312
|
y,
|
|
5313
5313
|
{
|
|
5314
5314
|
className: r(
|
|
5315
|
-
|
|
5315
|
+
Z.progress.name,
|
|
5316
5316
|
(B = l == null ? void 0 : l.progress) == null ? void 0 : B.name
|
|
5317
5317
|
),
|
|
5318
5318
|
children: b
|
|
5319
5319
|
}
|
|
5320
5320
|
),
|
|
5321
5321
|
/* @__PURE__ */ e(
|
|
5322
|
-
|
|
5322
|
+
kr,
|
|
5323
5323
|
{
|
|
5324
5324
|
value: s,
|
|
5325
5325
|
total: n.total,
|
|
5326
5326
|
color: c[w],
|
|
5327
5327
|
classNames: {
|
|
5328
|
-
bar:
|
|
5329
|
-
indicator:
|
|
5328
|
+
bar: Z.progress.bar,
|
|
5329
|
+
indicator: Z.progress.indicator
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
5332
|
),
|
|
@@ -5334,7 +5334,7 @@ const G = {
|
|
|
5334
5334
|
y,
|
|
5335
5335
|
{
|
|
5336
5336
|
className: r(
|
|
5337
|
-
|
|
5337
|
+
Z.progress.value,
|
|
5338
5338
|
(S = l == null ? void 0 : l.progress) == null ? void 0 : S.value
|
|
5339
5339
|
),
|
|
5340
5340
|
children: s
|
|
@@ -5350,7 +5350,7 @@ const G = {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
);
|
|
5352
5352
|
}
|
|
5353
|
-
),
|
|
5353
|
+
), Z = {
|
|
5354
5354
|
root: "w-[560px] h-[420px] bg-sidebar-10 rounded-[10px] shadow-3xl p-7 flex flex-col gap-2 font-mono",
|
|
5355
5355
|
header: "flex flex-row justify-between",
|
|
5356
5356
|
link: "text-sidebar-50 cursor-pointer font-medium text-base",
|
|
@@ -5369,7 +5369,7 @@ const G = {
|
|
|
5369
5369
|
indicator: "h-full rounded-e-md",
|
|
5370
5370
|
value: "text-xs font-semibold w-5 text-left"
|
|
5371
5371
|
}
|
|
5372
|
-
},
|
|
5372
|
+
}, xo = (t) => {
|
|
5373
5373
|
switch (t) {
|
|
5374
5374
|
case "payment":
|
|
5375
5375
|
return { width: 240, height: 110 };
|
|
@@ -5379,7 +5379,7 @@ const G = {
|
|
|
5379
5379
|
default:
|
|
5380
5380
|
return null;
|
|
5381
5381
|
}
|
|
5382
|
-
},
|
|
5382
|
+
}, bo = (t, d) => {
|
|
5383
5383
|
const i = [20, 50, 100, 101, ...t === "payment" ? [140] : []];
|
|
5384
5384
|
return {
|
|
5385
5385
|
grid: {
|
|
@@ -5415,14 +5415,14 @@ const G = {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
]
|
|
5417
5417
|
};
|
|
5418
|
-
},
|
|
5418
|
+
}, ki = Q(
|
|
5419
5419
|
({ data: t, title: d, mode: i = "stat", settings: o, classNames: n, ...c }, l) => {
|
|
5420
5420
|
const {
|
|
5421
5421
|
chartColor: a = "#1B9BE4",
|
|
5422
5422
|
allWhite: h = !1,
|
|
5423
5423
|
arrowDown: p = !1,
|
|
5424
5424
|
icon: f = null
|
|
5425
|
-
} = o ?? {}, g = h ? "#ffffff" : a, x = i === "payment" ?
|
|
5425
|
+
} = o ?? {}, g = h ? "#ffffff" : a, x = i === "payment" ? $r(t.total) : t.total, b = xo(i), s = bo(i, g);
|
|
5426
5426
|
return /* @__PURE__ */ u(
|
|
5427
5427
|
"div",
|
|
5428
5428
|
{
|
|
@@ -5457,7 +5457,7 @@ const G = {
|
|
|
5457
5457
|
i === "payment" && /* @__PURE__ */ e(y, { className: fe.payment, children: "Сум" }),
|
|
5458
5458
|
!!t.growth && i === "count" && /* @__PURE__ */ u("div", { className: r(fe.badge, n == null ? void 0 : n.badge), children: [
|
|
5459
5459
|
/* @__PURE__ */ e(
|
|
5460
|
-
|
|
5460
|
+
_t,
|
|
5461
5461
|
{
|
|
5462
5462
|
width: 7,
|
|
5463
5463
|
height: 7,
|
|
@@ -5482,7 +5482,7 @@ const G = {
|
|
|
5482
5482
|
style: { color: g },
|
|
5483
5483
|
children: [
|
|
5484
5484
|
/* @__PURE__ */ e(
|
|
5485
|
-
|
|
5485
|
+
_t,
|
|
5486
5486
|
{
|
|
5487
5487
|
width: 16,
|
|
5488
5488
|
height: 16,
|
|
@@ -5498,9 +5498,9 @@ const G = {
|
|
|
5498
5498
|
),
|
|
5499
5499
|
i === "stat" && /* @__PURE__ */ e("div", { className: r(fe.icon, n == null ? void 0 : n.icon), children: f }),
|
|
5500
5500
|
b && /* @__PURE__ */ e(
|
|
5501
|
-
|
|
5501
|
+
wt,
|
|
5502
5502
|
{
|
|
5503
|
-
echarts:
|
|
5503
|
+
echarts: yt,
|
|
5504
5504
|
option: s,
|
|
5505
5505
|
style: {
|
|
5506
5506
|
...b,
|
|
@@ -5525,7 +5525,7 @@ const G = {
|
|
|
5525
5525
|
payment: "text-base font-medium text-dark-30/50",
|
|
5526
5526
|
counBlock: "flex flex-col gap-1",
|
|
5527
5527
|
totalBlock: "flex flex-row items-start gap-2"
|
|
5528
|
-
},
|
|
5528
|
+
}, go = (t) => {
|
|
5529
5529
|
const d = 100 - t;
|
|
5530
5530
|
return {
|
|
5531
5531
|
emphasis: { disabled: !0 },
|
|
@@ -5559,7 +5559,7 @@ const G = {
|
|
|
5559
5559
|
}
|
|
5560
5560
|
]
|
|
5561
5561
|
};
|
|
5562
|
-
},
|
|
5562
|
+
}, Ci = Q(
|
|
5563
5563
|
({
|
|
5564
5564
|
mode: t = "master",
|
|
5565
5565
|
title: d,
|
|
@@ -5572,7 +5572,7 @@ const G = {
|
|
|
5572
5572
|
avatarGroupProps: h,
|
|
5573
5573
|
...p
|
|
5574
5574
|
}, f) => {
|
|
5575
|
-
const g =
|
|
5575
|
+
const g = go(o);
|
|
5576
5576
|
return /* @__PURE__ */ u(
|
|
5577
5577
|
"div",
|
|
5578
5578
|
{
|
|
@@ -5592,7 +5592,7 @@ const G = {
|
|
|
5592
5592
|
),
|
|
5593
5593
|
t === "master" && h && !!l && /* @__PURE__ */ u(ct, { children: [
|
|
5594
5594
|
/* @__PURE__ */ e(
|
|
5595
|
-
|
|
5595
|
+
Lt,
|
|
5596
5596
|
{
|
|
5597
5597
|
...h,
|
|
5598
5598
|
classNames: {
|
|
@@ -5602,7 +5602,7 @@ const G = {
|
|
|
5602
5602
|
}
|
|
5603
5603
|
}
|
|
5604
5604
|
),
|
|
5605
|
-
/* @__PURE__ */ e(
|
|
5605
|
+
/* @__PURE__ */ e(yr, { rating: l, position: "right" })
|
|
5606
5606
|
] }),
|
|
5607
5607
|
t === "service" && c && /* @__PURE__ */ u(ct, { children: [
|
|
5608
5608
|
/* @__PURE__ */ e(
|
|
@@ -5635,9 +5635,9 @@ const G = {
|
|
|
5635
5635
|
)
|
|
5636
5636
|
] }),
|
|
5637
5637
|
/* @__PURE__ */ e(
|
|
5638
|
-
|
|
5638
|
+
wt,
|
|
5639
5639
|
{
|
|
5640
|
-
echarts:
|
|
5640
|
+
echarts: yt,
|
|
5641
5641
|
option: g,
|
|
5642
5642
|
style: { height: 135, width: 135 }
|
|
5643
5643
|
}
|
|
@@ -5652,10 +5652,10 @@ const G = {
|
|
|
5652
5652
|
status: "rounded-[8px] text-sm text-secondary-10 font-medium w-max py-1 px-2",
|
|
5653
5653
|
block: "flex flex-col h-full gap-4",
|
|
5654
5654
|
serviceTitle: "text-2xl text-semibold leading-none pt-2"
|
|
5655
|
-
},
|
|
5655
|
+
}, vo = (t, d) => {
|
|
5656
5656
|
const i = d - t;
|
|
5657
5657
|
return i >= 1 ? 100 : i > 0 ? i * 100 : 0;
|
|
5658
|
-
},
|
|
5658
|
+
}, yr = ({
|
|
5659
5659
|
rating: t,
|
|
5660
5660
|
classNames: d,
|
|
5661
5661
|
position: i = "left",
|
|
@@ -5673,11 +5673,11 @@ const G = {
|
|
|
5673
5673
|
/* @__PURE__ */ e("div", { className: r(ge.block, d == null ? void 0 : d.block), children: [...Array(5)].map((n, c) => {
|
|
5674
5674
|
const l = Math.max(
|
|
5675
5675
|
0,
|
|
5676
|
-
Math.min(100,
|
|
5676
|
+
Math.min(100, vo(c, t))
|
|
5677
5677
|
);
|
|
5678
5678
|
return /* @__PURE__ */ u("div", { className: r(ge.overlay.block), children: [
|
|
5679
5679
|
/* @__PURE__ */ e(
|
|
5680
|
-
|
|
5680
|
+
Yt,
|
|
5681
5681
|
{
|
|
5682
5682
|
className: r(ge.icon, ge.empty),
|
|
5683
5683
|
"data-testid": "star-empty"
|
|
@@ -5690,7 +5690,7 @@ const G = {
|
|
|
5690
5690
|
style: { width: `${l}%` },
|
|
5691
5691
|
"data-testid": "star-overlay",
|
|
5692
5692
|
children: /* @__PURE__ */ e(
|
|
5693
|
-
|
|
5693
|
+
Yt,
|
|
5694
5694
|
{
|
|
5695
5695
|
className: r(ge.icon, ge.filled),
|
|
5696
5696
|
"data-testid": "star-filled"
|
|
@@ -5714,7 +5714,7 @@ const G = {
|
|
|
5714
5714
|
block: "relative",
|
|
5715
5715
|
star: "absolute inset-0 overflow-hidden"
|
|
5716
5716
|
}
|
|
5717
|
-
},
|
|
5717
|
+
}, so = ({
|
|
5718
5718
|
total: t,
|
|
5719
5719
|
value: d,
|
|
5720
5720
|
color: i
|
|
@@ -5752,7 +5752,7 @@ const G = {
|
|
|
5752
5752
|
}
|
|
5753
5753
|
]
|
|
5754
5754
|
};
|
|
5755
|
-
},
|
|
5755
|
+
}, Ti = Q(
|
|
5756
5756
|
({ title: t, icon: d, data: i, colors: o, classNames: n, ...c }, l) => {
|
|
5757
5757
|
var h;
|
|
5758
5758
|
const a = [
|
|
@@ -5823,11 +5823,11 @@ const G = {
|
|
|
5823
5823
|
}) })
|
|
5824
5824
|
] }),
|
|
5825
5825
|
/* @__PURE__ */ e("div", { className: r(ne.chartBlock, n == null ? void 0 : n.chartBlock), children: a.map((p, f) => /* @__PURE__ */ e(
|
|
5826
|
-
|
|
5826
|
+
wt,
|
|
5827
5827
|
{
|
|
5828
|
-
echarts:
|
|
5828
|
+
echarts: yt,
|
|
5829
5829
|
"data-testid": "chart",
|
|
5830
|
-
option:
|
|
5830
|
+
option: so({
|
|
5831
5831
|
total: i.total,
|
|
5832
5832
|
value: p.value,
|
|
5833
5833
|
color: o[f]
|
|
@@ -5855,7 +5855,7 @@ const G = {
|
|
|
5855
5855
|
root: "flex flex-col gap-2",
|
|
5856
5856
|
dot: "size-2 rounded-full"
|
|
5857
5857
|
}
|
|
5858
|
-
},
|
|
5858
|
+
}, Bi = Q(
|
|
5859
5859
|
({ paid: t, pending: d, overdue: i, title: o, icon: n, total: c, classNames: l, ...a }, h) => {
|
|
5860
5860
|
var f;
|
|
5861
5861
|
const p = [
|
|
@@ -5871,32 +5871,32 @@ const G = {
|
|
|
5871
5871
|
"div",
|
|
5872
5872
|
{
|
|
5873
5873
|
...a,
|
|
5874
|
-
className: r(
|
|
5874
|
+
className: r(Me.root, l == null ? void 0 : l.root),
|
|
5875
5875
|
"data-testid": "card-progress",
|
|
5876
5876
|
ref: h,
|
|
5877
5877
|
children: [
|
|
5878
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5878
|
+
/* @__PURE__ */ u("div", { className: r(Me.header, l == null ? void 0 : l.header), children: [
|
|
5879
5879
|
/* @__PURE__ */ e(
|
|
5880
5880
|
Qe,
|
|
5881
5881
|
{
|
|
5882
5882
|
title: o,
|
|
5883
5883
|
icon: n,
|
|
5884
|
-
classNames: { title:
|
|
5884
|
+
classNames: { title: Me.title, wrapper: "items-center" }
|
|
5885
5885
|
}
|
|
5886
5886
|
),
|
|
5887
5887
|
/* @__PURE__ */ e(
|
|
5888
5888
|
Pe,
|
|
5889
5889
|
{
|
|
5890
5890
|
to: "/analytics-reporting",
|
|
5891
|
-
className: r(
|
|
5891
|
+
className: r(Me.link, l == null ? void 0 : l.link),
|
|
5892
5892
|
children: "Подробнее"
|
|
5893
5893
|
}
|
|
5894
5894
|
)
|
|
5895
5895
|
] }),
|
|
5896
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
5896
|
+
/* @__PURE__ */ e("div", { className: r(Me.bar.block, (f = l == null ? void 0 : l.bar) == null ? void 0 : f.block), children: p.map(({ label: g, value: x, color: b }, s) => {
|
|
5897
5897
|
var w;
|
|
5898
5898
|
return /* @__PURE__ */ u("div", { children: [
|
|
5899
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5899
|
+
/* @__PURE__ */ u("div", { className: r(Me.bar.text, (w = l == null ? void 0 : l.bar) == null ? void 0 : w.text), children: [
|
|
5900
5900
|
/* @__PURE__ */ e(y, { children: g }),
|
|
5901
5901
|
/* @__PURE__ */ u(y, { className: r(s === 2 && "text-danger-10"), children: [
|
|
5902
5902
|
x,
|
|
@@ -5904,7 +5904,7 @@ const G = {
|
|
|
5904
5904
|
] })
|
|
5905
5905
|
] }),
|
|
5906
5906
|
/* @__PURE__ */ e(
|
|
5907
|
-
|
|
5907
|
+
kr,
|
|
5908
5908
|
{
|
|
5909
5909
|
value: x,
|
|
5910
5910
|
total: c,
|
|
@@ -5918,7 +5918,7 @@ const G = {
|
|
|
5918
5918
|
}
|
|
5919
5919
|
);
|
|
5920
5920
|
}
|
|
5921
|
-
),
|
|
5921
|
+
), Me = {
|
|
5922
5922
|
root: "w-[651px] h-[287px] bg-white p-5 shadow-3xl rounded-[10px] font-mono",
|
|
5923
5923
|
header: "flex flex-row justify-between",
|
|
5924
5924
|
link: "text-dark-40 cursor-pointer font-medium text-base",
|
|
@@ -5929,31 +5929,31 @@ const G = {
|
|
|
5929
5929
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5930
5930
|
indicator: "h-full rounded-md"
|
|
5931
5931
|
}
|
|
5932
|
-
},
|
|
5932
|
+
}, kr = ({
|
|
5933
5933
|
value: t,
|
|
5934
5934
|
total: d,
|
|
5935
5935
|
color: i,
|
|
5936
5936
|
classNames: o
|
|
5937
5937
|
}) => {
|
|
5938
|
-
const n = d ? Math.abs(t) / d * 100 : 0, [c, l] =
|
|
5938
|
+
const n = d ? Math.abs(t) / d * 100 : 0, [c, l] = A(0);
|
|
5939
5939
|
return ve(() => {
|
|
5940
5940
|
const a = requestAnimationFrame(() => {
|
|
5941
5941
|
l(n);
|
|
5942
5942
|
});
|
|
5943
5943
|
return () => cancelAnimationFrame(a);
|
|
5944
|
-
}, [n]), /* @__PURE__ */ e(
|
|
5945
|
-
|
|
5944
|
+
}, [n]), /* @__PURE__ */ e(ln, { className: r(Jt.bar, o == null ? void 0 : o.bar), children: /* @__PURE__ */ e(
|
|
5945
|
+
pn,
|
|
5946
5946
|
{
|
|
5947
|
-
className: r(
|
|
5947
|
+
className: r(Jt.indicator, i, o == null ? void 0 : o.indicator),
|
|
5948
5948
|
style: {
|
|
5949
5949
|
transform: `translateX(-${100 - c}%)`
|
|
5950
5950
|
}
|
|
5951
5951
|
}
|
|
5952
5952
|
) });
|
|
5953
|
-
},
|
|
5953
|
+
}, Jt = {
|
|
5954
5954
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5955
5955
|
indicator: "h-full rounded-md"
|
|
5956
|
-
},
|
|
5956
|
+
}, Si = Q(
|
|
5957
5957
|
({
|
|
5958
5958
|
classNames: t,
|
|
5959
5959
|
labelText: d,
|
|
@@ -5973,13 +5973,13 @@ const G = {
|
|
|
5973
5973
|
onDebouncedSearch: w,
|
|
5974
5974
|
debounceDelay: m = 300
|
|
5975
5975
|
}, B) => {
|
|
5976
|
-
var
|
|
5977
|
-
const [S, j] =
|
|
5976
|
+
var K;
|
|
5977
|
+
const [S, j] = A(!1), [k, v] = A(-1), C = fr(p, m);
|
|
5978
5978
|
ve(() => {
|
|
5979
5979
|
w == null || w(C);
|
|
5980
5980
|
}, [C, w]);
|
|
5981
5981
|
const D = oe(""), T = oe(null), I = oe(null);
|
|
5982
|
-
|
|
5982
|
+
Nt(
|
|
5983
5983
|
B,
|
|
5984
5984
|
() => ({
|
|
5985
5985
|
focus: () => {
|
|
@@ -5991,9 +5991,9 @@ const G = {
|
|
|
5991
5991
|
}),
|
|
5992
5992
|
[]
|
|
5993
5993
|
);
|
|
5994
|
-
const F = (
|
|
5994
|
+
const F = (K = c.find((W) => W.value === a)) == null ? void 0 : K.label;
|
|
5995
5995
|
F && (D.current = F);
|
|
5996
|
-
const
|
|
5996
|
+
const V = a ? F ?? D.current : "";
|
|
5997
5997
|
ve(() => {
|
|
5998
5998
|
if (k >= 0 && I.current && (c != null && c[k])) {
|
|
5999
5999
|
const W = I.current.querySelector(
|
|
@@ -6028,7 +6028,7 @@ const G = {
|
|
|
6028
6028
|
break;
|
|
6029
6029
|
}
|
|
6030
6030
|
}
|
|
6031
|
-
},
|
|
6031
|
+
}, M = (W) => {
|
|
6032
6032
|
W.preventDefault(), requestAnimationFrame(() => {
|
|
6033
6033
|
var H;
|
|
6034
6034
|
(H = T.current) == null || H.focus();
|
|
@@ -6043,7 +6043,7 @@ const G = {
|
|
|
6043
6043
|
t == null ? void 0 : t.labelContainer
|
|
6044
6044
|
),
|
|
6045
6045
|
children: [
|
|
6046
|
-
/* @__PURE__ */ e(
|
|
6046
|
+
/* @__PURE__ */ e(P, { disabled: i, className: t == null ? void 0 : t.labelText, children: d }),
|
|
6047
6047
|
o === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
6048
6048
|
]
|
|
6049
6049
|
}
|
|
@@ -6075,7 +6075,7 @@ const G = {
|
|
|
6075
6075
|
a && i && R.disabled.selectedDisabled,
|
|
6076
6076
|
a ? t == null ? void 0 : t.selected : t == null ? void 0 : t.placeholder
|
|
6077
6077
|
),
|
|
6078
|
-
children:
|
|
6078
|
+
children: V || l
|
|
6079
6079
|
}
|
|
6080
6080
|
) }),
|
|
6081
6081
|
/* @__PURE__ */ e(
|
|
@@ -6100,13 +6100,13 @@ const G = {
|
|
|
6100
6100
|
{
|
|
6101
6101
|
className: r("p-1", t == null ? void 0 : t.content),
|
|
6102
6102
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
6103
|
-
onOpenAutoFocus:
|
|
6103
|
+
onOpenAutoFocus: M,
|
|
6104
6104
|
container: b,
|
|
6105
6105
|
disablePortal: s,
|
|
6106
6106
|
children: [
|
|
6107
6107
|
/* @__PURE__ */ u("div", { className: R.search.wrapper, children: [
|
|
6108
6108
|
/* @__PURE__ */ e(
|
|
6109
|
-
|
|
6109
|
+
ur,
|
|
6110
6110
|
{
|
|
6111
6111
|
width: 16,
|
|
6112
6112
|
height: 16,
|
|
@@ -6132,7 +6132,7 @@ const G = {
|
|
|
6132
6132
|
] }),
|
|
6133
6133
|
/* @__PURE__ */ e("div", { className: R.search.divider }),
|
|
6134
6134
|
/* @__PURE__ */ u("div", { ref: I, className: R.options.list, children: [
|
|
6135
|
-
h && /* @__PURE__ */ e("div", { className: R.options.loadingWrapper, children: /* @__PURE__ */ e(
|
|
6135
|
+
h && /* @__PURE__ */ e("div", { className: R.options.loadingWrapper, children: /* @__PURE__ */ e(gt, { width: 30, height: 30 }) }),
|
|
6136
6136
|
!h && c.length ? c.map((W, H) => /* @__PURE__ */ e(
|
|
6137
6137
|
"div",
|
|
6138
6138
|
{
|
|
@@ -6205,8 +6205,8 @@ const G = {
|
|
|
6205
6205
|
triggerText: "text-secondary-10/50",
|
|
6206
6206
|
selectedDisabled: "text-dark-30/25"
|
|
6207
6207
|
}
|
|
6208
|
-
},
|
|
6209
|
-
({ name: t, size: d,
|
|
6208
|
+
}, Di = Q(
|
|
6209
|
+
({ name: t, size: d, dateTime: i, isDownloaded: o = !1, classNames: n, ...c }, l) => /* @__PURE__ */ u(
|
|
6210
6210
|
"div",
|
|
6211
6211
|
{
|
|
6212
6212
|
ref: l,
|
|
@@ -6214,13 +6214,13 @@ const G = {
|
|
|
6214
6214
|
...c,
|
|
6215
6215
|
children: [
|
|
6216
6216
|
/* @__PURE__ */ e("div", { className: r(Oe.iconWrapper, n == null ? void 0 : n.iconWrapper), children: o ? /* @__PURE__ */ e(
|
|
6217
|
-
|
|
6217
|
+
Zr,
|
|
6218
6218
|
{
|
|
6219
6219
|
"data-testid": "icon-file",
|
|
6220
6220
|
className: "fill-primary-10"
|
|
6221
6221
|
}
|
|
6222
6222
|
) : /* @__PURE__ */ e(
|
|
6223
|
-
|
|
6223
|
+
Qr,
|
|
6224
6224
|
{
|
|
6225
6225
|
"data-testid": "icon-download",
|
|
6226
6226
|
className: "fill-success-20"
|
|
@@ -6229,7 +6229,7 @@ const G = {
|
|
|
6229
6229
|
/* @__PURE__ */ u("div", { className: r(Oe.content, n == null ? void 0 : n.content), children: [
|
|
6230
6230
|
/* @__PURE__ */ e(y, { "data-testid": "file-name", className: Oe.name, children: t }),
|
|
6231
6231
|
/* @__PURE__ */ e(y, { "data-testid": "file-size", className: Oe.size, children: ft(d) }),
|
|
6232
|
-
/* @__PURE__ */ e(y, { "data-testid": "file-date", className: Oe.dateAndTime, children:
|
|
6232
|
+
/* @__PURE__ */ e(y, { "data-testid": "file-date", className: Oe.dateAndTime, children: xt(i) })
|
|
6233
6233
|
] })
|
|
6234
6234
|
]
|
|
6235
6235
|
}
|
|
@@ -6242,7 +6242,7 @@ const G = {
|
|
|
6242
6242
|
name: "text-sm font-semibold text-dark-30 w-[160px] truncate",
|
|
6243
6243
|
size: "text-sm text-dark-40/50",
|
|
6244
6244
|
dateAndTime: "text-xs text-dark-40/50"
|
|
6245
|
-
},
|
|
6245
|
+
}, Cr = z.forwardRef(
|
|
6246
6246
|
({
|
|
6247
6247
|
id: t,
|
|
6248
6248
|
text: d,
|
|
@@ -6282,7 +6282,7 @@ const G = {
|
|
|
6282
6282
|
}
|
|
6283
6283
|
),
|
|
6284
6284
|
!!n && /* @__PURE__ */ e(
|
|
6285
|
-
|
|
6285
|
+
Ur,
|
|
6286
6286
|
{
|
|
6287
6287
|
senderName: n.senderName,
|
|
6288
6288
|
messageText: n.messageText,
|
|
@@ -6309,7 +6309,7 @@ const G = {
|
|
|
6309
6309
|
l ? "text-primary-10" : "text-dark-40/50",
|
|
6310
6310
|
a && "text-dark-30"
|
|
6311
6311
|
),
|
|
6312
|
-
children:
|
|
6312
|
+
children: bt(i)
|
|
6313
6313
|
}
|
|
6314
6314
|
),
|
|
6315
6315
|
l && !!c && /* @__PURE__ */ u("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
|
|
@@ -6338,7 +6338,7 @@ const G = {
|
|
|
6338
6338
|
);
|
|
6339
6339
|
}
|
|
6340
6340
|
);
|
|
6341
|
-
|
|
6341
|
+
Cr.displayName = "Message";
|
|
6342
6342
|
const Ve = {
|
|
6343
6343
|
base: "relative flex gap-3 bg-sidebar-10 border border-dark-40/[.25] rounded-[10px] px-2.5 py-2 min-h-10 max-w-lg",
|
|
6344
6344
|
wrapper: {
|
|
@@ -6348,10 +6348,10 @@ const Ve = {
|
|
|
6348
6348
|
sender: "w-full truncate text-primary-10 text-sm font-sans font-medium",
|
|
6349
6349
|
message: "text-dark-30 text-sm font-sans font-medium whitespace-pre-wrap",
|
|
6350
6350
|
timestamp: "text-xs leading-none"
|
|
6351
|
-
},
|
|
6351
|
+
}, ji = ({
|
|
6352
6352
|
title: t,
|
|
6353
6353
|
size: d,
|
|
6354
|
-
|
|
6354
|
+
dateTime: i,
|
|
6355
6355
|
timestamp: o,
|
|
6356
6356
|
status: n,
|
|
6357
6357
|
isMine: c = !1,
|
|
@@ -6365,7 +6365,7 @@ const Ve = {
|
|
|
6365
6365
|
onClick: l,
|
|
6366
6366
|
children: [
|
|
6367
6367
|
/* @__PURE__ */ e("div", { className: r(Be.icon, a == null ? void 0 : a.icon), children: /* @__PURE__ */ e(
|
|
6368
|
-
|
|
6368
|
+
yn,
|
|
6369
6369
|
{
|
|
6370
6370
|
className: "fill-sidebar-10",
|
|
6371
6371
|
width: 37,
|
|
@@ -6394,8 +6394,8 @@ const Ve = {
|
|
|
6394
6394
|
y,
|
|
6395
6395
|
{
|
|
6396
6396
|
"data-testid": "document-date",
|
|
6397
|
-
className: r(Be.dateAndTime, a == null ? void 0 : a.
|
|
6398
|
-
children: typeof i == "string" ? i :
|
|
6397
|
+
className: r(Be.dateAndTime, a == null ? void 0 : a.dateTime),
|
|
6398
|
+
children: typeof i == "string" ? i : xt(i)
|
|
6399
6399
|
}
|
|
6400
6400
|
)
|
|
6401
6401
|
] }),
|
|
@@ -6408,7 +6408,7 @@ const Ve = {
|
|
|
6408
6408
|
"text-xs",
|
|
6409
6409
|
c ? "text-primary-10" : "text-dark-40/50"
|
|
6410
6410
|
),
|
|
6411
|
-
children: typeof o == "string" ? o :
|
|
6411
|
+
children: typeof o == "string" ? o : bt(o)
|
|
6412
6412
|
}
|
|
6413
6413
|
),
|
|
6414
6414
|
c && !!n && /* @__PURE__ */ u("div", { "data-testid": "document-status", className: "translate-y-0.5", children: [
|
|
@@ -6442,7 +6442,7 @@ const Ve = {
|
|
|
6442
6442
|
size: "text-xs text-dark-40/50",
|
|
6443
6443
|
dateAndTime: "text-xs text-dark-40/50",
|
|
6444
6444
|
footer: "flex items-center gap-1 self-end shrink-0"
|
|
6445
|
-
},
|
|
6445
|
+
}, Ii = ({
|
|
6446
6446
|
src: t,
|
|
6447
6447
|
alt: d = "",
|
|
6448
6448
|
status: i,
|
|
@@ -6506,7 +6506,7 @@ const Ve = {
|
|
|
6506
6506
|
image: "block w-full h-auto object-cover",
|
|
6507
6507
|
overlay: "absolute inset-0 bg-dark-40/30 rounded-xl",
|
|
6508
6508
|
status: "absolute bottom-3 right-3"
|
|
6509
|
-
},
|
|
6509
|
+
}, _i = ({
|
|
6510
6510
|
src: t,
|
|
6511
6511
|
poster: d,
|
|
6512
6512
|
alt: i = "",
|
|
@@ -6554,7 +6554,7 @@ const Ve = {
|
|
|
6554
6554
|
},
|
|
6555
6555
|
type: "button",
|
|
6556
6556
|
children: /* @__PURE__ */ e(
|
|
6557
|
-
|
|
6557
|
+
Xr,
|
|
6558
6558
|
{
|
|
6559
6559
|
className: "fill-sidebar-10 text-sidebar-10",
|
|
6560
6560
|
width: 18,
|
|
@@ -6571,7 +6571,7 @@ const Ve = {
|
|
|
6571
6571
|
{
|
|
6572
6572
|
"data-testid": "video-card-timestamp",
|
|
6573
6573
|
className: r(Se.timestamp),
|
|
6574
|
-
children: typeof n == "string" ? n :
|
|
6574
|
+
children: typeof n == "string" ? n : bt(n)
|
|
6575
6575
|
}
|
|
6576
6576
|
),
|
|
6577
6577
|
l && !!c && /* @__PURE__ */ u(
|
|
@@ -6612,7 +6612,7 @@ const Ve = {
|
|
|
6612
6612
|
muteButton: "flex items-center justify-center bg-transparent border-none cursor-pointer p-0",
|
|
6613
6613
|
footer: "absolute bottom-3 right-3 flex items-center gap-2",
|
|
6614
6614
|
timestamp: "text-xs text-sidebar-10"
|
|
6615
|
-
},
|
|
6615
|
+
}, Wi = ({
|
|
6616
6616
|
src: t,
|
|
6617
6617
|
duration: d,
|
|
6618
6618
|
size: i,
|
|
@@ -6624,7 +6624,7 @@ const Ve = {
|
|
|
6624
6624
|
onClick: h,
|
|
6625
6625
|
classNames: p
|
|
6626
6626
|
}) => {
|
|
6627
|
-
const f = oe(null), [g, x] =
|
|
6627
|
+
const f = oe(null), [g, x] = A(!1), [b, s] = A(d), [w, m] = A(0), B = ht(() => Array.from(
|
|
6628
6628
|
{ length: 40 },
|
|
6629
6629
|
(D, T) => ((T * 7 + 13) * 17 + 31) % 97 / 97 * 0.8 + 0.2
|
|
6630
6630
|
), []), S = nt((C) => {
|
|
@@ -6660,7 +6660,7 @@ const Ve = {
|
|
|
6660
6660
|
className: r(te.playButton, p == null ? void 0 : p.playButton),
|
|
6661
6661
|
onClick: j,
|
|
6662
6662
|
children: g ? /* @__PURE__ */ e(
|
|
6663
|
-
|
|
6663
|
+
Or,
|
|
6664
6664
|
{
|
|
6665
6665
|
className: te.playIcon,
|
|
6666
6666
|
width: 20,
|
|
@@ -6668,7 +6668,7 @@ const Ve = {
|
|
|
6668
6668
|
viewBox: "0 0 24 24"
|
|
6669
6669
|
}
|
|
6670
6670
|
) : /* @__PURE__ */ e(
|
|
6671
|
-
|
|
6671
|
+
Fr,
|
|
6672
6672
|
{
|
|
6673
6673
|
className: te.playIcon,
|
|
6674
6674
|
width: 20,
|
|
@@ -6728,7 +6728,7 @@ const Ve = {
|
|
|
6728
6728
|
{
|
|
6729
6729
|
"data-testid": "audio-card-timestamp",
|
|
6730
6730
|
className: te.timestamp,
|
|
6731
|
-
children: typeof o == "string" ? o :
|
|
6731
|
+
children: typeof o == "string" ? o : bt(o)
|
|
6732
6732
|
}
|
|
6733
6733
|
),
|
|
6734
6734
|
c && !!n && /* @__PURE__ */ u("div", { "data-testid": "audio-card-status", className: te.status, children: [
|
|
@@ -6784,77 +6784,77 @@ const Ve = {
|
|
|
6784
6784
|
status: "translate-y-0.5"
|
|
6785
6785
|
};
|
|
6786
6786
|
export {
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6787
|
+
Lo as Accordion,
|
|
6788
|
+
fi as ApartmentCard,
|
|
6789
|
+
Wi as AudioMessage,
|
|
6790
6790
|
te as AudioMessageTokens,
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6791
|
+
Lt as AvatarGroup,
|
|
6792
|
+
Ho as Breadcrumb,
|
|
6793
|
+
ui as CardFiles,
|
|
6794
|
+
Ci as CardMonthly,
|
|
6795
|
+
yi as CardPieChart,
|
|
6796
|
+
Bi as CardProgress,
|
|
6797
|
+
Ti as CardRingChart,
|
|
6798
|
+
Qo as CardServices,
|
|
6799
|
+
ki as CardStat,
|
|
6800
|
+
po as ChatButton,
|
|
6801
|
+
Xn as ChatCard,
|
|
6802
|
+
gi as ChatList,
|
|
6803
|
+
vi as ChatMessage,
|
|
6804
|
+
bi as ChatSidebar,
|
|
6805
|
+
Bn as CheckboxGroup,
|
|
6806
|
+
Si as Combobox,
|
|
6807
|
+
Xo as CommentInput,
|
|
6808
|
+
Go as CommentList,
|
|
6809
|
+
ai as DateOfBirth,
|
|
6810
|
+
Vo as DatePicker,
|
|
6811
|
+
qo as DateRangePicker,
|
|
6812
|
+
si as DeleteMessage,
|
|
6813
|
+
ji as DocumentMessage,
|
|
6814
6814
|
Be as DocumentMessageTokens,
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6815
|
+
di as DragAndDrop,
|
|
6816
|
+
Qn as Dropdown,
|
|
6817
|
+
Di as FileCard,
|
|
6818
|
+
Ko as FileUploader,
|
|
6819
|
+
Zo as FilterTable,
|
|
6820
|
+
wi as FloorSelect,
|
|
6821
6821
|
Qe as IconTitle,
|
|
6822
|
-
|
|
6822
|
+
Ii as ImageMessage,
|
|
6823
6823
|
pt as ImageMessageTokens,
|
|
6824
|
-
|
|
6824
|
+
zt as InputGroup,
|
|
6825
6825
|
Re as LabelWithValue,
|
|
6826
|
-
|
|
6826
|
+
Po as Languages,
|
|
6827
6827
|
Xe as Link,
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6828
|
+
Cr as Message,
|
|
6829
|
+
co as MessageSettings,
|
|
6830
|
+
Yo as MultiSelect,
|
|
6831
|
+
oo as NavButton,
|
|
6832
|
+
No as Pagination,
|
|
6833
6833
|
$ as PaginationTokens,
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6834
|
+
Uo as PasswordInput,
|
|
6835
|
+
hi as PaymentCard,
|
|
6836
|
+
ei as PhoneInput,
|
|
6837
|
+
ti as Plate,
|
|
6838
|
+
kr as ProgressItem,
|
|
6839
|
+
mr as RadioGroup,
|
|
6840
|
+
yr as Rating,
|
|
6841
|
+
Mn as SearchInput,
|
|
6842
|
+
ci as SelectGroup,
|
|
6843
|
+
lo as SelectList,
|
|
6844
|
+
xi as ServiceOrders,
|
|
6845
|
+
Jo as Sidebar,
|
|
6846
|
+
wr as StatusSelect,
|
|
6847
|
+
li as Stepper,
|
|
6848
|
+
ni as TabGroup,
|
|
6849
|
+
mi as TabList,
|
|
6850
|
+
ri as TabSwitch,
|
|
6851
6851
|
Ce as TabSwitchTokens,
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6852
|
+
zo as Table,
|
|
6853
|
+
oi as TextareaGroup,
|
|
6854
|
+
ii as ToggleGroup,
|
|
6855
|
+
Eo as UploadInput,
|
|
6856
|
+
pi as UserContact,
|
|
6857
|
+
_i as VideoMessage,
|
|
6858
6858
|
Se as VideoMessageTokens,
|
|
6859
6859
|
me as accordionTokens,
|
|
6860
6860
|
de as apartmentCardTokens,
|
|
@@ -6862,59 +6862,59 @@ export {
|
|
|
6862
6862
|
et as breadcrumnbTokens,
|
|
6863
6863
|
U as cardFilesTokens,
|
|
6864
6864
|
Ge as cardMonthlyTokens,
|
|
6865
|
-
|
|
6866
|
-
|
|
6865
|
+
Z as cardPieChartTokens,
|
|
6866
|
+
Me as cardProgressTokens,
|
|
6867
6867
|
ne as cardRingChartTokens,
|
|
6868
6868
|
be as cardServicesTokens,
|
|
6869
6869
|
fe as cardStatTokens,
|
|
6870
|
-
|
|
6870
|
+
Ae as chatButtonTokens,
|
|
6871
6871
|
Ie as chatCardTokens,
|
|
6872
|
-
|
|
6872
|
+
Qt as chatListTokens,
|
|
6873
6873
|
at as chatMessageTokens,
|
|
6874
6874
|
Ee as chatSidebarTokens,
|
|
6875
6875
|
ue as checkboxGroupTokens,
|
|
6876
6876
|
R as comboboxTokens,
|
|
6877
6877
|
ot as commentInputTokens,
|
|
6878
6878
|
Y as commentItemTokens,
|
|
6879
|
-
|
|
6879
|
+
qt as dateOfBirthClasses,
|
|
6880
6880
|
_ as datePickerTokens,
|
|
6881
|
-
|
|
6882
|
-
|
|
6881
|
+
Kn as dateRangePickerTokens,
|
|
6882
|
+
Zn as dayPickerClasses,
|
|
6883
6883
|
lt as deleteMessageTokens,
|
|
6884
6884
|
We as dragAndDropTokens,
|
|
6885
|
-
|
|
6885
|
+
Et as dropdownTokens,
|
|
6886
6886
|
Oe as fileCardTokens,
|
|
6887
|
-
|
|
6888
|
-
|
|
6887
|
+
G as fileUploaderTokens,
|
|
6888
|
+
Bt as filterTableTokens,
|
|
6889
6889
|
he as floorSelectTokens,
|
|
6890
|
-
|
|
6890
|
+
Kt as iconTitleTokens,
|
|
6891
6891
|
dt as inputGroupTokens,
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6892
|
+
Zt as labelWithValueTokens,
|
|
6893
|
+
St as languagesTokens,
|
|
6894
|
+
io as linkTokens,
|
|
6895
|
+
It as messageSettingsTokens,
|
|
6896
6896
|
Ve as messageTokens,
|
|
6897
6897
|
L as multiSelectTokens,
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6898
|
+
Dt as navButtonTokens,
|
|
6899
|
+
An as passwordInputTokens,
|
|
6900
|
+
J as paymentCardTokens,
|
|
6901
6901
|
ke as phoneInputTokens,
|
|
6902
6902
|
Ue as plateTokens,
|
|
6903
|
-
|
|
6903
|
+
Jt as progressItemsTokens,
|
|
6904
6904
|
ye as radioGroupTokens,
|
|
6905
6905
|
ge as ratingTokens,
|
|
6906
6906
|
re as searchInputTokens,
|
|
6907
|
-
|
|
6908
|
-
|
|
6907
|
+
ao as selectGroupTokens,
|
|
6908
|
+
E as selectListTokens,
|
|
6909
6909
|
Te as serviceOrdersTokens,
|
|
6910
6910
|
it as sidebarTokens,
|
|
6911
6911
|
Ye as statusSelectTokens,
|
|
6912
|
-
|
|
6912
|
+
q as stepperTokens,
|
|
6913
6913
|
_e as tabGroupTokens,
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6914
|
+
uo as tabListTokens,
|
|
6915
|
+
X as tableTokens,
|
|
6916
|
+
Vt as textareaGroupTokens,
|
|
6917
|
+
to as toggleGroupTokens,
|
|
6918
6918
|
we as uploadInputTokens,
|
|
6919
|
-
|
|
6919
|
+
jt as userContactTokens
|
|
6920
6920
|
};
|