@namuna-nur/ui-kit 1.10.4 → 1.10.5
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/molecules/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
|
-
import Lt, { forwardRef as Q, useState as A, useRef as ie, useImperativeHandle as zt, useEffect as ge, Fragment as
|
|
4
|
-
import { S as Ke, b as
|
|
5
|
-
import { cn as n, formatFileSize as mt, DATE_FORMAT_DAY_MONTH_YEAR_DASH as Bt, formatDateToDayMonthYear as
|
|
6
|
-
import { Checkbox as st, Label as ee, Spinner as rt, Text as w, Button as
|
|
7
|
-
import { useReactTable as
|
|
8
|
-
import { b as
|
|
3
|
+
import Lt, { forwardRef as Q, useState as A, useRef as ie, useImperativeHandle as zt, useEffect as ge, Fragment as hr, useMemo as Ht } from "react";
|
|
4
|
+
import { S as Ke, b as ur, c as se, d as fr, e as br, f as Ut, g as Yt, h as xr, i as Gt, j as gr, k as sr, l as vr, m as mr, n as wr, o as gt } from "../shared/assets-icons-2.js";
|
|
5
|
+
import { cn as n, formatFileSize as mt, DATE_FORMAT_DAY_MONTH_YEAR_DASH as Bt, formatDateToDayMonthYear as yr, numberFormat as kr } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as st, Label as ee, Spinner as rt, Text as w, Button as O, Avatar as Et, IconButton as wt, Select as Te, Textarea as Kt, Radio as Vt, Status as He, Toggle as Cr, Headline as tt, Input as Tr, Message as Dr, Tab as Sr } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Br, getCoreRowModel as jr, flexRender as jt } from "@tanstack/react-table";
|
|
8
|
+
import { b as Ir, c as _r, d as Wr, e as Mr } from "../shared/assets-icons-3.js";
|
|
9
9
|
import { Link as Ve, useSearchParams as yt, useNavigate as qt, NavLink as kt } from "react-router-dom";
|
|
10
|
-
import { S as
|
|
11
|
-
import { P as ae, b as de, c as le, D as nt, d as ot, e as it, f as Tt, A as
|
|
12
|
-
import { d as Ue, e as
|
|
13
|
-
import { useDebounce as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
10
|
+
import { S as Or, a as Ar, b as Fr, c as Rr, d as $r, e as Zt, f as Ct } from "../shared/assets-icons-1.js";
|
|
11
|
+
import { P as ae, b as de, c as le, D as nt, d as ot, e as it, f as Tt, A as Lr, g as zr, h as Hr, i as Ur, j as Qt, k as Xt, l as Jt, m as Yr, n as Gr, o as Er } from "../shared/shared.js";
|
|
12
|
+
import { d as Ue, e as Kr, f as Pt, g as Nt, h as Vr, i as qr, j as Zr, k as Qr, a as Xr, l as Jr, m as Pr, n as Nr } from "../shared/assets-icons-4.js";
|
|
13
|
+
import { useDebounce as er, useOption as tr } from "../hooks/index.js";
|
|
14
|
+
import * as rr from "@radix-ui/react-toggle";
|
|
15
|
+
import { e as nr, f as en, g as tn, h as rn, i as or, j as Oe, k as It } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { useMask as ir, format as lt } from "@react-input/mask";
|
|
17
17
|
import { format as Z, addMonths as nn, parse as vt, isValid as We, parseISO as on } from "date-fns";
|
|
18
|
-
import { ru as
|
|
18
|
+
import { ru as pt } from "date-fns/locale";
|
|
19
19
|
import { DayPicker as an } from "react-day-picker";
|
|
20
20
|
import at from "echarts-for-react/lib/core";
|
|
21
21
|
import { colorTokens as Ye } from "../tokens/index.js";
|
|
@@ -26,14 +26,14 @@ const wo = ({
|
|
|
26
26
|
icon: a,
|
|
27
27
|
iconSizes: o,
|
|
28
28
|
disabled: r = !1,
|
|
29
|
-
title:
|
|
29
|
+
title: p,
|
|
30
30
|
subtitle: d,
|
|
31
31
|
classNames: l,
|
|
32
32
|
onClick: u
|
|
33
33
|
}) => {
|
|
34
34
|
const h = ve.root, f = ve.header, x = ve.icon, g = ve.content, b = ve.titlesWrapper, s = ve.title, k = ve.subtitle;
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ c("div", { className: n(h, l == null ? void 0 : l.root), children: [
|
|
36
|
+
/* @__PURE__ */ c(
|
|
37
37
|
"button",
|
|
38
38
|
{
|
|
39
39
|
type: "button",
|
|
@@ -47,8 +47,8 @@ const wo = ({
|
|
|
47
47
|
),
|
|
48
48
|
onClick: u,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ c("div", { className: n(b, l == null ? void 0 : l.wrapperTitles), children: [
|
|
51
|
+
/* @__PURE__ */ c("div", { className: f.title, children: [
|
|
52
52
|
!!a && /* @__PURE__ */ e(
|
|
53
53
|
a,
|
|
54
54
|
{
|
|
@@ -66,7 +66,7 @@ const wo = ({
|
|
|
66
66
|
r && "text-dark-30/25",
|
|
67
67
|
l == null ? void 0 : l.title
|
|
68
68
|
),
|
|
69
|
-
children:
|
|
69
|
+
children: p
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] }),
|
|
@@ -109,7 +109,7 @@ const wo = ({
|
|
|
109
109
|
t ? g.opened : g.closed,
|
|
110
110
|
l == null ? void 0 : l.content
|
|
111
111
|
),
|
|
112
|
-
onClick: (
|
|
112
|
+
onClick: (y) => y.stopPropagation(),
|
|
113
113
|
children: i
|
|
114
114
|
}
|
|
115
115
|
)
|
|
@@ -138,9 +138,9 @@ const wo = ({
|
|
|
138
138
|
labelPosition: a = "right",
|
|
139
139
|
className: o,
|
|
140
140
|
disabled: r,
|
|
141
|
-
checked:
|
|
141
|
+
checked: p,
|
|
142
142
|
...d
|
|
143
|
-
}) => /* @__PURE__ */
|
|
143
|
+
}) => /* @__PURE__ */ c(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
146
146
|
className: n(
|
|
@@ -155,11 +155,11 @@ const wo = ({
|
|
|
155
155
|
st,
|
|
156
156
|
{
|
|
157
157
|
id: t,
|
|
158
|
-
checked:
|
|
158
|
+
checked: p,
|
|
159
159
|
disabled: r,
|
|
160
160
|
className: n(
|
|
161
161
|
!r && pe.checkbox.base,
|
|
162
|
-
!r &&
|
|
162
|
+
!r && p && pe.checkbox.hover
|
|
163
163
|
),
|
|
164
164
|
...d
|
|
165
165
|
}
|
|
@@ -170,8 +170,8 @@ const wo = ({
|
|
|
170
170
|
htmlFor: t,
|
|
171
171
|
className: n(
|
|
172
172
|
pe.label.base,
|
|
173
|
-
!r &&
|
|
174
|
-
!r &&
|
|
173
|
+
!r && p && pe.label.checked,
|
|
174
|
+
!r && p && pe.label.hover,
|
|
175
175
|
r && pe.label.disabled
|
|
176
176
|
),
|
|
177
177
|
children: i
|
|
@@ -202,18 +202,18 @@ function yo({
|
|
|
202
202
|
select: o = [],
|
|
203
203
|
setSelect: r = () => {
|
|
204
204
|
},
|
|
205
|
-
sorting:
|
|
205
|
+
sorting: p = [],
|
|
206
206
|
onSortChange: d,
|
|
207
207
|
isCheckboxVisible: l = !0,
|
|
208
208
|
isLoading: u = !1
|
|
209
209
|
}) {
|
|
210
|
-
const h =
|
|
210
|
+
const h = Br({
|
|
211
211
|
columns: i,
|
|
212
212
|
data: a,
|
|
213
|
-
getCoreRowModel:
|
|
213
|
+
getCoreRowModel: jr(),
|
|
214
214
|
manualSorting: !0
|
|
215
215
|
}), f = (b) => {
|
|
216
|
-
const s =
|
|
216
|
+
const s = p == null ? void 0 : p.find((y) => y.id === b), k = s != null && s.desc ? "asc" : "desc";
|
|
217
217
|
d == null || d({ key: b, order: k });
|
|
218
218
|
}, x = (b) => {
|
|
219
219
|
o != null && o.includes(b) ? r(o.filter((s) => s !== b)) : r([...o, b]);
|
|
@@ -224,16 +224,16 @@ function yo({
|
|
|
224
224
|
});
|
|
225
225
|
(o == null ? void 0 : o.length) === b.length ? r([]) : r(b);
|
|
226
226
|
};
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ c("div", { className: n(J.root, t == null ? void 0 : t.root), children: [
|
|
228
228
|
u && /* @__PURE__ */ e(rt, {}),
|
|
229
|
-
!u && !a.length && /* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */ e(
|
|
229
|
+
!u && !a.length && /* @__PURE__ */ c("div", { className: J.info, children: [
|
|
230
|
+
/* @__PURE__ */ e(Ir, { className: "fill-dark-30/50" }),
|
|
231
231
|
/* @__PURE__ */ e(w, { className: J.infoText, children: "Нет данных" })
|
|
232
232
|
] }),
|
|
233
|
-
/* @__PURE__ */ e("div", { className: n(J.container, t == null ? void 0 : t.container), children: /* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ e("div", { className: n(J.container, t == null ? void 0 : t.container), children: /* @__PURE__ */ c("table", { className: n(J.table, t == null ? void 0 : t.table), children: [
|
|
234
234
|
/* @__PURE__ */ e("thead", { className: J.tableHeader, children: h.getHeaderGroups().map((b) => {
|
|
235
235
|
var s, k;
|
|
236
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ c("tr", { children: [
|
|
237
237
|
l && /* @__PURE__ */ e(
|
|
238
238
|
"th",
|
|
239
239
|
{
|
|
@@ -251,37 +251,37 @@ function yo({
|
|
|
251
251
|
)
|
|
252
252
|
}
|
|
253
253
|
),
|
|
254
|
-
b.headers.map((
|
|
254
|
+
b.headers.map((y, D) => {
|
|
255
255
|
var B;
|
|
256
|
-
const S =
|
|
256
|
+
const S = y.column.columnDef.meta;
|
|
257
257
|
return /* @__PURE__ */ e(
|
|
258
258
|
"th",
|
|
259
259
|
{
|
|
260
|
-
colSpan:
|
|
260
|
+
colSpan: y.colSpan,
|
|
261
261
|
className: n(
|
|
262
262
|
J.headerCell,
|
|
263
263
|
S == null ? void 0 : S.headerClass,
|
|
264
|
-
|
|
264
|
+
y.index === b.headers.length - 1 && "rounded-r-[10px]",
|
|
265
265
|
!l && D === 0 && J.firstHeaderCell
|
|
266
266
|
),
|
|
267
|
-
onClick: () => (S == null ? void 0 : S.isSortable) && f(
|
|
268
|
-
children: /* @__PURE__ */
|
|
267
|
+
onClick: () => (S == null ? void 0 : S.isSortable) && f(y.column.id),
|
|
268
|
+
children: /* @__PURE__ */ c("div", { className: J.headerText, children: [
|
|
269
269
|
jt(
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
y.column.columnDef.header,
|
|
271
|
+
y.getContext()
|
|
272
272
|
),
|
|
273
273
|
(S == null ? void 0 : S.isSortable) && /* @__PURE__ */ e(
|
|
274
|
-
|
|
274
|
+
ur,
|
|
275
275
|
{
|
|
276
276
|
className: n(
|
|
277
277
|
J.sortIcon,
|
|
278
|
-
(B =
|
|
278
|
+
(B = p == null ? void 0 : p.find((m) => m.id === y.column.id)) != null && B.desc ? "rotate-0" : "rotate-180"
|
|
279
279
|
)
|
|
280
280
|
}
|
|
281
281
|
)
|
|
282
282
|
] })
|
|
283
283
|
},
|
|
284
|
-
|
|
284
|
+
y.id
|
|
285
285
|
);
|
|
286
286
|
})
|
|
287
287
|
] }, b.id);
|
|
@@ -289,7 +289,7 @@ function yo({
|
|
|
289
289
|
/* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((b) => {
|
|
290
290
|
var k;
|
|
291
291
|
const s = (k = b.original) == null ? void 0 : k.id;
|
|
292
|
-
return /* @__PURE__ */
|
|
292
|
+
return /* @__PURE__ */ c(
|
|
293
293
|
"tr",
|
|
294
294
|
{
|
|
295
295
|
className: n(
|
|
@@ -314,8 +314,8 @@ function yo({
|
|
|
314
314
|
)
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
|
-
b.getVisibleCells().map((
|
|
318
|
-
const B =
|
|
317
|
+
b.getVisibleCells().map((y, D, S) => {
|
|
318
|
+
const B = y.column.columnDef.meta;
|
|
319
319
|
return /* @__PURE__ */ e(
|
|
320
320
|
"td",
|
|
321
321
|
{
|
|
@@ -327,11 +327,11 @@ function yo({
|
|
|
327
327
|
B == null ? void 0 : B.cellClass
|
|
328
328
|
),
|
|
329
329
|
children: jt(
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
y.column.columnDef.cell,
|
|
331
|
+
y.getContext()
|
|
332
332
|
)
|
|
333
333
|
},
|
|
334
|
-
|
|
334
|
+
y.id
|
|
335
335
|
);
|
|
336
336
|
})
|
|
337
337
|
]
|
|
@@ -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
|
-
}, ln = L.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })),
|
|
360
|
+
}, ln = L.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), pn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("ol", { ref: a, className: n(qe.list, t), ...i })), cn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("li", { ref: a, className: n(qe.item, t), ...i })), hn = L.forwardRef(
|
|
361
361
|
({ className: t, ...i }, a) => /* @__PURE__ */ e(
|
|
362
362
|
Ve,
|
|
363
363
|
{
|
|
@@ -391,7 +391,7 @@ const un = ({
|
|
|
391
391
|
...a,
|
|
392
392
|
children: t
|
|
393
393
|
}
|
|
394
|
-
), ko = ({ paths: t }) => /* @__PURE__ */ e(ln, { children: /* @__PURE__ */ e(
|
|
394
|
+
), ko = ({ paths: t }) => /* @__PURE__ */ e(ln, { children: /* @__PURE__ */ e(pn, { children: t.map((i, a) => /* @__PURE__ */ e(
|
|
395
395
|
fn,
|
|
396
396
|
{
|
|
397
397
|
label: i.label,
|
|
@@ -405,8 +405,8 @@ const un = ({
|
|
|
405
405
|
isLast: i,
|
|
406
406
|
label: a,
|
|
407
407
|
disabled: o
|
|
408
|
-
}) => /* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */ e(
|
|
408
|
+
}) => /* @__PURE__ */ c(et, { children: [
|
|
409
|
+
/* @__PURE__ */ e(cn, { children: /* @__PURE__ */ e(
|
|
410
410
|
hn,
|
|
411
411
|
{
|
|
412
412
|
className: n(i && "pointer-events-none"),
|
|
@@ -438,7 +438,7 @@ const un = ({
|
|
|
438
438
|
placeholder: a = "Введите пароль",
|
|
439
439
|
autoFocus: o = !1,
|
|
440
440
|
status: r,
|
|
441
|
-
label:
|
|
441
|
+
label: p = "Пароль",
|
|
442
442
|
isVisiblePassword: d = !1,
|
|
443
443
|
onChange: l,
|
|
444
444
|
onClick: u,
|
|
@@ -447,9 +447,9 @@ const un = ({
|
|
|
447
447
|
}) => /* @__PURE__ */ e(
|
|
448
448
|
St,
|
|
449
449
|
{
|
|
450
|
-
label:
|
|
450
|
+
label: p,
|
|
451
451
|
iconPosition: "right",
|
|
452
|
-
icon: d ?
|
|
452
|
+
icon: d ? Or : Ar,
|
|
453
453
|
onIconClick: u,
|
|
454
454
|
classNames: {
|
|
455
455
|
icon: bn.icon,
|
|
@@ -478,13 +478,13 @@ const un = ({
|
|
|
478
478
|
placeholder: a,
|
|
479
479
|
disabled: o,
|
|
480
480
|
status: r,
|
|
481
|
-
isSearchable:
|
|
481
|
+
isSearchable: p = !0,
|
|
482
482
|
selectedItems: d,
|
|
483
483
|
setSelectedItems: l,
|
|
484
484
|
classNames: u,
|
|
485
485
|
inputPlaceholder: h
|
|
486
486
|
}, f) => {
|
|
487
|
-
const [x, g] = A(""), [b, s] = A(!1), k = ie(null),
|
|
487
|
+
const [x, g] = A(""), [b, s] = A(!1), k = ie(null), y = ie(null);
|
|
488
488
|
zt(f, () => ({
|
|
489
489
|
open: () => s(!0),
|
|
490
490
|
close: () => s(!1),
|
|
@@ -507,15 +507,15 @@ const un = ({
|
|
|
507
507
|
C.stopPropagation(), l(d.filter((T) => T.value !== v)), (W = k.current) == null || W.focus();
|
|
508
508
|
}, B = (v) => {
|
|
509
509
|
g(v.target.value.toLowerCase());
|
|
510
|
-
},
|
|
510
|
+
}, m = i.filter(
|
|
511
511
|
(v) => v.label.toLowerCase().includes(x)
|
|
512
512
|
);
|
|
513
|
-
return /* @__PURE__ */
|
|
514
|
-
/* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ c("div", { className: n("flex flex-col", u == null ? void 0 : u.wrapper), children: [
|
|
514
|
+
/* @__PURE__ */ c("div", { className: R.labelWrapper, children: [
|
|
515
515
|
!!t && /* @__PURE__ */ e(ee, { disabled: o, className: u == null ? void 0 : u.label, children: t }),
|
|
516
516
|
r === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
517
517
|
] }),
|
|
518
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ c(
|
|
519
519
|
ae,
|
|
520
520
|
{
|
|
521
521
|
modal: !1,
|
|
@@ -542,7 +542,7 @@ const un = ({
|
|
|
542
542
|
},
|
|
543
543
|
u == null ? void 0 : u.trigger
|
|
544
544
|
),
|
|
545
|
-
children: /* @__PURE__ */
|
|
545
|
+
children: /* @__PURE__ */ c("div", { className: R.selectedItems, children: [
|
|
546
546
|
d.length === 0 && /* @__PURE__ */ e(
|
|
547
547
|
w,
|
|
548
548
|
{
|
|
@@ -553,7 +553,7 @@ const un = ({
|
|
|
553
553
|
children: a
|
|
554
554
|
}
|
|
555
555
|
),
|
|
556
|
-
d.map((v) => /* @__PURE__ */
|
|
556
|
+
d.map((v) => /* @__PURE__ */ c(
|
|
557
557
|
"div",
|
|
558
558
|
{
|
|
559
559
|
className: R.selectedItem,
|
|
@@ -602,15 +602,15 @@ const un = ({
|
|
|
602
602
|
] })
|
|
603
603
|
}
|
|
604
604
|
),
|
|
605
|
-
/* @__PURE__ */ e("div", { ref:
|
|
605
|
+
/* @__PURE__ */ e("div", { ref: y, className: "relative z-50", children: /* @__PURE__ */ c(
|
|
606
606
|
le,
|
|
607
607
|
{
|
|
608
|
-
container:
|
|
608
|
+
container: y.current,
|
|
609
609
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
610
610
|
className: n(R.options),
|
|
611
611
|
children: [
|
|
612
612
|
/* @__PURE__ */ e(w, { className: R.popoverLabel, children: t }),
|
|
613
|
-
|
|
613
|
+
p && /* @__PURE__ */ e("div", { className: R.wrapperInput, children: /* @__PURE__ */ e(
|
|
614
614
|
"input",
|
|
615
615
|
{
|
|
616
616
|
ref: k,
|
|
@@ -621,7 +621,7 @@ const un = ({
|
|
|
621
621
|
placeholder: h ?? "Поиск..."
|
|
622
622
|
}
|
|
623
623
|
) }),
|
|
624
|
-
|
|
624
|
+
m.length > 0 ? m.map((v, C, W) => /* @__PURE__ */ e(
|
|
625
625
|
dn,
|
|
626
626
|
{
|
|
627
627
|
id: v.value.toString(),
|
|
@@ -637,9 +637,9 @@ const un = ({
|
|
|
637
637
|
},
|
|
638
638
|
v.value
|
|
639
639
|
)) : /* @__PURE__ */ e("div", { className: R.noItemsFound, children: "No items found" }),
|
|
640
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ c("div", { className: R.buttons, children: [
|
|
641
641
|
/* @__PURE__ */ e(
|
|
642
|
-
|
|
642
|
+
O,
|
|
643
643
|
{
|
|
644
644
|
variant: "secondary",
|
|
645
645
|
className: n(
|
|
@@ -651,7 +651,7 @@ const un = ({
|
|
|
651
651
|
}
|
|
652
652
|
),
|
|
653
653
|
/* @__PURE__ */ e(
|
|
654
|
-
|
|
654
|
+
O,
|
|
655
655
|
{
|
|
656
656
|
variant: "primary",
|
|
657
657
|
className: n(
|
|
@@ -709,7 +709,7 @@ const un = ({
|
|
|
709
709
|
disabled: a = !1,
|
|
710
710
|
isHasFilter: o = !0,
|
|
711
711
|
filterByModule: r,
|
|
712
|
-
onFilterClick:
|
|
712
|
+
onFilterClick: p,
|
|
713
713
|
debounceDelay: d = 1500,
|
|
714
714
|
onDebouncedSearch: l,
|
|
715
715
|
searchResults: u,
|
|
@@ -720,41 +720,41 @@ const un = ({
|
|
|
720
720
|
classNames: b,
|
|
721
721
|
...s
|
|
722
722
|
}, k) => {
|
|
723
|
-
const [
|
|
723
|
+
const [y, D] = A({
|
|
724
724
|
id: "",
|
|
725
725
|
label: ""
|
|
726
|
-
}), [S, B] = A(!1), [
|
|
726
|
+
}), [S, B] = A(!1), [m, v] = A(!1), C = er(t, d);
|
|
727
727
|
ge(() => {
|
|
728
728
|
B(!!C), l == null || l(C);
|
|
729
729
|
}, [C, l]);
|
|
730
|
-
const W =
|
|
731
|
-
/* @__PURE__ */ e(w, { className:
|
|
732
|
-
/* @__PURE__ */ e("div", { className:
|
|
730
|
+
const W = re.base, T = re.hover, I = re.focus, { focusWithin: z } = re, K = re.disabled, te = re.input, ue = re.button, fe = re.filterIcon, M = re.dropdown, j = re.popover, Y = re.emptyPopover, X = re.options, cr = ({ title: De, items: Ae }) => /* @__PURE__ */ c(hr, { children: [
|
|
731
|
+
/* @__PURE__ */ e(w, { className: M.typeFilter, children: De }),
|
|
732
|
+
/* @__PURE__ */ e("div", { className: X.items, children: Ae == null ? void 0 : Ae.map((Ze) => /* @__PURE__ */ e(
|
|
733
733
|
w,
|
|
734
734
|
{
|
|
735
735
|
onClick: () => D(Ze),
|
|
736
736
|
className: n(
|
|
737
|
-
|
|
738
|
-
Ze.id ===
|
|
737
|
+
X.itemsText,
|
|
738
|
+
Ze.id === y.id && "before:bg-dark-10 !font-bold"
|
|
739
739
|
),
|
|
740
740
|
children: Ze.label
|
|
741
741
|
},
|
|
742
742
|
Ze.id
|
|
743
743
|
)) })
|
|
744
744
|
] });
|
|
745
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ c(
|
|
746
746
|
"div",
|
|
747
747
|
{
|
|
748
748
|
className: n(
|
|
749
749
|
W,
|
|
750
750
|
!a && z,
|
|
751
|
-
(
|
|
752
|
-
!(
|
|
753
|
-
a &&
|
|
751
|
+
(m || S) && !a && I,
|
|
752
|
+
!(m || S) && !a && T,
|
|
753
|
+
a && K,
|
|
754
754
|
b == null ? void 0 : b.base
|
|
755
755
|
),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ c(nt, { open: m, onOpenChange: v, children: [
|
|
758
758
|
/* @__PURE__ */ e(ot, { asChild: !0, disabled: a, children: o && /* @__PURE__ */ e(
|
|
759
759
|
"button",
|
|
760
760
|
{
|
|
@@ -764,37 +764,37 @@ const un = ({
|
|
|
764
764
|
type: "button",
|
|
765
765
|
className: "outline-none",
|
|
766
766
|
children: /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
Kr,
|
|
768
768
|
{
|
|
769
769
|
width: 14,
|
|
770
770
|
height: 14,
|
|
771
771
|
className: n(
|
|
772
|
-
|
|
773
|
-
!a &&
|
|
774
|
-
a &&
|
|
775
|
-
|
|
772
|
+
fe.icon,
|
|
773
|
+
!a && fe.hover,
|
|
774
|
+
a && fe.disabled,
|
|
775
|
+
m && fe.active
|
|
776
776
|
)
|
|
777
777
|
}
|
|
778
778
|
)
|
|
779
779
|
}
|
|
780
780
|
) }),
|
|
781
|
-
/* @__PURE__ */
|
|
781
|
+
/* @__PURE__ */ c(
|
|
782
782
|
it,
|
|
783
783
|
{
|
|
784
784
|
align: "start",
|
|
785
785
|
sideOffset: 18,
|
|
786
786
|
alignOffset: -12,
|
|
787
787
|
onInteractOutside: (De) => De.preventDefault(),
|
|
788
|
-
className: n(
|
|
788
|
+
className: n(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:
|
|
792
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ e("div", { className: M.wrapperModule, children: /* @__PURE__ */ e(cr, { title: "Поиск по модулям", items: r }) }),
|
|
792
|
+
/* @__PURE__ */ c("div", { className: ue.parent, children: [
|
|
793
793
|
/* @__PURE__ */ e(
|
|
794
|
-
|
|
794
|
+
O,
|
|
795
795
|
{
|
|
796
796
|
variant: "secondary",
|
|
797
|
-
className: n(
|
|
797
|
+
className: n(ue.base, ue.cancel),
|
|
798
798
|
onClick: () => {
|
|
799
799
|
D({ label: "", id: "" }), v(!1);
|
|
800
800
|
},
|
|
@@ -802,12 +802,12 @@ const un = ({
|
|
|
802
802
|
}
|
|
803
803
|
),
|
|
804
804
|
/* @__PURE__ */ e(
|
|
805
|
-
|
|
805
|
+
O,
|
|
806
806
|
{
|
|
807
807
|
onClick: () => {
|
|
808
|
-
|
|
808
|
+
p && p(y), v(!1);
|
|
809
809
|
},
|
|
810
|
-
className: n(
|
|
810
|
+
className: n(ue.base, ue.save),
|
|
811
811
|
children: "Сохранить"
|
|
812
812
|
}
|
|
813
813
|
)
|
|
@@ -816,8 +816,8 @@ const un = ({
|
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
] }),
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */ e(de, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ c(ae, { open: S, children: [
|
|
820
|
+
/* @__PURE__ */ e(de, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ c("div", { className: te.wrapper, children: [
|
|
821
821
|
/* @__PURE__ */ e(
|
|
822
822
|
"input",
|
|
823
823
|
{
|
|
@@ -828,7 +828,7 @@ const un = ({
|
|
|
828
828
|
type: "text",
|
|
829
829
|
placeholder: "Поиск",
|
|
830
830
|
onChange: i,
|
|
831
|
-
className: n(
|
|
831
|
+
className: n(te.base, b == null ? void 0 : b.input),
|
|
832
832
|
disabled: a
|
|
833
833
|
}
|
|
834
834
|
),
|
|
@@ -836,8 +836,8 @@ const un = ({
|
|
|
836
836
|
Pt,
|
|
837
837
|
{
|
|
838
838
|
className: n(
|
|
839
|
-
|
|
840
|
-
a &&
|
|
839
|
+
te.icon,
|
|
840
|
+
a && te.iconDisabled
|
|
841
841
|
)
|
|
842
842
|
}
|
|
843
843
|
)
|
|
@@ -850,9 +850,9 @@ const un = ({
|
|
|
850
850
|
sideOffset: 18,
|
|
851
851
|
alignOffset: o ? -42 : -76,
|
|
852
852
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
853
|
-
className: n(
|
|
854
|
-
children: g ? /* @__PURE__ */ e("div", { className:
|
|
855
|
-
/* @__PURE__ */
|
|
853
|
+
className: n(j.content, b == null ? void 0 : b.popover),
|
|
854
|
+
children: g ? /* @__PURE__ */ e("div", { className: Y.wrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }) : u && (u == null ? void 0 : u.length) > 0 ? /* @__PURE__ */ c("div", { className: j.wrapper, children: [
|
|
855
|
+
/* @__PURE__ */ c(w, { className: j.title, children: [
|
|
856
856
|
"Результаты (",
|
|
857
857
|
u == null ? void 0 : u.length,
|
|
858
858
|
")"
|
|
@@ -869,14 +869,14 @@ const un = ({
|
|
|
869
869
|
onClick: () => {
|
|
870
870
|
h == null || h(De), B(!1);
|
|
871
871
|
},
|
|
872
|
-
className:
|
|
872
|
+
className: j.item,
|
|
873
873
|
children: De
|
|
874
874
|
},
|
|
875
875
|
Ae
|
|
876
876
|
))
|
|
877
877
|
}
|
|
878
878
|
)
|
|
879
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
879
|
+
] }) : /* @__PURE__ */ e("div", { className: Y.wrapper, children: /* @__PURE__ */ e(w, { className: Y.text, children: "Нет результатов поиска" }) })
|
|
880
880
|
}
|
|
881
881
|
)
|
|
882
882
|
] })
|
|
@@ -884,7 +884,7 @@ const un = ({
|
|
|
884
884
|
}
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
|
-
),
|
|
887
|
+
), re = {
|
|
888
888
|
base: "relative w-[282px] bg-gray-50 flex items-center gap-6 rounded-lg p-3 border border-gray-50",
|
|
889
889
|
hover: "hover:border-primary-10/[.30] hover:cursor-pointer transition-colors duration-150",
|
|
890
890
|
focusWithin: "focus-within:bg-white focus-within:border-primary-10 focus-within:hover:border-primary-10 focus-within:ring-2 focus-within:ring-primary-10/[.20] focus-within:outline-none",
|
|
@@ -934,12 +934,12 @@ const un = ({
|
|
|
934
934
|
position: a = "right",
|
|
935
935
|
classNames: o,
|
|
936
936
|
avatarProps: r,
|
|
937
|
-
linkProps:
|
|
937
|
+
linkProps: p,
|
|
938
938
|
element: d,
|
|
939
939
|
isActive: l,
|
|
940
940
|
subText: u,
|
|
941
941
|
...h
|
|
942
|
-
}) => /* @__PURE__ */
|
|
942
|
+
}) => /* @__PURE__ */ c(
|
|
943
943
|
"div",
|
|
944
944
|
{
|
|
945
945
|
...h,
|
|
@@ -950,7 +950,7 @@ const un = ({
|
|
|
950
950
|
o == null ? void 0 : o.root
|
|
951
951
|
),
|
|
952
952
|
children: [
|
|
953
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ c(
|
|
954
954
|
"div",
|
|
955
955
|
{
|
|
956
956
|
className: n(
|
|
@@ -959,7 +959,7 @@ const un = ({
|
|
|
959
959
|
o == null ? void 0 : o.textWrapper
|
|
960
960
|
),
|
|
961
961
|
children: [
|
|
962
|
-
t &&
|
|
962
|
+
t && p ? /* @__PURE__ */ e(Ee, { ...p, children: t }) : /* @__PURE__ */ c(
|
|
963
963
|
w,
|
|
964
964
|
{
|
|
965
965
|
className: n(
|
|
@@ -986,9 +986,9 @@ const un = ({
|
|
|
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
|
-
}, gn = ({ file: t, onClick: i }) => /* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */ e(
|
|
991
|
-
/* @__PURE__ */
|
|
989
|
+
}, gn = ({ file: t, onClick: i }) => /* @__PURE__ */ c("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(fr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
|
|
991
|
+
/* @__PURE__ */ c("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: mt(t.size) })
|
|
994
994
|
] }),
|
|
@@ -1002,28 +1002,28 @@ const un = ({
|
|
|
1002
1002
|
viewBox: "0 0 20 20"
|
|
1003
1003
|
}
|
|
1004
1004
|
)
|
|
1005
|
-
] }), { Root: sn } =
|
|
1005
|
+
] }), { Root: sn } = rr, Do = L.forwardRef(
|
|
1006
1006
|
({
|
|
1007
1007
|
id: t,
|
|
1008
1008
|
files: i = [],
|
|
1009
1009
|
label: a,
|
|
1010
1010
|
placeholder: o,
|
|
1011
1011
|
multiple: r = !1,
|
|
1012
|
-
onFilesUpload:
|
|
1012
|
+
onFilesUpload: p,
|
|
1013
1013
|
onDelete: d,
|
|
1014
1014
|
classNames: l,
|
|
1015
1015
|
status: u,
|
|
1016
1016
|
disabled: h = !1,
|
|
1017
1017
|
...f
|
|
1018
1018
|
}, x) => {
|
|
1019
|
-
const [g, b] = L.useState(!1), s = L.useRef(null), k = me.root,
|
|
1019
|
+
const [g, b] = L.useState(!1), s = L.useRef(null), k = me.root, y = me.input, D = me.icon, S = me.placeholder, B = me.list, m = me.status, v = () => {
|
|
1020
1020
|
var W;
|
|
1021
1021
|
h || (b(!0), (W = s.current) == null || W.click());
|
|
1022
1022
|
}, C = () => {
|
|
1023
1023
|
b(!1);
|
|
1024
1024
|
};
|
|
1025
|
-
return /* @__PURE__ */
|
|
1026
|
-
/* @__PURE__ */
|
|
1025
|
+
return /* @__PURE__ */ c("div", { className: n(k, l == null ? void 0 : l.root), children: [
|
|
1026
|
+
/* @__PURE__ */ c("div", { className: me.label.wrapper, children: [
|
|
1027
1027
|
!!a && /* @__PURE__ */ e(
|
|
1028
1028
|
ee,
|
|
1029
1029
|
{
|
|
@@ -1035,7 +1035,7 @@ const un = ({
|
|
|
1035
1035
|
),
|
|
1036
1036
|
u === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1037
1037
|
] }),
|
|
1038
|
-
/* @__PURE__ */
|
|
1038
|
+
/* @__PURE__ */ c(
|
|
1039
1039
|
sn,
|
|
1040
1040
|
{
|
|
1041
1041
|
ref: x,
|
|
@@ -1044,10 +1044,10 @@ const un = ({
|
|
|
1044
1044
|
onPressedChange: b,
|
|
1045
1045
|
onBlur: C,
|
|
1046
1046
|
className: n(
|
|
1047
|
-
|
|
1048
|
-
!h &&
|
|
1049
|
-
!h &&
|
|
1050
|
-
!h && !!u &&
|
|
1047
|
+
y.base,
|
|
1048
|
+
!h && y.pressed,
|
|
1049
|
+
!h && y.hover,
|
|
1050
|
+
!h && !!u && m.danger,
|
|
1051
1051
|
l == null ? void 0 : l.input,
|
|
1052
1052
|
{
|
|
1053
1053
|
"items-start": i.length > 0
|
|
@@ -1064,7 +1064,7 @@ const un = ({
|
|
|
1064
1064
|
multiple: r,
|
|
1065
1065
|
accept: "application/pdf, .doc, .docx, .xls, .xlsx",
|
|
1066
1066
|
onChange: (W) => {
|
|
1067
|
-
|
|
1067
|
+
p(W), W.target.value = "";
|
|
1068
1068
|
},
|
|
1069
1069
|
className: "hidden",
|
|
1070
1070
|
...f
|
|
@@ -1079,9 +1079,9 @@ const un = ({
|
|
|
1079
1079
|
}
|
|
1080
1080
|
},
|
|
1081
1081
|
W.id
|
|
1082
|
-
)) }) : /* @__PURE__ */
|
|
1082
|
+
)) }) : /* @__PURE__ */ c(L.Fragment, { children: [
|
|
1083
1083
|
/* @__PURE__ */ e(
|
|
1084
|
-
|
|
1084
|
+
br,
|
|
1085
1085
|
{
|
|
1086
1086
|
"data-testid": "file-upload-icon",
|
|
1087
1087
|
width: 16,
|
|
@@ -1118,10 +1118,10 @@ const un = ({
|
|
|
1118
1118
|
variant: a = "comment",
|
|
1119
1119
|
classNames: o,
|
|
1120
1120
|
isLoading: r = !1,
|
|
1121
|
-
onDelete:
|
|
1121
|
+
onDelete: p
|
|
1122
1122
|
}) => {
|
|
1123
1123
|
const d = a === "review";
|
|
1124
|
-
return /* @__PURE__ */
|
|
1124
|
+
return /* @__PURE__ */ c("div", { className: n(U.root, o == null ? void 0 : o.root), children: [
|
|
1125
1125
|
!(t != null && t.length) && (r ? /* @__PURE__ */ e(rt, {}) : /* @__PURE__ */ e(
|
|
1126
1126
|
w,
|
|
1127
1127
|
{
|
|
@@ -1134,7 +1134,7 @@ const un = ({
|
|
|
1134
1134
|
}
|
|
1135
1135
|
)),
|
|
1136
1136
|
t.map(
|
|
1137
|
-
({ id: l, avatarSrc: u, fullName: h, role: f, comment: x, date: g, time: b, stars: s = 0 }) => /* @__PURE__ */
|
|
1137
|
+
({ id: l, avatarSrc: u, fullName: h, role: f, comment: x, date: g, time: b, stars: s = 0 }) => /* @__PURE__ */ c("div", { className: U.wrapper, children: [
|
|
1138
1138
|
/* @__PURE__ */ e(
|
|
1139
1139
|
Dt,
|
|
1140
1140
|
{
|
|
@@ -1164,7 +1164,7 @@ const un = ({
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
),
|
|
1167
|
-
/* @__PURE__ */
|
|
1167
|
+
/* @__PURE__ */ c(
|
|
1168
1168
|
"div",
|
|
1169
1169
|
{
|
|
1170
1170
|
className: n(
|
|
@@ -1174,7 +1174,7 @@ const un = ({
|
|
|
1174
1174
|
),
|
|
1175
1175
|
children: [
|
|
1176
1176
|
d && /* @__PURE__ */ e(
|
|
1177
|
-
|
|
1177
|
+
lr,
|
|
1178
1178
|
{
|
|
1179
1179
|
rating: s,
|
|
1180
1180
|
classNames: {
|
|
@@ -1184,17 +1184,17 @@ const un = ({
|
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
1186
|
/* @__PURE__ */ e(w, { variant: "p", className: U.commentText, children: x }),
|
|
1187
|
-
/* @__PURE__ */
|
|
1187
|
+
/* @__PURE__ */ c(w, { variant: "span", className: U.commentDate, children: [
|
|
1188
1188
|
g,
|
|
1189
1189
|
" ",
|
|
1190
1190
|
b
|
|
1191
1191
|
] }),
|
|
1192
|
-
|
|
1192
|
+
p && /* @__PURE__ */ e(
|
|
1193
1193
|
wt,
|
|
1194
1194
|
{
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: Fr,
|
|
1196
1196
|
shape: "circle",
|
|
1197
|
-
onClick: () =>
|
|
1197
|
+
onClick: () => p(l),
|
|
1198
1198
|
classNames: {
|
|
1199
1199
|
button: U.delete.button,
|
|
1200
1200
|
icon: U.delete.icon
|
|
@@ -1251,11 +1251,11 @@ const un = ({
|
|
|
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
|
+
}, ct = (t) => {
|
|
1255
1255
|
const i = t.getDate().toString().padStart(2, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getFullYear();
|
|
1256
1256
|
return `${i}/${a}/${o}`;
|
|
1257
1257
|
}, vn = (t) => {
|
|
1258
|
-
const i = t.getFullYear(), a = t.getMonth(), o = new Date(i, a, 1),
|
|
1258
|
+
const i = t.getFullYear(), a = t.getMonth(), o = new Date(i, a, 1), p = new Date(i, a + 1, 0).getDate();
|
|
1259
1259
|
let d = o.getDay();
|
|
1260
1260
|
d = d === 0 ? 6 : d - 1;
|
|
1261
1261
|
const l = [];
|
|
@@ -1263,7 +1263,7 @@ const un = ({
|
|
|
1263
1263
|
const f = new Date(i, a, 1 - (d - h));
|
|
1264
1264
|
l.push({ date: f, isCurrentMonth: !1 });
|
|
1265
1265
|
}
|
|
1266
|
-
for (let h = 1; h <=
|
|
1266
|
+
for (let h = 1; h <= p; h++)
|
|
1267
1267
|
l.push({ date: new Date(i, a, h), isCurrentMonth: !0 });
|
|
1268
1268
|
const u = 42 - l.length;
|
|
1269
1269
|
for (let h = 1; h <= u; h++)
|
|
@@ -1304,10 +1304,10 @@ const un = ({
|
|
|
1304
1304
|
return null;
|
|
1305
1305
|
}, Bn = (t, i, a = /* @__PURE__ */ new Date(), o) => {
|
|
1306
1306
|
const r = i ? Sn(i) : null;
|
|
1307
|
-
return vn(a).map((
|
|
1308
|
-
const { date: l, isCurrentMonth: u } =
|
|
1309
|
-
let x =
|
|
1310
|
-
return f ? x += ` ${
|
|
1307
|
+
return vn(a).map((p, d) => {
|
|
1308
|
+
const { date: l, isCurrentMonth: u } = p, h = l.getDate(), f = r ? l <= r : !1;
|
|
1309
|
+
let x = _.dayButton;
|
|
1310
|
+
return f ? x += ` ${_.dayDisabled}` : u ? kn(l, o ? new Date(o) : void 0) ? x += ` ${_.daySelected}` : wn(l) ? x += ` ${_.dayToday}` : yn(l) ? x += ` ${_.dayWeekend}` : x += ` ${_.dayNormal}` : x += ` ${_.dayOutside}`, /* @__PURE__ */ e(
|
|
1311
1311
|
"button",
|
|
1312
1312
|
{
|
|
1313
1313
|
onClick: (g) => {
|
|
@@ -1326,20 +1326,20 @@ const un = ({
|
|
|
1326
1326
|
classNames: a,
|
|
1327
1327
|
disabled: o,
|
|
1328
1328
|
label: r,
|
|
1329
|
-
status:
|
|
1329
|
+
status: p,
|
|
1330
1330
|
disabledDate: d
|
|
1331
1331
|
}) => {
|
|
1332
1332
|
const [l, u] = A(!1), [h, f] = A(
|
|
1333
1333
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1334
1334
|
), [x, g] = A(
|
|
1335
|
-
t ?
|
|
1335
|
+
t ? ct(new Date(t)) : ""
|
|
1336
1336
|
);
|
|
1337
1337
|
ge(() => {
|
|
1338
|
-
t ? (g(
|
|
1338
|
+
t ? (g(ct(new Date(t))), f(new Date(t))) : g("");
|
|
1339
1339
|
}, [t]);
|
|
1340
1340
|
const b = ie(null), s = ie(null), k = (v) => {
|
|
1341
|
-
i(v.toISOString()), g(
|
|
1342
|
-
},
|
|
1341
|
+
i(v.toISOString()), g(ct(v)), u(!1);
|
|
1342
|
+
}, y = (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)), g(C), !C || C.trim() === "") {
|
|
1345
1345
|
i(void 0);
|
|
@@ -1349,8 +1349,8 @@ const un = ({
|
|
|
1349
1349
|
if (W.length === 3) {
|
|
1350
1350
|
const T = parseInt(W[0]), I = parseInt(W[1]) - 1, z = parseInt(W[2]);
|
|
1351
1351
|
if (T > 0 && T <= 31 && I >= 0 && I <= 11 && z > 1900) {
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1352
|
+
const K = new Date(z, I, T);
|
|
1353
|
+
K.getDate() === T && K.getMonth() === I && K.getFullYear() === z && (i(K.toISOString()), f(new Date(z, I, 1)));
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}, D = (v) => {
|
|
@@ -1362,44 +1362,44 @@ const un = ({
|
|
|
1362
1362
|
}, B = (v) => {
|
|
1363
1363
|
const C = parseInt(v);
|
|
1364
1364
|
f(new Date(C, h.getMonth(), 1));
|
|
1365
|
-
},
|
|
1365
|
+
}, m = (v) => {
|
|
1366
1366
|
v.stopPropagation(), v.preventDefault(), i(void 0), g(""), u(!1);
|
|
1367
1367
|
};
|
|
1368
|
-
return /* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1368
|
+
return /* @__PURE__ */ c("div", { className: _.base, children: [
|
|
1369
|
+
/* @__PURE__ */ c("div", { className: _.label.wrapper, children: [
|
|
1370
1370
|
!!r && /* @__PURE__ */ e(ee, { disabled: o, children: r }),
|
|
1371
|
-
|
|
1371
|
+
p === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1372
1372
|
] }),
|
|
1373
|
-
/* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ c(ae, { open: l, onOpenChange: u, children: [
|
|
1374
1374
|
/* @__PURE__ */ e(
|
|
1375
1375
|
de,
|
|
1376
1376
|
{
|
|
1377
1377
|
asChild: !0,
|
|
1378
1378
|
className: n(
|
|
1379
|
-
|
|
1380
|
-
!o &&
|
|
1381
|
-
l &&
|
|
1382
|
-
o &&
|
|
1383
|
-
!o && !l &&
|
|
1384
|
-
!o &&
|
|
1385
|
-
!o &&
|
|
1379
|
+
_.inputWrapper.base,
|
|
1380
|
+
!o && _.inputWrapper.active,
|
|
1381
|
+
l && _.inputWrapper.focus,
|
|
1382
|
+
o && _.inputWrapper.disabled,
|
|
1383
|
+
!o && !l && _.inputWrapper.hover,
|
|
1384
|
+
!o && _.inputWrapper.pressed,
|
|
1385
|
+
!o && p === "danger" && _.status.danger,
|
|
1386
1386
|
a == null ? void 0 : a.inputWrapper
|
|
1387
1387
|
),
|
|
1388
|
-
children: /* @__PURE__ */
|
|
1388
|
+
children: /* @__PURE__ */ c("div", { className: "flex items-center", children: [
|
|
1389
1389
|
/* @__PURE__ */ e(
|
|
1390
1390
|
"input",
|
|
1391
1391
|
{
|
|
1392
1392
|
type: "text",
|
|
1393
1393
|
value: x,
|
|
1394
|
-
onChange:
|
|
1394
|
+
onChange: y,
|
|
1395
1395
|
placeholder: "__ / __ / ____",
|
|
1396
1396
|
disabled: o,
|
|
1397
1397
|
className: n(
|
|
1398
|
-
|
|
1399
|
-
!o && l &&
|
|
1400
|
-
!o && !l &&
|
|
1401
|
-
!o &&
|
|
1402
|
-
o &&
|
|
1398
|
+
_.input.base,
|
|
1399
|
+
!o && l && _.input.focus,
|
|
1400
|
+
!o && !l && _.input.hover,
|
|
1401
|
+
!o && _.input.pressed,
|
|
1402
|
+
o && _.input.disabled,
|
|
1403
1403
|
a == null ? void 0 : a.input
|
|
1404
1404
|
),
|
|
1405
1405
|
onClick: () => u(!l)
|
|
@@ -1413,11 +1413,11 @@ const un = ({
|
|
|
1413
1413
|
},
|
|
1414
1414
|
disabled: o,
|
|
1415
1415
|
className: n(
|
|
1416
|
-
|
|
1417
|
-
!o && l &&
|
|
1418
|
-
!o && !l &&
|
|
1419
|
-
!o &&
|
|
1420
|
-
o &&
|
|
1416
|
+
_.calendarButton.base,
|
|
1417
|
+
!o && l && _.calendarButton.focus,
|
|
1418
|
+
!o && !l && _.calendarButton.hover,
|
|
1419
|
+
!o && _.calendarButton.active,
|
|
1420
|
+
o && _.calendarButton.disabled
|
|
1421
1421
|
),
|
|
1422
1422
|
children: /* @__PURE__ */ e(
|
|
1423
1423
|
Nt,
|
|
@@ -1426,11 +1426,11 @@ const un = ({
|
|
|
1426
1426
|
height: 18,
|
|
1427
1427
|
viewBox: "0 0 18 18",
|
|
1428
1428
|
className: n(
|
|
1429
|
-
|
|
1430
|
-
!o && l &&
|
|
1431
|
-
!o && !l &&
|
|
1432
|
-
!o &&
|
|
1433
|
-
o &&
|
|
1429
|
+
_.calendarIcon.base,
|
|
1430
|
+
!o && l && _.calendarIcon.focus,
|
|
1431
|
+
!o && !l && _.calendarIcon.hover,
|
|
1432
|
+
!o && _.calendarIcon.active,
|
|
1433
|
+
o && _.calendarIcon.disabled
|
|
1434
1434
|
)
|
|
1435
1435
|
}
|
|
1436
1436
|
)
|
|
@@ -1445,25 +1445,25 @@ const un = ({
|
|
|
1445
1445
|
role: "dialog",
|
|
1446
1446
|
ref: b,
|
|
1447
1447
|
container: s.current,
|
|
1448
|
-
className:
|
|
1449
|
-
children: /* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1448
|
+
className: _.popoverWrapper,
|
|
1449
|
+
children: /* @__PURE__ */ c("div", { children: [
|
|
1450
|
+
/* @__PURE__ */ c("div", { className: _.navigation, children: [
|
|
1451
1451
|
/* @__PURE__ */ e(
|
|
1452
1452
|
"button",
|
|
1453
1453
|
{
|
|
1454
1454
|
onClick: () => D(-1),
|
|
1455
|
-
className:
|
|
1455
|
+
className: _.navButton,
|
|
1456
1456
|
children: /* @__PURE__ */ e(
|
|
1457
1457
|
Ut,
|
|
1458
1458
|
{
|
|
1459
1459
|
width: 6,
|
|
1460
1460
|
height: 10,
|
|
1461
|
-
className:
|
|
1461
|
+
className: _.navButton
|
|
1462
1462
|
}
|
|
1463
1463
|
)
|
|
1464
1464
|
}
|
|
1465
1465
|
),
|
|
1466
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ c("div", { className: _.selectContainer, children: [
|
|
1467
1467
|
/* @__PURE__ */ e(
|
|
1468
1468
|
Te,
|
|
1469
1469
|
{
|
|
@@ -1500,27 +1500,27 @@ const un = ({
|
|
|
1500
1500
|
"button",
|
|
1501
1501
|
{
|
|
1502
1502
|
onClick: () => D(1),
|
|
1503
|
-
className:
|
|
1503
|
+
className: _.navButton,
|
|
1504
1504
|
children: /* @__PURE__ */ e(
|
|
1505
1505
|
Yt,
|
|
1506
1506
|
{
|
|
1507
1507
|
width: 6,
|
|
1508
1508
|
height: 10,
|
|
1509
|
-
className:
|
|
1509
|
+
className: _.navButton
|
|
1510
1510
|
}
|
|
1511
1511
|
)
|
|
1512
1512
|
}
|
|
1513
1513
|
)
|
|
1514
1514
|
] }),
|
|
1515
|
-
/* @__PURE__ */ e("div", { className:
|
|
1516
|
-
/* @__PURE__ */ e("div", { className:
|
|
1517
|
-
/* @__PURE__ */ e("div", { className:
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: _.weekHeader, children: Tn.map((v) => /* @__PURE__ */ e("div", { className: _.weekDay, children: v }, v)) }),
|
|
1516
|
+
/* @__PURE__ */ e("div", { className: _.calendar, children: Bn(k, d, h, t) }),
|
|
1517
|
+
/* @__PURE__ */ e("div", { className: _.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: m, className: _.resetButton, children: "Сбросить" }) })
|
|
1518
1518
|
] })
|
|
1519
1519
|
}
|
|
1520
1520
|
) })
|
|
1521
1521
|
] })
|
|
1522
1522
|
] });
|
|
1523
|
-
},
|
|
1523
|
+
}, _ = {
|
|
1524
1524
|
base: "relative flex items-start flex-col gap-1.5",
|
|
1525
1525
|
container: "w-full max-w-[132px] h-9",
|
|
1526
1526
|
inputContainer: "relative",
|
|
@@ -1588,43 +1588,43 @@ const un = ({
|
|
|
1588
1588
|
label: a,
|
|
1589
1589
|
status: o,
|
|
1590
1590
|
disabled: r = !1,
|
|
1591
|
-
classNames:
|
|
1591
|
+
classNames: p
|
|
1592
1592
|
}) => {
|
|
1593
|
-
const d = L.useId(), [l, u] = L.useState(/* @__PURE__ */ new Date()), [h, f] = L.useState(""), [x, g] = L.useState(!1), b =
|
|
1593
|
+
const d = L.useId(), [l, u] = L.useState(/* @__PURE__ */ new Date()), [h, f] = L.useState(""), [x, g] = L.useState(!1), b = ir({
|
|
1594
1594
|
mask: "__/__/____ - __/__/____",
|
|
1595
1595
|
replacement: { _: /\d/ }
|
|
1596
1596
|
}), s = L.useRef(null), k = L.useRef(!1);
|
|
1597
1597
|
L.useEffect(() => {
|
|
1598
1598
|
if (k.current || !t || !(t.to && t.from)) return;
|
|
1599
|
-
const
|
|
1600
|
-
f(v ? `${
|
|
1599
|
+
const m = t.from ? Z(new Date(t.from), N) : "", v = t.to ? Z(new Date(t.to), N) : "";
|
|
1600
|
+
f(v ? `${m} - ${v}` : `${m} - `);
|
|
1601
1601
|
}, [t]);
|
|
1602
|
-
const
|
|
1603
|
-
if (!
|
|
1602
|
+
const y = In.base, D = (m) => {
|
|
1603
|
+
if (!m)
|
|
1604
1604
|
f(""), i(void 0);
|
|
1605
|
-
else if (
|
|
1606
|
-
i(
|
|
1607
|
-
else if (
|
|
1608
|
-
if (
|
|
1609
|
-
const v = { from:
|
|
1605
|
+
else if (m.from && !m.to)
|
|
1606
|
+
i(m), u(m.from), f(Z(new Date(m.from), N) + " - ");
|
|
1607
|
+
else if (m.from && m.to)
|
|
1608
|
+
if (m.to < m.from) {
|
|
1609
|
+
const v = { from: m.to, to: m.from };
|
|
1610
1610
|
i(v), f(
|
|
1611
1611
|
Z(new Date(v.from), N) + " - " + Z(new Date(v.to), N)
|
|
1612
1612
|
);
|
|
1613
1613
|
} else
|
|
1614
|
-
i(
|
|
1615
|
-
Z(new Date(
|
|
1614
|
+
i(m), f(
|
|
1615
|
+
Z(new Date(m.from), N) + " - " + Z(new Date(m.to), N)
|
|
1616
1616
|
);
|
|
1617
|
-
}, S = (
|
|
1617
|
+
}, S = (m) => {
|
|
1618
1618
|
k.current = !0;
|
|
1619
|
-
const { value: v } =
|
|
1619
|
+
const { value: v } = m.target, [C, W] = v.split("-").map((z) => z.trim());
|
|
1620
1620
|
f(v);
|
|
1621
1621
|
const T = vt(C, N, /* @__PURE__ */ new Date()), I = W ? vt(W, N, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1622
1622
|
We(T) && We(I) ? i({ from: T, to: I }) : We(T) && !We(I) ? i({ from: T, to: void 0 }) : i({ from: void 0, to: void 0 });
|
|
1623
1623
|
}, B = () => {
|
|
1624
1624
|
f(""), i(void 0), u(/* @__PURE__ */ new Date());
|
|
1625
1625
|
};
|
|
1626
|
-
return /* @__PURE__ */ e("div", { className: n(
|
|
1627
|
-
/* @__PURE__ */ e(de, { asChild: !0, role: "trigger", className:
|
|
1626
|
+
return /* @__PURE__ */ e("div", { className: n(y.wrapper, p == null ? void 0 : p.wrapper), children: /* @__PURE__ */ c(ae, { open: x, onOpenChange: g, children: [
|
|
1627
|
+
/* @__PURE__ */ e(de, { asChild: !0, role: "trigger", className: p == null ? void 0 : p.trigger, children: /* @__PURE__ */ e(
|
|
1628
1628
|
St,
|
|
1629
1629
|
{
|
|
1630
1630
|
ref: b,
|
|
@@ -1638,7 +1638,7 @@ const un = ({
|
|
|
1638
1638
|
placeholder: "dd/mm/yyyy - dd/mm/yyyy",
|
|
1639
1639
|
status: o,
|
|
1640
1640
|
classNames: {
|
|
1641
|
-
target: n(
|
|
1641
|
+
target: n(y.input, p == null ? void 0 : p.input)
|
|
1642
1642
|
},
|
|
1643
1643
|
disabled: r
|
|
1644
1644
|
},
|
|
@@ -1654,7 +1654,7 @@ const un = ({
|
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
) }),
|
|
1657
|
-
/* @__PURE__ */ e("div", { ref: s, className: "relative z-50", children: /* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ e("div", { ref: s, className: "relative z-50", children: /* @__PURE__ */ c(
|
|
1658
1658
|
le,
|
|
1659
1659
|
{
|
|
1660
1660
|
role: "dialog",
|
|
@@ -1662,13 +1662,13 @@ const un = ({
|
|
|
1662
1662
|
side: "bottom",
|
|
1663
1663
|
align: "start",
|
|
1664
1664
|
container: s.current,
|
|
1665
|
-
className: n(
|
|
1665
|
+
className: n(y.content, p == null ? void 0 : p.content),
|
|
1666
1666
|
children: [
|
|
1667
1667
|
/* @__PURE__ */ e(
|
|
1668
1668
|
an,
|
|
1669
1669
|
{
|
|
1670
1670
|
month: l,
|
|
1671
|
-
locale:
|
|
1671
|
+
locale: pt,
|
|
1672
1672
|
onMonthChange: u,
|
|
1673
1673
|
mode: "range",
|
|
1674
1674
|
numberOfMonths: 2,
|
|
@@ -1677,9 +1677,9 @@ const un = ({
|
|
|
1677
1677
|
onSelect: D,
|
|
1678
1678
|
classNames: _n,
|
|
1679
1679
|
components: {
|
|
1680
|
-
DayButton: (
|
|
1680
|
+
DayButton: (m) => {
|
|
1681
1681
|
const v = jn(
|
|
1682
|
-
|
|
1682
|
+
m.day.date,
|
|
1683
1683
|
t == null ? void 0 : t.from,
|
|
1684
1684
|
t == null ? void 0 : t.to
|
|
1685
1685
|
);
|
|
@@ -1690,7 +1690,7 @@ const un = ({
|
|
|
1690
1690
|
D(void 0);
|
|
1691
1691
|
},
|
|
1692
1692
|
onClick: () => {
|
|
1693
|
-
const C = new Date(
|
|
1693
|
+
const C = new Date(m.day.date);
|
|
1694
1694
|
t != null && t.from ? C <= t.from ? D({
|
|
1695
1695
|
from: C,
|
|
1696
1696
|
to: t.from
|
|
@@ -1702,31 +1702,31 @@ const un = ({
|
|
|
1702
1702
|
to: void 0
|
|
1703
1703
|
});
|
|
1704
1704
|
},
|
|
1705
|
-
className:
|
|
1705
|
+
className: y.selectButton,
|
|
1706
1706
|
children: /* @__PURE__ */ e(
|
|
1707
1707
|
"div",
|
|
1708
1708
|
{
|
|
1709
1709
|
className: n(
|
|
1710
1710
|
"size-6 rounded-full flex items-center justify-center",
|
|
1711
|
-
(t == null ? void 0 : t.from) && Z(new Date(t == null ? void 0 : t.from), N) === Z(new Date(
|
|
1712
|
-
(t == null ? void 0 : t.to) && Z(new Date(t == null ? void 0 : t.to), N) === Z(new Date(
|
|
1711
|
+
(t == null ? void 0 : t.from) && Z(new Date(t == null ? void 0 : t.from), N) === Z(new Date(m.day.date), N) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1712
|
+
(t == null ? void 0 : t.to) && Z(new Date(t == null ? void 0 : t.to), N) === Z(new Date(m.day.date), N) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1713
1713
|
v && "!bg-primary-40 text-dark-50"
|
|
1714
1714
|
),
|
|
1715
|
-
children: /* @__PURE__ */ e(w, { className: "text-sm font-mono font-medium", children:
|
|
1715
|
+
children: /* @__PURE__ */ e(w, { className: "text-sm font-mono font-medium", children: m.children })
|
|
1716
1716
|
}
|
|
1717
1717
|
)
|
|
1718
1718
|
}
|
|
1719
1719
|
);
|
|
1720
1720
|
},
|
|
1721
|
-
Nav: (
|
|
1721
|
+
Nav: (m) => {
|
|
1722
1722
|
const {
|
|
1723
1723
|
className: v,
|
|
1724
1724
|
onNextClick: C,
|
|
1725
1725
|
onPreviousClick: W,
|
|
1726
1726
|
nextMonth: T,
|
|
1727
1727
|
previousMonth: I
|
|
1728
|
-
} =
|
|
1729
|
-
return /* @__PURE__ */
|
|
1728
|
+
} = m, z = l, K = nn(l, 1);
|
|
1729
|
+
return /* @__PURE__ */ c(
|
|
1730
1730
|
"div",
|
|
1731
1731
|
{
|
|
1732
1732
|
className: n(
|
|
@@ -1734,7 +1734,7 @@ const un = ({
|
|
|
1734
1734
|
v
|
|
1735
1735
|
),
|
|
1736
1736
|
children: [
|
|
1737
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ c("div", { className: "flex items-center w-1/2 bg-white", children: [
|
|
1738
1738
|
/* @__PURE__ */ e(
|
|
1739
1739
|
"button",
|
|
1740
1740
|
{
|
|
@@ -1752,10 +1752,10 @@ const un = ({
|
|
|
1752
1752
|
) })
|
|
1753
1753
|
}
|
|
1754
1754
|
),
|
|
1755
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(w, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(z, "MMMM yyyy", { locale:
|
|
1755
|
+
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(w, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(z, "MMMM yyyy", { locale: pt }) }) })
|
|
1756
1756
|
] }),
|
|
1757
|
-
/* @__PURE__ */
|
|
1758
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(w, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(
|
|
1757
|
+
/* @__PURE__ */ c("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(w, { className: "text-base text-dark-40 font-semibold font-mono", children: Z(K, "MMMM yyyy", { locale: pt }) }) }),
|
|
1759
1759
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1760
1760
|
Yt,
|
|
1761
1761
|
{
|
|
@@ -1774,13 +1774,13 @@ const un = ({
|
|
|
1774
1774
|
}
|
|
1775
1775
|
),
|
|
1776
1776
|
/* @__PURE__ */ e(
|
|
1777
|
-
|
|
1777
|
+
O,
|
|
1778
1778
|
{
|
|
1779
1779
|
variant: "text",
|
|
1780
1780
|
type: "button",
|
|
1781
1781
|
onClick: B,
|
|
1782
1782
|
classNames: {
|
|
1783
|
-
base:
|
|
1783
|
+
base: y.resetButton
|
|
1784
1784
|
},
|
|
1785
1785
|
children: "Сбросить"
|
|
1786
1786
|
}
|
|
@@ -1808,14 +1808,14 @@ const un = ({
|
|
|
1808
1808
|
options: a,
|
|
1809
1809
|
open: o,
|
|
1810
1810
|
setOpen: r,
|
|
1811
|
-
side:
|
|
1811
|
+
side: p = "bottom",
|
|
1812
1812
|
align: d = "start",
|
|
1813
1813
|
classNames: l
|
|
1814
1814
|
}) => {
|
|
1815
|
-
const [u, h] = L.useState(), [f] = yt(), x = qt(), g = (
|
|
1816
|
-
h(
|
|
1815
|
+
const [u, h] = L.useState(), [f] = yt(), x = qt(), g = (y) => {
|
|
1816
|
+
h(y), x(`${i}/${y.to}?${f.toString()}`);
|
|
1817
1817
|
}, b = _t.modal, s = b.item, k = _t.text;
|
|
1818
|
-
return /* @__PURE__ */
|
|
1818
|
+
return /* @__PURE__ */ c(nt, { open: o, onOpenChange: r, children: [
|
|
1819
1819
|
/* @__PURE__ */ e(
|
|
1820
1820
|
ot,
|
|
1821
1821
|
{
|
|
@@ -1827,11 +1827,11 @@ const un = ({
|
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
1828
|
it,
|
|
1829
1829
|
{
|
|
1830
|
-
side:
|
|
1830
|
+
side: p,
|
|
1831
1831
|
align: d,
|
|
1832
1832
|
className: n(b.content, l == null ? void 0 : l.content),
|
|
1833
|
-
children: a == null ? void 0 : a.map((
|
|
1834
|
-
const D = (u == null ? void 0 : u.id) ===
|
|
1833
|
+
children: a == null ? void 0 : a.map((y) => {
|
|
1834
|
+
const D = (u == null ? void 0 : u.id) === y.id;
|
|
1835
1835
|
return /* @__PURE__ */ e(
|
|
1836
1836
|
"div",
|
|
1837
1837
|
{
|
|
@@ -1840,10 +1840,10 @@ const un = ({
|
|
|
1840
1840
|
D && s.active,
|
|
1841
1841
|
D && (l == null ? void 0 : l.item)
|
|
1842
1842
|
),
|
|
1843
|
-
children: /* @__PURE__ */
|
|
1843
|
+
children: /* @__PURE__ */ c(
|
|
1844
1844
|
Tt,
|
|
1845
1845
|
{
|
|
1846
|
-
onClick: () => g(
|
|
1846
|
+
onClick: () => g(y),
|
|
1847
1847
|
className: n(
|
|
1848
1848
|
k.base,
|
|
1849
1849
|
D && "font-bold",
|
|
@@ -1860,12 +1860,12 @@ const un = ({
|
|
|
1860
1860
|
)
|
|
1861
1861
|
}
|
|
1862
1862
|
),
|
|
1863
|
-
/* @__PURE__ */ e("span", { children:
|
|
1863
|
+
/* @__PURE__ */ e("span", { children: y.label })
|
|
1864
1864
|
]
|
|
1865
1865
|
}
|
|
1866
1866
|
)
|
|
1867
1867
|
},
|
|
1868
|
-
|
|
1868
|
+
y.id
|
|
1869
1869
|
);
|
|
1870
1870
|
})
|
|
1871
1871
|
}
|
|
@@ -1889,31 +1889,31 @@ const un = ({
|
|
|
1889
1889
|
files: a = [],
|
|
1890
1890
|
mode: o = "upload",
|
|
1891
1891
|
onFilesUpload: r,
|
|
1892
|
-
onDelete:
|
|
1892
|
+
onDelete: p,
|
|
1893
1893
|
classNames: d
|
|
1894
|
-
}) => /* @__PURE__ */
|
|
1895
|
-
t && /* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */ e(
|
|
1897
|
-
/* @__PURE__ */
|
|
1894
|
+
}) => /* @__PURE__ */ c("div", { className: n(E.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
1895
|
+
t && /* @__PURE__ */ c("div", { className: E.header, children: [
|
|
1896
|
+
/* @__PURE__ */ e(xr, { className: E.headerIcon, role: "img" }),
|
|
1897
|
+
/* @__PURE__ */ c(w, { variant: "p", className: E.headerText, children: [
|
|
1898
1898
|
t,
|
|
1899
1899
|
"(",
|
|
1900
1900
|
a.length,
|
|
1901
1901
|
")"
|
|
1902
1902
|
] })
|
|
1903
1903
|
] }),
|
|
1904
|
-
/* @__PURE__ */
|
|
1905
|
-
a.length > 0 && a.map((l, u) => /* @__PURE__ */ e("div", { children: l.type.startsWith("image/") && l.publicUrl ? /* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ c("div", { className: n(E.container, d == null ? void 0 : d.container), children: [
|
|
1905
|
+
a.length > 0 && a.map((l, u) => /* @__PURE__ */ e("div", { children: l.type.startsWith("image/") && l.publicUrl ? /* @__PURE__ */ c(
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
|
-
className: n(
|
|
1908
|
+
className: n(E.imageWrapper, d == null ? void 0 : d.imageWrapper),
|
|
1909
1909
|
children: [
|
|
1910
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ c("div", { className: "relative group", children: [
|
|
1911
1911
|
/* @__PURE__ */ e(
|
|
1912
1912
|
"img",
|
|
1913
1913
|
{
|
|
1914
1914
|
src: l.publicUrl,
|
|
1915
1915
|
alt: l.name,
|
|
1916
|
-
className: n(
|
|
1916
|
+
className: n(E.image, d == null ? void 0 : d.image)
|
|
1917
1917
|
}
|
|
1918
1918
|
),
|
|
1919
1919
|
/* @__PURE__ */ e(
|
|
@@ -1921,8 +1921,8 @@ const un = ({
|
|
|
1921
1921
|
{
|
|
1922
1922
|
width: 20,
|
|
1923
1923
|
height: 20,
|
|
1924
|
-
className: n(
|
|
1925
|
-
onClick: () =>
|
|
1924
|
+
className: n(E.closeIcon),
|
|
1925
|
+
onClick: () => p == null ? void 0 : p(l.id)
|
|
1926
1926
|
}
|
|
1927
1927
|
)
|
|
1928
1928
|
] }),
|
|
@@ -1930,18 +1930,18 @@ const un = ({
|
|
|
1930
1930
|
Ee,
|
|
1931
1931
|
{
|
|
1932
1932
|
href: l.publicUrl,
|
|
1933
|
-
classNames: { root:
|
|
1933
|
+
classNames: { root: E.imageText },
|
|
1934
1934
|
isIconVisible: !1,
|
|
1935
1935
|
children: l.name
|
|
1936
1936
|
}
|
|
1937
1937
|
)
|
|
1938
1938
|
]
|
|
1939
1939
|
}
|
|
1940
|
-
) : /* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */ e(Gt, { className:
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
/* @__PURE__ */ e(w, { variant: "p", className:
|
|
1944
|
-
/* @__PURE__ */ e(w, { variant: "p", className:
|
|
1940
|
+
) : /* @__PURE__ */ c("div", { className: n(E.fileWrapper, d == null ? void 0 : d.file), children: [
|
|
1941
|
+
/* @__PURE__ */ e(Gt, { className: E.fileIcon, role: "img" }),
|
|
1942
|
+
/* @__PURE__ */ c("div", { children: [
|
|
1943
|
+
/* @__PURE__ */ e(w, { variant: "p", className: E.fileText, children: l.name }),
|
|
1944
|
+
/* @__PURE__ */ e(w, { variant: "p", className: E.fileSize, children: mt(l.size) })
|
|
1945
1945
|
] }),
|
|
1946
1946
|
/* @__PURE__ */ e(
|
|
1947
1947
|
Ee,
|
|
@@ -1951,10 +1951,10 @@ const un = ({
|
|
|
1951
1951
|
classNames: { root: "p-0" },
|
|
1952
1952
|
target: "_blank",
|
|
1953
1953
|
children: /* @__PURE__ */ e(
|
|
1954
|
-
|
|
1954
|
+
nr,
|
|
1955
1955
|
{
|
|
1956
1956
|
"data-testid": "download-icon",
|
|
1957
|
-
className:
|
|
1957
|
+
className: E.icon,
|
|
1958
1958
|
width: 24,
|
|
1959
1959
|
height: 24,
|
|
1960
1960
|
viewBox: "0 0 16 17"
|
|
@@ -1967,19 +1967,19 @@ const un = ({
|
|
|
1967
1967
|
{
|
|
1968
1968
|
width: 24,
|
|
1969
1969
|
height: 24,
|
|
1970
|
-
className:
|
|
1971
|
-
onClick: () =>
|
|
1970
|
+
className: E.icon,
|
|
1971
|
+
onClick: () => p == null ? void 0 : p(l.id),
|
|
1972
1972
|
viewBox: "0 0 20 20"
|
|
1973
1973
|
}
|
|
1974
1974
|
)
|
|
1975
1975
|
] }) }, u)),
|
|
1976
|
-
o === "upload" && /* @__PURE__ */
|
|
1976
|
+
o === "upload" && /* @__PURE__ */ c(
|
|
1977
1977
|
"label",
|
|
1978
1978
|
{
|
|
1979
1979
|
htmlFor: "file-upload",
|
|
1980
|
-
className: n(
|
|
1980
|
+
className: n(E.target, d == null ? void 0 : d.target),
|
|
1981
1981
|
children: [
|
|
1982
|
-
/* @__PURE__ */ e(
|
|
1982
|
+
/* @__PURE__ */ e(gr, { className: E.plusIcon, role: "img" }),
|
|
1983
1983
|
/* @__PURE__ */ e(
|
|
1984
1984
|
"input",
|
|
1985
1985
|
{
|
|
@@ -1987,7 +1987,7 @@ const un = ({
|
|
|
1987
1987
|
type: "file",
|
|
1988
1988
|
onChange: r,
|
|
1989
1989
|
multiple: !0,
|
|
1990
|
-
className:
|
|
1990
|
+
className: E.input
|
|
1991
1991
|
}
|
|
1992
1992
|
)
|
|
1993
1993
|
]
|
|
@@ -1998,11 +1998,11 @@ const un = ({
|
|
|
1998
1998
|
w,
|
|
1999
1999
|
{
|
|
2000
2000
|
variant: "p",
|
|
2001
|
-
className: n(
|
|
2001
|
+
className: n(E.description, d == null ? void 0 : d.description),
|
|
2002
2002
|
children: i
|
|
2003
2003
|
}
|
|
2004
2004
|
)
|
|
2005
|
-
] }),
|
|
2005
|
+
] }), E = {
|
|
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]",
|
|
@@ -2027,26 +2027,26 @@ const un = ({
|
|
|
2027
2027
|
onChange: a,
|
|
2028
2028
|
options: o,
|
|
2029
2029
|
placeholder: r = "Выберите тип",
|
|
2030
|
-
value:
|
|
2030
|
+
value: p,
|
|
2031
2031
|
icon: d,
|
|
2032
2032
|
iconSizes: l
|
|
2033
2033
|
}) => {
|
|
2034
|
-
const [u, h] = A(!1), x =
|
|
2035
|
-
className:
|
|
2034
|
+
const [u, h] = A(!1), x = tr(o)(p), g = ht.base, b = ht.disabled.trigger, s = ht.disabled.triggerText, k = ({
|
|
2035
|
+
className: y,
|
|
2036
2036
|
text: D = ""
|
|
2037
2037
|
}) => /* @__PURE__ */ e(
|
|
2038
2038
|
w,
|
|
2039
2039
|
{
|
|
2040
2040
|
className: n(
|
|
2041
2041
|
g.placeholder,
|
|
2042
|
-
|
|
2042
|
+
y,
|
|
2043
2043
|
i && s
|
|
2044
2044
|
),
|
|
2045
2045
|
children: D
|
|
2046
2046
|
}
|
|
2047
2047
|
);
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ c(nt, { open: u, onOpenChange: h, children: [
|
|
2049
|
+
/* @__PURE__ */ c(
|
|
2050
2050
|
ot,
|
|
2051
2051
|
{
|
|
2052
2052
|
role: "listbox",
|
|
@@ -2066,7 +2066,7 @@ const un = ({
|
|
|
2066
2066
|
className: n(g.icon, t == null ? void 0 : t.icon)
|
|
2067
2067
|
}
|
|
2068
2068
|
) : /* @__PURE__ */ e(k, { text: "Сортировать:", className: g.label }),
|
|
2069
|
-
|
|
2069
|
+
p ? /* @__PURE__ */ e(
|
|
2070
2070
|
k,
|
|
2071
2071
|
{
|
|
2072
2072
|
"data-testid": "dropdown-selected-option",
|
|
@@ -2087,7 +2087,7 @@ const un = ({
|
|
|
2087
2087
|
g.dropdownIcon,
|
|
2088
2088
|
u && "rotate-180 transition-transform"
|
|
2089
2089
|
),
|
|
2090
|
-
children: /* @__PURE__ */ e(
|
|
2090
|
+
children: /* @__PURE__ */ e(sr, { className: "fill-dark-30" })
|
|
2091
2091
|
}
|
|
2092
2092
|
)
|
|
2093
2093
|
]
|
|
@@ -2099,26 +2099,26 @@ const un = ({
|
|
|
2099
2099
|
className: n(g.content, t == null ? void 0 : t.content),
|
|
2100
2100
|
align: "end",
|
|
2101
2101
|
sideOffset: 1,
|
|
2102
|
-
children: o && (o == null ? void 0 : o.map((
|
|
2102
|
+
children: o && (o == null ? void 0 : o.map((y) => /* @__PURE__ */ e(
|
|
2103
2103
|
Tt,
|
|
2104
2104
|
{
|
|
2105
2105
|
className: g.items,
|
|
2106
2106
|
onClick: (D) => {
|
|
2107
|
-
D.stopPropagation(), a(
|
|
2107
|
+
D.stopPropagation(), a(y.value), h(!1);
|
|
2108
2108
|
},
|
|
2109
2109
|
children: /* @__PURE__ */ e(
|
|
2110
2110
|
w,
|
|
2111
2111
|
{
|
|
2112
2112
|
className: n(
|
|
2113
2113
|
g.item,
|
|
2114
|
-
|
|
2115
|
-
|
|
2114
|
+
p === y.value && "before:bg-dark-10",
|
|
2115
|
+
p === y.value ? "font-semibold" : "font-regular"
|
|
2116
2116
|
),
|
|
2117
|
-
children:
|
|
2117
|
+
children: y.label
|
|
2118
2118
|
}
|
|
2119
2119
|
)
|
|
2120
2120
|
},
|
|
2121
|
-
|
|
2121
|
+
y.value
|
|
2122
2122
|
)))
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
@@ -2147,10 +2147,10 @@ const un = ({
|
|
|
2147
2147
|
status: a,
|
|
2148
2148
|
classNames: o,
|
|
2149
2149
|
notification: r,
|
|
2150
|
-
time:
|
|
2150
|
+
time: p,
|
|
2151
2151
|
onClick: d,
|
|
2152
2152
|
isActive: l = !1
|
|
2153
|
-
}) => /* @__PURE__ */
|
|
2153
|
+
}) => /* @__PURE__ */ c(
|
|
2154
2154
|
"div",
|
|
2155
2155
|
{
|
|
2156
2156
|
className: n(
|
|
@@ -2178,8 +2178,8 @@ const un = ({
|
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
),
|
|
2181
|
-
/* @__PURE__ */
|
|
2182
|
-
/* @__PURE__ */ e("time", { className: n(Se.time, o == null ? void 0 : o.time), children:
|
|
2181
|
+
/* @__PURE__ */ c("div", { className: n(Se.timeWrapper, o == null ? void 0 : o.timeWrapper), children: [
|
|
2182
|
+
/* @__PURE__ */ e("time", { className: n(Se.time, o == null ? void 0 : o.time), children: p }),
|
|
2183
2183
|
!!r && /* @__PURE__ */ e(
|
|
2184
2184
|
w,
|
|
2185
2185
|
{
|
|
@@ -2200,18 +2200,18 @@ const un = ({
|
|
|
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
|
}, Wo = Q(
|
|
2203
|
-
({ classNames: t, disabled: i, item: { icon: a, label: o = "" }, ...r },
|
|
2203
|
+
({ classNames: t, disabled: i, item: { icon: a, label: o = "" }, ...r }, p) => /* @__PURE__ */ c(
|
|
2204
2204
|
"button",
|
|
2205
2205
|
{
|
|
2206
2206
|
type: "button",
|
|
2207
2207
|
role: "button",
|
|
2208
|
-
ref:
|
|
2208
|
+
ref: p,
|
|
2209
2209
|
disabled: i,
|
|
2210
2210
|
className: n(
|
|
2211
|
-
|
|
2211
|
+
be.base.container,
|
|
2212
2212
|
"group",
|
|
2213
|
-
i &&
|
|
2214
|
-
!i &&
|
|
2213
|
+
i && be.disabled.container,
|
|
2214
|
+
!i && be.hover.container,
|
|
2215
2215
|
t == null ? void 0 : t.container
|
|
2216
2216
|
),
|
|
2217
2217
|
...r,
|
|
@@ -2220,15 +2220,15 @@ const un = ({
|
|
|
2220
2220
|
"div",
|
|
2221
2221
|
{
|
|
2222
2222
|
className: n(
|
|
2223
|
-
|
|
2224
|
-
i &&
|
|
2223
|
+
be.base.iconWrapper,
|
|
2224
|
+
i && be.disabled.iconWrapper
|
|
2225
2225
|
),
|
|
2226
2226
|
children: /* @__PURE__ */ e(
|
|
2227
2227
|
a,
|
|
2228
2228
|
{
|
|
2229
2229
|
className: n(
|
|
2230
|
-
|
|
2231
|
-
i &&
|
|
2230
|
+
be.base.icon,
|
|
2231
|
+
i && be.disabled.icon,
|
|
2232
2232
|
t == null ? void 0 : t.icon
|
|
2233
2233
|
)
|
|
2234
2234
|
}
|
|
@@ -2239,8 +2239,8 @@ const un = ({
|
|
|
2239
2239
|
w,
|
|
2240
2240
|
{
|
|
2241
2241
|
className: n(
|
|
2242
|
-
|
|
2243
|
-
i &&
|
|
2242
|
+
be.base.label,
|
|
2243
|
+
i && be.disabled.label,
|
|
2244
2244
|
t == null ? void 0 : t.label
|
|
2245
2245
|
),
|
|
2246
2246
|
children: o
|
|
@@ -2249,7 +2249,7 @@ const un = ({
|
|
|
2249
2249
|
]
|
|
2250
2250
|
}
|
|
2251
2251
|
)
|
|
2252
|
-
),
|
|
2252
|
+
), be = {
|
|
2253
2253
|
base: {
|
|
2254
2254
|
container: "flex items-center gap-4 h-[73px] w-[400px] p-4 font-mono cursor-pointer rounded-[20px] shadow-[0px_4px_39.2px_-13px_#4242424A] border-2 border-transparent focus-visible:shadow-[0px_4px_39.2px_-13px_#4242424A,_inset_0_0_0_1px_#F9B800] outline-none focus-visible:border-primary-20/[.30] active:border-primary-30/[.30]",
|
|
2255
2255
|
label: "text-sm text-start leading-none text-dark-30 truncate max-w-[300px] font-bold",
|
|
@@ -2265,20 +2265,20 @@ const un = ({
|
|
|
2265
2265
|
hover: {
|
|
2266
2266
|
container: "hover:border-primary-20/[.30]"
|
|
2267
2267
|
}
|
|
2268
|
-
}, Mo = L.forwardRef(({ textareaProps: t, disabled: i, classNames: a, iconSizes: o, onIconClick: r },
|
|
2268
|
+
}, Mo = L.forwardRef(({ textareaProps: t, disabled: i, classNames: a, iconSizes: o, onIconClick: r }, p) => {
|
|
2269
2269
|
const d = Qe.base, l = Qe.button, u = (t == null ? void 0 : t.status) === "danger", h = L.useRef(null), f = (x) => {
|
|
2270
2270
|
var g;
|
|
2271
2271
|
x.key === "Enter" && (x.preventDefault(), (g = h.current) == null || g.click());
|
|
2272
2272
|
};
|
|
2273
|
-
return /* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ c("div", { className: n(Qe.parent, a == null ? void 0 : a.parent), children: [
|
|
2274
2274
|
u && /* @__PURE__ */ e(se, { className: "fill-danger-10 mb-[5px]" }),
|
|
2275
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ c("div", { className: n(Qe.wrapper, a == null ? void 0 : a.wrapper), children: [
|
|
2276
2276
|
/* @__PURE__ */ e(
|
|
2277
2277
|
Kt,
|
|
2278
2278
|
{
|
|
2279
2279
|
...t,
|
|
2280
2280
|
"aria-label": "Комментарий",
|
|
2281
|
-
ref:
|
|
2281
|
+
ref: p,
|
|
2282
2282
|
disabled: i,
|
|
2283
2283
|
className: n(d, a == null ? void 0 : a.target),
|
|
2284
2284
|
onKeyDown: f
|
|
@@ -2295,7 +2295,7 @@ const un = ({
|
|
|
2295
2295
|
a == null ? void 0 : a.button
|
|
2296
2296
|
),
|
|
2297
2297
|
children: /* @__PURE__ */ e(
|
|
2298
|
-
|
|
2298
|
+
vr,
|
|
2299
2299
|
{
|
|
2300
2300
|
width: o == null ? void 0 : o.width,
|
|
2301
2301
|
height: o == null ? void 0 : o.height,
|
|
@@ -2328,8 +2328,8 @@ const un = ({
|
|
|
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
|
-
},
|
|
2332
|
-
({ checked: t, classNames: i, disabled: a, label: o, ...r },
|
|
2331
|
+
}, ar = Q(
|
|
2332
|
+
({ checked: t, classNames: i, disabled: a, label: o, ...r }, p) => /* @__PURE__ */ c("div", { className: n(we.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
2333
2333
|
/* @__PURE__ */ e(
|
|
2334
2334
|
Vt,
|
|
2335
2335
|
{
|
|
@@ -2339,7 +2339,7 @@ const un = ({
|
|
|
2339
2339
|
),
|
|
2340
2340
|
disabled: a,
|
|
2341
2341
|
checked: t,
|
|
2342
|
-
ref:
|
|
2342
|
+
ref: p,
|
|
2343
2343
|
...r
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
@@ -2359,18 +2359,18 @@ const un = ({
|
|
|
2359
2359
|
)
|
|
2360
2360
|
] })
|
|
2361
2361
|
);
|
|
2362
|
-
|
|
2362
|
+
ar.displayName = "RadioGroup";
|
|
2363
2363
|
const On = ({
|
|
2364
2364
|
openDropdown: t,
|
|
2365
2365
|
setOpenDropdown: i,
|
|
2366
2366
|
isExpanded: a,
|
|
2367
|
-
item: { id: o, label: r, icon:
|
|
2367
|
+
item: { id: o, label: r, icon: p, to: d, subItems: l },
|
|
2368
2368
|
onSubNavClick: u
|
|
2369
2369
|
}) => {
|
|
2370
2370
|
const [h] = yt();
|
|
2371
|
-
return /* @__PURE__ */ e(
|
|
2372
|
-
/* @__PURE__ */
|
|
2373
|
-
|
|
2371
|
+
return /* @__PURE__ */ e(Lr, { type: "single", collapsible: !0, children: /* @__PURE__ */ c(zr, { value: String(o), children: [
|
|
2372
|
+
/* @__PURE__ */ c(
|
|
2373
|
+
Hr,
|
|
2374
2374
|
{
|
|
2375
2375
|
className: n(
|
|
2376
2376
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px] hover:data-[state=open]:bg-dark-20",
|
|
@@ -2384,7 +2384,7 @@ const On = ({
|
|
|
2384
2384
|
)
|
|
2385
2385
|
},
|
|
2386
2386
|
children: [
|
|
2387
|
-
!!
|
|
2387
|
+
!!p && (a ? /* @__PURE__ */ e(p, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
|
|
2388
2388
|
Wn,
|
|
2389
2389
|
{
|
|
2390
2390
|
triggerElement: /* @__PURE__ */ e(
|
|
@@ -2394,7 +2394,7 @@ const On = ({
|
|
|
2394
2394
|
!a && "p-4 flex items-center justify-center"
|
|
2395
2395
|
),
|
|
2396
2396
|
children: /* @__PURE__ */ e(
|
|
2397
|
-
|
|
2397
|
+
p,
|
|
2398
2398
|
{
|
|
2399
2399
|
className: n(
|
|
2400
2400
|
"fill-sidebar-10 shrink-0",
|
|
@@ -2426,7 +2426,7 @@ const On = ({
|
|
|
2426
2426
|
]
|
|
2427
2427
|
}
|
|
2428
2428
|
),
|
|
2429
|
-
a && /* @__PURE__ */ e(
|
|
2429
|
+
a && /* @__PURE__ */ e(Ur, { className: "flex flex-col gap-[2.5px] items-start", children: l == null ? void 0 : l.map((f) => /* @__PURE__ */ e(
|
|
2430
2430
|
kt,
|
|
2431
2431
|
{
|
|
2432
2432
|
to: `${d}/${f == null ? void 0 : f.to}?${h.toString()}`,
|
|
@@ -2447,22 +2447,22 @@ const On = ({
|
|
|
2447
2447
|
}) => {
|
|
2448
2448
|
const [o, r] = L.useState(
|
|
2449
2449
|
null
|
|
2450
|
-
),
|
|
2451
|
-
return /* @__PURE__ */
|
|
2450
|
+
), p = Xe.root, d = Xe.header, l = Xe.body, u = Xe.logo;
|
|
2451
|
+
return /* @__PURE__ */ c(
|
|
2452
2452
|
"aside",
|
|
2453
2453
|
{
|
|
2454
2454
|
role: "navigation",
|
|
2455
2455
|
"aria-label": "navigation",
|
|
2456
|
-
className: n(
|
|
2456
|
+
className: n(p.base, t && p.expanded),
|
|
2457
2457
|
children: [
|
|
2458
|
-
/* @__PURE__ */
|
|
2458
|
+
/* @__PURE__ */ c(
|
|
2459
2459
|
"div",
|
|
2460
2460
|
{
|
|
2461
2461
|
className: n(d.base, t && d.expanded),
|
|
2462
2462
|
children: [
|
|
2463
|
-
/* @__PURE__ */ e(kt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(
|
|
2463
|
+
/* @__PURE__ */ e(kt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(_r, {}) : /* @__PURE__ */ e(en, {}) }),
|
|
2464
2464
|
/* @__PURE__ */ e(
|
|
2465
|
-
|
|
2465
|
+
O,
|
|
2466
2466
|
{
|
|
2467
2467
|
type: "button",
|
|
2468
2468
|
variant: "text",
|
|
@@ -2529,7 +2529,7 @@ const On = ({
|
|
|
2529
2529
|
classNames: o,
|
|
2530
2530
|
isError: r = !1
|
|
2531
2531
|
}) => {
|
|
2532
|
-
const [
|
|
2532
|
+
const [p, d] = A(!1), l = ie(null), u = (h) => {
|
|
2533
2533
|
a(h), d(!1);
|
|
2534
2534
|
};
|
|
2535
2535
|
return /* @__PURE__ */ e(
|
|
@@ -2538,14 +2538,14 @@ const On = ({
|
|
|
2538
2538
|
ref: l,
|
|
2539
2539
|
className: o == null ? void 0 : o.parent,
|
|
2540
2540
|
"data-testid": "switcher-language",
|
|
2541
|
-
children: /* @__PURE__ */
|
|
2541
|
+
children: /* @__PURE__ */ c(ae, { open: p, onOpenChange: d, children: [
|
|
2542
2542
|
/* @__PURE__ */ e(de, { className: "focus-visible:outline-none", asChild: !0, children: /* @__PURE__ */ e(
|
|
2543
|
-
|
|
2543
|
+
O,
|
|
2544
2544
|
{
|
|
2545
2545
|
variant: "text",
|
|
2546
2546
|
icon: Ke,
|
|
2547
2547
|
iconPosition: "right",
|
|
2548
|
-
onClick: () => d(!
|
|
2548
|
+
onClick: () => d(!p),
|
|
2549
2549
|
"data-testid": "language-button",
|
|
2550
2550
|
iconDimensions: {
|
|
2551
2551
|
width: 17,
|
|
@@ -2554,7 +2554,7 @@ const On = ({
|
|
|
2554
2554
|
},
|
|
2555
2555
|
classNames: {
|
|
2556
2556
|
base: "p-0 gap-1 text-dark-40 group",
|
|
2557
|
-
icon: `fill-dark-40 ${
|
|
2557
|
+
icon: `fill-dark-40 ${p && "rotate-180"}`
|
|
2558
2558
|
},
|
|
2559
2559
|
children: i.label
|
|
2560
2560
|
}
|
|
@@ -2571,7 +2571,7 @@ const On = ({
|
|
|
2571
2571
|
children: /* @__PURE__ */ e("div", { className: n(ut.optionsWrapper), children: t.map((h) => {
|
|
2572
2572
|
const f = `radio-${h.value}`;
|
|
2573
2573
|
return /* @__PURE__ */ e(
|
|
2574
|
-
|
|
2574
|
+
ar,
|
|
2575
2575
|
{
|
|
2576
2576
|
id: f,
|
|
2577
2577
|
checked: h.value === (i == null ? void 0 : i.value),
|
|
@@ -2610,11 +2610,11 @@ const On = ({
|
|
|
2610
2610
|
];
|
|
2611
2611
|
function Fn(t, i) {
|
|
2612
2612
|
if (i <= 10)
|
|
2613
|
-
return Array.from({ length: i }, (
|
|
2613
|
+
return Array.from({ length: i }, (p, d) => d + 1);
|
|
2614
2614
|
const a = [], o = Math.max(t - 2, 1), r = Math.min(t + 2, i);
|
|
2615
2615
|
a.push(1), o > 2 && a.push("...");
|
|
2616
|
-
for (let
|
|
2617
|
-
|
|
2616
|
+
for (let p = o; p <= r; p++)
|
|
2617
|
+
p !== 1 && p !== i && a.push(p);
|
|
2618
2618
|
return r < i - 1 && a.push("..."), i > 1 && a.push(i), a;
|
|
2619
2619
|
}
|
|
2620
2620
|
const Fo = ({
|
|
@@ -2623,24 +2623,24 @@ const Fo = ({
|
|
|
2623
2623
|
totalPages: a,
|
|
2624
2624
|
limit: o = "10",
|
|
2625
2625
|
onLimitChange: r,
|
|
2626
|
-
totalItems:
|
|
2626
|
+
totalItems: p = 10,
|
|
2627
2627
|
className: d
|
|
2628
2628
|
}) => {
|
|
2629
|
-
const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o),
|
|
2630
|
-
return /* @__PURE__ */
|
|
2631
|
-
/* @__PURE__ */
|
|
2629
|
+
const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), p), x = Fn(t, a);
|
|
2630
|
+
return /* @__PURE__ */ c("div", { className: n(F.wrapper, d), children: [
|
|
2631
|
+
/* @__PURE__ */ c("div", { className: n(F.countWrapper.base), children: [
|
|
2632
2632
|
/* @__PURE__ */ e("p", { className: n(F.countWrapper.text), children: "Отображено: " }),
|
|
2633
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ c("span", { className: n(F.countWrapper.current), children: [
|
|
2634
2634
|
h,
|
|
2635
2635
|
" - ",
|
|
2636
2636
|
f,
|
|
2637
2637
|
" из ",
|
|
2638
|
-
|
|
2638
|
+
p
|
|
2639
2639
|
] })
|
|
2640
2640
|
] }),
|
|
2641
|
-
/* @__PURE__ */
|
|
2641
|
+
/* @__PURE__ */ c("div", { className: n(F.nav.base), children: [
|
|
2642
2642
|
/* @__PURE__ */ e(
|
|
2643
|
-
|
|
2643
|
+
O,
|
|
2644
2644
|
{
|
|
2645
2645
|
disabled: l,
|
|
2646
2646
|
"aria-label": "Previous Page",
|
|
@@ -2654,7 +2654,7 @@ const Fo = ({
|
|
|
2654
2654
|
)
|
|
2655
2655
|
},
|
|
2656
2656
|
children: /* @__PURE__ */ e(
|
|
2657
|
-
|
|
2657
|
+
Wr,
|
|
2658
2658
|
{
|
|
2659
2659
|
width: 28,
|
|
2660
2660
|
height: 28,
|
|
@@ -2668,7 +2668,7 @@ const Fo = ({
|
|
|
2668
2668
|
),
|
|
2669
2669
|
/* @__PURE__ */ e("div", { className: n(F.nav.pageBtnWrapper), children: x.map(
|
|
2670
2670
|
(g, b) => g === "..." ? /* @__PURE__ */ e("span", { className: n(F.pageButton.base), children: "..." }, `dots-${b}`) : /* @__PURE__ */ e(
|
|
2671
|
-
|
|
2671
|
+
O,
|
|
2672
2672
|
{
|
|
2673
2673
|
onClick: () => i == null ? void 0 : i(g),
|
|
2674
2674
|
"aria-current": g === t ? "page" : void 0,
|
|
@@ -2687,7 +2687,7 @@ const Fo = ({
|
|
|
2687
2687
|
)
|
|
2688
2688
|
) }),
|
|
2689
2689
|
/* @__PURE__ */ e(
|
|
2690
|
-
|
|
2690
|
+
O,
|
|
2691
2691
|
{
|
|
2692
2692
|
disabled: u,
|
|
2693
2693
|
"aria-label": "Next Page",
|
|
@@ -2702,7 +2702,7 @@ const Fo = ({
|
|
|
2702
2702
|
)
|
|
2703
2703
|
},
|
|
2704
2704
|
children: /* @__PURE__ */ e(
|
|
2705
|
-
|
|
2705
|
+
Vr,
|
|
2706
2706
|
{
|
|
2707
2707
|
width: 28,
|
|
2708
2708
|
height: 28,
|
|
@@ -2771,7 +2771,7 @@ const Fo = ({
|
|
|
2771
2771
|
label: a,
|
|
2772
2772
|
disabled: o,
|
|
2773
2773
|
autoFocus: r = !1,
|
|
2774
|
-
status:
|
|
2774
|
+
status: p,
|
|
2775
2775
|
countryCode: d = "DEFAULT",
|
|
2776
2776
|
onChange: l,
|
|
2777
2777
|
classNames: u,
|
|
@@ -2780,7 +2780,7 @@ const Fo = ({
|
|
|
2780
2780
|
const f = Ht(
|
|
2781
2781
|
() => Wt[d] || Wt.DEFAULT,
|
|
2782
2782
|
[d]
|
|
2783
|
-
), x =
|
|
2783
|
+
), x = ir(f), [g, b] = A(
|
|
2784
2784
|
() => lt(String(t), f)
|
|
2785
2785
|
);
|
|
2786
2786
|
ge(() => {
|
|
@@ -2789,9 +2789,9 @@ const Fo = ({
|
|
|
2789
2789
|
const s = (v) => {
|
|
2790
2790
|
const C = v.target.value.replace(/\D/g, ""), W = lt(C, f);
|
|
2791
2791
|
b(W), l == null || l(C);
|
|
2792
|
-
}, k = ye.parent,
|
|
2793
|
-
return /* @__PURE__ */
|
|
2794
|
-
/* @__PURE__ */
|
|
2792
|
+
}, k = ye.parent, y = ye.base, D = ye.hover, S = ye.focus, B = ye.disabled, m = p && ye.variants[p];
|
|
2793
|
+
return /* @__PURE__ */ c("div", { className: n(k, u == null ? void 0 : u.parent), children: [
|
|
2794
|
+
/* @__PURE__ */ c("div", { className: ye.title, children: [
|
|
2795
2795
|
!!a && /* @__PURE__ */ e(
|
|
2796
2796
|
ee,
|
|
2797
2797
|
{
|
|
@@ -2801,7 +2801,7 @@ const Fo = ({
|
|
|
2801
2801
|
children: a
|
|
2802
2802
|
}
|
|
2803
2803
|
),
|
|
2804
|
-
|
|
2804
|
+
p === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
2805
2805
|
] }),
|
|
2806
2806
|
/* @__PURE__ */ e(
|
|
2807
2807
|
"input",
|
|
@@ -2814,12 +2814,12 @@ const Fo = ({
|
|
|
2814
2814
|
disabled: o,
|
|
2815
2815
|
autoFocus: r,
|
|
2816
2816
|
className: n(
|
|
2817
|
-
|
|
2817
|
+
y,
|
|
2818
2818
|
!o && D,
|
|
2819
2819
|
!o && S,
|
|
2820
2820
|
!o && r && S,
|
|
2821
2821
|
o && B,
|
|
2822
|
-
|
|
2822
|
+
p === "danger" && m,
|
|
2823
2823
|
u == null ? void 0 : u.target
|
|
2824
2824
|
),
|
|
2825
2825
|
...h
|
|
@@ -2836,14 +2836,14 @@ const Fo = ({
|
|
|
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: Rn } =
|
|
2839
|
+
}, { Root: Rn } = rr, $o = Lt.forwardRef(
|
|
2840
2840
|
({
|
|
2841
2841
|
id: t = "",
|
|
2842
2842
|
title: i,
|
|
2843
2843
|
data: a,
|
|
2844
2844
|
statusValue: o,
|
|
2845
2845
|
onStatusChange: r,
|
|
2846
|
-
flatType:
|
|
2846
|
+
flatType: p,
|
|
2847
2847
|
statusOptions: d,
|
|
2848
2848
|
actions: l = null,
|
|
2849
2849
|
className: u,
|
|
@@ -2852,14 +2852,14 @@ const Fo = ({
|
|
|
2852
2852
|
}, x) => {
|
|
2853
2853
|
const [g, b] = A(o || ""), s = (v) => {
|
|
2854
2854
|
b(v), r == null || r(t, v);
|
|
2855
|
-
}, k = f.disabled || !1,
|
|
2856
|
-
return /* @__PURE__ */
|
|
2855
|
+
}, k = f.disabled || !1, y = Re.base, D = Re.pressed, S = Re.hover, B = Re.disabled, m = Re.content;
|
|
2856
|
+
return /* @__PURE__ */ c(
|
|
2857
2857
|
Rn,
|
|
2858
2858
|
{
|
|
2859
2859
|
ref: x,
|
|
2860
2860
|
onClick: () => h == null ? void 0 : h(t),
|
|
2861
2861
|
className: n(
|
|
2862
|
-
|
|
2862
|
+
y,
|
|
2863
2863
|
D,
|
|
2864
2864
|
!k && S,
|
|
2865
2865
|
k && B,
|
|
@@ -2867,20 +2867,20 @@ const Fo = ({
|
|
|
2867
2867
|
),
|
|
2868
2868
|
...f,
|
|
2869
2869
|
children: [
|
|
2870
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ c("div", { className: m.header, "data-testid": "plate", children: [
|
|
2871
2871
|
/* @__PURE__ */ e(
|
|
2872
2872
|
w,
|
|
2873
2873
|
{
|
|
2874
2874
|
className: n(
|
|
2875
|
-
|
|
2876
|
-
k &&
|
|
2875
|
+
m.title,
|
|
2876
|
+
k && m.disabled
|
|
2877
2877
|
),
|
|
2878
2878
|
children: i
|
|
2879
2879
|
}
|
|
2880
2880
|
),
|
|
2881
|
-
/* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ c("div", { className: m.actions, children: [
|
|
2882
2882
|
!!d && /* @__PURE__ */ e(
|
|
2883
|
-
|
|
2883
|
+
dr,
|
|
2884
2884
|
{
|
|
2885
2885
|
options: d,
|
|
2886
2886
|
value: g,
|
|
@@ -2888,18 +2888,18 @@ const Fo = ({
|
|
|
2888
2888
|
disabled: k
|
|
2889
2889
|
}
|
|
2890
2890
|
),
|
|
2891
|
-
!!l && /* @__PURE__ */
|
|
2891
|
+
!!l && /* @__PURE__ */ c(ae, { children: [
|
|
2892
2892
|
/* @__PURE__ */ e(de, { onClick: (v) => v.stopPropagation(), asChild: !0, children: /* @__PURE__ */ e(
|
|
2893
|
-
|
|
2893
|
+
O,
|
|
2894
2894
|
{
|
|
2895
2895
|
variant: "text",
|
|
2896
2896
|
classNames: {
|
|
2897
|
-
base:
|
|
2897
|
+
base: m.button
|
|
2898
2898
|
},
|
|
2899
2899
|
children: /* @__PURE__ */ e(
|
|
2900
|
-
|
|
2900
|
+
qr,
|
|
2901
2901
|
{
|
|
2902
|
-
className:
|
|
2902
|
+
className: m.icon,
|
|
2903
2903
|
width: 15,
|
|
2904
2904
|
height: 15,
|
|
2905
2905
|
viewBox: "0 0 6 24"
|
|
@@ -2907,12 +2907,12 @@ const Fo = ({
|
|
|
2907
2907
|
)
|
|
2908
2908
|
}
|
|
2909
2909
|
) }),
|
|
2910
|
-
/* @__PURE__ */ e(le, { className:
|
|
2910
|
+
/* @__PURE__ */ e(le, { className: m.popup, children: l })
|
|
2911
2911
|
] })
|
|
2912
2912
|
] })
|
|
2913
2913
|
] }),
|
|
2914
|
-
/* @__PURE__ */ e("div", { className:
|
|
2915
|
-
/* @__PURE__ */ e("div", { className:
|
|
2914
|
+
/* @__PURE__ */ e("div", { className: m.flatType, children: !!p && /* @__PURE__ */ e(He, { text: p, variant: "warning" }) }),
|
|
2915
|
+
/* @__PURE__ */ e("div", { className: m.flexWrapper, children: a.map((v) => /* @__PURE__ */ c(w, { className: m.typography, children: [
|
|
2916
2916
|
v.label,
|
|
2917
2917
|
":",
|
|
2918
2918
|
v.href ? /* @__PURE__ */ e(
|
|
@@ -2923,7 +2923,7 @@ const Fo = ({
|
|
|
2923
2923
|
href: v.href,
|
|
2924
2924
|
target: "_blank",
|
|
2925
2925
|
classNames: {
|
|
2926
|
-
root:
|
|
2926
|
+
root: m.link
|
|
2927
2927
|
},
|
|
2928
2928
|
children: String(v.value).length > 15 ? `${String(v.value).slice(0, 15)}...` : v.value
|
|
2929
2929
|
}
|
|
@@ -2931,8 +2931,8 @@ const Fo = ({
|
|
|
2931
2931
|
"span",
|
|
2932
2932
|
{
|
|
2933
2933
|
className: n(
|
|
2934
|
-
|
|
2935
|
-
k &&
|
|
2934
|
+
m.amount,
|
|
2935
|
+
k && m.disabled
|
|
2936
2936
|
),
|
|
2937
2937
|
children: v.value
|
|
2938
2938
|
}
|
|
@@ -2961,21 +2961,21 @@ const Fo = ({
|
|
|
2961
2961
|
amount: "block text-dark-30 font-semibold break-all",
|
|
2962
2962
|
disabled: "text-dark-30/[.42]"
|
|
2963
2963
|
}
|
|
2964
|
-
}, Lo = Lt.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: a, classNames: o, iconSizes: r },
|
|
2964
|
+
}, Lo = Lt.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: a, classNames: o, iconSizes: r }, p) => /* @__PURE__ */ e(
|
|
2965
2965
|
Qt,
|
|
2966
2966
|
{
|
|
2967
|
-
ref:
|
|
2967
|
+
ref: p,
|
|
2968
2968
|
value: i,
|
|
2969
2969
|
onValueChange: a,
|
|
2970
2970
|
className: n(o == null ? void 0 : o.tab, ke.tab),
|
|
2971
|
-
children: /* @__PURE__ */ e(Xt, { className: n(ke.list, o == null ? void 0 : o.list), children: t && t.map((d) => /* @__PURE__ */
|
|
2971
|
+
children: /* @__PURE__ */ e(Xt, { className: n(ke.list, o == null ? void 0 : o.list), children: t && t.map((d) => /* @__PURE__ */ c(
|
|
2972
2972
|
Jt,
|
|
2973
2973
|
{
|
|
2974
2974
|
value: d.value,
|
|
2975
2975
|
disabled: d.disabled,
|
|
2976
2976
|
className: n(ke.trigger, o == null ? void 0 : o.trigger),
|
|
2977
2977
|
children: [
|
|
2978
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ c(w, { variant: "span", className: ke.label, children: [
|
|
2979
2979
|
(d == null ? void 0 : d.icon) && /* @__PURE__ */ e(
|
|
2980
2980
|
d.icon,
|
|
2981
2981
|
{
|
|
@@ -3007,18 +3007,18 @@ const Fo = ({
|
|
|
3007
3007
|
activeIcon: "fill-dark-40",
|
|
3008
3008
|
iconInactive: "fill-dark-40/[.50]"
|
|
3009
3009
|
}, zo = L.forwardRef(
|
|
3010
|
-
({ tabs: t = [], activeTab: i, onTabChange: a, onEditTabContent: o, classNames: r },
|
|
3010
|
+
({ tabs: t = [], activeTab: i, onTabChange: a, onEditTabContent: o, classNames: r }, p) => {
|
|
3011
3011
|
const d = Be.base, l = Be.list, u = Be.trigger, h = Be.content, f = Be.overlayBorder, x = Be.datalist, g = ({ list: b }) => /* @__PURE__ */ e(
|
|
3012
3012
|
"ul",
|
|
3013
3013
|
{
|
|
3014
3014
|
role: "listbox",
|
|
3015
3015
|
className: n(x.base, r == null ? void 0 : r.datalist),
|
|
3016
|
-
children: b.map((s, k) => /* @__PURE__ */
|
|
3016
|
+
children: b.map((s, k) => /* @__PURE__ */ c(
|
|
3017
3017
|
"li",
|
|
3018
3018
|
{
|
|
3019
3019
|
className: n(x.item, r == null ? void 0 : r.dataItem),
|
|
3020
3020
|
children: [
|
|
3021
|
-
/* @__PURE__ */
|
|
3021
|
+
/* @__PURE__ */ c("span", { className: "text-dark-40/50", children: [
|
|
3022
3022
|
s.label,
|
|
3023
3023
|
":"
|
|
3024
3024
|
] }),
|
|
@@ -3030,15 +3030,15 @@ const Fo = ({
|
|
|
3030
3030
|
))
|
|
3031
3031
|
}
|
|
3032
3032
|
);
|
|
3033
|
-
return /* @__PURE__ */
|
|
3033
|
+
return /* @__PURE__ */ c(
|
|
3034
3034
|
Qt,
|
|
3035
3035
|
{
|
|
3036
|
-
ref:
|
|
3036
|
+
ref: p,
|
|
3037
3037
|
value: i,
|
|
3038
3038
|
onValueChange: a,
|
|
3039
3039
|
className: n(d, r == null ? void 0 : r.base),
|
|
3040
3040
|
children: [
|
|
3041
|
-
/* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((b, s, k) => /* @__PURE__ */
|
|
3041
|
+
/* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((b, s, k) => /* @__PURE__ */ c(
|
|
3042
3042
|
Jt,
|
|
3043
3043
|
{
|
|
3044
3044
|
value: b.value,
|
|
@@ -3065,8 +3065,8 @@ const Fo = ({
|
|
|
3065
3065
|
},
|
|
3066
3066
|
b.value
|
|
3067
3067
|
)) }),
|
|
3068
|
-
t.map((b, s, k) => /* @__PURE__ */
|
|
3069
|
-
|
|
3068
|
+
t.map((b, s, k) => /* @__PURE__ */ c(
|
|
3069
|
+
Yr,
|
|
3070
3070
|
{
|
|
3071
3071
|
value: b.value,
|
|
3072
3072
|
className: n(
|
|
@@ -3076,8 +3076,8 @@ const Fo = ({
|
|
|
3076
3076
|
r == null ? void 0 : r.content
|
|
3077
3077
|
),
|
|
3078
3078
|
children: [
|
|
3079
|
-
/* @__PURE__ */
|
|
3080
|
-
/* @__PURE__ */
|
|
3079
|
+
/* @__PURE__ */ c("div", { className: h.title.wrapper, children: [
|
|
3080
|
+
/* @__PURE__ */ c(w, { className: h.title.text, children: [
|
|
3081
3081
|
"Квартира – ",
|
|
3082
3082
|
s + 1
|
|
3083
3083
|
] }),
|
|
@@ -3086,11 +3086,11 @@ const Fo = ({
|
|
|
3086
3086
|
{
|
|
3087
3087
|
className: "hover:cursor-pointer",
|
|
3088
3088
|
onClick: () => o(b),
|
|
3089
|
-
children: /* @__PURE__ */ e(
|
|
3089
|
+
children: /* @__PURE__ */ e(mr, { className: "fill-sidebar-10" })
|
|
3090
3090
|
}
|
|
3091
3091
|
)
|
|
3092
3092
|
] }),
|
|
3093
|
-
/* @__PURE__ */
|
|
3093
|
+
/* @__PURE__ */ c("div", { className: x.title.wrapper, children: [
|
|
3094
3094
|
/* @__PURE__ */ e(w, { className: x.title.text, children: "Общая площадь:" }),
|
|
3095
3095
|
/* @__PURE__ */ e(g, { list: b.content.main })
|
|
3096
3096
|
] }),
|
|
@@ -3134,11 +3134,11 @@ const Fo = ({
|
|
|
3134
3134
|
textareaProps: a,
|
|
3135
3135
|
...o
|
|
3136
3136
|
}) => {
|
|
3137
|
-
const r = Mt.root,
|
|
3138
|
-
return /* @__PURE__ */
|
|
3139
|
-
/* @__PURE__ */
|
|
3137
|
+
const r = Mt.root, p = (a == null ? void 0 : a.status) === "danger";
|
|
3138
|
+
return /* @__PURE__ */ c("div", { ...o, className: r, children: [
|
|
3139
|
+
/* @__PURE__ */ c("div", { className: Mt.labelWrapper, children: [
|
|
3140
3140
|
!!(i != null && i.children) && /* @__PURE__ */ e(ee, { ...i, disabled: t }),
|
|
3141
|
-
|
|
3141
|
+
p && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3142
3142
|
] }),
|
|
3143
3143
|
/* @__PURE__ */ e(Kt, { ...a, disabled: t })
|
|
3144
3144
|
] });
|
|
@@ -3151,14 +3151,14 @@ const Fo = ({
|
|
|
3151
3151
|
className: a,
|
|
3152
3152
|
labelProps: o,
|
|
3153
3153
|
toggleProps: r,
|
|
3154
|
-
onClick:
|
|
3155
|
-
}) => /* @__PURE__ */
|
|
3154
|
+
onClick: p
|
|
3155
|
+
}) => /* @__PURE__ */ c("div", { className: n($n.root, a), children: [
|
|
3156
3156
|
/* @__PURE__ */ e(ee, { ...o, disabled: i, children: t }),
|
|
3157
3157
|
/* @__PURE__ */ e(
|
|
3158
|
-
|
|
3158
|
+
Cr,
|
|
3159
3159
|
{
|
|
3160
3160
|
disabled: i,
|
|
3161
|
-
onClick:
|
|
3161
|
+
onClick: p,
|
|
3162
3162
|
label: r.label,
|
|
3163
3163
|
checked: r.checked,
|
|
3164
3164
|
classNames: r.classNames,
|
|
@@ -3181,9 +3181,9 @@ const Fo = ({
|
|
|
3181
3181
|
onDragStart: a,
|
|
3182
3182
|
onDragEnd: o,
|
|
3183
3183
|
onMenuClick: r,
|
|
3184
|
-
onClose:
|
|
3184
|
+
onClose: p,
|
|
3185
3185
|
...d
|
|
3186
|
-
}, l) => /* @__PURE__ */
|
|
3186
|
+
}, l) => /* @__PURE__ */ c(
|
|
3187
3187
|
"div",
|
|
3188
3188
|
{
|
|
3189
3189
|
ref: l,
|
|
@@ -3194,7 +3194,7 @@ const Fo = ({
|
|
|
3194
3194
|
...d,
|
|
3195
3195
|
children: [
|
|
3196
3196
|
/* @__PURE__ */ e(
|
|
3197
|
-
|
|
3197
|
+
O,
|
|
3198
3198
|
{
|
|
3199
3199
|
onClick: r,
|
|
3200
3200
|
type: "button",
|
|
@@ -3203,21 +3203,21 @@ const Fo = ({
|
|
|
3203
3203
|
classNames: {
|
|
3204
3204
|
base: n(je.button.basic, je.button.active)
|
|
3205
3205
|
},
|
|
3206
|
-
children: /* @__PURE__ */ e(
|
|
3206
|
+
children: /* @__PURE__ */ e(Rr, {})
|
|
3207
3207
|
}
|
|
3208
3208
|
),
|
|
3209
3209
|
/* @__PURE__ */ e(w, { className: je.wrapperBlockName, children: t || "-" }),
|
|
3210
3210
|
/* @__PURE__ */ e(
|
|
3211
|
-
|
|
3211
|
+
O,
|
|
3212
3212
|
{
|
|
3213
|
-
onClick:
|
|
3213
|
+
onClick: p,
|
|
3214
3214
|
type: "button",
|
|
3215
3215
|
"data-testid": "dragAndDrop-close-button",
|
|
3216
3216
|
variant: "text",
|
|
3217
3217
|
classNames: {
|
|
3218
3218
|
base: n(je.button.basic, je.button.active)
|
|
3219
3219
|
},
|
|
3220
|
-
children: /* @__PURE__ */ e(
|
|
3220
|
+
children: /* @__PURE__ */ e(Zr, {})
|
|
3221
3221
|
}
|
|
3222
3222
|
)
|
|
3223
3223
|
]
|
|
@@ -3247,7 +3247,7 @@ const Fo = ({
|
|
|
3247
3247
|
disabled: a,
|
|
3248
3248
|
label: o,
|
|
3249
3249
|
status: r,
|
|
3250
|
-
classNames:
|
|
3250
|
+
classNames: p
|
|
3251
3251
|
}) => {
|
|
3252
3252
|
const d = ie(null), l = (T) => {
|
|
3253
3253
|
if (!T) return;
|
|
@@ -3273,43 +3273,43 @@ const Fo = ({
|
|
|
3273
3273
|
const T = l(t);
|
|
3274
3274
|
h(T), x(T == null ? void 0 : T.getDate()), b(T == null ? void 0 : T.getMonth()), k(T == null ? void 0 : T.getFullYear());
|
|
3275
3275
|
}, [t]);
|
|
3276
|
-
const
|
|
3276
|
+
const y = /* @__PURE__ */ new Date(), D = s ?? y.getFullYear(), S = g ?? y.getMonth(), B = Ht(() => {
|
|
3277
3277
|
const T = new Date(D, S + 1, 0).getDate();
|
|
3278
3278
|
return Array.from({ length: T }, (I, z) => {
|
|
3279
|
-
const
|
|
3279
|
+
const K = z + 1;
|
|
3280
3280
|
return {
|
|
3281
|
-
label:
|
|
3282
|
-
value:
|
|
3281
|
+
label: K.toString().padStart(2, "0"),
|
|
3282
|
+
value: K.toString()
|
|
3283
3283
|
};
|
|
3284
3284
|
});
|
|
3285
|
-
}, [S, D]),
|
|
3285
|
+
}, [S, D]), m = (T, I, z) => {
|
|
3286
3286
|
if (T !== void 0 && I !== void 0 && z !== void 0) {
|
|
3287
|
-
const
|
|
3288
|
-
h(
|
|
3289
|
-
|
|
3287
|
+
const K = new Date(z, I, T);
|
|
3288
|
+
h(K), i(
|
|
3289
|
+
yr(K, Bt)
|
|
3290
3290
|
);
|
|
3291
3291
|
} else
|
|
3292
3292
|
h(void 0), i(void 0);
|
|
3293
3293
|
}, v = (T) => {
|
|
3294
3294
|
const I = parseInt(T);
|
|
3295
|
-
b(I),
|
|
3295
|
+
b(I), m(f, I, s);
|
|
3296
3296
|
}, C = (T) => {
|
|
3297
3297
|
const I = parseInt(T);
|
|
3298
|
-
k(I),
|
|
3298
|
+
k(I), m(f, g, I);
|
|
3299
3299
|
}, W = (T) => {
|
|
3300
3300
|
const I = parseInt(T);
|
|
3301
|
-
x(I),
|
|
3301
|
+
x(I), m(I, g, s);
|
|
3302
3302
|
};
|
|
3303
|
-
return /* @__PURE__ */
|
|
3304
|
-
!!o && /* @__PURE__ */ e(ee, { className: n(
|
|
3305
|
-
/* @__PURE__ */
|
|
3303
|
+
return /* @__PURE__ */ c("div", { ref: d, className: Ot.root, children: [
|
|
3304
|
+
!!o && /* @__PURE__ */ e(ee, { className: n(p == null ? void 0 : p.label), children: o }),
|
|
3305
|
+
/* @__PURE__ */ c("div", { className: Ot.selectContainer, children: [
|
|
3306
3306
|
/* @__PURE__ */ e(
|
|
3307
3307
|
Te,
|
|
3308
3308
|
{
|
|
3309
3309
|
options: B,
|
|
3310
3310
|
classNames: {
|
|
3311
|
-
trigger: n("w-full h-11 bg-gray-50",
|
|
3312
|
-
selected: n("text-sm",
|
|
3311
|
+
trigger: n("w-full h-11 bg-gray-50", p == null ? void 0 : p.selectTrigger),
|
|
3312
|
+
selected: n("text-sm", p == null ? void 0 : p.selectSelected)
|
|
3313
3313
|
},
|
|
3314
3314
|
disabled: a,
|
|
3315
3315
|
onChange: W,
|
|
@@ -3326,8 +3326,8 @@ const Fo = ({
|
|
|
3326
3326
|
value: I.toString()
|
|
3327
3327
|
})),
|
|
3328
3328
|
classNames: {
|
|
3329
|
-
trigger: n("w-full h-11",
|
|
3330
|
-
selected: n("text-sm",
|
|
3329
|
+
trigger: n("w-full h-11", p == null ? void 0 : p.selectTrigger),
|
|
3330
|
+
selected: n("text-sm", p == null ? void 0 : p.selectSelected)
|
|
3331
3331
|
},
|
|
3332
3332
|
disabled: a,
|
|
3333
3333
|
onChange: v,
|
|
@@ -3341,13 +3341,13 @@ const Fo = ({
|
|
|
3341
3341
|
{
|
|
3342
3342
|
options: zn,
|
|
3343
3343
|
classNames: {
|
|
3344
|
-
trigger: n("w-full h-11",
|
|
3345
|
-
selected: n("text-sm",
|
|
3344
|
+
trigger: n("w-full h-11", p == null ? void 0 : p.selectTrigger),
|
|
3345
|
+
selected: n("text-sm", p == null ? void 0 : p.selectSelected)
|
|
3346
3346
|
},
|
|
3347
3347
|
disabled: a,
|
|
3348
3348
|
onChange: C,
|
|
3349
3349
|
value: s !== void 0 ? String(s) : "",
|
|
3350
|
-
autoFocusValue: String(
|
|
3350
|
+
autoFocusValue: String(y.getFullYear()),
|
|
3351
3351
|
placeholder: "Год",
|
|
3352
3352
|
status: r === "danger" ? "danger" : void 0
|
|
3353
3353
|
}
|
|
@@ -3363,7 +3363,7 @@ const Fo = ({
|
|
|
3363
3363
|
badge: t,
|
|
3364
3364
|
isExpanded: i = !0,
|
|
3365
3365
|
disabled: a = !1,
|
|
3366
|
-
item: { icon: o, label: r = "", to:
|
|
3366
|
+
item: { icon: o, label: r = "", to: p },
|
|
3367
3367
|
classNames: d
|
|
3368
3368
|
}) => {
|
|
3369
3369
|
const [l] = yt(), u = ft.base;
|
|
@@ -3373,7 +3373,7 @@ const Fo = ({
|
|
|
3373
3373
|
tabIndex: 1,
|
|
3374
3374
|
role: "link",
|
|
3375
3375
|
to: {
|
|
3376
|
-
pathname:
|
|
3376
|
+
pathname: p,
|
|
3377
3377
|
search: l.toString()
|
|
3378
3378
|
},
|
|
3379
3379
|
className: ({ isActive: h }) => n(
|
|
@@ -3386,7 +3386,7 @@ const Fo = ({
|
|
|
3386
3386
|
},
|
|
3387
3387
|
d == null ? void 0 : d.container
|
|
3388
3388
|
),
|
|
3389
|
-
children: ({ isActive: h }) => /* @__PURE__ */
|
|
3389
|
+
children: ({ isActive: h }) => /* @__PURE__ */ c(et, { children: [
|
|
3390
3390
|
/* @__PURE__ */ e("div", { className: n("size-5", d == null ? void 0 : d.iconWrapper), children: !!o && /* @__PURE__ */ e(
|
|
3391
3391
|
o,
|
|
3392
3392
|
{
|
|
@@ -3402,7 +3402,7 @@ const Fo = ({
|
|
|
3402
3402
|
)
|
|
3403
3403
|
}
|
|
3404
3404
|
) }),
|
|
3405
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__PURE__ */ c(
|
|
3406
3406
|
"div",
|
|
3407
3407
|
{
|
|
3408
3408
|
className: n(u.labelWrapper, d == null ? void 0 : d.labelWrapper),
|
|
@@ -3460,8 +3460,8 @@ const Fo = ({
|
|
|
3460
3460
|
setActiveStep: a,
|
|
3461
3461
|
disabled: o = !1,
|
|
3462
3462
|
classNames: r
|
|
3463
|
-
}) => /* @__PURE__ */
|
|
3464
|
-
i && /* @__PURE__ */
|
|
3463
|
+
}) => /* @__PURE__ */ c("div", { className: n(V.root, r == null ? void 0 : r.root), "data-testid": "stepper", children: [
|
|
3464
|
+
i && /* @__PURE__ */ c("div", { className: n(V.header, r == null ? void 0 : r.header), children: [
|
|
3465
3465
|
/* @__PURE__ */ e(rn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3466
3466
|
/* @__PURE__ */ e(
|
|
3467
3467
|
tt,
|
|
@@ -3478,14 +3478,14 @@ const Fo = ({
|
|
|
3478
3478
|
{
|
|
3479
3479
|
className: n(V.timeline, r == null ? void 0 : r.timeline),
|
|
3480
3480
|
"data-testid": "stepper-timeline",
|
|
3481
|
-
children: t.map((
|
|
3481
|
+
children: t.map((p, d) => /* @__PURE__ */ c(
|
|
3482
3482
|
"div",
|
|
3483
3483
|
{
|
|
3484
3484
|
"data-testid": `step-${d}`,
|
|
3485
3485
|
className: n(V.stepWrapper, r == null ? void 0 : r.stepWrapper),
|
|
3486
3486
|
children: [
|
|
3487
3487
|
d < t.length - 1 && /* @__PURE__ */ e("span", { className: V.verticalLine }),
|
|
3488
|
-
/* @__PURE__ */ e("div", { className: V.statusDotWrapper, children:
|
|
3488
|
+
/* @__PURE__ */ e("div", { className: V.statusDotWrapper, children: p.activeStep ? /* @__PURE__ */ e("div", { className: V.activeDot, children: /* @__PURE__ */ e("span", { className: V.activeDotInner }) }) : /* @__PURE__ */ e(
|
|
3489
3489
|
"div",
|
|
3490
3490
|
{
|
|
3491
3491
|
onClick: () => !o && a(d),
|
|
@@ -3496,17 +3496,17 @@ const Fo = ({
|
|
|
3496
3496
|
children: /* @__PURE__ */ e("span", { className: V.completedDot })
|
|
3497
3497
|
}
|
|
3498
3498
|
) }),
|
|
3499
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ c("div", { className: n(V.content, r == null ? void 0 : r.content), children: [
|
|
3500
3500
|
/* @__PURE__ */ e(
|
|
3501
3501
|
tt,
|
|
3502
3502
|
{
|
|
3503
3503
|
variant: "h3",
|
|
3504
3504
|
"data-testid": `step-${d}-title`,
|
|
3505
3505
|
className: n(
|
|
3506
|
-
|
|
3506
|
+
p.activeStep ? V.title : V.titleCompleted,
|
|
3507
3507
|
r == null ? void 0 : r.title
|
|
3508
3508
|
),
|
|
3509
|
-
children:
|
|
3509
|
+
children: p.title
|
|
3510
3510
|
}
|
|
3511
3511
|
),
|
|
3512
3512
|
/* @__PURE__ */ e(
|
|
@@ -3514,10 +3514,10 @@ const Fo = ({
|
|
|
3514
3514
|
{
|
|
3515
3515
|
"data-testid": `step-${d}-subtitle`,
|
|
3516
3516
|
className: n(
|
|
3517
|
-
|
|
3517
|
+
p.activeStep ? V.subtitle : V.subtitleCompleted,
|
|
3518
3518
|
r == null ? void 0 : r.subtitle
|
|
3519
3519
|
),
|
|
3520
|
-
children:
|
|
3520
|
+
children: p.subtitle
|
|
3521
3521
|
}
|
|
3522
3522
|
),
|
|
3523
3523
|
/* @__PURE__ */ e(
|
|
@@ -3525,16 +3525,16 @@ const Fo = ({
|
|
|
3525
3525
|
{
|
|
3526
3526
|
"data-testid": `step-${d}-date`,
|
|
3527
3527
|
className: n(
|
|
3528
|
-
|
|
3528
|
+
p.activeStep ? V.date : V.dateCompleted,
|
|
3529
3529
|
r == null ? void 0 : r.date
|
|
3530
3530
|
),
|
|
3531
|
-
children:
|
|
3531
|
+
children: p.date
|
|
3532
3532
|
}
|
|
3533
3533
|
)
|
|
3534
3534
|
] })
|
|
3535
3535
|
]
|
|
3536
3536
|
},
|
|
3537
|
-
|
|
3537
|
+
p.id
|
|
3538
3538
|
))
|
|
3539
3539
|
}
|
|
3540
3540
|
)
|
|
@@ -3563,7 +3563,7 @@ const Fo = ({
|
|
|
3563
3563
|
title: i,
|
|
3564
3564
|
classNames: a,
|
|
3565
3565
|
position: o = "left"
|
|
3566
|
-
}) => /* @__PURE__ */
|
|
3566
|
+
}) => /* @__PURE__ */ c(
|
|
3567
3567
|
"div",
|
|
3568
3568
|
{
|
|
3569
3569
|
className: n(
|
|
@@ -3587,7 +3587,7 @@ const Fo = ({
|
|
|
3587
3587
|
disabled: a,
|
|
3588
3588
|
icon: o,
|
|
3589
3589
|
iconProps: r,
|
|
3590
|
-
iconPosition:
|
|
3590
|
+
iconPosition: p = "right",
|
|
3591
3591
|
text: d,
|
|
3592
3592
|
classNames: l,
|
|
3593
3593
|
onIconClick: u,
|
|
@@ -3595,9 +3595,9 @@ const Fo = ({
|
|
|
3595
3595
|
...f
|
|
3596
3596
|
}, x) => {
|
|
3597
3597
|
var S;
|
|
3598
|
-
const g = Je.parent, b = Je.base, s = Je.icon, k = a || (h == null ? void 0 : h.disabled),
|
|
3599
|
-
return /* @__PURE__ */
|
|
3600
|
-
/* @__PURE__ */
|
|
3598
|
+
const g = Je.parent, b = Je.base, s = Je.icon, k = a || (h == null ? void 0 : h.disabled), y = !!(o || d), D = (h == null ? void 0 : h.status) === "danger";
|
|
3599
|
+
return /* @__PURE__ */ c("div", { className: n(g, l == null ? void 0 : l.parent), ...f, children: [
|
|
3600
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
3601
3601
|
!!i && /* @__PURE__ */ e(
|
|
3602
3602
|
ee,
|
|
3603
3603
|
{
|
|
@@ -3609,17 +3609,17 @@ const Fo = ({
|
|
|
3609
3609
|
),
|
|
3610
3610
|
D && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3611
3611
|
] }),
|
|
3612
|
-
/* @__PURE__ */
|
|
3612
|
+
/* @__PURE__ */ c(
|
|
3613
3613
|
"div",
|
|
3614
3614
|
{
|
|
3615
3615
|
className: n(
|
|
3616
3616
|
b,
|
|
3617
|
-
|
|
3617
|
+
y && Je.container,
|
|
3618
3618
|
l == null ? void 0 : l.base
|
|
3619
3619
|
),
|
|
3620
3620
|
children: [
|
|
3621
3621
|
/* @__PURE__ */ e(
|
|
3622
|
-
|
|
3622
|
+
Tr,
|
|
3623
3623
|
{
|
|
3624
3624
|
...h,
|
|
3625
3625
|
ref: x,
|
|
@@ -3629,13 +3629,13 @@ const Fo = ({
|
|
|
3629
3629
|
...h == null ? void 0 : h.classNames,
|
|
3630
3630
|
target: n(
|
|
3631
3631
|
(S = h == null ? void 0 : h.classNames) == null ? void 0 : S.target,
|
|
3632
|
-
|
|
3633
|
-
|
|
3632
|
+
y && p === "left" && "pl-11",
|
|
3633
|
+
y && p === "right" && "pr-11"
|
|
3634
3634
|
)
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
),
|
|
3638
|
-
|
|
3638
|
+
y && /* @__PURE__ */ c(
|
|
3639
3639
|
"button",
|
|
3640
3640
|
{
|
|
3641
3641
|
role: "button",
|
|
@@ -3643,8 +3643,8 @@ const Fo = ({
|
|
|
3643
3643
|
disabled: k,
|
|
3644
3644
|
className: n(
|
|
3645
3645
|
s.base,
|
|
3646
|
-
|
|
3647
|
-
|
|
3646
|
+
p === "left" && "left-3.5",
|
|
3647
|
+
p === "right" && "right-3.5",
|
|
3648
3648
|
u && s.clickable,
|
|
3649
3649
|
k && s.disabled,
|
|
3650
3650
|
l == null ? void 0 : l.iconButton
|
|
@@ -3704,7 +3704,7 @@ const Fo = ({
|
|
|
3704
3704
|
element: i,
|
|
3705
3705
|
label: a,
|
|
3706
3706
|
classNames: o
|
|
3707
|
-
}) => /* @__PURE__ */
|
|
3707
|
+
}) => /* @__PURE__ */ c("div", { className: n(bt.wrapper, o == null ? void 0 : o.wrapper), children: [
|
|
3708
3708
|
!!t && /* @__PURE__ */ e(
|
|
3709
3709
|
"div",
|
|
3710
3710
|
{
|
|
@@ -3738,7 +3738,7 @@ const Fo = ({
|
|
|
3738
3738
|
href: a,
|
|
3739
3739
|
onClick: o,
|
|
3740
3740
|
weight: r = "font-medium",
|
|
3741
|
-
isIconVisible:
|
|
3741
|
+
isIconVisible: p = !0,
|
|
3742
3742
|
target: d,
|
|
3743
3743
|
classNames: l,
|
|
3744
3744
|
iconDimensions: u = {
|
|
@@ -3749,7 +3749,7 @@ const Fo = ({
|
|
|
3749
3749
|
...h
|
|
3750
3750
|
}) => {
|
|
3751
3751
|
const f = Un.states;
|
|
3752
|
-
return /* @__PURE__ */
|
|
3752
|
+
return /* @__PURE__ */ c(
|
|
3753
3753
|
Ve,
|
|
3754
3754
|
{
|
|
3755
3755
|
...h,
|
|
@@ -3766,15 +3766,15 @@ const Fo = ({
|
|
|
3766
3766
|
className: n(
|
|
3767
3767
|
r,
|
|
3768
3768
|
f.normal,
|
|
3769
|
-
|
|
3770
|
-
!i &&
|
|
3771
|
-
!i &&
|
|
3772
|
-
i &&
|
|
3769
|
+
p && f.focus,
|
|
3770
|
+
!i && p && f.hover,
|
|
3771
|
+
!i && p && f.active,
|
|
3772
|
+
i && p && f.disabled,
|
|
3773
3773
|
l == null ? void 0 : l.root
|
|
3774
3774
|
),
|
|
3775
3775
|
children: [
|
|
3776
|
-
|
|
3777
|
-
|
|
3776
|
+
p && /* @__PURE__ */ e(
|
|
3777
|
+
Mr,
|
|
3778
3778
|
{
|
|
3779
3779
|
width: u.width,
|
|
3780
3780
|
height: u.height,
|
|
@@ -3794,19 +3794,19 @@ const Fo = ({
|
|
|
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
|
+
}, dr = Q(
|
|
3798
3798
|
({
|
|
3799
3799
|
classNames: t,
|
|
3800
3800
|
disabled: i,
|
|
3801
3801
|
onChange: a,
|
|
3802
3802
|
options: o = [],
|
|
3803
3803
|
placeholder: r = "Choose",
|
|
3804
|
-
value:
|
|
3804
|
+
value: p
|
|
3805
3805
|
}, d) => {
|
|
3806
3806
|
var S;
|
|
3807
|
-
const [l, u] = A(!1), f =
|
|
3807
|
+
const [l, u] = A(!1), f = tr(o)(p), x = ie(null), g = $e.base, b = $e.options, s = $e.disabled.trigger, k = $e.disabled.triggerText, y = (S = o.find((B) => B.value === p)) == null ? void 0 : S.status, D = ({
|
|
3808
3808
|
className: B,
|
|
3809
|
-
text:
|
|
3809
|
+
text: m = ""
|
|
3810
3810
|
}) => /* @__PURE__ */ e(
|
|
3811
3811
|
w,
|
|
3812
3812
|
{
|
|
@@ -3815,7 +3815,7 @@ const Fo = ({
|
|
|
3815
3815
|
i && k,
|
|
3816
3816
|
B
|
|
3817
3817
|
),
|
|
3818
|
-
children:
|
|
3818
|
+
children: m
|
|
3819
3819
|
}
|
|
3820
3820
|
);
|
|
3821
3821
|
return ge(() => {
|
|
@@ -3823,8 +3823,8 @@ const Fo = ({
|
|
|
3823
3823
|
var B;
|
|
3824
3824
|
(B = x.current) == null || B.scrollIntoView({ block: "center" });
|
|
3825
3825
|
}, 0);
|
|
3826
|
-
}, [l]), /* @__PURE__ */
|
|
3827
|
-
/* @__PURE__ */
|
|
3826
|
+
}, [l]), /* @__PURE__ */ c(nt, { open: l, onOpenChange: u, children: [
|
|
3827
|
+
/* @__PURE__ */ c(
|
|
3828
3828
|
ot,
|
|
3829
3829
|
{
|
|
3830
3830
|
role: "listbox",
|
|
@@ -3834,10 +3834,10 @@ const Fo = ({
|
|
|
3834
3834
|
i && s,
|
|
3835
3835
|
!l && !i && g.hover,
|
|
3836
3836
|
t == null ? void 0 : t.trigger,
|
|
3837
|
-
|
|
3837
|
+
y && $e.status[y]
|
|
3838
3838
|
),
|
|
3839
3839
|
children: [
|
|
3840
|
-
|
|
3840
|
+
p ? /* @__PURE__ */ e(
|
|
3841
3841
|
D,
|
|
3842
3842
|
{
|
|
3843
3843
|
text: f == null ? void 0 : f.label,
|
|
@@ -3851,7 +3851,7 @@ const Fo = ({
|
|
|
3851
3851
|
}
|
|
3852
3852
|
),
|
|
3853
3853
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3854
|
-
|
|
3854
|
+
or,
|
|
3855
3855
|
{
|
|
3856
3856
|
className: n(g.icon, l && "rotate-180"),
|
|
3857
3857
|
width: 16,
|
|
@@ -3871,10 +3871,10 @@ const Fo = ({
|
|
|
3871
3871
|
children: /* @__PURE__ */ e("div", { className: n(b.wrapper), children: !!o && (o == null ? void 0 : o.map((B) => /* @__PURE__ */ e(
|
|
3872
3872
|
Tt,
|
|
3873
3873
|
{
|
|
3874
|
-
ref:
|
|
3874
|
+
ref: p === B.value ? x : null,
|
|
3875
3875
|
className: n(b.items),
|
|
3876
|
-
onClick: (
|
|
3877
|
-
|
|
3876
|
+
onClick: (m) => {
|
|
3877
|
+
m.preventDefault(), m.stopPropagation(), a(B.value), u(!1);
|
|
3878
3878
|
},
|
|
3879
3879
|
children: /* @__PURE__ */ e(He, { text: B.label, variant: B.status })
|
|
3880
3880
|
},
|
|
@@ -3885,7 +3885,7 @@ const Fo = ({
|
|
|
3885
3885
|
] });
|
|
3886
3886
|
}
|
|
3887
3887
|
);
|
|
3888
|
-
|
|
3888
|
+
dr.displayName = "StatusSelect";
|
|
3889
3889
|
const $e = {
|
|
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]",
|
|
@@ -3918,8 +3918,8 @@ const $e = {
|
|
|
3918
3918
|
label: i,
|
|
3919
3919
|
selectProps: a,
|
|
3920
3920
|
...o
|
|
3921
|
-
}) => /* @__PURE__ */
|
|
3922
|
-
/* @__PURE__ */
|
|
3921
|
+
}) => /* @__PURE__ */ c("div", { ...o, className: n(Yn.container, t == null ? void 0 : t.container), children: [
|
|
3922
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
3923
3923
|
/* @__PURE__ */ e(ee, { disabled: a == null ? void 0 : a.disabled, className: t == null ? void 0 : t.label, children: i }),
|
|
3924
3924
|
(a == null ? void 0 : a.status) === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3925
3925
|
] }),
|
|
@@ -3933,11 +3933,11 @@ const $e = {
|
|
|
3933
3933
|
dateAndTime: a,
|
|
3934
3934
|
isDisabled: o = !1,
|
|
3935
3935
|
onDelete: r,
|
|
3936
|
-
downloadUrl:
|
|
3936
|
+
downloadUrl: p,
|
|
3937
3937
|
status: d = "success",
|
|
3938
3938
|
classNames: l,
|
|
3939
3939
|
...u
|
|
3940
|
-
}, h) => i ? /* @__PURE__ */
|
|
3940
|
+
}, h) => i ? /* @__PURE__ */ c(
|
|
3941
3941
|
"div",
|
|
3942
3942
|
{
|
|
3943
3943
|
ref: h,
|
|
@@ -3949,15 +3949,15 @@ const $e = {
|
|
|
3949
3949
|
tabIndex: 0,
|
|
3950
3950
|
...u,
|
|
3951
3951
|
children: [
|
|
3952
|
-
/* @__PURE__ */
|
|
3953
|
-
/* @__PURE__ */
|
|
3954
|
-
/* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ c("div", { className: H.wrapperContainer, children: [
|
|
3953
|
+
/* @__PURE__ */ c("div", { className: H.titleContainer, children: [
|
|
3954
|
+
/* @__PURE__ */ c("div", { className: H.textContainer, children: [
|
|
3955
3955
|
/* @__PURE__ */ e("div", { className: H.circle[d] }),
|
|
3956
3956
|
/* @__PURE__ */ e(w, { "data-testid": "title", className: H.text, children: t })
|
|
3957
3957
|
] }),
|
|
3958
3958
|
/* @__PURE__ */ e(w, { "data-testid": "date-and-time", className: H.dateAndTime, children: Z(a, "dd.MM.yyyy HH:mm:ss") })
|
|
3959
3959
|
] }),
|
|
3960
|
-
/* @__PURE__ */
|
|
3960
|
+
/* @__PURE__ */ c("div", { className: H.fileContainer, children: [
|
|
3961
3961
|
/* @__PURE__ */ e("div", { className: H.iconContainer, children: i.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
3962
3962
|
"img",
|
|
3963
3963
|
{
|
|
@@ -3968,7 +3968,7 @@ const $e = {
|
|
|
3968
3968
|
height: 30
|
|
3969
3969
|
}
|
|
3970
3970
|
) : /* @__PURE__ */ e(Gt, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3971
|
-
/* @__PURE__ */
|
|
3971
|
+
/* @__PURE__ */ c("div", { className: "flex-grow", children: [
|
|
3972
3972
|
/* @__PURE__ */ e(
|
|
3973
3973
|
w,
|
|
3974
3974
|
{
|
|
@@ -3981,7 +3981,7 @@ const $e = {
|
|
|
3981
3981
|
),
|
|
3982
3982
|
/* @__PURE__ */ e(w, { "data-testid": "size-file", className: H.sizeFile, children: mt(Number(i.size.toFixed(1))) })
|
|
3983
3983
|
] }),
|
|
3984
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ c("div", { className: H.buttonContainer, children: [
|
|
3985
3985
|
/* @__PURE__ */ e(
|
|
3986
3986
|
Ee,
|
|
3987
3987
|
{
|
|
@@ -3989,13 +3989,13 @@ const $e = {
|
|
|
3989
3989
|
root: n(H.button.basic, H.iconHover),
|
|
3990
3990
|
icon: H.downnloadIcon
|
|
3991
3991
|
},
|
|
3992
|
-
href:
|
|
3992
|
+
href: p || "#",
|
|
3993
3993
|
target: "_blank",
|
|
3994
3994
|
iconDimensions: { height: 22, width: 22, viewBox: "0 0 26 26" }
|
|
3995
3995
|
}
|
|
3996
3996
|
),
|
|
3997
3997
|
/* @__PURE__ */ e(
|
|
3998
|
-
|
|
3998
|
+
O,
|
|
3999
3999
|
{
|
|
4000
4000
|
"data-testid": "delete-button",
|
|
4001
4001
|
classNames: {
|
|
@@ -4049,14 +4049,14 @@ const $e = {
|
|
|
4049
4049
|
onDelete: a,
|
|
4050
4050
|
onDownload: o,
|
|
4051
4051
|
onShow: r,
|
|
4052
|
-
firstStatus:
|
|
4052
|
+
firstStatus: p = "success",
|
|
4053
4053
|
lastStatus: d = "success",
|
|
4054
4054
|
firstStatusText: l = "Text",
|
|
4055
4055
|
lastStatusText: u = "Text",
|
|
4056
4056
|
price: h = "100 000 000 UZS",
|
|
4057
4057
|
classNames: f
|
|
4058
|
-
}) => /* @__PURE__ */
|
|
4059
|
-
/* @__PURE__ */
|
|
4058
|
+
}) => /* @__PURE__ */ c("div", { className: n(P.wrapper, f == null ? void 0 : f.wrapper), children: [
|
|
4059
|
+
/* @__PURE__ */ c("div", { className: P.dateContainer.base, children: [
|
|
4060
4060
|
/* @__PURE__ */ e(
|
|
4061
4061
|
"div",
|
|
4062
4062
|
{
|
|
@@ -4069,16 +4069,16 @@ const $e = {
|
|
|
4069
4069
|
He,
|
|
4070
4070
|
{
|
|
4071
4071
|
text: l,
|
|
4072
|
-
variant:
|
|
4072
|
+
variant: p,
|
|
4073
4073
|
className: f == null ? void 0 : f.status
|
|
4074
4074
|
}
|
|
4075
4075
|
)
|
|
4076
4076
|
] }),
|
|
4077
|
-
/* @__PURE__ */
|
|
4077
|
+
/* @__PURE__ */ c("div", { className: P.titleContainer.base, children: [
|
|
4078
4078
|
/* @__PURE__ */ e(w, { "data-testid": "title", className: P.titleContainer.title, children: t }),
|
|
4079
4079
|
/* @__PURE__ */ e(w, { "data-testid": "price", className: P.titleContainer.price, children: h })
|
|
4080
4080
|
] }),
|
|
4081
|
-
/* @__PURE__ */
|
|
4081
|
+
/* @__PURE__ */ c("div", { className: P.buttonContainer.base, children: [
|
|
4082
4082
|
/* @__PURE__ */ e(
|
|
4083
4083
|
He,
|
|
4084
4084
|
{
|
|
@@ -4087,9 +4087,9 @@ const $e = {
|
|
|
4087
4087
|
className: f == null ? void 0 : f.status
|
|
4088
4088
|
}
|
|
4089
4089
|
),
|
|
4090
|
-
/* @__PURE__ */
|
|
4090
|
+
/* @__PURE__ */ c("div", { className: P.buttonContainer.button, children: [
|
|
4091
4091
|
/* @__PURE__ */ e(
|
|
4092
|
-
|
|
4092
|
+
O,
|
|
4093
4093
|
{
|
|
4094
4094
|
"data-testid": "download-button",
|
|
4095
4095
|
classNames: {
|
|
@@ -4098,12 +4098,12 @@ const $e = {
|
|
|
4098
4098
|
},
|
|
4099
4099
|
onClick: o,
|
|
4100
4100
|
variant: "text",
|
|
4101
|
-
icon:
|
|
4101
|
+
icon: nr,
|
|
4102
4102
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4103
4103
|
}
|
|
4104
4104
|
),
|
|
4105
4105
|
/* @__PURE__ */ e(
|
|
4106
|
-
|
|
4106
|
+
O,
|
|
4107
4107
|
{
|
|
4108
4108
|
"data-testid": "show-button",
|
|
4109
4109
|
classNames: {
|
|
@@ -4112,12 +4112,12 @@ const $e = {
|
|
|
4112
4112
|
},
|
|
4113
4113
|
onClick: r,
|
|
4114
4114
|
variant: "text",
|
|
4115
|
-
icon:
|
|
4115
|
+
icon: $r,
|
|
4116
4116
|
iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
|
|
4117
4117
|
}
|
|
4118
4118
|
),
|
|
4119
4119
|
/* @__PURE__ */ e(
|
|
4120
|
-
|
|
4120
|
+
O,
|
|
4121
4121
|
{
|
|
4122
4122
|
"data-testid": "delete-button",
|
|
4123
4123
|
classNames: {
|
|
@@ -4157,10 +4157,10 @@ const $e = {
|
|
|
4157
4157
|
icon: a,
|
|
4158
4158
|
iconDimensions: o,
|
|
4159
4159
|
classNames: r,
|
|
4160
|
-
onCLick:
|
|
4161
|
-
}) => /* @__PURE__ */
|
|
4160
|
+
onCLick: p
|
|
4161
|
+
}) => /* @__PURE__ */ c("div", { className: n(oe.container, r == null ? void 0 : r.root), children: [
|
|
4162
4162
|
/* @__PURE__ */ e("div", { className: oe.header, children: /* @__PURE__ */ e(
|
|
4163
|
-
|
|
4163
|
+
O,
|
|
4164
4164
|
{
|
|
4165
4165
|
icon: a,
|
|
4166
4166
|
variant: "text",
|
|
@@ -4176,16 +4176,16 @@ const $e = {
|
|
|
4176
4176
|
) }),
|
|
4177
4177
|
/* @__PURE__ */ e("div", { className: oe.body, children: i == null ? void 0 : i.map((d, l) => {
|
|
4178
4178
|
var u;
|
|
4179
|
-
return /* @__PURE__ */
|
|
4179
|
+
return /* @__PURE__ */ c("div", { className: oe.bodyItem, children: [
|
|
4180
4180
|
!!d.sectionTitle && /* @__PURE__ */ e(tt, { variant: "h2", className: oe.title, children: d.sectionTitle }),
|
|
4181
4181
|
!!d.sectionSubtitle && /* @__PURE__ */ e(tt, { variant: "h3", className: oe.subTitle, children: d.sectionSubtitle }),
|
|
4182
|
-
/* @__PURE__ */ e("ul", { className: oe.items, children: (u = d.items) == null ? void 0 : u.map((h, f) => /* @__PURE__ */
|
|
4182
|
+
/* @__PURE__ */ e("ul", { className: oe.items, children: (u = d.items) == null ? void 0 : u.map((h, f) => /* @__PURE__ */ c("li", { children: [
|
|
4183
4183
|
!!h.subtitle && /* @__PURE__ */ e(w, { "data-testid": "subtitle", className: oe.item, children: h == null ? void 0 : h.subtitle }),
|
|
4184
4184
|
/* @__PURE__ */ e(
|
|
4185
|
-
|
|
4185
|
+
O,
|
|
4186
4186
|
{
|
|
4187
4187
|
"data-testid": "link",
|
|
4188
|
-
onClick: () =>
|
|
4188
|
+
onClick: () => p == null ? void 0 : p(h.id),
|
|
4189
4189
|
variant: "text",
|
|
4190
4190
|
classNames: {
|
|
4191
4191
|
base: oe.link
|
|
@@ -4213,17 +4213,17 @@ const $e = {
|
|
|
4213
4213
|
options: i,
|
|
4214
4214
|
classNames: a
|
|
4215
4215
|
}) => {
|
|
4216
|
-
const o = Ce.base, r = Ce.content.wrapper,
|
|
4217
|
-
return /* @__PURE__ */
|
|
4216
|
+
const o = Ce.base, r = Ce.content.wrapper, p = Ce.content.title, d = Ce.content.typography, l = Ce.content.amount, u = Ce.content.amountBold, h = i.find((x) => x.total), f = i.filter((x) => !x.total);
|
|
4217
|
+
return /* @__PURE__ */ c("div", { className: n(o, a == null ? void 0 : a.root), children: [
|
|
4218
4218
|
/* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4219
4219
|
w,
|
|
4220
4220
|
{
|
|
4221
4221
|
"data-testid": "title",
|
|
4222
|
-
className: n(
|
|
4222
|
+
className: n(p, a == null ? void 0 : a.title),
|
|
4223
4223
|
children: t
|
|
4224
4224
|
}
|
|
4225
4225
|
) }),
|
|
4226
|
-
/* @__PURE__ */
|
|
4226
|
+
/* @__PURE__ */ c("div", { className: Ce.content.items, children: [
|
|
4227
4227
|
f.map((x) => /* @__PURE__ */ e(
|
|
4228
4228
|
Me,
|
|
4229
4229
|
{
|
|
@@ -4271,7 +4271,7 @@ const $e = {
|
|
|
4271
4271
|
label: i,
|
|
4272
4272
|
classNames: a,
|
|
4273
4273
|
...o
|
|
4274
|
-
}) => /* @__PURE__ */
|
|
4274
|
+
}) => /* @__PURE__ */ c(
|
|
4275
4275
|
w,
|
|
4276
4276
|
{
|
|
4277
4277
|
"data-testid": "label",
|
|
@@ -4292,45 +4292,45 @@ const $e = {
|
|
|
4292
4292
|
onChange: a,
|
|
4293
4293
|
handleDeleteItem: o,
|
|
4294
4294
|
handleCreateItem: r,
|
|
4295
|
-
onSaveEdit:
|
|
4295
|
+
onSaveEdit: p,
|
|
4296
4296
|
placeholder: d = "Choose",
|
|
4297
4297
|
value: l,
|
|
4298
4298
|
label: u,
|
|
4299
4299
|
title: h,
|
|
4300
4300
|
options: f = []
|
|
4301
4301
|
}, x) => {
|
|
4302
|
-
var
|
|
4303
|
-
const [g, b] = A(!1), [s, k] = A(l || ""), [
|
|
4304
|
-
const
|
|
4305
|
-
|
|
4306
|
-
}, C = (
|
|
4307
|
-
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4310
|
-
}, W = (
|
|
4311
|
-
|
|
4302
|
+
var fe;
|
|
4303
|
+
const [g, b] = A(!1), [s, k] = A(l || ""), [y, D] = A(""), [S, B] = A(null), m = ie(null), v = () => {
|
|
4304
|
+
const M = y.trim();
|
|
4305
|
+
M && (S && p ? (p(M, S), B(null)) : r(M), D(""));
|
|
4306
|
+
}, C = (M, j) => {
|
|
4307
|
+
j.stopPropagation(), B(M);
|
|
4308
|
+
const Y = f.find((X) => X.value === M);
|
|
4309
|
+
Y && D(Y.label);
|
|
4310
|
+
}, W = (M, j) => {
|
|
4311
|
+
j.stopPropagation(), o(M), s === M && k("");
|
|
4312
4312
|
}, T = () => {
|
|
4313
4313
|
D(""), B(null);
|
|
4314
4314
|
}, I = () => {
|
|
4315
4315
|
b(!1), T();
|
|
4316
4316
|
}, z = () => {
|
|
4317
4317
|
a(s), b(!1), T();
|
|
4318
|
-
},
|
|
4319
|
-
b(
|
|
4320
|
-
},
|
|
4321
|
-
return /* @__PURE__ */
|
|
4318
|
+
}, K = (M) => {
|
|
4319
|
+
b(M), M || T();
|
|
4320
|
+
}, te = l ? ((fe = f.find((M) => M.value === l)) == null ? void 0 : fe.label) || l : "", ue = te ? G.base.selected : G.base.placeholder;
|
|
4321
|
+
return /* @__PURE__ */ c("div", { className: G.container, children: [
|
|
4322
4322
|
u && /* @__PURE__ */ e(ee, { htmlFor: "select-list", disabled: i, children: u }),
|
|
4323
|
-
/* @__PURE__ */
|
|
4324
|
-
/* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ c(ae, { open: g, onOpenChange: K, children: [
|
|
4324
|
+
/* @__PURE__ */ c(
|
|
4325
4325
|
de,
|
|
4326
4326
|
{
|
|
4327
4327
|
role: "listbox",
|
|
4328
4328
|
disabled: i,
|
|
4329
4329
|
className: n(
|
|
4330
|
-
|
|
4331
|
-
i &&
|
|
4332
|
-
g &&
|
|
4333
|
-
!g && !i &&
|
|
4330
|
+
G.base.trigger,
|
|
4331
|
+
i && G.disabled.trigger,
|
|
4332
|
+
g && G.base.focus,
|
|
4333
|
+
!g && !i && G.base.hover,
|
|
4334
4334
|
t == null ? void 0 : t.trigger
|
|
4335
4335
|
),
|
|
4336
4336
|
children: [
|
|
@@ -4338,12 +4338,12 @@ const $e = {
|
|
|
4338
4338
|
w,
|
|
4339
4339
|
{
|
|
4340
4340
|
className: n(
|
|
4341
|
-
|
|
4342
|
-
i &&
|
|
4343
|
-
t == null ? void 0 : t[
|
|
4344
|
-
|
|
4341
|
+
G.base.text,
|
|
4342
|
+
i && G.disabled.triggerText,
|
|
4343
|
+
t == null ? void 0 : t[te ? "selected" : "placeholder"],
|
|
4344
|
+
ue
|
|
4345
4345
|
),
|
|
4346
|
-
children:
|
|
4346
|
+
children: te || d
|
|
4347
4347
|
}
|
|
4348
4348
|
),
|
|
4349
4349
|
/* @__PURE__ */ e(
|
|
@@ -4353,8 +4353,8 @@ const $e = {
|
|
|
4353
4353
|
height: 20,
|
|
4354
4354
|
viewBox: "0 0 20 20",
|
|
4355
4355
|
className: n(
|
|
4356
|
-
|
|
4357
|
-
i &&
|
|
4356
|
+
G.base.icon,
|
|
4357
|
+
i && G.base.iconDisabled,
|
|
4358
4358
|
g && "-rotate-180"
|
|
4359
4359
|
)
|
|
4360
4360
|
}
|
|
@@ -4362,15 +4362,15 @@ const $e = {
|
|
|
4362
4362
|
]
|
|
4363
4363
|
}
|
|
4364
4364
|
),
|
|
4365
|
-
/* @__PURE__ */ e("div", { ref:
|
|
4365
|
+
/* @__PURE__ */ e("div", { ref: m, className: "relative z-50", children: /* @__PURE__ */ c(
|
|
4366
4366
|
le,
|
|
4367
4367
|
{
|
|
4368
|
-
container:
|
|
4369
|
-
className: n(
|
|
4368
|
+
container: m.current,
|
|
4369
|
+
className: n(G.options.content, t == null ? void 0 : t.content),
|
|
4370
4370
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4371
4371
|
ref: x,
|
|
4372
4372
|
children: [
|
|
4373
|
-
h && /* @__PURE__ */ e(w, { className: n(
|
|
4373
|
+
h && /* @__PURE__ */ e(w, { className: n(G.options.label), children: h }),
|
|
4374
4374
|
/* @__PURE__ */ e(
|
|
4375
4375
|
St,
|
|
4376
4376
|
{
|
|
@@ -4378,8 +4378,8 @@ const $e = {
|
|
|
4378
4378
|
id: "select-list",
|
|
4379
4379
|
classNames: { target: "px-3 py-[9px]" },
|
|
4380
4380
|
placeholder: S && h ? `Редактировать ${h}` : h || "",
|
|
4381
|
-
value:
|
|
4382
|
-
onChange: (
|
|
4381
|
+
value: y,
|
|
4382
|
+
onChange: (M) => D(M.target.value)
|
|
4383
4383
|
},
|
|
4384
4384
|
icon: Zt,
|
|
4385
4385
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
@@ -4387,36 +4387,36 @@ const $e = {
|
|
|
4387
4387
|
onIconClick: v
|
|
4388
4388
|
}
|
|
4389
4389
|
),
|
|
4390
|
-
/* @__PURE__ */ e("div", { className:
|
|
4391
|
-
const
|
|
4392
|
-
return /* @__PURE__ */
|
|
4390
|
+
/* @__PURE__ */ e("div", { className: G.options.optionsWrapper, children: f.map((M) => {
|
|
4391
|
+
const j = S === M.value, Y = s === M.value;
|
|
4392
|
+
return /* @__PURE__ */ c(
|
|
4393
4393
|
"div",
|
|
4394
4394
|
{
|
|
4395
4395
|
className: n(
|
|
4396
|
-
|
|
4397
|
-
|
|
4396
|
+
G.options.items,
|
|
4397
|
+
j && "opacity-50"
|
|
4398
4398
|
),
|
|
4399
|
-
onClick: (
|
|
4400
|
-
|
|
4399
|
+
onClick: (X) => {
|
|
4400
|
+
X.stopPropagation(), X.preventDefault(), j || k(M.value);
|
|
4401
4401
|
},
|
|
4402
4402
|
children: [
|
|
4403
|
-
/* @__PURE__ */
|
|
4403
|
+
/* @__PURE__ */ c(
|
|
4404
4404
|
w,
|
|
4405
4405
|
{
|
|
4406
4406
|
className: n(
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4407
|
+
G.options.itemsText,
|
|
4408
|
+
G.options.dot,
|
|
4409
|
+
Y && "before:bg-dark-10"
|
|
4410
4410
|
),
|
|
4411
4411
|
children: [
|
|
4412
|
-
|
|
4413
|
-
|
|
4412
|
+
M.label,
|
|
4413
|
+
j && " (редактируется...)"
|
|
4414
4414
|
]
|
|
4415
4415
|
}
|
|
4416
4416
|
),
|
|
4417
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ c("div", { className: "flex gap-2", children: [
|
|
4418
4418
|
/* @__PURE__ */ e(
|
|
4419
|
-
|
|
4419
|
+
O,
|
|
4420
4420
|
{
|
|
4421
4421
|
variant: "text",
|
|
4422
4422
|
icon: Ct,
|
|
@@ -4424,17 +4424,17 @@ const $e = {
|
|
|
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: (
|
|
4427
|
+
onClick: (X) => C(M.value, X),
|
|
4428
4428
|
iconDimensions: {
|
|
4429
4429
|
height: 20,
|
|
4430
4430
|
width: 20,
|
|
4431
4431
|
viewBox: "0 0 31 31"
|
|
4432
4432
|
},
|
|
4433
|
-
disabled:
|
|
4433
|
+
disabled: j
|
|
4434
4434
|
}
|
|
4435
4435
|
),
|
|
4436
4436
|
/* @__PURE__ */ e(
|
|
4437
|
-
|
|
4437
|
+
O,
|
|
4438
4438
|
{
|
|
4439
4439
|
variant: "text",
|
|
4440
4440
|
icon: Oe,
|
|
@@ -4442,38 +4442,38 @@ const $e = {
|
|
|
4442
4442
|
base: "p-0",
|
|
4443
4443
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4444
4444
|
},
|
|
4445
|
-
onClick: (
|
|
4445
|
+
onClick: (X) => W(M.value, X),
|
|
4446
4446
|
iconDimensions: {
|
|
4447
4447
|
height: 20,
|
|
4448
4448
|
width: 20,
|
|
4449
4449
|
viewBox: "0 0 30 30"
|
|
4450
4450
|
},
|
|
4451
|
-
disabled:
|
|
4451
|
+
disabled: j
|
|
4452
4452
|
}
|
|
4453
4453
|
)
|
|
4454
4454
|
] })
|
|
4455
4455
|
]
|
|
4456
4456
|
},
|
|
4457
|
-
|
|
4457
|
+
M.value
|
|
4458
4458
|
);
|
|
4459
4459
|
}) }),
|
|
4460
|
-
/* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ c("div", { className: n(G.options.primaryActionsWrapper), children: [
|
|
4461
4461
|
/* @__PURE__ */ e(
|
|
4462
|
-
|
|
4462
|
+
O,
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "button",
|
|
4465
4465
|
variant: "secondary",
|
|
4466
|
-
className: n(
|
|
4466
|
+
className: n(G.options.primaryActionCancel),
|
|
4467
4467
|
onClick: I,
|
|
4468
4468
|
children: "Отмена"
|
|
4469
4469
|
}
|
|
4470
4470
|
),
|
|
4471
4471
|
/* @__PURE__ */ e(
|
|
4472
|
-
|
|
4472
|
+
O,
|
|
4473
4473
|
{
|
|
4474
4474
|
type: "button",
|
|
4475
4475
|
variant: "primary",
|
|
4476
|
-
className: n(
|
|
4476
|
+
className: n(G.options.primaryActionApply),
|
|
4477
4477
|
isShadow: !0,
|
|
4478
4478
|
onClick: z,
|
|
4479
4479
|
children: "Сохранить"
|
|
@@ -4488,7 +4488,7 @@ const $e = {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
);
|
|
4490
4490
|
Gn.displayName = "SelectList";
|
|
4491
|
-
const
|
|
4491
|
+
const G = {
|
|
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",
|
|
@@ -4523,7 +4523,7 @@ const Y = {
|
|
|
4523
4523
|
isActive: i,
|
|
4524
4524
|
item: { icon: a, label: o = "" },
|
|
4525
4525
|
onClick: r
|
|
4526
|
-
}) => /* @__PURE__ */
|
|
4526
|
+
}) => /* @__PURE__ */ c(
|
|
4527
4527
|
"div",
|
|
4528
4528
|
{
|
|
4529
4529
|
className: n(
|
|
@@ -4580,12 +4580,12 @@ const Y = {
|
|
|
4580
4580
|
popoverOptions: a = [],
|
|
4581
4581
|
activePopoverValue: o,
|
|
4582
4582
|
classNames: r,
|
|
4583
|
-
onTabChange:
|
|
4583
|
+
onTabChange: p,
|
|
4584
4584
|
onPopoverSelect: d,
|
|
4585
4585
|
actions: l
|
|
4586
4586
|
}) => {
|
|
4587
4587
|
const [u, h] = L.useState(!1);
|
|
4588
|
-
return /* @__PURE__ */
|
|
4588
|
+
return /* @__PURE__ */ c(
|
|
4589
4589
|
"div",
|
|
4590
4590
|
{
|
|
4591
4591
|
"data-testid": "chat-sidebar-root",
|
|
@@ -4593,9 +4593,9 @@ const Y = {
|
|
|
4593
4593
|
"aria-label": "navigation",
|
|
4594
4594
|
className: n(Le.root, r == null ? void 0 : r.root),
|
|
4595
4595
|
children: [
|
|
4596
|
-
/* @__PURE__ */
|
|
4596
|
+
/* @__PURE__ */ c(ae, { open: u, onOpenChange: h, children: [
|
|
4597
4597
|
/* @__PURE__ */ e(de, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4598
|
-
|
|
4598
|
+
O,
|
|
4599
4599
|
{
|
|
4600
4600
|
variant: "text",
|
|
4601
4601
|
type: "button",
|
|
@@ -4605,7 +4605,7 @@ const Y = {
|
|
|
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: Qr
|
|
4609
4609
|
}
|
|
4610
4610
|
) }),
|
|
4611
4611
|
/* @__PURE__ */ e(
|
|
@@ -4617,7 +4617,7 @@ const Y = {
|
|
|
4617
4617
|
className: n(Le.popover, r == null ? void 0 : r.popover),
|
|
4618
4618
|
children: a.map((f) => {
|
|
4619
4619
|
const x = o === f.value;
|
|
4620
|
-
return /* @__PURE__ */
|
|
4620
|
+
return /* @__PURE__ */ c(
|
|
4621
4621
|
ee,
|
|
4622
4622
|
{
|
|
4623
4623
|
htmlFor: `popover-radio-${f.value}`,
|
|
@@ -4658,7 +4658,7 @@ const Y = {
|
|
|
4658
4658
|
{
|
|
4659
4659
|
item: f,
|
|
4660
4660
|
isActive: i === f.value,
|
|
4661
|
-
onClick: () =>
|
|
4661
|
+
onClick: () => p == null ? void 0 : p(f.value)
|
|
4662
4662
|
},
|
|
4663
4663
|
f.value
|
|
4664
4664
|
)) }),
|
|
@@ -4698,14 +4698,14 @@ const Y = {
|
|
|
4698
4698
|
onSelectChat: i,
|
|
4699
4699
|
classNames: a
|
|
4700
4700
|
}) => {
|
|
4701
|
-
const [o, r] = A(null), [
|
|
4701
|
+
const [o, r] = A(null), [p, d] = A(""), l = (u) => {
|
|
4702
4702
|
r(u), i == null || i(u);
|
|
4703
4703
|
};
|
|
4704
|
-
return /* @__PURE__ */
|
|
4704
|
+
return /* @__PURE__ */ c("div", { className: n(Rt.wrapper, a == null ? void 0 : a.wrapper), children: [
|
|
4705
4705
|
/* @__PURE__ */ e(
|
|
4706
4706
|
xn,
|
|
4707
4707
|
{
|
|
4708
|
-
value:
|
|
4708
|
+
value: p,
|
|
4709
4709
|
onChange: (u) => d(u.target.value),
|
|
4710
4710
|
isHasFilter: !1,
|
|
4711
4711
|
classNames: {
|
|
@@ -4739,15 +4739,15 @@ const Y = {
|
|
|
4739
4739
|
senderName: a,
|
|
4740
4740
|
messages: o,
|
|
4741
4741
|
avatar: r,
|
|
4742
|
-
isGroupChat:
|
|
4742
|
+
isGroupChat: p,
|
|
4743
4743
|
selectedMessages: d,
|
|
4744
4744
|
onSelectedMessage: l,
|
|
4745
4745
|
visibleSelections: u,
|
|
4746
4746
|
classNames: h
|
|
4747
4747
|
}) => {
|
|
4748
4748
|
const f = t === i;
|
|
4749
|
-
return /* @__PURE__ */
|
|
4750
|
-
|
|
4749
|
+
return /* @__PURE__ */ c("div", { className: n(Pe.root, h == null ? void 0 : h.root), children: [
|
|
4750
|
+
p && !f && /* @__PURE__ */ e(
|
|
4751
4751
|
Et,
|
|
4752
4752
|
{
|
|
4753
4753
|
imageSrc: r == null ? void 0 : r.url,
|
|
@@ -4762,24 +4762,24 @@ const Y = {
|
|
|
4762
4762
|
className: n(Pe.list, f && "items-end", h == null ? void 0 : h.list),
|
|
4763
4763
|
children: o.map((x, g, b) => {
|
|
4764
4764
|
const s = (x == null ? void 0 : x.id) && (d == null ? void 0 : d.includes(x.id));
|
|
4765
|
-
return /* @__PURE__ */
|
|
4765
|
+
return /* @__PURE__ */ c(
|
|
4766
4766
|
"ul",
|
|
4767
4767
|
{
|
|
4768
4768
|
role: "listitem",
|
|
4769
4769
|
className: n(Pe.item, h == null ? void 0 : h.item),
|
|
4770
4770
|
children: [
|
|
4771
4771
|
/* @__PURE__ */ e(
|
|
4772
|
-
|
|
4772
|
+
Dr,
|
|
4773
4773
|
{
|
|
4774
4774
|
id: x.id,
|
|
4775
4775
|
text: x.text,
|
|
4776
4776
|
timestamp: x.timestamp,
|
|
4777
|
-
senderName:
|
|
4777
|
+
senderName: p ? a : "",
|
|
4778
4778
|
status: x.status,
|
|
4779
4779
|
isMine: f,
|
|
4780
4780
|
selected: !!s,
|
|
4781
|
-
firstMessage: !f &&
|
|
4782
|
-
lastMessage: !f &&
|
|
4781
|
+
firstMessage: !f && p ? g === 0 : !1,
|
|
4782
|
+
lastMessage: !f && p ? g === b.length - 1 : !0,
|
|
4783
4783
|
onClick: () => l == null ? void 0 : l(x == null ? void 0 : x.id)
|
|
4784
4784
|
},
|
|
4785
4785
|
x.id
|
|
@@ -4794,7 +4794,7 @@ const Y = {
|
|
|
4794
4794
|
),
|
|
4795
4795
|
onClick: () => l == null ? void 0 : l(x == null ? void 0 : x.id),
|
|
4796
4796
|
children: /* @__PURE__ */ e(
|
|
4797
|
-
|
|
4797
|
+
Xr,
|
|
4798
4798
|
{
|
|
4799
4799
|
className: n(
|
|
4800
4800
|
s ? "fill-sidebar-10" : "fill-transparent"
|
|
@@ -4826,10 +4826,10 @@ const Y = {
|
|
|
4826
4826
|
onClose: o,
|
|
4827
4827
|
classNames: r
|
|
4828
4828
|
}) => {
|
|
4829
|
-
const
|
|
4829
|
+
const p = () => {
|
|
4830
4830
|
a(), o();
|
|
4831
4831
|
}, d = Ne.delete;
|
|
4832
|
-
return /* @__PURE__ */ e("div", { className: n(Ne.wrapper, r == null ? void 0 : r.wrapper), children: /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ e("div", { className: n(Ne.wrapper, r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ c(
|
|
4833
4833
|
"div",
|
|
4834
4834
|
{
|
|
4835
4835
|
"data-testid": "delete-message-group",
|
|
@@ -4858,12 +4858,12 @@ const Y = {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
}
|
|
4860
4860
|
),
|
|
4861
|
-
/* @__PURE__ */
|
|
4861
|
+
/* @__PURE__ */ c("p", { className: Ne.amount, children: [
|
|
4862
4862
|
t,
|
|
4863
4863
|
" сообщения"
|
|
4864
4864
|
] }),
|
|
4865
4865
|
/* @__PURE__ */ e(
|
|
4866
|
-
|
|
4866
|
+
O,
|
|
4867
4867
|
{
|
|
4868
4868
|
variant: "text",
|
|
4869
4869
|
icon: Oe,
|
|
@@ -4871,7 +4871,7 @@ const Y = {
|
|
|
4871
4871
|
base: d.button,
|
|
4872
4872
|
icon: d.icon
|
|
4873
4873
|
},
|
|
4874
|
-
onClick:
|
|
4874
|
+
onClick: p,
|
|
4875
4875
|
iconDimensions: {
|
|
4876
4876
|
width: 20,
|
|
4877
4877
|
height: 20,
|
|
@@ -4895,7 +4895,7 @@ const Y = {
|
|
|
4895
4895
|
}, Kn = [
|
|
4896
4896
|
{
|
|
4897
4897
|
id: "download",
|
|
4898
|
-
icon:
|
|
4898
|
+
icon: wr,
|
|
4899
4899
|
iconSizes: {
|
|
4900
4900
|
width: 20,
|
|
4901
4901
|
height: 20,
|
|
@@ -4915,7 +4915,7 @@ const Y = {
|
|
|
4915
4915
|
},
|
|
4916
4916
|
{
|
|
4917
4917
|
id: "response",
|
|
4918
|
-
icon:
|
|
4918
|
+
icon: Jr,
|
|
4919
4919
|
iconSizes: {
|
|
4920
4920
|
width: 20,
|
|
4921
4921
|
height: 20
|
|
@@ -4924,7 +4924,7 @@ const Y = {
|
|
|
4924
4924
|
},
|
|
4925
4925
|
{
|
|
4926
4926
|
id: "copy",
|
|
4927
|
-
icon:
|
|
4927
|
+
icon: Pr,
|
|
4928
4928
|
iconSizes: {
|
|
4929
4929
|
width: 20,
|
|
4930
4930
|
height: 20
|
|
@@ -4933,7 +4933,7 @@ const Y = {
|
|
|
4933
4933
|
},
|
|
4934
4934
|
{
|
|
4935
4935
|
id: "select",
|
|
4936
|
-
icon:
|
|
4936
|
+
icon: Nr,
|
|
4937
4937
|
iconSizes: {
|
|
4938
4938
|
width: 20,
|
|
4939
4939
|
height: 20
|
|
@@ -4954,10 +4954,10 @@ const Y = {
|
|
|
4954
4954
|
], ti = ({ trigger: t, onClick: i }) => {
|
|
4955
4955
|
const [a, o] = A(!1), r = (f) => {
|
|
4956
4956
|
f.preventDefault(), o(!0);
|
|
4957
|
-
},
|
|
4957
|
+
}, p = (f) => {
|
|
4958
4958
|
i(f), o(!1);
|
|
4959
4959
|
}, { icon: d, base: l } = xt.button.normal, { icon: u, base: h } = xt.button.danger;
|
|
4960
|
-
return /* @__PURE__ */
|
|
4960
|
+
return /* @__PURE__ */ c(ae, { open: a, onOpenChange: o, children: [
|
|
4961
4961
|
/* @__PURE__ */ e(de, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4962
4962
|
"div",
|
|
4963
4963
|
{
|
|
@@ -4974,14 +4974,14 @@ const Y = {
|
|
|
4974
4974
|
side: "top",
|
|
4975
4975
|
className: xt.wrapper,
|
|
4976
4976
|
children: Kn.map(({ id: f, icon: x, iconSizes: g, isDanger: b, text: s }) => /* @__PURE__ */ e(
|
|
4977
|
-
|
|
4977
|
+
O,
|
|
4978
4978
|
{
|
|
4979
4979
|
"data-testid": "action",
|
|
4980
4980
|
variant: "text",
|
|
4981
4981
|
iconPosition: "left",
|
|
4982
4982
|
icon: x,
|
|
4983
4983
|
iconDimensions: g,
|
|
4984
|
-
onClick: () =>
|
|
4984
|
+
onClick: () => p(f),
|
|
4985
4985
|
classNames: {
|
|
4986
4986
|
icon: b ? u : d,
|
|
4987
4987
|
base: b ? h : l
|
|
@@ -5007,11 +5007,11 @@ const Y = {
|
|
|
5007
5007
|
}
|
|
5008
5008
|
}, ri = ({ tabs: t }) => {
|
|
5009
5009
|
const i = qt();
|
|
5010
|
-
return /* @__PURE__ */ e("div", { className: Vn.wrapper, "data-testid": "tab-list", children: t.map(({ id: a, icon: o, label: r, isActive:
|
|
5011
|
-
|
|
5010
|
+
return /* @__PURE__ */ e("div", { className: Vn.wrapper, "data-testid": "tab-list", children: t.map(({ id: a, icon: o, label: r, isActive: p, href: d }) => /* @__PURE__ */ e(
|
|
5011
|
+
Sr,
|
|
5012
5012
|
{
|
|
5013
5013
|
icon: o,
|
|
5014
|
-
active:
|
|
5014
|
+
active: p,
|
|
5015
5015
|
onClick: () => i(d),
|
|
5016
5016
|
variant: "medium",
|
|
5017
5017
|
children: r
|
|
@@ -5026,46 +5026,46 @@ const Y = {
|
|
|
5026
5026
|
placeholder: a,
|
|
5027
5027
|
isError: o = !1,
|
|
5028
5028
|
onChange: r,
|
|
5029
|
-
onAdd:
|
|
5029
|
+
onAdd: p,
|
|
5030
5030
|
onEdit: d,
|
|
5031
5031
|
onDelete: l
|
|
5032
5032
|
}) => {
|
|
5033
5033
|
const [u, h] = A(!1), f = t == null ? void 0 : t.find((g) => g.id === i), x = (g, b) => {
|
|
5034
5034
|
g.stopPropagation(), r(b), h(!1);
|
|
5035
5035
|
};
|
|
5036
|
-
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */
|
|
5037
|
-
/* @__PURE__ */
|
|
5036
|
+
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ c(ae, { open: u, onOpenChange: h, children: [
|
|
5037
|
+
/* @__PURE__ */ c(
|
|
5038
5038
|
de,
|
|
5039
5039
|
{
|
|
5040
5040
|
role: "listbox",
|
|
5041
5041
|
className: n(
|
|
5042
|
-
|
|
5043
|
-
u &&
|
|
5044
|
-
!u &&
|
|
5045
|
-
o && !u &&
|
|
5042
|
+
ce.trigger,
|
|
5043
|
+
u && ce.focus,
|
|
5044
|
+
!u && ce.hover,
|
|
5045
|
+
o && !u && ce.error
|
|
5046
5046
|
),
|
|
5047
5047
|
children: [
|
|
5048
5048
|
i ? f == null ? void 0 : f.name.ru : a,
|
|
5049
|
-
/* @__PURE__ */ e(
|
|
5049
|
+
/* @__PURE__ */ e(or, { className: n(ce.icon, u && "-rotate-180") })
|
|
5050
5050
|
]
|
|
5051
5051
|
}
|
|
5052
5052
|
),
|
|
5053
|
-
/* @__PURE__ */
|
|
5054
|
-
/* @__PURE__ */ e("ul", { role: "list", className:
|
|
5053
|
+
/* @__PURE__ */ c(le, { className: ce.content, children: [
|
|
5054
|
+
/* @__PURE__ */ e("ul", { role: "list", className: ce.list, children: t == null ? void 0 : t.map(({ name: g, id: b }) => /* @__PURE__ */ c("li", { role: "listitem", className: ce.item, children: [
|
|
5055
5055
|
/* @__PURE__ */ e(
|
|
5056
5056
|
w,
|
|
5057
5057
|
{
|
|
5058
5058
|
className: n(
|
|
5059
|
-
|
|
5059
|
+
ce.name,
|
|
5060
5060
|
i === b && "before:bg-dark-10"
|
|
5061
5061
|
),
|
|
5062
5062
|
onClick: (s) => x(s, b),
|
|
5063
5063
|
children: g.ru
|
|
5064
5064
|
}
|
|
5065
5065
|
),
|
|
5066
|
-
/* @__PURE__ */
|
|
5066
|
+
/* @__PURE__ */ c("div", { className: ce.actions, children: [
|
|
5067
5067
|
/* @__PURE__ */ e(
|
|
5068
|
-
|
|
5068
|
+
O,
|
|
5069
5069
|
{
|
|
5070
5070
|
"data-testid": "edit-button",
|
|
5071
5071
|
variant: "text",
|
|
@@ -5085,7 +5085,7 @@ const Y = {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
),
|
|
5087
5087
|
/* @__PURE__ */ e(
|
|
5088
|
-
|
|
5088
|
+
O,
|
|
5089
5089
|
{
|
|
5090
5090
|
"data-testid": "delete-button",
|
|
5091
5091
|
variant: "text",
|
|
@@ -5107,7 +5107,7 @@ const Y = {
|
|
|
5107
5107
|
] })
|
|
5108
5108
|
] }, b)) }),
|
|
5109
5109
|
/* @__PURE__ */ e(
|
|
5110
|
-
|
|
5110
|
+
O,
|
|
5111
5111
|
{
|
|
5112
5112
|
variant: "text",
|
|
5113
5113
|
icon: Zt,
|
|
@@ -5117,13 +5117,13 @@ const Y = {
|
|
|
5117
5117
|
classNames: {
|
|
5118
5118
|
base: "whitespace-nowrap p-0 mt-4 justify-center"
|
|
5119
5119
|
},
|
|
5120
|
-
onClick:
|
|
5120
|
+
onClick: p,
|
|
5121
5121
|
children: "Добавить этаж"
|
|
5122
5122
|
}
|
|
5123
5123
|
)
|
|
5124
5124
|
] })
|
|
5125
5125
|
] }) });
|
|
5126
|
-
},
|
|
5126
|
+
}, ce = {
|
|
5127
5127
|
icon: "text-dark-40 fill-dark-40",
|
|
5128
5128
|
trigger: "w-full px-4 py-3 rounded-[10px] h-11 border border-dark-30/[.10] bg-gray-50 text-start flex justify-between items-center outline-none",
|
|
5129
5129
|
focus: "bg-transparent outline-[2px] outline-primary-10/[.20] border-primary-10 outline-offset-0",
|
|
@@ -5150,7 +5150,7 @@ const Y = {
|
|
|
5150
5150
|
colors: i,
|
|
5151
5151
|
items: a
|
|
5152
5152
|
}) => {
|
|
5153
|
-
const { radius: o, legendPosition: r, chartCenter:
|
|
5153
|
+
const { radius: o, legendPosition: r, chartCenter: p } = qn[t], d = a.every(({ value: h }) => !h), l = d ? [Ye.gray[30]] : i, u = d ? [{ value: 1, name: "пусто" }] : a;
|
|
5154
5154
|
return {
|
|
5155
5155
|
color: l,
|
|
5156
5156
|
tooltip: {
|
|
@@ -5189,7 +5189,7 @@ const Y = {
|
|
|
5189
5189
|
{
|
|
5190
5190
|
name: t,
|
|
5191
5191
|
type: "pie",
|
|
5192
|
-
center:
|
|
5192
|
+
center: p,
|
|
5193
5193
|
radius: o,
|
|
5194
5194
|
label: { show: !1 },
|
|
5195
5195
|
labelLine: { show: !1 },
|
|
@@ -5204,7 +5204,7 @@ const Y = {
|
|
|
5204
5204
|
title: a,
|
|
5205
5205
|
icon: o,
|
|
5206
5206
|
data: r,
|
|
5207
|
-
colors:
|
|
5207
|
+
colors: p,
|
|
5208
5208
|
classNames: d,
|
|
5209
5209
|
...l
|
|
5210
5210
|
}, u) => {
|
|
@@ -5215,8 +5215,8 @@ const Y = {
|
|
|
5215
5215
|
{ value: r.free, name: "Свободно" }
|
|
5216
5216
|
];
|
|
5217
5217
|
r.blocked !== void 0 && h.push({ value: r.blocked, name: "Заблокировано" });
|
|
5218
|
-
const f = i === "chart" ? Zn({ chartMode: t, colors:
|
|
5219
|
-
return /* @__PURE__ */
|
|
5218
|
+
const f = i === "chart" ? Zn({ chartMode: t, colors: p, items: h }) : void 0;
|
|
5219
|
+
return /* @__PURE__ */ c(
|
|
5220
5220
|
"div",
|
|
5221
5221
|
{
|
|
5222
5222
|
className: n(q.root, d == null ? void 0 : d.root),
|
|
@@ -5224,7 +5224,7 @@ const Y = {
|
|
|
5224
5224
|
ref: u,
|
|
5225
5225
|
...l,
|
|
5226
5226
|
children: [
|
|
5227
|
-
/* @__PURE__ */
|
|
5227
|
+
/* @__PURE__ */ c("div", { className: n(q.header, d == null ? void 0 : d.header), children: [
|
|
5228
5228
|
/* @__PURE__ */ e(
|
|
5229
5229
|
Ge,
|
|
5230
5230
|
{
|
|
@@ -5243,9 +5243,9 @@ const Y = {
|
|
|
5243
5243
|
)
|
|
5244
5244
|
] }),
|
|
5245
5245
|
/* @__PURE__ */ e(w, { className: n(q.totalText, d == null ? void 0 : d.totalText), children: "Общее количество" }),
|
|
5246
|
-
/* @__PURE__ */
|
|
5246
|
+
/* @__PURE__ */ c("div", { className: n(q.block, d == null ? void 0 : d.block), children: [
|
|
5247
5247
|
/* @__PURE__ */ e(w, { className: n(q.total, d == null ? void 0 : d.total), children: r.total }),
|
|
5248
|
-
!!r.growth && /* @__PURE__ */
|
|
5248
|
+
!!r.growth && /* @__PURE__ */ c("div", { className: n(q.badge, d == null ? void 0 : d.badge), children: [
|
|
5249
5249
|
/* @__PURE__ */ e(
|
|
5250
5250
|
gt,
|
|
5251
5251
|
{
|
|
@@ -5255,7 +5255,7 @@ const Y = {
|
|
|
5255
5255
|
viewBox: "0 0 16 16"
|
|
5256
5256
|
}
|
|
5257
5257
|
),
|
|
5258
|
-
/* @__PURE__ */
|
|
5258
|
+
/* @__PURE__ */ c(
|
|
5259
5259
|
w,
|
|
5260
5260
|
{
|
|
5261
5261
|
variant: "span",
|
|
@@ -5276,7 +5276,7 @@ const Y = {
|
|
|
5276
5276
|
style: { height: 250 }
|
|
5277
5277
|
}
|
|
5278
5278
|
),
|
|
5279
|
-
i === "progress" && /* @__PURE__ */
|
|
5279
|
+
i === "progress" && /* @__PURE__ */ c("div", { className: n(q.progress.root, (x = d == null ? void 0 : d.progress) == null ? void 0 : x.root), children: [
|
|
5280
5280
|
/* @__PURE__ */ e(
|
|
5281
5281
|
"div",
|
|
5282
5282
|
{
|
|
@@ -5284,11 +5284,11 @@ const Y = {
|
|
|
5284
5284
|
}
|
|
5285
5285
|
),
|
|
5286
5286
|
h.map(({ name: b, value: s }, k) => {
|
|
5287
|
-
var
|
|
5288
|
-
return /* @__PURE__ */
|
|
5287
|
+
var y, D, S;
|
|
5288
|
+
return /* @__PURE__ */ c(
|
|
5289
5289
|
"div",
|
|
5290
5290
|
{
|
|
5291
|
-
className: n(q.progress.row, (
|
|
5291
|
+
className: n(q.progress.row, (y = d == null ? void 0 : d.progress) == null ? void 0 : y.row),
|
|
5292
5292
|
children: [
|
|
5293
5293
|
/* @__PURE__ */ e(
|
|
5294
5294
|
w,
|
|
@@ -5301,11 +5301,11 @@ const Y = {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
),
|
|
5303
5303
|
/* @__PURE__ */ e(
|
|
5304
|
-
|
|
5304
|
+
pr,
|
|
5305
5305
|
{
|
|
5306
5306
|
value: s,
|
|
5307
5307
|
total: r.total,
|
|
5308
|
-
color:
|
|
5308
|
+
color: p[k],
|
|
5309
5309
|
classNames: {
|
|
5310
5310
|
bar: q.progress.bar,
|
|
5311
5311
|
indicator: q.progress.indicator
|
|
@@ -5398,46 +5398,46 @@ const Y = {
|
|
|
5398
5398
|
]
|
|
5399
5399
|
};
|
|
5400
5400
|
}, ii = Q(
|
|
5401
|
-
({ data: t, title: i, mode: a = "stat", settings: o, classNames: r, ...
|
|
5401
|
+
({ data: t, title: i, mode: a = "stat", settings: o, classNames: r, ...p }, d) => {
|
|
5402
5402
|
const {
|
|
5403
5403
|
chartColor: l = "#1B9BE4",
|
|
5404
5404
|
allWhite: u = !1,
|
|
5405
5405
|
arrowDown: h = !1,
|
|
5406
5406
|
icon: f = null
|
|
5407
|
-
} = o ?? {}, x = u ? "#ffffff" : l, g = a === "payment" ?
|
|
5408
|
-
return /* @__PURE__ */
|
|
5407
|
+
} = o ?? {}, x = u ? "#ffffff" : l, g = a === "payment" ? kr(t.total) : t.total, b = Qn(a), s = Xn(a, x);
|
|
5408
|
+
return /* @__PURE__ */ c(
|
|
5409
5409
|
"div",
|
|
5410
5410
|
{
|
|
5411
5411
|
ref: d,
|
|
5412
5412
|
"data-testid": "card-container",
|
|
5413
|
-
className: n(
|
|
5414
|
-
...
|
|
5413
|
+
className: n(he.container, r == null ? void 0 : r.container),
|
|
5414
|
+
...p,
|
|
5415
5415
|
children: [
|
|
5416
5416
|
/* @__PURE__ */ e(
|
|
5417
5417
|
w,
|
|
5418
5418
|
{
|
|
5419
5419
|
className: n(
|
|
5420
|
-
|
|
5420
|
+
he.title,
|
|
5421
5421
|
r == null ? void 0 : r.title,
|
|
5422
5422
|
u && "text-sidebar-10"
|
|
5423
5423
|
),
|
|
5424
5424
|
children: i
|
|
5425
5425
|
}
|
|
5426
5426
|
),
|
|
5427
|
-
/* @__PURE__ */
|
|
5427
|
+
/* @__PURE__ */ c("div", { className: n(he.totalBlock, r == null ? void 0 : r.totalBlock), children: [
|
|
5428
5428
|
/* @__PURE__ */ e(
|
|
5429
5429
|
w,
|
|
5430
5430
|
{
|
|
5431
5431
|
className: n(
|
|
5432
|
-
|
|
5432
|
+
he.total,
|
|
5433
5433
|
r == null ? void 0 : r.total,
|
|
5434
5434
|
u && "text-sidebar-10"
|
|
5435
5435
|
),
|
|
5436
5436
|
children: g
|
|
5437
5437
|
}
|
|
5438
5438
|
),
|
|
5439
|
-
a === "payment" && /* @__PURE__ */ e(w, { className:
|
|
5440
|
-
!!t.growth && a === "count" && /* @__PURE__ */
|
|
5439
|
+
a === "payment" && /* @__PURE__ */ e(w, { className: he.payment, children: "Сум" }),
|
|
5440
|
+
!!t.growth && a === "count" && /* @__PURE__ */ c("div", { className: n(he.badge, r == null ? void 0 : r.badge), children: [
|
|
5441
5441
|
/* @__PURE__ */ e(
|
|
5442
5442
|
gt,
|
|
5443
5443
|
{
|
|
@@ -5447,20 +5447,20 @@ const Y = {
|
|
|
5447
5447
|
viewBox: "0 0 16 16"
|
|
5448
5448
|
}
|
|
5449
5449
|
),
|
|
5450
|
-
/* @__PURE__ */
|
|
5450
|
+
/* @__PURE__ */ c(w, { variant: "span", className: he.percent, children: [
|
|
5451
5451
|
t.growth,
|
|
5452
5452
|
"%"
|
|
5453
5453
|
] })
|
|
5454
5454
|
] })
|
|
5455
5455
|
] }),
|
|
5456
|
-
a === "count" && /* @__PURE__ */
|
|
5456
|
+
a === "count" && /* @__PURE__ */ c("div", { className: n(he.counBlock, r == null ? void 0 : r.countBlock), children: [
|
|
5457
5457
|
/* @__PURE__ */ e(Me, { label: "Физическое лицо:", value: t.physical }),
|
|
5458
5458
|
/* @__PURE__ */ e(Me, { label: "Юридическое лицо:", value: t.legal })
|
|
5459
5459
|
] }),
|
|
5460
|
-
!!t.growth && a !== "count" && /* @__PURE__ */
|
|
5460
|
+
!!t.growth && a !== "count" && /* @__PURE__ */ c(
|
|
5461
5461
|
"div",
|
|
5462
5462
|
{
|
|
5463
|
-
className: n(
|
|
5463
|
+
className: n(he.growth, r == null ? void 0 : r.growth),
|
|
5464
5464
|
style: { color: x },
|
|
5465
5465
|
children: [
|
|
5466
5466
|
/* @__PURE__ */ e(
|
|
@@ -5471,14 +5471,14 @@ const Y = {
|
|
|
5471
5471
|
className: n(h && "rotate-180")
|
|
5472
5472
|
}
|
|
5473
5473
|
),
|
|
5474
|
-
/* @__PURE__ */
|
|
5474
|
+
/* @__PURE__ */ c(w, { variant: "span", children: [
|
|
5475
5475
|
t.growth,
|
|
5476
5476
|
"%"
|
|
5477
5477
|
] })
|
|
5478
5478
|
]
|
|
5479
5479
|
}
|
|
5480
5480
|
),
|
|
5481
|
-
a === "stat" && /* @__PURE__ */ e("div", { className: n(
|
|
5481
|
+
a === "stat" && /* @__PURE__ */ e("div", { className: n(he.icon, r == null ? void 0 : r.icon), children: f }),
|
|
5482
5482
|
b && /* @__PURE__ */ e(
|
|
5483
5483
|
at,
|
|
5484
5484
|
{
|
|
@@ -5496,7 +5496,7 @@ const Y = {
|
|
|
5496
5496
|
}
|
|
5497
5497
|
);
|
|
5498
5498
|
}
|
|
5499
|
-
),
|
|
5499
|
+
), he = {
|
|
5500
5500
|
container: "w-[418px] h-[176px] rounded-[10px] bg-sidebar-10 shadow-3xl px-6 py-4 flex flex-col justify-start relative overflow-hidden font-mono",
|
|
5501
5501
|
title: "text-dark-20 text-base font-semibold mb-4",
|
|
5502
5502
|
total: "text-[35px] font-semibold text-dark-10",
|
|
@@ -5548,14 +5548,14 @@ const Y = {
|
|
|
5548
5548
|
icon: a,
|
|
5549
5549
|
percent: o,
|
|
5550
5550
|
total: r,
|
|
5551
|
-
service:
|
|
5551
|
+
service: p,
|
|
5552
5552
|
rating: d,
|
|
5553
5553
|
classNames: l,
|
|
5554
5554
|
avatarGroupProps: u,
|
|
5555
5555
|
...h
|
|
5556
5556
|
}, f) => {
|
|
5557
5557
|
const x = Jn(o);
|
|
5558
|
-
return /* @__PURE__ */
|
|
5558
|
+
return /* @__PURE__ */ c(
|
|
5559
5559
|
"div",
|
|
5560
5560
|
{
|
|
5561
5561
|
...h,
|
|
@@ -5563,7 +5563,7 @@ const Y = {
|
|
|
5563
5563
|
"data-testid": "chart-container",
|
|
5564
5564
|
ref: f,
|
|
5565
5565
|
children: [
|
|
5566
|
-
/* @__PURE__ */
|
|
5566
|
+
/* @__PURE__ */ c("div", { className: n(ze.block, l == null ? void 0 : l.block), children: [
|
|
5567
5567
|
/* @__PURE__ */ e(
|
|
5568
5568
|
Ge,
|
|
5569
5569
|
{
|
|
@@ -5572,7 +5572,7 @@ const Y = {
|
|
|
5572
5572
|
classNames: { title: ze.title, wrapper: "items-center" }
|
|
5573
5573
|
}
|
|
5574
5574
|
),
|
|
5575
|
-
t === "master" && u && !!d && /* @__PURE__ */
|
|
5575
|
+
t === "master" && u && !!d && /* @__PURE__ */ c(et, { children: [
|
|
5576
5576
|
/* @__PURE__ */ e(
|
|
5577
5577
|
Dt,
|
|
5578
5578
|
{
|
|
@@ -5584,25 +5584,25 @@ const Y = {
|
|
|
5584
5584
|
}
|
|
5585
5585
|
}
|
|
5586
5586
|
),
|
|
5587
|
-
/* @__PURE__ */ e(
|
|
5587
|
+
/* @__PURE__ */ e(lr, { rating: d, position: "right" })
|
|
5588
5588
|
] }),
|
|
5589
|
-
t === "service" &&
|
|
5589
|
+
t === "service" && p && /* @__PURE__ */ c(et, { children: [
|
|
5590
5590
|
/* @__PURE__ */ e(
|
|
5591
5591
|
Ge,
|
|
5592
5592
|
{
|
|
5593
|
-
title:
|
|
5594
|
-
icon:
|
|
5593
|
+
title: p.name,
|
|
5594
|
+
icon: p.icon,
|
|
5595
5595
|
classNames: {
|
|
5596
5596
|
title: ze.serviceTitle,
|
|
5597
5597
|
wrapper: "items-center gap-0"
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
),
|
|
5601
|
-
!!
|
|
5601
|
+
!!p.type && /* @__PURE__ */ e(
|
|
5602
5602
|
He,
|
|
5603
5603
|
{
|
|
5604
5604
|
variant: "info",
|
|
5605
|
-
text:
|
|
5605
|
+
text: p.type,
|
|
5606
5606
|
className: n(ze.status)
|
|
5607
5607
|
}
|
|
5608
5608
|
)
|
|
@@ -5637,55 +5637,55 @@ const Y = {
|
|
|
5637
5637
|
}, Pn = (t, i) => {
|
|
5638
5638
|
const a = i - t;
|
|
5639
5639
|
return a >= 1 ? 100 : a > 0 ? a * 100 : 0;
|
|
5640
|
-
},
|
|
5640
|
+
}, lr = ({
|
|
5641
5641
|
rating: t,
|
|
5642
5642
|
classNames: i,
|
|
5643
5643
|
position: a = "left",
|
|
5644
5644
|
...o
|
|
5645
|
-
}) => /* @__PURE__ */
|
|
5645
|
+
}) => /* @__PURE__ */ c(
|
|
5646
5646
|
"div",
|
|
5647
5647
|
{
|
|
5648
5648
|
className: n(
|
|
5649
|
-
|
|
5649
|
+
xe.root,
|
|
5650
5650
|
a === "right" && "flex-row-reverse",
|
|
5651
5651
|
i == null ? void 0 : i.root
|
|
5652
5652
|
),
|
|
5653
5653
|
...o,
|
|
5654
5654
|
children: [
|
|
5655
|
-
/* @__PURE__ */ e("div", { className: n(
|
|
5655
|
+
/* @__PURE__ */ e("div", { className: n(xe.block, i == null ? void 0 : i.block), children: [...Array(5)].map((r, p) => {
|
|
5656
5656
|
const d = Math.max(
|
|
5657
5657
|
0,
|
|
5658
|
-
Math.min(100, Pn(
|
|
5658
|
+
Math.min(100, Pn(p, t))
|
|
5659
5659
|
);
|
|
5660
|
-
return /* @__PURE__ */
|
|
5660
|
+
return /* @__PURE__ */ c("div", { className: n(xe.overlay.block), children: [
|
|
5661
5661
|
/* @__PURE__ */ e(
|
|
5662
5662
|
It,
|
|
5663
5663
|
{
|
|
5664
|
-
className: n(
|
|
5664
|
+
className: n(xe.icon, xe.empty),
|
|
5665
5665
|
"data-testid": "star-empty"
|
|
5666
5666
|
}
|
|
5667
5667
|
),
|
|
5668
5668
|
d > 0 && /* @__PURE__ */ e(
|
|
5669
5669
|
"div",
|
|
5670
5670
|
{
|
|
5671
|
-
className: n(
|
|
5671
|
+
className: n(xe.overlay.star),
|
|
5672
5672
|
style: { width: `${d}%` },
|
|
5673
5673
|
"data-testid": "star-overlay",
|
|
5674
5674
|
children: /* @__PURE__ */ e(
|
|
5675
5675
|
It,
|
|
5676
5676
|
{
|
|
5677
|
-
className: n(
|
|
5677
|
+
className: n(xe.icon, xe.filled),
|
|
5678
5678
|
"data-testid": "star-filled"
|
|
5679
5679
|
}
|
|
5680
5680
|
)
|
|
5681
5681
|
}
|
|
5682
5682
|
)
|
|
5683
|
-
] },
|
|
5683
|
+
] }, p);
|
|
5684
5684
|
}) }),
|
|
5685
|
-
/* @__PURE__ */ e(w, { variant: "span", className: n(
|
|
5685
|
+
/* @__PURE__ */ e(w, { variant: "span", className: n(xe.rating, i == null ? void 0 : i.rating), children: String(t).replace(".", ",") })
|
|
5686
5686
|
]
|
|
5687
5687
|
}
|
|
5688
|
-
),
|
|
5688
|
+
), xe = {
|
|
5689
5689
|
root: "flex items-center gap-0.5 w-max",
|
|
5690
5690
|
icon: "transition-colors",
|
|
5691
5691
|
filled: "fill-primary-10",
|
|
@@ -5735,55 +5735,55 @@ const Y = {
|
|
|
5735
5735
|
]
|
|
5736
5736
|
};
|
|
5737
5737
|
}, di = Q(
|
|
5738
|
-
({ title: t, icon: i, data: a, colors: o, classNames: r, ...
|
|
5738
|
+
({ title: t, icon: i, data: a, colors: o, classNames: r, ...p }, d) => {
|
|
5739
5739
|
var u;
|
|
5740
5740
|
const l = [
|
|
5741
5741
|
{ label: "Активные договора: ", value: a.active },
|
|
5742
5742
|
{ label: "Скоро истекают: ", value: a.coming },
|
|
5743
5743
|
{ label: "Истёкшие: ", value: a.expired }
|
|
5744
5744
|
];
|
|
5745
|
-
return /* @__PURE__ */
|
|
5745
|
+
return /* @__PURE__ */ c(
|
|
5746
5746
|
"div",
|
|
5747
5747
|
{
|
|
5748
|
-
className: n(
|
|
5748
|
+
className: n(ne.root, r == null ? void 0 : r.root),
|
|
5749
5749
|
"data-testid": "chart-container",
|
|
5750
5750
|
ref: d,
|
|
5751
|
-
...
|
|
5751
|
+
...p,
|
|
5752
5752
|
children: [
|
|
5753
|
-
/* @__PURE__ */
|
|
5753
|
+
/* @__PURE__ */ c("div", { className: n(ne.header, r == null ? void 0 : r.header), children: [
|
|
5754
5754
|
/* @__PURE__ */ e(
|
|
5755
5755
|
Ge,
|
|
5756
5756
|
{
|
|
5757
5757
|
title: t,
|
|
5758
5758
|
icon: i,
|
|
5759
|
-
classNames: { title:
|
|
5759
|
+
classNames: { title: ne.title, wrapper: "items-center" }
|
|
5760
5760
|
}
|
|
5761
5761
|
),
|
|
5762
5762
|
/* @__PURE__ */ e(
|
|
5763
5763
|
Ve,
|
|
5764
5764
|
{
|
|
5765
5765
|
to: "/analytics-reporting",
|
|
5766
|
-
className: n(
|
|
5766
|
+
className: n(ne.link, r == null ? void 0 : r.link),
|
|
5767
5767
|
children: "Подробнее"
|
|
5768
5768
|
}
|
|
5769
5769
|
)
|
|
5770
5770
|
] }),
|
|
5771
|
-
/* @__PURE__ */
|
|
5772
|
-
/* @__PURE__ */
|
|
5773
|
-
/* @__PURE__ */ e(w, { className: n(
|
|
5774
|
-
/* @__PURE__ */ e(w, { className: n(
|
|
5771
|
+
/* @__PURE__ */ c("div", { className: n(ne.info, r == null ? void 0 : r.info), children: [
|
|
5772
|
+
/* @__PURE__ */ c("div", { className: n(ne.block, r == null ? void 0 : r.block), children: [
|
|
5773
|
+
/* @__PURE__ */ e(w, { className: n(ne.totalText, r == null ? void 0 : r.totalText), children: "Общее количество" }),
|
|
5774
|
+
/* @__PURE__ */ e(w, { className: n(ne.total, r == null ? void 0 : r.total), children: a.total })
|
|
5775
5775
|
] }),
|
|
5776
|
-
/* @__PURE__ */ e("div", { className: n(
|
|
5776
|
+
/* @__PURE__ */ e("div", { className: n(ne.legend.root, (u = r == null ? void 0 : r.legend) == null ? void 0 : u.root), children: l.map((h, f) => {
|
|
5777
5777
|
var x;
|
|
5778
|
-
return /* @__PURE__ */
|
|
5778
|
+
return /* @__PURE__ */ c(
|
|
5779
5779
|
"div",
|
|
5780
5780
|
{
|
|
5781
|
-
className: n(
|
|
5781
|
+
className: n(ne.legend.main, (x = r == null ? void 0 : r.legend) == null ? void 0 : x.main),
|
|
5782
5782
|
children: [
|
|
5783
5783
|
/* @__PURE__ */ e(
|
|
5784
5784
|
"div",
|
|
5785
5785
|
{
|
|
5786
|
-
className:
|
|
5786
|
+
className: ne.legend.dot,
|
|
5787
5787
|
style: { backgroundColor: o[f] }
|
|
5788
5788
|
}
|
|
5789
5789
|
),
|
|
@@ -5804,7 +5804,7 @@ const Y = {
|
|
|
5804
5804
|
);
|
|
5805
5805
|
}) })
|
|
5806
5806
|
] }),
|
|
5807
|
-
/* @__PURE__ */ e("div", { className: n(
|
|
5807
|
+
/* @__PURE__ */ e("div", { className: n(ne.chartBlock, r == null ? void 0 : r.chartBlock), children: l.map((h, f) => /* @__PURE__ */ e(
|
|
5808
5808
|
at,
|
|
5809
5809
|
{
|
|
5810
5810
|
echarts: dt,
|
|
@@ -5822,7 +5822,7 @@ const Y = {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
);
|
|
5824
5824
|
}
|
|
5825
|
-
),
|
|
5825
|
+
), ne = {
|
|
5826
5826
|
root: "w-[586px] h-[333px] bg-sidebar-10 rounded-[10px] shadow-3xl p-7 flex flex-col gap-2 font-mono",
|
|
5827
5827
|
header: "flex flex-row justify-between",
|
|
5828
5828
|
link: "text-sidebar-50 cursor-pointer font-medium text-base",
|
|
@@ -5838,7 +5838,7 @@ const Y = {
|
|
|
5838
5838
|
dot: "size-2 rounded-full"
|
|
5839
5839
|
}
|
|
5840
5840
|
}, li = Q(
|
|
5841
|
-
({ paid: t, pending: i, overdue: a, title: o, icon: r, total:
|
|
5841
|
+
({ paid: t, pending: i, overdue: a, title: o, icon: r, total: p, classNames: d, ...l }, u) => {
|
|
5842
5842
|
var f;
|
|
5843
5843
|
const h = [
|
|
5844
5844
|
{
|
|
@@ -5849,7 +5849,7 @@ const Y = {
|
|
|
5849
5849
|
{ label: "В ожидании:", value: i, color: "bg-sidebar-20" },
|
|
5850
5850
|
{ label: "Просрочено:", value: a, color: "bg-danger-20" }
|
|
5851
5851
|
];
|
|
5852
|
-
return /* @__PURE__ */
|
|
5852
|
+
return /* @__PURE__ */ c(
|
|
5853
5853
|
"div",
|
|
5854
5854
|
{
|
|
5855
5855
|
...l,
|
|
@@ -5857,7 +5857,7 @@ const Y = {
|
|
|
5857
5857
|
"data-testid": "card-progress",
|
|
5858
5858
|
ref: u,
|
|
5859
5859
|
children: [
|
|
5860
|
-
/* @__PURE__ */
|
|
5860
|
+
/* @__PURE__ */ c("div", { className: n(_e.header, d == null ? void 0 : d.header), children: [
|
|
5861
5861
|
/* @__PURE__ */ e(
|
|
5862
5862
|
Ge,
|
|
5863
5863
|
{
|
|
@@ -5877,19 +5877,19 @@ const Y = {
|
|
|
5877
5877
|
] }),
|
|
5878
5878
|
/* @__PURE__ */ e("div", { className: n(_e.bar.block, (f = d == null ? void 0 : d.bar) == null ? void 0 : f.block), children: h.map(({ label: x, value: g, color: b }, s) => {
|
|
5879
5879
|
var k;
|
|
5880
|
-
return /* @__PURE__ */
|
|
5881
|
-
/* @__PURE__ */
|
|
5880
|
+
return /* @__PURE__ */ c("div", { children: [
|
|
5881
|
+
/* @__PURE__ */ c("div", { className: n(_e.bar.text, (k = d == null ? void 0 : d.bar) == null ? void 0 : k.text), children: [
|
|
5882
5882
|
/* @__PURE__ */ e(w, { children: x }),
|
|
5883
|
-
/* @__PURE__ */
|
|
5883
|
+
/* @__PURE__ */ c(w, { className: n(s === 2 && "text-danger-10"), children: [
|
|
5884
5884
|
g,
|
|
5885
5885
|
" сум"
|
|
5886
5886
|
] })
|
|
5887
5887
|
] }),
|
|
5888
5888
|
/* @__PURE__ */ e(
|
|
5889
|
-
|
|
5889
|
+
pr,
|
|
5890
5890
|
{
|
|
5891
5891
|
value: g,
|
|
5892
|
-
total:
|
|
5892
|
+
total: p,
|
|
5893
5893
|
color: b,
|
|
5894
5894
|
classNames: { bar: `${s === 0 && "h-9"}` }
|
|
5895
5895
|
}
|
|
@@ -5911,116 +5911,123 @@ const Y = {
|
|
|
5911
5911
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5912
5912
|
indicator: "h-full rounded-md"
|
|
5913
5913
|
}
|
|
5914
|
-
},
|
|
5914
|
+
}, pr = ({
|
|
5915
5915
|
value: t,
|
|
5916
5916
|
total: i,
|
|
5917
5917
|
color: a,
|
|
5918
5918
|
classNames: o
|
|
5919
5919
|
}) => {
|
|
5920
|
-
const r = i ? Math.abs(t) / i * 100 : 0, [
|
|
5920
|
+
const r = i ? Math.abs(t) / i * 100 : 0, [p, d] = A(0);
|
|
5921
5921
|
return ge(() => {
|
|
5922
5922
|
const l = requestAnimationFrame(() => {
|
|
5923
5923
|
d(r);
|
|
5924
5924
|
});
|
|
5925
5925
|
return () => cancelAnimationFrame(l);
|
|
5926
|
-
}, [r]), /* @__PURE__ */ e(
|
|
5927
|
-
|
|
5926
|
+
}, [r]), /* @__PURE__ */ e(Gr, { className: n($t.bar, o == null ? void 0 : o.bar), children: /* @__PURE__ */ e(
|
|
5927
|
+
Er,
|
|
5928
5928
|
{
|
|
5929
5929
|
className: n($t.indicator, a, o == null ? void 0 : o.indicator),
|
|
5930
5930
|
style: {
|
|
5931
|
-
transform: `translateX(-${100 -
|
|
5931
|
+
transform: `translateX(-${100 - p}%)`
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
5934
|
) });
|
|
5935
5935
|
}, $t = {
|
|
5936
5936
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5937
5937
|
indicator: "h-full rounded-md"
|
|
5938
|
-
},
|
|
5938
|
+
}, pi = Q(
|
|
5939
5939
|
({
|
|
5940
5940
|
classNames: t,
|
|
5941
5941
|
disabled: i,
|
|
5942
5942
|
status: a,
|
|
5943
5943
|
onChange: o,
|
|
5944
5944
|
options: r,
|
|
5945
|
-
placeholder:
|
|
5945
|
+
placeholder: p = "Choose",
|
|
5946
5946
|
value: d,
|
|
5947
5947
|
isLoading: l,
|
|
5948
5948
|
searchValue: u,
|
|
5949
5949
|
onSearchChange: h,
|
|
5950
5950
|
searchPlaceholder: f = "Search...",
|
|
5951
5951
|
emptyMessage: x = "Нет данных",
|
|
5952
|
-
container: g
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5952
|
+
container: g,
|
|
5953
|
+
disablePortal: b = !1,
|
|
5954
|
+
onDebouncedSearch: s,
|
|
5955
|
+
debounceDelay: k = 300
|
|
5956
|
+
}, y) => {
|
|
5957
|
+
var M;
|
|
5958
|
+
const [D, S] = A(!1), [B, m] = A(-1), v = er(u, k);
|
|
5959
|
+
ge(() => {
|
|
5960
|
+
s == null || s(v);
|
|
5961
|
+
}, [v, s]);
|
|
5962
|
+
const C = ie(""), W = ie(null), T = ie(null);
|
|
5956
5963
|
zt(
|
|
5957
|
-
|
|
5964
|
+
y,
|
|
5958
5965
|
() => ({
|
|
5959
5966
|
focus: () => {
|
|
5960
|
-
var
|
|
5961
|
-
return (
|
|
5967
|
+
var j;
|
|
5968
|
+
return (j = W.current) == null ? void 0 : j.focus();
|
|
5962
5969
|
},
|
|
5963
|
-
open: () =>
|
|
5964
|
-
close: () =>
|
|
5970
|
+
open: () => S(!0),
|
|
5971
|
+
close: () => S(!1)
|
|
5965
5972
|
}),
|
|
5966
5973
|
[]
|
|
5967
5974
|
);
|
|
5968
|
-
const
|
|
5969
|
-
|
|
5970
|
-
const
|
|
5975
|
+
const I = (M = r.find((j) => j.value === d)) == null ? void 0 : M.label;
|
|
5976
|
+
I && (C.current = I);
|
|
5977
|
+
const z = d ? I ?? C.current : "";
|
|
5971
5978
|
ge(() => {
|
|
5972
|
-
if (
|
|
5973
|
-
const
|
|
5974
|
-
`[data-value="${r[
|
|
5979
|
+
if (B >= 0 && T.current && (r != null && r[B])) {
|
|
5980
|
+
const j = T.current.querySelector(
|
|
5981
|
+
`[data-value="${r[B].value}"]`
|
|
5975
5982
|
);
|
|
5976
|
-
|
|
5983
|
+
j == null || j.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
5977
5984
|
}
|
|
5978
|
-
}, [
|
|
5979
|
-
|
|
5985
|
+
}, [B, r]), ge(() => {
|
|
5986
|
+
m(-1);
|
|
5980
5987
|
}, [r]);
|
|
5981
|
-
const
|
|
5982
|
-
|
|
5983
|
-
},
|
|
5984
|
-
o(
|
|
5985
|
-
},
|
|
5988
|
+
const K = (j) => {
|
|
5989
|
+
S(j), j && (h(""), m(-1));
|
|
5990
|
+
}, te = (j) => {
|
|
5991
|
+
o(j), S(!1);
|
|
5992
|
+
}, ue = (j) => {
|
|
5986
5993
|
if (r.length)
|
|
5987
|
-
switch (
|
|
5994
|
+
switch (j.key) {
|
|
5988
5995
|
case "ArrowDown": {
|
|
5989
|
-
|
|
5996
|
+
j.preventDefault(), m((Y) => Y < r.length - 1 ? Y + 1 : 0);
|
|
5990
5997
|
break;
|
|
5991
5998
|
}
|
|
5992
5999
|
case "ArrowUp": {
|
|
5993
|
-
|
|
6000
|
+
j.preventDefault(), m((Y) => Y > 0 ? Y - 1 : r.length - 1);
|
|
5994
6001
|
break;
|
|
5995
6002
|
}
|
|
5996
6003
|
case "Enter": {
|
|
5997
|
-
|
|
6004
|
+
j.preventDefault(), B >= 0 && r[B] && te(r[B].value);
|
|
5998
6005
|
break;
|
|
5999
6006
|
}
|
|
6000
6007
|
case "Escape": {
|
|
6001
|
-
|
|
6008
|
+
j.preventDefault(), S(!1);
|
|
6002
6009
|
break;
|
|
6003
6010
|
}
|
|
6004
6011
|
}
|
|
6005
|
-
},
|
|
6006
|
-
|
|
6007
|
-
var
|
|
6008
|
-
(
|
|
6012
|
+
}, fe = (j) => {
|
|
6013
|
+
j.preventDefault(), requestAnimationFrame(() => {
|
|
6014
|
+
var Y;
|
|
6015
|
+
(Y = W.current) == null || Y.focus();
|
|
6009
6016
|
});
|
|
6010
6017
|
};
|
|
6011
|
-
return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */
|
|
6012
|
-
/* @__PURE__ */
|
|
6018
|
+
return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */ c(ae, { open: D, onOpenChange: K, modal: !1, children: [
|
|
6019
|
+
/* @__PURE__ */ c(
|
|
6013
6020
|
de,
|
|
6014
6021
|
{
|
|
6015
6022
|
role: "combobox",
|
|
6016
|
-
"aria-expanded":
|
|
6023
|
+
"aria-expanded": D,
|
|
6017
6024
|
disabled: i,
|
|
6018
6025
|
className: n(
|
|
6019
6026
|
$.base.trigger,
|
|
6020
6027
|
i && $.disabled.trigger,
|
|
6021
|
-
|
|
6022
|
-
!
|
|
6023
|
-
!
|
|
6028
|
+
D && $.base.focus,
|
|
6029
|
+
!D && !i && $.base.hover,
|
|
6030
|
+
!D && a && $.status.styles[a],
|
|
6024
6031
|
t == null ? void 0 : t.trigger
|
|
6025
6032
|
),
|
|
6026
6033
|
children: [
|
|
@@ -6035,7 +6042,7 @@ const Y = {
|
|
|
6035
6042
|
d && i && $.disabled.selectedDisabled,
|
|
6036
6043
|
d ? t == null ? void 0 : t.selected : t == null ? void 0 : t.placeholder
|
|
6037
6044
|
),
|
|
6038
|
-
children:
|
|
6045
|
+
children: z || p
|
|
6039
6046
|
}
|
|
6040
6047
|
) }),
|
|
6041
6048
|
/* @__PURE__ */ e(
|
|
@@ -6047,7 +6054,7 @@ const Y = {
|
|
|
6047
6054
|
className: n(
|
|
6048
6055
|
$.base.icon,
|
|
6049
6056
|
i && $.base.iconDisabled,
|
|
6050
|
-
|
|
6057
|
+
D && "-rotate-180",
|
|
6051
6058
|
"flex-shrink-0"
|
|
6052
6059
|
)
|
|
6053
6060
|
}
|
|
@@ -6055,15 +6062,16 @@ const Y = {
|
|
|
6055
6062
|
]
|
|
6056
6063
|
}
|
|
6057
6064
|
),
|
|
6058
|
-
/* @__PURE__ */
|
|
6065
|
+
/* @__PURE__ */ c(
|
|
6059
6066
|
le,
|
|
6060
6067
|
{
|
|
6061
6068
|
className: n("p-1", t == null ? void 0 : t.content),
|
|
6062
6069
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
6063
|
-
onOpenAutoFocus:
|
|
6070
|
+
onOpenAutoFocus: fe,
|
|
6064
6071
|
container: g,
|
|
6072
|
+
disablePortal: b,
|
|
6065
6073
|
children: [
|
|
6066
|
-
/* @__PURE__ */
|
|
6074
|
+
/* @__PURE__ */ c("div", { className: $.search.wrapper, children: [
|
|
6067
6075
|
/* @__PURE__ */ e(
|
|
6068
6076
|
Pt,
|
|
6069
6077
|
{
|
|
@@ -6075,11 +6083,11 @@ const Y = {
|
|
|
6075
6083
|
/* @__PURE__ */ e(
|
|
6076
6084
|
"input",
|
|
6077
6085
|
{
|
|
6078
|
-
ref:
|
|
6086
|
+
ref: W,
|
|
6079
6087
|
type: "text",
|
|
6080
6088
|
value: u,
|
|
6081
|
-
onChange: (
|
|
6082
|
-
onKeyDown:
|
|
6089
|
+
onChange: (j) => h(j.target.value),
|
|
6090
|
+
onKeyDown: ue,
|
|
6083
6091
|
placeholder: f,
|
|
6084
6092
|
className: n(
|
|
6085
6093
|
$.search.input,
|
|
@@ -6090,24 +6098,24 @@ const Y = {
|
|
|
6090
6098
|
)
|
|
6091
6099
|
] }),
|
|
6092
6100
|
/* @__PURE__ */ e("div", { className: $.search.divider }),
|
|
6093
|
-
/* @__PURE__ */
|
|
6101
|
+
/* @__PURE__ */ c("div", { ref: T, className: $.options.list, children: [
|
|
6094
6102
|
l && /* @__PURE__ */ e("div", { className: $.options.loadingWrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }),
|
|
6095
|
-
!l && r.length ? r.map((
|
|
6103
|
+
!l && r.length ? r.map((j, Y) => /* @__PURE__ */ e(
|
|
6096
6104
|
"div",
|
|
6097
6105
|
{
|
|
6098
|
-
"data-value":
|
|
6106
|
+
"data-value": j.value,
|
|
6099
6107
|
className: n(
|
|
6100
6108
|
$.options.items,
|
|
6101
|
-
|
|
6102
|
-
d ===
|
|
6109
|
+
B === Y && $.options.highlighted,
|
|
6110
|
+
d === j.value && $.options.active
|
|
6103
6111
|
),
|
|
6104
|
-
onClick: (
|
|
6105
|
-
|
|
6112
|
+
onClick: (X) => {
|
|
6113
|
+
X.preventDefault(), X.stopPropagation(), te(j.value);
|
|
6106
6114
|
},
|
|
6107
|
-
onMouseEnter: () =>
|
|
6108
|
-
children: /* @__PURE__ */ e(w, { className: $.options.itemsText, children:
|
|
6115
|
+
onMouseEnter: () => m(Y),
|
|
6116
|
+
children: /* @__PURE__ */ e(w, { className: $.options.itemsText, children: j.label })
|
|
6109
6117
|
},
|
|
6110
|
-
|
|
6118
|
+
j.value
|
|
6111
6119
|
)) : !l && /* @__PURE__ */ e(
|
|
6112
6120
|
"div",
|
|
6113
6121
|
{
|
|
@@ -6180,7 +6188,7 @@ export {
|
|
|
6180
6188
|
No as ChatMessage,
|
|
6181
6189
|
Jo as ChatSidebar,
|
|
6182
6190
|
dn as CheckboxGroup,
|
|
6183
|
-
|
|
6191
|
+
pi as Combobox,
|
|
6184
6192
|
Mo as CommentInput,
|
|
6185
6193
|
So as CommentList,
|
|
6186
6194
|
Go as DateOfBirth,
|
|
@@ -6206,15 +6214,15 @@ export {
|
|
|
6206
6214
|
Zo as PaymentCard,
|
|
6207
6215
|
Ro as PhoneInput,
|
|
6208
6216
|
$o as Plate,
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6217
|
+
pr as ProgressItem,
|
|
6218
|
+
ar as RadioGroup,
|
|
6219
|
+
lr as Rating,
|
|
6212
6220
|
xn as SearchInput,
|
|
6213
6221
|
Vo as SelectGroup,
|
|
6214
6222
|
Gn as SelectList,
|
|
6215
6223
|
Xo as ServiceOrders,
|
|
6216
6224
|
Oo as Sidebar,
|
|
6217
|
-
|
|
6225
|
+
dr as StatusSelect,
|
|
6218
6226
|
Eo as Stepper,
|
|
6219
6227
|
zo as TabGroup,
|
|
6220
6228
|
ri as TabList,
|
|
@@ -6233,9 +6241,9 @@ export {
|
|
|
6233
6241
|
ze as cardMonthlyTokens,
|
|
6234
6242
|
q as cardPieChartTokens,
|
|
6235
6243
|
_e as cardProgressTokens,
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6244
|
+
ne as cardRingChartTokens,
|
|
6245
|
+
be as cardServicesTokens,
|
|
6246
|
+
he as cardStatTokens,
|
|
6239
6247
|
Ie as chatButtonTokens,
|
|
6240
6248
|
Se as chatCardTokens,
|
|
6241
6249
|
Rt as chatListTokens,
|
|
@@ -6246,15 +6254,15 @@ export {
|
|
|
6246
6254
|
Qe as commentInputTokens,
|
|
6247
6255
|
U as commentItemTokens,
|
|
6248
6256
|
Ot as dateOfBirthClasses,
|
|
6249
|
-
|
|
6257
|
+
_ as datePickerTokens,
|
|
6250
6258
|
In as dateRangePickerTokens,
|
|
6251
6259
|
_n as dayPickerClasses,
|
|
6252
6260
|
Ne as deleteMessageTokens,
|
|
6253
6261
|
je as dragAndDropTokens,
|
|
6254
6262
|
_t as dropdownTokens,
|
|
6255
|
-
|
|
6263
|
+
E as fileUploaderTokens,
|
|
6256
6264
|
ht as filterTableTokens,
|
|
6257
|
-
|
|
6265
|
+
ce as floorSelectTokens,
|
|
6258
6266
|
At as iconTitleTokens,
|
|
6259
6267
|
Je as inputGroupTokens,
|
|
6260
6268
|
Ft as labelWithValueTokens,
|
|
@@ -6269,10 +6277,10 @@ export {
|
|
|
6269
6277
|
Re as plateTokens,
|
|
6270
6278
|
$t as progressItemsTokens,
|
|
6271
6279
|
we as radioGroupTokens,
|
|
6272
|
-
|
|
6273
|
-
|
|
6280
|
+
xe as ratingTokens,
|
|
6281
|
+
re as searchInputTokens,
|
|
6274
6282
|
Yn as selectGroupTokens,
|
|
6275
|
-
|
|
6283
|
+
G as selectListTokens,
|
|
6276
6284
|
Ce as serviceOrdersTokens,
|
|
6277
6285
|
Xe as sidebarTokens,
|
|
6278
6286
|
$e as statusSelectTokens,
|