@namuna-nur/ui-kit 1.10.1 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/atoms/index.js +235 -241
- package/lib/molecules/index.js +908 -905
- package/lib/src/atoms/Message/Message.d.ts +1 -0
- package/lib/src/atoms/Message/Message.types.d.ts +1 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.d.ts +1 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.types.d.ts +6 -0
- package/lib/src/molecules/Table/Table.tokens.d.ts +1 -2
- package/lib/src/molecules/Table/Table.types.d.ts +2 -1
- package/package.json +1 -1
package/lib/molecules/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as p, jsx as e, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
|
-
import Lt, {
|
|
4
|
-
import { S as
|
|
5
|
-
import { cn as n, formatFileSize as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useReactTable as Sr, getCoreRowModel as Br, flexRender as
|
|
3
|
+
import Lt, { forwardRef as Q, useState as A, useRef as ie, useImperativeHandle as zt, useEffect as ge, Fragment as pr, useMemo as Ht } from "react";
|
|
4
|
+
import { S as Ke, b as hr, c as se, d as ur, e as fr, f as Ut, g as Yt, h as br, i as Gt, j as xr, k as gr, l as sr, m as vr, n as mr, 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 wr, numberFormat as yr } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as st, Label as ee, Spinner as rt, Text as w, Button as M, Avatar as Et, IconButton as wt, Select as Te, Textarea as Kt, Radio as Vt, Status as He, Toggle as kr, Headline as tt, Input as Cr, Message as Tr, Tab as Dr } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Sr, getCoreRowModel as Br, flexRender as jt } from "@tanstack/react-table";
|
|
8
8
|
import { b as jr, c as Ir, d as _r, e as Wr } from "../shared/assets-icons-3.js";
|
|
9
|
-
import { Link as
|
|
10
|
-
import { S as Mr, a as Or, b as Ar, c as Fr, d as Rr, e as Zt, f as
|
|
11
|
-
import { P as ae, b as de, c as le, D as nt, d as ot, e as it, f as
|
|
9
|
+
import { Link as Ve, useSearchParams as yt, useNavigate as qt, NavLink as kt } from "react-router-dom";
|
|
10
|
+
import { S as Mr, a as Or, b as Ar, c as Fr, d as Rr, 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 $r, g as Lr, h as zr, i as Hr, j as Qt, k as Xt, l as Jt, m as Ur, n as Yr, o as Gr } from "../shared/shared.js";
|
|
12
12
|
import { d as Ue, e as Er, f as Pt, g as Nt, h as Kr, i as Vr, j as qr, k as Zr, a as Qr, l as Xr, m as Jr, n as Pr } from "../shared/assets-icons-4.js";
|
|
13
13
|
import { useDebounce as Nr, useOption as er } from "../hooks/index.js";
|
|
14
14
|
import * as tr from "@radix-ui/react-toggle";
|
|
15
15
|
import { e as rr, f as en, g as tn, h as rn, i as nr, j as Oe, k as It } from "../shared/assets-icons-0.js";
|
|
16
|
-
import { useMask as or, format as
|
|
17
|
-
import { format as
|
|
18
|
-
import { ru as
|
|
16
|
+
import { useMask as or, format as lt } from "@react-input/mask";
|
|
17
|
+
import { format as Z, addMonths as nn, parse as vt, isValid as We, parseISO as on } from "date-fns";
|
|
18
|
+
import { ru as ct } 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
|
-
import { colorTokens as
|
|
21
|
+
import { colorTokens as Ye } from "../tokens/index.js";
|
|
22
22
|
import * as dt from "echarts/core";
|
|
23
23
|
const wo = ({
|
|
24
24
|
isOpen: t,
|
|
@@ -31,7 +31,7 @@ const wo = ({
|
|
|
31
31
|
classNames: l,
|
|
32
32
|
onClick: u
|
|
33
33
|
}) => {
|
|
34
|
-
const h = ve.root, f = ve.header,
|
|
34
|
+
const h = ve.root, f = ve.header, x = ve.icon, g = ve.content, b = ve.titlesWrapper, s = ve.title, k = ve.subtitle;
|
|
35
35
|
return /* @__PURE__ */ p("div", { className: n(h, l == null ? void 0 : l.root), children: [
|
|
36
36
|
/* @__PURE__ */ p(
|
|
37
37
|
"button",
|
|
@@ -47,7 +47,7 @@ const wo = ({
|
|
|
47
47
|
),
|
|
48
48
|
onClick: u,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */ p("div", { className: n(
|
|
50
|
+
/* @__PURE__ */ p("div", { className: n(b, l == null ? void 0 : l.wrapperTitles), children: [
|
|
51
51
|
/* @__PURE__ */ p("div", { className: f.title, children: [
|
|
52
52
|
!!a && /* @__PURE__ */ e(
|
|
53
53
|
a,
|
|
@@ -62,7 +62,7 @@ const wo = ({
|
|
|
62
62
|
"span",
|
|
63
63
|
{
|
|
64
64
|
className: n(
|
|
65
|
-
|
|
65
|
+
s,
|
|
66
66
|
r && "text-dark-30/25",
|
|
67
67
|
l == null ? void 0 : l.title
|
|
68
68
|
),
|
|
@@ -74,7 +74,7 @@ const wo = ({
|
|
|
74
74
|
"span",
|
|
75
75
|
{
|
|
76
76
|
className: n(
|
|
77
|
-
|
|
77
|
+
k,
|
|
78
78
|
r && "text-dark-30/25",
|
|
79
79
|
l == null ? void 0 : l.subtitle
|
|
80
80
|
),
|
|
@@ -83,13 +83,13 @@ const wo = ({
|
|
|
83
83
|
)
|
|
84
84
|
] }),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
|
-
|
|
86
|
+
Ke,
|
|
87
87
|
{
|
|
88
88
|
width: "20",
|
|
89
89
|
height: "20",
|
|
90
90
|
viewBox: "0 0 20 20",
|
|
91
91
|
className: n(
|
|
92
|
-
|
|
92
|
+
x,
|
|
93
93
|
t && "-rotate-180",
|
|
94
94
|
r && "fill-dark-30/25"
|
|
95
95
|
)
|
|
@@ -105,8 +105,8 @@ const wo = ({
|
|
|
105
105
|
role: "group",
|
|
106
106
|
"aria-hidden": "true",
|
|
107
107
|
className: n(
|
|
108
|
-
|
|
109
|
-
t ?
|
|
108
|
+
g.base,
|
|
109
|
+
t ? g.opened : g.closed,
|
|
110
110
|
l == null ? void 0 : l.content
|
|
111
111
|
),
|
|
112
112
|
onClick: (m) => m.stopPropagation(),
|
|
@@ -152,7 +152,7 @@ const wo = ({
|
|
|
152
152
|
),
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
st,
|
|
156
156
|
{
|
|
157
157
|
id: t,
|
|
158
158
|
checked: c,
|
|
@@ -212,171 +212,157 @@ function yo({
|
|
|
212
212
|
data: a,
|
|
213
213
|
getCoreRowModel: Br(),
|
|
214
214
|
manualSorting: !0
|
|
215
|
-
}), f =
|
|
216
|
-
const
|
|
217
|
-
d == null || d({ key:
|
|
218
|
-
}, x =
|
|
219
|
-
(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
var T;
|
|
225
|
-
return (T = m.original) == null ? void 0 : T.id;
|
|
215
|
+
}), f = (b) => {
|
|
216
|
+
const s = c == null ? void 0 : c.find((m) => m.id === b), k = s != null && s.desc ? "asc" : "desc";
|
|
217
|
+
d == null || d({ key: b, order: k });
|
|
218
|
+
}, x = (b) => {
|
|
219
|
+
o != null && o.includes(b) ? r(o.filter((s) => s !== b)) : r([...o, b]);
|
|
220
|
+
}, g = () => {
|
|
221
|
+
const b = h.getCoreRowModel().rows.map((s) => {
|
|
222
|
+
var k;
|
|
223
|
+
return (k = s.original) == null ? void 0 : k.id;
|
|
226
224
|
});
|
|
227
|
-
(o == null ? void 0 : o.length) ===
|
|
225
|
+
(o == null ? void 0 : o.length) === b.length ? r([]) : r(b);
|
|
228
226
|
};
|
|
229
|
-
return /* @__PURE__ */ p("div", { className: n(
|
|
227
|
+
return /* @__PURE__ */ p("div", { className: n(J.root, t == null ? void 0 : t.root), children: [
|
|
230
228
|
u && /* @__PURE__ */ e(rt, {}),
|
|
231
|
-
!u && !a.length && /* @__PURE__ */ p("div", { className:
|
|
229
|
+
!u && !a.length && /* @__PURE__ */ p("div", { className: J.info, children: [
|
|
232
230
|
/* @__PURE__ */ e(jr, { className: "fill-dark-30/50" }),
|
|
233
|
-
/* @__PURE__ */ e(
|
|
231
|
+
/* @__PURE__ */ e(w, { className: J.infoText, children: "Нет данных" })
|
|
234
232
|
] }),
|
|
235
|
-
/* @__PURE__ */ e(
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
233
|
+
/* @__PURE__ */ e("div", { className: n(J.container, t == null ? void 0 : t.container), children: /* @__PURE__ */ p("table", { className: n(J.table, t == null ? void 0 : t.table), children: [
|
|
234
|
+
/* @__PURE__ */ e("thead", { className: J.tableHeader, children: h.getHeaderGroups().map((b) => {
|
|
235
|
+
var s, k;
|
|
236
|
+
return /* @__PURE__ */ p("tr", { children: [
|
|
237
|
+
l && /* @__PURE__ */ e(
|
|
238
|
+
"th",
|
|
239
|
+
{
|
|
240
|
+
className: n(
|
|
241
|
+
J.firstHeaderCell,
|
|
242
|
+
t == null ? void 0 : t.firstHeaderCell
|
|
243
|
+
),
|
|
244
|
+
children: /* @__PURE__ */ e(
|
|
245
|
+
st,
|
|
246
|
+
{
|
|
247
|
+
id: "selectAll",
|
|
248
|
+
checked: (o == null ? void 0 : o.length) === ((k = (s = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : s.rows) == null ? void 0 : k.length),
|
|
249
|
+
onChange: g
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
),
|
|
254
|
+
b.headers.map((m, D) => {
|
|
255
|
+
var B;
|
|
256
|
+
const S = m.column.columnDef.meta;
|
|
257
|
+
return /* @__PURE__ */ e(
|
|
258
|
+
"th",
|
|
259
|
+
{
|
|
260
|
+
colSpan: m.colSpan,
|
|
261
|
+
className: n(
|
|
262
|
+
J.headerCell,
|
|
263
|
+
S == null ? void 0 : S.headerClass,
|
|
264
|
+
m.index === b.headers.length - 1 && "rounded-r-[10px]",
|
|
265
|
+
!l && D === 0 && J.firstHeaderCell
|
|
266
|
+
),
|
|
267
|
+
onClick: () => (S == null ? void 0 : S.isSortable) && f(m.column.id),
|
|
268
|
+
children: /* @__PURE__ */ p("div", { className: J.headerText, children: [
|
|
269
|
+
jt(
|
|
270
|
+
m.column.columnDef.header,
|
|
271
|
+
m.getContext()
|
|
272
|
+
),
|
|
273
|
+
(S == null ? void 0 : S.isSortable) && /* @__PURE__ */ e(
|
|
274
|
+
hr,
|
|
275
|
+
{
|
|
276
|
+
className: n(
|
|
277
|
+
J.sortIcon,
|
|
278
|
+
(B = c == null ? void 0 : c.find((y) => y.id === m.column.id)) != null && B.desc ? "rotate-0" : "rotate-180"
|
|
279
|
+
)
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
] })
|
|
283
|
+
},
|
|
284
|
+
m.id
|
|
285
|
+
);
|
|
286
|
+
})
|
|
287
|
+
] }, b.id);
|
|
288
|
+
}) }),
|
|
289
|
+
/* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((b) => {
|
|
290
|
+
var k;
|
|
291
|
+
const s = (k = b.original) == null ? void 0 : k.id;
|
|
292
|
+
return /* @__PURE__ */ p(
|
|
293
|
+
"tr",
|
|
294
|
+
{
|
|
295
|
+
className: n(
|
|
296
|
+
J.row,
|
|
297
|
+
(o == null ? void 0 : o.includes(s)) && "bg-gray-50"
|
|
298
|
+
),
|
|
299
|
+
children: [
|
|
244
300
|
l && /* @__PURE__ */ e(
|
|
245
|
-
"
|
|
301
|
+
"td",
|
|
246
302
|
{
|
|
247
303
|
className: n(
|
|
248
|
-
|
|
249
|
-
t == null ? void 0 : t.
|
|
304
|
+
J.firstBodyCell,
|
|
305
|
+
t == null ? void 0 : t.firstBodyCell
|
|
250
306
|
),
|
|
251
307
|
children: /* @__PURE__ */ e(
|
|
252
|
-
|
|
308
|
+
st,
|
|
253
309
|
{
|
|
254
|
-
id:
|
|
255
|
-
checked:
|
|
256
|
-
onChange:
|
|
310
|
+
id: b.id,
|
|
311
|
+
checked: o == null ? void 0 : o.includes(s),
|
|
312
|
+
onChange: () => x(s)
|
|
257
313
|
}
|
|
258
314
|
)
|
|
259
315
|
}
|
|
260
316
|
),
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
const y = S.column.columnDef.meta;
|
|
317
|
+
b.getVisibleCells().map((m, D, S) => {
|
|
318
|
+
const B = m.column.columnDef.meta;
|
|
264
319
|
return /* @__PURE__ */ e(
|
|
265
|
-
"
|
|
320
|
+
"td",
|
|
266
321
|
{
|
|
267
|
-
colSpan: S.colSpan,
|
|
268
322
|
className: n(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
!l &&
|
|
323
|
+
J.bodyCell,
|
|
324
|
+
(o == null ? void 0 : o.includes(b.id)) && "font-bold",
|
|
325
|
+
D === S.length - 1 && "rounded-r-[10px]",
|
|
326
|
+
!l && D === 0 && "px-8",
|
|
327
|
+
B == null ? void 0 : B.cellClass
|
|
273
328
|
),
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
S.getContext()
|
|
279
|
-
),
|
|
280
|
-
(y == null ? void 0 : y.isSortable) && /* @__PURE__ */ e(
|
|
281
|
-
hr,
|
|
282
|
-
{
|
|
283
|
-
className: n(
|
|
284
|
-
Z.sortIcon,
|
|
285
|
-
(b = c == null ? void 0 : c.find((C) => C.id === S.column.id)) != null && b.desc ? "rotate-0" : "rotate-180"
|
|
286
|
-
)
|
|
287
|
-
}
|
|
288
|
-
)
|
|
289
|
-
] })
|
|
329
|
+
children: jt(
|
|
330
|
+
m.column.columnDef.cell,
|
|
331
|
+
m.getContext()
|
|
332
|
+
)
|
|
290
333
|
},
|
|
291
|
-
|
|
334
|
+
m.id
|
|
292
335
|
);
|
|
293
336
|
})
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
"tr",
|
|
301
|
-
{
|
|
302
|
-
className: n(
|
|
303
|
-
Z.row,
|
|
304
|
-
(o == null ? void 0 : o.includes(m)) && "bg-gray-50"
|
|
305
|
-
),
|
|
306
|
-
children: [
|
|
307
|
-
l && /* @__PURE__ */ e(
|
|
308
|
-
"td",
|
|
309
|
-
{
|
|
310
|
-
className: n(
|
|
311
|
-
Z.firstBodyCell,
|
|
312
|
-
t == null ? void 0 : t.firstBodyCell
|
|
313
|
-
),
|
|
314
|
-
children: /* @__PURE__ */ e(
|
|
315
|
-
vt,
|
|
316
|
-
{
|
|
317
|
-
id: v.id,
|
|
318
|
-
checked: o == null ? void 0 : o.includes(m),
|
|
319
|
-
onChange: () => s(m)
|
|
320
|
-
}
|
|
321
|
-
)
|
|
322
|
-
}
|
|
323
|
-
),
|
|
324
|
-
v.getVisibleCells().map((S, j, y) => {
|
|
325
|
-
const b = S.column.columnDef.meta;
|
|
326
|
-
return /* @__PURE__ */ e(
|
|
327
|
-
"td",
|
|
328
|
-
{
|
|
329
|
-
className: n(
|
|
330
|
-
Z.bodyCell,
|
|
331
|
-
(o == null ? void 0 : o.includes(v.id)) && "font-bold",
|
|
332
|
-
j === y.length - 1 && "rounded-r-[10px]",
|
|
333
|
-
!l && j === 0 && "px-8",
|
|
334
|
-
b == null ? void 0 : b.cellClass
|
|
335
|
-
),
|
|
336
|
-
children: lt(
|
|
337
|
-
S.column.columnDef.cell,
|
|
338
|
-
S.getContext()
|
|
339
|
-
)
|
|
340
|
-
},
|
|
341
|
-
S.id
|
|
342
|
-
);
|
|
343
|
-
})
|
|
344
|
-
]
|
|
345
|
-
},
|
|
346
|
-
v.id
|
|
347
|
-
);
|
|
348
|
-
}) }),
|
|
349
|
-
x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((v) => v.depth === 0).map((v) => /* @__PURE__ */ e("tr", { children: v.headers.map((m) => /* @__PURE__ */ e("td", { className: n(Z.footerCell), children: lt(
|
|
350
|
-
m.column.columnDef.footer,
|
|
351
|
-
m.getContext()
|
|
352
|
-
) }, m.id)) }, v.id)) })
|
|
353
|
-
] })
|
|
354
|
-
}
|
|
355
|
-
)
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
b.id
|
|
340
|
+
);
|
|
341
|
+
}) })
|
|
342
|
+
] }) })
|
|
356
343
|
] });
|
|
357
344
|
}
|
|
358
|
-
const
|
|
359
|
-
root: "relative
|
|
360
|
-
|
|
361
|
-
table: "w-full border-none",
|
|
345
|
+
const J = {
|
|
346
|
+
root: "relative flex flex-col flex-1 min-h-0 h-full justify-between bg-sidebar-10 transition-all duration-500 ease-in-out",
|
|
347
|
+
container: "flex-1 overflow-auto [scrollbar-gutter:stable]",
|
|
348
|
+
table: "w-full border-none ",
|
|
362
349
|
tableHeader: 'sticky top-0 z-40 bg-gray-50 rounded-[10px] after:content-[""] after:block after:h-2.5 after:bg-sidebar-10',
|
|
363
350
|
firstHeaderCell: "pl-8 py-3 rounded-l-[10px]",
|
|
364
351
|
headerCell: "px-2 py-3 text-left text-sm font-semibold font-mono text-dark-50",
|
|
365
352
|
firstBodyCell: "px-8 py-3 rounded-l-[10px] leading-none",
|
|
366
353
|
bodyCell: "px-2 py-3 text-sm text-gray-700 leading-none",
|
|
367
354
|
row: "border-b border-gray-30 cursor-pointer",
|
|
368
|
-
footerCell: "h-[34px] p-2 text-sm font-bold border-b border-dark-40/[.20]",
|
|
369
355
|
emptyRow: "h-11 border-b border-dark-40/[.20]",
|
|
370
356
|
headerText: "flex items-center gap-1",
|
|
371
357
|
sortIcon: "transition-transform duration-200 fill-dark-50",
|
|
372
|
-
info: "
|
|
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",
|
|
373
359
|
infoText: "text-sm font-semibold text-dark-40/50 font-mono"
|
|
374
|
-
}, ln = L.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), cn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("ol", { ref: a, className: n(
|
|
360
|
+
}, ln = L.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), cn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("ol", { ref: a, className: n(qe.list, t), ...i })), pn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("li", { ref: a, className: n(qe.item, t), ...i })), hn = L.forwardRef(
|
|
375
361
|
({ className: t, ...i }, a) => /* @__PURE__ */ e(
|
|
376
|
-
|
|
362
|
+
Ve,
|
|
377
363
|
{
|
|
378
364
|
ref: a,
|
|
379
|
-
className: n(
|
|
365
|
+
className: n(qe.link, t),
|
|
380
366
|
...i
|
|
381
367
|
}
|
|
382
368
|
)
|
|
@@ -388,7 +374,7 @@ L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e(
|
|
|
388
374
|
role: "link",
|
|
389
375
|
"aria-disabled": "true",
|
|
390
376
|
"aria-current": "page",
|
|
391
|
-
className: n(
|
|
377
|
+
className: n(qe.page, t),
|
|
392
378
|
...i
|
|
393
379
|
}
|
|
394
380
|
));
|
|
@@ -401,7 +387,7 @@ const un = ({
|
|
|
401
387
|
{
|
|
402
388
|
role: "presentation",
|
|
403
389
|
"aria-hidden": "true",
|
|
404
|
-
className: n(
|
|
390
|
+
className: n(qe.separator, i),
|
|
405
391
|
...a,
|
|
406
392
|
children: t
|
|
407
393
|
}
|
|
@@ -419,14 +405,14 @@ const un = ({
|
|
|
419
405
|
isLast: i,
|
|
420
406
|
label: a,
|
|
421
407
|
disabled: o
|
|
422
|
-
}) => /* @__PURE__ */ p(
|
|
408
|
+
}) => /* @__PURE__ */ p(et, { children: [
|
|
423
409
|
/* @__PURE__ */ e(pn, { children: /* @__PURE__ */ e(
|
|
424
410
|
hn,
|
|
425
411
|
{
|
|
426
412
|
className: n(i && "pointer-events-none"),
|
|
427
413
|
to: o ? "/" : t,
|
|
428
414
|
children: /* @__PURE__ */ e(
|
|
429
|
-
|
|
415
|
+
w,
|
|
430
416
|
{
|
|
431
417
|
variant: "p",
|
|
432
418
|
className: n(
|
|
@@ -440,7 +426,7 @@ const un = ({
|
|
|
440
426
|
}
|
|
441
427
|
) }),
|
|
442
428
|
!i && /* @__PURE__ */ e(un, { className: "text-dark-40/[.50] font-medium", children: "/" })
|
|
443
|
-
] }),
|
|
429
|
+
] }), qe = {
|
|
444
430
|
list: "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2",
|
|
445
431
|
item: "inline-flex items-center gap-1.5",
|
|
446
432
|
link: "transition-colors hover:text-foreground",
|
|
@@ -459,7 +445,7 @@ const un = ({
|
|
|
459
445
|
classNames: h,
|
|
460
446
|
...f
|
|
461
447
|
}) => /* @__PURE__ */ e(
|
|
462
|
-
|
|
448
|
+
St,
|
|
463
449
|
{
|
|
464
450
|
label: c,
|
|
465
451
|
iconPosition: "right",
|
|
@@ -485,7 +471,7 @@ const un = ({
|
|
|
485
471
|
}
|
|
486
472
|
), bn = {
|
|
487
473
|
icon: "size-6 fill-gray-20"
|
|
488
|
-
}, To =
|
|
474
|
+
}, To = Q(
|
|
489
475
|
({
|
|
490
476
|
label: t,
|
|
491
477
|
options: i,
|
|
@@ -498,31 +484,31 @@ const un = ({
|
|
|
498
484
|
classNames: u,
|
|
499
485
|
inputPlaceholder: h
|
|
500
486
|
}, f) => {
|
|
501
|
-
const [
|
|
487
|
+
const [x, g] = A(""), [b, s] = A(!1), k = ie(null), m = ie(null);
|
|
502
488
|
zt(f, () => ({
|
|
503
|
-
open: () =>
|
|
504
|
-
close: () =>
|
|
505
|
-
toggle: () =>
|
|
489
|
+
open: () => s(!0),
|
|
490
|
+
close: () => s(!1),
|
|
491
|
+
toggle: () => s((v) => !v),
|
|
506
492
|
focus: () => {
|
|
507
|
-
var
|
|
508
|
-
return (
|
|
493
|
+
var v;
|
|
494
|
+
return (v = k.current) == null ? void 0 : v.focus();
|
|
509
495
|
}
|
|
510
496
|
}), []);
|
|
511
|
-
const
|
|
512
|
-
var
|
|
513
|
-
const C = i.find((I) => I.value ===
|
|
497
|
+
const D = (v) => {
|
|
498
|
+
var T;
|
|
499
|
+
const C = i.find((I) => I.value === v);
|
|
514
500
|
if (!C) return;
|
|
515
|
-
const W = d.some((I) => I.value ===
|
|
501
|
+
const W = d.some((I) => I.value === v);
|
|
516
502
|
l(
|
|
517
|
-
W ? d.filter((I) => I.value !==
|
|
518
|
-
),
|
|
519
|
-
}, S = (
|
|
503
|
+
W ? d.filter((I) => I.value !== v) : [...d, C]
|
|
504
|
+
), g(""), (T = k.current) == null || T.focus();
|
|
505
|
+
}, S = (v, C) => {
|
|
520
506
|
var W;
|
|
521
|
-
C.stopPropagation(), l(d.filter((
|
|
522
|
-
},
|
|
523
|
-
|
|
507
|
+
C.stopPropagation(), l(d.filter((T) => T.value !== v)), (W = k.current) == null || W.focus();
|
|
508
|
+
}, B = (v) => {
|
|
509
|
+
g(v.target.value.toLowerCase());
|
|
524
510
|
}, y = i.filter(
|
|
525
|
-
(
|
|
511
|
+
(v) => v.label.toLowerCase().includes(x)
|
|
526
512
|
);
|
|
527
513
|
return /* @__PURE__ */ p("div", { className: n("flex flex-col", u == null ? void 0 : u.wrapper), children: [
|
|
528
514
|
/* @__PURE__ */ p("div", { className: R.labelWrapper, children: [
|
|
@@ -533,10 +519,10 @@ const un = ({
|
|
|
533
519
|
ae,
|
|
534
520
|
{
|
|
535
521
|
modal: !1,
|
|
536
|
-
open:
|
|
522
|
+
open: b,
|
|
537
523
|
onOpenChange: () => {
|
|
538
|
-
var
|
|
539
|
-
o || ((
|
|
524
|
+
var v;
|
|
525
|
+
o || ((v = k.current) == null || v.focus(), s(!b));
|
|
540
526
|
},
|
|
541
527
|
children: [
|
|
542
528
|
/* @__PURE__ */ e(
|
|
@@ -550,7 +536,7 @@ const un = ({
|
|
|
550
536
|
{
|
|
551
537
|
[R.hoverTrigger]: !o,
|
|
552
538
|
[R.status.danger]: r === "danger",
|
|
553
|
-
[R.focusTrigger]:
|
|
539
|
+
[R.focusTrigger]: b || d.length > 0,
|
|
554
540
|
"pl-1.5 pr-3.5 py-[5px]": d.length > 0,
|
|
555
541
|
[R.disabled.trigger]: o
|
|
556
542
|
},
|
|
@@ -558,7 +544,7 @@ const un = ({
|
|
|
558
544
|
),
|
|
559
545
|
children: /* @__PURE__ */ p("div", { className: R.selectedItems, children: [
|
|
560
546
|
d.length === 0 && /* @__PURE__ */ e(
|
|
561
|
-
|
|
547
|
+
w,
|
|
562
548
|
{
|
|
563
549
|
className: n(
|
|
564
550
|
R.text,
|
|
@@ -567,23 +553,23 @@ const un = ({
|
|
|
567
553
|
children: a
|
|
568
554
|
}
|
|
569
555
|
),
|
|
570
|
-
d.map((
|
|
556
|
+
d.map((v) => /* @__PURE__ */ p(
|
|
571
557
|
"div",
|
|
572
558
|
{
|
|
573
559
|
className: R.selectedItem,
|
|
574
560
|
children: [
|
|
575
561
|
/* @__PURE__ */ e(
|
|
576
|
-
|
|
562
|
+
w,
|
|
577
563
|
{
|
|
578
564
|
className: R.selectedItemText,
|
|
579
565
|
variant: "p",
|
|
580
|
-
children:
|
|
566
|
+
children: v.label
|
|
581
567
|
}
|
|
582
568
|
),
|
|
583
569
|
/* @__PURE__ */ e(
|
|
584
570
|
"button",
|
|
585
571
|
{
|
|
586
|
-
onClick: (C) => S(
|
|
572
|
+
onClick: (C) => S(v.value, C),
|
|
587
573
|
onPointerDownCapture: (C) => C.stopPropagation(),
|
|
588
574
|
"aria-label": "Close",
|
|
589
575
|
children: /* @__PURE__ */ e(
|
|
@@ -599,17 +585,17 @@ const un = ({
|
|
|
599
585
|
)
|
|
600
586
|
]
|
|
601
587
|
},
|
|
602
|
-
|
|
588
|
+
v.value
|
|
603
589
|
)),
|
|
604
590
|
/* @__PURE__ */ e(
|
|
605
|
-
|
|
591
|
+
Ke,
|
|
606
592
|
{
|
|
607
593
|
width: 20,
|
|
608
594
|
height: 20,
|
|
609
595
|
viewBox: "0 0 20 20",
|
|
610
596
|
className: n(
|
|
611
597
|
R.arrowIcon,
|
|
612
|
-
|
|
598
|
+
b && "-rotate-180"
|
|
613
599
|
)
|
|
614
600
|
}
|
|
615
601
|
)
|
|
@@ -623,33 +609,33 @@ const un = ({
|
|
|
623
609
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
624
610
|
className: n(R.options),
|
|
625
611
|
children: [
|
|
626
|
-
/* @__PURE__ */ e(
|
|
612
|
+
/* @__PURE__ */ e(w, { className: R.popoverLabel, children: t }),
|
|
627
613
|
c && /* @__PURE__ */ e("div", { className: R.wrapperInput, children: /* @__PURE__ */ e(
|
|
628
614
|
"input",
|
|
629
615
|
{
|
|
630
|
-
ref:
|
|
631
|
-
onChange:
|
|
632
|
-
value:
|
|
616
|
+
ref: k,
|
|
617
|
+
onChange: B,
|
|
618
|
+
value: x,
|
|
633
619
|
autoFocus: !0,
|
|
634
620
|
className: R.input,
|
|
635
621
|
placeholder: h ?? "Поиск..."
|
|
636
622
|
}
|
|
637
623
|
) }),
|
|
638
|
-
y.length > 0 ? y.map((
|
|
624
|
+
y.length > 0 ? y.map((v, C, W) => /* @__PURE__ */ e(
|
|
639
625
|
dn,
|
|
640
626
|
{
|
|
641
|
-
id:
|
|
627
|
+
id: v.value.toString(),
|
|
642
628
|
"data-testid": "menuitemcheckbox",
|
|
643
|
-
checked: d.some((
|
|
644
|
-
onChange: () =>
|
|
645
|
-
onClick: (
|
|
629
|
+
checked: d.some((T) => T.value === v.value),
|
|
630
|
+
onChange: () => D(v.value),
|
|
631
|
+
onClick: (T) => T.stopPropagation(),
|
|
646
632
|
className: n(
|
|
647
633
|
R.option,
|
|
648
634
|
W.length - 1 !== C && "mb-2.5"
|
|
649
635
|
),
|
|
650
|
-
label:
|
|
636
|
+
label: v.label
|
|
651
637
|
},
|
|
652
|
-
|
|
638
|
+
v.value
|
|
653
639
|
)) : /* @__PURE__ */ e("div", { className: R.noItemsFound, children: "No items found" }),
|
|
654
640
|
/* @__PURE__ */ p("div", { className: R.buttons, children: [
|
|
655
641
|
/* @__PURE__ */ e(
|
|
@@ -660,7 +646,7 @@ const un = ({
|
|
|
660
646
|
R.button.base,
|
|
661
647
|
R.button.cancel
|
|
662
648
|
),
|
|
663
|
-
onClick: () =>
|
|
649
|
+
onClick: () => s(!1),
|
|
664
650
|
children: "Отмена"
|
|
665
651
|
}
|
|
666
652
|
),
|
|
@@ -673,7 +659,7 @@ const un = ({
|
|
|
673
659
|
R.button.save
|
|
674
660
|
),
|
|
675
661
|
isShadow: !0,
|
|
676
|
-
onClick: () =>
|
|
662
|
+
onClick: () => s(!1),
|
|
677
663
|
children: "Сохранить"
|
|
678
664
|
}
|
|
679
665
|
)
|
|
@@ -716,7 +702,7 @@ const un = ({
|
|
|
716
702
|
status: {
|
|
717
703
|
danger: "border-danger-20 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
718
704
|
}
|
|
719
|
-
}, xn =
|
|
705
|
+
}, xn = Q(
|
|
720
706
|
({
|
|
721
707
|
value: t,
|
|
722
708
|
onChange: i,
|
|
@@ -729,31 +715,31 @@ const un = ({
|
|
|
729
715
|
searchResults: u,
|
|
730
716
|
onResultClick: h,
|
|
731
717
|
isSearchIcon: f = !0,
|
|
732
|
-
isSearchResultDisabled:
|
|
733
|
-
isLoading:
|
|
734
|
-
classNames:
|
|
735
|
-
...
|
|
736
|
-
},
|
|
737
|
-
const [m,
|
|
718
|
+
isSearchResultDisabled: x = !0,
|
|
719
|
+
isLoading: g = !1,
|
|
720
|
+
classNames: b,
|
|
721
|
+
...s
|
|
722
|
+
}, k) => {
|
|
723
|
+
const [m, D] = A({
|
|
738
724
|
id: "",
|
|
739
725
|
label: ""
|
|
740
|
-
}), [S,
|
|
726
|
+
}), [S, B] = A(!1), [y, v] = A(!1), C = Nr(t, d);
|
|
741
727
|
ge(() => {
|
|
742
|
-
|
|
728
|
+
B(!!C), l == null || l(C);
|
|
743
729
|
}, [C, l]);
|
|
744
|
-
const W = te.base,
|
|
745
|
-
/* @__PURE__ */ e(
|
|
746
|
-
/* @__PURE__ */ e("div", { className:
|
|
747
|
-
|
|
730
|
+
const W = te.base, T = te.hover, I = te.focus, { focusWithin: z } = te, G = te.disabled, _ = te.input, E = te.button, ce = te.filterIcon, O = te.dropdown, X = te.popover, xe = te.emptyPopover, ne = te.options, cr = ({ title: De, items: Ae }) => /* @__PURE__ */ p(pr, { children: [
|
|
731
|
+
/* @__PURE__ */ e(w, { className: O.typeFilter, children: De }),
|
|
732
|
+
/* @__PURE__ */ e("div", { className: ne.items, children: Ae == null ? void 0 : Ae.map((Ze) => /* @__PURE__ */ e(
|
|
733
|
+
w,
|
|
748
734
|
{
|
|
749
|
-
onClick: () =>
|
|
735
|
+
onClick: () => D(Ze),
|
|
750
736
|
className: n(
|
|
751
|
-
|
|
752
|
-
|
|
737
|
+
ne.itemsText,
|
|
738
|
+
Ze.id === m.id && "before:bg-dark-10 !font-bold"
|
|
753
739
|
),
|
|
754
|
-
children:
|
|
740
|
+
children: Ze.label
|
|
755
741
|
},
|
|
756
|
-
|
|
742
|
+
Ze.id
|
|
757
743
|
)) })
|
|
758
744
|
] });
|
|
759
745
|
return /* @__PURE__ */ p(
|
|
@@ -763,12 +749,12 @@ const un = ({
|
|
|
763
749
|
W,
|
|
764
750
|
!a && z,
|
|
765
751
|
(y || S) && !a && I,
|
|
766
|
-
!(y || S) && !a &&
|
|
752
|
+
!(y || S) && !a && T,
|
|
767
753
|
a && G,
|
|
768
|
-
|
|
754
|
+
b == null ? void 0 : b.base
|
|
769
755
|
),
|
|
770
756
|
children: [
|
|
771
|
-
/* @__PURE__ */ p(nt, { open: y, onOpenChange:
|
|
757
|
+
/* @__PURE__ */ p(nt, { open: y, onOpenChange: v, children: [
|
|
772
758
|
/* @__PURE__ */ e(ot, { asChild: !0, disabled: a, children: o && /* @__PURE__ */ e(
|
|
773
759
|
"button",
|
|
774
760
|
{
|
|
@@ -799,7 +785,7 @@ const un = ({
|
|
|
799
785
|
sideOffset: 18,
|
|
800
786
|
alignOffset: -12,
|
|
801
787
|
onInteractOutside: (De) => De.preventDefault(),
|
|
802
|
-
className: n(O.content,
|
|
788
|
+
className: n(O.content, b == null ? void 0 : b.dropdown),
|
|
803
789
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
804
790
|
children: [
|
|
805
791
|
/* @__PURE__ */ e("div", { className: O.wrapperModule, children: /* @__PURE__ */ e(cr, { title: "Поиск по модулям", items: r }) }),
|
|
@@ -810,7 +796,7 @@ const un = ({
|
|
|
810
796
|
variant: "secondary",
|
|
811
797
|
className: n(E.base, E.cancel),
|
|
812
798
|
onClick: () => {
|
|
813
|
-
|
|
799
|
+
D({ label: "", id: "" }), v(!1);
|
|
814
800
|
},
|
|
815
801
|
children: "Отмена"
|
|
816
802
|
}
|
|
@@ -819,7 +805,7 @@ const un = ({
|
|
|
819
805
|
M,
|
|
820
806
|
{
|
|
821
807
|
onClick: () => {
|
|
822
|
-
c && c(m),
|
|
808
|
+
c && c(m), v(!1);
|
|
823
809
|
},
|
|
824
810
|
className: n(E.base, E.save),
|
|
825
811
|
children: "Сохранить"
|
|
@@ -835,14 +821,14 @@ const un = ({
|
|
|
835
821
|
/* @__PURE__ */ e(
|
|
836
822
|
"input",
|
|
837
823
|
{
|
|
838
|
-
...
|
|
824
|
+
...s,
|
|
839
825
|
role: "searchbox",
|
|
840
|
-
ref:
|
|
826
|
+
ref: k,
|
|
841
827
|
value: t,
|
|
842
828
|
type: "text",
|
|
843
829
|
placeholder: "Поиск",
|
|
844
830
|
onChange: i,
|
|
845
|
-
className: n(_.base,
|
|
831
|
+
className: n(_.base, b == null ? void 0 : b.input),
|
|
846
832
|
disabled: a
|
|
847
833
|
}
|
|
848
834
|
),
|
|
@@ -856,7 +842,7 @@ const un = ({
|
|
|
856
842
|
}
|
|
857
843
|
)
|
|
858
844
|
] }) }),
|
|
859
|
-
!
|
|
845
|
+
!x && /* @__PURE__ */ e(
|
|
860
846
|
le,
|
|
861
847
|
{
|
|
862
848
|
align: "end",
|
|
@@ -864,9 +850,9 @@ const un = ({
|
|
|
864
850
|
sideOffset: 18,
|
|
865
851
|
alignOffset: o ? -42 : -76,
|
|
866
852
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
867
|
-
className: n(
|
|
868
|
-
children:
|
|
869
|
-
/* @__PURE__ */ p(
|
|
853
|
+
className: n(X.content, b == null ? void 0 : b.popover),
|
|
854
|
+
children: g ? /* @__PURE__ */ e("div", { className: xe.wrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }) : u && (u == null ? void 0 : u.length) > 0 ? /* @__PURE__ */ p("div", { className: X.wrapper, children: [
|
|
855
|
+
/* @__PURE__ */ p(w, { className: X.title, children: [
|
|
870
856
|
"Результаты (",
|
|
871
857
|
u == null ? void 0 : u.length,
|
|
872
858
|
")"
|
|
@@ -878,19 +864,19 @@ const un = ({
|
|
|
878
864
|
"aria-label": "search-result",
|
|
879
865
|
className: "first:mt-5",
|
|
880
866
|
children: u == null ? void 0 : u.map((De, Ae) => /* @__PURE__ */ e(
|
|
881
|
-
|
|
867
|
+
w,
|
|
882
868
|
{
|
|
883
869
|
onClick: () => {
|
|
884
|
-
h == null || h(De),
|
|
870
|
+
h == null || h(De), B(!1);
|
|
885
871
|
},
|
|
886
|
-
className:
|
|
872
|
+
className: X.item,
|
|
887
873
|
children: De
|
|
888
874
|
},
|
|
889
875
|
Ae
|
|
890
876
|
))
|
|
891
877
|
}
|
|
892
878
|
)
|
|
893
|
-
] }) : /* @__PURE__ */ e("div", { className: xe.wrapper, children: /* @__PURE__ */ e(
|
|
879
|
+
] }) : /* @__PURE__ */ e("div", { className: xe.wrapper, children: /* @__PURE__ */ e(w, { className: xe.text, children: "Нет результатов поиска" }) })
|
|
894
880
|
}
|
|
895
881
|
)
|
|
896
882
|
] })
|
|
@@ -942,7 +928,7 @@ const un = ({
|
|
|
942
928
|
itemsText: 'flex items-center w-full text-dark-30 text-sm font-normal hover:text-primary-10 before:content-[""] before:block before:bg-sidebar-10 before:w-2 before:h-2 before:rounded-full before:mr-3.5',
|
|
943
929
|
active: "text-dark-10 font-bold"
|
|
944
930
|
}
|
|
945
|
-
},
|
|
931
|
+
}, Dt = ({
|
|
946
932
|
fullName: t,
|
|
947
933
|
jobTitle: i,
|
|
948
934
|
position: a = "right",
|
|
@@ -973,8 +959,8 @@ const un = ({
|
|
|
973
959
|
o == null ? void 0 : o.textWrapper
|
|
974
960
|
),
|
|
975
961
|
children: [
|
|
976
|
-
t && c ? /* @__PURE__ */ e(
|
|
977
|
-
|
|
962
|
+
t && c ? /* @__PURE__ */ e(Ee, { ...c, children: t }) : /* @__PURE__ */ p(
|
|
963
|
+
w,
|
|
978
964
|
{
|
|
979
965
|
className: n(
|
|
980
966
|
Fe.fullName,
|
|
@@ -987,7 +973,7 @@ const un = ({
|
|
|
987
973
|
]
|
|
988
974
|
}
|
|
989
975
|
),
|
|
990
|
-
d || !!i && /* @__PURE__ */ e(
|
|
976
|
+
d || !!i && /* @__PURE__ */ e(w, { className: n(Fe.jobTitle, o == null ? void 0 : o.jobTitle), children: i })
|
|
991
977
|
]
|
|
992
978
|
}
|
|
993
979
|
),
|
|
@@ -1004,7 +990,7 @@ const un = ({
|
|
|
1004
990
|
/* @__PURE__ */ e(ur, { width: 17, height: 22, viewBox: "0 0 17 22" }),
|
|
1005
991
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
|
|
1006
992
|
/* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
|
|
1007
|
-
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children:
|
|
993
|
+
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: mt(t.size) })
|
|
1008
994
|
] }),
|
|
1009
995
|
/* @__PURE__ */ e(
|
|
1010
996
|
Ue,
|
|
@@ -1029,14 +1015,14 @@ const un = ({
|
|
|
1029
1015
|
status: u,
|
|
1030
1016
|
disabled: h = !1,
|
|
1031
1017
|
...f
|
|
1032
|
-
},
|
|
1033
|
-
const [
|
|
1018
|
+
}, x) => {
|
|
1019
|
+
const [g, b] = L.useState(!1), s = L.useRef(null), k = me.root, m = me.input, D = me.icon, S = me.placeholder, B = me.list, y = me.status, v = () => {
|
|
1034
1020
|
var W;
|
|
1035
|
-
h || (
|
|
1021
|
+
h || (b(!0), (W = s.current) == null || W.click());
|
|
1036
1022
|
}, C = () => {
|
|
1037
|
-
|
|
1023
|
+
b(!1);
|
|
1038
1024
|
};
|
|
1039
|
-
return /* @__PURE__ */ p("div", { className: n(
|
|
1025
|
+
return /* @__PURE__ */ p("div", { className: n(k, l == null ? void 0 : l.root), children: [
|
|
1040
1026
|
/* @__PURE__ */ p("div", { className: me.label.wrapper, children: [
|
|
1041
1027
|
!!a && /* @__PURE__ */ e(
|
|
1042
1028
|
ee,
|
|
@@ -1052,10 +1038,10 @@ const un = ({
|
|
|
1052
1038
|
/* @__PURE__ */ p(
|
|
1053
1039
|
sn,
|
|
1054
1040
|
{
|
|
1055
|
-
ref:
|
|
1056
|
-
onClick:
|
|
1057
|
-
pressed:
|
|
1058
|
-
onPressedChange:
|
|
1041
|
+
ref: x,
|
|
1042
|
+
onClick: v,
|
|
1043
|
+
pressed: g,
|
|
1044
|
+
onPressedChange: b,
|
|
1059
1045
|
onBlur: C,
|
|
1060
1046
|
className: n(
|
|
1061
1047
|
m.base,
|
|
@@ -1071,7 +1057,7 @@ const un = ({
|
|
|
1071
1057
|
/* @__PURE__ */ e(
|
|
1072
1058
|
"input",
|
|
1073
1059
|
{
|
|
1074
|
-
ref:
|
|
1060
|
+
ref: s,
|
|
1075
1061
|
id: "file-upload",
|
|
1076
1062
|
role: "file-input",
|
|
1077
1063
|
type: "file",
|
|
@@ -1084,12 +1070,12 @@ const un = ({
|
|
|
1084
1070
|
...f
|
|
1085
1071
|
}
|
|
1086
1072
|
),
|
|
1087
|
-
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className:
|
|
1073
|
+
i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: B, children: i.map((W) => /* @__PURE__ */ e(
|
|
1088
1074
|
gn,
|
|
1089
1075
|
{
|
|
1090
1076
|
file: W,
|
|
1091
|
-
onClick: (
|
|
1092
|
-
|
|
1077
|
+
onClick: (T) => {
|
|
1078
|
+
T.stopPropagation(), d == null || d(W.id);
|
|
1093
1079
|
}
|
|
1094
1080
|
},
|
|
1095
1081
|
W.id
|
|
@@ -1100,7 +1086,7 @@ const un = ({
|
|
|
1100
1086
|
"data-testid": "file-upload-icon",
|
|
1101
1087
|
width: 16,
|
|
1102
1088
|
height: 21,
|
|
1103
|
-
className:
|
|
1089
|
+
className: D
|
|
1104
1090
|
}
|
|
1105
1091
|
),
|
|
1106
1092
|
/* @__PURE__ */ e("span", { className: S, children: o })
|
|
@@ -1137,7 +1123,7 @@ const un = ({
|
|
|
1137
1123
|
const d = a === "review";
|
|
1138
1124
|
return /* @__PURE__ */ p("div", { className: n(U.root, o == null ? void 0 : o.root), children: [
|
|
1139
1125
|
!(t != null && t.length) && (r ? /* @__PURE__ */ e(rt, {}) : /* @__PURE__ */ e(
|
|
1140
|
-
|
|
1126
|
+
w,
|
|
1141
1127
|
{
|
|
1142
1128
|
variant: "p",
|
|
1143
1129
|
className: n(
|
|
@@ -1148,9 +1134,9 @@ const un = ({
|
|
|
1148
1134
|
}
|
|
1149
1135
|
)),
|
|
1150
1136
|
t.map(
|
|
1151
|
-
({ id: l, avatarSrc: u, fullName: h, role: f, comment:
|
|
1137
|
+
({ id: l, avatarSrc: u, fullName: h, role: f, comment: x, date: g, time: b, stars: s = 0 }) => /* @__PURE__ */ p("div", { className: U.wrapper, children: [
|
|
1152
1138
|
/* @__PURE__ */ e(
|
|
1153
|
-
|
|
1139
|
+
Dt,
|
|
1154
1140
|
{
|
|
1155
1141
|
fullName: h,
|
|
1156
1142
|
jobTitle: f || "",
|
|
@@ -1190,21 +1176,21 @@ const un = ({
|
|
|
1190
1176
|
d && /* @__PURE__ */ e(
|
|
1191
1177
|
dr,
|
|
1192
1178
|
{
|
|
1193
|
-
rating:
|
|
1179
|
+
rating: s,
|
|
1194
1180
|
classNames: {
|
|
1195
1181
|
root: "gap-2.5",
|
|
1196
1182
|
rating: "text-sm font-semibold"
|
|
1197
1183
|
}
|
|
1198
1184
|
}
|
|
1199
1185
|
),
|
|
1200
|
-
/* @__PURE__ */ e(
|
|
1201
|
-
/* @__PURE__ */ p(
|
|
1202
|
-
|
|
1186
|
+
/* @__PURE__ */ e(w, { variant: "p", className: U.commentText, children: x }),
|
|
1187
|
+
/* @__PURE__ */ p(w, { variant: "span", className: U.commentDate, children: [
|
|
1188
|
+
g,
|
|
1203
1189
|
" ",
|
|
1204
|
-
|
|
1190
|
+
b
|
|
1205
1191
|
] }),
|
|
1206
1192
|
c && /* @__PURE__ */ e(
|
|
1207
|
-
|
|
1193
|
+
wt,
|
|
1208
1194
|
{
|
|
1209
1195
|
icon: Ar,
|
|
1210
1196
|
shape: "circle",
|
|
@@ -1265,7 +1251,7 @@ const un = ({
|
|
|
1265
1251
|
button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
|
|
1266
1252
|
icon: "fill-sidebar-50/50"
|
|
1267
1253
|
}
|
|
1268
|
-
},
|
|
1254
|
+
}, pt = (t) => {
|
|
1269
1255
|
const i = t.getDate().toString().padStart(2, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getFullYear();
|
|
1270
1256
|
return `${i}/${a}/${o}`;
|
|
1271
1257
|
}, vn = (t) => {
|
|
@@ -1320,15 +1306,15 @@ const un = ({
|
|
|
1320
1306
|
const r = i ? Sn(i) : null;
|
|
1321
1307
|
return vn(a).map((c, d) => {
|
|
1322
1308
|
const { date: l, isCurrentMonth: u } = c, h = l.getDate(), f = r ? l <= r : !1;
|
|
1323
|
-
let
|
|
1324
|
-
return f ?
|
|
1309
|
+
let x = j.dayButton;
|
|
1310
|
+
return f ? x += ` ${j.dayDisabled}` : u ? kn(l, o ? new Date(o) : void 0) ? x += ` ${j.daySelected}` : wn(l) ? x += ` ${j.dayToday}` : yn(l) ? x += ` ${j.dayWeekend}` : x += ` ${j.dayNormal}` : x += ` ${j.dayOutside}`, /* @__PURE__ */ e(
|
|
1325
1311
|
"button",
|
|
1326
1312
|
{
|
|
1327
|
-
onClick: (
|
|
1328
|
-
|
|
1313
|
+
onClick: (g) => {
|
|
1314
|
+
g.stopPropagation(), g.preventDefault(), f || t(l);
|
|
1329
1315
|
},
|
|
1330
1316
|
disabled: f,
|
|
1331
|
-
className:
|
|
1317
|
+
className: x,
|
|
1332
1318
|
children: h
|
|
1333
1319
|
},
|
|
1334
1320
|
d
|
|
@@ -1345,42 +1331,42 @@ const un = ({
|
|
|
1345
1331
|
}) => {
|
|
1346
1332
|
const [l, u] = A(!1), [h, f] = A(
|
|
1347
1333
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1348
|
-
), [
|
|
1349
|
-
t ?
|
|
1334
|
+
), [x, g] = A(
|
|
1335
|
+
t ? pt(new Date(t)) : ""
|
|
1350
1336
|
);
|
|
1351
1337
|
ge(() => {
|
|
1352
|
-
t ? (
|
|
1338
|
+
t ? (g(pt(new Date(t))), f(new Date(t))) : g("");
|
|
1353
1339
|
}, [t]);
|
|
1354
|
-
const
|
|
1355
|
-
i(
|
|
1356
|
-
}, m = (
|
|
1357
|
-
let C =
|
|
1358
|
-
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)),
|
|
1340
|
+
const b = ie(null), s = ie(null), k = (v) => {
|
|
1341
|
+
i(v.toISOString()), g(pt(v)), u(!1);
|
|
1342
|
+
}, m = (v) => {
|
|
1343
|
+
let C = v.target.value.replace(/\D/g, "");
|
|
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() === "") {
|
|
1359
1345
|
i(void 0);
|
|
1360
1346
|
return;
|
|
1361
1347
|
}
|
|
1362
1348
|
const W = C.split("/");
|
|
1363
1349
|
if (W.length === 3) {
|
|
1364
|
-
const
|
|
1365
|
-
if (
|
|
1366
|
-
const G = new Date(z, I,
|
|
1367
|
-
G.getDate() ===
|
|
1350
|
+
const T = parseInt(W[0]), I = parseInt(W[1]) - 1, z = parseInt(W[2]);
|
|
1351
|
+
if (T > 0 && T <= 31 && I >= 0 && I <= 11 && z > 1900) {
|
|
1352
|
+
const G = new Date(z, I, T);
|
|
1353
|
+
G.getDate() === T && G.getMonth() === I && G.getFullYear() === z && (i(G.toISOString()), f(new Date(z, I, 1)));
|
|
1368
1354
|
}
|
|
1369
1355
|
}
|
|
1370
|
-
},
|
|
1356
|
+
}, D = (v) => {
|
|
1371
1357
|
const C = new Date(h);
|
|
1372
|
-
C.setMonth(h.getMonth() +
|
|
1373
|
-
}, S = (
|
|
1374
|
-
const C = parseInt(
|
|
1358
|
+
C.setMonth(h.getMonth() + v), f(C);
|
|
1359
|
+
}, S = (v) => {
|
|
1360
|
+
const C = parseInt(v);
|
|
1375
1361
|
f(new Date(h.getFullYear(), C, 1));
|
|
1376
|
-
},
|
|
1377
|
-
const C = parseInt(
|
|
1362
|
+
}, B = (v) => {
|
|
1363
|
+
const C = parseInt(v);
|
|
1378
1364
|
f(new Date(C, h.getMonth(), 1));
|
|
1379
|
-
}, y = (
|
|
1380
|
-
|
|
1365
|
+
}, y = (v) => {
|
|
1366
|
+
v.stopPropagation(), v.preventDefault(), i(void 0), g(""), u(!1);
|
|
1381
1367
|
};
|
|
1382
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1383
|
-
/* @__PURE__ */ p("div", { className:
|
|
1368
|
+
return /* @__PURE__ */ p("div", { className: j.base, children: [
|
|
1369
|
+
/* @__PURE__ */ p("div", { className: j.label.wrapper, children: [
|
|
1384
1370
|
!!r && /* @__PURE__ */ e(ee, { disabled: o, children: r }),
|
|
1385
1371
|
c === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1386
1372
|
] }),
|
|
@@ -1390,13 +1376,13 @@ const un = ({
|
|
|
1390
1376
|
{
|
|
1391
1377
|
asChild: !0,
|
|
1392
1378
|
className: n(
|
|
1393
|
-
|
|
1394
|
-
!o &&
|
|
1395
|
-
l &&
|
|
1396
|
-
o &&
|
|
1397
|
-
!o && !l &&
|
|
1398
|
-
!o &&
|
|
1399
|
-
!o && c === "danger" &&
|
|
1379
|
+
j.inputWrapper.base,
|
|
1380
|
+
!o && j.inputWrapper.active,
|
|
1381
|
+
l && j.inputWrapper.focus,
|
|
1382
|
+
o && j.inputWrapper.disabled,
|
|
1383
|
+
!o && !l && j.inputWrapper.hover,
|
|
1384
|
+
!o && j.inputWrapper.pressed,
|
|
1385
|
+
!o && c === "danger" && j.status.danger,
|
|
1400
1386
|
a == null ? void 0 : a.inputWrapper
|
|
1401
1387
|
),
|
|
1402
1388
|
children: /* @__PURE__ */ p("div", { className: "flex items-center", children: [
|
|
@@ -1404,16 +1390,16 @@ const un = ({
|
|
|
1404
1390
|
"input",
|
|
1405
1391
|
{
|
|
1406
1392
|
type: "text",
|
|
1407
|
-
value:
|
|
1393
|
+
value: x,
|
|
1408
1394
|
onChange: m,
|
|
1409
1395
|
placeholder: "__ / __ / ____",
|
|
1410
1396
|
disabled: o,
|
|
1411
1397
|
className: n(
|
|
1412
|
-
|
|
1413
|
-
!o && l &&
|
|
1414
|
-
!o && !l &&
|
|
1415
|
-
!o &&
|
|
1416
|
-
o &&
|
|
1398
|
+
j.input.base,
|
|
1399
|
+
!o && l && j.input.focus,
|
|
1400
|
+
!o && !l && j.input.hover,
|
|
1401
|
+
!o && j.input.pressed,
|
|
1402
|
+
o && j.input.disabled,
|
|
1417
1403
|
a == null ? void 0 : a.input
|
|
1418
1404
|
),
|
|
1419
1405
|
onClick: () => u(!l)
|
|
@@ -1422,16 +1408,16 @@ const un = ({
|
|
|
1422
1408
|
/* @__PURE__ */ e(
|
|
1423
1409
|
"button",
|
|
1424
1410
|
{
|
|
1425
|
-
onClick: (
|
|
1426
|
-
|
|
1411
|
+
onClick: (v) => {
|
|
1412
|
+
v.preventDefault(), v.stopPropagation(), u(!l);
|
|
1427
1413
|
},
|
|
1428
1414
|
disabled: o,
|
|
1429
1415
|
className: n(
|
|
1430
|
-
|
|
1431
|
-
!o && l &&
|
|
1432
|
-
!o && !l &&
|
|
1433
|
-
!o &&
|
|
1434
|
-
o &&
|
|
1416
|
+
j.calendarButton.base,
|
|
1417
|
+
!o && l && j.calendarButton.focus,
|
|
1418
|
+
!o && !l && j.calendarButton.hover,
|
|
1419
|
+
!o && j.calendarButton.active,
|
|
1420
|
+
o && j.calendarButton.disabled
|
|
1435
1421
|
),
|
|
1436
1422
|
children: /* @__PURE__ */ e(
|
|
1437
1423
|
Nt,
|
|
@@ -1440,11 +1426,11 @@ const un = ({
|
|
|
1440
1426
|
height: 18,
|
|
1441
1427
|
viewBox: "0 0 18 18",
|
|
1442
1428
|
className: n(
|
|
1443
|
-
|
|
1444
|
-
!o && l &&
|
|
1445
|
-
!o && !l &&
|
|
1446
|
-
!o &&
|
|
1447
|
-
o &&
|
|
1429
|
+
j.calendarIcon.base,
|
|
1430
|
+
!o && l && j.calendarIcon.focus,
|
|
1431
|
+
!o && !l && j.calendarIcon.hover,
|
|
1432
|
+
!o && j.calendarIcon.active,
|
|
1433
|
+
o && j.calendarIcon.disabled
|
|
1448
1434
|
)
|
|
1449
1435
|
}
|
|
1450
1436
|
)
|
|
@@ -1453,44 +1439,44 @@ const un = ({
|
|
|
1453
1439
|
] })
|
|
1454
1440
|
}
|
|
1455
1441
|
),
|
|
1456
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1442
|
+
/* @__PURE__ */ e("div", { ref: s, className: "relative z-50", children: /* @__PURE__ */ e(
|
|
1457
1443
|
le,
|
|
1458
1444
|
{
|
|
1459
1445
|
role: "dialog",
|
|
1460
|
-
ref:
|
|
1461
|
-
container:
|
|
1462
|
-
className:
|
|
1446
|
+
ref: b,
|
|
1447
|
+
container: s.current,
|
|
1448
|
+
className: j.popoverWrapper,
|
|
1463
1449
|
children: /* @__PURE__ */ p("div", { children: [
|
|
1464
|
-
/* @__PURE__ */ p("div", { className:
|
|
1450
|
+
/* @__PURE__ */ p("div", { className: j.navigation, children: [
|
|
1465
1451
|
/* @__PURE__ */ e(
|
|
1466
1452
|
"button",
|
|
1467
1453
|
{
|
|
1468
|
-
onClick: () =>
|
|
1469
|
-
className:
|
|
1454
|
+
onClick: () => D(-1),
|
|
1455
|
+
className: j.navButton,
|
|
1470
1456
|
children: /* @__PURE__ */ e(
|
|
1471
1457
|
Ut,
|
|
1472
1458
|
{
|
|
1473
1459
|
width: 6,
|
|
1474
1460
|
height: 10,
|
|
1475
|
-
className:
|
|
1461
|
+
className: j.navButton
|
|
1476
1462
|
}
|
|
1477
1463
|
)
|
|
1478
1464
|
}
|
|
1479
1465
|
),
|
|
1480
|
-
/* @__PURE__ */ p("div", { className:
|
|
1466
|
+
/* @__PURE__ */ p("div", { className: j.selectContainer, children: [
|
|
1481
1467
|
/* @__PURE__ */ e(
|
|
1482
1468
|
Te,
|
|
1483
1469
|
{
|
|
1484
|
-
options: Dn.map((
|
|
1485
|
-
label:
|
|
1470
|
+
options: Dn.map((v, C) => ({
|
|
1471
|
+
label: v,
|
|
1486
1472
|
value: C.toString()
|
|
1487
1473
|
})),
|
|
1488
1474
|
classNames: {
|
|
1489
1475
|
trigger: "w-28 h-8"
|
|
1490
1476
|
},
|
|
1491
1477
|
disabled: !1,
|
|
1492
|
-
onChange: (
|
|
1493
|
-
S(
|
|
1478
|
+
onChange: (v) => {
|
|
1479
|
+
S(v), u(!0);
|
|
1494
1480
|
},
|
|
1495
1481
|
value: String(h.getMonth())
|
|
1496
1482
|
}
|
|
@@ -1503,8 +1489,8 @@ const un = ({
|
|
|
1503
1489
|
trigger: "w-28 h-8"
|
|
1504
1490
|
},
|
|
1505
1491
|
disabled: !1,
|
|
1506
|
-
onChange: (
|
|
1507
|
-
|
|
1492
|
+
onChange: (v) => {
|
|
1493
|
+
B(v), u(!0);
|
|
1508
1494
|
},
|
|
1509
1495
|
value: String(h.getFullYear())
|
|
1510
1496
|
}
|
|
@@ -1513,28 +1499,28 @@ const un = ({
|
|
|
1513
1499
|
/* @__PURE__ */ e(
|
|
1514
1500
|
"button",
|
|
1515
1501
|
{
|
|
1516
|
-
onClick: () =>
|
|
1517
|
-
className:
|
|
1502
|
+
onClick: () => D(1),
|
|
1503
|
+
className: j.navButton,
|
|
1518
1504
|
children: /* @__PURE__ */ e(
|
|
1519
1505
|
Yt,
|
|
1520
1506
|
{
|
|
1521
1507
|
width: 6,
|
|
1522
1508
|
height: 10,
|
|
1523
|
-
className:
|
|
1509
|
+
className: j.navButton
|
|
1524
1510
|
}
|
|
1525
1511
|
)
|
|
1526
1512
|
}
|
|
1527
1513
|
)
|
|
1528
1514
|
] }),
|
|
1529
|
-
/* @__PURE__ */ e("div", { className:
|
|
1530
|
-
/* @__PURE__ */ e("div", { className:
|
|
1531
|
-
/* @__PURE__ */ e("div", { className:
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: j.weekHeader, children: Tn.map((v) => /* @__PURE__ */ e("div", { className: j.weekDay, children: v }, v)) }),
|
|
1516
|
+
/* @__PURE__ */ e("div", { className: j.calendar, children: Bn(k, d, h, t) }),
|
|
1517
|
+
/* @__PURE__ */ e("div", { className: j.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: y, className: j.resetButton, children: "Сбросить" }) })
|
|
1532
1518
|
] })
|
|
1533
1519
|
}
|
|
1534
1520
|
) })
|
|
1535
1521
|
] })
|
|
1536
1522
|
] });
|
|
1537
|
-
},
|
|
1523
|
+
}, j = {
|
|
1538
1524
|
base: "relative flex items-start flex-col gap-1.5",
|
|
1539
1525
|
container: "w-full max-w-[132px] h-9",
|
|
1540
1526
|
inputContainer: "relative",
|
|
@@ -1604,44 +1590,44 @@ const un = ({
|
|
|
1604
1590
|
disabled: r = !1,
|
|
1605
1591
|
classNames: c
|
|
1606
1592
|
}) => {
|
|
1607
|
-
const d = L.useId(), [l, u] = L.useState(/* @__PURE__ */ new Date()), [h, f] = L.useState(""), [
|
|
1593
|
+
const d = L.useId(), [l, u] = L.useState(/* @__PURE__ */ new Date()), [h, f] = L.useState(""), [x, g] = L.useState(!1), b = or({
|
|
1608
1594
|
mask: "__/__/____ - __/__/____",
|
|
1609
1595
|
replacement: { _: /\d/ }
|
|
1610
|
-
}),
|
|
1596
|
+
}), s = L.useRef(null), k = L.useRef(!1);
|
|
1611
1597
|
L.useEffect(() => {
|
|
1612
|
-
if (
|
|
1613
|
-
const y = t.from ?
|
|
1614
|
-
f(
|
|
1598
|
+
if (k.current || !t || !(t.to && t.from)) return;
|
|
1599
|
+
const y = t.from ? Z(new Date(t.from), N) : "", v = t.to ? Z(new Date(t.to), N) : "";
|
|
1600
|
+
f(v ? `${y} - ${v}` : `${y} - `);
|
|
1615
1601
|
}, [t]);
|
|
1616
|
-
const m = In.base,
|
|
1602
|
+
const m = In.base, D = (y) => {
|
|
1617
1603
|
if (!y)
|
|
1618
1604
|
f(""), i(void 0);
|
|
1619
1605
|
else if (y.from && !y.to)
|
|
1620
|
-
i(y), u(y.from), f(
|
|
1606
|
+
i(y), u(y.from), f(Z(new Date(y.from), N) + " - ");
|
|
1621
1607
|
else if (y.from && y.to)
|
|
1622
1608
|
if (y.to < y.from) {
|
|
1623
|
-
const
|
|
1624
|
-
i(
|
|
1625
|
-
|
|
1609
|
+
const v = { from: y.to, to: y.from };
|
|
1610
|
+
i(v), f(
|
|
1611
|
+
Z(new Date(v.from), N) + " - " + Z(new Date(v.to), N)
|
|
1626
1612
|
);
|
|
1627
1613
|
} else
|
|
1628
1614
|
i(y), f(
|
|
1629
|
-
|
|
1615
|
+
Z(new Date(y.from), N) + " - " + Z(new Date(y.to), N)
|
|
1630
1616
|
);
|
|
1631
1617
|
}, S = (y) => {
|
|
1632
|
-
|
|
1633
|
-
const { value:
|
|
1634
|
-
f(
|
|
1635
|
-
const
|
|
1636
|
-
We(
|
|
1637
|
-
},
|
|
1618
|
+
k.current = !0;
|
|
1619
|
+
const { value: v } = y.target, [C, W] = v.split("-").map((z) => z.trim());
|
|
1620
|
+
f(v);
|
|
1621
|
+
const T = vt(C, N, /* @__PURE__ */ new Date()), I = W ? vt(W, N, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
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
|
+
}, B = () => {
|
|
1638
1624
|
f(""), i(void 0), u(/* @__PURE__ */ new Date());
|
|
1639
1625
|
};
|
|
1640
|
-
return /* @__PURE__ */ e("div", { className: n(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ p(ae, { open:
|
|
1626
|
+
return /* @__PURE__ */ e("div", { className: n(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ p(ae, { open: x, onOpenChange: g, children: [
|
|
1641
1627
|
/* @__PURE__ */ e(de, { asChild: !0, role: "trigger", className: c == null ? void 0 : c.trigger, children: /* @__PURE__ */ e(
|
|
1642
|
-
|
|
1628
|
+
St,
|
|
1643
1629
|
{
|
|
1644
|
-
ref:
|
|
1630
|
+
ref: b,
|
|
1645
1631
|
label: a,
|
|
1646
1632
|
inputProps: {
|
|
1647
1633
|
id: d,
|
|
@@ -1657,7 +1643,7 @@ const un = ({
|
|
|
1657
1643
|
disabled: r
|
|
1658
1644
|
},
|
|
1659
1645
|
icon: Nt,
|
|
1660
|
-
onIconClick: () =>
|
|
1646
|
+
onIconClick: () => g(!0),
|
|
1661
1647
|
iconProps: {
|
|
1662
1648
|
width: 18,
|
|
1663
1649
|
height: 18,
|
|
@@ -1668,31 +1654,31 @@ const un = ({
|
|
|
1668
1654
|
}
|
|
1669
1655
|
}
|
|
1670
1656
|
) }),
|
|
1671
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1657
|
+
/* @__PURE__ */ e("div", { ref: s, className: "relative z-50", children: /* @__PURE__ */ p(
|
|
1672
1658
|
le,
|
|
1673
1659
|
{
|
|
1674
1660
|
role: "dialog",
|
|
1675
1661
|
style: { borderRadius: 5 },
|
|
1676
1662
|
side: "bottom",
|
|
1677
1663
|
align: "start",
|
|
1678
|
-
container:
|
|
1664
|
+
container: s.current,
|
|
1679
1665
|
className: n(m.content, c == null ? void 0 : c.content),
|
|
1680
1666
|
children: [
|
|
1681
1667
|
/* @__PURE__ */ e(
|
|
1682
1668
|
an,
|
|
1683
1669
|
{
|
|
1684
1670
|
month: l,
|
|
1685
|
-
locale:
|
|
1671
|
+
locale: ct,
|
|
1686
1672
|
onMonthChange: u,
|
|
1687
1673
|
mode: "range",
|
|
1688
1674
|
numberOfMonths: 2,
|
|
1689
1675
|
pagedNavigation: !0,
|
|
1690
1676
|
selected: t,
|
|
1691
|
-
onSelect:
|
|
1677
|
+
onSelect: D,
|
|
1692
1678
|
classNames: _n,
|
|
1693
1679
|
components: {
|
|
1694
1680
|
DayButton: (y) => {
|
|
1695
|
-
const
|
|
1681
|
+
const v = jn(
|
|
1696
1682
|
y.day.date,
|
|
1697
1683
|
t == null ? void 0 : t.from,
|
|
1698
1684
|
t == null ? void 0 : t.to
|
|
@@ -1701,17 +1687,17 @@ const un = ({
|
|
|
1701
1687
|
"button",
|
|
1702
1688
|
{
|
|
1703
1689
|
onDoubleClick: () => {
|
|
1704
|
-
|
|
1690
|
+
D(void 0);
|
|
1705
1691
|
},
|
|
1706
1692
|
onClick: () => {
|
|
1707
1693
|
const C = new Date(y.day.date);
|
|
1708
|
-
t != null && t.from ? C <= t.from ?
|
|
1694
|
+
t != null && t.from ? C <= t.from ? D({
|
|
1709
1695
|
from: C,
|
|
1710
1696
|
to: t.from
|
|
1711
|
-
}) :
|
|
1697
|
+
}) : D({
|
|
1712
1698
|
from: t.from,
|
|
1713
1699
|
to: C
|
|
1714
|
-
}) :
|
|
1700
|
+
}) : D({
|
|
1715
1701
|
from: C,
|
|
1716
1702
|
to: void 0
|
|
1717
1703
|
});
|
|
@@ -1722,11 +1708,11 @@ const un = ({
|
|
|
1722
1708
|
{
|
|
1723
1709
|
className: n(
|
|
1724
1710
|
"size-6 rounded-full flex items-center justify-center",
|
|
1725
|
-
(t == null ? void 0 : t.from) &&
|
|
1726
|
-
(t == null ? void 0 : t.to) &&
|
|
1727
|
-
|
|
1711
|
+
(t == null ? void 0 : t.from) && Z(new Date(t == null ? void 0 : t.from), N) === Z(new Date(y.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(y.day.date), N) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1713
|
+
v && "!bg-primary-40 text-dark-50"
|
|
1728
1714
|
),
|
|
1729
|
-
children: /* @__PURE__ */ e(
|
|
1715
|
+
children: /* @__PURE__ */ e(w, { className: "text-sm font-mono font-medium", children: y.children })
|
|
1730
1716
|
}
|
|
1731
1717
|
)
|
|
1732
1718
|
}
|
|
@@ -1734,10 +1720,10 @@ const un = ({
|
|
|
1734
1720
|
},
|
|
1735
1721
|
Nav: (y) => {
|
|
1736
1722
|
const {
|
|
1737
|
-
className:
|
|
1723
|
+
className: v,
|
|
1738
1724
|
onNextClick: C,
|
|
1739
1725
|
onPreviousClick: W,
|
|
1740
|
-
nextMonth:
|
|
1726
|
+
nextMonth: T,
|
|
1741
1727
|
previousMonth: I
|
|
1742
1728
|
} = y, z = l, G = nn(l, 1);
|
|
1743
1729
|
return /* @__PURE__ */ p(
|
|
@@ -1745,7 +1731,7 @@ const un = ({
|
|
|
1745
1731
|
{
|
|
1746
1732
|
className: n(
|
|
1747
1733
|
"w-full flex items-center justify-between mb-2",
|
|
1748
|
-
|
|
1734
|
+
v
|
|
1749
1735
|
),
|
|
1750
1736
|
children: [
|
|
1751
1737
|
/* @__PURE__ */ p("div", { className: "flex items-center w-1/2 bg-white", children: [
|
|
@@ -1766,11 +1752,11 @@ const un = ({
|
|
|
1766
1752
|
) })
|
|
1767
1753
|
}
|
|
1768
1754
|
),
|
|
1769
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
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: ct }) }) })
|
|
1770
1756
|
] }),
|
|
1771
1757
|
/* @__PURE__ */ p("div", { className: "flex items-center w-1/2", children: [
|
|
1772
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
1773
|
-
/* @__PURE__ */ e("button", { onClick: C, disabled: !
|
|
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(G, "MMMM yyyy", { locale: ct }) }) }),
|
|
1759
|
+
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1774
1760
|
Yt,
|
|
1775
1761
|
{
|
|
1776
1762
|
width: 14,
|
|
@@ -1792,7 +1778,7 @@ const un = ({
|
|
|
1792
1778
|
{
|
|
1793
1779
|
variant: "text",
|
|
1794
1780
|
type: "button",
|
|
1795
|
-
onClick:
|
|
1781
|
+
onClick: B,
|
|
1796
1782
|
classNames: {
|
|
1797
1783
|
base: m.resetButton
|
|
1798
1784
|
},
|
|
@@ -1826,15 +1812,15 @@ const un = ({
|
|
|
1826
1812
|
align: d = "start",
|
|
1827
1813
|
classNames: l
|
|
1828
1814
|
}) => {
|
|
1829
|
-
const [u, h] = L.useState(), [f] =
|
|
1830
|
-
h(m),
|
|
1831
|
-
},
|
|
1815
|
+
const [u, h] = L.useState(), [f] = yt(), x = qt(), g = (m) => {
|
|
1816
|
+
h(m), x(`${i}/${m.to}?${f.toString()}`);
|
|
1817
|
+
}, b = _t.modal, s = b.item, k = _t.text;
|
|
1832
1818
|
return /* @__PURE__ */ p(nt, { open: o, onOpenChange: r, children: [
|
|
1833
1819
|
/* @__PURE__ */ e(
|
|
1834
1820
|
ot,
|
|
1835
1821
|
{
|
|
1836
1822
|
asChild: !0,
|
|
1837
|
-
className: n(
|
|
1823
|
+
className: n(b.trigger, l == null ? void 0 : l.trigger),
|
|
1838
1824
|
children: t
|
|
1839
1825
|
}
|
|
1840
1826
|
),
|
|
@@ -1843,33 +1829,33 @@ const un = ({
|
|
|
1843
1829
|
{
|
|
1844
1830
|
side: c,
|
|
1845
1831
|
align: d,
|
|
1846
|
-
className: n(
|
|
1832
|
+
className: n(b.content, l == null ? void 0 : l.content),
|
|
1847
1833
|
children: a == null ? void 0 : a.map((m) => {
|
|
1848
|
-
const
|
|
1834
|
+
const D = (u == null ? void 0 : u.id) === m.id;
|
|
1849
1835
|
return /* @__PURE__ */ e(
|
|
1850
1836
|
"div",
|
|
1851
1837
|
{
|
|
1852
1838
|
className: n(
|
|
1853
1839
|
"p-2",
|
|
1854
|
-
|
|
1855
|
-
|
|
1840
|
+
D && s.active,
|
|
1841
|
+
D && (l == null ? void 0 : l.item)
|
|
1856
1842
|
),
|
|
1857
1843
|
children: /* @__PURE__ */ p(
|
|
1858
|
-
|
|
1844
|
+
Tt,
|
|
1859
1845
|
{
|
|
1860
|
-
onClick: () =>
|
|
1846
|
+
onClick: () => g(m),
|
|
1861
1847
|
className: n(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1848
|
+
k.base,
|
|
1849
|
+
D && "font-bold",
|
|
1850
|
+
D && (l == null ? void 0 : l.text)
|
|
1865
1851
|
),
|
|
1866
1852
|
children: [
|
|
1867
1853
|
/* @__PURE__ */ e(
|
|
1868
1854
|
"span",
|
|
1869
1855
|
{
|
|
1870
1856
|
className: n(
|
|
1871
|
-
|
|
1872
|
-
|
|
1857
|
+
k.dot,
|
|
1858
|
+
D && "bg-primary-10",
|
|
1873
1859
|
l == null ? void 0 : l.dot
|
|
1874
1860
|
)
|
|
1875
1861
|
}
|
|
@@ -1908,7 +1894,7 @@ const un = ({
|
|
|
1908
1894
|
}) => /* @__PURE__ */ p("div", { className: n(K.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
1909
1895
|
t && /* @__PURE__ */ p("div", { className: K.header, children: [
|
|
1910
1896
|
/* @__PURE__ */ e(br, { className: K.headerIcon, role: "img" }),
|
|
1911
|
-
/* @__PURE__ */ p(
|
|
1897
|
+
/* @__PURE__ */ p(w, { variant: "p", className: K.headerText, children: [
|
|
1912
1898
|
t,
|
|
1913
1899
|
"(",
|
|
1914
1900
|
a.length,
|
|
@@ -1941,7 +1927,7 @@ const un = ({
|
|
|
1941
1927
|
)
|
|
1942
1928
|
] }),
|
|
1943
1929
|
/* @__PURE__ */ e(
|
|
1944
|
-
|
|
1930
|
+
Ee,
|
|
1945
1931
|
{
|
|
1946
1932
|
href: l.publicUrl,
|
|
1947
1933
|
classNames: { root: K.imageText },
|
|
@@ -1954,11 +1940,11 @@ const un = ({
|
|
|
1954
1940
|
) : /* @__PURE__ */ p("div", { className: n(K.fileWrapper, d == null ? void 0 : d.file), children: [
|
|
1955
1941
|
/* @__PURE__ */ e(Gt, { className: K.fileIcon, role: "img" }),
|
|
1956
1942
|
/* @__PURE__ */ p("div", { children: [
|
|
1957
|
-
/* @__PURE__ */ e(
|
|
1958
|
-
/* @__PURE__ */ e(
|
|
1943
|
+
/* @__PURE__ */ e(w, { variant: "p", className: K.fileText, children: l.name }),
|
|
1944
|
+
/* @__PURE__ */ e(w, { variant: "p", className: K.fileSize, children: mt(l.size) })
|
|
1959
1945
|
] }),
|
|
1960
1946
|
/* @__PURE__ */ e(
|
|
1961
|
-
|
|
1947
|
+
Ee,
|
|
1962
1948
|
{
|
|
1963
1949
|
href: l.downloadUrl ?? "#",
|
|
1964
1950
|
isIconVisible: !1,
|
|
@@ -2009,7 +1995,7 @@ const un = ({
|
|
|
2009
1995
|
)
|
|
2010
1996
|
] }),
|
|
2011
1997
|
i && /* @__PURE__ */ e(
|
|
2012
|
-
|
|
1998
|
+
w,
|
|
2013
1999
|
{
|
|
2014
2000
|
variant: "p",
|
|
2015
2001
|
className: n(K.description, d == null ? void 0 : d.description),
|
|
@@ -2045,18 +2031,18 @@ const un = ({
|
|
|
2045
2031
|
icon: d,
|
|
2046
2032
|
iconSizes: l
|
|
2047
2033
|
}) => {
|
|
2048
|
-
const [u, h] = A(!1),
|
|
2034
|
+
const [u, h] = A(!1), x = er(o)(c), g = ht.base, b = ht.disabled.trigger, s = ht.disabled.triggerText, k = ({
|
|
2049
2035
|
className: m,
|
|
2050
|
-
text:
|
|
2036
|
+
text: D = ""
|
|
2051
2037
|
}) => /* @__PURE__ */ e(
|
|
2052
|
-
|
|
2038
|
+
w,
|
|
2053
2039
|
{
|
|
2054
2040
|
className: n(
|
|
2055
|
-
|
|
2041
|
+
g.placeholder,
|
|
2056
2042
|
m,
|
|
2057
|
-
i &&
|
|
2043
|
+
i && s
|
|
2058
2044
|
),
|
|
2059
|
-
children:
|
|
2045
|
+
children: D
|
|
2060
2046
|
}
|
|
2061
2047
|
);
|
|
2062
2048
|
return /* @__PURE__ */ p(nt, { open: u, onOpenChange: h, children: [
|
|
@@ -2066,8 +2052,8 @@ const un = ({
|
|
|
2066
2052
|
role: "listbox",
|
|
2067
2053
|
disabled: i,
|
|
2068
2054
|
className: n(
|
|
2069
|
-
|
|
2070
|
-
i &&
|
|
2055
|
+
g.trigger,
|
|
2056
|
+
i && b,
|
|
2071
2057
|
t == null ? void 0 : t.trigger
|
|
2072
2058
|
),
|
|
2073
2059
|
children: [
|
|
@@ -2077,28 +2063,28 @@ const un = ({
|
|
|
2077
2063
|
width: l == null ? void 0 : l.width,
|
|
2078
2064
|
height: l == null ? void 0 : l.height,
|
|
2079
2065
|
viewBox: l == null ? void 0 : l.viewBox,
|
|
2080
|
-
className: n(
|
|
2066
|
+
className: n(g.icon, t == null ? void 0 : t.icon)
|
|
2081
2067
|
}
|
|
2082
|
-
) : /* @__PURE__ */ e(
|
|
2068
|
+
) : /* @__PURE__ */ e(k, { text: "Сортировать:", className: g.label }),
|
|
2083
2069
|
c ? /* @__PURE__ */ e(
|
|
2084
|
-
|
|
2070
|
+
k,
|
|
2085
2071
|
{
|
|
2086
2072
|
"data-testid": "dropdown-selected-option",
|
|
2087
|
-
text:
|
|
2088
|
-
className: n(
|
|
2073
|
+
text: x == null ? void 0 : x.label,
|
|
2074
|
+
className: n(g.selected, t == null ? void 0 : t.selected)
|
|
2089
2075
|
}
|
|
2090
2076
|
) : /* @__PURE__ */ e(
|
|
2091
|
-
|
|
2077
|
+
k,
|
|
2092
2078
|
{
|
|
2093
2079
|
text: r,
|
|
2094
|
-
className: n(
|
|
2080
|
+
className: n(g.placeholder, t == null ? void 0 : t.placeholder)
|
|
2095
2081
|
}
|
|
2096
2082
|
),
|
|
2097
2083
|
/* @__PURE__ */ e(
|
|
2098
2084
|
"div",
|
|
2099
2085
|
{
|
|
2100
2086
|
className: n(
|
|
2101
|
-
|
|
2087
|
+
g.dropdownIcon,
|
|
2102
2088
|
u && "rotate-180 transition-transform"
|
|
2103
2089
|
),
|
|
2104
2090
|
children: /* @__PURE__ */ e(gr, { className: "fill-dark-30" })
|
|
@@ -2110,21 +2096,21 @@ const un = ({
|
|
|
2110
2096
|
/* @__PURE__ */ e(
|
|
2111
2097
|
it,
|
|
2112
2098
|
{
|
|
2113
|
-
className: n(
|
|
2099
|
+
className: n(g.content, t == null ? void 0 : t.content),
|
|
2114
2100
|
align: "end",
|
|
2115
2101
|
sideOffset: 1,
|
|
2116
2102
|
children: o && (o == null ? void 0 : o.map((m) => /* @__PURE__ */ e(
|
|
2117
|
-
|
|
2103
|
+
Tt,
|
|
2118
2104
|
{
|
|
2119
|
-
className:
|
|
2120
|
-
onClick: (
|
|
2121
|
-
|
|
2105
|
+
className: g.items,
|
|
2106
|
+
onClick: (D) => {
|
|
2107
|
+
D.stopPropagation(), a(m.value), h(!1);
|
|
2122
2108
|
},
|
|
2123
2109
|
children: /* @__PURE__ */ e(
|
|
2124
|
-
|
|
2110
|
+
w,
|
|
2125
2111
|
{
|
|
2126
2112
|
className: n(
|
|
2127
|
-
|
|
2113
|
+
g.item,
|
|
2128
2114
|
c === m.value && "before:bg-dark-10",
|
|
2129
2115
|
c === m.value ? "font-semibold" : "font-regular"
|
|
2130
2116
|
),
|
|
@@ -2137,7 +2123,7 @@ const un = ({
|
|
|
2137
2123
|
}
|
|
2138
2124
|
)
|
|
2139
2125
|
] });
|
|
2140
|
-
},
|
|
2126
|
+
}, ht = {
|
|
2141
2127
|
base: {
|
|
2142
2128
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2143
2129
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2175,7 +2161,7 @@ const un = ({
|
|
|
2175
2161
|
onClick: d,
|
|
2176
2162
|
children: [
|
|
2177
2163
|
/* @__PURE__ */ e(
|
|
2178
|
-
|
|
2164
|
+
Dt,
|
|
2179
2165
|
{
|
|
2180
2166
|
fullName: i,
|
|
2181
2167
|
jobTitle: a,
|
|
@@ -2195,7 +2181,7 @@ const un = ({
|
|
|
2195
2181
|
/* @__PURE__ */ p("div", { className: n(Se.timeWrapper, o == null ? void 0 : o.timeWrapper), children: [
|
|
2196
2182
|
/* @__PURE__ */ e("time", { className: n(Se.time, o == null ? void 0 : o.time), children: c }),
|
|
2197
2183
|
!!r && /* @__PURE__ */ e(
|
|
2198
|
-
|
|
2184
|
+
w,
|
|
2199
2185
|
{
|
|
2200
2186
|
className: n(Se.notification, o == null ? void 0 : o.notification),
|
|
2201
2187
|
"data-testid": "notification",
|
|
@@ -2213,7 +2199,7 @@ const un = ({
|
|
|
2213
2199
|
notification: "flex items-center justify-center bg-primary-30 w-auto px-1 h-4 text-xs text-sidebar-10 rounded-full font-medium",
|
|
2214
2200
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2215
2201
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2216
|
-
}, Wo =
|
|
2202
|
+
}, Wo = Q(
|
|
2217
2203
|
({ classNames: t, disabled: i, item: { icon: a, label: o = "" }, ...r }, c) => /* @__PURE__ */ p(
|
|
2218
2204
|
"button",
|
|
2219
2205
|
{
|
|
@@ -2250,7 +2236,7 @@ const un = ({
|
|
|
2250
2236
|
}
|
|
2251
2237
|
),
|
|
2252
2238
|
o && /* @__PURE__ */ e(
|
|
2253
|
-
|
|
2239
|
+
w,
|
|
2254
2240
|
{
|
|
2255
2241
|
className: n(
|
|
2256
2242
|
fe.base.label,
|
|
@@ -2280,13 +2266,13 @@ const un = ({
|
|
|
2280
2266
|
container: "hover:border-primary-20/[.30]"
|
|
2281
2267
|
}
|
|
2282
2268
|
}, Mo = L.forwardRef(({ textareaProps: t, disabled: i, classNames: a, iconSizes: o, onIconClick: r }, c) => {
|
|
2283
|
-
const d =
|
|
2284
|
-
var
|
|
2285
|
-
|
|
2269
|
+
const d = Qe.base, l = Qe.button, u = (t == null ? void 0 : t.status) === "danger", h = L.useRef(null), f = (x) => {
|
|
2270
|
+
var g;
|
|
2271
|
+
x.key === "Enter" && (x.preventDefault(), (g = h.current) == null || g.click());
|
|
2286
2272
|
};
|
|
2287
|
-
return /* @__PURE__ */ p("div", { className: n(
|
|
2273
|
+
return /* @__PURE__ */ p("div", { className: n(Qe.parent, a == null ? void 0 : a.parent), children: [
|
|
2288
2274
|
u && /* @__PURE__ */ e(se, { className: "fill-danger-10 mb-[5px]" }),
|
|
2289
|
-
/* @__PURE__ */ p("div", { className: n(
|
|
2275
|
+
/* @__PURE__ */ p("div", { className: n(Qe.wrapper, a == null ? void 0 : a.wrapper), children: [
|
|
2290
2276
|
/* @__PURE__ */ e(
|
|
2291
2277
|
Kt,
|
|
2292
2278
|
{
|
|
@@ -2321,7 +2307,7 @@ const un = ({
|
|
|
2321
2307
|
)
|
|
2322
2308
|
] })
|
|
2323
2309
|
] });
|
|
2324
|
-
}),
|
|
2310
|
+
}), Qe = {
|
|
2325
2311
|
parent: "flex flex-col",
|
|
2326
2312
|
wrapper: "relative flex items-center w-full",
|
|
2327
2313
|
base: "overflow-hidden resize-none pe-12 min-h-14 w-full",
|
|
@@ -2342,7 +2328,7 @@ const un = ({
|
|
|
2342
2328
|
hover: "group-hover:text-primary-20",
|
|
2343
2329
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2344
2330
|
}
|
|
2345
|
-
}, ir =
|
|
2331
|
+
}, ir = Q(
|
|
2346
2332
|
({ checked: t, classNames: i, disabled: a, label: o, ...r }, c) => /* @__PURE__ */ p("div", { className: n(we.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
2347
2333
|
/* @__PURE__ */ e(
|
|
2348
2334
|
Vt,
|
|
@@ -2381,7 +2367,7 @@ const On = ({
|
|
|
2381
2367
|
item: { id: o, label: r, icon: c, to: d, subItems: l },
|
|
2382
2368
|
onSubNavClick: u
|
|
2383
2369
|
}) => {
|
|
2384
|
-
const [h] =
|
|
2370
|
+
const [h] = yt();
|
|
2385
2371
|
return /* @__PURE__ */ e($r, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Lr, { value: String(o), children: [
|
|
2386
2372
|
/* @__PURE__ */ p(
|
|
2387
2373
|
zr,
|
|
@@ -2427,7 +2413,7 @@ const On = ({
|
|
|
2427
2413
|
}
|
|
2428
2414
|
)),
|
|
2429
2415
|
a && /* @__PURE__ */ e(
|
|
2430
|
-
|
|
2416
|
+
w,
|
|
2431
2417
|
{
|
|
2432
2418
|
variant: "span",
|
|
2433
2419
|
className: n(
|
|
@@ -2441,13 +2427,13 @@ const On = ({
|
|
|
2441
2427
|
}
|
|
2442
2428
|
),
|
|
2443
2429
|
a && /* @__PURE__ */ e(Hr, { className: "flex flex-col gap-[2.5px] items-start", children: l == null ? void 0 : l.map((f) => /* @__PURE__ */ e(
|
|
2444
|
-
|
|
2430
|
+
kt,
|
|
2445
2431
|
{
|
|
2446
2432
|
to: `${d}/${f == null ? void 0 : f.to}?${h.toString()}`,
|
|
2447
2433
|
onClick: u,
|
|
2448
|
-
className: ({ isActive:
|
|
2434
|
+
className: ({ isActive: x }) => n(
|
|
2449
2435
|
'flex items-center w-full h-[51px] text-sm text-sidebar-10 font-mono font-medium leading-none hover:bg-sidebar-40 pl-[26px] py-3.5 rounded-[10px] before:content-[""] before:block before:bg-white before:w-2 before:h-2 before:rounded-full before:mr-4',
|
|
2450
|
-
|
|
2436
|
+
x && "text-primary-10 bg-sidebar-40 before:bg-primary-10"
|
|
2451
2437
|
),
|
|
2452
2438
|
children: f.label
|
|
2453
2439
|
},
|
|
@@ -2461,7 +2447,7 @@ const On = ({
|
|
|
2461
2447
|
}) => {
|
|
2462
2448
|
const [o, r] = L.useState(
|
|
2463
2449
|
null
|
|
2464
|
-
), c =
|
|
2450
|
+
), c = Xe.root, d = Xe.header, l = Xe.body, u = Xe.logo;
|
|
2465
2451
|
return /* @__PURE__ */ p(
|
|
2466
2452
|
"aside",
|
|
2467
2453
|
{
|
|
@@ -2474,7 +2460,7 @@ const On = ({
|
|
|
2474
2460
|
{
|
|
2475
2461
|
className: n(d.base, t && d.expanded),
|
|
2476
2462
|
children: [
|
|
2477
|
-
/* @__PURE__ */ e(
|
|
2463
|
+
/* @__PURE__ */ e(kt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Ir, {}) : /* @__PURE__ */ e(en, {}) }),
|
|
2478
2464
|
/* @__PURE__ */ e(
|
|
2479
2465
|
M,
|
|
2480
2466
|
{
|
|
@@ -2522,10 +2508,10 @@ const On = ({
|
|
|
2522
2508
|
]
|
|
2523
2509
|
}
|
|
2524
2510
|
);
|
|
2525
|
-
},
|
|
2511
|
+
}, Xe = {
|
|
2526
2512
|
root: {
|
|
2527
|
-
base: "w-16 h-screen
|
|
2528
|
-
expanded: "w-[257px] overflow-x-hidden"
|
|
2513
|
+
base: "w-16 h-screen bg-sidebar-50 transition-[width] duration-500 ease-in-out",
|
|
2514
|
+
expanded: "w-[257px] overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]"
|
|
2529
2515
|
},
|
|
2530
2516
|
header: {
|
|
2531
2517
|
base: "flex items-center justify-between px-2.5 py-[18px] border-b border-sidebar-10/[.11] transition-all duration-500",
|
|
@@ -2543,7 +2529,7 @@ const On = ({
|
|
|
2543
2529
|
classNames: o,
|
|
2544
2530
|
isError: r = !1
|
|
2545
2531
|
}) => {
|
|
2546
|
-
const [c, d] = A(!1), l =
|
|
2532
|
+
const [c, d] = A(!1), l = ie(null), u = (h) => {
|
|
2547
2533
|
a(h), d(!1);
|
|
2548
2534
|
};
|
|
2549
2535
|
return /* @__PURE__ */ e(
|
|
@@ -2557,7 +2543,7 @@ const On = ({
|
|
|
2557
2543
|
M,
|
|
2558
2544
|
{
|
|
2559
2545
|
variant: "text",
|
|
2560
|
-
icon:
|
|
2546
|
+
icon: Ke,
|
|
2561
2547
|
iconPosition: "right",
|
|
2562
2548
|
onClick: () => d(!c),
|
|
2563
2549
|
"data-testid": "language-button",
|
|
@@ -2573,7 +2559,7 @@ const On = ({
|
|
|
2573
2559
|
children: i.label
|
|
2574
2560
|
}
|
|
2575
2561
|
) }),
|
|
2576
|
-
r && /* @__PURE__ */ e(
|
|
2562
|
+
r && /* @__PURE__ */ e(w, { className: ut.error, children: "Введите все языки" }),
|
|
2577
2563
|
/* @__PURE__ */ e(
|
|
2578
2564
|
le,
|
|
2579
2565
|
{
|
|
@@ -2581,8 +2567,8 @@ const On = ({
|
|
|
2581
2567
|
align: "center",
|
|
2582
2568
|
sideOffset: 4,
|
|
2583
2569
|
side: "bottom",
|
|
2584
|
-
className: n(
|
|
2585
|
-
children: /* @__PURE__ */ e("div", { className: n(
|
|
2570
|
+
className: n(ut.root, o == null ? void 0 : o.content),
|
|
2571
|
+
children: /* @__PURE__ */ e("div", { className: n(ut.optionsWrapper), children: t.map((h) => {
|
|
2586
2572
|
const f = `radio-${h.value}`;
|
|
2587
2573
|
return /* @__PURE__ */ e(
|
|
2588
2574
|
ir,
|
|
@@ -2600,7 +2586,7 @@ const On = ({
|
|
|
2600
2586
|
] })
|
|
2601
2587
|
}
|
|
2602
2588
|
);
|
|
2603
|
-
},
|
|
2589
|
+
}, ut = {
|
|
2604
2590
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2605
2591
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2606
2592
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
@@ -2640,7 +2626,7 @@ const Fo = ({
|
|
|
2640
2626
|
totalItems: c = 10,
|
|
2641
2627
|
className: d
|
|
2642
2628
|
}) => {
|
|
2643
|
-
const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c),
|
|
2629
|
+
const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), x = Fn(t, a);
|
|
2644
2630
|
return /* @__PURE__ */ p("div", { className: n(F.wrapper, d), children: [
|
|
2645
2631
|
/* @__PURE__ */ p("div", { className: n(F.countWrapper.base), children: [
|
|
2646
2632
|
/* @__PURE__ */ e("p", { className: n(F.countWrapper.text), children: "Отображено: " }),
|
|
@@ -2680,24 +2666,24 @@ const Fo = ({
|
|
|
2680
2666
|
)
|
|
2681
2667
|
}
|
|
2682
2668
|
),
|
|
2683
|
-
/* @__PURE__ */ e("div", { className: n(F.nav.pageBtnWrapper), children:
|
|
2684
|
-
(
|
|
2669
|
+
/* @__PURE__ */ e("div", { className: n(F.nav.pageBtnWrapper), children: x.map(
|
|
2670
|
+
(g, b) => g === "..." ? /* @__PURE__ */ e("span", { className: n(F.pageButton.base), children: "..." }, `dots-${b}`) : /* @__PURE__ */ e(
|
|
2685
2671
|
M,
|
|
2686
2672
|
{
|
|
2687
|
-
onClick: () => i == null ? void 0 : i(
|
|
2688
|
-
"aria-current":
|
|
2673
|
+
onClick: () => i == null ? void 0 : i(g),
|
|
2674
|
+
"aria-current": g === t ? "page" : void 0,
|
|
2689
2675
|
classNames: {
|
|
2690
2676
|
base: n(
|
|
2691
2677
|
F.pageButton.base,
|
|
2692
2678
|
F.pageButton.hover,
|
|
2693
2679
|
F.pageButton.focus,
|
|
2694
2680
|
F.pageButton.pressed,
|
|
2695
|
-
|
|
2681
|
+
g === t && F.pageButton.active
|
|
2696
2682
|
)
|
|
2697
2683
|
},
|
|
2698
|
-
children:
|
|
2684
|
+
children: g
|
|
2699
2685
|
},
|
|
2700
|
-
`page-${
|
|
2686
|
+
`page-${g}`
|
|
2701
2687
|
)
|
|
2702
2688
|
) }),
|
|
2703
2689
|
/* @__PURE__ */ e(
|
|
@@ -2794,17 +2780,17 @@ const Fo = ({
|
|
|
2794
2780
|
const f = Ht(
|
|
2795
2781
|
() => Wt[d] || Wt.DEFAULT,
|
|
2796
2782
|
[d]
|
|
2797
|
-
),
|
|
2798
|
-
() =>
|
|
2783
|
+
), x = or(f), [g, b] = A(
|
|
2784
|
+
() => lt(String(t), f)
|
|
2799
2785
|
);
|
|
2800
2786
|
ge(() => {
|
|
2801
|
-
|
|
2787
|
+
b(lt(String(t), f));
|
|
2802
2788
|
}, [t, f]);
|
|
2803
|
-
const
|
|
2804
|
-
const C =
|
|
2805
|
-
|
|
2806
|
-
},
|
|
2807
|
-
return /* @__PURE__ */ p("div", { className: n(
|
|
2789
|
+
const s = (v) => {
|
|
2790
|
+
const C = v.target.value.replace(/\D/g, ""), W = lt(C, f);
|
|
2791
|
+
b(W), l == null || l(C);
|
|
2792
|
+
}, k = ye.parent, m = ye.base, D = ye.hover, S = ye.focus, B = ye.disabled, y = c && ye.variants[c];
|
|
2793
|
+
return /* @__PURE__ */ p("div", { className: n(k, u == null ? void 0 : u.parent), children: [
|
|
2808
2794
|
/* @__PURE__ */ p("div", { className: ye.title, children: [
|
|
2809
2795
|
!!a && /* @__PURE__ */ e(
|
|
2810
2796
|
ee,
|
|
@@ -2820,19 +2806,19 @@ const Fo = ({
|
|
|
2820
2806
|
/* @__PURE__ */ e(
|
|
2821
2807
|
"input",
|
|
2822
2808
|
{
|
|
2823
|
-
ref:
|
|
2809
|
+
ref: x,
|
|
2824
2810
|
id: i,
|
|
2825
|
-
onChange:
|
|
2826
|
-
value:
|
|
2811
|
+
onChange: s,
|
|
2812
|
+
value: g,
|
|
2827
2813
|
placeholder: d === "UZ" ? "+998 (__) ___ __ __" : "Введите телефон номер",
|
|
2828
2814
|
disabled: o,
|
|
2829
2815
|
autoFocus: r,
|
|
2830
2816
|
className: n(
|
|
2831
2817
|
m,
|
|
2832
|
-
!o &&
|
|
2818
|
+
!o && D,
|
|
2833
2819
|
!o && S,
|
|
2834
2820
|
!o && r && S,
|
|
2835
|
-
o &&
|
|
2821
|
+
o && B,
|
|
2836
2822
|
c === "danger" && y,
|
|
2837
2823
|
u == null ? void 0 : u.target
|
|
2838
2824
|
),
|
|
@@ -2863,31 +2849,31 @@ const Fo = ({
|
|
|
2863
2849
|
className: u,
|
|
2864
2850
|
onClick: h,
|
|
2865
2851
|
...f
|
|
2866
|
-
},
|
|
2867
|
-
const [
|
|
2868
|
-
|
|
2869
|
-
},
|
|
2852
|
+
}, x) => {
|
|
2853
|
+
const [g, b] = A(o || ""), s = (v) => {
|
|
2854
|
+
b(v), r == null || r(t, v);
|
|
2855
|
+
}, k = f.disabled || !1, m = Re.base, D = Re.pressed, S = Re.hover, B = Re.disabled, y = Re.content;
|
|
2870
2856
|
return /* @__PURE__ */ p(
|
|
2871
2857
|
Rn,
|
|
2872
2858
|
{
|
|
2873
|
-
ref:
|
|
2859
|
+
ref: x,
|
|
2874
2860
|
onClick: () => h == null ? void 0 : h(t),
|
|
2875
2861
|
className: n(
|
|
2876
2862
|
m,
|
|
2877
|
-
|
|
2878
|
-
!
|
|
2879
|
-
|
|
2863
|
+
D,
|
|
2864
|
+
!k && S,
|
|
2865
|
+
k && B,
|
|
2880
2866
|
u
|
|
2881
2867
|
),
|
|
2882
2868
|
...f,
|
|
2883
2869
|
children: [
|
|
2884
2870
|
/* @__PURE__ */ p("div", { className: y.header, "data-testid": "plate", children: [
|
|
2885
2871
|
/* @__PURE__ */ e(
|
|
2886
|
-
|
|
2872
|
+
w,
|
|
2887
2873
|
{
|
|
2888
2874
|
className: n(
|
|
2889
2875
|
y.title,
|
|
2890
|
-
|
|
2876
|
+
k && y.disabled
|
|
2891
2877
|
),
|
|
2892
2878
|
children: i
|
|
2893
2879
|
}
|
|
@@ -2897,13 +2883,13 @@ const Fo = ({
|
|
|
2897
2883
|
ar,
|
|
2898
2884
|
{
|
|
2899
2885
|
options: d,
|
|
2900
|
-
value:
|
|
2901
|
-
onChange:
|
|
2902
|
-
disabled:
|
|
2886
|
+
value: g,
|
|
2887
|
+
onChange: s,
|
|
2888
|
+
disabled: k
|
|
2903
2889
|
}
|
|
2904
2890
|
),
|
|
2905
2891
|
!!l && /* @__PURE__ */ p(ae, { children: [
|
|
2906
|
-
/* @__PURE__ */ e(de, { onClick: (
|
|
2892
|
+
/* @__PURE__ */ e(de, { onClick: (v) => v.stopPropagation(), asChild: !0, children: /* @__PURE__ */ e(
|
|
2907
2893
|
M,
|
|
2908
2894
|
{
|
|
2909
2895
|
variant: "text",
|
|
@@ -2926,32 +2912,32 @@ const Fo = ({
|
|
|
2926
2912
|
] })
|
|
2927
2913
|
] }),
|
|
2928
2914
|
/* @__PURE__ */ e("div", { className: y.flatType, children: !!c && /* @__PURE__ */ e(He, { text: c, variant: "warning" }) }),
|
|
2929
|
-
/* @__PURE__ */ e("div", { className: y.flexWrapper, children: a.map((
|
|
2930
|
-
|
|
2915
|
+
/* @__PURE__ */ e("div", { className: y.flexWrapper, children: a.map((v) => /* @__PURE__ */ p(w, { className: y.typography, children: [
|
|
2916
|
+
v.label,
|
|
2931
2917
|
":",
|
|
2932
|
-
|
|
2933
|
-
|
|
2918
|
+
v.href ? /* @__PURE__ */ e(
|
|
2919
|
+
Ee,
|
|
2934
2920
|
{
|
|
2935
2921
|
weight: "font-semibold",
|
|
2936
2922
|
isIconVisible: !1,
|
|
2937
|
-
href:
|
|
2923
|
+
href: v.href,
|
|
2938
2924
|
target: "_blank",
|
|
2939
2925
|
classNames: {
|
|
2940
2926
|
root: y.link
|
|
2941
2927
|
},
|
|
2942
|
-
children: String(
|
|
2928
|
+
children: String(v.value).length > 15 ? `${String(v.value).slice(0, 15)}...` : v.value
|
|
2943
2929
|
}
|
|
2944
2930
|
) : /* @__PURE__ */ e(
|
|
2945
2931
|
"span",
|
|
2946
2932
|
{
|
|
2947
2933
|
className: n(
|
|
2948
2934
|
y.amount,
|
|
2949
|
-
|
|
2935
|
+
k && y.disabled
|
|
2950
2936
|
),
|
|
2951
|
-
children:
|
|
2937
|
+
children: v.value
|
|
2952
2938
|
}
|
|
2953
2939
|
)
|
|
2954
|
-
] },
|
|
2940
|
+
] }, v.value)) })
|
|
2955
2941
|
]
|
|
2956
2942
|
}
|
|
2957
2943
|
);
|
|
@@ -2989,7 +2975,7 @@ const Fo = ({
|
|
|
2989
2975
|
disabled: d.disabled,
|
|
2990
2976
|
className: n(ke.trigger, o == null ? void 0 : o.trigger),
|
|
2991
2977
|
children: [
|
|
2992
|
-
/* @__PURE__ */ p(
|
|
2978
|
+
/* @__PURE__ */ p(w, { variant: "span", className: ke.label, children: [
|
|
2993
2979
|
(d == null ? void 0 : d.icon) && /* @__PURE__ */ e(
|
|
2994
2980
|
d.icon,
|
|
2995
2981
|
{
|
|
@@ -3005,7 +2991,7 @@ const Fo = ({
|
|
|
3005
2991
|
" ",
|
|
3006
2992
|
d.label
|
|
3007
2993
|
] }),
|
|
3008
|
-
d.badge && /* @__PURE__ */ e(
|
|
2994
|
+
d.badge && /* @__PURE__ */ e(w, { variant: "span", className: ke.badge, children: d.badge })
|
|
3009
2995
|
]
|
|
3010
2996
|
},
|
|
3011
2997
|
d.value
|
|
@@ -3022,25 +3008,25 @@ const Fo = ({
|
|
|
3022
3008
|
iconInactive: "fill-dark-40/[.50]"
|
|
3023
3009
|
}, zo = L.forwardRef(
|
|
3024
3010
|
({ tabs: t = [], activeTab: i, onTabChange: a, onEditTabContent: o, classNames: r }, c) => {
|
|
3025
|
-
const d = Be.base, l = Be.list, u = Be.trigger, h = Be.content, f = Be.overlayBorder,
|
|
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(
|
|
3026
3012
|
"ul",
|
|
3027
3013
|
{
|
|
3028
3014
|
role: "listbox",
|
|
3029
|
-
className: n(
|
|
3030
|
-
children:
|
|
3015
|
+
className: n(x.base, r == null ? void 0 : r.datalist),
|
|
3016
|
+
children: b.map((s, k) => /* @__PURE__ */ p(
|
|
3031
3017
|
"li",
|
|
3032
3018
|
{
|
|
3033
|
-
className: n(
|
|
3019
|
+
className: n(x.item, r == null ? void 0 : r.dataItem),
|
|
3034
3020
|
children: [
|
|
3035
3021
|
/* @__PURE__ */ p("span", { className: "text-dark-40/50", children: [
|
|
3036
|
-
|
|
3022
|
+
s.label,
|
|
3037
3023
|
":"
|
|
3038
3024
|
] }),
|
|
3039
3025
|
" ",
|
|
3040
|
-
|
|
3026
|
+
s.value
|
|
3041
3027
|
]
|
|
3042
3028
|
},
|
|
3043
|
-
|
|
3029
|
+
k
|
|
3044
3030
|
))
|
|
3045
3031
|
}
|
|
3046
3032
|
);
|
|
@@ -3052,24 +3038,24 @@ const Fo = ({
|
|
|
3052
3038
|
onValueChange: a,
|
|
3053
3039
|
className: n(d, r == null ? void 0 : r.base),
|
|
3054
3040
|
children: [
|
|
3055
|
-
/* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((
|
|
3041
|
+
/* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((b, s, k) => /* @__PURE__ */ p(
|
|
3056
3042
|
Jt,
|
|
3057
3043
|
{
|
|
3058
|
-
value:
|
|
3059
|
-
disabled:
|
|
3044
|
+
value: b.value,
|
|
3045
|
+
disabled: b.disabled,
|
|
3060
3046
|
className: n(
|
|
3061
3047
|
"curved-tab",
|
|
3062
|
-
|
|
3063
|
-
|
|
3048
|
+
s === 0 && "first-tab",
|
|
3049
|
+
s === k.length - 1 && "last-tab",
|
|
3064
3050
|
u.base,
|
|
3065
3051
|
u.active,
|
|
3066
3052
|
u.hover,
|
|
3067
|
-
|
|
3053
|
+
b.disabled && u.disabled,
|
|
3068
3054
|
r == null ? void 0 : r.trigger
|
|
3069
3055
|
),
|
|
3070
3056
|
children: [
|
|
3071
|
-
|
|
3072
|
-
i ===
|
|
3057
|
+
s + 1,
|
|
3058
|
+
i === b.value && /* @__PURE__ */ e(
|
|
3073
3059
|
"div",
|
|
3074
3060
|
{
|
|
3075
3061
|
className: n(f, r == null ? void 0 : r.overlayBorder)
|
|
@@ -3077,41 +3063,41 @@ const Fo = ({
|
|
|
3077
3063
|
)
|
|
3078
3064
|
]
|
|
3079
3065
|
},
|
|
3080
|
-
|
|
3066
|
+
b.value
|
|
3081
3067
|
)) }),
|
|
3082
|
-
t.map((
|
|
3068
|
+
t.map((b, s, k) => /* @__PURE__ */ p(
|
|
3083
3069
|
Ur,
|
|
3084
3070
|
{
|
|
3085
|
-
value:
|
|
3071
|
+
value: b.value,
|
|
3086
3072
|
className: n(
|
|
3087
3073
|
h.base,
|
|
3088
|
-
|
|
3089
|
-
|
|
3074
|
+
s === 0 && "rounded-ss-none",
|
|
3075
|
+
s === k.length - 1 && "rounded-se-none",
|
|
3090
3076
|
r == null ? void 0 : r.content
|
|
3091
3077
|
),
|
|
3092
3078
|
children: [
|
|
3093
3079
|
/* @__PURE__ */ p("div", { className: h.title.wrapper, children: [
|
|
3094
|
-
/* @__PURE__ */ p(
|
|
3080
|
+
/* @__PURE__ */ p(w, { className: h.title.text, children: [
|
|
3095
3081
|
"Квартира – ",
|
|
3096
|
-
|
|
3082
|
+
s + 1
|
|
3097
3083
|
] }),
|
|
3098
3084
|
/* @__PURE__ */ e(
|
|
3099
3085
|
"button",
|
|
3100
3086
|
{
|
|
3101
3087
|
className: "hover:cursor-pointer",
|
|
3102
|
-
onClick: () => o(
|
|
3088
|
+
onClick: () => o(b),
|
|
3103
3089
|
children: /* @__PURE__ */ e(vr, { className: "fill-sidebar-10" })
|
|
3104
3090
|
}
|
|
3105
3091
|
)
|
|
3106
3092
|
] }),
|
|
3107
|
-
/* @__PURE__ */ p("div", { className:
|
|
3108
|
-
/* @__PURE__ */ e(
|
|
3109
|
-
/* @__PURE__ */ e(
|
|
3093
|
+
/* @__PURE__ */ p("div", { className: x.title.wrapper, children: [
|
|
3094
|
+
/* @__PURE__ */ e(w, { className: x.title.text, children: "Общая площадь:" }),
|
|
3095
|
+
/* @__PURE__ */ e(g, { list: b.content.main })
|
|
3110
3096
|
] }),
|
|
3111
|
-
/* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(
|
|
3097
|
+
/* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(g, { list: b.content.secondary }) })
|
|
3112
3098
|
]
|
|
3113
3099
|
},
|
|
3114
|
-
|
|
3100
|
+
s
|
|
3115
3101
|
))
|
|
3116
3102
|
]
|
|
3117
3103
|
}
|
|
@@ -3188,7 +3174,7 @@ const Fo = ({
|
|
|
3188
3174
|
active: "active:bg-transparent w-4 h-4 p-0 bg-transparent focus:bg-transparent hover:bg-transparent shadow-none hover:shadow-none active:shadow-none focus:shadow-none ring-0 focus:outline-none border-none"
|
|
3189
3175
|
},
|
|
3190
3176
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3191
|
-
}, Yo =
|
|
3177
|
+
}, Yo = Q(
|
|
3192
3178
|
({
|
|
3193
3179
|
blockName: t,
|
|
3194
3180
|
className: i,
|
|
@@ -3220,7 +3206,7 @@ const Fo = ({
|
|
|
3220
3206
|
children: /* @__PURE__ */ e(Fr, {})
|
|
3221
3207
|
}
|
|
3222
3208
|
),
|
|
3223
|
-
/* @__PURE__ */ e(
|
|
3209
|
+
/* @__PURE__ */ e(w, { className: je.wrapperBlockName, children: t || "-" }),
|
|
3224
3210
|
/* @__PURE__ */ e(
|
|
3225
3211
|
M,
|
|
3226
3212
|
{
|
|
@@ -3263,56 +3249,56 @@ const Fo = ({
|
|
|
3263
3249
|
status: r,
|
|
3264
3250
|
classNames: c
|
|
3265
3251
|
}) => {
|
|
3266
|
-
const d =
|
|
3267
|
-
if (!
|
|
3268
|
-
if (
|
|
3269
|
-
const I =
|
|
3270
|
-
|
|
3271
|
-
|
|
3252
|
+
const d = ie(null), l = (T) => {
|
|
3253
|
+
if (!T) return;
|
|
3254
|
+
if (T instanceof Date) return T;
|
|
3255
|
+
const I = vt(
|
|
3256
|
+
T,
|
|
3257
|
+
Bt,
|
|
3272
3258
|
/* @__PURE__ */ new Date()
|
|
3273
3259
|
);
|
|
3274
3260
|
if (We(I)) return I;
|
|
3275
|
-
const z = on(
|
|
3261
|
+
const z = on(T);
|
|
3276
3262
|
return We(z) ? z : void 0;
|
|
3277
3263
|
}, [u, h] = A(
|
|
3278
3264
|
l(t)
|
|
3279
|
-
), [f,
|
|
3265
|
+
), [f, x] = A(
|
|
3280
3266
|
u == null ? void 0 : u.getDate()
|
|
3281
|
-
), [
|
|
3267
|
+
), [g, b] = A(
|
|
3282
3268
|
u == null ? void 0 : u.getMonth()
|
|
3283
|
-
), [
|
|
3269
|
+
), [s, k] = A(
|
|
3284
3270
|
u == null ? void 0 : u.getFullYear()
|
|
3285
3271
|
);
|
|
3286
3272
|
ge(() => {
|
|
3287
|
-
const
|
|
3288
|
-
h(
|
|
3273
|
+
const T = l(t);
|
|
3274
|
+
h(T), x(T == null ? void 0 : T.getDate()), b(T == null ? void 0 : T.getMonth()), k(T == null ? void 0 : T.getFullYear());
|
|
3289
3275
|
}, [t]);
|
|
3290
|
-
const m = /* @__PURE__ */ new Date(),
|
|
3291
|
-
const
|
|
3292
|
-
return Array.from({ length:
|
|
3276
|
+
const m = /* @__PURE__ */ new Date(), D = s ?? m.getFullYear(), S = g ?? m.getMonth(), B = Ht(() => {
|
|
3277
|
+
const T = new Date(D, S + 1, 0).getDate();
|
|
3278
|
+
return Array.from({ length: T }, (I, z) => {
|
|
3293
3279
|
const G = z + 1;
|
|
3294
3280
|
return {
|
|
3295
3281
|
label: G.toString().padStart(2, "0"),
|
|
3296
3282
|
value: G.toString()
|
|
3297
3283
|
};
|
|
3298
3284
|
});
|
|
3299
|
-
}, [S,
|
|
3300
|
-
if (
|
|
3301
|
-
const G = new Date(z, I,
|
|
3285
|
+
}, [S, D]), y = (T, I, z) => {
|
|
3286
|
+
if (T !== void 0 && I !== void 0 && z !== void 0) {
|
|
3287
|
+
const G = new Date(z, I, T);
|
|
3302
3288
|
h(G), i(
|
|
3303
|
-
wr(G,
|
|
3289
|
+
wr(G, Bt)
|
|
3304
3290
|
);
|
|
3305
3291
|
} else
|
|
3306
3292
|
h(void 0), i(void 0);
|
|
3307
|
-
},
|
|
3308
|
-
const I = parseInt(
|
|
3309
|
-
|
|
3310
|
-
}, C = (
|
|
3311
|
-
const I = parseInt(
|
|
3312
|
-
|
|
3313
|
-
}, W = (
|
|
3314
|
-
const I = parseInt(
|
|
3315
|
-
|
|
3293
|
+
}, v = (T) => {
|
|
3294
|
+
const I = parseInt(T);
|
|
3295
|
+
b(I), y(f, I, s);
|
|
3296
|
+
}, C = (T) => {
|
|
3297
|
+
const I = parseInt(T);
|
|
3298
|
+
k(I), y(f, g, I);
|
|
3299
|
+
}, W = (T) => {
|
|
3300
|
+
const I = parseInt(T);
|
|
3301
|
+
x(I), y(I, g, s);
|
|
3316
3302
|
};
|
|
3317
3303
|
return /* @__PURE__ */ p("div", { ref: d, className: Ot.root, children: [
|
|
3318
3304
|
!!o && /* @__PURE__ */ e(ee, { className: n(c == null ? void 0 : c.label), children: o }),
|
|
@@ -3320,7 +3306,7 @@ const Fo = ({
|
|
|
3320
3306
|
/* @__PURE__ */ e(
|
|
3321
3307
|
Te,
|
|
3322
3308
|
{
|
|
3323
|
-
options:
|
|
3309
|
+
options: B,
|
|
3324
3310
|
classNames: {
|
|
3325
3311
|
trigger: n("w-full h-11 bg-gray-50", c == null ? void 0 : c.selectTrigger),
|
|
3326
3312
|
selected: n("text-sm", c == null ? void 0 : c.selectSelected)
|
|
@@ -3335,8 +3321,8 @@ const Fo = ({
|
|
|
3335
3321
|
/* @__PURE__ */ e(
|
|
3336
3322
|
Te,
|
|
3337
3323
|
{
|
|
3338
|
-
options: Ln.map((
|
|
3339
|
-
label:
|
|
3324
|
+
options: Ln.map((T, I) => ({
|
|
3325
|
+
label: T,
|
|
3340
3326
|
value: I.toString()
|
|
3341
3327
|
})),
|
|
3342
3328
|
classNames: {
|
|
@@ -3344,8 +3330,8 @@ const Fo = ({
|
|
|
3344
3330
|
selected: n("text-sm", c == null ? void 0 : c.selectSelected)
|
|
3345
3331
|
},
|
|
3346
3332
|
disabled: a,
|
|
3347
|
-
onChange:
|
|
3348
|
-
value:
|
|
3333
|
+
onChange: v,
|
|
3334
|
+
value: g !== void 0 ? String(g) : "",
|
|
3349
3335
|
placeholder: "Месяц",
|
|
3350
3336
|
status: r === "danger" ? "danger" : void 0
|
|
3351
3337
|
}
|
|
@@ -3360,7 +3346,7 @@ const Fo = ({
|
|
|
3360
3346
|
},
|
|
3361
3347
|
disabled: a,
|
|
3362
3348
|
onChange: C,
|
|
3363
|
-
value:
|
|
3349
|
+
value: s !== void 0 ? String(s) : "",
|
|
3364
3350
|
autoFocusValue: String(m.getFullYear()),
|
|
3365
3351
|
placeholder: "Год",
|
|
3366
3352
|
status: r === "danger" ? "danger" : void 0
|
|
@@ -3380,9 +3366,9 @@ const Fo = ({
|
|
|
3380
3366
|
item: { icon: o, label: r = "", to: c },
|
|
3381
3367
|
classNames: d
|
|
3382
3368
|
}) => {
|
|
3383
|
-
const [l] =
|
|
3369
|
+
const [l] = yt(), u = ft.base;
|
|
3384
3370
|
return /* @__PURE__ */ e(
|
|
3385
|
-
|
|
3371
|
+
kt,
|
|
3386
3372
|
{
|
|
3387
3373
|
tabIndex: 1,
|
|
3388
3374
|
role: "link",
|
|
@@ -3400,7 +3386,7 @@ const Fo = ({
|
|
|
3400
3386
|
},
|
|
3401
3387
|
d == null ? void 0 : d.container
|
|
3402
3388
|
),
|
|
3403
|
-
children: ({ isActive: h }) => /* @__PURE__ */ p(
|
|
3389
|
+
children: ({ isActive: h }) => /* @__PURE__ */ p(et, { children: [
|
|
3404
3390
|
/* @__PURE__ */ e("div", { className: n("size-5", d == null ? void 0 : d.iconWrapper), children: !!o && /* @__PURE__ */ e(
|
|
3405
3391
|
o,
|
|
3406
3392
|
{
|
|
@@ -3422,14 +3408,14 @@ const Fo = ({
|
|
|
3422
3408
|
className: n(u.labelWrapper, d == null ? void 0 : d.labelWrapper),
|
|
3423
3409
|
children: [
|
|
3424
3410
|
!!r && i && /* @__PURE__ */ e(
|
|
3425
|
-
|
|
3411
|
+
w,
|
|
3426
3412
|
{
|
|
3427
3413
|
className: n(
|
|
3428
3414
|
u.label,
|
|
3429
3415
|
{
|
|
3430
3416
|
"text-primary-10": h,
|
|
3431
3417
|
"text-sidebar/[.15]": a,
|
|
3432
|
-
[
|
|
3418
|
+
[ft.expanded.label]: !i
|
|
3433
3419
|
},
|
|
3434
3420
|
d == null ? void 0 : d.label
|
|
3435
3421
|
),
|
|
@@ -3437,12 +3423,12 @@ const Fo = ({
|
|
|
3437
3423
|
}
|
|
3438
3424
|
),
|
|
3439
3425
|
!!t && /* @__PURE__ */ e(
|
|
3440
|
-
|
|
3426
|
+
w,
|
|
3441
3427
|
{
|
|
3442
3428
|
variant: "span",
|
|
3443
3429
|
className: n(
|
|
3444
3430
|
u.badge,
|
|
3445
|
-
!i &&
|
|
3431
|
+
!i && ft.expanded.badge,
|
|
3446
3432
|
d == null ? void 0 : d.badge
|
|
3447
3433
|
),
|
|
3448
3434
|
children: t
|
|
@@ -3454,7 +3440,7 @@ const Fo = ({
|
|
|
3454
3440
|
] })
|
|
3455
3441
|
}
|
|
3456
3442
|
);
|
|
3457
|
-
},
|
|
3443
|
+
}, ft = {
|
|
3458
3444
|
base: {
|
|
3459
3445
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3460
3446
|
labelWrapper: "relative inline-block",
|
|
@@ -3478,7 +3464,7 @@ const Fo = ({
|
|
|
3478
3464
|
i && /* @__PURE__ */ p("div", { className: n(V.header, r == null ? void 0 : r.header), children: [
|
|
3479
3465
|
/* @__PURE__ */ e(rn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3480
3466
|
/* @__PURE__ */ e(
|
|
3481
|
-
|
|
3467
|
+
tt,
|
|
3482
3468
|
{
|
|
3483
3469
|
variant: "h2",
|
|
3484
3470
|
className: V.headerTitle,
|
|
@@ -3512,7 +3498,7 @@ const Fo = ({
|
|
|
3512
3498
|
) }),
|
|
3513
3499
|
/* @__PURE__ */ p("div", { className: n(V.content, r == null ? void 0 : r.content), children: [
|
|
3514
3500
|
/* @__PURE__ */ e(
|
|
3515
|
-
|
|
3501
|
+
tt,
|
|
3516
3502
|
{
|
|
3517
3503
|
variant: "h3",
|
|
3518
3504
|
"data-testid": `step-${d}-title`,
|
|
@@ -3524,7 +3510,7 @@ const Fo = ({
|
|
|
3524
3510
|
}
|
|
3525
3511
|
),
|
|
3526
3512
|
/* @__PURE__ */ e(
|
|
3527
|
-
|
|
3513
|
+
w,
|
|
3528
3514
|
{
|
|
3529
3515
|
"data-testid": `step-${d}-subtitle`,
|
|
3530
3516
|
className: n(
|
|
@@ -3535,7 +3521,7 @@ const Fo = ({
|
|
|
3535
3521
|
}
|
|
3536
3522
|
),
|
|
3537
3523
|
/* @__PURE__ */ e(
|
|
3538
|
-
|
|
3524
|
+
w,
|
|
3539
3525
|
{
|
|
3540
3526
|
"data-testid": `step-${d}-date`,
|
|
3541
3527
|
className: n(
|
|
@@ -3572,7 +3558,7 @@ const Fo = ({
|
|
|
3572
3558
|
subtitleCompleted: "text-xs mb-1 text-dark-30/[.50]",
|
|
3573
3559
|
date: "text-[10px] mb-1 text-dark-40/[.50]",
|
|
3574
3560
|
dateCompleted: "text-[10px] mb-1 text-dark-30/[.50]"
|
|
3575
|
-
},
|
|
3561
|
+
}, Ge = ({
|
|
3576
3562
|
icon: t,
|
|
3577
3563
|
title: i,
|
|
3578
3564
|
classNames: a,
|
|
@@ -3587,14 +3573,14 @@ const Fo = ({
|
|
|
3587
3573
|
),
|
|
3588
3574
|
children: [
|
|
3589
3575
|
!!t && t,
|
|
3590
|
-
/* @__PURE__ */ e(
|
|
3576
|
+
/* @__PURE__ */ e(w, { className: n(At.headerTitle, a == null ? void 0 : a.title), children: i })
|
|
3591
3577
|
]
|
|
3592
3578
|
}
|
|
3593
3579
|
), At = {
|
|
3594
3580
|
wrapper: "flex items-center gap-2 w-full",
|
|
3595
3581
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3596
3582
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3597
|
-
},
|
|
3583
|
+
}, St = Q(
|
|
3598
3584
|
({
|
|
3599
3585
|
id: t,
|
|
3600
3586
|
label: i,
|
|
@@ -3607,28 +3593,28 @@ const Fo = ({
|
|
|
3607
3593
|
onIconClick: u,
|
|
3608
3594
|
inputProps: h,
|
|
3609
3595
|
...f
|
|
3610
|
-
},
|
|
3596
|
+
}, x) => {
|
|
3611
3597
|
var S;
|
|
3612
|
-
const
|
|
3613
|
-
return /* @__PURE__ */ p("div", { className: n(
|
|
3598
|
+
const g = Je.parent, b = Je.base, s = Je.icon, k = a || (h == null ? void 0 : h.disabled), m = !!(o || d), D = (h == null ? void 0 : h.status) === "danger";
|
|
3599
|
+
return /* @__PURE__ */ p("div", { className: n(g, l == null ? void 0 : l.parent), ...f, children: [
|
|
3614
3600
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
3615
3601
|
!!i && /* @__PURE__ */ e(
|
|
3616
3602
|
ee,
|
|
3617
3603
|
{
|
|
3618
3604
|
htmlFor: t,
|
|
3619
3605
|
className: n(l == null ? void 0 : l.label),
|
|
3620
|
-
disabled:
|
|
3606
|
+
disabled: k,
|
|
3621
3607
|
children: i
|
|
3622
3608
|
}
|
|
3623
3609
|
),
|
|
3624
|
-
|
|
3610
|
+
D && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3625
3611
|
] }),
|
|
3626
3612
|
/* @__PURE__ */ p(
|
|
3627
3613
|
"div",
|
|
3628
3614
|
{
|
|
3629
3615
|
className: n(
|
|
3630
|
-
|
|
3631
|
-
m &&
|
|
3616
|
+
b,
|
|
3617
|
+
m && Je.container,
|
|
3632
3618
|
l == null ? void 0 : l.base
|
|
3633
3619
|
),
|
|
3634
3620
|
children: [
|
|
@@ -3636,9 +3622,9 @@ const Fo = ({
|
|
|
3636
3622
|
Cr,
|
|
3637
3623
|
{
|
|
3638
3624
|
...h,
|
|
3639
|
-
ref:
|
|
3625
|
+
ref: x,
|
|
3640
3626
|
id: t,
|
|
3641
|
-
disabled:
|
|
3627
|
+
disabled: k,
|
|
3642
3628
|
classNames: {
|
|
3643
3629
|
...h == null ? void 0 : h.classNames,
|
|
3644
3630
|
target: n(
|
|
@@ -3654,13 +3640,13 @@ const Fo = ({
|
|
|
3654
3640
|
{
|
|
3655
3641
|
role: "button",
|
|
3656
3642
|
type: "button",
|
|
3657
|
-
disabled:
|
|
3643
|
+
disabled: k,
|
|
3658
3644
|
className: n(
|
|
3659
|
-
|
|
3645
|
+
s.base,
|
|
3660
3646
|
c === "left" && "left-3.5",
|
|
3661
3647
|
c === "right" && "right-3.5",
|
|
3662
|
-
u &&
|
|
3663
|
-
|
|
3648
|
+
u && s.clickable,
|
|
3649
|
+
k && s.disabled,
|
|
3664
3650
|
l == null ? void 0 : l.iconButton
|
|
3665
3651
|
),
|
|
3666
3652
|
onClick: u,
|
|
@@ -3669,13 +3655,13 @@ const Fo = ({
|
|
|
3669
3655
|
o && /* @__PURE__ */ e(
|
|
3670
3656
|
o,
|
|
3671
3657
|
{
|
|
3672
|
-
className: n(
|
|
3658
|
+
className: n(s.icon, l == null ? void 0 : l.icon),
|
|
3673
3659
|
viewBox: r == null ? void 0 : r.viewBox,
|
|
3674
3660
|
width: r == null ? void 0 : r.width,
|
|
3675
3661
|
height: r == null ? void 0 : r.height
|
|
3676
3662
|
}
|
|
3677
3663
|
),
|
|
3678
|
-
d && /* @__PURE__ */ e(
|
|
3664
|
+
d && /* @__PURE__ */ e(w, { className: n(s.text, l == null ? void 0 : l.text), children: d })
|
|
3679
3665
|
]
|
|
3680
3666
|
}
|
|
3681
3667
|
)
|
|
@@ -3684,7 +3670,7 @@ const Fo = ({
|
|
|
3684
3670
|
)
|
|
3685
3671
|
] });
|
|
3686
3672
|
}
|
|
3687
|
-
),
|
|
3673
|
+
), Je = {
|
|
3688
3674
|
parent: "flex flex-col w-full",
|
|
3689
3675
|
base: "mt-1.5",
|
|
3690
3676
|
button: {
|
|
@@ -3718,26 +3704,26 @@ const Fo = ({
|
|
|
3718
3704
|
element: i,
|
|
3719
3705
|
label: a,
|
|
3720
3706
|
classNames: o
|
|
3721
|
-
}) => /* @__PURE__ */ p("div", { className: n(
|
|
3707
|
+
}) => /* @__PURE__ */ p("div", { className: n(bt.wrapper, o == null ? void 0 : o.wrapper), children: [
|
|
3722
3708
|
!!t && /* @__PURE__ */ e(
|
|
3723
3709
|
"div",
|
|
3724
3710
|
{
|
|
3725
3711
|
"data-testid": "user-icon",
|
|
3726
|
-
className: n(
|
|
3712
|
+
className: n(bt.iconWrapper, o == null ? void 0 : o.iconWrapper),
|
|
3727
3713
|
children: t
|
|
3728
3714
|
}
|
|
3729
3715
|
),
|
|
3730
3716
|
!!a && /* @__PURE__ */ e(
|
|
3731
|
-
|
|
3717
|
+
w,
|
|
3732
3718
|
{
|
|
3733
3719
|
"data-testid": "user-label",
|
|
3734
3720
|
variant: "span",
|
|
3735
|
-
className: n(
|
|
3721
|
+
className: n(bt.label, o == null ? void 0 : o.label),
|
|
3736
3722
|
children: a
|
|
3737
3723
|
}
|
|
3738
3724
|
),
|
|
3739
3725
|
!!i && i
|
|
3740
|
-
] }),
|
|
3726
|
+
] }), bt = {
|
|
3741
3727
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3742
3728
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3743
3729
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3746,7 +3732,7 @@ const Fo = ({
|
|
|
3746
3732
|
base: "w-8 h-5",
|
|
3747
3733
|
thumb: "size-3.5"
|
|
3748
3734
|
}
|
|
3749
|
-
},
|
|
3735
|
+
}, Ee = ({
|
|
3750
3736
|
children: t,
|
|
3751
3737
|
disabled: i = !1,
|
|
3752
3738
|
href: a,
|
|
@@ -3764,14 +3750,14 @@ const Fo = ({
|
|
|
3764
3750
|
}) => {
|
|
3765
3751
|
const f = Un.states;
|
|
3766
3752
|
return /* @__PURE__ */ p(
|
|
3767
|
-
|
|
3753
|
+
Ve,
|
|
3768
3754
|
{
|
|
3769
3755
|
...h,
|
|
3770
3756
|
"data-testid": "link-root",
|
|
3771
3757
|
to: a,
|
|
3772
|
-
onClick: (
|
|
3773
|
-
if (
|
|
3774
|
-
|
|
3758
|
+
onClick: (g) => {
|
|
3759
|
+
if (g.stopPropagation(), i) {
|
|
3760
|
+
g.preventDefault();
|
|
3775
3761
|
return;
|
|
3776
3762
|
}
|
|
3777
3763
|
o && o();
|
|
@@ -3808,7 +3794,7 @@ const Fo = ({
|
|
|
3808
3794
|
hover: "hover:text-primary-20",
|
|
3809
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"
|
|
3810
3796
|
}
|
|
3811
|
-
}, ar =
|
|
3797
|
+
}, ar = Q(
|
|
3812
3798
|
({
|
|
3813
3799
|
classNames: t,
|
|
3814
3800
|
disabled: i,
|
|
@@ -3818,24 +3804,24 @@ const Fo = ({
|
|
|
3818
3804
|
value: c
|
|
3819
3805
|
}, d) => {
|
|
3820
3806
|
var S;
|
|
3821
|
-
const [l, u] = A(!1), f = er(o)(c),
|
|
3822
|
-
className:
|
|
3807
|
+
const [l, u] = A(!1), f = er(o)(c), x = ie(null), g = $e.base, b = $e.options, s = $e.disabled.trigger, k = $e.disabled.triggerText, m = (S = o.find((B) => B.value === c)) == null ? void 0 : S.status, D = ({
|
|
3808
|
+
className: B,
|
|
3823
3809
|
text: y = ""
|
|
3824
3810
|
}) => /* @__PURE__ */ e(
|
|
3825
|
-
|
|
3811
|
+
w,
|
|
3826
3812
|
{
|
|
3827
3813
|
className: n(
|
|
3828
|
-
|
|
3829
|
-
i &&
|
|
3830
|
-
|
|
3814
|
+
g.placeholder,
|
|
3815
|
+
i && k,
|
|
3816
|
+
B
|
|
3831
3817
|
),
|
|
3832
3818
|
children: y
|
|
3833
3819
|
}
|
|
3834
3820
|
);
|
|
3835
3821
|
return ge(() => {
|
|
3836
3822
|
l && setTimeout(() => {
|
|
3837
|
-
var
|
|
3838
|
-
(
|
|
3823
|
+
var B;
|
|
3824
|
+
(B = x.current) == null || B.scrollIntoView({ block: "center" });
|
|
3839
3825
|
}, 0);
|
|
3840
3826
|
}, [l]), /* @__PURE__ */ p(nt, { open: l, onOpenChange: u, children: [
|
|
3841
3827
|
/* @__PURE__ */ p(
|
|
@@ -3844,21 +3830,21 @@ const Fo = ({
|
|
|
3844
3830
|
role: "listbox",
|
|
3845
3831
|
disabled: i,
|
|
3846
3832
|
className: n(
|
|
3847
|
-
|
|
3848
|
-
i &&
|
|
3849
|
-
!l && !i &&
|
|
3833
|
+
g.trigger,
|
|
3834
|
+
i && s,
|
|
3835
|
+
!l && !i && g.hover,
|
|
3850
3836
|
t == null ? void 0 : t.trigger,
|
|
3851
3837
|
m && $e.status[m]
|
|
3852
3838
|
),
|
|
3853
3839
|
children: [
|
|
3854
3840
|
c ? /* @__PURE__ */ e(
|
|
3855
|
-
|
|
3841
|
+
D,
|
|
3856
3842
|
{
|
|
3857
3843
|
text: f == null ? void 0 : f.label,
|
|
3858
|
-
className: n(
|
|
3844
|
+
className: n(g.selected, t == null ? void 0 : t.selected)
|
|
3859
3845
|
}
|
|
3860
3846
|
) : /* @__PURE__ */ e(
|
|
3861
|
-
|
|
3847
|
+
D,
|
|
3862
3848
|
{
|
|
3863
3849
|
text: r,
|
|
3864
3850
|
className: t == null ? void 0 : t.placeholder
|
|
@@ -3867,7 +3853,7 @@ const Fo = ({
|
|
|
3867
3853
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3868
3854
|
nr,
|
|
3869
3855
|
{
|
|
3870
|
-
className: n(
|
|
3856
|
+
className: n(g.icon, l && "rotate-180"),
|
|
3871
3857
|
width: 16,
|
|
3872
3858
|
height: 16,
|
|
3873
3859
|
viewBox: "0 0 24 24"
|
|
@@ -3879,20 +3865,20 @@ const Fo = ({
|
|
|
3879
3865
|
/* @__PURE__ */ e(
|
|
3880
3866
|
it,
|
|
3881
3867
|
{
|
|
3882
|
-
className: n(
|
|
3868
|
+
className: n(b.content, t == null ? void 0 : t.content),
|
|
3883
3869
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3884
3870
|
ref: d,
|
|
3885
|
-
children: /* @__PURE__ */ e("div", { className: n(
|
|
3886
|
-
|
|
3871
|
+
children: /* @__PURE__ */ e("div", { className: n(b.wrapper), children: !!o && (o == null ? void 0 : o.map((B) => /* @__PURE__ */ e(
|
|
3872
|
+
Tt,
|
|
3887
3873
|
{
|
|
3888
|
-
ref: c ===
|
|
3889
|
-
className: n(
|
|
3874
|
+
ref: c === B.value ? x : null,
|
|
3875
|
+
className: n(b.items),
|
|
3890
3876
|
onClick: (y) => {
|
|
3891
|
-
y.preventDefault(), y.stopPropagation(), a(
|
|
3877
|
+
y.preventDefault(), y.stopPropagation(), a(B.value), u(!1);
|
|
3892
3878
|
},
|
|
3893
|
-
children: /* @__PURE__ */ e(He, { text:
|
|
3879
|
+
children: /* @__PURE__ */ e(He, { text: B.label, variant: B.status })
|
|
3894
3880
|
},
|
|
3895
|
-
|
|
3881
|
+
B.value
|
|
3896
3882
|
))) })
|
|
3897
3883
|
}
|
|
3898
3884
|
)
|
|
@@ -3940,7 +3926,7 @@ const $e = {
|
|
|
3940
3926
|
/* @__PURE__ */ e(Te, { ...a })
|
|
3941
3927
|
] }), Yn = {
|
|
3942
3928
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3943
|
-
}, qo =
|
|
3929
|
+
}, qo = Q(
|
|
3944
3930
|
({
|
|
3945
3931
|
title: t,
|
|
3946
3932
|
file: i,
|
|
@@ -3967,9 +3953,9 @@ const $e = {
|
|
|
3967
3953
|
/* @__PURE__ */ p("div", { className: H.titleContainer, children: [
|
|
3968
3954
|
/* @__PURE__ */ p("div", { className: H.textContainer, children: [
|
|
3969
3955
|
/* @__PURE__ */ e("div", { className: H.circle[d] }),
|
|
3970
|
-
/* @__PURE__ */ e(
|
|
3956
|
+
/* @__PURE__ */ e(w, { "data-testid": "title", className: H.text, children: t })
|
|
3971
3957
|
] }),
|
|
3972
|
-
/* @__PURE__ */ e(
|
|
3958
|
+
/* @__PURE__ */ e(w, { "data-testid": "date-and-time", className: H.dateAndTime, children: Z(a, "dd.MM.yyyy HH:mm:ss") })
|
|
3973
3959
|
] }),
|
|
3974
3960
|
/* @__PURE__ */ p("div", { className: H.fileContainer, children: [
|
|
3975
3961
|
/* @__PURE__ */ e("div", { className: H.iconContainer, children: i.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3984,7 +3970,7 @@ const $e = {
|
|
|
3984
3970
|
) : /* @__PURE__ */ e(Gt, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3985
3971
|
/* @__PURE__ */ p("div", { className: "flex-grow", children: [
|
|
3986
3972
|
/* @__PURE__ */ e(
|
|
3987
|
-
|
|
3973
|
+
w,
|
|
3988
3974
|
{
|
|
3989
3975
|
className: n(
|
|
3990
3976
|
H.fileName,
|
|
@@ -3993,11 +3979,11 @@ const $e = {
|
|
|
3993
3979
|
children: i.name
|
|
3994
3980
|
}
|
|
3995
3981
|
),
|
|
3996
|
-
/* @__PURE__ */ e(
|
|
3982
|
+
/* @__PURE__ */ e(w, { "data-testid": "size-file", className: H.sizeFile, children: mt(Number(i.size.toFixed(1))) })
|
|
3997
3983
|
] }),
|
|
3998
3984
|
/* @__PURE__ */ p("div", { className: H.buttonContainer, children: [
|
|
3999
3985
|
/* @__PURE__ */ e(
|
|
4000
|
-
|
|
3986
|
+
Ee,
|
|
4001
3987
|
{
|
|
4002
3988
|
classNames: {
|
|
4003
3989
|
root: n(H.button.basic, H.iconHover),
|
|
@@ -4076,7 +4062,7 @@ const $e = {
|
|
|
4076
4062
|
{
|
|
4077
4063
|
"data-testid": "date-and-time",
|
|
4078
4064
|
className: P.dateContainer.dateAndTime,
|
|
4079
|
-
children:
|
|
4065
|
+
children: Z(i, "dd.MM.yyyy HH:mm:ss")
|
|
4080
4066
|
}
|
|
4081
4067
|
),
|
|
4082
4068
|
/* @__PURE__ */ e(
|
|
@@ -4089,8 +4075,8 @@ const $e = {
|
|
|
4089
4075
|
)
|
|
4090
4076
|
] }),
|
|
4091
4077
|
/* @__PURE__ */ p("div", { className: P.titleContainer.base, children: [
|
|
4092
|
-
/* @__PURE__ */ e(
|
|
4093
|
-
/* @__PURE__ */ e(
|
|
4078
|
+
/* @__PURE__ */ e(w, { "data-testid": "title", className: P.titleContainer.title, children: t }),
|
|
4079
|
+
/* @__PURE__ */ e(w, { "data-testid": "price", className: P.titleContainer.price, children: h })
|
|
4094
4080
|
] }),
|
|
4095
4081
|
/* @__PURE__ */ p("div", { className: P.buttonContainer.base, children: [
|
|
4096
4082
|
/* @__PURE__ */ e(
|
|
@@ -4172,8 +4158,8 @@ const $e = {
|
|
|
4172
4158
|
iconDimensions: o,
|
|
4173
4159
|
classNames: r,
|
|
4174
4160
|
onCLick: c
|
|
4175
|
-
}) => /* @__PURE__ */ p("div", { className: n(
|
|
4176
|
-
/* @__PURE__ */ e("div", { className:
|
|
4161
|
+
}) => /* @__PURE__ */ p("div", { className: n(oe.container, r == null ? void 0 : r.root), children: [
|
|
4162
|
+
/* @__PURE__ */ e("div", { className: oe.header, children: /* @__PURE__ */ e(
|
|
4177
4163
|
M,
|
|
4178
4164
|
{
|
|
4179
4165
|
icon: a,
|
|
@@ -4181,20 +4167,20 @@ const $e = {
|
|
|
4181
4167
|
iconDimensions: o,
|
|
4182
4168
|
"data-testid": "title",
|
|
4183
4169
|
classNames: {
|
|
4184
|
-
base: n(
|
|
4185
|
-
icon: n(
|
|
4170
|
+
base: n(oe.headerIcon, r == null ? void 0 : r.headerIcon),
|
|
4171
|
+
icon: n(oe.icon, r == null ? void 0 : r.icon)
|
|
4186
4172
|
},
|
|
4187
4173
|
iconPosition: "left",
|
|
4188
4174
|
children: t
|
|
4189
4175
|
}
|
|
4190
4176
|
) }),
|
|
4191
|
-
/* @__PURE__ */ e("div", { className:
|
|
4177
|
+
/* @__PURE__ */ e("div", { className: oe.body, children: i == null ? void 0 : i.map((d, l) => {
|
|
4192
4178
|
var u;
|
|
4193
|
-
return /* @__PURE__ */ p("div", { className:
|
|
4194
|
-
!!d.sectionTitle && /* @__PURE__ */ e(
|
|
4195
|
-
!!d.sectionSubtitle && /* @__PURE__ */ e(
|
|
4196
|
-
/* @__PURE__ */ e("ul", { className:
|
|
4197
|
-
!!h.subtitle && /* @__PURE__ */ e(
|
|
4179
|
+
return /* @__PURE__ */ p("div", { className: oe.bodyItem, children: [
|
|
4180
|
+
!!d.sectionTitle && /* @__PURE__ */ e(tt, { variant: "h2", className: oe.title, children: d.sectionTitle }),
|
|
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__ */ p("li", { children: [
|
|
4183
|
+
!!h.subtitle && /* @__PURE__ */ e(w, { "data-testid": "subtitle", className: oe.item, children: h == null ? void 0 : h.subtitle }),
|
|
4198
4184
|
/* @__PURE__ */ e(
|
|
4199
4185
|
M,
|
|
4200
4186
|
{
|
|
@@ -4202,7 +4188,7 @@ const $e = {
|
|
|
4202
4188
|
onClick: () => c == null ? void 0 : c(h.id),
|
|
4203
4189
|
variant: "text",
|
|
4204
4190
|
classNames: {
|
|
4205
|
-
base:
|
|
4191
|
+
base: oe.link
|
|
4206
4192
|
},
|
|
4207
4193
|
children: h == null ? void 0 : h.link
|
|
4208
4194
|
}
|
|
@@ -4210,7 +4196,7 @@ const $e = {
|
|
|
4210
4196
|
] }, f)) })
|
|
4211
4197
|
] }, l);
|
|
4212
4198
|
}) })
|
|
4213
|
-
] }),
|
|
4199
|
+
] }), oe = {
|
|
4214
4200
|
container: "border border-dark-30/[.10] rounded-[10px] px-[15px] py-[17px] w-[395px] h-max",
|
|
4215
4201
|
header: "flex items-center gap-2.5",
|
|
4216
4202
|
body: "w-full",
|
|
@@ -4227,10 +4213,10 @@ const $e = {
|
|
|
4227
4213
|
options: i,
|
|
4228
4214
|
classNames: a
|
|
4229
4215
|
}) => {
|
|
4230
|
-
const o = Ce.base, r = Ce.content.wrapper, c = Ce.content.title, d = Ce.content.typography, l = Ce.content.amount, u = Ce.content.amountBold, h = i.find((
|
|
4216
|
+
const o = Ce.base, r = Ce.content.wrapper, c = 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);
|
|
4231
4217
|
return /* @__PURE__ */ p("div", { className: n(o, a == null ? void 0 : a.root), children: [
|
|
4232
4218
|
/* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4233
|
-
|
|
4219
|
+
w,
|
|
4234
4220
|
{
|
|
4235
4221
|
"data-testid": "title",
|
|
4236
4222
|
className: n(c, a == null ? void 0 : a.title),
|
|
@@ -4238,18 +4224,18 @@ const $e = {
|
|
|
4238
4224
|
}
|
|
4239
4225
|
) }),
|
|
4240
4226
|
/* @__PURE__ */ p("div", { className: Ce.content.items, children: [
|
|
4241
|
-
f.map((
|
|
4227
|
+
f.map((x) => /* @__PURE__ */ e(
|
|
4242
4228
|
Me,
|
|
4243
4229
|
{
|
|
4244
4230
|
"data-testid": "item",
|
|
4245
|
-
value:
|
|
4246
|
-
label:
|
|
4231
|
+
value: x.value,
|
|
4232
|
+
label: x.label,
|
|
4247
4233
|
classNames: {
|
|
4248
4234
|
label: n(d, a == null ? void 0 : a.label),
|
|
4249
4235
|
value: n(l, a == null ? void 0 : a.value)
|
|
4250
4236
|
}
|
|
4251
4237
|
},
|
|
4252
|
-
|
|
4238
|
+
x.label
|
|
4253
4239
|
)),
|
|
4254
4240
|
h && /* @__PURE__ */ e(
|
|
4255
4241
|
Me,
|
|
@@ -4286,7 +4272,7 @@ const $e = {
|
|
|
4286
4272
|
classNames: a,
|
|
4287
4273
|
...o
|
|
4288
4274
|
}) => /* @__PURE__ */ p(
|
|
4289
|
-
|
|
4275
|
+
w,
|
|
4290
4276
|
{
|
|
4291
4277
|
"data-testid": "label",
|
|
4292
4278
|
className: n(Ft.label, a == null ? void 0 : a.label),
|
|
@@ -4299,7 +4285,7 @@ const $e = {
|
|
|
4299
4285
|
), Ft = {
|
|
4300
4286
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4301
4287
|
value: "text-sm text-dark-30 font-semibold"
|
|
4302
|
-
}, Gn =
|
|
4288
|
+
}, Gn = Q(
|
|
4303
4289
|
({
|
|
4304
4290
|
classNames: t,
|
|
4305
4291
|
disabled: i,
|
|
@@ -4312,29 +4298,29 @@ const $e = {
|
|
|
4312
4298
|
label: u,
|
|
4313
4299
|
title: h,
|
|
4314
4300
|
options: f = []
|
|
4315
|
-
},
|
|
4301
|
+
}, x) => {
|
|
4316
4302
|
var ce;
|
|
4317
|
-
const [
|
|
4303
|
+
const [g, b] = A(!1), [s, k] = A(l || ""), [m, D] = A(""), [S, B] = A(null), y = ie(null), v = () => {
|
|
4318
4304
|
const O = m.trim();
|
|
4319
|
-
O && (S && c ? (c(O, S),
|
|
4320
|
-
}, C = (O,
|
|
4321
|
-
|
|
4322
|
-
const xe = f.find((
|
|
4323
|
-
xe &&
|
|
4324
|
-
}, W = (O,
|
|
4325
|
-
|
|
4326
|
-
},
|
|
4327
|
-
|
|
4305
|
+
O && (S && c ? (c(O, S), B(null)) : r(O), D(""));
|
|
4306
|
+
}, C = (O, X) => {
|
|
4307
|
+
X.stopPropagation(), B(O);
|
|
4308
|
+
const xe = f.find((ne) => ne.value === O);
|
|
4309
|
+
xe && D(xe.label);
|
|
4310
|
+
}, W = (O, X) => {
|
|
4311
|
+
X.stopPropagation(), o(O), s === O && k("");
|
|
4312
|
+
}, T = () => {
|
|
4313
|
+
D(""), B(null);
|
|
4328
4314
|
}, I = () => {
|
|
4329
|
-
|
|
4315
|
+
b(!1), T();
|
|
4330
4316
|
}, z = () => {
|
|
4331
|
-
a(
|
|
4317
|
+
a(s), b(!1), T();
|
|
4332
4318
|
}, G = (O) => {
|
|
4333
|
-
|
|
4319
|
+
b(O), O || T();
|
|
4334
4320
|
}, _ = l ? ((ce = f.find((O) => O.value === l)) == null ? void 0 : ce.label) || l : "", E = _ ? Y.base.selected : Y.base.placeholder;
|
|
4335
4321
|
return /* @__PURE__ */ p("div", { className: Y.container, children: [
|
|
4336
4322
|
u && /* @__PURE__ */ e(ee, { htmlFor: "select-list", disabled: i, children: u }),
|
|
4337
|
-
/* @__PURE__ */ p(ae, { open:
|
|
4323
|
+
/* @__PURE__ */ p(ae, { open: g, onOpenChange: G, children: [
|
|
4338
4324
|
/* @__PURE__ */ p(
|
|
4339
4325
|
de,
|
|
4340
4326
|
{
|
|
@@ -4343,13 +4329,13 @@ const $e = {
|
|
|
4343
4329
|
className: n(
|
|
4344
4330
|
Y.base.trigger,
|
|
4345
4331
|
i && Y.disabled.trigger,
|
|
4346
|
-
|
|
4347
|
-
!
|
|
4332
|
+
g && Y.base.focus,
|
|
4333
|
+
!g && !i && Y.base.hover,
|
|
4348
4334
|
t == null ? void 0 : t.trigger
|
|
4349
4335
|
),
|
|
4350
4336
|
children: [
|
|
4351
4337
|
/* @__PURE__ */ e(
|
|
4352
|
-
|
|
4338
|
+
w,
|
|
4353
4339
|
{
|
|
4354
4340
|
className: n(
|
|
4355
4341
|
Y.base.text,
|
|
@@ -4361,7 +4347,7 @@ const $e = {
|
|
|
4361
4347
|
}
|
|
4362
4348
|
),
|
|
4363
4349
|
/* @__PURE__ */ e(
|
|
4364
|
-
|
|
4350
|
+
Ke,
|
|
4365
4351
|
{
|
|
4366
4352
|
width: 20,
|
|
4367
4353
|
height: 20,
|
|
@@ -4369,7 +4355,7 @@ const $e = {
|
|
|
4369
4355
|
className: n(
|
|
4370
4356
|
Y.base.icon,
|
|
4371
4357
|
i && Y.base.iconDisabled,
|
|
4372
|
-
|
|
4358
|
+
g && "-rotate-180"
|
|
4373
4359
|
)
|
|
4374
4360
|
}
|
|
4375
4361
|
)
|
|
@@ -4382,40 +4368,40 @@ const $e = {
|
|
|
4382
4368
|
container: y.current,
|
|
4383
4369
|
className: n(Y.options.content, t == null ? void 0 : t.content),
|
|
4384
4370
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4385
|
-
ref:
|
|
4371
|
+
ref: x,
|
|
4386
4372
|
children: [
|
|
4387
|
-
h && /* @__PURE__ */ e(
|
|
4373
|
+
h && /* @__PURE__ */ e(w, { className: n(Y.options.label), children: h }),
|
|
4388
4374
|
/* @__PURE__ */ e(
|
|
4389
|
-
|
|
4375
|
+
St,
|
|
4390
4376
|
{
|
|
4391
4377
|
inputProps: {
|
|
4392
4378
|
id: "select-list",
|
|
4393
4379
|
classNames: { target: "px-3 py-[9px]" },
|
|
4394
4380
|
placeholder: S && h ? `Редактировать ${h}` : h || "",
|
|
4395
4381
|
value: m,
|
|
4396
|
-
onChange: (O) =>
|
|
4382
|
+
onChange: (O) => D(O.target.value)
|
|
4397
4383
|
},
|
|
4398
4384
|
icon: Zt,
|
|
4399
4385
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4400
4386
|
iconPosition: "right",
|
|
4401
|
-
onIconClick:
|
|
4387
|
+
onIconClick: v
|
|
4402
4388
|
}
|
|
4403
4389
|
),
|
|
4404
4390
|
/* @__PURE__ */ e("div", { className: Y.options.optionsWrapper, children: f.map((O) => {
|
|
4405
|
-
const
|
|
4391
|
+
const X = S === O.value, xe = s === O.value;
|
|
4406
4392
|
return /* @__PURE__ */ p(
|
|
4407
4393
|
"div",
|
|
4408
4394
|
{
|
|
4409
4395
|
className: n(
|
|
4410
4396
|
Y.options.items,
|
|
4411
|
-
|
|
4397
|
+
X && "opacity-50"
|
|
4412
4398
|
),
|
|
4413
|
-
onClick: (
|
|
4414
|
-
|
|
4399
|
+
onClick: (ne) => {
|
|
4400
|
+
ne.stopPropagation(), ne.preventDefault(), X || k(O.value);
|
|
4415
4401
|
},
|
|
4416
4402
|
children: [
|
|
4417
4403
|
/* @__PURE__ */ p(
|
|
4418
|
-
|
|
4404
|
+
w,
|
|
4419
4405
|
{
|
|
4420
4406
|
className: n(
|
|
4421
4407
|
Y.options.itemsText,
|
|
@@ -4424,7 +4410,7 @@ const $e = {
|
|
|
4424
4410
|
),
|
|
4425
4411
|
children: [
|
|
4426
4412
|
O.label,
|
|
4427
|
-
|
|
4413
|
+
X && " (редактируется...)"
|
|
4428
4414
|
]
|
|
4429
4415
|
}
|
|
4430
4416
|
),
|
|
@@ -4433,18 +4419,18 @@ const $e = {
|
|
|
4433
4419
|
M,
|
|
4434
4420
|
{
|
|
4435
4421
|
variant: "text",
|
|
4436
|
-
icon:
|
|
4422
|
+
icon: Ct,
|
|
4437
4423
|
classNames: {
|
|
4438
4424
|
base: "p-0",
|
|
4439
4425
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4440
4426
|
},
|
|
4441
|
-
onClick: (
|
|
4427
|
+
onClick: (ne) => C(O.value, ne),
|
|
4442
4428
|
iconDimensions: {
|
|
4443
4429
|
height: 20,
|
|
4444
4430
|
width: 20,
|
|
4445
4431
|
viewBox: "0 0 31 31"
|
|
4446
4432
|
},
|
|
4447
|
-
disabled:
|
|
4433
|
+
disabled: X
|
|
4448
4434
|
}
|
|
4449
4435
|
),
|
|
4450
4436
|
/* @__PURE__ */ e(
|
|
@@ -4456,13 +4442,13 @@ const $e = {
|
|
|
4456
4442
|
base: "p-0",
|
|
4457
4443
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4458
4444
|
},
|
|
4459
|
-
onClick: (
|
|
4445
|
+
onClick: (ne) => W(O.value, ne),
|
|
4460
4446
|
iconDimensions: {
|
|
4461
4447
|
height: 20,
|
|
4462
4448
|
width: 20,
|
|
4463
4449
|
viewBox: "0 0 30 30"
|
|
4464
4450
|
},
|
|
4465
|
-
disabled:
|
|
4451
|
+
disabled: X
|
|
4466
4452
|
}
|
|
4467
4453
|
)
|
|
4468
4454
|
] })
|
|
@@ -4563,7 +4549,7 @@ const Y = {
|
|
|
4563
4549
|
}
|
|
4564
4550
|
),
|
|
4565
4551
|
!!o && /* @__PURE__ */ e(
|
|
4566
|
-
|
|
4552
|
+
w,
|
|
4567
4553
|
{
|
|
4568
4554
|
className: n(
|
|
4569
4555
|
Ie.base.label,
|
|
@@ -4630,7 +4616,7 @@ const Y = {
|
|
|
4630
4616
|
sideOffset: 4,
|
|
4631
4617
|
className: n(Le.popover, r == null ? void 0 : r.popover),
|
|
4632
4618
|
children: a.map((f) => {
|
|
4633
|
-
const
|
|
4619
|
+
const x = o === f.value;
|
|
4634
4620
|
return /* @__PURE__ */ p(
|
|
4635
4621
|
ee,
|
|
4636
4622
|
{
|
|
@@ -4644,17 +4630,17 @@ const Y = {
|
|
|
4644
4630
|
Vt,
|
|
4645
4631
|
{
|
|
4646
4632
|
id: `popover-radio-${f.value}`,
|
|
4647
|
-
checked:
|
|
4633
|
+
checked: x,
|
|
4648
4634
|
readOnly: !0,
|
|
4649
4635
|
size: "medium"
|
|
4650
4636
|
}
|
|
4651
4637
|
),
|
|
4652
4638
|
/* @__PURE__ */ e(
|
|
4653
|
-
|
|
4639
|
+
w,
|
|
4654
4640
|
{
|
|
4655
4641
|
className: n(
|
|
4656
4642
|
"transition-colors",
|
|
4657
|
-
|
|
4643
|
+
x ? "text-primary-20 group-hover:text-primary-20" : "text-dark-40 group-hover:text-dark-20"
|
|
4658
4644
|
),
|
|
4659
4645
|
children: f.label
|
|
4660
4646
|
}
|
|
@@ -4677,16 +4663,16 @@ const Y = {
|
|
|
4677
4663
|
f.value
|
|
4678
4664
|
)) }),
|
|
4679
4665
|
/* @__PURE__ */ e("div", { className: n(Le.actions, r == null ? void 0 : r.actions), children: l == null ? void 0 : l.map((f) => {
|
|
4680
|
-
var
|
|
4666
|
+
var x, g;
|
|
4681
4667
|
return /* @__PURE__ */ e(
|
|
4682
|
-
|
|
4668
|
+
wt,
|
|
4683
4669
|
{
|
|
4684
4670
|
icon: f.icon,
|
|
4685
4671
|
shape: "circle",
|
|
4686
4672
|
variant: "text",
|
|
4687
4673
|
classNames: {
|
|
4688
|
-
icon: n("fill-dark-40/[.80]", (
|
|
4689
|
-
button: n("p-0", (
|
|
4674
|
+
icon: n("fill-dark-40/[.80]", (x = f.classNames) == null ? void 0 : x.icon),
|
|
4675
|
+
button: n("p-0", (g = f.classNames) == null ? void 0 : g.button)
|
|
4690
4676
|
},
|
|
4691
4677
|
iconSizes: f.iconSizes ?? {
|
|
4692
4678
|
width: 20,
|
|
@@ -4702,7 +4688,7 @@ const Y = {
|
|
|
4702
4688
|
}
|
|
4703
4689
|
);
|
|
4704
4690
|
}, Le = {
|
|
4705
|
-
root: "h-
|
|
4691
|
+
root: "h-full bg-sidebar-10 w-[77px] border border-dark-30/[.15] rounded-s-[20px] overflow-hidden transition-all duration-300 ease-in-out flex flex-col",
|
|
4706
4692
|
body: "w-auto flex flex-col items-center transition-all duration-300 gap-0.5 border-t pt-2",
|
|
4707
4693
|
popover: "flex flex-col gap-2 p-1 w-auto",
|
|
4708
4694
|
popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
|
|
@@ -4756,11 +4742,12 @@ const Y = {
|
|
|
4756
4742
|
isGroupChat: c,
|
|
4757
4743
|
selectedMessages: d,
|
|
4758
4744
|
onSelectedMessage: l,
|
|
4759
|
-
visibleSelections: u
|
|
4745
|
+
visibleSelections: u,
|
|
4746
|
+
classNames: h
|
|
4760
4747
|
}) => {
|
|
4761
|
-
const
|
|
4762
|
-
return /* @__PURE__ */ p("div", { className:
|
|
4763
|
-
c && !
|
|
4748
|
+
const f = t === i;
|
|
4749
|
+
return /* @__PURE__ */ p("div", { className: n(Pe.root, h == null ? void 0 : h.root), children: [
|
|
4750
|
+
c && !f && /* @__PURE__ */ e(
|
|
4764
4751
|
Et,
|
|
4765
4752
|
{
|
|
4766
4753
|
imageSrc: r == null ? void 0 : r.url,
|
|
@@ -4768,50 +4755,66 @@ const Y = {
|
|
|
4768
4755
|
classNames: { wrapper: "shrink-0" }
|
|
4769
4756
|
}
|
|
4770
4757
|
),
|
|
4771
|
-
/* @__PURE__ */ e(
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
Qr,
|
|
4800
|
-
{
|
|
4801
|
-
className: n(
|
|
4802
|
-
s ? "fill-sidebar-10" : "fill-transparent"
|
|
4758
|
+
/* @__PURE__ */ e(
|
|
4759
|
+
"ul",
|
|
4760
|
+
{
|
|
4761
|
+
role: "list",
|
|
4762
|
+
className: n(Pe.list, f && "items-end", h == null ? void 0 : h.list),
|
|
4763
|
+
children: o.map((x, g, b) => {
|
|
4764
|
+
const s = (x == null ? void 0 : x.id) && (d == null ? void 0 : d.includes(x.id));
|
|
4765
|
+
return /* @__PURE__ */ p(
|
|
4766
|
+
"ul",
|
|
4767
|
+
{
|
|
4768
|
+
role: "listitem",
|
|
4769
|
+
className: n(Pe.item, h == null ? void 0 : h.item),
|
|
4770
|
+
children: [
|
|
4771
|
+
/* @__PURE__ */ e(
|
|
4772
|
+
Tr,
|
|
4773
|
+
{
|
|
4774
|
+
id: x.id,
|
|
4775
|
+
text: x.text,
|
|
4776
|
+
timestamp: x.timestamp,
|
|
4777
|
+
senderName: c ? a : "",
|
|
4778
|
+
status: x.status,
|
|
4779
|
+
isMine: f,
|
|
4780
|
+
selected: !!s,
|
|
4781
|
+
firstMessage: !f && c ? g === 0 : !1,
|
|
4782
|
+
lastMessage: !f && c ? g === b.length - 1 : !0,
|
|
4783
|
+
onClick: () => l == null ? void 0 : l(x == null ? void 0 : x.id)
|
|
4784
|
+
},
|
|
4785
|
+
x.id
|
|
4803
4786
|
),
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4787
|
+
u && /* @__PURE__ */ e(
|
|
4788
|
+
"div",
|
|
4789
|
+
{
|
|
4790
|
+
"data-testid": "select-icon",
|
|
4791
|
+
className: n(
|
|
4792
|
+
Pe.selection,
|
|
4793
|
+
s && "bg-sidebar-20"
|
|
4794
|
+
),
|
|
4795
|
+
onClick: () => l == null ? void 0 : l(x == null ? void 0 : x.id),
|
|
4796
|
+
children: /* @__PURE__ */ e(
|
|
4797
|
+
Qr,
|
|
4798
|
+
{
|
|
4799
|
+
className: n(
|
|
4800
|
+
s ? "fill-sidebar-10" : "fill-transparent"
|
|
4801
|
+
),
|
|
4802
|
+
width: 24,
|
|
4803
|
+
height: 24,
|
|
4804
|
+
viewBox: "0 0 24 24"
|
|
4805
|
+
}
|
|
4806
|
+
)
|
|
4807
|
+
}
|
|
4808
|
+
)
|
|
4809
|
+
]
|
|
4810
|
+
},
|
|
4811
|
+
x.id
|
|
4812
|
+
);
|
|
4813
|
+
})
|
|
4814
|
+
}
|
|
4815
|
+
)
|
|
4813
4816
|
] });
|
|
4814
|
-
},
|
|
4817
|
+
}, Pe = {
|
|
4815
4818
|
root: "w-full flex items-end gap-4",
|
|
4816
4819
|
list: "w-full flex flex-col items-start gap-2.5",
|
|
4817
4820
|
item: "flex items-end gap-4",
|
|
@@ -4825,19 +4828,19 @@ const Y = {
|
|
|
4825
4828
|
}) => {
|
|
4826
4829
|
const c = () => {
|
|
4827
4830
|
a(), o();
|
|
4828
|
-
}, d =
|
|
4829
|
-
return /* @__PURE__ */ e("div", { className: n(
|
|
4831
|
+
}, d = Ne.delete;
|
|
4832
|
+
return /* @__PURE__ */ e("div", { className: n(Ne.wrapper, r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ p(
|
|
4830
4833
|
"div",
|
|
4831
4834
|
{
|
|
4832
4835
|
"data-testid": "delete-message-group",
|
|
4833
4836
|
className: n(
|
|
4834
|
-
|
|
4837
|
+
Ne.content,
|
|
4835
4838
|
r == null ? void 0 : r.content,
|
|
4836
4839
|
i ? "animate-slide-up" : "animate-slide-down"
|
|
4837
4840
|
),
|
|
4838
4841
|
children: [
|
|
4839
4842
|
/* @__PURE__ */ e(
|
|
4840
|
-
|
|
4843
|
+
wt,
|
|
4841
4844
|
{
|
|
4842
4845
|
icon: Ue,
|
|
4843
4846
|
shape: "circle",
|
|
@@ -4855,7 +4858,7 @@ const Y = {
|
|
|
4855
4858
|
}
|
|
4856
4859
|
}
|
|
4857
4860
|
),
|
|
4858
|
-
/* @__PURE__ */ p("p", { className:
|
|
4861
|
+
/* @__PURE__ */ p("p", { className: Ne.amount, children: [
|
|
4859
4862
|
t,
|
|
4860
4863
|
" сообщения"
|
|
4861
4864
|
] }),
|
|
@@ -4881,7 +4884,7 @@ const Y = {
|
|
|
4881
4884
|
]
|
|
4882
4885
|
}
|
|
4883
4886
|
) });
|
|
4884
|
-
},
|
|
4887
|
+
}, Ne = {
|
|
4885
4888
|
wrapper: "flex justify-center",
|
|
4886
4889
|
content: "flex items-center py-3 px-5 border rounded-xl border-dark-40/[.25] fixed bottom-0 bg-white",
|
|
4887
4890
|
delete: {
|
|
@@ -4902,7 +4905,7 @@ const Y = {
|
|
|
4902
4905
|
},
|
|
4903
4906
|
{
|
|
4904
4907
|
id: "edit",
|
|
4905
|
-
icon:
|
|
4908
|
+
icon: Ct,
|
|
4906
4909
|
iconSizes: {
|
|
4907
4910
|
width: 20,
|
|
4908
4911
|
height: 20,
|
|
@@ -4953,7 +4956,7 @@ const Y = {
|
|
|
4953
4956
|
f.preventDefault(), o(!0);
|
|
4954
4957
|
}, c = (f) => {
|
|
4955
4958
|
i(f), o(!1);
|
|
4956
|
-
}, { icon: d, base: l } =
|
|
4959
|
+
}, { icon: d, base: l } = xt.button.normal, { icon: u, base: h } = xt.button.danger;
|
|
4957
4960
|
return /* @__PURE__ */ p(ae, { open: a, onOpenChange: o, children: [
|
|
4958
4961
|
/* @__PURE__ */ e(de, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4959
4962
|
"div",
|
|
@@ -4969,28 +4972,28 @@ const Y = {
|
|
|
4969
4972
|
align: "center",
|
|
4970
4973
|
sideOffset: 4,
|
|
4971
4974
|
side: "top",
|
|
4972
|
-
className:
|
|
4973
|
-
children: Kn.map(({ id: f, icon:
|
|
4975
|
+
className: xt.wrapper,
|
|
4976
|
+
children: Kn.map(({ id: f, icon: x, iconSizes: g, isDanger: b, text: s }) => /* @__PURE__ */ e(
|
|
4974
4977
|
M,
|
|
4975
4978
|
{
|
|
4976
4979
|
"data-testid": "action",
|
|
4977
4980
|
variant: "text",
|
|
4978
4981
|
iconPosition: "left",
|
|
4979
|
-
icon:
|
|
4980
|
-
iconDimensions:
|
|
4982
|
+
icon: x,
|
|
4983
|
+
iconDimensions: g,
|
|
4981
4984
|
onClick: () => c(f),
|
|
4982
4985
|
classNames: {
|
|
4983
|
-
icon:
|
|
4984
|
-
base:
|
|
4986
|
+
icon: b ? u : d,
|
|
4987
|
+
base: b ? h : l
|
|
4985
4988
|
},
|
|
4986
|
-
children:
|
|
4989
|
+
children: s
|
|
4987
4990
|
},
|
|
4988
4991
|
f
|
|
4989
4992
|
))
|
|
4990
4993
|
}
|
|
4991
4994
|
)
|
|
4992
4995
|
] });
|
|
4993
|
-
},
|
|
4996
|
+
}, xt = {
|
|
4994
4997
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
4995
4998
|
button: {
|
|
4996
4999
|
normal: {
|
|
@@ -5027,8 +5030,8 @@ const Y = {
|
|
|
5027
5030
|
onEdit: d,
|
|
5028
5031
|
onDelete: l
|
|
5029
5032
|
}) => {
|
|
5030
|
-
const [u, h] = A(!1), f = t == null ? void 0 : t.find((
|
|
5031
|
-
|
|
5033
|
+
const [u, h] = A(!1), f = t == null ? void 0 : t.find((g) => g.id === i), x = (g, b) => {
|
|
5034
|
+
g.stopPropagation(), r(b), h(!1);
|
|
5032
5035
|
};
|
|
5033
5036
|
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ p(ae, { open: u, onOpenChange: h, children: [
|
|
5034
5037
|
/* @__PURE__ */ p(
|
|
@@ -5048,16 +5051,16 @@ const Y = {
|
|
|
5048
5051
|
}
|
|
5049
5052
|
),
|
|
5050
5053
|
/* @__PURE__ */ p(le, { className: he.content, children: [
|
|
5051
|
-
/* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name:
|
|
5054
|
+
/* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name: g, id: b }) => /* @__PURE__ */ p("li", { role: "listitem", className: he.item, children: [
|
|
5052
5055
|
/* @__PURE__ */ e(
|
|
5053
|
-
|
|
5056
|
+
w,
|
|
5054
5057
|
{
|
|
5055
5058
|
className: n(
|
|
5056
5059
|
he.name,
|
|
5057
|
-
i ===
|
|
5060
|
+
i === b && "before:bg-dark-10"
|
|
5058
5061
|
),
|
|
5059
|
-
onClick: (
|
|
5060
|
-
children:
|
|
5062
|
+
onClick: (s) => x(s, b),
|
|
5063
|
+
children: g.ru
|
|
5061
5064
|
}
|
|
5062
5065
|
),
|
|
5063
5066
|
/* @__PURE__ */ p("div", { className: he.actions, children: [
|
|
@@ -5067,11 +5070,11 @@ const Y = {
|
|
|
5067
5070
|
"data-testid": "edit-button",
|
|
5068
5071
|
variant: "text",
|
|
5069
5072
|
classNames: { base: "p-0" },
|
|
5070
|
-
onClick: (
|
|
5071
|
-
|
|
5073
|
+
onClick: (s) => {
|
|
5074
|
+
s.stopPropagation(), d(b);
|
|
5072
5075
|
},
|
|
5073
5076
|
children: /* @__PURE__ */ e(
|
|
5074
|
-
|
|
5077
|
+
Ct,
|
|
5075
5078
|
{
|
|
5076
5079
|
width: 20,
|
|
5077
5080
|
height: 20,
|
|
@@ -5087,8 +5090,8 @@ const Y = {
|
|
|
5087
5090
|
"data-testid": "delete-button",
|
|
5088
5091
|
variant: "text",
|
|
5089
5092
|
classNames: { base: "p-0" },
|
|
5090
|
-
onClick: (
|
|
5091
|
-
|
|
5093
|
+
onClick: (s) => {
|
|
5094
|
+
s.stopPropagation(), l(b);
|
|
5092
5095
|
},
|
|
5093
5096
|
children: /* @__PURE__ */ e(
|
|
5094
5097
|
Oe,
|
|
@@ -5102,7 +5105,7 @@ const Y = {
|
|
|
5102
5105
|
}
|
|
5103
5106
|
)
|
|
5104
5107
|
] })
|
|
5105
|
-
] },
|
|
5108
|
+
] }, b)) }),
|
|
5106
5109
|
/* @__PURE__ */ e(
|
|
5107
5110
|
M,
|
|
5108
5111
|
{
|
|
@@ -5147,9 +5150,9 @@ const Y = {
|
|
|
5147
5150
|
colors: i,
|
|
5148
5151
|
items: a
|
|
5149
5152
|
}) => {
|
|
5150
|
-
const { radius: o, legendPosition: r, chartCenter: c } = qn[t];
|
|
5153
|
+
const { radius: o, legendPosition: r, chartCenter: c } = qn[t], d = a.every(({ value: h }) => !h), l = d ? [Ye.gray[30]] : i, u = d ? [{ value: 1, name: "пусто" }] : a;
|
|
5151
5154
|
return {
|
|
5152
|
-
color:
|
|
5155
|
+
color: l,
|
|
5153
5156
|
tooltip: {
|
|
5154
5157
|
trigger: "item",
|
|
5155
5158
|
formatter: "{b}: {c} ({d}%)"
|
|
@@ -5162,7 +5165,7 @@ const Y = {
|
|
|
5162
5165
|
icon: "circle",
|
|
5163
5166
|
textStyle: {
|
|
5164
5167
|
padding: [0, 0, 0, 10],
|
|
5165
|
-
color:
|
|
5168
|
+
color: Ye.dark[10],
|
|
5166
5169
|
fontSize: 14,
|
|
5167
5170
|
fontWeight: 700,
|
|
5168
5171
|
rich: {
|
|
@@ -5177,9 +5180,9 @@ const Y = {
|
|
|
5177
5180
|
}
|
|
5178
5181
|
}
|
|
5179
5182
|
},
|
|
5180
|
-
formatter: (
|
|
5181
|
-
const
|
|
5182
|
-
return `{name|${
|
|
5183
|
+
formatter: (h) => {
|
|
5184
|
+
const f = u.find((g) => g.name === h), x = (f == null ? void 0 : f.value) ?? 0;
|
|
5185
|
+
return `{name|${h}}: {value|${x}}`;
|
|
5183
5186
|
}
|
|
5184
5187
|
},
|
|
5185
5188
|
series: [
|
|
@@ -5190,11 +5193,11 @@ const Y = {
|
|
|
5190
5193
|
radius: o,
|
|
5191
5194
|
label: { show: !1 },
|
|
5192
5195
|
labelLine: { show: !1 },
|
|
5193
|
-
data:
|
|
5196
|
+
data: u
|
|
5194
5197
|
}
|
|
5195
5198
|
]
|
|
5196
5199
|
};
|
|
5197
|
-
}, oi =
|
|
5200
|
+
}, oi = Q(
|
|
5198
5201
|
({
|
|
5199
5202
|
chartMode: t = "doughtnut",
|
|
5200
5203
|
mode: i = "chart",
|
|
@@ -5205,7 +5208,7 @@ const Y = {
|
|
|
5205
5208
|
classNames: d,
|
|
5206
5209
|
...l
|
|
5207
5210
|
}, u) => {
|
|
5208
|
-
var
|
|
5211
|
+
var x, g;
|
|
5209
5212
|
const h = [
|
|
5210
5213
|
{ value: r.rented, name: "Сдано в аренду" },
|
|
5211
5214
|
{ value: r.sold, name: "Продано" },
|
|
@@ -5223,7 +5226,7 @@ const Y = {
|
|
|
5223
5226
|
children: [
|
|
5224
5227
|
/* @__PURE__ */ p("div", { className: n(q.header, d == null ? void 0 : d.header), children: [
|
|
5225
5228
|
/* @__PURE__ */ e(
|
|
5226
|
-
|
|
5229
|
+
Ge,
|
|
5227
5230
|
{
|
|
5228
5231
|
title: a,
|
|
5229
5232
|
icon: o,
|
|
@@ -5231,7 +5234,7 @@ const Y = {
|
|
|
5231
5234
|
}
|
|
5232
5235
|
),
|
|
5233
5236
|
/* @__PURE__ */ e(
|
|
5234
|
-
|
|
5237
|
+
Ve,
|
|
5235
5238
|
{
|
|
5236
5239
|
to: "/analytics-reporting",
|
|
5237
5240
|
className: n(q.link, d == null ? void 0 : d.link),
|
|
@@ -5239,12 +5242,12 @@ const Y = {
|
|
|
5239
5242
|
}
|
|
5240
5243
|
)
|
|
5241
5244
|
] }),
|
|
5242
|
-
/* @__PURE__ */ e(
|
|
5245
|
+
/* @__PURE__ */ e(w, { className: n(q.totalText, d == null ? void 0 : d.totalText), children: "Общее количество" }),
|
|
5243
5246
|
/* @__PURE__ */ p("div", { className: n(q.block, d == null ? void 0 : d.block), children: [
|
|
5244
|
-
/* @__PURE__ */ e(
|
|
5245
|
-
r.growth && /* @__PURE__ */ p("div", { className: n(q.badge, d == null ? void 0 : d.badge), children: [
|
|
5247
|
+
/* @__PURE__ */ e(w, { className: n(q.total, d == null ? void 0 : d.total), children: r.total }),
|
|
5248
|
+
!!r.growth && /* @__PURE__ */ p("div", { className: n(q.badge, d == null ? void 0 : d.badge), children: [
|
|
5246
5249
|
/* @__PURE__ */ e(
|
|
5247
|
-
|
|
5250
|
+
gt,
|
|
5248
5251
|
{
|
|
5249
5252
|
width: 7,
|
|
5250
5253
|
height: 7,
|
|
@@ -5253,7 +5256,7 @@ const Y = {
|
|
|
5253
5256
|
}
|
|
5254
5257
|
),
|
|
5255
5258
|
/* @__PURE__ */ p(
|
|
5256
|
-
|
|
5259
|
+
w,
|
|
5257
5260
|
{
|
|
5258
5261
|
variant: "span",
|
|
5259
5262
|
className: n(q.percent, d == null ? void 0 : d.percent),
|
|
@@ -5273,36 +5276,36 @@ const Y = {
|
|
|
5273
5276
|
style: { height: 250 }
|
|
5274
5277
|
}
|
|
5275
5278
|
),
|
|
5276
|
-
i === "progress" && /* @__PURE__ */ p("div", { className: n(q.progress.root, (
|
|
5279
|
+
i === "progress" && /* @__PURE__ */ p("div", { className: n(q.progress.root, (x = d == null ? void 0 : d.progress) == null ? void 0 : x.root), children: [
|
|
5277
5280
|
/* @__PURE__ */ e(
|
|
5278
5281
|
"div",
|
|
5279
5282
|
{
|
|
5280
|
-
className: n(q.progress.line, (
|
|
5283
|
+
className: n(q.progress.line, (g = d == null ? void 0 : d.progress) == null ? void 0 : g.line)
|
|
5281
5284
|
}
|
|
5282
5285
|
),
|
|
5283
|
-
h.map(({ name:
|
|
5284
|
-
var m,
|
|
5286
|
+
h.map(({ name: b, value: s }, k) => {
|
|
5287
|
+
var m, D, S;
|
|
5285
5288
|
return /* @__PURE__ */ p(
|
|
5286
5289
|
"div",
|
|
5287
5290
|
{
|
|
5288
5291
|
className: n(q.progress.row, (m = d == null ? void 0 : d.progress) == null ? void 0 : m.row),
|
|
5289
5292
|
children: [
|
|
5290
5293
|
/* @__PURE__ */ e(
|
|
5291
|
-
|
|
5294
|
+
w,
|
|
5292
5295
|
{
|
|
5293
5296
|
className: n(
|
|
5294
5297
|
q.progress.name,
|
|
5295
|
-
(
|
|
5298
|
+
(D = d == null ? void 0 : d.progress) == null ? void 0 : D.name
|
|
5296
5299
|
),
|
|
5297
|
-
children:
|
|
5300
|
+
children: b
|
|
5298
5301
|
}
|
|
5299
5302
|
),
|
|
5300
5303
|
/* @__PURE__ */ e(
|
|
5301
5304
|
lr,
|
|
5302
5305
|
{
|
|
5303
|
-
value:
|
|
5306
|
+
value: s,
|
|
5304
5307
|
total: r.total,
|
|
5305
|
-
color: c[
|
|
5308
|
+
color: c[k],
|
|
5306
5309
|
classNames: {
|
|
5307
5310
|
bar: q.progress.bar,
|
|
5308
5311
|
indicator: q.progress.indicator
|
|
@@ -5310,18 +5313,18 @@ const Y = {
|
|
|
5310
5313
|
}
|
|
5311
5314
|
),
|
|
5312
5315
|
/* @__PURE__ */ e(
|
|
5313
|
-
|
|
5316
|
+
w,
|
|
5314
5317
|
{
|
|
5315
5318
|
className: n(
|
|
5316
5319
|
q.progress.value,
|
|
5317
5320
|
(S = d == null ? void 0 : d.progress) == null ? void 0 : S.value
|
|
5318
5321
|
),
|
|
5319
|
-
children:
|
|
5322
|
+
children: s
|
|
5320
5323
|
}
|
|
5321
5324
|
)
|
|
5322
5325
|
]
|
|
5323
5326
|
},
|
|
5324
|
-
|
|
5327
|
+
b
|
|
5325
5328
|
);
|
|
5326
5329
|
})
|
|
5327
5330
|
] })
|
|
@@ -5394,14 +5397,14 @@ const Y = {
|
|
|
5394
5397
|
}
|
|
5395
5398
|
]
|
|
5396
5399
|
};
|
|
5397
|
-
}, ii =
|
|
5400
|
+
}, ii = Q(
|
|
5398
5401
|
({ data: t, title: i, mode: a = "stat", settings: o, classNames: r, ...c }, d) => {
|
|
5399
5402
|
const {
|
|
5400
5403
|
chartColor: l = "#1B9BE4",
|
|
5401
5404
|
allWhite: u = !1,
|
|
5402
5405
|
arrowDown: h = !1,
|
|
5403
5406
|
icon: f = null
|
|
5404
|
-
} = o ?? {},
|
|
5407
|
+
} = o ?? {}, x = u ? "#ffffff" : l, g = a === "payment" ? yr(t.total) : t.total, b = Qn(a), s = Xn(a, x);
|
|
5405
5408
|
return /* @__PURE__ */ p(
|
|
5406
5409
|
"div",
|
|
5407
5410
|
{
|
|
@@ -5411,7 +5414,7 @@ const Y = {
|
|
|
5411
5414
|
...c,
|
|
5412
5415
|
children: [
|
|
5413
5416
|
/* @__PURE__ */ e(
|
|
5414
|
-
|
|
5417
|
+
w,
|
|
5415
5418
|
{
|
|
5416
5419
|
className: n(
|
|
5417
5420
|
ue.title,
|
|
@@ -5423,20 +5426,20 @@ const Y = {
|
|
|
5423
5426
|
),
|
|
5424
5427
|
/* @__PURE__ */ p("div", { className: n(ue.totalBlock, r == null ? void 0 : r.totalBlock), children: [
|
|
5425
5428
|
/* @__PURE__ */ e(
|
|
5426
|
-
|
|
5429
|
+
w,
|
|
5427
5430
|
{
|
|
5428
5431
|
className: n(
|
|
5429
5432
|
ue.total,
|
|
5430
5433
|
r == null ? void 0 : r.total,
|
|
5431
5434
|
u && "text-sidebar-10"
|
|
5432
5435
|
),
|
|
5433
|
-
children:
|
|
5436
|
+
children: g
|
|
5434
5437
|
}
|
|
5435
5438
|
),
|
|
5436
|
-
a === "payment" && /* @__PURE__ */ e(
|
|
5437
|
-
a === "count" && /* @__PURE__ */ p("div", { className: n(ue.badge, r == null ? void 0 : r.badge), children: [
|
|
5439
|
+
a === "payment" && /* @__PURE__ */ e(w, { className: ue.payment, children: "Сум" }),
|
|
5440
|
+
!!t.growth && a === "count" && /* @__PURE__ */ p("div", { className: n(ue.badge, r == null ? void 0 : r.badge), children: [
|
|
5438
5441
|
/* @__PURE__ */ e(
|
|
5439
|
-
|
|
5442
|
+
gt,
|
|
5440
5443
|
{
|
|
5441
5444
|
width: 7,
|
|
5442
5445
|
height: 7,
|
|
@@ -5444,7 +5447,7 @@ const Y = {
|
|
|
5444
5447
|
viewBox: "0 0 16 16"
|
|
5445
5448
|
}
|
|
5446
5449
|
),
|
|
5447
|
-
/* @__PURE__ */ p(
|
|
5450
|
+
/* @__PURE__ */ p(w, { variant: "span", className: ue.percent, children: [
|
|
5448
5451
|
t.growth,
|
|
5449
5452
|
"%"
|
|
5450
5453
|
] })
|
|
@@ -5454,21 +5457,21 @@ const Y = {
|
|
|
5454
5457
|
/* @__PURE__ */ e(Me, { label: "Физическое лицо:", value: t.physical }),
|
|
5455
5458
|
/* @__PURE__ */ e(Me, { label: "Юридическое лицо:", value: t.legal })
|
|
5456
5459
|
] }),
|
|
5457
|
-
t.growth && a !== "count" && /* @__PURE__ */ p(
|
|
5460
|
+
!!t.growth && a !== "count" && /* @__PURE__ */ p(
|
|
5458
5461
|
"div",
|
|
5459
5462
|
{
|
|
5460
5463
|
className: n(ue.growth, r == null ? void 0 : r.growth),
|
|
5461
|
-
style: { color:
|
|
5464
|
+
style: { color: x },
|
|
5462
5465
|
children: [
|
|
5463
5466
|
/* @__PURE__ */ e(
|
|
5464
|
-
|
|
5467
|
+
gt,
|
|
5465
5468
|
{
|
|
5466
5469
|
width: 16,
|
|
5467
5470
|
height: 16,
|
|
5468
5471
|
className: n(h && "rotate-180")
|
|
5469
5472
|
}
|
|
5470
5473
|
),
|
|
5471
|
-
/* @__PURE__ */ p(
|
|
5474
|
+
/* @__PURE__ */ p(w, { variant: "span", children: [
|
|
5472
5475
|
t.growth,
|
|
5473
5476
|
"%"
|
|
5474
5477
|
] })
|
|
@@ -5476,13 +5479,13 @@ const Y = {
|
|
|
5476
5479
|
}
|
|
5477
5480
|
),
|
|
5478
5481
|
a === "stat" && /* @__PURE__ */ e("div", { className: n(ue.icon, r == null ? void 0 : r.icon), children: f }),
|
|
5479
|
-
|
|
5482
|
+
b && /* @__PURE__ */ e(
|
|
5480
5483
|
at,
|
|
5481
5484
|
{
|
|
5482
5485
|
echarts: dt,
|
|
5483
|
-
option:
|
|
5486
|
+
option: s,
|
|
5484
5487
|
style: {
|
|
5485
|
-
...
|
|
5488
|
+
...b,
|
|
5486
5489
|
position: "absolute",
|
|
5487
5490
|
right: a === "bid" ? -60 : -40,
|
|
5488
5491
|
bottom: a === "bid" ? -5 : 0
|
|
@@ -5515,7 +5518,7 @@ const Y = {
|
|
|
5515
5518
|
textStyle: {
|
|
5516
5519
|
fontSize: 22,
|
|
5517
5520
|
fontWeight: 600,
|
|
5518
|
-
color:
|
|
5521
|
+
color: Ye.dark[10]
|
|
5519
5522
|
}
|
|
5520
5523
|
},
|
|
5521
5524
|
tooltip: !1,
|
|
@@ -5531,14 +5534,14 @@ const Y = {
|
|
|
5531
5534
|
data: [
|
|
5532
5535
|
{
|
|
5533
5536
|
value: t,
|
|
5534
|
-
itemStyle: { color:
|
|
5537
|
+
itemStyle: { color: Ye.success[20], borderRadius: 4 }
|
|
5535
5538
|
},
|
|
5536
5539
|
{ value: i, itemStyle: { color: "#F3F4F5" } }
|
|
5537
5540
|
]
|
|
5538
5541
|
}
|
|
5539
5542
|
]
|
|
5540
5543
|
};
|
|
5541
|
-
}, ai =
|
|
5544
|
+
}, ai = Q(
|
|
5542
5545
|
({
|
|
5543
5546
|
mode: t = "master",
|
|
5544
5547
|
title: i,
|
|
@@ -5551,7 +5554,7 @@ const Y = {
|
|
|
5551
5554
|
avatarGroupProps: u,
|
|
5552
5555
|
...h
|
|
5553
5556
|
}, f) => {
|
|
5554
|
-
const
|
|
5557
|
+
const x = Jn(o);
|
|
5555
5558
|
return /* @__PURE__ */ p(
|
|
5556
5559
|
"div",
|
|
5557
5560
|
{
|
|
@@ -5562,16 +5565,16 @@ const Y = {
|
|
|
5562
5565
|
children: [
|
|
5563
5566
|
/* @__PURE__ */ p("div", { className: n(ze.block, l == null ? void 0 : l.block), children: [
|
|
5564
5567
|
/* @__PURE__ */ e(
|
|
5565
|
-
|
|
5568
|
+
Ge,
|
|
5566
5569
|
{
|
|
5567
5570
|
title: i,
|
|
5568
5571
|
icon: a,
|
|
5569
5572
|
classNames: { title: ze.title, wrapper: "items-center" }
|
|
5570
5573
|
}
|
|
5571
5574
|
),
|
|
5572
|
-
t === "master" && u && d && /* @__PURE__ */ p(
|
|
5575
|
+
t === "master" && u && !!d && /* @__PURE__ */ p(et, { children: [
|
|
5573
5576
|
/* @__PURE__ */ e(
|
|
5574
|
-
|
|
5577
|
+
Dt,
|
|
5575
5578
|
{
|
|
5576
5579
|
...u,
|
|
5577
5580
|
classNames: {
|
|
@@ -5583,9 +5586,9 @@ const Y = {
|
|
|
5583
5586
|
),
|
|
5584
5587
|
/* @__PURE__ */ e(dr, { rating: d, position: "right" })
|
|
5585
5588
|
] }),
|
|
5586
|
-
t === "service" && c && /* @__PURE__ */ p(
|
|
5589
|
+
t === "service" && c && /* @__PURE__ */ p(et, { children: [
|
|
5587
5590
|
/* @__PURE__ */ e(
|
|
5588
|
-
|
|
5591
|
+
Ge,
|
|
5589
5592
|
{
|
|
5590
5593
|
title: c.name,
|
|
5591
5594
|
icon: c.icon,
|
|
@@ -5595,7 +5598,7 @@ const Y = {
|
|
|
5595
5598
|
}
|
|
5596
5599
|
}
|
|
5597
5600
|
),
|
|
5598
|
-
/* @__PURE__ */ e(
|
|
5601
|
+
!!c.type && /* @__PURE__ */ e(
|
|
5599
5602
|
He,
|
|
5600
5603
|
{
|
|
5601
5604
|
variant: "info",
|
|
@@ -5617,7 +5620,7 @@ const Y = {
|
|
|
5617
5620
|
at,
|
|
5618
5621
|
{
|
|
5619
5622
|
echarts: dt,
|
|
5620
|
-
option:
|
|
5623
|
+
option: x,
|
|
5621
5624
|
style: { height: 135, width: 135 }
|
|
5622
5625
|
}
|
|
5623
5626
|
)
|
|
@@ -5679,7 +5682,7 @@ const Y = {
|
|
|
5679
5682
|
)
|
|
5680
5683
|
] }, c);
|
|
5681
5684
|
}) }),
|
|
5682
|
-
/* @__PURE__ */ e(
|
|
5685
|
+
/* @__PURE__ */ e(w, { variant: "span", className: n(be.rating, i == null ? void 0 : i.rating), children: String(t).replace(".", ",") })
|
|
5683
5686
|
]
|
|
5684
5687
|
}
|
|
5685
5688
|
), be = {
|
|
@@ -5708,7 +5711,7 @@ const Y = {
|
|
|
5708
5711
|
textStyle: {
|
|
5709
5712
|
fontSize: 20,
|
|
5710
5713
|
fontWeight: 600,
|
|
5711
|
-
color:
|
|
5714
|
+
color: Ye.dark[10]
|
|
5712
5715
|
}
|
|
5713
5716
|
},
|
|
5714
5717
|
tooltip: {
|
|
@@ -5731,7 +5734,7 @@ const Y = {
|
|
|
5731
5734
|
}
|
|
5732
5735
|
]
|
|
5733
5736
|
};
|
|
5734
|
-
}, di =
|
|
5737
|
+
}, di = Q(
|
|
5735
5738
|
({ title: t, icon: i, data: a, colors: o, classNames: r, ...c }, d) => {
|
|
5736
5739
|
var u;
|
|
5737
5740
|
const l = [
|
|
@@ -5749,7 +5752,7 @@ const Y = {
|
|
|
5749
5752
|
children: [
|
|
5750
5753
|
/* @__PURE__ */ p("div", { className: n(re.header, r == null ? void 0 : r.header), children: [
|
|
5751
5754
|
/* @__PURE__ */ e(
|
|
5752
|
-
|
|
5755
|
+
Ge,
|
|
5753
5756
|
{
|
|
5754
5757
|
title: t,
|
|
5755
5758
|
icon: i,
|
|
@@ -5757,7 +5760,7 @@ const Y = {
|
|
|
5757
5760
|
}
|
|
5758
5761
|
),
|
|
5759
5762
|
/* @__PURE__ */ e(
|
|
5760
|
-
|
|
5763
|
+
Ve,
|
|
5761
5764
|
{
|
|
5762
5765
|
to: "/analytics-reporting",
|
|
5763
5766
|
className: n(re.link, r == null ? void 0 : r.link),
|
|
@@ -5767,15 +5770,15 @@ const Y = {
|
|
|
5767
5770
|
] }),
|
|
5768
5771
|
/* @__PURE__ */ p("div", { className: n(re.info, r == null ? void 0 : r.info), children: [
|
|
5769
5772
|
/* @__PURE__ */ p("div", { className: n(re.block, r == null ? void 0 : r.block), children: [
|
|
5770
|
-
/* @__PURE__ */ e(
|
|
5771
|
-
/* @__PURE__ */ e(
|
|
5773
|
+
/* @__PURE__ */ e(w, { className: n(re.totalText, r == null ? void 0 : r.totalText), children: "Общее количество" }),
|
|
5774
|
+
/* @__PURE__ */ e(w, { className: n(re.total, r == null ? void 0 : r.total), children: a.total })
|
|
5772
5775
|
] }),
|
|
5773
5776
|
/* @__PURE__ */ e("div", { className: n(re.legend.root, (u = r == null ? void 0 : r.legend) == null ? void 0 : u.root), children: l.map((h, f) => {
|
|
5774
|
-
var
|
|
5777
|
+
var x;
|
|
5775
5778
|
return /* @__PURE__ */ p(
|
|
5776
5779
|
"div",
|
|
5777
5780
|
{
|
|
5778
|
-
className: n(re.legend.main, (
|
|
5781
|
+
className: n(re.legend.main, (x = r == null ? void 0 : r.legend) == null ? void 0 : x.main),
|
|
5779
5782
|
children: [
|
|
5780
5783
|
/* @__PURE__ */ e(
|
|
5781
5784
|
"div",
|
|
@@ -5834,7 +5837,7 @@ const Y = {
|
|
|
5834
5837
|
root: "flex flex-col gap-2",
|
|
5835
5838
|
dot: "size-2 rounded-full"
|
|
5836
5839
|
}
|
|
5837
|
-
}, li =
|
|
5840
|
+
}, li = Q(
|
|
5838
5841
|
({ paid: t, pending: i, overdue: a, title: o, icon: r, total: c, classNames: d, ...l }, u) => {
|
|
5839
5842
|
var f;
|
|
5840
5843
|
const h = [
|
|
@@ -5856,7 +5859,7 @@ const Y = {
|
|
|
5856
5859
|
children: [
|
|
5857
5860
|
/* @__PURE__ */ p("div", { className: n(_e.header, d == null ? void 0 : d.header), children: [
|
|
5858
5861
|
/* @__PURE__ */ e(
|
|
5859
|
-
|
|
5862
|
+
Ge,
|
|
5860
5863
|
{
|
|
5861
5864
|
title: o,
|
|
5862
5865
|
icon: r,
|
|
@@ -5864,7 +5867,7 @@ const Y = {
|
|
|
5864
5867
|
}
|
|
5865
5868
|
),
|
|
5866
5869
|
/* @__PURE__ */ e(
|
|
5867
|
-
|
|
5870
|
+
Ve,
|
|
5868
5871
|
{
|
|
5869
5872
|
to: "/analytics-reporting",
|
|
5870
5873
|
className: n(_e.link, d == null ? void 0 : d.link),
|
|
@@ -5872,26 +5875,26 @@ const Y = {
|
|
|
5872
5875
|
}
|
|
5873
5876
|
)
|
|
5874
5877
|
] }),
|
|
5875
|
-
/* @__PURE__ */ e("div", { className: n(_e.bar.block, (f = d == null ? void 0 : d.bar) == null ? void 0 : f.block), children: h.map(({ label:
|
|
5876
|
-
var
|
|
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
|
+
var k;
|
|
5877
5880
|
return /* @__PURE__ */ p("div", { children: [
|
|
5878
|
-
/* @__PURE__ */ p("div", { className: n(_e.bar.text, (
|
|
5879
|
-
/* @__PURE__ */ e(
|
|
5880
|
-
/* @__PURE__ */ p(
|
|
5881
|
-
|
|
5881
|
+
/* @__PURE__ */ p("div", { className: n(_e.bar.text, (k = d == null ? void 0 : d.bar) == null ? void 0 : k.text), children: [
|
|
5882
|
+
/* @__PURE__ */ e(w, { children: x }),
|
|
5883
|
+
/* @__PURE__ */ p(w, { className: n(s === 2 && "text-danger-10"), children: [
|
|
5884
|
+
g,
|
|
5882
5885
|
" сум"
|
|
5883
5886
|
] })
|
|
5884
5887
|
] }),
|
|
5885
5888
|
/* @__PURE__ */ e(
|
|
5886
5889
|
lr,
|
|
5887
5890
|
{
|
|
5888
|
-
value:
|
|
5891
|
+
value: g,
|
|
5889
5892
|
total: c,
|
|
5890
|
-
color:
|
|
5891
|
-
classNames: { bar: `${
|
|
5893
|
+
color: b,
|
|
5894
|
+
classNames: { bar: `${s === 0 && "h-9"}` }
|
|
5892
5895
|
}
|
|
5893
5896
|
)
|
|
5894
|
-
] },
|
|
5897
|
+
] }, x);
|
|
5895
5898
|
}) })
|
|
5896
5899
|
]
|
|
5897
5900
|
}
|
|
@@ -5932,7 +5935,7 @@ const Y = {
|
|
|
5932
5935
|
}, $t = {
|
|
5933
5936
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5934
5937
|
indicator: "h-full rounded-md"
|
|
5935
|
-
}, ci =
|
|
5938
|
+
}, ci = Q(
|
|
5936
5939
|
({
|
|
5937
5940
|
classNames: t,
|
|
5938
5941
|
disabled: i,
|
|
@@ -5945,26 +5948,26 @@ const Y = {
|
|
|
5945
5948
|
searchValue: u,
|
|
5946
5949
|
onSearchChange: h,
|
|
5947
5950
|
searchPlaceholder: f = "Search...",
|
|
5948
|
-
emptyMessage:
|
|
5949
|
-
container:
|
|
5950
|
-
},
|
|
5951
|
+
emptyMessage: x = "Нет данных",
|
|
5952
|
+
container: g
|
|
5953
|
+
}, b) => {
|
|
5951
5954
|
var G;
|
|
5952
|
-
const [
|
|
5955
|
+
const [s, k] = A(!1), [m, D] = A(-1), S = ie(""), B = ie(null), y = ie(null);
|
|
5953
5956
|
zt(
|
|
5954
|
-
|
|
5957
|
+
b,
|
|
5955
5958
|
() => ({
|
|
5956
5959
|
focus: () => {
|
|
5957
5960
|
var _;
|
|
5958
|
-
return (_ =
|
|
5961
|
+
return (_ = B.current) == null ? void 0 : _.focus();
|
|
5959
5962
|
},
|
|
5960
|
-
open: () =>
|
|
5961
|
-
close: () =>
|
|
5963
|
+
open: () => k(!0),
|
|
5964
|
+
close: () => k(!1)
|
|
5962
5965
|
}),
|
|
5963
5966
|
[]
|
|
5964
5967
|
);
|
|
5965
|
-
const
|
|
5966
|
-
|
|
5967
|
-
const C = d ?
|
|
5968
|
+
const v = (G = r.find((_) => _.value === d)) == null ? void 0 : G.label;
|
|
5969
|
+
v && (S.current = v);
|
|
5970
|
+
const C = d ? v ?? S.current : "";
|
|
5968
5971
|
ge(() => {
|
|
5969
5972
|
if (m >= 0 && y.current && (r != null && r[m])) {
|
|
5970
5973
|
const _ = y.current.querySelector(
|
|
@@ -5973,56 +5976,56 @@ const Y = {
|
|
|
5973
5976
|
_ == null || _.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
5974
5977
|
}
|
|
5975
5978
|
}, [m, r]), ge(() => {
|
|
5976
|
-
|
|
5979
|
+
D(-1);
|
|
5977
5980
|
}, [r]);
|
|
5978
5981
|
const W = (_) => {
|
|
5979
|
-
|
|
5980
|
-
},
|
|
5981
|
-
o(_),
|
|
5982
|
+
k(_), _ && (h(""), D(-1));
|
|
5983
|
+
}, T = (_) => {
|
|
5984
|
+
o(_), k(!1);
|
|
5982
5985
|
}, I = (_) => {
|
|
5983
5986
|
if (r.length)
|
|
5984
5987
|
switch (_.key) {
|
|
5985
5988
|
case "ArrowDown": {
|
|
5986
|
-
_.preventDefault(),
|
|
5989
|
+
_.preventDefault(), D((E) => E < r.length - 1 ? E + 1 : 0);
|
|
5987
5990
|
break;
|
|
5988
5991
|
}
|
|
5989
5992
|
case "ArrowUp": {
|
|
5990
|
-
_.preventDefault(),
|
|
5993
|
+
_.preventDefault(), D((E) => E > 0 ? E - 1 : r.length - 1);
|
|
5991
5994
|
break;
|
|
5992
5995
|
}
|
|
5993
5996
|
case "Enter": {
|
|
5994
|
-
_.preventDefault(), m >= 0 && r[m] &&
|
|
5997
|
+
_.preventDefault(), m >= 0 && r[m] && T(r[m].value);
|
|
5995
5998
|
break;
|
|
5996
5999
|
}
|
|
5997
6000
|
case "Escape": {
|
|
5998
|
-
_.preventDefault(),
|
|
6001
|
+
_.preventDefault(), k(!1);
|
|
5999
6002
|
break;
|
|
6000
6003
|
}
|
|
6001
6004
|
}
|
|
6002
6005
|
}, z = (_) => {
|
|
6003
6006
|
_.preventDefault(), requestAnimationFrame(() => {
|
|
6004
6007
|
var E;
|
|
6005
|
-
(E =
|
|
6008
|
+
(E = B.current) == null || E.focus();
|
|
6006
6009
|
});
|
|
6007
6010
|
};
|
|
6008
|
-
return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */ p(ae, { open:
|
|
6011
|
+
return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */ p(ae, { open: s, onOpenChange: W, modal: !1, children: [
|
|
6009
6012
|
/* @__PURE__ */ p(
|
|
6010
6013
|
de,
|
|
6011
6014
|
{
|
|
6012
6015
|
role: "combobox",
|
|
6013
|
-
"aria-expanded":
|
|
6016
|
+
"aria-expanded": s,
|
|
6014
6017
|
disabled: i,
|
|
6015
6018
|
className: n(
|
|
6016
6019
|
$.base.trigger,
|
|
6017
6020
|
i && $.disabled.trigger,
|
|
6018
|
-
|
|
6019
|
-
!
|
|
6020
|
-
!
|
|
6021
|
+
s && $.base.focus,
|
|
6022
|
+
!s && !i && $.base.hover,
|
|
6023
|
+
!s && a && $.status.styles[a],
|
|
6021
6024
|
t == null ? void 0 : t.trigger
|
|
6022
6025
|
),
|
|
6023
6026
|
children: [
|
|
6024
6027
|
/* @__PURE__ */ e("div", { className: $.base.textWrapper, children: /* @__PURE__ */ e(
|
|
6025
|
-
|
|
6028
|
+
w,
|
|
6026
6029
|
{
|
|
6027
6030
|
className: n(
|
|
6028
6031
|
$.base.placeholder,
|
|
@@ -6036,7 +6039,7 @@ const Y = {
|
|
|
6036
6039
|
}
|
|
6037
6040
|
) }),
|
|
6038
6041
|
/* @__PURE__ */ e(
|
|
6039
|
-
|
|
6042
|
+
Ke,
|
|
6040
6043
|
{
|
|
6041
6044
|
width: 20,
|
|
6042
6045
|
height: 20,
|
|
@@ -6044,7 +6047,7 @@ const Y = {
|
|
|
6044
6047
|
className: n(
|
|
6045
6048
|
$.base.icon,
|
|
6046
6049
|
i && $.base.iconDisabled,
|
|
6047
|
-
|
|
6050
|
+
s && "-rotate-180",
|
|
6048
6051
|
"flex-shrink-0"
|
|
6049
6052
|
)
|
|
6050
6053
|
}
|
|
@@ -6058,7 +6061,7 @@ const Y = {
|
|
|
6058
6061
|
className: n("p-1", t == null ? void 0 : t.content),
|
|
6059
6062
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
6060
6063
|
onOpenAutoFocus: z,
|
|
6061
|
-
container:
|
|
6064
|
+
container: g,
|
|
6062
6065
|
children: [
|
|
6063
6066
|
/* @__PURE__ */ p("div", { className: $.search.wrapper, children: [
|
|
6064
6067
|
/* @__PURE__ */ e(
|
|
@@ -6072,7 +6075,7 @@ const Y = {
|
|
|
6072
6075
|
/* @__PURE__ */ e(
|
|
6073
6076
|
"input",
|
|
6074
6077
|
{
|
|
6075
|
-
ref:
|
|
6078
|
+
ref: B,
|
|
6076
6079
|
type: "text",
|
|
6077
6080
|
value: u,
|
|
6078
6081
|
onChange: (_) => h(_.target.value),
|
|
@@ -6099,10 +6102,10 @@ const Y = {
|
|
|
6099
6102
|
d === _.value && $.options.active
|
|
6100
6103
|
),
|
|
6101
6104
|
onClick: (ce) => {
|
|
6102
|
-
ce.preventDefault(), ce.stopPropagation(),
|
|
6105
|
+
ce.preventDefault(), ce.stopPropagation(), T(_.value);
|
|
6103
6106
|
},
|
|
6104
|
-
onMouseEnter: () =>
|
|
6105
|
-
children: /* @__PURE__ */ e(
|
|
6107
|
+
onMouseEnter: () => D(E),
|
|
6108
|
+
children: /* @__PURE__ */ e(w, { className: $.options.itemsText, children: _.label })
|
|
6106
6109
|
},
|
|
6107
6110
|
_.value
|
|
6108
6111
|
)) : !l && /* @__PURE__ */ e(
|
|
@@ -6112,7 +6115,7 @@ const Y = {
|
|
|
6112
6115
|
$.options.items,
|
|
6113
6116
|
"cursor-default"
|
|
6114
6117
|
),
|
|
6115
|
-
children: /* @__PURE__ */ e(
|
|
6118
|
+
children: /* @__PURE__ */ e(w, { className: $.options.itemsText, children: x })
|
|
6116
6119
|
}
|
|
6117
6120
|
)
|
|
6118
6121
|
] })
|
|
@@ -6162,7 +6165,7 @@ const Y = {
|
|
|
6162
6165
|
export {
|
|
6163
6166
|
wo as Accordion,
|
|
6164
6167
|
Qo as ApartmentCard,
|
|
6165
|
-
|
|
6168
|
+
Dt as AvatarGroup,
|
|
6166
6169
|
ko as Breadcrumb,
|
|
6167
6170
|
qo as CardFiles,
|
|
6168
6171
|
ai as CardMonthly,
|
|
@@ -6189,11 +6192,11 @@ export {
|
|
|
6189
6192
|
Io as FileUploader,
|
|
6190
6193
|
_o as FilterTable,
|
|
6191
6194
|
ni as FloorSelect,
|
|
6192
|
-
|
|
6193
|
-
|
|
6195
|
+
Ge as IconTitle,
|
|
6196
|
+
St as InputGroup,
|
|
6194
6197
|
Me as LabelWithValue,
|
|
6195
6198
|
Ao as Languages,
|
|
6196
|
-
|
|
6199
|
+
Ee as Link,
|
|
6197
6200
|
ti as MessageSettings,
|
|
6198
6201
|
To as MultiSelect,
|
|
6199
6202
|
Hn as NavButton,
|
|
@@ -6223,9 +6226,9 @@ export {
|
|
|
6223
6226
|
Do as UploadInput,
|
|
6224
6227
|
Ko as UserContact,
|
|
6225
6228
|
ve as accordionTokens,
|
|
6226
|
-
|
|
6229
|
+
oe as apartmentCardTokens,
|
|
6227
6230
|
Fe as avatarTokens,
|
|
6228
|
-
|
|
6231
|
+
qe as breadcrumnbTokens,
|
|
6229
6232
|
H as cardFilesTokens,
|
|
6230
6233
|
ze as cardMonthlyTokens,
|
|
6231
6234
|
q as cardPieChartTokens,
|
|
@@ -6236,30 +6239,30 @@ export {
|
|
|
6236
6239
|
Ie as chatButtonTokens,
|
|
6237
6240
|
Se as chatCardTokens,
|
|
6238
6241
|
Rt as chatListTokens,
|
|
6239
|
-
|
|
6242
|
+
Pe as chatMessageTokens,
|
|
6240
6243
|
Le as chatSidebarTokens,
|
|
6241
6244
|
pe as checkboxGroupTokens,
|
|
6242
6245
|
$ as comboboxTokens,
|
|
6243
|
-
|
|
6246
|
+
Qe as commentInputTokens,
|
|
6244
6247
|
U as commentItemTokens,
|
|
6245
6248
|
Ot as dateOfBirthClasses,
|
|
6246
|
-
|
|
6249
|
+
j as datePickerTokens,
|
|
6247
6250
|
In as dateRangePickerTokens,
|
|
6248
6251
|
_n as dayPickerClasses,
|
|
6249
|
-
|
|
6252
|
+
Ne as deleteMessageTokens,
|
|
6250
6253
|
je as dragAndDropTokens,
|
|
6251
6254
|
_t as dropdownTokens,
|
|
6252
6255
|
K as fileUploaderTokens,
|
|
6253
|
-
|
|
6256
|
+
ht as filterTableTokens,
|
|
6254
6257
|
he as floorSelectTokens,
|
|
6255
6258
|
At as iconTitleTokens,
|
|
6256
|
-
|
|
6259
|
+
Je as inputGroupTokens,
|
|
6257
6260
|
Ft as labelWithValueTokens,
|
|
6258
|
-
|
|
6261
|
+
ut as languagesTokens,
|
|
6259
6262
|
Un as linkTokens,
|
|
6260
|
-
|
|
6263
|
+
xt as messageSettingsTokens,
|
|
6261
6264
|
R as multiSelectTokens,
|
|
6262
|
-
|
|
6265
|
+
ft as navButtonTokens,
|
|
6263
6266
|
bn as passwordInputTokens,
|
|
6264
6267
|
P as paymentCardTokens,
|
|
6265
6268
|
ye as phoneInputTokens,
|
|
@@ -6271,14 +6274,14 @@ export {
|
|
|
6271
6274
|
Yn as selectGroupTokens,
|
|
6272
6275
|
Y as selectListTokens,
|
|
6273
6276
|
Ce as serviceOrdersTokens,
|
|
6274
|
-
|
|
6277
|
+
Xe as sidebarTokens,
|
|
6275
6278
|
$e as statusSelectTokens,
|
|
6276
6279
|
V as stepperTokens,
|
|
6277
6280
|
Be as tabGroupTokens,
|
|
6278
6281
|
Vn as tabListTokens,
|
|
6279
|
-
|
|
6282
|
+
J as tableTokens,
|
|
6280
6283
|
Mt as textareaGroupTokens,
|
|
6281
6284
|
$n as toggleGroupTokens,
|
|
6282
6285
|
me as uploadInputTokens,
|
|
6283
|
-
|
|
6286
|
+
bt as userContactTokens
|
|
6284
6287
|
};
|