@namuna-nur/ui-kit 1.10.6 → 1.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/atoms/index.js +549 -1734
- package/lib/index.js +29 -27
- package/lib/molecules/index.js +918 -917
- package/lib/src/atoms/ReplyMessage/ReplyMessage.data.d.ts +1 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.stories.d.ts +2 -3
- package/lib/src/atoms/ReplyMessage/ReplyMessage.types.d.ts +3 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.utils.d.ts +1 -0
- package/lib/src/molecules/CardFiles/CardFiles.types.d.ts +2 -2
- package/lib/src/molecules/ChatMessage/ChatMessage.d.ts +1 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.types.d.ts +1 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.d.ts +1 -1
- package/lib/src/molecules/DocumentMessage/DocumentMessage.data.d.ts +3 -3
- package/lib/src/molecules/DocumentMessage/DocumentMessage.types.d.ts +2 -2
- package/lib/src/molecules/FileCard/FileCard.d.ts +1 -1
- package/lib/src/molecules/FileCard/FileCard.types.d.ts +1 -1
- package/lib/src/molecules/Message/Message.types.d.ts +9 -0
- package/lib/src/molecules/PaymentCard/PaymentCard.d.ts +1 -1
- package/lib/src/molecules/PaymentCard/PaymentCard.types.d.ts +1 -1
- package/lib/src/utils/date.d.ts +2 -0
- package/lib/utils/index.js +37 -29
- package/package.json +1 -1
package/lib/molecules/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as u, jsx as e, Fragment as ct } from "react/jsx-runtime";
|
|
2
2
|
import * as z from "react";
|
|
3
|
-
import
|
|
4
|
-
import { S as Je, b as
|
|
5
|
-
import { cn as r, formatFileSize as ft, DATE_FORMAT_DAY_MONTH_YEAR_DASH as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useReactTable as
|
|
8
|
-
import { b as
|
|
9
|
-
import { Link as Pe, useSearchParams as
|
|
10
|
-
import { S as
|
|
11
|
-
import { P as ae, b as le, c as pe, D as
|
|
12
|
-
import { b as Ke, c as
|
|
13
|
-
import { useDebounce as
|
|
14
|
-
import * as
|
|
15
|
-
import { e as
|
|
16
|
-
import { useMask as
|
|
17
|
-
import { format as
|
|
18
|
-
import { ru as
|
|
19
|
-
import { DayPicker as
|
|
20
|
-
import
|
|
3
|
+
import Pt, { forwardRef as Q, useState as A, useRef as oe, useImperativeHandle as Nt, useEffect as ve, Fragment as Tr, useMemo as ht, useCallback as nt } from "react";
|
|
4
|
+
import { S as Je, b as Br, c as se, d as Sr, e as Dr, f as er, g as tr, h as jr, i as rr, j as Ir, k as _r, l as Wr, m as Ar, n as Mr, o as _t, p as Or, q as Fr } from "../shared/assets-icons-2.js";
|
|
5
|
+
import { cn as r, formatFileSize as ft, DATE_FORMAT_DAY_MONTH_YEAR_DASH as Ht, formatDateToDayMonthYear as Rr, formatDate as xt, numberFormat as $r, formatTime as bt } from "../utils/index.js";
|
|
6
|
+
import { Checkbox as Wt, Label as P, Spinner as gt, Text as w, Button as O, Avatar as nr, IconButton as Mt, Select as De, Textarea as or, Radio as ir, Status as qe, Toggle as Lr, Headline as ut, Input as zr, Tab as Hr, ReplyMessage as Ur } from "../atoms/index.js";
|
|
7
|
+
import { useReactTable as Yr, getCoreRowModel as Er, flexRender as Ut } from "@tanstack/react-table";
|
|
8
|
+
import { b as Gr, c as Vr, d as qr, e as Kr, f as Zr, g as Qr, h as Xr } from "../shared/assets-icons-3.js";
|
|
9
|
+
import { Link as Pe, useSearchParams as Ot, useNavigate as dr, NavLink as Ft } from "react-router-dom";
|
|
10
|
+
import { S as Jr, a as Pr, b as Nr, c as en, d as tn, e as ar, f as Rt } from "../shared/assets-icons-1.js";
|
|
11
|
+
import { P as ae, b as le, c as pe, D as vt, d as st, e as mt, f as $t, A as rn, g as nn, h as on, i as dn, j as lr, k as pr, l as cr, m as an, n as ln, o as pn } from "../shared/shared.js";
|
|
12
|
+
import { b as Ke, c as cn, d as ur, e as hr, f as un, g as hn, h as fn, i as xn, j as $e, k as bn, l as gn, m as vn, n as Ne } from "../shared/assets-icons-4.js";
|
|
13
|
+
import { useDebounce as fr, useOption as xr } from "../hooks/index.js";
|
|
14
|
+
import * as br from "@radix-ui/react-toggle";
|
|
15
|
+
import { e as gr, f as sn, g as mn, h as wn, i as vr, j as Le, k as Yt, l as yn } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { useMask as sr, format as kt } from "@react-input/mask";
|
|
17
|
+
import { format as N, addMonths as kn, parse as At, isValid as Fe, parseISO as Cn } from "date-fns";
|
|
18
|
+
import { ru as Ct } from "date-fns/locale";
|
|
19
|
+
import { DayPicker as Tn } from "react-day-picker";
|
|
20
|
+
import wt from "echarts-for-react/lib/core";
|
|
21
21
|
import { colorTokens as Ze } from "../tokens/index.js";
|
|
22
|
-
import * as
|
|
23
|
-
const
|
|
22
|
+
import * as yt from "echarts/core";
|
|
23
|
+
const Lo = ({
|
|
24
24
|
isOpen: t,
|
|
25
25
|
children: d,
|
|
26
26
|
icon: i,
|
|
@@ -31,7 +31,7 @@ const Ro = ({
|
|
|
31
31
|
classNames: a,
|
|
32
32
|
onClick: h
|
|
33
33
|
}) => {
|
|
34
|
-
const p = me.root, f = me.header, g = me.icon,
|
|
34
|
+
const p = me.root, f = me.header, g = me.icon, b = me.content, x = me.titlesWrapper, s = me.title, y = me.subtitle;
|
|
35
35
|
return /* @__PURE__ */ u("div", { className: r(p, a == null ? void 0 : a.root), children: [
|
|
36
36
|
/* @__PURE__ */ u(
|
|
37
37
|
"button",
|
|
@@ -47,7 +47,7 @@ const Ro = ({
|
|
|
47
47
|
),
|
|
48
48
|
onClick: h,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
50
|
+
/* @__PURE__ */ u("div", { className: r(x, a == null ? void 0 : a.wrapperTitles), children: [
|
|
51
51
|
/* @__PURE__ */ u("div", { className: f.title, children: [
|
|
52
52
|
!!i && /* @__PURE__ */ e(
|
|
53
53
|
i,
|
|
@@ -74,7 +74,7 @@ const Ro = ({
|
|
|
74
74
|
"span",
|
|
75
75
|
{
|
|
76
76
|
className: r(
|
|
77
|
-
|
|
77
|
+
y,
|
|
78
78
|
n && "text-dark-30/25",
|
|
79
79
|
a == null ? void 0 : a.subtitle
|
|
80
80
|
),
|
|
@@ -105,8 +105,8 @@ const Ro = ({
|
|
|
105
105
|
role: "group",
|
|
106
106
|
"aria-hidden": "true",
|
|
107
107
|
className: r(
|
|
108
|
-
|
|
109
|
-
t ?
|
|
108
|
+
b.base,
|
|
109
|
+
t ? b.opened : b.closed,
|
|
110
110
|
a == null ? void 0 : a.content
|
|
111
111
|
),
|
|
112
112
|
onClick: (m) => m.stopPropagation(),
|
|
@@ -132,7 +132,7 @@ const Ro = ({
|
|
|
132
132
|
titlesWrapper: "flex flex-col items-start gap-1",
|
|
133
133
|
title: "text-sidebar-30 text-xs font-sans font-semibold leading-none",
|
|
134
134
|
subtitle: "text-gray-20 text-[11px] font-sans font-medium leading-none"
|
|
135
|
-
},
|
|
135
|
+
}, Bn = ({
|
|
136
136
|
id: t,
|
|
137
137
|
label: d,
|
|
138
138
|
labelPosition: i = "right",
|
|
@@ -152,7 +152,7 @@ const Ro = ({
|
|
|
152
152
|
),
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
Wt,
|
|
156
156
|
{
|
|
157
157
|
id: t,
|
|
158
158
|
checked: c,
|
|
@@ -165,7 +165,7 @@ const Ro = ({
|
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
167
|
!!d && /* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
P,
|
|
169
169
|
{
|
|
170
170
|
htmlFor: t,
|
|
171
171
|
className: r(
|
|
@@ -195,7 +195,7 @@ const Ro = ({
|
|
|
195
195
|
},
|
|
196
196
|
disabled: "text-tertiary-30"
|
|
197
197
|
};
|
|
198
|
-
function
|
|
198
|
+
function zo({
|
|
199
199
|
classNames: t,
|
|
200
200
|
columns: d,
|
|
201
201
|
data: i,
|
|
@@ -207,51 +207,51 @@ function $o({
|
|
|
207
207
|
isCheckboxVisible: a = !0,
|
|
208
208
|
isLoading: h = !1
|
|
209
209
|
}) {
|
|
210
|
-
const p =
|
|
210
|
+
const p = Yr({
|
|
211
211
|
columns: d,
|
|
212
212
|
data: i,
|
|
213
|
-
getCoreRowModel:
|
|
213
|
+
getCoreRowModel: Er(),
|
|
214
214
|
manualSorting: !0
|
|
215
|
-
}), f = (
|
|
216
|
-
const s = c == null ? void 0 : c.find((m) => m.id ===
|
|
217
|
-
l == null || l({ key:
|
|
218
|
-
}, g = (
|
|
219
|
-
o != null && o.includes(
|
|
220
|
-
},
|
|
221
|
-
const
|
|
222
|
-
var
|
|
223
|
-
return (
|
|
215
|
+
}), f = (x) => {
|
|
216
|
+
const s = c == null ? void 0 : c.find((m) => m.id === x), y = s != null && s.desc ? "asc" : "desc";
|
|
217
|
+
l == null || l({ key: x, order: y });
|
|
218
|
+
}, g = (x) => {
|
|
219
|
+
o != null && o.includes(x) ? n(o.filter((s) => s !== x)) : n([...o, x]);
|
|
220
|
+
}, b = () => {
|
|
221
|
+
const x = p.getCoreRowModel().rows.map((s) => {
|
|
222
|
+
var y;
|
|
223
|
+
return (y = s.original) == null ? void 0 : y.id;
|
|
224
224
|
});
|
|
225
|
-
(o == null ? void 0 : o.length) ===
|
|
225
|
+
(o == null ? void 0 : o.length) === x.length ? n([]) : n(x);
|
|
226
226
|
};
|
|
227
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
228
|
-
h && /* @__PURE__ */ e(
|
|
229
|
-
!h && !i.length && /* @__PURE__ */ u("div", { className:
|
|
230
|
-
/* @__PURE__ */ e(
|
|
231
|
-
/* @__PURE__ */ e(
|
|
227
|
+
return /* @__PURE__ */ u("div", { className: r(X.root, t == null ? void 0 : t.root), children: [
|
|
228
|
+
h && /* @__PURE__ */ e(gt, {}),
|
|
229
|
+
!h && !i.length && /* @__PURE__ */ u("div", { className: X.info, children: [
|
|
230
|
+
/* @__PURE__ */ e(Gr, { className: "fill-dark-30/50" }),
|
|
231
|
+
/* @__PURE__ */ e(w, { className: X.infoText, children: "Нет данных" })
|
|
232
232
|
] }),
|
|
233
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
234
|
-
/* @__PURE__ */ e("thead", { className:
|
|
235
|
-
var s,
|
|
233
|
+
/* @__PURE__ */ e("div", { className: r(X.container, t == null ? void 0 : t.container), children: /* @__PURE__ */ u("table", { className: r(X.table, t == null ? void 0 : t.table), children: [
|
|
234
|
+
/* @__PURE__ */ e("thead", { className: X.tableHeader, children: p.getHeaderGroups().map((x) => {
|
|
235
|
+
var s, y;
|
|
236
236
|
return /* @__PURE__ */ u("tr", { children: [
|
|
237
237
|
a && /* @__PURE__ */ e(
|
|
238
238
|
"th",
|
|
239
239
|
{
|
|
240
240
|
className: r(
|
|
241
|
-
|
|
241
|
+
X.firstHeaderCell,
|
|
242
242
|
t == null ? void 0 : t.firstHeaderCell
|
|
243
243
|
),
|
|
244
244
|
children: /* @__PURE__ */ e(
|
|
245
|
-
|
|
245
|
+
Wt,
|
|
246
246
|
{
|
|
247
247
|
id: "selectAll",
|
|
248
|
-
checked: (o == null ? void 0 : o.length) === ((
|
|
249
|
-
onChange:
|
|
248
|
+
checked: (o == null ? void 0 : o.length) === ((y = (s = p == null ? void 0 : p.getCoreRowModel()) == null ? void 0 : s.rows) == null ? void 0 : y.length),
|
|
249
|
+
onChange: b
|
|
250
250
|
}
|
|
251
251
|
)
|
|
252
252
|
}
|
|
253
253
|
),
|
|
254
|
-
|
|
254
|
+
x.headers.map((m, B) => {
|
|
255
255
|
var j;
|
|
256
256
|
const S = m.column.columnDef.meta;
|
|
257
257
|
return /* @__PURE__ */ e(
|
|
@@ -259,22 +259,22 @@ function $o({
|
|
|
259
259
|
{
|
|
260
260
|
colSpan: m.colSpan,
|
|
261
261
|
className: r(
|
|
262
|
-
|
|
262
|
+
X.headerCell,
|
|
263
263
|
S == null ? void 0 : S.headerClass,
|
|
264
|
-
m.index ===
|
|
265
|
-
!a && B === 0 &&
|
|
264
|
+
m.index === x.headers.length - 1 && "rounded-r-[10px]",
|
|
265
|
+
!a && B === 0 && X.firstHeaderCell
|
|
266
266
|
),
|
|
267
267
|
onClick: () => (S == null ? void 0 : S.isSortable) && f(m.column.id),
|
|
268
|
-
children: /* @__PURE__ */ u("div", { className:
|
|
269
|
-
|
|
268
|
+
children: /* @__PURE__ */ u("div", { className: X.headerText, children: [
|
|
269
|
+
Ut(
|
|
270
270
|
m.column.columnDef.header,
|
|
271
271
|
m.getContext()
|
|
272
272
|
),
|
|
273
273
|
(S == null ? void 0 : S.isSortable) && /* @__PURE__ */ e(
|
|
274
|
-
|
|
274
|
+
Br,
|
|
275
275
|
{
|
|
276
276
|
className: r(
|
|
277
|
-
|
|
277
|
+
X.sortIcon,
|
|
278
278
|
(j = c == null ? void 0 : c.find((k) => k.id === m.column.id)) != null && j.desc ? "rotate-0" : "rotate-180"
|
|
279
279
|
)
|
|
280
280
|
}
|
|
@@ -284,16 +284,16 @@ function $o({
|
|
|
284
284
|
m.id
|
|
285
285
|
);
|
|
286
286
|
})
|
|
287
|
-
] },
|
|
287
|
+
] }, x.id);
|
|
288
288
|
}) }),
|
|
289
|
-
/* @__PURE__ */ e("tbody", { children: p.getRowModel().rows.map((
|
|
290
|
-
var
|
|
291
|
-
const s = (
|
|
289
|
+
/* @__PURE__ */ e("tbody", { children: p.getRowModel().rows.map((x) => {
|
|
290
|
+
var y;
|
|
291
|
+
const s = (y = x.original) == null ? void 0 : y.id;
|
|
292
292
|
return /* @__PURE__ */ u(
|
|
293
293
|
"tr",
|
|
294
294
|
{
|
|
295
295
|
className: r(
|
|
296
|
-
|
|
296
|
+
X.row,
|
|
297
297
|
(o == null ? void 0 : o.includes(s)) && "bg-gray-50"
|
|
298
298
|
),
|
|
299
299
|
children: [
|
|
@@ -301,32 +301,32 @@ function $o({
|
|
|
301
301
|
"td",
|
|
302
302
|
{
|
|
303
303
|
className: r(
|
|
304
|
-
|
|
304
|
+
X.firstBodyCell,
|
|
305
305
|
t == null ? void 0 : t.firstBodyCell
|
|
306
306
|
),
|
|
307
307
|
children: /* @__PURE__ */ e(
|
|
308
|
-
|
|
308
|
+
Wt,
|
|
309
309
|
{
|
|
310
|
-
id:
|
|
310
|
+
id: x.id,
|
|
311
311
|
checked: o == null ? void 0 : o.includes(s),
|
|
312
312
|
onChange: () => g(s)
|
|
313
313
|
}
|
|
314
314
|
)
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
|
-
|
|
317
|
+
x.getVisibleCells().map((m, B, S) => {
|
|
318
318
|
const j = m.column.columnDef.meta;
|
|
319
319
|
return /* @__PURE__ */ e(
|
|
320
320
|
"td",
|
|
321
321
|
{
|
|
322
322
|
className: r(
|
|
323
|
-
|
|
324
|
-
(o == null ? void 0 : o.includes(
|
|
323
|
+
X.bodyCell,
|
|
324
|
+
(o == null ? void 0 : o.includes(x.id)) && "font-bold",
|
|
325
325
|
B === S.length - 1 && "rounded-r-[10px]",
|
|
326
326
|
!a && B === 0 && "px-8",
|
|
327
327
|
j == null ? void 0 : j.cellClass
|
|
328
328
|
),
|
|
329
|
-
children:
|
|
329
|
+
children: Ut(
|
|
330
330
|
m.column.columnDef.cell,
|
|
331
331
|
m.getContext()
|
|
332
332
|
)
|
|
@@ -336,13 +336,13 @@ function $o({
|
|
|
336
336
|
})
|
|
337
337
|
]
|
|
338
338
|
},
|
|
339
|
-
|
|
339
|
+
x.id
|
|
340
340
|
);
|
|
341
341
|
}) })
|
|
342
342
|
] }) })
|
|
343
343
|
] });
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const X = {
|
|
346
346
|
root: "relative flex flex-col flex-1 min-h-0 h-full justify-between bg-sidebar-10 transition-all duration-500 ease-in-out",
|
|
347
347
|
container: "flex-1 overflow-auto [scrollbar-gutter:stable]",
|
|
348
348
|
table: "w-full border-none ",
|
|
@@ -357,7 +357,7 @@ const J = {
|
|
|
357
357
|
sortIcon: "transition-transform duration-200 fill-dark-50",
|
|
358
358
|
info: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex flex-col gap-1 items-center justify-center",
|
|
359
359
|
infoText: "text-sm font-semibold text-dark-40/50 font-mono"
|
|
360
|
-
},
|
|
360
|
+
}, Sn = z.forwardRef(({ ...t }, d) => /* @__PURE__ */ e("nav", { ref: d, "aria-label": "breadcrumb", ...t })), Dn = z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e("ol", { ref: i, className: r(et.list, t), ...d })), jn = z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e("li", { ref: i, className: r(et.item, t), ...d })), In = z.forwardRef(
|
|
361
361
|
({ className: t, ...d }, i) => /* @__PURE__ */ e(
|
|
362
362
|
Pe,
|
|
363
363
|
{
|
|
@@ -378,7 +378,7 @@ z.forwardRef(({ className: t, ...d }, i) => /* @__PURE__ */ e(
|
|
|
378
378
|
...d
|
|
379
379
|
}
|
|
380
380
|
));
|
|
381
|
-
const
|
|
381
|
+
const _n = ({
|
|
382
382
|
children: t,
|
|
383
383
|
className: d,
|
|
384
384
|
...i
|
|
@@ -391,8 +391,8 @@ const jn = ({
|
|
|
391
391
|
...i,
|
|
392
392
|
children: t
|
|
393
393
|
}
|
|
394
|
-
),
|
|
395
|
-
|
|
394
|
+
), Ho = ({ paths: t }) => /* @__PURE__ */ e(Sn, { children: /* @__PURE__ */ e(Dn, { children: t.map((d, i) => /* @__PURE__ */ e(
|
|
395
|
+
Wn,
|
|
396
396
|
{
|
|
397
397
|
label: d.label,
|
|
398
398
|
href: d.href,
|
|
@@ -400,19 +400,19 @@ const jn = ({
|
|
|
400
400
|
isLast: i === t.length - 1
|
|
401
401
|
},
|
|
402
402
|
d.label
|
|
403
|
-
)) }) }),
|
|
403
|
+
)) }) }), Wn = ({
|
|
404
404
|
href: t,
|
|
405
405
|
isLast: d,
|
|
406
406
|
label: i,
|
|
407
407
|
disabled: o
|
|
408
408
|
}) => /* @__PURE__ */ u(ct, { children: [
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
|
|
409
|
+
/* @__PURE__ */ e(jn, { children: /* @__PURE__ */ e(
|
|
410
|
+
In,
|
|
411
411
|
{
|
|
412
412
|
className: r(d && "pointer-events-none"),
|
|
413
413
|
to: o ? "/" : t,
|
|
414
414
|
children: /* @__PURE__ */ e(
|
|
415
|
-
|
|
415
|
+
w,
|
|
416
416
|
{
|
|
417
417
|
variant: "p",
|
|
418
418
|
className: r(
|
|
@@ -425,14 +425,14 @@ const jn = ({
|
|
|
425
425
|
)
|
|
426
426
|
}
|
|
427
427
|
) }),
|
|
428
|
-
!d && /* @__PURE__ */ e(
|
|
428
|
+
!d && /* @__PURE__ */ e(_n, { className: "text-dark-40/[.50] font-medium", children: "/" })
|
|
429
429
|
] }), et = {
|
|
430
430
|
list: "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2",
|
|
431
431
|
item: "inline-flex items-center gap-1.5",
|
|
432
432
|
link: "transition-colors hover:text-foreground",
|
|
433
433
|
page: "font-normal text-foreground",
|
|
434
434
|
separator: "[&>svg]:w-3.5 [&>svg]:h-3.5"
|
|
435
|
-
},
|
|
435
|
+
}, Uo = ({
|
|
436
436
|
disabled: t = !1,
|
|
437
437
|
value: d,
|
|
438
438
|
placeholder: i = "Введите пароль",
|
|
@@ -445,14 +445,14 @@ const jn = ({
|
|
|
445
445
|
classNames: p,
|
|
446
446
|
...f
|
|
447
447
|
}) => /* @__PURE__ */ e(
|
|
448
|
-
|
|
448
|
+
zt,
|
|
449
449
|
{
|
|
450
450
|
label: c,
|
|
451
451
|
iconPosition: "right",
|
|
452
|
-
icon: l ?
|
|
452
|
+
icon: l ? Jr : Pr,
|
|
453
453
|
onIconClick: h,
|
|
454
454
|
classNames: {
|
|
455
|
-
icon:
|
|
455
|
+
icon: An.icon,
|
|
456
456
|
label: p == null ? void 0 : p.label,
|
|
457
457
|
parent: p == null ? void 0 : p.parent,
|
|
458
458
|
base: p == null ? void 0 : p.base
|
|
@@ -469,9 +469,9 @@ const jn = ({
|
|
|
469
469
|
type: l ? "text" : "password"
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
),
|
|
472
|
+
), An = {
|
|
473
473
|
icon: "size-6 fill-gray-20"
|
|
474
|
-
},
|
|
474
|
+
}, Yo = Q(
|
|
475
475
|
({
|
|
476
476
|
label: t,
|
|
477
477
|
options: d,
|
|
@@ -484,14 +484,14 @@ const jn = ({
|
|
|
484
484
|
classNames: h,
|
|
485
485
|
inputPlaceholder: p
|
|
486
486
|
}, f) => {
|
|
487
|
-
const [g,
|
|
488
|
-
|
|
487
|
+
const [g, b] = A(""), [x, s] = A(!1), y = oe(null), m = oe(null);
|
|
488
|
+
Nt(f, () => ({
|
|
489
489
|
open: () => s(!0),
|
|
490
490
|
close: () => s(!1),
|
|
491
491
|
toggle: () => s((v) => !v),
|
|
492
492
|
focus: () => {
|
|
493
493
|
var v;
|
|
494
|
-
return (v =
|
|
494
|
+
return (v = y.current) == null ? void 0 : v.focus();
|
|
495
495
|
}
|
|
496
496
|
}), []);
|
|
497
497
|
const B = (v) => {
|
|
@@ -501,28 +501,28 @@ const jn = ({
|
|
|
501
501
|
const D = l.some((I) => I.value === v);
|
|
502
502
|
a(
|
|
503
503
|
D ? l.filter((I) => I.value !== v) : [...l, C]
|
|
504
|
-
),
|
|
504
|
+
), b(""), (T = y.current) == null || T.focus();
|
|
505
505
|
}, S = (v, C) => {
|
|
506
506
|
var D;
|
|
507
|
-
C.stopPropagation(), a(l.filter((T) => T.value !== v)), (D =
|
|
507
|
+
C.stopPropagation(), a(l.filter((T) => T.value !== v)), (D = y.current) == null || D.focus();
|
|
508
508
|
}, j = (v) => {
|
|
509
|
-
|
|
509
|
+
b(v.target.value.toLowerCase());
|
|
510
510
|
}, k = d.filter(
|
|
511
511
|
(v) => v.label.toLowerCase().includes(g)
|
|
512
512
|
);
|
|
513
513
|
return /* @__PURE__ */ u("div", { className: r("flex flex-col", h == null ? void 0 : h.wrapper), children: [
|
|
514
514
|
/* @__PURE__ */ u("div", { className: L.labelWrapper, children: [
|
|
515
|
-
!!t && /* @__PURE__ */ e(
|
|
515
|
+
!!t && /* @__PURE__ */ e(P, { disabled: o, className: h == null ? void 0 : h.label, children: t }),
|
|
516
516
|
n === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
517
517
|
] }),
|
|
518
518
|
/* @__PURE__ */ u(
|
|
519
519
|
ae,
|
|
520
520
|
{
|
|
521
521
|
modal: !1,
|
|
522
|
-
open:
|
|
522
|
+
open: x,
|
|
523
523
|
onOpenChange: () => {
|
|
524
524
|
var v;
|
|
525
|
-
o || ((v =
|
|
525
|
+
o || ((v = y.current) == null || v.focus(), s(!x));
|
|
526
526
|
},
|
|
527
527
|
children: [
|
|
528
528
|
/* @__PURE__ */ e(
|
|
@@ -536,7 +536,7 @@ const jn = ({
|
|
|
536
536
|
{
|
|
537
537
|
[L.hoverTrigger]: !o,
|
|
538
538
|
[L.status.danger]: n === "danger",
|
|
539
|
-
[L.focusTrigger]:
|
|
539
|
+
[L.focusTrigger]: x || l.length > 0,
|
|
540
540
|
"pl-1.5 pr-3.5 py-[5px]": l.length > 0,
|
|
541
541
|
[L.disabled.trigger]: o
|
|
542
542
|
},
|
|
@@ -544,7 +544,7 @@ const jn = ({
|
|
|
544
544
|
),
|
|
545
545
|
children: /* @__PURE__ */ u("div", { className: L.selectedItems, children: [
|
|
546
546
|
l.length === 0 && /* @__PURE__ */ e(
|
|
547
|
-
|
|
547
|
+
w,
|
|
548
548
|
{
|
|
549
549
|
className: r(
|
|
550
550
|
L.text,
|
|
@@ -559,7 +559,7 @@ const jn = ({
|
|
|
559
559
|
className: L.selectedItem,
|
|
560
560
|
children: [
|
|
561
561
|
/* @__PURE__ */ e(
|
|
562
|
-
|
|
562
|
+
w,
|
|
563
563
|
{
|
|
564
564
|
className: L.selectedItemText,
|
|
565
565
|
variant: "p",
|
|
@@ -595,7 +595,7 @@ const jn = ({
|
|
|
595
595
|
viewBox: "0 0 20 20",
|
|
596
596
|
className: r(
|
|
597
597
|
L.arrowIcon,
|
|
598
|
-
|
|
598
|
+
x && "-rotate-180"
|
|
599
599
|
)
|
|
600
600
|
}
|
|
601
601
|
)
|
|
@@ -609,11 +609,11 @@ const jn = ({
|
|
|
609
609
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
610
610
|
className: r(L.options),
|
|
611
611
|
children: [
|
|
612
|
-
/* @__PURE__ */ e(
|
|
612
|
+
/* @__PURE__ */ e(w, { className: L.popoverLabel, children: t }),
|
|
613
613
|
c && /* @__PURE__ */ e("div", { className: L.wrapperInput, children: /* @__PURE__ */ e(
|
|
614
614
|
"input",
|
|
615
615
|
{
|
|
616
|
-
ref:
|
|
616
|
+
ref: y,
|
|
617
617
|
onChange: j,
|
|
618
618
|
value: g,
|
|
619
619
|
autoFocus: !0,
|
|
@@ -622,7 +622,7 @@ const jn = ({
|
|
|
622
622
|
}
|
|
623
623
|
) }),
|
|
624
624
|
k.length > 0 ? k.map((v, C, D) => /* @__PURE__ */ e(
|
|
625
|
-
|
|
625
|
+
Bn,
|
|
626
626
|
{
|
|
627
627
|
id: v.value.toString(),
|
|
628
628
|
"data-testid": "menuitemcheckbox",
|
|
@@ -702,7 +702,7 @@ const jn = ({
|
|
|
702
702
|
status: {
|
|
703
703
|
danger: "border-danger-20 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
704
704
|
}
|
|
705
|
-
},
|
|
705
|
+
}, Mn = Q(
|
|
706
706
|
({
|
|
707
707
|
value: t,
|
|
708
708
|
onChange: d,
|
|
@@ -716,21 +716,21 @@ const jn = ({
|
|
|
716
716
|
onResultClick: p,
|
|
717
717
|
isSearchIcon: f = !0,
|
|
718
718
|
isSearchResultDisabled: g = !0,
|
|
719
|
-
isLoading:
|
|
720
|
-
classNames:
|
|
719
|
+
isLoading: b = !1,
|
|
720
|
+
classNames: x,
|
|
721
721
|
...s
|
|
722
|
-
},
|
|
723
|
-
const [m, B] =
|
|
722
|
+
}, y) => {
|
|
723
|
+
const [m, B] = A({
|
|
724
724
|
id: "",
|
|
725
725
|
label: ""
|
|
726
|
-
}), [S, j] =
|
|
726
|
+
}), [S, j] = A(!1), [k, v] = A(!1), C = fr(t, l);
|
|
727
727
|
ve(() => {
|
|
728
728
|
j(!!C), a == null || a(C);
|
|
729
729
|
}, [C, a]);
|
|
730
|
-
const D = re.base, T = re.hover, I = re.focus, { focusWithin: F } = re,
|
|
731
|
-
/* @__PURE__ */ e(
|
|
730
|
+
const D = re.base, T = re.hover, I = re.focus, { focusWithin: F } = re, V = re.disabled, ie = re.input, ce = re.button, xe = re.filterIcon, M = re.dropdown, K = re.popover, W = re.emptyPopover, H = re.options, tt = ({ title: je, items: ze }) => /* @__PURE__ */ u(Tr, { children: [
|
|
731
|
+
/* @__PURE__ */ e(w, { className: M.typeFilter, children: je }),
|
|
732
732
|
/* @__PURE__ */ e("div", { className: H.items, children: ze == null ? void 0 : ze.map((rt) => /* @__PURE__ */ e(
|
|
733
|
-
|
|
733
|
+
w,
|
|
734
734
|
{
|
|
735
735
|
onClick: () => B(rt),
|
|
736
736
|
className: r(
|
|
@@ -750,12 +750,12 @@ const jn = ({
|
|
|
750
750
|
!i && F,
|
|
751
751
|
(k || S) && !i && I,
|
|
752
752
|
!(k || S) && !i && T,
|
|
753
|
-
i &&
|
|
754
|
-
|
|
753
|
+
i && V,
|
|
754
|
+
x == null ? void 0 : x.base
|
|
755
755
|
),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */ u(
|
|
758
|
-
/* @__PURE__ */ e(
|
|
757
|
+
/* @__PURE__ */ u(vt, { open: k, onOpenChange: v, children: [
|
|
758
|
+
/* @__PURE__ */ e(st, { asChild: !0, disabled: i, children: o && /* @__PURE__ */ e(
|
|
759
759
|
"button",
|
|
760
760
|
{
|
|
761
761
|
role: "button",
|
|
@@ -764,7 +764,7 @@ const jn = ({
|
|
|
764
764
|
type: "button",
|
|
765
765
|
className: "outline-none",
|
|
766
766
|
children: /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
cn,
|
|
768
768
|
{
|
|
769
769
|
width: 14,
|
|
770
770
|
height: 14,
|
|
@@ -779,16 +779,16 @@ const jn = ({
|
|
|
779
779
|
}
|
|
780
780
|
) }),
|
|
781
781
|
/* @__PURE__ */ u(
|
|
782
|
-
|
|
782
|
+
mt,
|
|
783
783
|
{
|
|
784
784
|
align: "start",
|
|
785
785
|
sideOffset: 18,
|
|
786
786
|
alignOffset: -12,
|
|
787
787
|
onInteractOutside: (je) => je.preventDefault(),
|
|
788
|
-
className: r(
|
|
788
|
+
className: r(M.content, x == null ? void 0 : x.dropdown),
|
|
789
789
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
790
790
|
children: [
|
|
791
|
-
/* @__PURE__ */ e("div", { className:
|
|
791
|
+
/* @__PURE__ */ e("div", { className: M.wrapperModule, children: /* @__PURE__ */ e(tt, { title: "Поиск по модулям", items: n }) }),
|
|
792
792
|
/* @__PURE__ */ u("div", { className: ce.parent, children: [
|
|
793
793
|
/* @__PURE__ */ e(
|
|
794
794
|
O,
|
|
@@ -823,17 +823,17 @@ const jn = ({
|
|
|
823
823
|
{
|
|
824
824
|
...s,
|
|
825
825
|
role: "searchbox",
|
|
826
|
-
ref:
|
|
826
|
+
ref: y,
|
|
827
827
|
value: t,
|
|
828
828
|
type: "text",
|
|
829
829
|
placeholder: "Поиск",
|
|
830
830
|
onChange: d,
|
|
831
|
-
className: r(ie.base,
|
|
831
|
+
className: r(ie.base, x == null ? void 0 : x.input),
|
|
832
832
|
disabled: i
|
|
833
833
|
}
|
|
834
834
|
),
|
|
835
835
|
f && /* @__PURE__ */ e(
|
|
836
|
-
|
|
836
|
+
ur,
|
|
837
837
|
{
|
|
838
838
|
className: r(
|
|
839
839
|
ie.icon,
|
|
@@ -850,9 +850,9 @@ const jn = ({
|
|
|
850
850
|
sideOffset: 18,
|
|
851
851
|
alignOffset: o ? -42 : -76,
|
|
852
852
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
853
|
-
className: r(
|
|
854
|
-
children:
|
|
855
|
-
/* @__PURE__ */ u(
|
|
853
|
+
className: r(K.content, x == null ? void 0 : x.popover),
|
|
854
|
+
children: b ? /* @__PURE__ */ e("div", { className: W.wrapper, children: /* @__PURE__ */ e(gt, { width: 30, height: 30 }) }) : h && (h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ u("div", { className: K.wrapper, children: [
|
|
855
|
+
/* @__PURE__ */ u(w, { className: K.title, children: [
|
|
856
856
|
"Результаты (",
|
|
857
857
|
h == null ? void 0 : h.length,
|
|
858
858
|
")"
|
|
@@ -864,19 +864,19 @@ const jn = ({
|
|
|
864
864
|
"aria-label": "search-result",
|
|
865
865
|
className: "first:mt-5",
|
|
866
866
|
children: h == null ? void 0 : h.map((je, ze) => /* @__PURE__ */ e(
|
|
867
|
-
|
|
867
|
+
w,
|
|
868
868
|
{
|
|
869
869
|
onClick: () => {
|
|
870
870
|
p == null || p(je), j(!1);
|
|
871
871
|
},
|
|
872
|
-
className:
|
|
872
|
+
className: K.item,
|
|
873
873
|
children: je
|
|
874
874
|
},
|
|
875
875
|
ze
|
|
876
876
|
))
|
|
877
877
|
}
|
|
878
878
|
)
|
|
879
|
-
] }) : /* @__PURE__ */ e("div", { className: W.wrapper, children: /* @__PURE__ */ e(
|
|
879
|
+
] }) : /* @__PURE__ */ e("div", { className: W.wrapper, children: /* @__PURE__ */ e(w, { className: W.text, children: "Нет результатов поиска" }) })
|
|
880
880
|
}
|
|
881
881
|
)
|
|
882
882
|
] })
|
|
@@ -928,7 +928,7 @@ const jn = ({
|
|
|
928
928
|
itemsText: 'flex items-center w-full text-dark-30 text-sm font-normal hover:text-primary-10 before:content-[""] before:block before:bg-sidebar-10 before:w-2 before:h-2 before:rounded-full before:mr-3.5',
|
|
929
929
|
active: "text-dark-10 font-bold"
|
|
930
930
|
}
|
|
931
|
-
},
|
|
931
|
+
}, Lt = ({
|
|
932
932
|
fullName: t,
|
|
933
933
|
jobTitle: d,
|
|
934
934
|
position: i = "right",
|
|
@@ -960,7 +960,7 @@ const jn = ({
|
|
|
960
960
|
),
|
|
961
961
|
children: [
|
|
962
962
|
t && c ? /* @__PURE__ */ e(Xe, { ...c, children: t }) : /* @__PURE__ */ u(
|
|
963
|
-
|
|
963
|
+
w,
|
|
964
964
|
{
|
|
965
965
|
className: r(
|
|
966
966
|
He.fullName,
|
|
@@ -973,11 +973,11 @@ const jn = ({
|
|
|
973
973
|
]
|
|
974
974
|
}
|
|
975
975
|
),
|
|
976
|
-
l || !!d && /* @__PURE__ */ e(
|
|
976
|
+
l || !!d && /* @__PURE__ */ e(w, { className: r(He.jobTitle, o == null ? void 0 : o.jobTitle), children: d })
|
|
977
977
|
]
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
|
-
/* @__PURE__ */ e(
|
|
980
|
+
/* @__PURE__ */ e(nr, { ...n, isActive: a, hasBadge: a })
|
|
981
981
|
]
|
|
982
982
|
}
|
|
983
983
|
), He = {
|
|
@@ -986,8 +986,8 @@ const jn = ({
|
|
|
986
986
|
fullName: "text-sm text-dark-40 font-bold flex items-end gap-1",
|
|
987
987
|
jobTitle: "text-xs text-dark-40/50 font-medium",
|
|
988
988
|
subText: "text-xs text-dark-40/50 font-normal"
|
|
989
|
-
},
|
|
990
|
-
/* @__PURE__ */ e(
|
|
989
|
+
}, On = ({ file: t, onClick: d }) => /* @__PURE__ */ u("li", { className: "flex items-center bg-white px-2 py-1.5 border border-dark-30/[.15] rounded-lg w-[112px] justify-between", children: [
|
|
990
|
+
/* @__PURE__ */ e(Sr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
|
|
991
991
|
/* @__PURE__ */ u("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
|
|
992
992
|
/* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
|
|
993
993
|
/* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: ft(t.size) })
|
|
@@ -1002,7 +1002,7 @@ const jn = ({
|
|
|
1002
1002
|
viewBox: "0 0 20 20"
|
|
1003
1003
|
}
|
|
1004
1004
|
)
|
|
1005
|
-
] }), { Root:
|
|
1005
|
+
] }), { Root: Fn } = br, Eo = z.forwardRef(
|
|
1006
1006
|
({
|
|
1007
1007
|
id: t,
|
|
1008
1008
|
files: d = [],
|
|
@@ -1016,16 +1016,16 @@ const jn = ({
|
|
|
1016
1016
|
disabled: p = !1,
|
|
1017
1017
|
...f
|
|
1018
1018
|
}, g) => {
|
|
1019
|
-
const [
|
|
1019
|
+
const [b, x] = z.useState(!1), s = z.useRef(null), y = we.root, m = we.input, B = we.icon, S = we.placeholder, j = we.list, k = we.status, v = () => {
|
|
1020
1020
|
var D;
|
|
1021
|
-
p || (
|
|
1021
|
+
p || (x(!0), (D = s.current) == null || D.click());
|
|
1022
1022
|
}, C = () => {
|
|
1023
|
-
|
|
1023
|
+
x(!1);
|
|
1024
1024
|
};
|
|
1025
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
1025
|
+
return /* @__PURE__ */ u("div", { className: r(y, a == null ? void 0 : a.root), children: [
|
|
1026
1026
|
/* @__PURE__ */ u("div", { className: we.label.wrapper, children: [
|
|
1027
1027
|
!!i && /* @__PURE__ */ e(
|
|
1028
|
-
|
|
1028
|
+
P,
|
|
1029
1029
|
{
|
|
1030
1030
|
htmlFor: t,
|
|
1031
1031
|
disabled: p,
|
|
@@ -1036,12 +1036,12 @@ const jn = ({
|
|
|
1036
1036
|
h === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1037
1037
|
] }),
|
|
1038
1038
|
/* @__PURE__ */ u(
|
|
1039
|
-
|
|
1039
|
+
Fn,
|
|
1040
1040
|
{
|
|
1041
1041
|
ref: g,
|
|
1042
1042
|
onClick: v,
|
|
1043
|
-
pressed:
|
|
1044
|
-
onPressedChange:
|
|
1043
|
+
pressed: b,
|
|
1044
|
+
onPressedChange: x,
|
|
1045
1045
|
onBlur: C,
|
|
1046
1046
|
className: r(
|
|
1047
1047
|
m.base,
|
|
@@ -1071,7 +1071,7 @@ const jn = ({
|
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
1073
|
d.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: j, children: d.map((D) => /* @__PURE__ */ e(
|
|
1074
|
-
|
|
1074
|
+
On,
|
|
1075
1075
|
{
|
|
1076
1076
|
file: D,
|
|
1077
1077
|
onClick: (T) => {
|
|
@@ -1081,7 +1081,7 @@ const jn = ({
|
|
|
1081
1081
|
D.id
|
|
1082
1082
|
)) }) : /* @__PURE__ */ u(z.Fragment, { children: [
|
|
1083
1083
|
/* @__PURE__ */ e(
|
|
1084
|
-
|
|
1084
|
+
Dr,
|
|
1085
1085
|
{
|
|
1086
1086
|
"data-testid": "file-upload-icon",
|
|
1087
1087
|
width: 16,
|
|
@@ -1112,7 +1112,7 @@ const jn = ({
|
|
|
1112
1112
|
status: {
|
|
1113
1113
|
danger: "bg-white border-danger-10 ring-2 ring-danger-10/[.20] hover:border-danger-10"
|
|
1114
1114
|
}
|
|
1115
|
-
},
|
|
1115
|
+
}, Go = ({
|
|
1116
1116
|
comments: t = [],
|
|
1117
1117
|
emptyText: d = "Комментариев нет...",
|
|
1118
1118
|
variant: i = "comment",
|
|
@@ -1122,8 +1122,8 @@ const jn = ({
|
|
|
1122
1122
|
}) => {
|
|
1123
1123
|
const l = i === "review";
|
|
1124
1124
|
return /* @__PURE__ */ u("div", { className: r(Y.root, o == null ? void 0 : o.root), children: [
|
|
1125
|
-
!(t != null && t.length) && (n ? /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1125
|
+
!(t != null && t.length) && (n ? /* @__PURE__ */ e(gt, {}) : /* @__PURE__ */ e(
|
|
1126
|
+
w,
|
|
1127
1127
|
{
|
|
1128
1128
|
variant: "p",
|
|
1129
1129
|
className: r(
|
|
@@ -1134,9 +1134,9 @@ const jn = ({
|
|
|
1134
1134
|
}
|
|
1135
1135
|
)),
|
|
1136
1136
|
t.map(
|
|
1137
|
-
({ id: a, avatarSrc: h, fullName: p, role: f, comment: g, date:
|
|
1137
|
+
({ id: a, avatarSrc: h, fullName: p, role: f, comment: g, date: b, time: x, stars: s = 0 }) => /* @__PURE__ */ u("div", { className: Y.wrapper, children: [
|
|
1138
1138
|
/* @__PURE__ */ e(
|
|
1139
|
-
|
|
1139
|
+
Lt,
|
|
1140
1140
|
{
|
|
1141
1141
|
fullName: p,
|
|
1142
1142
|
jobTitle: f || "",
|
|
@@ -1174,7 +1174,7 @@ const jn = ({
|
|
|
1174
1174
|
),
|
|
1175
1175
|
children: [
|
|
1176
1176
|
l && /* @__PURE__ */ e(
|
|
1177
|
-
|
|
1177
|
+
yr,
|
|
1178
1178
|
{
|
|
1179
1179
|
rating: s,
|
|
1180
1180
|
classNames: {
|
|
@@ -1183,16 +1183,16 @@ const jn = ({
|
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
|
-
/* @__PURE__ */ e(
|
|
1187
|
-
/* @__PURE__ */ u(
|
|
1188
|
-
|
|
1186
|
+
/* @__PURE__ */ e(w, { variant: "p", className: Y.commentText, children: g }),
|
|
1187
|
+
/* @__PURE__ */ u(w, { variant: "span", className: Y.commentDate, children: [
|
|
1188
|
+
b,
|
|
1189
1189
|
" ",
|
|
1190
|
-
|
|
1190
|
+
x
|
|
1191
1191
|
] }),
|
|
1192
1192
|
c && /* @__PURE__ */ e(
|
|
1193
|
-
|
|
1193
|
+
Mt,
|
|
1194
1194
|
{
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: Nr,
|
|
1196
1196
|
shape: "circle",
|
|
1197
1197
|
onClick: () => c(a),
|
|
1198
1198
|
classNames: {
|
|
@@ -1251,10 +1251,10 @@ const jn = ({
|
|
|
1251
1251
|
button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
|
|
1252
1252
|
icon: "fill-sidebar-50/50"
|
|
1253
1253
|
}
|
|
1254
|
-
},
|
|
1254
|
+
}, Tt = (t) => {
|
|
1255
1255
|
const d = t.getDate().toString().padStart(2, "0"), i = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getFullYear();
|
|
1256
1256
|
return `${d}/${i}/${o}`;
|
|
1257
|
-
},
|
|
1257
|
+
}, Rn = (t) => {
|
|
1258
1258
|
const d = t.getFullYear(), i = t.getMonth(), o = new Date(d, i, 1), c = new Date(d, i + 1, 0).getDate();
|
|
1259
1259
|
let l = o.getDay();
|
|
1260
1260
|
l = l === 0 ? 6 : l - 1;
|
|
@@ -1269,15 +1269,15 @@ const jn = ({
|
|
|
1269
1269
|
for (let p = 1; p <= h; p++)
|
|
1270
1270
|
a.push({ date: new Date(d, i + 1, p), isCurrentMonth: !1 });
|
|
1271
1271
|
return a;
|
|
1272
|
-
},
|
|
1272
|
+
}, $n = /* @__PURE__ */ new Date(), Ln = (t) => t.toDateString() === $n.toDateString(), zn = (t) => {
|
|
1273
1273
|
const d = t.getDay();
|
|
1274
1274
|
return d === 0 || d === 6;
|
|
1275
|
-
},
|
|
1275
|
+
}, Hn = (t, d) => d && t.toDateString() === d.toDateString(), Un = Array.from({ length: 200 }, (t, d) => 1900 + d).map(
|
|
1276
1276
|
(t) => ({
|
|
1277
1277
|
label: t.toString(),
|
|
1278
1278
|
value: t.toString()
|
|
1279
1279
|
})
|
|
1280
|
-
),
|
|
1280
|
+
), Yn = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], En = [
|
|
1281
1281
|
"Январь",
|
|
1282
1282
|
"Февраль",
|
|
1283
1283
|
"Март",
|
|
@@ -1290,7 +1290,7 @@ const jn = ({
|
|
|
1290
1290
|
"Октябрь",
|
|
1291
1291
|
"Ноябрь",
|
|
1292
1292
|
"Декабрь"
|
|
1293
|
-
],
|
|
1293
|
+
], Gn = (t) => {
|
|
1294
1294
|
if (/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
1295
1295
|
return new Date(t);
|
|
1296
1296
|
if (/^\d{2}\.\d{2}\.\d{4}$/.test(t)) {
|
|
@@ -1302,16 +1302,16 @@ const jn = ({
|
|
|
1302
1302
|
return new Date(o, i - 1, d);
|
|
1303
1303
|
}
|
|
1304
1304
|
return null;
|
|
1305
|
-
},
|
|
1306
|
-
const n = d ?
|
|
1307
|
-
return
|
|
1305
|
+
}, Vn = (t, d, i = /* @__PURE__ */ new Date(), o) => {
|
|
1306
|
+
const n = d ? Gn(d) : null;
|
|
1307
|
+
return Rn(i).map((c, l) => {
|
|
1308
1308
|
const { date: a, isCurrentMonth: h } = c, p = a.getDate(), f = n ? a <= n : !1;
|
|
1309
1309
|
let g = _.dayButton;
|
|
1310
|
-
return f ? g += ` ${_.dayDisabled}` : h ?
|
|
1310
|
+
return f ? g += ` ${_.dayDisabled}` : h ? Hn(a, o ? new Date(o) : void 0) ? g += ` ${_.daySelected}` : Ln(a) ? g += ` ${_.dayToday}` : zn(a) ? g += ` ${_.dayWeekend}` : g += ` ${_.dayNormal}` : g += ` ${_.dayOutside}`, /* @__PURE__ */ e(
|
|
1311
1311
|
"button",
|
|
1312
1312
|
{
|
|
1313
|
-
onClick: (
|
|
1314
|
-
|
|
1313
|
+
onClick: (b) => {
|
|
1314
|
+
b.stopPropagation(), b.preventDefault(), f || t(a);
|
|
1315
1315
|
},
|
|
1316
1316
|
disabled: f,
|
|
1317
1317
|
className: g,
|
|
@@ -1320,7 +1320,7 @@ const jn = ({
|
|
|
1320
1320
|
l
|
|
1321
1321
|
);
|
|
1322
1322
|
});
|
|
1323
|
-
},
|
|
1323
|
+
}, Vo = ({
|
|
1324
1324
|
value: t,
|
|
1325
1325
|
setValue: d,
|
|
1326
1326
|
classNames: i,
|
|
@@ -1329,19 +1329,19 @@ const jn = ({
|
|
|
1329
1329
|
status: c,
|
|
1330
1330
|
disabledDate: l
|
|
1331
1331
|
}) => {
|
|
1332
|
-
const [a, h] =
|
|
1332
|
+
const [a, h] = A(!1), [p, f] = A(
|
|
1333
1333
|
t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
1334
|
-
), [g,
|
|
1335
|
-
t ?
|
|
1334
|
+
), [g, b] = A(
|
|
1335
|
+
t ? Tt(new Date(t)) : ""
|
|
1336
1336
|
);
|
|
1337
1337
|
ve(() => {
|
|
1338
|
-
t ? (
|
|
1338
|
+
t ? (b(Tt(new Date(t))), f(new Date(t))) : b("");
|
|
1339
1339
|
}, [t]);
|
|
1340
|
-
const
|
|
1341
|
-
d(v.toISOString()),
|
|
1340
|
+
const x = oe(null), s = oe(null), y = (v) => {
|
|
1341
|
+
d(v.toISOString()), b(Tt(v)), h(!1);
|
|
1342
1342
|
}, m = (v) => {
|
|
1343
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)),
|
|
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)), b(C), !C || C.trim() === "") {
|
|
1345
1345
|
d(void 0);
|
|
1346
1346
|
return;
|
|
1347
1347
|
}
|
|
@@ -1349,8 +1349,8 @@ const jn = ({
|
|
|
1349
1349
|
if (D.length === 3) {
|
|
1350
1350
|
const T = parseInt(D[0]), I = parseInt(D[1]) - 1, F = parseInt(D[2]);
|
|
1351
1351
|
if (T > 0 && T <= 31 && I >= 0 && I <= 11 && F > 1900) {
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1352
|
+
const V = new Date(F, I, T);
|
|
1353
|
+
V.getDate() === T && V.getMonth() === I && V.getFullYear() === F && (d(V.toISOString()), f(new Date(F, I, 1)));
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}, B = (v) => {
|
|
@@ -1363,11 +1363,11 @@ const jn = ({
|
|
|
1363
1363
|
const C = parseInt(v);
|
|
1364
1364
|
f(new Date(C, p.getMonth(), 1));
|
|
1365
1365
|
}, k = (v) => {
|
|
1366
|
-
v.stopPropagation(), v.preventDefault(), d(void 0),
|
|
1366
|
+
v.stopPropagation(), v.preventDefault(), d(void 0), b(""), h(!1);
|
|
1367
1367
|
};
|
|
1368
1368
|
return /* @__PURE__ */ u("div", { className: _.base, children: [
|
|
1369
1369
|
/* @__PURE__ */ u("div", { className: _.label.wrapper, children: [
|
|
1370
|
-
!!n && /* @__PURE__ */ e(
|
|
1370
|
+
!!n && /* @__PURE__ */ e(P, { disabled: o, children: n }),
|
|
1371
1371
|
c === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
1372
1372
|
] }),
|
|
1373
1373
|
/* @__PURE__ */ u(ae, { open: a, onOpenChange: h, children: [
|
|
@@ -1420,7 +1420,7 @@ const jn = ({
|
|
|
1420
1420
|
o && _.calendarButton.disabled
|
|
1421
1421
|
),
|
|
1422
1422
|
children: /* @__PURE__ */ e(
|
|
1423
|
-
|
|
1423
|
+
hr,
|
|
1424
1424
|
{
|
|
1425
1425
|
width: 18,
|
|
1426
1426
|
height: 18,
|
|
@@ -1443,7 +1443,7 @@ const jn = ({
|
|
|
1443
1443
|
pe,
|
|
1444
1444
|
{
|
|
1445
1445
|
role: "dialog",
|
|
1446
|
-
ref:
|
|
1446
|
+
ref: x,
|
|
1447
1447
|
container: s.current,
|
|
1448
1448
|
className: _.popoverWrapper,
|
|
1449
1449
|
children: /* @__PURE__ */ u("div", { children: [
|
|
@@ -1454,7 +1454,7 @@ const jn = ({
|
|
|
1454
1454
|
onClick: () => B(-1),
|
|
1455
1455
|
className: _.navButton,
|
|
1456
1456
|
children: /* @__PURE__ */ e(
|
|
1457
|
-
|
|
1457
|
+
er,
|
|
1458
1458
|
{
|
|
1459
1459
|
width: 6,
|
|
1460
1460
|
height: 10,
|
|
@@ -1467,7 +1467,7 @@ const jn = ({
|
|
|
1467
1467
|
/* @__PURE__ */ e(
|
|
1468
1468
|
De,
|
|
1469
1469
|
{
|
|
1470
|
-
options:
|
|
1470
|
+
options: En.map((v, C) => ({
|
|
1471
1471
|
label: v,
|
|
1472
1472
|
value: C.toString()
|
|
1473
1473
|
})),
|
|
@@ -1484,7 +1484,7 @@ const jn = ({
|
|
|
1484
1484
|
/* @__PURE__ */ e(
|
|
1485
1485
|
De,
|
|
1486
1486
|
{
|
|
1487
|
-
options:
|
|
1487
|
+
options: Un,
|
|
1488
1488
|
classNames: {
|
|
1489
1489
|
trigger: "w-28 h-8"
|
|
1490
1490
|
},
|
|
@@ -1502,7 +1502,7 @@ const jn = ({
|
|
|
1502
1502
|
onClick: () => B(1),
|
|
1503
1503
|
className: _.navButton,
|
|
1504
1504
|
children: /* @__PURE__ */ e(
|
|
1505
|
-
|
|
1505
|
+
tr,
|
|
1506
1506
|
{
|
|
1507
1507
|
width: 6,
|
|
1508
1508
|
height: 10,
|
|
@@ -1512,8 +1512,8 @@ const jn = ({
|
|
|
1512
1512
|
}
|
|
1513
1513
|
)
|
|
1514
1514
|
] }),
|
|
1515
|
-
/* @__PURE__ */ e("div", { className: _.weekHeader, children:
|
|
1516
|
-
/* @__PURE__ */ e("div", { className: _.calendar, children:
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: _.weekHeader, children: Yn.map((v) => /* @__PURE__ */ e("div", { className: _.weekDay, children: v }, v)) }),
|
|
1516
|
+
/* @__PURE__ */ e("div", { className: _.calendar, children: Vn(y, l, p, t) }),
|
|
1517
1517
|
/* @__PURE__ */ e("div", { className: _.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: k, className: _.resetButton, children: "Сбросить" }) })
|
|
1518
1518
|
] })
|
|
1519
1519
|
}
|
|
@@ -1582,7 +1582,7 @@ const jn = ({
|
|
|
1582
1582
|
line: "border border-gray-40",
|
|
1583
1583
|
saveButtonWrapper: "mt-[22px] flex justify-end p-4 pt-0",
|
|
1584
1584
|
saveButton: "px-[15px] py-3 bg-primary-10 text-sidebar-10 text-sm font-semibold rounded-[10px]"
|
|
1585
|
-
}, ee = "dd/MM/yyyy",
|
|
1585
|
+
}, ee = "dd/MM/yyyy", qn = (t, d, i) => !d || !i ? !1 : t > d && t < i, qo = ({
|
|
1586
1586
|
value: t,
|
|
1587
1587
|
setValue: d,
|
|
1588
1588
|
label: i,
|
|
@@ -1590,44 +1590,44 @@ const jn = ({
|
|
|
1590
1590
|
disabled: n = !1,
|
|
1591
1591
|
classNames: c
|
|
1592
1592
|
}) => {
|
|
1593
|
-
const l = z.useId(), [a, h] = z.useState(/* @__PURE__ */ new Date()), [p, f] = z.useState(""), [g,
|
|
1593
|
+
const l = z.useId(), [a, h] = z.useState(/* @__PURE__ */ new Date()), [p, f] = z.useState(""), [g, b] = z.useState(!1), x = sr({
|
|
1594
1594
|
mask: "__/__/____ - __/__/____",
|
|
1595
1595
|
replacement: { _: /\d/ }
|
|
1596
|
-
}), s = z.useRef(null),
|
|
1596
|
+
}), s = z.useRef(null), y = z.useRef(!1);
|
|
1597
1597
|
z.useEffect(() => {
|
|
1598
|
-
if (
|
|
1599
|
-
const k = t.from ?
|
|
1598
|
+
if (y.current || !t || !(t.to && t.from)) return;
|
|
1599
|
+
const k = t.from ? N(new Date(t.from), ee) : "", v = t.to ? N(new Date(t.to), ee) : "";
|
|
1600
1600
|
f(v ? `${k} - ${v}` : `${k} - `);
|
|
1601
1601
|
}, [t]);
|
|
1602
|
-
const m =
|
|
1602
|
+
const m = Kn.base, B = (k) => {
|
|
1603
1603
|
if (!k)
|
|
1604
1604
|
f(""), d(void 0);
|
|
1605
1605
|
else if (k.from && !k.to)
|
|
1606
|
-
d(k), h(k.from), f(
|
|
1606
|
+
d(k), h(k.from), f(N(new Date(k.from), ee) + " - ");
|
|
1607
1607
|
else if (k.from && k.to)
|
|
1608
1608
|
if (k.to < k.from) {
|
|
1609
1609
|
const v = { from: k.to, to: k.from };
|
|
1610
1610
|
d(v), f(
|
|
1611
|
-
|
|
1611
|
+
N(new Date(v.from), ee) + " - " + N(new Date(v.to), ee)
|
|
1612
1612
|
);
|
|
1613
1613
|
} else
|
|
1614
1614
|
d(k), f(
|
|
1615
|
-
|
|
1615
|
+
N(new Date(k.from), ee) + " - " + N(new Date(k.to), ee)
|
|
1616
1616
|
);
|
|
1617
1617
|
}, S = (k) => {
|
|
1618
|
-
|
|
1618
|
+
y.current = !0;
|
|
1619
1619
|
const { value: v } = k.target, [C, D] = v.split("-").map((F) => F.trim());
|
|
1620
1620
|
f(v);
|
|
1621
|
-
const T =
|
|
1621
|
+
const T = At(C, ee, /* @__PURE__ */ new Date()), I = D ? At(D, ee, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
|
|
1622
1622
|
Fe(T) && Fe(I) ? d({ from: T, to: I }) : Fe(T) && !Fe(I) ? d({ from: T, to: void 0 }) : d({ from: void 0, to: void 0 });
|
|
1623
1623
|
}, j = () => {
|
|
1624
1624
|
f(""), d(void 0), h(/* @__PURE__ */ new Date());
|
|
1625
1625
|
};
|
|
1626
|
-
return /* @__PURE__ */ e("div", { className: r(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ u(ae, { open: g, onOpenChange:
|
|
1626
|
+
return /* @__PURE__ */ e("div", { className: r(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ u(ae, { open: g, onOpenChange: b, children: [
|
|
1627
1627
|
/* @__PURE__ */ e(le, { asChild: !0, role: "trigger", className: c == null ? void 0 : c.trigger, children: /* @__PURE__ */ e(
|
|
1628
|
-
|
|
1628
|
+
zt,
|
|
1629
1629
|
{
|
|
1630
|
-
ref:
|
|
1630
|
+
ref: x,
|
|
1631
1631
|
label: i,
|
|
1632
1632
|
inputProps: {
|
|
1633
1633
|
id: l,
|
|
@@ -1642,8 +1642,8 @@ const jn = ({
|
|
|
1642
1642
|
},
|
|
1643
1643
|
disabled: n
|
|
1644
1644
|
},
|
|
1645
|
-
icon:
|
|
1646
|
-
onIconClick: () =>
|
|
1645
|
+
icon: hr,
|
|
1646
|
+
onIconClick: () => b(!0),
|
|
1647
1647
|
iconProps: {
|
|
1648
1648
|
width: 18,
|
|
1649
1649
|
height: 18,
|
|
@@ -1665,20 +1665,20 @@ const jn = ({
|
|
|
1665
1665
|
className: r(m.content, c == null ? void 0 : c.content),
|
|
1666
1666
|
children: [
|
|
1667
1667
|
/* @__PURE__ */ e(
|
|
1668
|
-
|
|
1668
|
+
Tn,
|
|
1669
1669
|
{
|
|
1670
1670
|
month: a,
|
|
1671
|
-
locale:
|
|
1671
|
+
locale: Ct,
|
|
1672
1672
|
onMonthChange: h,
|
|
1673
1673
|
mode: "range",
|
|
1674
1674
|
numberOfMonths: 2,
|
|
1675
1675
|
pagedNavigation: !0,
|
|
1676
1676
|
selected: t,
|
|
1677
1677
|
onSelect: B,
|
|
1678
|
-
classNames:
|
|
1678
|
+
classNames: Zn,
|
|
1679
1679
|
components: {
|
|
1680
1680
|
DayButton: (k) => {
|
|
1681
|
-
const v =
|
|
1681
|
+
const v = qn(
|
|
1682
1682
|
k.day.date,
|
|
1683
1683
|
t == null ? void 0 : t.from,
|
|
1684
1684
|
t == null ? void 0 : t.to
|
|
@@ -1708,11 +1708,11 @@ const jn = ({
|
|
|
1708
1708
|
{
|
|
1709
1709
|
className: r(
|
|
1710
1710
|
"size-6 rounded-full flex items-center justify-center",
|
|
1711
|
-
(t == null ? void 0 : t.from) &&
|
|
1712
|
-
(t == null ? void 0 : t.to) &&
|
|
1711
|
+
(t == null ? void 0 : t.from) && N(new Date(t == null ? void 0 : t.from), ee) === N(new Date(k.day.date), ee) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1712
|
+
(t == null ? void 0 : t.to) && N(new Date(t == null ? void 0 : t.to), ee) === N(new Date(k.day.date), ee) && "!bg-primary-10 text-sidebar-10 shadow-4xl",
|
|
1713
1713
|
v && "!bg-primary-40 text-dark-50"
|
|
1714
1714
|
),
|
|
1715
|
-
children: /* @__PURE__ */ e(
|
|
1715
|
+
children: /* @__PURE__ */ e(w, { className: "text-sm font-mono font-medium", children: k.children })
|
|
1716
1716
|
}
|
|
1717
1717
|
)
|
|
1718
1718
|
}
|
|
@@ -1725,7 +1725,7 @@ const jn = ({
|
|
|
1725
1725
|
onPreviousClick: D,
|
|
1726
1726
|
nextMonth: T,
|
|
1727
1727
|
previousMonth: I
|
|
1728
|
-
} = k, F = a,
|
|
1728
|
+
} = k, F = a, V = kn(a, 1);
|
|
1729
1729
|
return /* @__PURE__ */ u(
|
|
1730
1730
|
"div",
|
|
1731
1731
|
{
|
|
@@ -1742,7 +1742,7 @@ const jn = ({
|
|
|
1742
1742
|
disabled: !I,
|
|
1743
1743
|
className: "flex items-center justify-center",
|
|
1744
1744
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1745
|
-
|
|
1745
|
+
er,
|
|
1746
1746
|
{
|
|
1747
1747
|
width: 14,
|
|
1748
1748
|
height: 14,
|
|
@@ -1752,12 +1752,12 @@ const jn = ({
|
|
|
1752
1752
|
) })
|
|
1753
1753
|
}
|
|
1754
1754
|
),
|
|
1755
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
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: N(F, "MMMM yyyy", { locale: Ct }) }) })
|
|
1756
1756
|
] }),
|
|
1757
1757
|
/* @__PURE__ */ u("div", { className: "flex items-center w-1/2", children: [
|
|
1758
|
-
/* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
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: N(V, "MMMM yyyy", { locale: Ct }) }) }),
|
|
1759
1759
|
/* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1760
|
-
|
|
1760
|
+
tr,
|
|
1761
1761
|
{
|
|
1762
1762
|
width: 14,
|
|
1763
1763
|
height: 14,
|
|
@@ -1789,7 +1789,7 @@ const jn = ({
|
|
|
1789
1789
|
}
|
|
1790
1790
|
) })
|
|
1791
1791
|
] }) });
|
|
1792
|
-
},
|
|
1792
|
+
}, Kn = {
|
|
1793
1793
|
base: {
|
|
1794
1794
|
wrapper: "w-full h-max",
|
|
1795
1795
|
input: "w-60 h-11 !text-base text-dark-30 font-mono font-medium",
|
|
@@ -1797,12 +1797,12 @@ const jn = ({
|
|
|
1797
1797
|
selectButton: "flex items-center justify-center p-1",
|
|
1798
1798
|
resetButton: "justify-start p-0 text-xs text-primary-10 font-mono underline underline-offset-[3px] hover:decoration-primary-10"
|
|
1799
1799
|
}
|
|
1800
|
-
},
|
|
1800
|
+
}, Zn = {
|
|
1801
1801
|
months: "[&>.monthContainer:nth-child(2)]:left-0 [&>.monthContainer:nth-child(3)]:right-0 relative",
|
|
1802
1802
|
month: "monthContainer absolute",
|
|
1803
1803
|
weekdays: "size-6",
|
|
1804
1804
|
weekday: "text-sm text-dark-30 font-mono font-semibold"
|
|
1805
|
-
},
|
|
1805
|
+
}, Qn = ({
|
|
1806
1806
|
triggerElement: t,
|
|
1807
1807
|
mainUrl: d,
|
|
1808
1808
|
options: i,
|
|
@@ -1812,24 +1812,24 @@ const jn = ({
|
|
|
1812
1812
|
align: l = "start",
|
|
1813
1813
|
classNames: a
|
|
1814
1814
|
}) => {
|
|
1815
|
-
const [h, p] = z.useState(), [f] =
|
|
1815
|
+
const [h, p] = z.useState(), [f] = Ot(), g = dr(), b = (m) => {
|
|
1816
1816
|
p(m), g(`${d}/${m.to}?${f.toString()}`);
|
|
1817
|
-
},
|
|
1818
|
-
return /* @__PURE__ */ u(
|
|
1817
|
+
}, x = Et.modal, s = x.item, y = Et.text;
|
|
1818
|
+
return /* @__PURE__ */ u(vt, { open: o, onOpenChange: n, children: [
|
|
1819
1819
|
/* @__PURE__ */ e(
|
|
1820
|
-
|
|
1820
|
+
st,
|
|
1821
1821
|
{
|
|
1822
1822
|
asChild: !0,
|
|
1823
|
-
className: r(
|
|
1823
|
+
className: r(x.trigger, a == null ? void 0 : a.trigger),
|
|
1824
1824
|
children: t
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
|
-
|
|
1828
|
+
mt,
|
|
1829
1829
|
{
|
|
1830
1830
|
side: c,
|
|
1831
1831
|
align: l,
|
|
1832
|
-
className: r(
|
|
1832
|
+
className: r(x.content, a == null ? void 0 : a.content),
|
|
1833
1833
|
children: i == null ? void 0 : i.map((m) => {
|
|
1834
1834
|
const B = (h == null ? void 0 : h.id) === m.id;
|
|
1835
1835
|
return /* @__PURE__ */ e(
|
|
@@ -1841,11 +1841,11 @@ const jn = ({
|
|
|
1841
1841
|
B && (a == null ? void 0 : a.item)
|
|
1842
1842
|
),
|
|
1843
1843
|
children: /* @__PURE__ */ u(
|
|
1844
|
-
|
|
1844
|
+
$t,
|
|
1845
1845
|
{
|
|
1846
|
-
onClick: () =>
|
|
1846
|
+
onClick: () => b(m),
|
|
1847
1847
|
className: r(
|
|
1848
|
-
|
|
1848
|
+
y.base,
|
|
1849
1849
|
B && "font-bold",
|
|
1850
1850
|
B && (a == null ? void 0 : a.text)
|
|
1851
1851
|
),
|
|
@@ -1854,7 +1854,7 @@ const jn = ({
|
|
|
1854
1854
|
"span",
|
|
1855
1855
|
{
|
|
1856
1856
|
className: r(
|
|
1857
|
-
|
|
1857
|
+
y.dot,
|
|
1858
1858
|
B && "bg-primary-10",
|
|
1859
1859
|
a == null ? void 0 : a.dot
|
|
1860
1860
|
)
|
|
@@ -1871,7 +1871,7 @@ const jn = ({
|
|
|
1871
1871
|
}
|
|
1872
1872
|
)
|
|
1873
1873
|
] });
|
|
1874
|
-
},
|
|
1874
|
+
}, Et = {
|
|
1875
1875
|
modal: {
|
|
1876
1876
|
trigger: "focus-visible:outline-none",
|
|
1877
1877
|
content: "absolute min-w-[260px] top-0 left-0 flex flex-col bg-sidebar-10 px-2 py-1.5 border border-dark-30/[.10] rounded-[20px] shadow-3xl",
|
|
@@ -1883,7 +1883,7 @@ const jn = ({
|
|
|
1883
1883
|
base: "font-medium group text-dark-30 text-sm font-sans leading-none hover:text-primary-20 flex items-center flex-nowrap gap-2.5 hover:cursor-pointer",
|
|
1884
1884
|
dot: "inline-block w-[7px] h-[7px] bg-dark-30/[.15] rounded-full group-hover:bg-primary-20"
|
|
1885
1885
|
}
|
|
1886
|
-
},
|
|
1886
|
+
}, Ko = ({
|
|
1887
1887
|
title: t,
|
|
1888
1888
|
description: d,
|
|
1889
1889
|
files: i = [],
|
|
@@ -1891,21 +1891,21 @@ const jn = ({
|
|
|
1891
1891
|
onFilesUpload: n,
|
|
1892
1892
|
onDelete: c,
|
|
1893
1893
|
classNames: l
|
|
1894
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
1895
|
-
t && /* @__PURE__ */ u("div", { className:
|
|
1896
|
-
/* @__PURE__ */ e(
|
|
1897
|
-
/* @__PURE__ */ u(
|
|
1894
|
+
}) => /* @__PURE__ */ u("div", { className: r(G.wrapper, l == null ? void 0 : l.wrapper), children: [
|
|
1895
|
+
t && /* @__PURE__ */ u("div", { className: G.header, children: [
|
|
1896
|
+
/* @__PURE__ */ e(jr, { className: G.headerIcon, role: "img" }),
|
|
1897
|
+
/* @__PURE__ */ u(w, { variant: "p", className: G.headerText, children: [
|
|
1898
1898
|
t,
|
|
1899
1899
|
"(",
|
|
1900
1900
|
i.length,
|
|
1901
1901
|
")"
|
|
1902
1902
|
] })
|
|
1903
1903
|
] }),
|
|
1904
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
1904
|
+
/* @__PURE__ */ u("div", { className: r(G.container, l == null ? void 0 : l.container), children: [
|
|
1905
1905
|
i.length > 0 && i.map((a, h) => /* @__PURE__ */ e("div", { children: a.type.startsWith("image/") && a.publicUrl ? /* @__PURE__ */ u(
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
|
-
className: r(
|
|
1908
|
+
className: r(G.imageWrapper, l == null ? void 0 : l.imageWrapper),
|
|
1909
1909
|
children: [
|
|
1910
1910
|
/* @__PURE__ */ u("div", { className: "relative group", children: [
|
|
1911
1911
|
/* @__PURE__ */ e(
|
|
@@ -1913,7 +1913,7 @@ const jn = ({
|
|
|
1913
1913
|
{
|
|
1914
1914
|
src: a.publicUrl,
|
|
1915
1915
|
alt: a.name,
|
|
1916
|
-
className: r(
|
|
1916
|
+
className: r(G.image, l == null ? void 0 : l.image)
|
|
1917
1917
|
}
|
|
1918
1918
|
),
|
|
1919
1919
|
/* @__PURE__ */ e(
|
|
@@ -1921,7 +1921,7 @@ const jn = ({
|
|
|
1921
1921
|
{
|
|
1922
1922
|
width: 20,
|
|
1923
1923
|
height: 20,
|
|
1924
|
-
className: r(
|
|
1924
|
+
className: r(G.closeIcon),
|
|
1925
1925
|
onClick: () => c == null ? void 0 : c(a.id)
|
|
1926
1926
|
}
|
|
1927
1927
|
)
|
|
@@ -1930,18 +1930,18 @@ const jn = ({
|
|
|
1930
1930
|
Xe,
|
|
1931
1931
|
{
|
|
1932
1932
|
href: a.publicUrl,
|
|
1933
|
-
classNames: { root:
|
|
1933
|
+
classNames: { root: G.imageText },
|
|
1934
1934
|
isIconVisible: !1,
|
|
1935
1935
|
children: a.name
|
|
1936
1936
|
}
|
|
1937
1937
|
)
|
|
1938
1938
|
]
|
|
1939
1939
|
}
|
|
1940
|
-
) : /* @__PURE__ */ u("div", { className: r(
|
|
1941
|
-
/* @__PURE__ */ e(
|
|
1940
|
+
) : /* @__PURE__ */ u("div", { className: r(G.fileWrapper, l == null ? void 0 : l.file), children: [
|
|
1941
|
+
/* @__PURE__ */ e(rr, { className: G.fileIcon, role: "img" }),
|
|
1942
1942
|
/* @__PURE__ */ u("div", { children: [
|
|
1943
|
-
/* @__PURE__ */ e(
|
|
1944
|
-
/* @__PURE__ */ e(
|
|
1943
|
+
/* @__PURE__ */ e(w, { variant: "p", className: G.fileText, children: a.name }),
|
|
1944
|
+
/* @__PURE__ */ e(w, { variant: "p", className: G.fileSize, children: ft(a.size) })
|
|
1945
1945
|
] }),
|
|
1946
1946
|
/* @__PURE__ */ e(
|
|
1947
1947
|
Xe,
|
|
@@ -1951,10 +1951,10 @@ const jn = ({
|
|
|
1951
1951
|
classNames: { root: "p-0" },
|
|
1952
1952
|
target: "_blank",
|
|
1953
1953
|
children: /* @__PURE__ */ e(
|
|
1954
|
-
|
|
1954
|
+
gr,
|
|
1955
1955
|
{
|
|
1956
1956
|
"data-testid": "download-icon",
|
|
1957
|
-
className:
|
|
1957
|
+
className: G.icon,
|
|
1958
1958
|
width: 24,
|
|
1959
1959
|
height: 24,
|
|
1960
1960
|
viewBox: "0 0 16 17"
|
|
@@ -1967,7 +1967,7 @@ const jn = ({
|
|
|
1967
1967
|
{
|
|
1968
1968
|
width: 24,
|
|
1969
1969
|
height: 24,
|
|
1970
|
-
className:
|
|
1970
|
+
className: G.icon,
|
|
1971
1971
|
onClick: () => c == null ? void 0 : c(a.id),
|
|
1972
1972
|
viewBox: "0 0 20 20"
|
|
1973
1973
|
}
|
|
@@ -1977,9 +1977,9 @@ const jn = ({
|
|
|
1977
1977
|
"label",
|
|
1978
1978
|
{
|
|
1979
1979
|
htmlFor: "file-upload",
|
|
1980
|
-
className: r(
|
|
1980
|
+
className: r(G.target, l == null ? void 0 : l.target),
|
|
1981
1981
|
children: [
|
|
1982
|
-
/* @__PURE__ */ e(
|
|
1982
|
+
/* @__PURE__ */ e(Ir, { className: G.plusIcon, role: "img" }),
|
|
1983
1983
|
/* @__PURE__ */ e(
|
|
1984
1984
|
"input",
|
|
1985
1985
|
{
|
|
@@ -1987,7 +1987,7 @@ const jn = ({
|
|
|
1987
1987
|
type: "file",
|
|
1988
1988
|
onChange: n,
|
|
1989
1989
|
multiple: !0,
|
|
1990
|
-
className:
|
|
1990
|
+
className: G.input
|
|
1991
1991
|
}
|
|
1992
1992
|
)
|
|
1993
1993
|
]
|
|
@@ -1995,14 +1995,14 @@ const jn = ({
|
|
|
1995
1995
|
)
|
|
1996
1996
|
] }),
|
|
1997
1997
|
d && /* @__PURE__ */ e(
|
|
1998
|
-
|
|
1998
|
+
w,
|
|
1999
1999
|
{
|
|
2000
2000
|
variant: "p",
|
|
2001
|
-
className: r(
|
|
2001
|
+
className: r(G.description, l == null ? void 0 : l.description),
|
|
2002
2002
|
children: d
|
|
2003
2003
|
}
|
|
2004
2004
|
)
|
|
2005
|
-
] }),
|
|
2005
|
+
] }), G = {
|
|
2006
2006
|
wrapper: "flex flex-col w-full",
|
|
2007
2007
|
header: "flex flex-row gap-1 justify-start items-center",
|
|
2008
2008
|
headerIcon: "w-4 h-4 text-dark-40/[.30]",
|
|
@@ -2021,7 +2021,7 @@ const jn = ({
|
|
|
2021
2021
|
plusIcon: "text-dark-40/[.30]",
|
|
2022
2022
|
input: "hidden",
|
|
2023
2023
|
description: "text-xs text-dark-40/[.80] mt-0.5 font-semibold"
|
|
2024
|
-
},
|
|
2024
|
+
}, Zo = ({
|
|
2025
2025
|
classNames: t,
|
|
2026
2026
|
disabled: d,
|
|
2027
2027
|
onChange: i,
|
|
@@ -2031,29 +2031,29 @@ const jn = ({
|
|
|
2031
2031
|
icon: l,
|
|
2032
2032
|
iconSizes: a
|
|
2033
2033
|
}) => {
|
|
2034
|
-
const [h, p] =
|
|
2034
|
+
const [h, p] = A(!1), g = xr(o)(c), b = Bt.base, x = Bt.disabled.trigger, s = Bt.disabled.triggerText, y = ({
|
|
2035
2035
|
className: m,
|
|
2036
2036
|
text: B = ""
|
|
2037
2037
|
}) => /* @__PURE__ */ e(
|
|
2038
|
-
|
|
2038
|
+
w,
|
|
2039
2039
|
{
|
|
2040
2040
|
className: r(
|
|
2041
|
-
|
|
2041
|
+
b.placeholder,
|
|
2042
2042
|
m,
|
|
2043
2043
|
d && s
|
|
2044
2044
|
),
|
|
2045
2045
|
children: B
|
|
2046
2046
|
}
|
|
2047
2047
|
);
|
|
2048
|
-
return /* @__PURE__ */ u(
|
|
2048
|
+
return /* @__PURE__ */ u(vt, { open: h, onOpenChange: p, children: [
|
|
2049
2049
|
/* @__PURE__ */ u(
|
|
2050
|
-
|
|
2050
|
+
st,
|
|
2051
2051
|
{
|
|
2052
2052
|
role: "listbox",
|
|
2053
2053
|
disabled: d,
|
|
2054
2054
|
className: r(
|
|
2055
|
-
|
|
2056
|
-
d &&
|
|
2055
|
+
b.trigger,
|
|
2056
|
+
d && x,
|
|
2057
2057
|
t == null ? void 0 : t.trigger
|
|
2058
2058
|
),
|
|
2059
2059
|
children: [
|
|
@@ -2063,54 +2063,54 @@ const jn = ({
|
|
|
2063
2063
|
width: a == null ? void 0 : a.width,
|
|
2064
2064
|
height: a == null ? void 0 : a.height,
|
|
2065
2065
|
viewBox: a == null ? void 0 : a.viewBox,
|
|
2066
|
-
className: r(
|
|
2066
|
+
className: r(b.icon, t == null ? void 0 : t.icon)
|
|
2067
2067
|
}
|
|
2068
|
-
) : /* @__PURE__ */ e(
|
|
2068
|
+
) : /* @__PURE__ */ e(y, { text: "Сортировать:", className: b.label }),
|
|
2069
2069
|
c ? /* @__PURE__ */ e(
|
|
2070
|
-
|
|
2070
|
+
y,
|
|
2071
2071
|
{
|
|
2072
2072
|
"data-testid": "dropdown-selected-option",
|
|
2073
2073
|
text: g == null ? void 0 : g.label,
|
|
2074
|
-
className: r(
|
|
2074
|
+
className: r(b.selected, t == null ? void 0 : t.selected)
|
|
2075
2075
|
}
|
|
2076
2076
|
) : /* @__PURE__ */ e(
|
|
2077
|
-
|
|
2077
|
+
y,
|
|
2078
2078
|
{
|
|
2079
2079
|
text: n,
|
|
2080
|
-
className: r(
|
|
2080
|
+
className: r(b.placeholder, t == null ? void 0 : t.placeholder)
|
|
2081
2081
|
}
|
|
2082
2082
|
),
|
|
2083
2083
|
/* @__PURE__ */ e(
|
|
2084
2084
|
"div",
|
|
2085
2085
|
{
|
|
2086
2086
|
className: r(
|
|
2087
|
-
|
|
2087
|
+
b.dropdownIcon,
|
|
2088
2088
|
h && "rotate-180 transition-transform"
|
|
2089
2089
|
),
|
|
2090
|
-
children: /* @__PURE__ */ e(
|
|
2090
|
+
children: /* @__PURE__ */ e(_r, { className: "fill-dark-30" })
|
|
2091
2091
|
}
|
|
2092
2092
|
)
|
|
2093
2093
|
]
|
|
2094
2094
|
}
|
|
2095
2095
|
),
|
|
2096
2096
|
/* @__PURE__ */ e(
|
|
2097
|
-
|
|
2097
|
+
mt,
|
|
2098
2098
|
{
|
|
2099
|
-
className: r(
|
|
2099
|
+
className: r(b.content, t == null ? void 0 : t.content),
|
|
2100
2100
|
align: "end",
|
|
2101
2101
|
sideOffset: 1,
|
|
2102
2102
|
children: o && (o == null ? void 0 : o.map((m) => /* @__PURE__ */ e(
|
|
2103
|
-
|
|
2103
|
+
$t,
|
|
2104
2104
|
{
|
|
2105
|
-
className:
|
|
2105
|
+
className: b.items,
|
|
2106
2106
|
onClick: (B) => {
|
|
2107
2107
|
B.stopPropagation(), i(m.value), p(!1);
|
|
2108
2108
|
},
|
|
2109
2109
|
children: /* @__PURE__ */ e(
|
|
2110
|
-
|
|
2110
|
+
w,
|
|
2111
2111
|
{
|
|
2112
2112
|
className: r(
|
|
2113
|
-
|
|
2113
|
+
b.item,
|
|
2114
2114
|
c === m.value && "before:bg-dark-10",
|
|
2115
2115
|
c === m.value ? "font-semibold" : "font-regular"
|
|
2116
2116
|
),
|
|
@@ -2123,7 +2123,7 @@ const jn = ({
|
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
] });
|
|
2126
|
-
},
|
|
2126
|
+
}, Bt = {
|
|
2127
2127
|
base: {
|
|
2128
2128
|
content: "border border rounded-[10px] shadow-lg p-2.5",
|
|
2129
2129
|
dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
|
|
@@ -2141,7 +2141,7 @@ const jn = ({
|
|
|
2141
2141
|
},
|
|
2142
2142
|
focus: "focus-visible:ring-8 focus-visible:bg-primary-10 focus-visible:bg-primary-10 focus-visible:ring-primary-30 focus-visible:border-primary-10",
|
|
2143
2143
|
hover: "hover:bg-primary-20 hover:border-primary-20"
|
|
2144
|
-
},
|
|
2144
|
+
}, Xn = ({
|
|
2145
2145
|
photo: t,
|
|
2146
2146
|
fullname: d,
|
|
2147
2147
|
status: i,
|
|
@@ -2161,7 +2161,7 @@ const jn = ({
|
|
|
2161
2161
|
onClick: l,
|
|
2162
2162
|
children: [
|
|
2163
2163
|
/* @__PURE__ */ e(
|
|
2164
|
-
|
|
2164
|
+
Lt,
|
|
2165
2165
|
{
|
|
2166
2166
|
fullName: d,
|
|
2167
2167
|
jobTitle: i,
|
|
@@ -2181,7 +2181,7 @@ const jn = ({
|
|
|
2181
2181
|
/* @__PURE__ */ u("div", { className: r(Ie.timeWrapper, o == null ? void 0 : o.timeWrapper), children: [
|
|
2182
2182
|
/* @__PURE__ */ e("time", { className: r(Ie.time, o == null ? void 0 : o.time), children: c }),
|
|
2183
2183
|
!!n && /* @__PURE__ */ e(
|
|
2184
|
-
|
|
2184
|
+
w,
|
|
2185
2185
|
{
|
|
2186
2186
|
className: r(Ie.notification, o == null ? void 0 : o.notification),
|
|
2187
2187
|
"data-testid": "notification",
|
|
@@ -2199,7 +2199,7 @@ const jn = ({
|
|
|
2199
2199
|
notification: "flex items-center justify-center bg-primary-30 w-auto px-1 h-4 text-xs text-sidebar-10 rounded-full font-medium",
|
|
2200
2200
|
fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
|
|
2201
2201
|
jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
|
|
2202
|
-
},
|
|
2202
|
+
}, Qo = Q(
|
|
2203
2203
|
({ classNames: t, disabled: d, item: { icon: i, label: o = "" }, ...n }, c) => /* @__PURE__ */ u(
|
|
2204
2204
|
"button",
|
|
2205
2205
|
{
|
|
@@ -2236,7 +2236,7 @@ const jn = ({
|
|
|
2236
2236
|
}
|
|
2237
2237
|
),
|
|
2238
2238
|
o && /* @__PURE__ */ e(
|
|
2239
|
-
|
|
2239
|
+
w,
|
|
2240
2240
|
{
|
|
2241
2241
|
className: r(
|
|
2242
2242
|
be.base.label,
|
|
@@ -2265,16 +2265,16 @@ const jn = ({
|
|
|
2265
2265
|
hover: {
|
|
2266
2266
|
container: "hover:border-primary-20/[.30]"
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, Xo = z.forwardRef(({ textareaProps: t, disabled: d, classNames: i, iconSizes: o, onIconClick: n }, c) => {
|
|
2269
2269
|
const l = ot.base, a = ot.button, h = (t == null ? void 0 : t.status) === "danger", p = z.useRef(null), f = (g) => {
|
|
2270
|
-
var
|
|
2271
|
-
g.key === "Enter" && (g.preventDefault(), (
|
|
2270
|
+
var b;
|
|
2271
|
+
g.key === "Enter" && (g.preventDefault(), (b = p.current) == null || b.click());
|
|
2272
2272
|
};
|
|
2273
2273
|
return /* @__PURE__ */ u("div", { className: r(ot.parent, i == null ? void 0 : i.parent), children: [
|
|
2274
2274
|
h && /* @__PURE__ */ e(se, { className: "fill-danger-10 mb-[5px]" }),
|
|
2275
2275
|
/* @__PURE__ */ u("div", { className: r(ot.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
2276
2276
|
/* @__PURE__ */ e(
|
|
2277
|
-
|
|
2277
|
+
or,
|
|
2278
2278
|
{
|
|
2279
2279
|
...t,
|
|
2280
2280
|
"aria-label": "Комментарий",
|
|
@@ -2295,7 +2295,7 @@ const jn = ({
|
|
|
2295
2295
|
i == null ? void 0 : i.button
|
|
2296
2296
|
),
|
|
2297
2297
|
children: /* @__PURE__ */ e(
|
|
2298
|
-
|
|
2298
|
+
Wr,
|
|
2299
2299
|
{
|
|
2300
2300
|
width: o == null ? void 0 : o.width,
|
|
2301
2301
|
height: o == null ? void 0 : o.height,
|
|
@@ -2328,10 +2328,10 @@ const jn = ({
|
|
|
2328
2328
|
hover: "group-hover:text-primary-20",
|
|
2329
2329
|
disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
|
|
2330
2330
|
}
|
|
2331
|
-
},
|
|
2331
|
+
}, mr = Q(
|
|
2332
2332
|
({ checked: t, classNames: d, disabled: i, label: o, ...n }, c) => /* @__PURE__ */ u("div", { className: r(ye.wrapper, d == null ? void 0 : d.wrapper), children: [
|
|
2333
2333
|
/* @__PURE__ */ e(
|
|
2334
|
-
|
|
2334
|
+
ir,
|
|
2335
2335
|
{
|
|
2336
2336
|
className: r(
|
|
2337
2337
|
!i && ye.radio.base,
|
|
@@ -2344,7 +2344,7 @@ const jn = ({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
2346
2346
|
/* @__PURE__ */ e(
|
|
2347
|
-
|
|
2347
|
+
P,
|
|
2348
2348
|
{
|
|
2349
2349
|
className: r(
|
|
2350
2350
|
ye.label.base,
|
|
@@ -2359,18 +2359,18 @@ const jn = ({
|
|
|
2359
2359
|
)
|
|
2360
2360
|
] })
|
|
2361
2361
|
);
|
|
2362
|
-
|
|
2363
|
-
const
|
|
2362
|
+
mr.displayName = "RadioGroup";
|
|
2363
|
+
const Jn = ({
|
|
2364
2364
|
openDropdown: t,
|
|
2365
2365
|
setOpenDropdown: d,
|
|
2366
2366
|
isExpanded: i,
|
|
2367
2367
|
item: { id: o, label: n, icon: c, to: l, subItems: a },
|
|
2368
2368
|
onSubNavClick: h
|
|
2369
2369
|
}) => {
|
|
2370
|
-
const [p] =
|
|
2371
|
-
return /* @__PURE__ */ e(
|
|
2370
|
+
const [p] = Ot();
|
|
2371
|
+
return /* @__PURE__ */ e(rn, { type: "single", collapsible: !0, children: /* @__PURE__ */ u(nn, { value: String(o), children: [
|
|
2372
2372
|
/* @__PURE__ */ u(
|
|
2373
|
-
|
|
2373
|
+
on,
|
|
2374
2374
|
{
|
|
2375
2375
|
className: r(
|
|
2376
2376
|
"justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px] hover:data-[state=open]:bg-dark-20",
|
|
@@ -2385,7 +2385,7 @@ const Qn = ({
|
|
|
2385
2385
|
},
|
|
2386
2386
|
children: [
|
|
2387
2387
|
!!c && (i ? /* @__PURE__ */ e(c, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
|
|
2388
|
-
|
|
2388
|
+
Qn,
|
|
2389
2389
|
{
|
|
2390
2390
|
triggerElement: /* @__PURE__ */ e(
|
|
2391
2391
|
"div",
|
|
@@ -2413,7 +2413,7 @@ const Qn = ({
|
|
|
2413
2413
|
}
|
|
2414
2414
|
)),
|
|
2415
2415
|
i && /* @__PURE__ */ e(
|
|
2416
|
-
|
|
2416
|
+
w,
|
|
2417
2417
|
{
|
|
2418
2418
|
variant: "span",
|
|
2419
2419
|
className: r(
|
|
@@ -2426,8 +2426,8 @@ const Qn = ({
|
|
|
2426
2426
|
]
|
|
2427
2427
|
}
|
|
2428
2428
|
),
|
|
2429
|
-
i && /* @__PURE__ */ e(
|
|
2430
|
-
|
|
2429
|
+
i && /* @__PURE__ */ e(dn, { className: "flex flex-col gap-[2.5px] items-start", children: a == null ? void 0 : a.map((f) => /* @__PURE__ */ e(
|
|
2430
|
+
Ft,
|
|
2431
2431
|
{
|
|
2432
2432
|
to: `${l}/${f == null ? void 0 : f.to}?${p.toString()}`,
|
|
2433
2433
|
onClick: h,
|
|
@@ -2440,7 +2440,7 @@ const Qn = ({
|
|
|
2440
2440
|
f.id
|
|
2441
2441
|
)) })
|
|
2442
2442
|
] }) });
|
|
2443
|
-
},
|
|
2443
|
+
}, Jo = ({
|
|
2444
2444
|
isExpanded: t = !0,
|
|
2445
2445
|
navList: d,
|
|
2446
2446
|
onCollapse: i
|
|
@@ -2460,7 +2460,7 @@ const Qn = ({
|
|
|
2460
2460
|
{
|
|
2461
2461
|
className: r(l.base, t && l.expanded),
|
|
2462
2462
|
children: [
|
|
2463
|
-
/* @__PURE__ */ e(
|
|
2463
|
+
/* @__PURE__ */ e(Ft, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Vr, {}) : /* @__PURE__ */ e(sn, {}) }),
|
|
2464
2464
|
/* @__PURE__ */ e(
|
|
2465
2465
|
O,
|
|
2466
2466
|
{
|
|
@@ -2469,7 +2469,7 @@ const Qn = ({
|
|
|
2469
2469
|
classNames: { base: "p-0" },
|
|
2470
2470
|
onClick: i,
|
|
2471
2471
|
children: /* @__PURE__ */ e(
|
|
2472
|
-
|
|
2472
|
+
mn,
|
|
2473
2473
|
{
|
|
2474
2474
|
className: r(
|
|
2475
2475
|
h,
|
|
@@ -2487,7 +2487,7 @@ const Qn = ({
|
|
|
2487
2487
|
/* @__PURE__ */ e("div", { className: r(a.base, !t && a.expanded), children: d.map((p) => {
|
|
2488
2488
|
var f;
|
|
2489
2489
|
return /* @__PURE__ */ e(z.Fragment, { children: (f = p.subItems) != null && f.length ? /* @__PURE__ */ e(
|
|
2490
|
-
|
|
2490
|
+
Jn,
|
|
2491
2491
|
{
|
|
2492
2492
|
item: p,
|
|
2493
2493
|
isExpanded: t,
|
|
@@ -2497,7 +2497,7 @@ const Qn = ({
|
|
|
2497
2497
|
)
|
|
2498
2498
|
}
|
|
2499
2499
|
) : /* @__PURE__ */ e(
|
|
2500
|
-
|
|
2500
|
+
oo,
|
|
2501
2501
|
{
|
|
2502
2502
|
item: p,
|
|
2503
2503
|
badge: p.badge,
|
|
@@ -2522,14 +2522,14 @@ const Qn = ({
|
|
|
2522
2522
|
base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
|
|
2523
2523
|
expanded: "w-16 items-center"
|
|
2524
2524
|
}
|
|
2525
|
-
},
|
|
2525
|
+
}, Po = ({
|
|
2526
2526
|
options: t,
|
|
2527
2527
|
selectedValue: d,
|
|
2528
2528
|
onChange: i,
|
|
2529
2529
|
classNames: o,
|
|
2530
2530
|
isError: n = !1
|
|
2531
2531
|
}) => {
|
|
2532
|
-
const [c, l] =
|
|
2532
|
+
const [c, l] = A(!1), a = oe(null), h = (p) => {
|
|
2533
2533
|
i(p), l(!1);
|
|
2534
2534
|
};
|
|
2535
2535
|
return /* @__PURE__ */ e(
|
|
@@ -2559,7 +2559,7 @@ const Qn = ({
|
|
|
2559
2559
|
children: d.label
|
|
2560
2560
|
}
|
|
2561
2561
|
) }),
|
|
2562
|
-
n && /* @__PURE__ */ e(
|
|
2562
|
+
n && /* @__PURE__ */ e(w, { className: St.error, children: "Введите все языки" }),
|
|
2563
2563
|
/* @__PURE__ */ e(
|
|
2564
2564
|
pe,
|
|
2565
2565
|
{
|
|
@@ -2567,11 +2567,11 @@ const Qn = ({
|
|
|
2567
2567
|
align: "center",
|
|
2568
2568
|
sideOffset: 4,
|
|
2569
2569
|
side: "bottom",
|
|
2570
|
-
className: r(
|
|
2571
|
-
children: /* @__PURE__ */ e("div", { className: r(
|
|
2570
|
+
className: r(St.root, o == null ? void 0 : o.content),
|
|
2571
|
+
children: /* @__PURE__ */ e("div", { className: r(St.optionsWrapper), children: t.map((p) => {
|
|
2572
2572
|
const f = `radio-${p.value}`;
|
|
2573
2573
|
return /* @__PURE__ */ e(
|
|
2574
|
-
|
|
2574
|
+
mr,
|
|
2575
2575
|
{
|
|
2576
2576
|
id: f,
|
|
2577
2577
|
checked: p.value === (d == null ? void 0 : d.value),
|
|
@@ -2586,11 +2586,11 @@ const Qn = ({
|
|
|
2586
2586
|
] })
|
|
2587
2587
|
}
|
|
2588
2588
|
);
|
|
2589
|
-
},
|
|
2589
|
+
}, St = {
|
|
2590
2590
|
root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
|
|
2591
2591
|
optionsWrapper: "flex flex-col gap-3.5",
|
|
2592
2592
|
error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
|
|
2593
|
-
},
|
|
2593
|
+
}, Pn = [
|
|
2594
2594
|
{
|
|
2595
2595
|
label: "10",
|
|
2596
2596
|
value: "10"
|
|
@@ -2608,7 +2608,7 @@ const Qn = ({
|
|
|
2608
2608
|
value: "100"
|
|
2609
2609
|
}
|
|
2610
2610
|
];
|
|
2611
|
-
function
|
|
2611
|
+
function Nn(t, d) {
|
|
2612
2612
|
if (d <= 10)
|
|
2613
2613
|
return Array.from({ length: d }, (c, l) => l + 1);
|
|
2614
2614
|
const i = [], o = Math.max(t - 2, 1), n = Math.min(t + 2, d);
|
|
@@ -2617,7 +2617,7 @@ function Jn(t, d) {
|
|
|
2617
2617
|
c !== 1 && c !== d && i.push(c);
|
|
2618
2618
|
return n < d - 1 && i.push("..."), d > 1 && i.push(d), i;
|
|
2619
2619
|
}
|
|
2620
|
-
const
|
|
2620
|
+
const No = ({
|
|
2621
2621
|
currentPageIndex: t,
|
|
2622
2622
|
onPageChange: d,
|
|
2623
2623
|
totalPages: i,
|
|
@@ -2626,7 +2626,7 @@ const Jo = ({
|
|
|
2626
2626
|
totalItems: c = 10,
|
|
2627
2627
|
className: l
|
|
2628
2628
|
}) => {
|
|
2629
|
-
const a = t === 1, h = t === i, p = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), g =
|
|
2629
|
+
const a = t === 1, h = t === i, p = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), g = Nn(t, i);
|
|
2630
2630
|
return /* @__PURE__ */ u("div", { className: r($.wrapper, l), children: [
|
|
2631
2631
|
/* @__PURE__ */ u("div", { className: r($.countWrapper.base), children: [
|
|
2632
2632
|
/* @__PURE__ */ e("p", { className: r($.countWrapper.text), children: "Отображено: " }),
|
|
@@ -2654,7 +2654,7 @@ const Jo = ({
|
|
|
2654
2654
|
)
|
|
2655
2655
|
},
|
|
2656
2656
|
children: /* @__PURE__ */ e(
|
|
2657
|
-
|
|
2657
|
+
qr,
|
|
2658
2658
|
{
|
|
2659
2659
|
width: 28,
|
|
2660
2660
|
height: 28,
|
|
@@ -2667,23 +2667,23 @@ const Jo = ({
|
|
|
2667
2667
|
}
|
|
2668
2668
|
),
|
|
2669
2669
|
/* @__PURE__ */ e("div", { className: r($.nav.pageBtnWrapper), children: g.map(
|
|
2670
|
-
(
|
|
2670
|
+
(b, x) => b === "..." ? /* @__PURE__ */ e("span", { className: r($.pageButton.base), children: "..." }, `dots-${x}`) : /* @__PURE__ */ e(
|
|
2671
2671
|
O,
|
|
2672
2672
|
{
|
|
2673
|
-
onClick: () => d == null ? void 0 : d(
|
|
2674
|
-
"aria-current":
|
|
2673
|
+
onClick: () => d == null ? void 0 : d(b),
|
|
2674
|
+
"aria-current": b === t ? "page" : void 0,
|
|
2675
2675
|
classNames: {
|
|
2676
2676
|
base: r(
|
|
2677
2677
|
$.pageButton.base,
|
|
2678
2678
|
$.pageButton.hover,
|
|
2679
2679
|
$.pageButton.focus,
|
|
2680
2680
|
$.pageButton.pressed,
|
|
2681
|
-
|
|
2681
|
+
b === t && $.pageButton.active
|
|
2682
2682
|
)
|
|
2683
2683
|
},
|
|
2684
|
-
children:
|
|
2684
|
+
children: b
|
|
2685
2685
|
},
|
|
2686
|
-
`page-${
|
|
2686
|
+
`page-${b}`
|
|
2687
2687
|
)
|
|
2688
2688
|
) }),
|
|
2689
2689
|
/* @__PURE__ */ e(
|
|
@@ -2702,7 +2702,7 @@ const Jo = ({
|
|
|
2702
2702
|
)
|
|
2703
2703
|
},
|
|
2704
2704
|
children: /* @__PURE__ */ e(
|
|
2705
|
-
|
|
2705
|
+
un,
|
|
2706
2706
|
{
|
|
2707
2707
|
width: 28,
|
|
2708
2708
|
height: 28,
|
|
@@ -2717,7 +2717,7 @@ const Jo = ({
|
|
|
2717
2717
|
/* @__PURE__ */ e(
|
|
2718
2718
|
De,
|
|
2719
2719
|
{
|
|
2720
|
-
options:
|
|
2720
|
+
options: Pn,
|
|
2721
2721
|
onChange: n,
|
|
2722
2722
|
value: o,
|
|
2723
2723
|
classNames: {
|
|
@@ -2756,7 +2756,7 @@ const Jo = ({
|
|
|
2756
2756
|
text: "text-dark-40/[.50] font-mono text-sm leading-none font-medium",
|
|
2757
2757
|
current: "text-dark-30 font-mono text-sm leading-none font-medium"
|
|
2758
2758
|
}
|
|
2759
|
-
},
|
|
2759
|
+
}, Gt = {
|
|
2760
2760
|
UZ: {
|
|
2761
2761
|
mask: "+___ (__) ___ __ __",
|
|
2762
2762
|
replacement: { _: /\d/ }
|
|
@@ -2765,7 +2765,7 @@ const Jo = ({
|
|
|
2765
2765
|
mask: "+_______________",
|
|
2766
2766
|
replacement: { _: /\d/ }
|
|
2767
2767
|
}
|
|
2768
|
-
},
|
|
2768
|
+
}, ei = ({
|
|
2769
2769
|
value: t = "",
|
|
2770
2770
|
id: d,
|
|
2771
2771
|
label: i,
|
|
@@ -2778,22 +2778,22 @@ const Jo = ({
|
|
|
2778
2778
|
...p
|
|
2779
2779
|
}) => {
|
|
2780
2780
|
const f = ht(
|
|
2781
|
-
() =>
|
|
2781
|
+
() => Gt[l] || Gt.DEFAULT,
|
|
2782
2782
|
[l]
|
|
2783
|
-
), g =
|
|
2784
|
-
() =>
|
|
2783
|
+
), g = sr(f), [b, x] = A(
|
|
2784
|
+
() => kt(String(t), f)
|
|
2785
2785
|
);
|
|
2786
2786
|
ve(() => {
|
|
2787
|
-
|
|
2787
|
+
x(kt(String(t), f));
|
|
2788
2788
|
}, [t, f]);
|
|
2789
2789
|
const s = (v) => {
|
|
2790
|
-
const C = v.target.value.replace(/\D/g, ""), D =
|
|
2791
|
-
|
|
2792
|
-
},
|
|
2793
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
2790
|
+
const C = v.target.value.replace(/\D/g, ""), D = kt(C, f);
|
|
2791
|
+
x(D), a == null || a(C);
|
|
2792
|
+
}, y = ke.parent, m = ke.base, B = ke.hover, S = ke.focus, j = ke.disabled, k = c && ke.variants[c];
|
|
2793
|
+
return /* @__PURE__ */ u("div", { className: r(y, h == null ? void 0 : h.parent), children: [
|
|
2794
2794
|
/* @__PURE__ */ u("div", { className: ke.title, children: [
|
|
2795
2795
|
!!i && /* @__PURE__ */ e(
|
|
2796
|
-
|
|
2796
|
+
P,
|
|
2797
2797
|
{
|
|
2798
2798
|
htmlFor: d,
|
|
2799
2799
|
className: r(h == null ? void 0 : h.label),
|
|
@@ -2809,7 +2809,7 @@ const Jo = ({
|
|
|
2809
2809
|
ref: g,
|
|
2810
2810
|
id: d,
|
|
2811
2811
|
onChange: s,
|
|
2812
|
-
value:
|
|
2812
|
+
value: b,
|
|
2813
2813
|
placeholder: l === "UZ" ? "+998 (__) ___ __ __" : "Введите телефон номер",
|
|
2814
2814
|
disabled: o,
|
|
2815
2815
|
autoFocus: n,
|
|
@@ -2836,7 +2836,7 @@ const Jo = ({
|
|
|
2836
2836
|
variants: {
|
|
2837
2837
|
danger: "bg-white border border-danger-20 ring-2 ring-danger-40/[.20] focus:border-danger-20 focus:ring-2 focus:ring-danger-40/[.20] hover:border-danger-20"
|
|
2838
2838
|
}
|
|
2839
|
-
}, { Root:
|
|
2839
|
+
}, { Root: eo } = br, ti = Pt.forwardRef(
|
|
2840
2840
|
({
|
|
2841
2841
|
id: t = "",
|
|
2842
2842
|
title: d,
|
|
@@ -2850,42 +2850,42 @@ const Jo = ({
|
|
|
2850
2850
|
onClick: p,
|
|
2851
2851
|
...f
|
|
2852
2852
|
}, g) => {
|
|
2853
|
-
const [
|
|
2854
|
-
|
|
2855
|
-
},
|
|
2853
|
+
const [b, x] = A(o || ""), s = (v) => {
|
|
2854
|
+
x(v), n == null || n(t, v);
|
|
2855
|
+
}, y = f.disabled || !1, m = Ue.base, B = Ue.pressed, S = Ue.hover, j = Ue.disabled, k = Ue.content;
|
|
2856
2856
|
return /* @__PURE__ */ u(
|
|
2857
|
-
|
|
2857
|
+
eo,
|
|
2858
2858
|
{
|
|
2859
2859
|
ref: g,
|
|
2860
2860
|
onClick: () => p == null ? void 0 : p(t),
|
|
2861
2861
|
className: r(
|
|
2862
2862
|
m,
|
|
2863
2863
|
B,
|
|
2864
|
-
!
|
|
2865
|
-
|
|
2864
|
+
!y && S,
|
|
2865
|
+
y && j,
|
|
2866
2866
|
h
|
|
2867
2867
|
),
|
|
2868
2868
|
...f,
|
|
2869
2869
|
children: [
|
|
2870
2870
|
/* @__PURE__ */ u("div", { className: k.header, "data-testid": "plate", children: [
|
|
2871
2871
|
/* @__PURE__ */ e(
|
|
2872
|
-
|
|
2872
|
+
w,
|
|
2873
2873
|
{
|
|
2874
2874
|
className: r(
|
|
2875
2875
|
k.title,
|
|
2876
|
-
|
|
2876
|
+
y && k.disabled
|
|
2877
2877
|
),
|
|
2878
2878
|
children: d
|
|
2879
2879
|
}
|
|
2880
2880
|
),
|
|
2881
2881
|
/* @__PURE__ */ u("div", { className: k.actions, children: [
|
|
2882
2882
|
!!l && /* @__PURE__ */ e(
|
|
2883
|
-
|
|
2883
|
+
wr,
|
|
2884
2884
|
{
|
|
2885
2885
|
options: l,
|
|
2886
|
-
value:
|
|
2886
|
+
value: b,
|
|
2887
2887
|
onChange: s,
|
|
2888
|
-
disabled:
|
|
2888
|
+
disabled: y
|
|
2889
2889
|
}
|
|
2890
2890
|
),
|
|
2891
2891
|
!!a && /* @__PURE__ */ u(ae, { children: [
|
|
@@ -2897,7 +2897,7 @@ const Jo = ({
|
|
|
2897
2897
|
base: k.button
|
|
2898
2898
|
},
|
|
2899
2899
|
children: /* @__PURE__ */ e(
|
|
2900
|
-
|
|
2900
|
+
hn,
|
|
2901
2901
|
{
|
|
2902
2902
|
className: k.icon,
|
|
2903
2903
|
width: 15,
|
|
@@ -2912,7 +2912,7 @@ const Jo = ({
|
|
|
2912
2912
|
] })
|
|
2913
2913
|
] }),
|
|
2914
2914
|
/* @__PURE__ */ e("div", { className: k.flatType, children: !!c && /* @__PURE__ */ e(qe, { text: c, variant: "warning" }) }),
|
|
2915
|
-
/* @__PURE__ */ e("div", { className: k.flexWrapper, children: i.map((v) => /* @__PURE__ */ u(
|
|
2915
|
+
/* @__PURE__ */ e("div", { className: k.flexWrapper, children: i.map((v) => /* @__PURE__ */ u(w, { className: k.typography, children: [
|
|
2916
2916
|
v.label,
|
|
2917
2917
|
":",
|
|
2918
2918
|
v.href ? /* @__PURE__ */ e(
|
|
@@ -2932,7 +2932,7 @@ const Jo = ({
|
|
|
2932
2932
|
{
|
|
2933
2933
|
className: r(
|
|
2934
2934
|
k.amount,
|
|
2935
|
-
|
|
2935
|
+
y && k.disabled
|
|
2936
2936
|
),
|
|
2937
2937
|
children: v.value
|
|
2938
2938
|
}
|
|
@@ -2961,21 +2961,21 @@ const Jo = ({
|
|
|
2961
2961
|
amount: "block text-dark-30 font-semibold break-all",
|
|
2962
2962
|
disabled: "text-dark-30/[.42]"
|
|
2963
2963
|
}
|
|
2964
|
-
},
|
|
2965
|
-
|
|
2964
|
+
}, ri = Pt.forwardRef(({ tabs: t = [], activeTab: d, onTabChange: i, classNames: o, iconSizes: n }, c) => /* @__PURE__ */ e(
|
|
2965
|
+
lr,
|
|
2966
2966
|
{
|
|
2967
2967
|
ref: c,
|
|
2968
2968
|
value: d,
|
|
2969
2969
|
onValueChange: i,
|
|
2970
2970
|
className: r(o == null ? void 0 : o.tab, Ce.tab),
|
|
2971
|
-
children: /* @__PURE__ */ e(
|
|
2972
|
-
|
|
2971
|
+
children: /* @__PURE__ */ e(pr, { className: r(Ce.list, o == null ? void 0 : o.list), children: t && t.map((l) => /* @__PURE__ */ u(
|
|
2972
|
+
cr,
|
|
2973
2973
|
{
|
|
2974
2974
|
value: l.value,
|
|
2975
2975
|
disabled: l.disabled,
|
|
2976
2976
|
className: r(Ce.trigger, o == null ? void 0 : o.trigger),
|
|
2977
2977
|
children: [
|
|
2978
|
-
/* @__PURE__ */ u(
|
|
2978
|
+
/* @__PURE__ */ u(w, { variant: "span", className: Ce.label, children: [
|
|
2979
2979
|
(l == null ? void 0 : l.icon) && /* @__PURE__ */ e(
|
|
2980
2980
|
l.icon,
|
|
2981
2981
|
{
|
|
@@ -2991,7 +2991,7 @@ const Jo = ({
|
|
|
2991
2991
|
" ",
|
|
2992
2992
|
l.label
|
|
2993
2993
|
] }),
|
|
2994
|
-
l.badge && /* @__PURE__ */ e(
|
|
2994
|
+
l.badge && /* @__PURE__ */ e(w, { variant: "span", className: Ce.badge, children: l.badge })
|
|
2995
2995
|
]
|
|
2996
2996
|
},
|
|
2997
2997
|
l.value
|
|
@@ -3006,14 +3006,14 @@ const Jo = ({
|
|
|
3006
3006
|
label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
|
|
3007
3007
|
activeIcon: "fill-dark-40",
|
|
3008
3008
|
iconInactive: "fill-dark-40/[.50]"
|
|
3009
|
-
},
|
|
3009
|
+
}, ni = z.forwardRef(
|
|
3010
3010
|
({ tabs: t = [], activeTab: d, onTabChange: i, onEditTabContent: o, classNames: n }, c) => {
|
|
3011
|
-
const l = _e.base, a = _e.list, h = _e.trigger, p = _e.content, f = _e.overlayBorder, g = _e.datalist,
|
|
3011
|
+
const l = _e.base, a = _e.list, h = _e.trigger, p = _e.content, f = _e.overlayBorder, g = _e.datalist, b = ({ list: x }) => /* @__PURE__ */ e(
|
|
3012
3012
|
"ul",
|
|
3013
3013
|
{
|
|
3014
3014
|
role: "listbox",
|
|
3015
3015
|
className: r(g.base, n == null ? void 0 : n.datalist),
|
|
3016
|
-
children:
|
|
3016
|
+
children: x.map((s, y) => /* @__PURE__ */ u(
|
|
3017
3017
|
"li",
|
|
3018
3018
|
{
|
|
3019
3019
|
className: r(g.item, n == null ? void 0 : n.dataItem),
|
|
@@ -3026,36 +3026,36 @@ const Jo = ({
|
|
|
3026
3026
|
s.value
|
|
3027
3027
|
]
|
|
3028
3028
|
},
|
|
3029
|
-
|
|
3029
|
+
y
|
|
3030
3030
|
))
|
|
3031
3031
|
}
|
|
3032
3032
|
);
|
|
3033
3033
|
return /* @__PURE__ */ u(
|
|
3034
|
-
|
|
3034
|
+
lr,
|
|
3035
3035
|
{
|
|
3036
3036
|
ref: c,
|
|
3037
3037
|
value: d,
|
|
3038
3038
|
onValueChange: i,
|
|
3039
3039
|
className: r(l, n == null ? void 0 : n.base),
|
|
3040
3040
|
children: [
|
|
3041
|
-
/* @__PURE__ */ e(
|
|
3042
|
-
|
|
3041
|
+
/* @__PURE__ */ e(pr, { className: r(a, n == null ? void 0 : n.list), children: t.map((x, s, y) => /* @__PURE__ */ u(
|
|
3042
|
+
cr,
|
|
3043
3043
|
{
|
|
3044
|
-
value:
|
|
3045
|
-
disabled:
|
|
3044
|
+
value: x.value,
|
|
3045
|
+
disabled: x.disabled,
|
|
3046
3046
|
className: r(
|
|
3047
3047
|
"curved-tab",
|
|
3048
3048
|
s === 0 && "first-tab",
|
|
3049
|
-
s ===
|
|
3049
|
+
s === y.length - 1 && "last-tab",
|
|
3050
3050
|
h.base,
|
|
3051
3051
|
h.active,
|
|
3052
3052
|
h.hover,
|
|
3053
|
-
|
|
3053
|
+
x.disabled && h.disabled,
|
|
3054
3054
|
n == null ? void 0 : n.trigger
|
|
3055
3055
|
),
|
|
3056
3056
|
children: [
|
|
3057
3057
|
s + 1,
|
|
3058
|
-
d ===
|
|
3058
|
+
d === x.value && /* @__PURE__ */ e(
|
|
3059
3059
|
"div",
|
|
3060
3060
|
{
|
|
3061
3061
|
className: r(f, n == null ? void 0 : n.overlayBorder)
|
|
@@ -3063,21 +3063,21 @@ const Jo = ({
|
|
|
3063
3063
|
)
|
|
3064
3064
|
]
|
|
3065
3065
|
},
|
|
3066
|
-
|
|
3066
|
+
x.value
|
|
3067
3067
|
)) }),
|
|
3068
|
-
t.map((
|
|
3069
|
-
|
|
3068
|
+
t.map((x, s, y) => /* @__PURE__ */ u(
|
|
3069
|
+
an,
|
|
3070
3070
|
{
|
|
3071
|
-
value:
|
|
3071
|
+
value: x.value,
|
|
3072
3072
|
className: r(
|
|
3073
3073
|
p.base,
|
|
3074
3074
|
s === 0 && "rounded-ss-none",
|
|
3075
|
-
s ===
|
|
3075
|
+
s === y.length - 1 && "rounded-se-none",
|
|
3076
3076
|
n == null ? void 0 : n.content
|
|
3077
3077
|
),
|
|
3078
3078
|
children: [
|
|
3079
3079
|
/* @__PURE__ */ u("div", { className: p.title.wrapper, children: [
|
|
3080
|
-
/* @__PURE__ */ u(
|
|
3080
|
+
/* @__PURE__ */ u(w, { className: p.title.text, children: [
|
|
3081
3081
|
"Квартира – ",
|
|
3082
3082
|
s + 1
|
|
3083
3083
|
] }),
|
|
@@ -3085,16 +3085,16 @@ const Jo = ({
|
|
|
3085
3085
|
"button",
|
|
3086
3086
|
{
|
|
3087
3087
|
className: "hover:cursor-pointer",
|
|
3088
|
-
onClick: () => o(
|
|
3089
|
-
children: /* @__PURE__ */ e(
|
|
3088
|
+
onClick: () => o(x),
|
|
3089
|
+
children: /* @__PURE__ */ e(Ar, { className: "fill-sidebar-10" })
|
|
3090
3090
|
}
|
|
3091
3091
|
)
|
|
3092
3092
|
] }),
|
|
3093
3093
|
/* @__PURE__ */ u("div", { className: g.title.wrapper, children: [
|
|
3094
|
-
/* @__PURE__ */ e(
|
|
3095
|
-
/* @__PURE__ */ e(
|
|
3094
|
+
/* @__PURE__ */ e(w, { className: g.title.text, children: "Общая площадь:" }),
|
|
3095
|
+
/* @__PURE__ */ e(b, { list: x.content.main })
|
|
3096
3096
|
] }),
|
|
3097
|
-
/* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(
|
|
3097
|
+
/* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(b, { list: x.content.secondary }) })
|
|
3098
3098
|
]
|
|
3099
3099
|
},
|
|
3100
3100
|
s
|
|
@@ -3128,34 +3128,34 @@ const Jo = ({
|
|
|
3128
3128
|
base: "flex flex-col gap-1.5",
|
|
3129
3129
|
item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
|
|
3130
3130
|
}
|
|
3131
|
-
},
|
|
3131
|
+
}, oi = ({
|
|
3132
3132
|
disabled: t,
|
|
3133
3133
|
labelProps: d,
|
|
3134
3134
|
textareaProps: i,
|
|
3135
3135
|
...o
|
|
3136
3136
|
}) => {
|
|
3137
|
-
const n =
|
|
3137
|
+
const n = Vt.root, c = (i == null ? void 0 : i.status) === "danger";
|
|
3138
3138
|
return /* @__PURE__ */ u("div", { ...o, className: n, children: [
|
|
3139
|
-
/* @__PURE__ */ u("div", { className:
|
|
3140
|
-
!!(d != null && d.children) && /* @__PURE__ */ e(
|
|
3139
|
+
/* @__PURE__ */ u("div", { className: Vt.labelWrapper, children: [
|
|
3140
|
+
!!(d != null && d.children) && /* @__PURE__ */ e(P, { ...d, disabled: t }),
|
|
3141
3141
|
c && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3142
3142
|
] }),
|
|
3143
|
-
/* @__PURE__ */ e(
|
|
3143
|
+
/* @__PURE__ */ e(or, { ...i, disabled: t })
|
|
3144
3144
|
] });
|
|
3145
|
-
},
|
|
3145
|
+
}, Vt = {
|
|
3146
3146
|
root: "w-full flex flex-col gap-1.5",
|
|
3147
3147
|
labelWrapper: "flex items-center gap-2"
|
|
3148
|
-
},
|
|
3148
|
+
}, ii = ({
|
|
3149
3149
|
fieldLabel: t,
|
|
3150
3150
|
disabled: d,
|
|
3151
3151
|
className: i,
|
|
3152
3152
|
labelProps: o,
|
|
3153
3153
|
toggleProps: n,
|
|
3154
3154
|
onClick: c
|
|
3155
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3156
|
-
/* @__PURE__ */ e(
|
|
3155
|
+
}) => /* @__PURE__ */ u("div", { className: r(to.root, i), children: [
|
|
3156
|
+
/* @__PURE__ */ e(P, { ...o, disabled: d, children: t }),
|
|
3157
3157
|
/* @__PURE__ */ e(
|
|
3158
|
-
|
|
3158
|
+
Lr,
|
|
3159
3159
|
{
|
|
3160
3160
|
disabled: d,
|
|
3161
3161
|
onClick: c,
|
|
@@ -3165,7 +3165,7 @@ const Jo = ({
|
|
|
3165
3165
|
labelPosition: n.labelPosition
|
|
3166
3166
|
}
|
|
3167
3167
|
)
|
|
3168
|
-
] }),
|
|
3168
|
+
] }), to = {
|
|
3169
3169
|
root: "flex flex-col items-start gap-3"
|
|
3170
3170
|
}, We = {
|
|
3171
3171
|
wrapper: "flex items-center justify-between cursor-pointer w-[330px] h-11 bg-gray-50 rounded-2xl p-4 border-2 border-transparent transition-all duration-300 ease-in-out hover:border-2 hover:border-primary-20/20",
|
|
@@ -3174,7 +3174,7 @@ const Jo = ({
|
|
|
3174
3174
|
active: "active:bg-transparent w-4 h-4 p-0 bg-transparent focus:bg-transparent hover:bg-transparent shadow-none hover:shadow-none active:shadow-none focus:shadow-none ring-0 focus:outline-none border-none"
|
|
3175
3175
|
},
|
|
3176
3176
|
wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
|
|
3177
|
-
},
|
|
3177
|
+
}, di = Q(
|
|
3178
3178
|
({
|
|
3179
3179
|
blockName: t,
|
|
3180
3180
|
className: d,
|
|
@@ -3203,10 +3203,10 @@ const Jo = ({
|
|
|
3203
3203
|
classNames: {
|
|
3204
3204
|
base: r(We.button.basic, We.button.active)
|
|
3205
3205
|
},
|
|
3206
|
-
children: /* @__PURE__ */ e(
|
|
3206
|
+
children: /* @__PURE__ */ e(en, {})
|
|
3207
3207
|
}
|
|
3208
3208
|
),
|
|
3209
|
-
/* @__PURE__ */ e(
|
|
3209
|
+
/* @__PURE__ */ e(w, { className: We.wrapperBlockName, children: t || "-" }),
|
|
3210
3210
|
/* @__PURE__ */ e(
|
|
3211
3211
|
O,
|
|
3212
3212
|
{
|
|
@@ -3217,13 +3217,13 @@ const Jo = ({
|
|
|
3217
3217
|
classNames: {
|
|
3218
3218
|
base: r(We.button.basic, We.button.active)
|
|
3219
3219
|
},
|
|
3220
|
-
children: /* @__PURE__ */ e(
|
|
3220
|
+
children: /* @__PURE__ */ e(fn, {})
|
|
3221
3221
|
}
|
|
3222
3222
|
)
|
|
3223
3223
|
]
|
|
3224
3224
|
}
|
|
3225
3225
|
)
|
|
3226
|
-
),
|
|
3226
|
+
), ro = [
|
|
3227
3227
|
"Январь",
|
|
3228
3228
|
"Февраль",
|
|
3229
3229
|
"Март",
|
|
@@ -3236,12 +3236,12 @@ const Jo = ({
|
|
|
3236
3236
|
"Октябрь",
|
|
3237
3237
|
"Ноябрь",
|
|
3238
3238
|
"Декабрь"
|
|
3239
|
-
],
|
|
3239
|
+
], no = Array.from({ length: 200 }, (t, d) => 1900 + d).map(
|
|
3240
3240
|
(t) => ({
|
|
3241
3241
|
label: t.toString(),
|
|
3242
3242
|
value: t.toString()
|
|
3243
3243
|
})
|
|
3244
|
-
),
|
|
3244
|
+
), ai = ({
|
|
3245
3245
|
value: t,
|
|
3246
3246
|
setValue: d,
|
|
3247
3247
|
disabled: i,
|
|
@@ -3252,57 +3252,57 @@ const Jo = ({
|
|
|
3252
3252
|
const l = oe(null), a = (T) => {
|
|
3253
3253
|
if (!T) return;
|
|
3254
3254
|
if (T instanceof Date) return T;
|
|
3255
|
-
const I =
|
|
3255
|
+
const I = At(
|
|
3256
3256
|
T,
|
|
3257
|
-
|
|
3257
|
+
Ht,
|
|
3258
3258
|
/* @__PURE__ */ new Date()
|
|
3259
3259
|
);
|
|
3260
3260
|
if (Fe(I)) return I;
|
|
3261
|
-
const F =
|
|
3261
|
+
const F = Cn(T);
|
|
3262
3262
|
return Fe(F) ? F : void 0;
|
|
3263
|
-
}, [h, p] =
|
|
3263
|
+
}, [h, p] = A(
|
|
3264
3264
|
a(t)
|
|
3265
|
-
), [f, g] =
|
|
3265
|
+
), [f, g] = A(
|
|
3266
3266
|
h == null ? void 0 : h.getDate()
|
|
3267
|
-
), [
|
|
3267
|
+
), [b, x] = A(
|
|
3268
3268
|
h == null ? void 0 : h.getMonth()
|
|
3269
|
-
), [s,
|
|
3269
|
+
), [s, y] = A(
|
|
3270
3270
|
h == null ? void 0 : h.getFullYear()
|
|
3271
3271
|
);
|
|
3272
3272
|
ve(() => {
|
|
3273
3273
|
const T = a(t);
|
|
3274
|
-
p(T), g(T == null ? void 0 : T.getDate()),
|
|
3274
|
+
p(T), g(T == null ? void 0 : T.getDate()), x(T == null ? void 0 : T.getMonth()), y(T == null ? void 0 : T.getFullYear());
|
|
3275
3275
|
}, [t]);
|
|
3276
|
-
const m = /* @__PURE__ */ new Date(), B = s ?? m.getFullYear(), S =
|
|
3276
|
+
const m = /* @__PURE__ */ new Date(), B = s ?? m.getFullYear(), S = b ?? m.getMonth(), j = ht(() => {
|
|
3277
3277
|
const T = new Date(B, S + 1, 0).getDate();
|
|
3278
3278
|
return Array.from({ length: T }, (I, F) => {
|
|
3279
|
-
const
|
|
3279
|
+
const V = F + 1;
|
|
3280
3280
|
return {
|
|
3281
|
-
label:
|
|
3282
|
-
value:
|
|
3281
|
+
label: V.toString().padStart(2, "0"),
|
|
3282
|
+
value: V.toString()
|
|
3283
3283
|
};
|
|
3284
3284
|
});
|
|
3285
3285
|
}, [S, B]), k = (T, I, F) => {
|
|
3286
3286
|
if (T !== void 0 && I !== void 0 && F !== void 0) {
|
|
3287
|
-
const
|
|
3288
|
-
p(
|
|
3289
|
-
|
|
3287
|
+
const V = new Date(F, I, T);
|
|
3288
|
+
p(V), d(
|
|
3289
|
+
Rr(V, Ht)
|
|
3290
3290
|
);
|
|
3291
3291
|
} else
|
|
3292
3292
|
p(void 0), d(void 0);
|
|
3293
3293
|
}, v = (T) => {
|
|
3294
3294
|
const I = parseInt(T);
|
|
3295
|
-
|
|
3295
|
+
x(I), k(f, I, s);
|
|
3296
3296
|
}, C = (T) => {
|
|
3297
3297
|
const I = parseInt(T);
|
|
3298
|
-
|
|
3298
|
+
y(I), k(f, b, I);
|
|
3299
3299
|
}, D = (T) => {
|
|
3300
3300
|
const I = parseInt(T);
|
|
3301
|
-
g(I), k(I,
|
|
3301
|
+
g(I), k(I, b, s);
|
|
3302
3302
|
};
|
|
3303
|
-
return /* @__PURE__ */ u("div", { ref: l, className:
|
|
3304
|
-
!!o && /* @__PURE__ */ e(
|
|
3305
|
-
/* @__PURE__ */ u("div", { className:
|
|
3303
|
+
return /* @__PURE__ */ u("div", { ref: l, className: qt.root, children: [
|
|
3304
|
+
!!o && /* @__PURE__ */ e(P, { className: r(c == null ? void 0 : c.label), children: o }),
|
|
3305
|
+
/* @__PURE__ */ u("div", { className: qt.selectContainer, children: [
|
|
3306
3306
|
/* @__PURE__ */ e(
|
|
3307
3307
|
De,
|
|
3308
3308
|
{
|
|
@@ -3321,7 +3321,7 @@ const Jo = ({
|
|
|
3321
3321
|
/* @__PURE__ */ e(
|
|
3322
3322
|
De,
|
|
3323
3323
|
{
|
|
3324
|
-
options:
|
|
3324
|
+
options: ro.map((T, I) => ({
|
|
3325
3325
|
label: T,
|
|
3326
3326
|
value: I.toString()
|
|
3327
3327
|
})),
|
|
@@ -3331,7 +3331,7 @@ const Jo = ({
|
|
|
3331
3331
|
},
|
|
3332
3332
|
disabled: i,
|
|
3333
3333
|
onChange: v,
|
|
3334
|
-
value:
|
|
3334
|
+
value: b !== void 0 ? String(b) : "",
|
|
3335
3335
|
placeholder: "Месяц",
|
|
3336
3336
|
status: n === "danger" ? "danger" : void 0
|
|
3337
3337
|
}
|
|
@@ -3339,7 +3339,7 @@ const Jo = ({
|
|
|
3339
3339
|
/* @__PURE__ */ e(
|
|
3340
3340
|
De,
|
|
3341
3341
|
{
|
|
3342
|
-
options:
|
|
3342
|
+
options: no,
|
|
3343
3343
|
classNames: {
|
|
3344
3344
|
trigger: r("w-full h-11", c == null ? void 0 : c.selectTrigger),
|
|
3345
3345
|
selected: r("text-sm", c == null ? void 0 : c.selectSelected)
|
|
@@ -3354,21 +3354,21 @@ const Jo = ({
|
|
|
3354
3354
|
)
|
|
3355
3355
|
] })
|
|
3356
3356
|
] });
|
|
3357
|
-
},
|
|
3357
|
+
}, qt = {
|
|
3358
3358
|
root: "relative w-full flex items-start flex-col gap-1.5",
|
|
3359
3359
|
selectContainer: "flex items-center gap-2.5 w-full",
|
|
3360
3360
|
label: "text-sm font-medium text-secondary-10 font-mono",
|
|
3361
3361
|
dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
|
|
3362
|
-
},
|
|
3362
|
+
}, oo = ({
|
|
3363
3363
|
badge: t,
|
|
3364
3364
|
isExpanded: d = !0,
|
|
3365
3365
|
disabled: i = !1,
|
|
3366
3366
|
item: { icon: o, label: n = "", to: c },
|
|
3367
3367
|
classNames: l
|
|
3368
3368
|
}) => {
|
|
3369
|
-
const [a] =
|
|
3369
|
+
const [a] = Ot(), h = Dt.base;
|
|
3370
3370
|
return /* @__PURE__ */ e(
|
|
3371
|
-
|
|
3371
|
+
Ft,
|
|
3372
3372
|
{
|
|
3373
3373
|
tabIndex: 1,
|
|
3374
3374
|
role: "link",
|
|
@@ -3408,14 +3408,14 @@ const Jo = ({
|
|
|
3408
3408
|
className: r(h.labelWrapper, l == null ? void 0 : l.labelWrapper),
|
|
3409
3409
|
children: [
|
|
3410
3410
|
!!n && d && /* @__PURE__ */ e(
|
|
3411
|
-
|
|
3411
|
+
w,
|
|
3412
3412
|
{
|
|
3413
3413
|
className: r(
|
|
3414
3414
|
h.label,
|
|
3415
3415
|
{
|
|
3416
3416
|
"text-primary-10": p,
|
|
3417
3417
|
"text-sidebar/[.15]": i,
|
|
3418
|
-
[
|
|
3418
|
+
[Dt.expanded.label]: !d
|
|
3419
3419
|
},
|
|
3420
3420
|
l == null ? void 0 : l.label
|
|
3421
3421
|
),
|
|
@@ -3423,12 +3423,12 @@ const Jo = ({
|
|
|
3423
3423
|
}
|
|
3424
3424
|
),
|
|
3425
3425
|
!!t && /* @__PURE__ */ e(
|
|
3426
|
-
|
|
3426
|
+
w,
|
|
3427
3427
|
{
|
|
3428
3428
|
variant: "span",
|
|
3429
3429
|
className: r(
|
|
3430
3430
|
h.badge,
|
|
3431
|
-
!d &&
|
|
3431
|
+
!d && Dt.expanded.badge,
|
|
3432
3432
|
l == null ? void 0 : l.badge
|
|
3433
3433
|
),
|
|
3434
3434
|
children: t
|
|
@@ -3440,7 +3440,7 @@ const Jo = ({
|
|
|
3440
3440
|
] })
|
|
3441
3441
|
}
|
|
3442
3442
|
);
|
|
3443
|
-
},
|
|
3443
|
+
}, Dt = {
|
|
3444
3444
|
base: {
|
|
3445
3445
|
container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
|
|
3446
3446
|
labelWrapper: "relative inline-block",
|
|
@@ -3454,20 +3454,20 @@ const Jo = ({
|
|
|
3454
3454
|
badge: "top-0 translate-x-1 -translate-y-4",
|
|
3455
3455
|
label: "w-0 opacity-0"
|
|
3456
3456
|
}
|
|
3457
|
-
},
|
|
3457
|
+
}, li = ({
|
|
3458
3458
|
options: t,
|
|
3459
3459
|
title: d,
|
|
3460
3460
|
setActiveStep: i,
|
|
3461
3461
|
disabled: o = !1,
|
|
3462
3462
|
classNames: n
|
|
3463
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3464
|
-
d && /* @__PURE__ */ u("div", { className: r(
|
|
3465
|
-
/* @__PURE__ */ e(
|
|
3463
|
+
}) => /* @__PURE__ */ u("div", { className: r(q.root, n == null ? void 0 : n.root), "data-testid": "stepper", children: [
|
|
3464
|
+
d && /* @__PURE__ */ u("div", { className: r(q.header, n == null ? void 0 : n.header), children: [
|
|
3465
|
+
/* @__PURE__ */ e(wn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
|
|
3466
3466
|
/* @__PURE__ */ e(
|
|
3467
3467
|
ut,
|
|
3468
3468
|
{
|
|
3469
3469
|
variant: "h2",
|
|
3470
|
-
className:
|
|
3470
|
+
className: q.headerTitle,
|
|
3471
3471
|
"data-testid": "stepper-title",
|
|
3472
3472
|
children: d
|
|
3473
3473
|
}
|
|
@@ -3476,56 +3476,56 @@ const Jo = ({
|
|
|
3476
3476
|
/* @__PURE__ */ e(
|
|
3477
3477
|
"div",
|
|
3478
3478
|
{
|
|
3479
|
-
className: r(
|
|
3479
|
+
className: r(q.timeline, n == null ? void 0 : n.timeline),
|
|
3480
3480
|
"data-testid": "stepper-timeline",
|
|
3481
3481
|
children: t.map((c, l) => /* @__PURE__ */ u(
|
|
3482
3482
|
"div",
|
|
3483
3483
|
{
|
|
3484
3484
|
"data-testid": `step-${l}`,
|
|
3485
|
-
className: r(
|
|
3485
|
+
className: r(q.stepWrapper, n == null ? void 0 : n.stepWrapper),
|
|
3486
3486
|
children: [
|
|
3487
|
-
l < t.length - 1 && /* @__PURE__ */ e("span", { className:
|
|
3488
|
-
/* @__PURE__ */ e("div", { className:
|
|
3487
|
+
l < t.length - 1 && /* @__PURE__ */ e("span", { className: q.verticalLine }),
|
|
3488
|
+
/* @__PURE__ */ e("div", { className: q.statusDotWrapper, children: c.activeStep ? /* @__PURE__ */ e("div", { className: q.activeDot, children: /* @__PURE__ */ e("span", { className: q.activeDotInner }) }) : /* @__PURE__ */ e(
|
|
3489
3489
|
"div",
|
|
3490
3490
|
{
|
|
3491
3491
|
onClick: () => !o && i(l),
|
|
3492
3492
|
className: r(
|
|
3493
|
-
|
|
3493
|
+
q.completedDotWrapper,
|
|
3494
3494
|
o ? "cursor-not-allowed" : "cursor-pointer"
|
|
3495
3495
|
),
|
|
3496
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3496
|
+
children: /* @__PURE__ */ e("span", { className: q.completedDot })
|
|
3497
3497
|
}
|
|
3498
3498
|
) }),
|
|
3499
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
3499
|
+
/* @__PURE__ */ u("div", { className: r(q.content, n == null ? void 0 : n.content), children: [
|
|
3500
3500
|
/* @__PURE__ */ e(
|
|
3501
3501
|
ut,
|
|
3502
3502
|
{
|
|
3503
3503
|
variant: "h3",
|
|
3504
3504
|
"data-testid": `step-${l}-title`,
|
|
3505
3505
|
className: r(
|
|
3506
|
-
c.activeStep ?
|
|
3506
|
+
c.activeStep ? q.title : q.titleCompleted,
|
|
3507
3507
|
n == null ? void 0 : n.title
|
|
3508
3508
|
),
|
|
3509
3509
|
children: c.title
|
|
3510
3510
|
}
|
|
3511
3511
|
),
|
|
3512
3512
|
/* @__PURE__ */ e(
|
|
3513
|
-
|
|
3513
|
+
w,
|
|
3514
3514
|
{
|
|
3515
3515
|
"data-testid": `step-${l}-subtitle`,
|
|
3516
3516
|
className: r(
|
|
3517
|
-
c.activeStep ?
|
|
3517
|
+
c.activeStep ? q.subtitle : q.subtitleCompleted,
|
|
3518
3518
|
n == null ? void 0 : n.subtitle
|
|
3519
3519
|
),
|
|
3520
3520
|
children: c.subtitle
|
|
3521
3521
|
}
|
|
3522
3522
|
),
|
|
3523
3523
|
/* @__PURE__ */ e(
|
|
3524
|
-
|
|
3524
|
+
w,
|
|
3525
3525
|
{
|
|
3526
3526
|
"data-testid": `step-${l}-date`,
|
|
3527
3527
|
className: r(
|
|
3528
|
-
c.activeStep ?
|
|
3528
|
+
c.activeStep ? q.date : q.dateCompleted,
|
|
3529
3529
|
n == null ? void 0 : n.date
|
|
3530
3530
|
),
|
|
3531
3531
|
children: c.date
|
|
@@ -3538,7 +3538,7 @@ const Jo = ({
|
|
|
3538
3538
|
))
|
|
3539
3539
|
}
|
|
3540
3540
|
)
|
|
3541
|
-
] }),
|
|
3541
|
+
] }), q = {
|
|
3542
3542
|
root: "relative flex flex-col bg-white w-full",
|
|
3543
3543
|
header: "flex items-center gap-1.5 mb-3",
|
|
3544
3544
|
headerTitle: "text-dark-40 text-sm font-bold font-mono",
|
|
@@ -3567,20 +3567,20 @@ const Jo = ({
|
|
|
3567
3567
|
"div",
|
|
3568
3568
|
{
|
|
3569
3569
|
className: r(
|
|
3570
|
-
|
|
3570
|
+
Kt.wrapper,
|
|
3571
3571
|
o === "right" && "flex-row-reverse",
|
|
3572
3572
|
i == null ? void 0 : i.wrapper
|
|
3573
3573
|
),
|
|
3574
3574
|
children: [
|
|
3575
3575
|
!!t && t,
|
|
3576
|
-
/* @__PURE__ */ e(
|
|
3576
|
+
/* @__PURE__ */ e(w, { className: r(Kt.headerTitle, i == null ? void 0 : i.title), children: d })
|
|
3577
3577
|
]
|
|
3578
3578
|
}
|
|
3579
|
-
),
|
|
3579
|
+
), Kt = {
|
|
3580
3580
|
wrapper: "flex items-center gap-2 w-full",
|
|
3581
3581
|
headerTitle: "font-mono font-semibold text-xl text-dark-30",
|
|
3582
3582
|
icon: "w-6 h-6 fill-dark-30 text-dark-30"
|
|
3583
|
-
},
|
|
3583
|
+
}, zt = Q(
|
|
3584
3584
|
({
|
|
3585
3585
|
id: t,
|
|
3586
3586
|
label: d,
|
|
@@ -3595,15 +3595,15 @@ const Jo = ({
|
|
|
3595
3595
|
...f
|
|
3596
3596
|
}, g) => {
|
|
3597
3597
|
var S;
|
|
3598
|
-
const
|
|
3599
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
3598
|
+
const b = dt.parent, x = dt.base, s = dt.icon, y = i || (p == null ? void 0 : p.disabled), m = !!(o || l), B = (p == null ? void 0 : p.status) === "danger";
|
|
3599
|
+
return /* @__PURE__ */ u("div", { className: r(b, a == null ? void 0 : a.parent), ...f, children: [
|
|
3600
3600
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
3601
3601
|
!!d && /* @__PURE__ */ e(
|
|
3602
|
-
|
|
3602
|
+
P,
|
|
3603
3603
|
{
|
|
3604
3604
|
htmlFor: t,
|
|
3605
3605
|
className: r(a == null ? void 0 : a.label),
|
|
3606
|
-
disabled:
|
|
3606
|
+
disabled: y,
|
|
3607
3607
|
children: d
|
|
3608
3608
|
}
|
|
3609
3609
|
),
|
|
@@ -3613,18 +3613,18 @@ const Jo = ({
|
|
|
3613
3613
|
"div",
|
|
3614
3614
|
{
|
|
3615
3615
|
className: r(
|
|
3616
|
-
|
|
3616
|
+
x,
|
|
3617
3617
|
m && dt.container,
|
|
3618
3618
|
a == null ? void 0 : a.base
|
|
3619
3619
|
),
|
|
3620
3620
|
children: [
|
|
3621
3621
|
/* @__PURE__ */ e(
|
|
3622
|
-
|
|
3622
|
+
zr,
|
|
3623
3623
|
{
|
|
3624
3624
|
...p,
|
|
3625
3625
|
ref: g,
|
|
3626
3626
|
id: t,
|
|
3627
|
-
disabled:
|
|
3627
|
+
disabled: y,
|
|
3628
3628
|
classNames: {
|
|
3629
3629
|
...p == null ? void 0 : p.classNames,
|
|
3630
3630
|
target: r(
|
|
@@ -3640,13 +3640,13 @@ const Jo = ({
|
|
|
3640
3640
|
{
|
|
3641
3641
|
role: "button",
|
|
3642
3642
|
type: "button",
|
|
3643
|
-
disabled:
|
|
3643
|
+
disabled: y,
|
|
3644
3644
|
className: r(
|
|
3645
3645
|
s.base,
|
|
3646
3646
|
c === "left" && "left-3.5",
|
|
3647
3647
|
c === "right" && "right-3.5",
|
|
3648
3648
|
h && s.clickable,
|
|
3649
|
-
|
|
3649
|
+
y && s.disabled,
|
|
3650
3650
|
a == null ? void 0 : a.iconButton
|
|
3651
3651
|
),
|
|
3652
3652
|
onClick: h,
|
|
@@ -3661,7 +3661,7 @@ const Jo = ({
|
|
|
3661
3661
|
height: n == null ? void 0 : n.height
|
|
3662
3662
|
}
|
|
3663
3663
|
),
|
|
3664
|
-
l && /* @__PURE__ */ e(
|
|
3664
|
+
l && /* @__PURE__ */ e(w, { className: r(s.text, a == null ? void 0 : a.text), children: l })
|
|
3665
3665
|
]
|
|
3666
3666
|
}
|
|
3667
3667
|
)
|
|
@@ -3699,31 +3699,31 @@ const Jo = ({
|
|
|
3699
3699
|
icon: "fill-dark-10/60 size-6",
|
|
3700
3700
|
text: "text-gray-10 text-sm font-mono leading-none"
|
|
3701
3701
|
}
|
|
3702
|
-
},
|
|
3702
|
+
}, pi = ({
|
|
3703
3703
|
icon: t,
|
|
3704
3704
|
element: d,
|
|
3705
3705
|
label: i,
|
|
3706
3706
|
classNames: o
|
|
3707
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
3707
|
+
}) => /* @__PURE__ */ u("div", { className: r(jt.wrapper, o == null ? void 0 : o.wrapper), children: [
|
|
3708
3708
|
!!t && /* @__PURE__ */ e(
|
|
3709
3709
|
"div",
|
|
3710
3710
|
{
|
|
3711
3711
|
"data-testid": "user-icon",
|
|
3712
|
-
className: r(
|
|
3712
|
+
className: r(jt.iconWrapper, o == null ? void 0 : o.iconWrapper),
|
|
3713
3713
|
children: t
|
|
3714
3714
|
}
|
|
3715
3715
|
),
|
|
3716
3716
|
!!i && /* @__PURE__ */ e(
|
|
3717
|
-
|
|
3717
|
+
w,
|
|
3718
3718
|
{
|
|
3719
3719
|
"data-testid": "user-label",
|
|
3720
3720
|
variant: "span",
|
|
3721
|
-
className: r(
|
|
3721
|
+
className: r(jt.label, o == null ? void 0 : o.label),
|
|
3722
3722
|
children: i
|
|
3723
3723
|
}
|
|
3724
3724
|
),
|
|
3725
3725
|
!!d && d
|
|
3726
|
-
] }),
|
|
3726
|
+
] }), jt = {
|
|
3727
3727
|
wrapper: "inline-flex w-auto gap-2 items-center justify-center",
|
|
3728
3728
|
iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
|
|
3729
3729
|
label: "text-dark-40/[.50] text-sm font-medium",
|
|
@@ -3748,16 +3748,16 @@ const Jo = ({
|
|
|
3748
3748
|
},
|
|
3749
3749
|
...p
|
|
3750
3750
|
}) => {
|
|
3751
|
-
const f =
|
|
3751
|
+
const f = io.states;
|
|
3752
3752
|
return /* @__PURE__ */ u(
|
|
3753
3753
|
Pe,
|
|
3754
3754
|
{
|
|
3755
3755
|
...p,
|
|
3756
3756
|
"data-testid": "link-root",
|
|
3757
3757
|
to: i,
|
|
3758
|
-
onClick: (
|
|
3759
|
-
if (
|
|
3760
|
-
|
|
3758
|
+
onClick: (b) => {
|
|
3759
|
+
if (b.stopPropagation(), d) {
|
|
3760
|
+
b.preventDefault();
|
|
3761
3761
|
return;
|
|
3762
3762
|
}
|
|
3763
3763
|
o && o();
|
|
@@ -3774,7 +3774,7 @@ const Jo = ({
|
|
|
3774
3774
|
),
|
|
3775
3775
|
children: [
|
|
3776
3776
|
c && /* @__PURE__ */ e(
|
|
3777
|
-
|
|
3777
|
+
Kr,
|
|
3778
3778
|
{
|
|
3779
3779
|
width: h.width,
|
|
3780
3780
|
height: h.height,
|
|
@@ -3786,7 +3786,7 @@ const Jo = ({
|
|
|
3786
3786
|
]
|
|
3787
3787
|
}
|
|
3788
3788
|
);
|
|
3789
|
-
},
|
|
3789
|
+
}, io = {
|
|
3790
3790
|
states: {
|
|
3791
3791
|
active: "active:text-primary-30",
|
|
3792
3792
|
disabled: "text-dark-30/[.30] cursor-not-allowed",
|
|
@@ -3794,7 +3794,7 @@ const Jo = ({
|
|
|
3794
3794
|
hover: "hover:text-primary-20",
|
|
3795
3795
|
normal: "font-mono text-primary-10 outline-none transition-colors underline underline-offset-2 text-sm leading-none flex gap-1 items-end px-1.5 pb-1.5"
|
|
3796
3796
|
}
|
|
3797
|
-
},
|
|
3797
|
+
}, wr = Q(
|
|
3798
3798
|
({
|
|
3799
3799
|
classNames: t,
|
|
3800
3800
|
disabled: d,
|
|
@@ -3804,15 +3804,15 @@ const Jo = ({
|
|
|
3804
3804
|
value: c
|
|
3805
3805
|
}, l) => {
|
|
3806
3806
|
var S;
|
|
3807
|
-
const [a, h] =
|
|
3807
|
+
const [a, h] = A(!1), f = xr(o)(c), g = oe(null), b = Ye.base, x = Ye.options, s = Ye.disabled.trigger, y = Ye.disabled.triggerText, m = (S = o.find((j) => j.value === c)) == null ? void 0 : S.status, B = ({
|
|
3808
3808
|
className: j,
|
|
3809
3809
|
text: k = ""
|
|
3810
3810
|
}) => /* @__PURE__ */ e(
|
|
3811
|
-
|
|
3811
|
+
w,
|
|
3812
3812
|
{
|
|
3813
3813
|
className: r(
|
|
3814
|
-
|
|
3815
|
-
d &&
|
|
3814
|
+
b.placeholder,
|
|
3815
|
+
d && y,
|
|
3816
3816
|
j
|
|
3817
3817
|
),
|
|
3818
3818
|
children: k
|
|
@@ -3823,16 +3823,16 @@ const Jo = ({
|
|
|
3823
3823
|
var j;
|
|
3824
3824
|
(j = g.current) == null || j.scrollIntoView({ block: "center" });
|
|
3825
3825
|
}, 0);
|
|
3826
|
-
}, [a]), /* @__PURE__ */ u(
|
|
3826
|
+
}, [a]), /* @__PURE__ */ u(vt, { open: a, onOpenChange: h, children: [
|
|
3827
3827
|
/* @__PURE__ */ u(
|
|
3828
|
-
|
|
3828
|
+
st,
|
|
3829
3829
|
{
|
|
3830
3830
|
role: "listbox",
|
|
3831
3831
|
disabled: d,
|
|
3832
3832
|
className: r(
|
|
3833
|
-
|
|
3833
|
+
b.trigger,
|
|
3834
3834
|
d && s,
|
|
3835
|
-
!a && !d &&
|
|
3835
|
+
!a && !d && b.hover,
|
|
3836
3836
|
t == null ? void 0 : t.trigger,
|
|
3837
3837
|
m && Ye.status[m]
|
|
3838
3838
|
),
|
|
@@ -3841,7 +3841,7 @@ const Jo = ({
|
|
|
3841
3841
|
B,
|
|
3842
3842
|
{
|
|
3843
3843
|
text: f == null ? void 0 : f.label,
|
|
3844
|
-
className: r(
|
|
3844
|
+
className: r(b.selected, t == null ? void 0 : t.selected)
|
|
3845
3845
|
}
|
|
3846
3846
|
) : /* @__PURE__ */ e(
|
|
3847
3847
|
B,
|
|
@@ -3851,9 +3851,9 @@ const Jo = ({
|
|
|
3851
3851
|
}
|
|
3852
3852
|
),
|
|
3853
3853
|
/* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
|
|
3854
|
-
|
|
3854
|
+
vr,
|
|
3855
3855
|
{
|
|
3856
|
-
className: r(
|
|
3856
|
+
className: r(b.icon, a && "rotate-180"),
|
|
3857
3857
|
width: 16,
|
|
3858
3858
|
height: 16,
|
|
3859
3859
|
viewBox: "0 0 24 24"
|
|
@@ -3863,16 +3863,16 @@ const Jo = ({
|
|
|
3863
3863
|
}
|
|
3864
3864
|
),
|
|
3865
3865
|
/* @__PURE__ */ e(
|
|
3866
|
-
|
|
3866
|
+
mt,
|
|
3867
3867
|
{
|
|
3868
|
-
className: r(
|
|
3868
|
+
className: r(x.content, t == null ? void 0 : t.content),
|
|
3869
3869
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
3870
3870
|
ref: l,
|
|
3871
|
-
children: /* @__PURE__ */ e("div", { className: r(
|
|
3872
|
-
|
|
3871
|
+
children: /* @__PURE__ */ e("div", { className: r(x.wrapper), children: !!o && (o == null ? void 0 : o.map((j) => /* @__PURE__ */ e(
|
|
3872
|
+
$t,
|
|
3873
3873
|
{
|
|
3874
3874
|
ref: c === j.value ? g : null,
|
|
3875
|
-
className: r(
|
|
3875
|
+
className: r(x.items),
|
|
3876
3876
|
onClick: (k) => {
|
|
3877
3877
|
k.preventDefault(), k.stopPropagation(), i(j.value), h(!1);
|
|
3878
3878
|
},
|
|
@@ -3885,7 +3885,7 @@ const Jo = ({
|
|
|
3885
3885
|
] });
|
|
3886
3886
|
}
|
|
3887
3887
|
);
|
|
3888
|
-
|
|
3888
|
+
wr.displayName = "StatusSelect";
|
|
3889
3889
|
const Ye = {
|
|
3890
3890
|
base: {
|
|
3891
3891
|
trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
|
|
@@ -3913,24 +3913,24 @@ const Ye = {
|
|
|
3913
3913
|
items: "group rounded-[5px] cursor-pointer p-0",
|
|
3914
3914
|
itemsText: "flex items-center w-full mr-1.5 text-dark-30 text-xs font-normal py-1 px-3 rounded-[50px]"
|
|
3915
3915
|
}
|
|
3916
|
-
},
|
|
3916
|
+
}, ci = ({
|
|
3917
3917
|
classNames: t,
|
|
3918
3918
|
label: d,
|
|
3919
3919
|
selectProps: i,
|
|
3920
3920
|
...o
|
|
3921
|
-
}) => /* @__PURE__ */ u("div", { ...o, className: r(
|
|
3921
|
+
}) => /* @__PURE__ */ u("div", { ...o, className: r(ao.container, t == null ? void 0 : t.container), children: [
|
|
3922
3922
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
3923
|
-
/* @__PURE__ */ e(
|
|
3923
|
+
/* @__PURE__ */ e(P, { disabled: i == null ? void 0 : i.disabled, className: t == null ? void 0 : t.label, children: d }),
|
|
3924
3924
|
(i == null ? void 0 : i.status) === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
3925
3925
|
] }),
|
|
3926
3926
|
/* @__PURE__ */ e(De, { ...i })
|
|
3927
|
-
] }),
|
|
3927
|
+
] }), ao = {
|
|
3928
3928
|
container: "w-full flex items-start flex-col gap-1.5"
|
|
3929
|
-
},
|
|
3929
|
+
}, ui = Q(
|
|
3930
3930
|
({
|
|
3931
3931
|
title: t,
|
|
3932
3932
|
file: d,
|
|
3933
|
-
|
|
3933
|
+
dateTime: i,
|
|
3934
3934
|
isDisabled: o = !1,
|
|
3935
3935
|
onDelete: n,
|
|
3936
3936
|
downloadUrl: c,
|
|
@@ -3953,9 +3953,9 @@ const Ye = {
|
|
|
3953
3953
|
/* @__PURE__ */ u("div", { className: U.titleContainer, children: [
|
|
3954
3954
|
/* @__PURE__ */ u("div", { className: U.textContainer, children: [
|
|
3955
3955
|
/* @__PURE__ */ e("div", { className: U.circle[l] }),
|
|
3956
|
-
/* @__PURE__ */ e(
|
|
3956
|
+
/* @__PURE__ */ e(w, { "data-testid": "title", className: U.text, children: t })
|
|
3957
3957
|
] }),
|
|
3958
|
-
/* @__PURE__ */ e(
|
|
3958
|
+
/* @__PURE__ */ e(w, { "data-testid": "date-and-time", className: U.dateAndTime, children: xt(i) })
|
|
3959
3959
|
] }),
|
|
3960
3960
|
/* @__PURE__ */ u("div", { className: U.fileContainer, children: [
|
|
3961
3961
|
/* @__PURE__ */ e("div", { className: U.iconContainer, children: d.type.startsWith("image/") ? /* @__PURE__ */ e(
|
|
@@ -3967,10 +3967,10 @@ const Ye = {
|
|
|
3967
3967
|
width: 22,
|
|
3968
3968
|
height: 30
|
|
3969
3969
|
}
|
|
3970
|
-
) : /* @__PURE__ */ e(
|
|
3970
|
+
) : /* @__PURE__ */ e(rr, { "data-testid": "pdf-icon", width: 22, height: 30 }) }),
|
|
3971
3971
|
/* @__PURE__ */ u("div", { className: "flex-grow", children: [
|
|
3972
3972
|
/* @__PURE__ */ e(
|
|
3973
|
-
|
|
3973
|
+
w,
|
|
3974
3974
|
{
|
|
3975
3975
|
className: r(
|
|
3976
3976
|
U.fileName,
|
|
@@ -3979,7 +3979,7 @@ const Ye = {
|
|
|
3979
3979
|
children: d.name
|
|
3980
3980
|
}
|
|
3981
3981
|
),
|
|
3982
|
-
/* @__PURE__ */ e(
|
|
3982
|
+
/* @__PURE__ */ e(w, { "data-testid": "size-file", className: U.sizeFile, children: ft(Number(d.size.toFixed(1))) })
|
|
3983
3983
|
] }),
|
|
3984
3984
|
/* @__PURE__ */ u("div", { className: U.buttonContainer, children: [
|
|
3985
3985
|
/* @__PURE__ */ e(
|
|
@@ -4043,9 +4043,9 @@ const Ye = {
|
|
|
4043
4043
|
textDisabled: "text-dark-30/25 fill-dark-30/25 decoration-dark-30/25",
|
|
4044
4044
|
iconContainer: "mr-3 pt-1.5 h-full",
|
|
4045
4045
|
fileImg: " object-cover"
|
|
4046
|
-
},
|
|
4046
|
+
}, hi = ({
|
|
4047
4047
|
title: t,
|
|
4048
|
-
|
|
4048
|
+
dateTime: d,
|
|
4049
4049
|
onDelete: i,
|
|
4050
4050
|
onDownload: o,
|
|
4051
4051
|
onShow: n,
|
|
@@ -4055,14 +4055,14 @@ const Ye = {
|
|
|
4055
4055
|
lastStatusText: h = "Text",
|
|
4056
4056
|
price: p = "100 000 000 UZS",
|
|
4057
4057
|
classNames: f
|
|
4058
|
-
}) => /* @__PURE__ */ u("div", { className: r(
|
|
4059
|
-
/* @__PURE__ */ u("div", { className:
|
|
4058
|
+
}) => /* @__PURE__ */ u("div", { className: r(J.wrapper, f == null ? void 0 : f.wrapper), children: [
|
|
4059
|
+
/* @__PURE__ */ u("div", { className: J.dateContainer.base, children: [
|
|
4060
4060
|
/* @__PURE__ */ e(
|
|
4061
4061
|
"div",
|
|
4062
4062
|
{
|
|
4063
4063
|
"data-testid": "date-and-time",
|
|
4064
|
-
className:
|
|
4065
|
-
children:
|
|
4064
|
+
className: J.dateContainer.dateAndTime,
|
|
4065
|
+
children: xt(d)
|
|
4066
4066
|
}
|
|
4067
4067
|
),
|
|
4068
4068
|
/* @__PURE__ */ e(
|
|
@@ -4074,11 +4074,11 @@ const Ye = {
|
|
|
4074
4074
|
}
|
|
4075
4075
|
)
|
|
4076
4076
|
] }),
|
|
4077
|
-
/* @__PURE__ */ u("div", { className:
|
|
4078
|
-
/* @__PURE__ */ e(
|
|
4079
|
-
/* @__PURE__ */ e(
|
|
4077
|
+
/* @__PURE__ */ u("div", { className: J.titleContainer.base, children: [
|
|
4078
|
+
/* @__PURE__ */ e(w, { "data-testid": "title", className: J.titleContainer.title, children: t }),
|
|
4079
|
+
/* @__PURE__ */ e(w, { "data-testid": "price", className: J.titleContainer.price, children: p })
|
|
4080
4080
|
] }),
|
|
4081
|
-
/* @__PURE__ */ u("div", { className:
|
|
4081
|
+
/* @__PURE__ */ u("div", { className: J.buttonContainer.base, children: [
|
|
4082
4082
|
/* @__PURE__ */ e(
|
|
4083
4083
|
qe,
|
|
4084
4084
|
{
|
|
@@ -4087,18 +4087,18 @@ const Ye = {
|
|
|
4087
4087
|
className: f == null ? void 0 : f.status
|
|
4088
4088
|
}
|
|
4089
4089
|
),
|
|
4090
|
-
/* @__PURE__ */ u("div", { className:
|
|
4090
|
+
/* @__PURE__ */ u("div", { className: J.buttonContainer.button, children: [
|
|
4091
4091
|
/* @__PURE__ */ e(
|
|
4092
4092
|
O,
|
|
4093
4093
|
{
|
|
4094
4094
|
"data-testid": "download-button",
|
|
4095
4095
|
classNames: {
|
|
4096
|
-
base: r(
|
|
4097
|
-
icon:
|
|
4096
|
+
base: r(J.button.basic),
|
|
4097
|
+
icon: J.button.icon
|
|
4098
4098
|
},
|
|
4099
4099
|
onClick: o,
|
|
4100
4100
|
variant: "text",
|
|
4101
|
-
icon:
|
|
4101
|
+
icon: gr,
|
|
4102
4102
|
iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
|
|
4103
4103
|
}
|
|
4104
4104
|
),
|
|
@@ -4107,12 +4107,12 @@ const Ye = {
|
|
|
4107
4107
|
{
|
|
4108
4108
|
"data-testid": "show-button",
|
|
4109
4109
|
classNames: {
|
|
4110
|
-
base: r(
|
|
4111
|
-
icon:
|
|
4110
|
+
base: r(J.button.basic),
|
|
4111
|
+
icon: J.button.icon
|
|
4112
4112
|
},
|
|
4113
4113
|
onClick: n,
|
|
4114
4114
|
variant: "text",
|
|
4115
|
-
icon:
|
|
4115
|
+
icon: tn,
|
|
4116
4116
|
iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
|
|
4117
4117
|
}
|
|
4118
4118
|
),
|
|
@@ -4121,8 +4121,8 @@ const Ye = {
|
|
|
4121
4121
|
{
|
|
4122
4122
|
"data-testid": "delete-button",
|
|
4123
4123
|
classNames: {
|
|
4124
|
-
base: r(
|
|
4125
|
-
icon:
|
|
4124
|
+
base: r(J.button.basic),
|
|
4125
|
+
icon: J.button.icon
|
|
4126
4126
|
},
|
|
4127
4127
|
onClick: i,
|
|
4128
4128
|
variant: "text",
|
|
@@ -4132,7 +4132,7 @@ const Ye = {
|
|
|
4132
4132
|
)
|
|
4133
4133
|
] })
|
|
4134
4134
|
] })
|
|
4135
|
-
] }),
|
|
4135
|
+
] }), J = {
|
|
4136
4136
|
wrapper: "w-[371px] h-max border border-dark-30/[.15] px-[26px] py-[15px]",
|
|
4137
4137
|
dateContainer: {
|
|
4138
4138
|
base: "flex items-center justify-between w-full",
|
|
@@ -4151,7 +4151,7 @@ const Ye = {
|
|
|
4151
4151
|
basic: " p-0",
|
|
4152
4152
|
icon: "fill-dark-30/[.50]"
|
|
4153
4153
|
}
|
|
4154
|
-
},
|
|
4154
|
+
}, fi = ({
|
|
4155
4155
|
title: t,
|
|
4156
4156
|
options: d,
|
|
4157
4157
|
icon: i,
|
|
@@ -4180,7 +4180,7 @@ const Ye = {
|
|
|
4180
4180
|
!!l.sectionTitle && /* @__PURE__ */ e(ut, { variant: "h2", className: de.title, children: l.sectionTitle }),
|
|
4181
4181
|
!!l.sectionSubtitle && /* @__PURE__ */ e(ut, { variant: "h3", className: de.subTitle, children: l.sectionSubtitle }),
|
|
4182
4182
|
/* @__PURE__ */ e("ul", { className: de.items, children: (h = l.items) == null ? void 0 : h.map((p, f) => /* @__PURE__ */ u("li", { children: [
|
|
4183
|
-
!!p.subtitle && /* @__PURE__ */ e(
|
|
4183
|
+
!!p.subtitle && /* @__PURE__ */ e(w, { "data-testid": "subtitle", className: de.item, children: p == null ? void 0 : p.subtitle }),
|
|
4184
4184
|
/* @__PURE__ */ e(
|
|
4185
4185
|
O,
|
|
4186
4186
|
{
|
|
@@ -4208,7 +4208,7 @@ const Ye = {
|
|
|
4208
4208
|
link: "font-medium text-sm text-[#2AABEE] font-mono p-0 underline underline-offset-[3px] hover:text-[#2AABEE]",
|
|
4209
4209
|
headerIcon: "p-0 text-dark-10 font-semibold text-xl gap-1.5",
|
|
4210
4210
|
icon: "fill-dark-30"
|
|
4211
|
-
},
|
|
4211
|
+
}, xi = ({
|
|
4212
4212
|
title: t,
|
|
4213
4213
|
options: d,
|
|
4214
4214
|
classNames: i
|
|
@@ -4216,7 +4216,7 @@ const Ye = {
|
|
|
4216
4216
|
const o = Te.base, n = Te.content.wrapper, c = Te.content.title, l = Te.content.typography, a = Te.content.amount, h = Te.content.amountBold, p = d.find((g) => g.total), f = d.filter((g) => !g.total);
|
|
4217
4217
|
return /* @__PURE__ */ u("div", { className: r(o, i == null ? void 0 : i.root), children: [
|
|
4218
4218
|
/* @__PURE__ */ e("div", { className: n, "data-testid": "plate", children: /* @__PURE__ */ e(
|
|
4219
|
-
|
|
4219
|
+
w,
|
|
4220
4220
|
{
|
|
4221
4221
|
"data-testid": "title",
|
|
4222
4222
|
className: r(c, i == null ? void 0 : i.title),
|
|
@@ -4272,20 +4272,20 @@ const Ye = {
|
|
|
4272
4272
|
classNames: i,
|
|
4273
4273
|
...o
|
|
4274
4274
|
}) => /* @__PURE__ */ u(
|
|
4275
|
-
|
|
4275
|
+
w,
|
|
4276
4276
|
{
|
|
4277
4277
|
"data-testid": "label",
|
|
4278
|
-
className: r(
|
|
4278
|
+
className: r(Zt.label, i == null ? void 0 : i.label),
|
|
4279
4279
|
...o,
|
|
4280
4280
|
children: [
|
|
4281
4281
|
d,
|
|
4282
|
-
/* @__PURE__ */ e("span", { "data-testid": "value", className: r(
|
|
4282
|
+
/* @__PURE__ */ e("span", { "data-testid": "value", className: r(Zt.value, i == null ? void 0 : i.value), children: t })
|
|
4283
4283
|
]
|
|
4284
4284
|
}
|
|
4285
|
-
),
|
|
4285
|
+
), Zt = {
|
|
4286
4286
|
label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
|
|
4287
4287
|
value: "text-sm text-dark-30 font-semibold"
|
|
4288
|
-
},
|
|
4288
|
+
}, lo = Q(
|
|
4289
4289
|
({
|
|
4290
4290
|
classNames: t,
|
|
4291
4291
|
disabled: d,
|
|
@@ -4300,46 +4300,46 @@ const Ye = {
|
|
|
4300
4300
|
options: f = []
|
|
4301
4301
|
}, g) => {
|
|
4302
4302
|
var xe;
|
|
4303
|
-
const [
|
|
4304
|
-
const
|
|
4305
|
-
|
|
4306
|
-
}, C = (
|
|
4307
|
-
|
|
4308
|
-
const W = f.find((H) => H.value ===
|
|
4303
|
+
const [b, x] = A(!1), [s, y] = A(a || ""), [m, B] = A(""), [S, j] = A(null), k = oe(null), v = () => {
|
|
4304
|
+
const M = m.trim();
|
|
4305
|
+
M && (S && c ? (c(M, S), j(null)) : n(M), B(""));
|
|
4306
|
+
}, C = (M, K) => {
|
|
4307
|
+
K.stopPropagation(), j(M);
|
|
4308
|
+
const W = f.find((H) => H.value === M);
|
|
4309
4309
|
W && B(W.label);
|
|
4310
|
-
}, D = (
|
|
4311
|
-
|
|
4310
|
+
}, D = (M, K) => {
|
|
4311
|
+
K.stopPropagation(), o(M), s === M && y("");
|
|
4312
4312
|
}, T = () => {
|
|
4313
4313
|
B(""), j(null);
|
|
4314
4314
|
}, I = () => {
|
|
4315
|
-
|
|
4315
|
+
x(!1), T();
|
|
4316
4316
|
}, F = () => {
|
|
4317
|
-
i(s),
|
|
4318
|
-
},
|
|
4319
|
-
|
|
4320
|
-
}, ie = a ? ((xe = f.find((
|
|
4321
|
-
return /* @__PURE__ */ u("div", { className:
|
|
4322
|
-
h && /* @__PURE__ */ e(
|
|
4323
|
-
/* @__PURE__ */ u(ae, { open:
|
|
4317
|
+
i(s), x(!1), T();
|
|
4318
|
+
}, V = (M) => {
|
|
4319
|
+
x(M), M || T();
|
|
4320
|
+
}, ie = a ? ((xe = f.find((M) => M.value === a)) == null ? void 0 : xe.label) || a : "", ce = ie ? E.base.selected : E.base.placeholder;
|
|
4321
|
+
return /* @__PURE__ */ u("div", { className: E.container, children: [
|
|
4322
|
+
h && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: d, children: h }),
|
|
4323
|
+
/* @__PURE__ */ u(ae, { open: b, onOpenChange: V, children: [
|
|
4324
4324
|
/* @__PURE__ */ u(
|
|
4325
4325
|
le,
|
|
4326
4326
|
{
|
|
4327
4327
|
role: "listbox",
|
|
4328
4328
|
disabled: d,
|
|
4329
4329
|
className: r(
|
|
4330
|
-
|
|
4331
|
-
d &&
|
|
4332
|
-
|
|
4333
|
-
!
|
|
4330
|
+
E.base.trigger,
|
|
4331
|
+
d && E.disabled.trigger,
|
|
4332
|
+
b && E.base.focus,
|
|
4333
|
+
!b && !d && E.base.hover,
|
|
4334
4334
|
t == null ? void 0 : t.trigger
|
|
4335
4335
|
),
|
|
4336
4336
|
children: [
|
|
4337
4337
|
/* @__PURE__ */ e(
|
|
4338
|
-
|
|
4338
|
+
w,
|
|
4339
4339
|
{
|
|
4340
4340
|
className: r(
|
|
4341
|
-
|
|
4342
|
-
d &&
|
|
4341
|
+
E.base.text,
|
|
4342
|
+
d && E.disabled.triggerText,
|
|
4343
4343
|
t == null ? void 0 : t[ie ? "selected" : "placeholder"],
|
|
4344
4344
|
ce
|
|
4345
4345
|
),
|
|
@@ -4353,9 +4353,9 @@ const Ye = {
|
|
|
4353
4353
|
height: 20,
|
|
4354
4354
|
viewBox: "0 0 20 20",
|
|
4355
4355
|
className: r(
|
|
4356
|
-
|
|
4357
|
-
d &&
|
|
4358
|
-
|
|
4356
|
+
E.base.icon,
|
|
4357
|
+
d && E.base.iconDisabled,
|
|
4358
|
+
b && "-rotate-180"
|
|
4359
4359
|
)
|
|
4360
4360
|
}
|
|
4361
4361
|
)
|
|
@@ -4366,51 +4366,51 @@ const Ye = {
|
|
|
4366
4366
|
pe,
|
|
4367
4367
|
{
|
|
4368
4368
|
container: k.current,
|
|
4369
|
-
className: r(
|
|
4369
|
+
className: r(E.options.content, t == null ? void 0 : t.content),
|
|
4370
4370
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
4371
4371
|
ref: g,
|
|
4372
4372
|
children: [
|
|
4373
|
-
p && /* @__PURE__ */ e(
|
|
4373
|
+
p && /* @__PURE__ */ e(w, { className: r(E.options.label), children: p }),
|
|
4374
4374
|
/* @__PURE__ */ e(
|
|
4375
|
-
|
|
4375
|
+
zt,
|
|
4376
4376
|
{
|
|
4377
4377
|
inputProps: {
|
|
4378
4378
|
id: "select-list",
|
|
4379
4379
|
classNames: { target: "px-3 py-[9px]" },
|
|
4380
4380
|
placeholder: S && p ? `Редактировать ${p}` : p || "",
|
|
4381
4381
|
value: m,
|
|
4382
|
-
onChange: (
|
|
4382
|
+
onChange: (M) => B(M.target.value)
|
|
4383
4383
|
},
|
|
4384
|
-
icon:
|
|
4384
|
+
icon: ar,
|
|
4385
4385
|
iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
|
|
4386
4386
|
iconPosition: "right",
|
|
4387
4387
|
onIconClick: v
|
|
4388
4388
|
}
|
|
4389
4389
|
),
|
|
4390
|
-
/* @__PURE__ */ e("div", { className:
|
|
4391
|
-
const
|
|
4390
|
+
/* @__PURE__ */ e("div", { className: E.options.optionsWrapper, children: f.map((M) => {
|
|
4391
|
+
const K = S === M.value, W = s === M.value;
|
|
4392
4392
|
return /* @__PURE__ */ u(
|
|
4393
4393
|
"div",
|
|
4394
4394
|
{
|
|
4395
4395
|
className: r(
|
|
4396
|
-
|
|
4397
|
-
|
|
4396
|
+
E.options.items,
|
|
4397
|
+
K && "opacity-50"
|
|
4398
4398
|
),
|
|
4399
4399
|
onClick: (H) => {
|
|
4400
|
-
H.stopPropagation(), H.preventDefault(),
|
|
4400
|
+
H.stopPropagation(), H.preventDefault(), K || y(M.value);
|
|
4401
4401
|
},
|
|
4402
4402
|
children: [
|
|
4403
4403
|
/* @__PURE__ */ u(
|
|
4404
|
-
|
|
4404
|
+
w,
|
|
4405
4405
|
{
|
|
4406
4406
|
className: r(
|
|
4407
|
-
|
|
4408
|
-
|
|
4407
|
+
E.options.itemsText,
|
|
4408
|
+
E.options.dot,
|
|
4409
4409
|
W && "before:bg-dark-10"
|
|
4410
4410
|
),
|
|
4411
4411
|
children: [
|
|
4412
|
-
|
|
4413
|
-
|
|
4412
|
+
M.label,
|
|
4413
|
+
K && " (редактируется...)"
|
|
4414
4414
|
]
|
|
4415
4415
|
}
|
|
4416
4416
|
),
|
|
@@ -4419,18 +4419,18 @@ const Ye = {
|
|
|
4419
4419
|
O,
|
|
4420
4420
|
{
|
|
4421
4421
|
variant: "text",
|
|
4422
|
-
icon:
|
|
4422
|
+
icon: Rt,
|
|
4423
4423
|
classNames: {
|
|
4424
4424
|
base: "p-0",
|
|
4425
4425
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10 text-sidebar-50/50 group-hover:text-primary-20"
|
|
4426
4426
|
},
|
|
4427
|
-
onClick: (H) => C(
|
|
4427
|
+
onClick: (H) => C(M.value, H),
|
|
4428
4428
|
iconDimensions: {
|
|
4429
4429
|
height: 20,
|
|
4430
4430
|
width: 20,
|
|
4431
4431
|
viewBox: "0 0 31 31"
|
|
4432
4432
|
},
|
|
4433
|
-
disabled:
|
|
4433
|
+
disabled: K
|
|
4434
4434
|
}
|
|
4435
4435
|
),
|
|
4436
4436
|
/* @__PURE__ */ e(
|
|
@@ -4442,28 +4442,28 @@ const Ye = {
|
|
|
4442
4442
|
base: "p-0",
|
|
4443
4443
|
icon: "fill-sidebar-50/50 text-sidebar-50/50"
|
|
4444
4444
|
},
|
|
4445
|
-
onClick: (H) => D(
|
|
4445
|
+
onClick: (H) => D(M.value, H),
|
|
4446
4446
|
iconDimensions: {
|
|
4447
4447
|
height: 20,
|
|
4448
4448
|
width: 20,
|
|
4449
4449
|
viewBox: "0 0 30 30"
|
|
4450
4450
|
},
|
|
4451
|
-
disabled:
|
|
4451
|
+
disabled: K
|
|
4452
4452
|
}
|
|
4453
4453
|
)
|
|
4454
4454
|
] })
|
|
4455
4455
|
]
|
|
4456
4456
|
},
|
|
4457
|
-
|
|
4457
|
+
M.value
|
|
4458
4458
|
);
|
|
4459
4459
|
}) }),
|
|
4460
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
4460
|
+
/* @__PURE__ */ u("div", { className: r(E.options.primaryActionsWrapper), children: [
|
|
4461
4461
|
/* @__PURE__ */ e(
|
|
4462
4462
|
O,
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "button",
|
|
4465
4465
|
variant: "secondary",
|
|
4466
|
-
className: r(
|
|
4466
|
+
className: r(E.options.primaryActionCancel),
|
|
4467
4467
|
onClick: I,
|
|
4468
4468
|
children: "Отмена"
|
|
4469
4469
|
}
|
|
@@ -4473,7 +4473,7 @@ const Ye = {
|
|
|
4473
4473
|
{
|
|
4474
4474
|
type: "button",
|
|
4475
4475
|
variant: "primary",
|
|
4476
|
-
className: r(
|
|
4476
|
+
className: r(E.options.primaryActionApply),
|
|
4477
4477
|
isShadow: !0,
|
|
4478
4478
|
onClick: F,
|
|
4479
4479
|
children: "Сохранить"
|
|
@@ -4487,8 +4487,8 @@ const Ye = {
|
|
|
4487
4487
|
] });
|
|
4488
4488
|
}
|
|
4489
4489
|
);
|
|
4490
|
-
|
|
4491
|
-
const
|
|
4490
|
+
lo.displayName = "SelectList";
|
|
4491
|
+
const E = {
|
|
4492
4492
|
container: "relative w-full flex items-start flex-col gap-1.5",
|
|
4493
4493
|
base: {
|
|
4494
4494
|
icon: "ml-auto fill-sidebar-30/[.70] rounded hover:cursor-pointer transition-transform durantion-300",
|
|
@@ -4518,7 +4518,7 @@ const G = {
|
|
|
4518
4518
|
primaryActionCancel: "text-sm font-semibold text-dark-30 font-mono cursor-pointer border border-dark-30/[.25] px-4 py-3 rounded-[10px]",
|
|
4519
4519
|
primaryActionApply: "text-sm font-semibold bg-primary-10 text-sidebar-10 font-mono cursor-pointer px-4 py-3 rounded-[10px]"
|
|
4520
4520
|
}
|
|
4521
|
-
},
|
|
4521
|
+
}, po = ({
|
|
4522
4522
|
classNames: t,
|
|
4523
4523
|
isActive: d,
|
|
4524
4524
|
item: { icon: i, label: o = "" },
|
|
@@ -4527,9 +4527,9 @@ const G = {
|
|
|
4527
4527
|
"div",
|
|
4528
4528
|
{
|
|
4529
4529
|
className: r(
|
|
4530
|
-
|
|
4530
|
+
Ae.base.container,
|
|
4531
4531
|
{
|
|
4532
|
-
[
|
|
4532
|
+
[Ae.active.container]: d
|
|
4533
4533
|
},
|
|
4534
4534
|
t == null ? void 0 : t.container
|
|
4535
4535
|
),
|
|
@@ -4540,21 +4540,21 @@ const G = {
|
|
|
4540
4540
|
i,
|
|
4541
4541
|
{
|
|
4542
4542
|
className: r(
|
|
4543
|
-
|
|
4543
|
+
Ae.base.icon,
|
|
4544
4544
|
{
|
|
4545
|
-
[
|
|
4545
|
+
[Ae.active.icon]: d
|
|
4546
4546
|
},
|
|
4547
4547
|
t == null ? void 0 : t.icon
|
|
4548
4548
|
)
|
|
4549
4549
|
}
|
|
4550
4550
|
),
|
|
4551
4551
|
!!o && /* @__PURE__ */ e(
|
|
4552
|
-
|
|
4552
|
+
w,
|
|
4553
4553
|
{
|
|
4554
4554
|
className: r(
|
|
4555
|
-
|
|
4555
|
+
Ae.base.label,
|
|
4556
4556
|
{
|
|
4557
|
-
[
|
|
4557
|
+
[Ae.active.label]: d
|
|
4558
4558
|
},
|
|
4559
4559
|
t == null ? void 0 : t.label
|
|
4560
4560
|
),
|
|
@@ -4563,7 +4563,7 @@ const G = {
|
|
|
4563
4563
|
)
|
|
4564
4564
|
]
|
|
4565
4565
|
}
|
|
4566
|
-
),
|
|
4566
|
+
), Ae = {
|
|
4567
4567
|
active: {
|
|
4568
4568
|
container: "bg-sidebar-20",
|
|
4569
4569
|
icon: "fill-sidebar-10 group-hover:fill-sidebar-10",
|
|
@@ -4574,7 +4574,7 @@ const G = {
|
|
|
4574
4574
|
icon: "fill-dark-40/[.80] group-hover:fill-primary-10",
|
|
4575
4575
|
label: "max-w-[55px] text-xs text-center text-dark-40/[.80] font-semibold truncate group-hover:text-primary-10"
|
|
4576
4576
|
}
|
|
4577
|
-
},
|
|
4577
|
+
}, bi = ({
|
|
4578
4578
|
tabs: t = [],
|
|
4579
4579
|
activeTabId: d,
|
|
4580
4580
|
popoverOptions: i = [],
|
|
@@ -4605,7 +4605,7 @@ const G = {
|
|
|
4605
4605
|
base: "items-center justify-center h-[60px]",
|
|
4606
4606
|
icon: "fill-dark-40/[.80] hover:fill-primary-10"
|
|
4607
4607
|
},
|
|
4608
|
-
icon:
|
|
4608
|
+
icon: xn
|
|
4609
4609
|
}
|
|
4610
4610
|
) }),
|
|
4611
4611
|
/* @__PURE__ */ e(
|
|
@@ -4618,7 +4618,7 @@ const G = {
|
|
|
4618
4618
|
children: i.map((f) => {
|
|
4619
4619
|
const g = o === f.value;
|
|
4620
4620
|
return /* @__PURE__ */ u(
|
|
4621
|
-
|
|
4621
|
+
P,
|
|
4622
4622
|
{
|
|
4623
4623
|
htmlFor: `popover-radio-${f.value}`,
|
|
4624
4624
|
className: r(Ee.popoverItem, n == null ? void 0 : n.popoverItem),
|
|
@@ -4627,7 +4627,7 @@ const G = {
|
|
|
4627
4627
|
},
|
|
4628
4628
|
children: [
|
|
4629
4629
|
/* @__PURE__ */ e(
|
|
4630
|
-
|
|
4630
|
+
ir,
|
|
4631
4631
|
{
|
|
4632
4632
|
id: `popover-radio-${f.value}`,
|
|
4633
4633
|
checked: g,
|
|
@@ -4636,7 +4636,7 @@ const G = {
|
|
|
4636
4636
|
}
|
|
4637
4637
|
),
|
|
4638
4638
|
/* @__PURE__ */ e(
|
|
4639
|
-
|
|
4639
|
+
w,
|
|
4640
4640
|
{
|
|
4641
4641
|
className: r(
|
|
4642
4642
|
"transition-colors",
|
|
@@ -4654,7 +4654,7 @@ const G = {
|
|
|
4654
4654
|
)
|
|
4655
4655
|
] }),
|
|
4656
4656
|
/* @__PURE__ */ e("div", { className: r(Ee.body, n == null ? void 0 : n.body), children: t.map((f) => /* @__PURE__ */ e(
|
|
4657
|
-
|
|
4657
|
+
po,
|
|
4658
4658
|
{
|
|
4659
4659
|
item: f,
|
|
4660
4660
|
isActive: d === f.value,
|
|
@@ -4663,16 +4663,16 @@ const G = {
|
|
|
4663
4663
|
f.value
|
|
4664
4664
|
)) }),
|
|
4665
4665
|
/* @__PURE__ */ e("div", { className: r(Ee.actions, n == null ? void 0 : n.actions), children: a == null ? void 0 : a.map((f) => {
|
|
4666
|
-
var g,
|
|
4666
|
+
var g, b;
|
|
4667
4667
|
return /* @__PURE__ */ e(
|
|
4668
|
-
|
|
4668
|
+
Mt,
|
|
4669
4669
|
{
|
|
4670
4670
|
icon: f.icon,
|
|
4671
4671
|
shape: "circle",
|
|
4672
4672
|
variant: "text",
|
|
4673
4673
|
classNames: {
|
|
4674
4674
|
icon: r("fill-dark-40/[.80]", (g = f.classNames) == null ? void 0 : g.icon),
|
|
4675
|
-
button: r("p-0", (
|
|
4675
|
+
button: r("p-0", (b = f.classNames) == null ? void 0 : b.button)
|
|
4676
4676
|
},
|
|
4677
4677
|
iconSizes: f.iconSizes ?? {
|
|
4678
4678
|
width: 20,
|
|
@@ -4693,20 +4693,20 @@ const G = {
|
|
|
4693
4693
|
popover: "flex flex-col gap-2 p-1 w-auto",
|
|
4694
4694
|
popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
|
|
4695
4695
|
actions: "flex flex-col mt-auto gap-5 mb-5"
|
|
4696
|
-
},
|
|
4696
|
+
}, gi = ({
|
|
4697
4697
|
chats: t,
|
|
4698
4698
|
onSelectChat: d,
|
|
4699
4699
|
classNames: i
|
|
4700
4700
|
}) => {
|
|
4701
|
-
const [o, n] =
|
|
4701
|
+
const [o, n] = A(null), [c, l] = A(""), a = (p) => {
|
|
4702
4702
|
n(p), d == null || d(p);
|
|
4703
4703
|
}, h = ht(() => {
|
|
4704
4704
|
const p = c.trim().toLowerCase();
|
|
4705
4705
|
return p ? t.filter((f) => f.fullname.toLowerCase().includes(p)) : t;
|
|
4706
4706
|
}, [t, c]);
|
|
4707
|
-
return /* @__PURE__ */ u("div", { className: r(
|
|
4707
|
+
return /* @__PURE__ */ u("div", { className: r(Qt.wrapper, i == null ? void 0 : i.wrapper), children: [
|
|
4708
4708
|
/* @__PURE__ */ e(
|
|
4709
|
-
|
|
4709
|
+
Mn,
|
|
4710
4710
|
{
|
|
4711
4711
|
value: c,
|
|
4712
4712
|
onChange: (p) => l(p.target.value),
|
|
@@ -4718,8 +4718,8 @@ const G = {
|
|
|
4718
4718
|
isSearchIcon: !1
|
|
4719
4719
|
}
|
|
4720
4720
|
),
|
|
4721
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
4722
|
-
|
|
4721
|
+
/* @__PURE__ */ e("div", { className: r(Qt.list, i == null ? void 0 : i.list), children: h.map((p) => /* @__PURE__ */ e(
|
|
4722
|
+
Xn,
|
|
4723
4723
|
{
|
|
4724
4724
|
onClick: () => a(p.value),
|
|
4725
4725
|
photo: p.photo,
|
|
@@ -4733,10 +4733,10 @@ const G = {
|
|
|
4733
4733
|
p.value
|
|
4734
4734
|
)) })
|
|
4735
4735
|
] });
|
|
4736
|
-
},
|
|
4736
|
+
}, Qt = {
|
|
4737
4737
|
wrapper: "w-[280px] h-full flex flex-col items-center justify-start bg-sidebar-10 border-y border-e border-dark-30/[0.15] py-5",
|
|
4738
4738
|
list: "overflow-y-auto w-full h-full mt-2"
|
|
4739
|
-
},
|
|
4739
|
+
}, vi = ({
|
|
4740
4740
|
currentUserId: t,
|
|
4741
4741
|
senderId: d,
|
|
4742
4742
|
senderName: i,
|
|
@@ -4747,12 +4747,13 @@ const G = {
|
|
|
4747
4747
|
onSelectedMessage: a,
|
|
4748
4748
|
visibleSelections: h,
|
|
4749
4749
|
classNames: p,
|
|
4750
|
-
onMessageAction: f
|
|
4750
|
+
onMessageAction: f,
|
|
4751
|
+
mediaContent: g
|
|
4751
4752
|
}) => {
|
|
4752
|
-
const
|
|
4753
|
+
const b = t === d;
|
|
4753
4754
|
return /* @__PURE__ */ u("div", { className: r(at.root, p == null ? void 0 : p.root), children: [
|
|
4754
|
-
c && !
|
|
4755
|
-
|
|
4755
|
+
c && !b && /* @__PURE__ */ e(
|
|
4756
|
+
nr,
|
|
4756
4757
|
{
|
|
4757
4758
|
imageSrc: n == null ? void 0 : n.url,
|
|
4758
4759
|
alt: n == null ? void 0 : n.alt,
|
|
@@ -4763,9 +4764,9 @@ const G = {
|
|
|
4763
4764
|
"ul",
|
|
4764
4765
|
{
|
|
4765
4766
|
role: "list",
|
|
4766
|
-
className: r(at.list,
|
|
4767
|
-
children: o.map((x,
|
|
4768
|
-
const
|
|
4767
|
+
className: r(at.list, b && "items-end", p == null ? void 0 : p.list),
|
|
4768
|
+
children: o.map((x, s, y) => {
|
|
4769
|
+
const m = (x == null ? void 0 : x.id) && (l == null ? void 0 : l.includes(x.id));
|
|
4769
4770
|
return /* @__PURE__ */ u(
|
|
4770
4771
|
"li",
|
|
4771
4772
|
{
|
|
@@ -4773,11 +4774,11 @@ const G = {
|
|
|
4773
4774
|
className: r(at.item, p == null ? void 0 : p.item),
|
|
4774
4775
|
children: [
|
|
4775
4776
|
/* @__PURE__ */ e(
|
|
4776
|
-
|
|
4777
|
+
co,
|
|
4777
4778
|
{
|
|
4778
|
-
isMine:
|
|
4779
|
-
trigger: /* @__PURE__ */ e(
|
|
4780
|
-
|
|
4779
|
+
isMine: b,
|
|
4780
|
+
trigger: (g == null ? void 0 : g(x, b)) ?? /* @__PURE__ */ e(
|
|
4781
|
+
Cr,
|
|
4781
4782
|
{
|
|
4782
4783
|
id: x.id,
|
|
4783
4784
|
text: x.text,
|
|
@@ -4785,13 +4786,13 @@ const G = {
|
|
|
4785
4786
|
reply: x.reply,
|
|
4786
4787
|
senderName: c ? i : "",
|
|
4787
4788
|
status: x.status,
|
|
4788
|
-
isMine:
|
|
4789
|
-
firstMessage: !
|
|
4790
|
-
lastMessage: !
|
|
4789
|
+
isMine: b,
|
|
4790
|
+
firstMessage: !b && c ? s === 0 : !1,
|
|
4791
|
+
lastMessage: !b && c ? s === y.length - 1 : !0,
|
|
4791
4792
|
onClick: () => a == null ? void 0 : a(x == null ? void 0 : x.id)
|
|
4792
4793
|
}
|
|
4793
4794
|
),
|
|
4794
|
-
onClick: (
|
|
4795
|
+
onClick: (B) => f(B, {
|
|
4795
4796
|
messageId: x.id,
|
|
4796
4797
|
messageText: x.text,
|
|
4797
4798
|
senderName: i
|
|
@@ -4804,14 +4805,14 @@ const G = {
|
|
|
4804
4805
|
"data-testid": "select-icon",
|
|
4805
4806
|
className: r(
|
|
4806
4807
|
at.selection,
|
|
4807
|
-
|
|
4808
|
+
m && "bg-sidebar-20"
|
|
4808
4809
|
),
|
|
4809
4810
|
onClick: () => a == null ? void 0 : a(x == null ? void 0 : x.id),
|
|
4810
4811
|
children: /* @__PURE__ */ e(
|
|
4811
4812
|
$e,
|
|
4812
4813
|
{
|
|
4813
4814
|
className: r(
|
|
4814
|
-
|
|
4815
|
+
m ? "fill-sidebar-10" : "fill-transparent"
|
|
4815
4816
|
),
|
|
4816
4817
|
width: 24,
|
|
4817
4818
|
height: 24,
|
|
@@ -4833,7 +4834,7 @@ const G = {
|
|
|
4833
4834
|
list: "w-full flex flex-col-reverse items-start gap-2.5",
|
|
4834
4835
|
item: "flex items-end gap-4",
|
|
4835
4836
|
selection: "flex items-center justify-center size-7 rounded-full bg-dark-30/[.08]"
|
|
4836
|
-
},
|
|
4837
|
+
}, si = ({
|
|
4837
4838
|
messagesCount: t,
|
|
4838
4839
|
open: d,
|
|
4839
4840
|
onDelete: i,
|
|
@@ -4854,7 +4855,7 @@ const G = {
|
|
|
4854
4855
|
),
|
|
4855
4856
|
children: [
|
|
4856
4857
|
/* @__PURE__ */ e(
|
|
4857
|
-
|
|
4858
|
+
Mt,
|
|
4858
4859
|
{
|
|
4859
4860
|
icon: Ke,
|
|
4860
4861
|
shape: "circle",
|
|
@@ -4906,10 +4907,10 @@ const G = {
|
|
|
4906
4907
|
icon: "fill-danger-10"
|
|
4907
4908
|
},
|
|
4908
4909
|
amount: "ms-5 me-9"
|
|
4909
|
-
},
|
|
4910
|
+
}, Xt = [
|
|
4910
4911
|
{
|
|
4911
4912
|
id: "download",
|
|
4912
|
-
icon:
|
|
4913
|
+
icon: Mr,
|
|
4913
4914
|
iconSizes: {
|
|
4914
4915
|
width: 20,
|
|
4915
4916
|
height: 20,
|
|
@@ -4919,7 +4920,7 @@ const G = {
|
|
|
4919
4920
|
},
|
|
4920
4921
|
{
|
|
4921
4922
|
id: "edit",
|
|
4922
|
-
icon:
|
|
4923
|
+
icon: Rt,
|
|
4923
4924
|
iconSizes: {
|
|
4924
4925
|
width: 20,
|
|
4925
4926
|
height: 20,
|
|
@@ -4929,7 +4930,7 @@ const G = {
|
|
|
4929
4930
|
},
|
|
4930
4931
|
{
|
|
4931
4932
|
id: "response",
|
|
4932
|
-
icon:
|
|
4933
|
+
icon: bn,
|
|
4933
4934
|
iconSizes: {
|
|
4934
4935
|
width: 20,
|
|
4935
4936
|
height: 20
|
|
@@ -4938,7 +4939,7 @@ const G = {
|
|
|
4938
4939
|
},
|
|
4939
4940
|
{
|
|
4940
4941
|
id: "copy",
|
|
4941
|
-
icon:
|
|
4942
|
+
icon: gn,
|
|
4942
4943
|
iconSizes: {
|
|
4943
4944
|
width: 20,
|
|
4944
4945
|
height: 20
|
|
@@ -4947,7 +4948,7 @@ const G = {
|
|
|
4947
4948
|
},
|
|
4948
4949
|
{
|
|
4949
4950
|
id: "select",
|
|
4950
|
-
icon:
|
|
4951
|
+
icon: vn,
|
|
4951
4952
|
iconSizes: {
|
|
4952
4953
|
width: 20,
|
|
4953
4954
|
height: 20
|
|
@@ -4965,22 +4966,22 @@ const G = {
|
|
|
4965
4966
|
isDanger: !0,
|
|
4966
4967
|
text: "Удалить"
|
|
4967
4968
|
}
|
|
4968
|
-
],
|
|
4969
|
+
], co = ({
|
|
4969
4970
|
trigger: t,
|
|
4970
4971
|
onClick: d,
|
|
4971
4972
|
isMine: i = !1
|
|
4972
4973
|
}) => {
|
|
4973
|
-
const [o, n] =
|
|
4974
|
-
|
|
4975
|
-
}, l = (
|
|
4976
|
-
d(
|
|
4977
|
-
}, { icon: a, base: h } =
|
|
4974
|
+
const [o, n] = A(!1), c = (b) => {
|
|
4975
|
+
b.preventDefault(), n(!0);
|
|
4976
|
+
}, l = (b) => {
|
|
4977
|
+
d(b), n(!1);
|
|
4978
|
+
}, { icon: a, base: h } = It.button.normal, { icon: p, base: f } = It.button.danger, g = i ? Xt : Xt.filter((b) => b.id !== "edit");
|
|
4978
4979
|
return /* @__PURE__ */ u(ae, { open: o, onOpenChange: n, children: [
|
|
4979
4980
|
/* @__PURE__ */ e(le, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
|
|
4980
4981
|
"div",
|
|
4981
4982
|
{
|
|
4982
4983
|
onContextMenu: c,
|
|
4983
|
-
onClick: (
|
|
4984
|
+
onClick: (b) => b.preventDefault(),
|
|
4984
4985
|
children: t
|
|
4985
4986
|
}
|
|
4986
4987
|
) }),
|
|
@@ -4990,28 +4991,28 @@ const G = {
|
|
|
4990
4991
|
align: "center",
|
|
4991
4992
|
sideOffset: 4,
|
|
4992
4993
|
side: "top",
|
|
4993
|
-
className:
|
|
4994
|
-
children: g.map(({ id:
|
|
4994
|
+
className: It.wrapper,
|
|
4995
|
+
children: g.map(({ id: b, icon: x, iconSizes: s, isDanger: y, text: m }) => /* @__PURE__ */ e(
|
|
4995
4996
|
O,
|
|
4996
4997
|
{
|
|
4997
4998
|
"data-testid": "action",
|
|
4998
4999
|
variant: "text",
|
|
4999
5000
|
iconPosition: "left",
|
|
5000
|
-
icon:
|
|
5001
|
+
icon: x,
|
|
5001
5002
|
iconDimensions: s,
|
|
5002
|
-
onClick: () => l(
|
|
5003
|
+
onClick: () => l(b),
|
|
5003
5004
|
classNames: {
|
|
5004
|
-
icon:
|
|
5005
|
-
base:
|
|
5005
|
+
icon: y ? p : a,
|
|
5006
|
+
base: y ? f : h
|
|
5006
5007
|
},
|
|
5007
5008
|
children: m
|
|
5008
5009
|
},
|
|
5009
|
-
|
|
5010
|
+
b
|
|
5010
5011
|
))
|
|
5011
5012
|
}
|
|
5012
5013
|
)
|
|
5013
5014
|
] });
|
|
5014
|
-
},
|
|
5015
|
+
}, It = {
|
|
5015
5016
|
wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
|
|
5016
5017
|
button: {
|
|
5017
5018
|
normal: {
|
|
@@ -5023,10 +5024,10 @@ const G = {
|
|
|
5023
5024
|
base: "text-danger-10 hover:text-danger-20 p-0 active:text-danger-30 justify-start text-base"
|
|
5024
5025
|
}
|
|
5025
5026
|
}
|
|
5026
|
-
},
|
|
5027
|
-
const d =
|
|
5028
|
-
return /* @__PURE__ */ e("div", { className:
|
|
5029
|
-
|
|
5027
|
+
}, mi = ({ tabs: t }) => {
|
|
5028
|
+
const d = dr();
|
|
5029
|
+
return /* @__PURE__ */ e("div", { className: uo.wrapper, "data-testid": "tab-list", children: t.map(({ id: i, icon: o, label: n, isActive: c, href: l }) => /* @__PURE__ */ e(
|
|
5030
|
+
Hr,
|
|
5030
5031
|
{
|
|
5031
5032
|
icon: o,
|
|
5032
5033
|
active: c,
|
|
@@ -5036,9 +5037,9 @@ const G = {
|
|
|
5036
5037
|
},
|
|
5037
5038
|
i
|
|
5038
5039
|
)) });
|
|
5039
|
-
},
|
|
5040
|
+
}, uo = {
|
|
5040
5041
|
wrapper: "flex items-center mt-4 mb-6 gap-2"
|
|
5041
|
-
},
|
|
5042
|
+
}, wi = ({
|
|
5042
5043
|
options: t = [],
|
|
5043
5044
|
value: d,
|
|
5044
5045
|
placeholder: i,
|
|
@@ -5048,8 +5049,8 @@ const G = {
|
|
|
5048
5049
|
onEdit: l,
|
|
5049
5050
|
onDelete: a
|
|
5050
5051
|
}) => {
|
|
5051
|
-
const [h, p] =
|
|
5052
|
-
|
|
5052
|
+
const [h, p] = A(!1), f = t == null ? void 0 : t.find((b) => b.id === d), g = (b, x) => {
|
|
5053
|
+
b.stopPropagation(), n(x), p(!1);
|
|
5053
5054
|
};
|
|
5054
5055
|
return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ u(ae, { open: h, onOpenChange: p, children: [
|
|
5055
5056
|
/* @__PURE__ */ u(
|
|
@@ -5064,21 +5065,21 @@ const G = {
|
|
|
5064
5065
|
),
|
|
5065
5066
|
children: [
|
|
5066
5067
|
d ? f == null ? void 0 : f.name.ru : i,
|
|
5067
|
-
/* @__PURE__ */ e(
|
|
5068
|
+
/* @__PURE__ */ e(vr, { className: r(he.icon, h && "-rotate-180") })
|
|
5068
5069
|
]
|
|
5069
5070
|
}
|
|
5070
5071
|
),
|
|
5071
5072
|
/* @__PURE__ */ u(pe, { className: he.content, children: [
|
|
5072
|
-
/* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name:
|
|
5073
|
+
/* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name: b, id: x }) => /* @__PURE__ */ u("li", { role: "listitem", className: he.item, children: [
|
|
5073
5074
|
/* @__PURE__ */ e(
|
|
5074
|
-
|
|
5075
|
+
w,
|
|
5075
5076
|
{
|
|
5076
5077
|
className: r(
|
|
5077
5078
|
he.name,
|
|
5078
|
-
d ===
|
|
5079
|
+
d === x && "before:bg-dark-10"
|
|
5079
5080
|
),
|
|
5080
|
-
onClick: (s) => g(s,
|
|
5081
|
-
children:
|
|
5081
|
+
onClick: (s) => g(s, x),
|
|
5082
|
+
children: b.ru
|
|
5082
5083
|
}
|
|
5083
5084
|
),
|
|
5084
5085
|
/* @__PURE__ */ u("div", { className: he.actions, children: [
|
|
@@ -5089,10 +5090,10 @@ const G = {
|
|
|
5089
5090
|
variant: "text",
|
|
5090
5091
|
classNames: { base: "p-0" },
|
|
5091
5092
|
onClick: (s) => {
|
|
5092
|
-
s.stopPropagation(), l(
|
|
5093
|
+
s.stopPropagation(), l(x);
|
|
5093
5094
|
},
|
|
5094
5095
|
children: /* @__PURE__ */ e(
|
|
5095
|
-
|
|
5096
|
+
Rt,
|
|
5096
5097
|
{
|
|
5097
5098
|
width: 20,
|
|
5098
5099
|
height: 20,
|
|
@@ -5109,7 +5110,7 @@ const G = {
|
|
|
5109
5110
|
variant: "text",
|
|
5110
5111
|
classNames: { base: "p-0" },
|
|
5111
5112
|
onClick: (s) => {
|
|
5112
|
-
s.stopPropagation(), a(
|
|
5113
|
+
s.stopPropagation(), a(x);
|
|
5113
5114
|
},
|
|
5114
5115
|
children: /* @__PURE__ */ e(
|
|
5115
5116
|
Le,
|
|
@@ -5123,12 +5124,12 @@ const G = {
|
|
|
5123
5124
|
}
|
|
5124
5125
|
)
|
|
5125
5126
|
] })
|
|
5126
|
-
] },
|
|
5127
|
+
] }, x)) }),
|
|
5127
5128
|
/* @__PURE__ */ e(
|
|
5128
5129
|
O,
|
|
5129
5130
|
{
|
|
5130
5131
|
variant: "text",
|
|
5131
|
-
icon:
|
|
5132
|
+
icon: ar,
|
|
5132
5133
|
iconPosition: "left",
|
|
5133
5134
|
iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
|
|
5134
5135
|
size: "medium",
|
|
@@ -5152,7 +5153,7 @@ const G = {
|
|
|
5152
5153
|
item: "flex items-center justify-between cursor-pointer",
|
|
5153
5154
|
name: 'w-full hover:text-primary-10 flex items-center before:content-[""] before:block before:bg-sidebar-10 before:size-2 before:rounded-full before:mr-3.5',
|
|
5154
5155
|
actions: "flex gap-2"
|
|
5155
|
-
},
|
|
5156
|
+
}, ho = {
|
|
5156
5157
|
pie: {
|
|
5157
5158
|
radius: ["0%", "90%"],
|
|
5158
5159
|
legendPosition: { orient: "vertical", left: 0, bottom: "10%" },
|
|
@@ -5163,12 +5164,12 @@ const G = {
|
|
|
5163
5164
|
legendPosition: { orient: "vertical", left: "55%", top: "5%" },
|
|
5164
5165
|
chartCenter: ["25%", "50%"]
|
|
5165
5166
|
}
|
|
5166
|
-
},
|
|
5167
|
+
}, fo = ({
|
|
5167
5168
|
chartMode: t = "pie",
|
|
5168
5169
|
colors: d,
|
|
5169
5170
|
items: i
|
|
5170
5171
|
}) => {
|
|
5171
|
-
const { radius: o, legendPosition: n, chartCenter: c } =
|
|
5172
|
+
const { radius: o, legendPosition: n, chartCenter: c } = ho[t], l = i.every(({ value: p }) => !p), a = l ? [Ze.gray[30]] : d, h = l ? [{ value: 1, name: "пусто" }] : i;
|
|
5172
5173
|
return {
|
|
5173
5174
|
color: a,
|
|
5174
5175
|
tooltip: {
|
|
@@ -5199,7 +5200,7 @@ const G = {
|
|
|
5199
5200
|
}
|
|
5200
5201
|
},
|
|
5201
5202
|
formatter: (p) => {
|
|
5202
|
-
const f = h.find((
|
|
5203
|
+
const f = h.find((b) => b.name === p), g = (f == null ? void 0 : f.value) ?? 0;
|
|
5203
5204
|
return `{name|${p}}: {value|${g}}`;
|
|
5204
5205
|
}
|
|
5205
5206
|
},
|
|
@@ -5215,7 +5216,7 @@ const G = {
|
|
|
5215
5216
|
}
|
|
5216
5217
|
]
|
|
5217
5218
|
};
|
|
5218
|
-
},
|
|
5219
|
+
}, yi = Q(
|
|
5219
5220
|
({
|
|
5220
5221
|
chartMode: t = "doughtnut",
|
|
5221
5222
|
mode: d = "chart",
|
|
@@ -5226,46 +5227,46 @@ const G = {
|
|
|
5226
5227
|
classNames: l,
|
|
5227
5228
|
...a
|
|
5228
5229
|
}, h) => {
|
|
5229
|
-
var g,
|
|
5230
|
+
var g, b;
|
|
5230
5231
|
const p = [
|
|
5231
5232
|
{ value: n.rented, name: "Сдано в аренду" },
|
|
5232
5233
|
{ value: n.sold, name: "Продано" },
|
|
5233
5234
|
{ value: n.free, name: "Свободно" }
|
|
5234
5235
|
];
|
|
5235
5236
|
n.blocked !== void 0 && p.push({ value: n.blocked, name: "Заблокировано" });
|
|
5236
|
-
const f = d === "chart" ?
|
|
5237
|
+
const f = d === "chart" ? fo({ chartMode: t, colors: c, items: p }) : void 0;
|
|
5237
5238
|
return /* @__PURE__ */ u(
|
|
5238
5239
|
"div",
|
|
5239
5240
|
{
|
|
5240
|
-
className: r(
|
|
5241
|
+
className: r(Z.root, l == null ? void 0 : l.root),
|
|
5241
5242
|
"data-testid": "chart-container",
|
|
5242
5243
|
ref: h,
|
|
5243
5244
|
...a,
|
|
5244
5245
|
children: [
|
|
5245
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5246
|
+
/* @__PURE__ */ u("div", { className: r(Z.header, l == null ? void 0 : l.header), children: [
|
|
5246
5247
|
/* @__PURE__ */ e(
|
|
5247
5248
|
Qe,
|
|
5248
5249
|
{
|
|
5249
5250
|
title: i,
|
|
5250
5251
|
icon: o,
|
|
5251
|
-
classNames: { title:
|
|
5252
|
+
classNames: { title: Z.title, wrapper: "items-center" }
|
|
5252
5253
|
}
|
|
5253
5254
|
),
|
|
5254
5255
|
/* @__PURE__ */ e(
|
|
5255
5256
|
Pe,
|
|
5256
5257
|
{
|
|
5257
5258
|
to: "/analytics-reporting",
|
|
5258
|
-
className: r(
|
|
5259
|
+
className: r(Z.link, l == null ? void 0 : l.link),
|
|
5259
5260
|
children: "Подробнее"
|
|
5260
5261
|
}
|
|
5261
5262
|
)
|
|
5262
5263
|
] }),
|
|
5263
|
-
/* @__PURE__ */ e(
|
|
5264
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5265
|
-
/* @__PURE__ */ e(
|
|
5266
|
-
!!n.growth && /* @__PURE__ */ u("div", { className: r(
|
|
5264
|
+
/* @__PURE__ */ e(w, { className: r(Z.totalText, l == null ? void 0 : l.totalText), children: "Общее количество" }),
|
|
5265
|
+
/* @__PURE__ */ u("div", { className: r(Z.block, l == null ? void 0 : l.block), children: [
|
|
5266
|
+
/* @__PURE__ */ e(w, { className: r(Z.total, l == null ? void 0 : l.total), children: n.total }),
|
|
5267
|
+
!!n.growth && /* @__PURE__ */ u("div", { className: r(Z.badge, l == null ? void 0 : l.badge), children: [
|
|
5267
5268
|
/* @__PURE__ */ e(
|
|
5268
|
-
|
|
5269
|
+
_t,
|
|
5269
5270
|
{
|
|
5270
5271
|
width: 7,
|
|
5271
5272
|
height: 7,
|
|
@@ -5274,10 +5275,10 @@ const G = {
|
|
|
5274
5275
|
}
|
|
5275
5276
|
),
|
|
5276
5277
|
/* @__PURE__ */ u(
|
|
5277
|
-
|
|
5278
|
+
w,
|
|
5278
5279
|
{
|
|
5279
5280
|
variant: "span",
|
|
5280
|
-
className: r(
|
|
5281
|
+
className: r(Z.percent, l == null ? void 0 : l.percent),
|
|
5281
5282
|
children: [
|
|
5282
5283
|
n.growth,
|
|
5283
5284
|
"%"
|
|
@@ -5287,54 +5288,54 @@ const G = {
|
|
|
5287
5288
|
] })
|
|
5288
5289
|
] }),
|
|
5289
5290
|
d === "chart" && /* @__PURE__ */ e(
|
|
5290
|
-
|
|
5291
|
+
wt,
|
|
5291
5292
|
{
|
|
5292
|
-
echarts:
|
|
5293
|
+
echarts: yt,
|
|
5293
5294
|
option: f,
|
|
5294
5295
|
style: { height: 250 }
|
|
5295
5296
|
}
|
|
5296
5297
|
),
|
|
5297
|
-
d === "progress" && /* @__PURE__ */ u("div", { className: r(
|
|
5298
|
+
d === "progress" && /* @__PURE__ */ u("div", { className: r(Z.progress.root, (g = l == null ? void 0 : l.progress) == null ? void 0 : g.root), children: [
|
|
5298
5299
|
/* @__PURE__ */ e(
|
|
5299
5300
|
"div",
|
|
5300
5301
|
{
|
|
5301
|
-
className: r(
|
|
5302
|
+
className: r(Z.progress.line, (b = l == null ? void 0 : l.progress) == null ? void 0 : b.line)
|
|
5302
5303
|
}
|
|
5303
5304
|
),
|
|
5304
|
-
p.map(({ name:
|
|
5305
|
+
p.map(({ name: x, value: s }, y) => {
|
|
5305
5306
|
var m, B, S;
|
|
5306
5307
|
return /* @__PURE__ */ u(
|
|
5307
5308
|
"div",
|
|
5308
5309
|
{
|
|
5309
|
-
className: r(
|
|
5310
|
+
className: r(Z.progress.row, (m = l == null ? void 0 : l.progress) == null ? void 0 : m.row),
|
|
5310
5311
|
children: [
|
|
5311
5312
|
/* @__PURE__ */ e(
|
|
5312
|
-
|
|
5313
|
+
w,
|
|
5313
5314
|
{
|
|
5314
5315
|
className: r(
|
|
5315
|
-
|
|
5316
|
+
Z.progress.name,
|
|
5316
5317
|
(B = l == null ? void 0 : l.progress) == null ? void 0 : B.name
|
|
5317
5318
|
),
|
|
5318
|
-
children:
|
|
5319
|
+
children: x
|
|
5319
5320
|
}
|
|
5320
5321
|
),
|
|
5321
5322
|
/* @__PURE__ */ e(
|
|
5322
|
-
|
|
5323
|
+
kr,
|
|
5323
5324
|
{
|
|
5324
5325
|
value: s,
|
|
5325
5326
|
total: n.total,
|
|
5326
|
-
color: c[
|
|
5327
|
+
color: c[y],
|
|
5327
5328
|
classNames: {
|
|
5328
|
-
bar:
|
|
5329
|
-
indicator:
|
|
5329
|
+
bar: Z.progress.bar,
|
|
5330
|
+
indicator: Z.progress.indicator
|
|
5330
5331
|
}
|
|
5331
5332
|
}
|
|
5332
5333
|
),
|
|
5333
5334
|
/* @__PURE__ */ e(
|
|
5334
|
-
|
|
5335
|
+
w,
|
|
5335
5336
|
{
|
|
5336
5337
|
className: r(
|
|
5337
|
-
|
|
5338
|
+
Z.progress.value,
|
|
5338
5339
|
(S = l == null ? void 0 : l.progress) == null ? void 0 : S.value
|
|
5339
5340
|
),
|
|
5340
5341
|
children: s
|
|
@@ -5342,7 +5343,7 @@ const G = {
|
|
|
5342
5343
|
)
|
|
5343
5344
|
]
|
|
5344
5345
|
},
|
|
5345
|
-
|
|
5346
|
+
x
|
|
5346
5347
|
);
|
|
5347
5348
|
})
|
|
5348
5349
|
] })
|
|
@@ -5350,7 +5351,7 @@ const G = {
|
|
|
5350
5351
|
}
|
|
5351
5352
|
);
|
|
5352
5353
|
}
|
|
5353
|
-
),
|
|
5354
|
+
), Z = {
|
|
5354
5355
|
root: "w-[560px] h-[420px] bg-sidebar-10 rounded-[10px] shadow-3xl p-7 flex flex-col gap-2 font-mono",
|
|
5355
5356
|
header: "flex flex-row justify-between",
|
|
5356
5357
|
link: "text-sidebar-50 cursor-pointer font-medium text-base",
|
|
@@ -5369,7 +5370,7 @@ const G = {
|
|
|
5369
5370
|
indicator: "h-full rounded-e-md",
|
|
5370
5371
|
value: "text-xs font-semibold w-5 text-left"
|
|
5371
5372
|
}
|
|
5372
|
-
},
|
|
5373
|
+
}, xo = (t) => {
|
|
5373
5374
|
switch (t) {
|
|
5374
5375
|
case "payment":
|
|
5375
5376
|
return { width: 240, height: 110 };
|
|
@@ -5379,7 +5380,7 @@ const G = {
|
|
|
5379
5380
|
default:
|
|
5380
5381
|
return null;
|
|
5381
5382
|
}
|
|
5382
|
-
},
|
|
5383
|
+
}, bo = (t, d) => {
|
|
5383
5384
|
const i = [20, 50, 100, 101, ...t === "payment" ? [140] : []];
|
|
5384
5385
|
return {
|
|
5385
5386
|
grid: {
|
|
@@ -5415,14 +5416,14 @@ const G = {
|
|
|
5415
5416
|
}
|
|
5416
5417
|
]
|
|
5417
5418
|
};
|
|
5418
|
-
},
|
|
5419
|
+
}, ki = Q(
|
|
5419
5420
|
({ data: t, title: d, mode: i = "stat", settings: o, classNames: n, ...c }, l) => {
|
|
5420
5421
|
const {
|
|
5421
5422
|
chartColor: a = "#1B9BE4",
|
|
5422
5423
|
allWhite: h = !1,
|
|
5423
5424
|
arrowDown: p = !1,
|
|
5424
5425
|
icon: f = null
|
|
5425
|
-
} = o ?? {}, g = h ? "#ffffff" : a,
|
|
5426
|
+
} = o ?? {}, g = h ? "#ffffff" : a, b = i === "payment" ? $r(t.total) : t.total, x = xo(i), s = bo(i, g);
|
|
5426
5427
|
return /* @__PURE__ */ u(
|
|
5427
5428
|
"div",
|
|
5428
5429
|
{
|
|
@@ -5432,7 +5433,7 @@ const G = {
|
|
|
5432
5433
|
...c,
|
|
5433
5434
|
children: [
|
|
5434
5435
|
/* @__PURE__ */ e(
|
|
5435
|
-
|
|
5436
|
+
w,
|
|
5436
5437
|
{
|
|
5437
5438
|
className: r(
|
|
5438
5439
|
fe.title,
|
|
@@ -5444,20 +5445,20 @@ const G = {
|
|
|
5444
5445
|
),
|
|
5445
5446
|
/* @__PURE__ */ u("div", { className: r(fe.totalBlock, n == null ? void 0 : n.totalBlock), children: [
|
|
5446
5447
|
/* @__PURE__ */ e(
|
|
5447
|
-
|
|
5448
|
+
w,
|
|
5448
5449
|
{
|
|
5449
5450
|
className: r(
|
|
5450
5451
|
fe.total,
|
|
5451
5452
|
n == null ? void 0 : n.total,
|
|
5452
5453
|
h && "text-sidebar-10"
|
|
5453
5454
|
),
|
|
5454
|
-
children:
|
|
5455
|
+
children: b
|
|
5455
5456
|
}
|
|
5456
5457
|
),
|
|
5457
|
-
i === "payment" && /* @__PURE__ */ e(
|
|
5458
|
+
i === "payment" && /* @__PURE__ */ e(w, { className: fe.payment, children: "Сум" }),
|
|
5458
5459
|
!!t.growth && i === "count" && /* @__PURE__ */ u("div", { className: r(fe.badge, n == null ? void 0 : n.badge), children: [
|
|
5459
5460
|
/* @__PURE__ */ e(
|
|
5460
|
-
|
|
5461
|
+
_t,
|
|
5461
5462
|
{
|
|
5462
5463
|
width: 7,
|
|
5463
5464
|
height: 7,
|
|
@@ -5465,7 +5466,7 @@ const G = {
|
|
|
5465
5466
|
viewBox: "0 0 16 16"
|
|
5466
5467
|
}
|
|
5467
5468
|
),
|
|
5468
|
-
/* @__PURE__ */ u(
|
|
5469
|
+
/* @__PURE__ */ u(w, { variant: "span", className: fe.percent, children: [
|
|
5469
5470
|
t.growth,
|
|
5470
5471
|
"%"
|
|
5471
5472
|
] })
|
|
@@ -5482,14 +5483,14 @@ const G = {
|
|
|
5482
5483
|
style: { color: g },
|
|
5483
5484
|
children: [
|
|
5484
5485
|
/* @__PURE__ */ e(
|
|
5485
|
-
|
|
5486
|
+
_t,
|
|
5486
5487
|
{
|
|
5487
5488
|
width: 16,
|
|
5488
5489
|
height: 16,
|
|
5489
5490
|
className: r(p && "rotate-180")
|
|
5490
5491
|
}
|
|
5491
5492
|
),
|
|
5492
|
-
/* @__PURE__ */ u(
|
|
5493
|
+
/* @__PURE__ */ u(w, { variant: "span", children: [
|
|
5493
5494
|
t.growth,
|
|
5494
5495
|
"%"
|
|
5495
5496
|
] })
|
|
@@ -5497,13 +5498,13 @@ const G = {
|
|
|
5497
5498
|
}
|
|
5498
5499
|
),
|
|
5499
5500
|
i === "stat" && /* @__PURE__ */ e("div", { className: r(fe.icon, n == null ? void 0 : n.icon), children: f }),
|
|
5500
|
-
|
|
5501
|
-
|
|
5501
|
+
x && /* @__PURE__ */ e(
|
|
5502
|
+
wt,
|
|
5502
5503
|
{
|
|
5503
|
-
echarts:
|
|
5504
|
+
echarts: yt,
|
|
5504
5505
|
option: s,
|
|
5505
5506
|
style: {
|
|
5506
|
-
...
|
|
5507
|
+
...x,
|
|
5507
5508
|
position: "absolute",
|
|
5508
5509
|
right: i === "bid" ? -60 : -40,
|
|
5509
5510
|
bottom: i === "bid" ? -5 : 0
|
|
@@ -5525,7 +5526,7 @@ const G = {
|
|
|
5525
5526
|
payment: "text-base font-medium text-dark-30/50",
|
|
5526
5527
|
counBlock: "flex flex-col gap-1",
|
|
5527
5528
|
totalBlock: "flex flex-row items-start gap-2"
|
|
5528
|
-
},
|
|
5529
|
+
}, go = (t) => {
|
|
5529
5530
|
const d = 100 - t;
|
|
5530
5531
|
return {
|
|
5531
5532
|
emphasis: { disabled: !0 },
|
|
@@ -5559,7 +5560,7 @@ const G = {
|
|
|
5559
5560
|
}
|
|
5560
5561
|
]
|
|
5561
5562
|
};
|
|
5562
|
-
},
|
|
5563
|
+
}, Ci = Q(
|
|
5563
5564
|
({
|
|
5564
5565
|
mode: t = "master",
|
|
5565
5566
|
title: d,
|
|
@@ -5572,7 +5573,7 @@ const G = {
|
|
|
5572
5573
|
avatarGroupProps: h,
|
|
5573
5574
|
...p
|
|
5574
5575
|
}, f) => {
|
|
5575
|
-
const g =
|
|
5576
|
+
const g = go(o);
|
|
5576
5577
|
return /* @__PURE__ */ u(
|
|
5577
5578
|
"div",
|
|
5578
5579
|
{
|
|
@@ -5592,7 +5593,7 @@ const G = {
|
|
|
5592
5593
|
),
|
|
5593
5594
|
t === "master" && h && !!l && /* @__PURE__ */ u(ct, { children: [
|
|
5594
5595
|
/* @__PURE__ */ e(
|
|
5595
|
-
|
|
5596
|
+
Lt,
|
|
5596
5597
|
{
|
|
5597
5598
|
...h,
|
|
5598
5599
|
classNames: {
|
|
@@ -5602,7 +5603,7 @@ const G = {
|
|
|
5602
5603
|
}
|
|
5603
5604
|
}
|
|
5604
5605
|
),
|
|
5605
|
-
/* @__PURE__ */ e(
|
|
5606
|
+
/* @__PURE__ */ e(yr, { rating: l, position: "right" })
|
|
5606
5607
|
] }),
|
|
5607
5608
|
t === "service" && c && /* @__PURE__ */ u(ct, { children: [
|
|
5608
5609
|
/* @__PURE__ */ e(
|
|
@@ -5635,9 +5636,9 @@ const G = {
|
|
|
5635
5636
|
)
|
|
5636
5637
|
] }),
|
|
5637
5638
|
/* @__PURE__ */ e(
|
|
5638
|
-
|
|
5639
|
+
wt,
|
|
5639
5640
|
{
|
|
5640
|
-
echarts:
|
|
5641
|
+
echarts: yt,
|
|
5641
5642
|
option: g,
|
|
5642
5643
|
style: { height: 135, width: 135 }
|
|
5643
5644
|
}
|
|
@@ -5652,10 +5653,10 @@ const G = {
|
|
|
5652
5653
|
status: "rounded-[8px] text-sm text-secondary-10 font-medium w-max py-1 px-2",
|
|
5653
5654
|
block: "flex flex-col h-full gap-4",
|
|
5654
5655
|
serviceTitle: "text-2xl text-semibold leading-none pt-2"
|
|
5655
|
-
},
|
|
5656
|
+
}, vo = (t, d) => {
|
|
5656
5657
|
const i = d - t;
|
|
5657
5658
|
return i >= 1 ? 100 : i > 0 ? i * 100 : 0;
|
|
5658
|
-
},
|
|
5659
|
+
}, yr = ({
|
|
5659
5660
|
rating: t,
|
|
5660
5661
|
classNames: d,
|
|
5661
5662
|
position: i = "left",
|
|
@@ -5673,11 +5674,11 @@ const G = {
|
|
|
5673
5674
|
/* @__PURE__ */ e("div", { className: r(ge.block, d == null ? void 0 : d.block), children: [...Array(5)].map((n, c) => {
|
|
5674
5675
|
const l = Math.max(
|
|
5675
5676
|
0,
|
|
5676
|
-
Math.min(100,
|
|
5677
|
+
Math.min(100, vo(c, t))
|
|
5677
5678
|
);
|
|
5678
5679
|
return /* @__PURE__ */ u("div", { className: r(ge.overlay.block), children: [
|
|
5679
5680
|
/* @__PURE__ */ e(
|
|
5680
|
-
|
|
5681
|
+
Yt,
|
|
5681
5682
|
{
|
|
5682
5683
|
className: r(ge.icon, ge.empty),
|
|
5683
5684
|
"data-testid": "star-empty"
|
|
@@ -5690,7 +5691,7 @@ const G = {
|
|
|
5690
5691
|
style: { width: `${l}%` },
|
|
5691
5692
|
"data-testid": "star-overlay",
|
|
5692
5693
|
children: /* @__PURE__ */ e(
|
|
5693
|
-
|
|
5694
|
+
Yt,
|
|
5694
5695
|
{
|
|
5695
5696
|
className: r(ge.icon, ge.filled),
|
|
5696
5697
|
"data-testid": "star-filled"
|
|
@@ -5700,7 +5701,7 @@ const G = {
|
|
|
5700
5701
|
)
|
|
5701
5702
|
] }, c);
|
|
5702
5703
|
}) }),
|
|
5703
|
-
/* @__PURE__ */ e(
|
|
5704
|
+
/* @__PURE__ */ e(w, { variant: "span", className: r(ge.rating, d == null ? void 0 : d.rating), children: String(t).replace(".", ",") })
|
|
5704
5705
|
]
|
|
5705
5706
|
}
|
|
5706
5707
|
), ge = {
|
|
@@ -5714,7 +5715,7 @@ const G = {
|
|
|
5714
5715
|
block: "relative",
|
|
5715
5716
|
star: "absolute inset-0 overflow-hidden"
|
|
5716
5717
|
}
|
|
5717
|
-
},
|
|
5718
|
+
}, so = ({
|
|
5718
5719
|
total: t,
|
|
5719
5720
|
value: d,
|
|
5720
5721
|
color: i
|
|
@@ -5752,7 +5753,7 @@ const G = {
|
|
|
5752
5753
|
}
|
|
5753
5754
|
]
|
|
5754
5755
|
};
|
|
5755
|
-
},
|
|
5756
|
+
}, Ti = Q(
|
|
5756
5757
|
({ title: t, icon: d, data: i, colors: o, classNames: n, ...c }, l) => {
|
|
5757
5758
|
var h;
|
|
5758
5759
|
const a = [
|
|
@@ -5788,8 +5789,8 @@ const G = {
|
|
|
5788
5789
|
] }),
|
|
5789
5790
|
/* @__PURE__ */ u("div", { className: r(ne.info, n == null ? void 0 : n.info), children: [
|
|
5790
5791
|
/* @__PURE__ */ u("div", { className: r(ne.block, n == null ? void 0 : n.block), children: [
|
|
5791
|
-
/* @__PURE__ */ e(
|
|
5792
|
-
/* @__PURE__ */ e(
|
|
5792
|
+
/* @__PURE__ */ e(w, { className: r(ne.totalText, n == null ? void 0 : n.totalText), children: "Общее количество" }),
|
|
5793
|
+
/* @__PURE__ */ e(w, { className: r(ne.total, n == null ? void 0 : n.total), children: i.total })
|
|
5793
5794
|
] }),
|
|
5794
5795
|
/* @__PURE__ */ e("div", { className: r(ne.legend.root, (h = n == null ? void 0 : n.legend) == null ? void 0 : h.root), children: a.map((p, f) => {
|
|
5795
5796
|
var g;
|
|
@@ -5823,11 +5824,11 @@ const G = {
|
|
|
5823
5824
|
}) })
|
|
5824
5825
|
] }),
|
|
5825
5826
|
/* @__PURE__ */ e("div", { className: r(ne.chartBlock, n == null ? void 0 : n.chartBlock), children: a.map((p, f) => /* @__PURE__ */ e(
|
|
5826
|
-
|
|
5827
|
+
wt,
|
|
5827
5828
|
{
|
|
5828
|
-
echarts:
|
|
5829
|
+
echarts: yt,
|
|
5829
5830
|
"data-testid": "chart",
|
|
5830
|
-
option:
|
|
5831
|
+
option: so({
|
|
5831
5832
|
total: i.total,
|
|
5832
5833
|
value: p.value,
|
|
5833
5834
|
color: o[f]
|
|
@@ -5855,7 +5856,7 @@ const G = {
|
|
|
5855
5856
|
root: "flex flex-col gap-2",
|
|
5856
5857
|
dot: "size-2 rounded-full"
|
|
5857
5858
|
}
|
|
5858
|
-
},
|
|
5859
|
+
}, Bi = Q(
|
|
5859
5860
|
({ paid: t, pending: d, overdue: i, title: o, icon: n, total: c, classNames: l, ...a }, h) => {
|
|
5860
5861
|
var f;
|
|
5861
5862
|
const p = [
|
|
@@ -5871,44 +5872,44 @@ const G = {
|
|
|
5871
5872
|
"div",
|
|
5872
5873
|
{
|
|
5873
5874
|
...a,
|
|
5874
|
-
className: r(
|
|
5875
|
+
className: r(Me.root, l == null ? void 0 : l.root),
|
|
5875
5876
|
"data-testid": "card-progress",
|
|
5876
5877
|
ref: h,
|
|
5877
5878
|
children: [
|
|
5878
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5879
|
+
/* @__PURE__ */ u("div", { className: r(Me.header, l == null ? void 0 : l.header), children: [
|
|
5879
5880
|
/* @__PURE__ */ e(
|
|
5880
5881
|
Qe,
|
|
5881
5882
|
{
|
|
5882
5883
|
title: o,
|
|
5883
5884
|
icon: n,
|
|
5884
|
-
classNames: { title:
|
|
5885
|
+
classNames: { title: Me.title, wrapper: "items-center" }
|
|
5885
5886
|
}
|
|
5886
5887
|
),
|
|
5887
5888
|
/* @__PURE__ */ e(
|
|
5888
5889
|
Pe,
|
|
5889
5890
|
{
|
|
5890
5891
|
to: "/analytics-reporting",
|
|
5891
|
-
className: r(
|
|
5892
|
+
className: r(Me.link, l == null ? void 0 : l.link),
|
|
5892
5893
|
children: "Подробнее"
|
|
5893
5894
|
}
|
|
5894
5895
|
)
|
|
5895
5896
|
] }),
|
|
5896
|
-
/* @__PURE__ */ e("div", { className: r(
|
|
5897
|
-
var
|
|
5897
|
+
/* @__PURE__ */ e("div", { className: r(Me.bar.block, (f = l == null ? void 0 : l.bar) == null ? void 0 : f.block), children: p.map(({ label: g, value: b, color: x }, s) => {
|
|
5898
|
+
var y;
|
|
5898
5899
|
return /* @__PURE__ */ u("div", { children: [
|
|
5899
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
5900
|
-
/* @__PURE__ */ e(
|
|
5901
|
-
/* @__PURE__ */ u(
|
|
5902
|
-
|
|
5900
|
+
/* @__PURE__ */ u("div", { className: r(Me.bar.text, (y = l == null ? void 0 : l.bar) == null ? void 0 : y.text), children: [
|
|
5901
|
+
/* @__PURE__ */ e(w, { children: g }),
|
|
5902
|
+
/* @__PURE__ */ u(w, { className: r(s === 2 && "text-danger-10"), children: [
|
|
5903
|
+
b,
|
|
5903
5904
|
" сум"
|
|
5904
5905
|
] })
|
|
5905
5906
|
] }),
|
|
5906
5907
|
/* @__PURE__ */ e(
|
|
5907
|
-
|
|
5908
|
+
kr,
|
|
5908
5909
|
{
|
|
5909
|
-
value:
|
|
5910
|
+
value: b,
|
|
5910
5911
|
total: c,
|
|
5911
|
-
color:
|
|
5912
|
+
color: x,
|
|
5912
5913
|
classNames: { bar: `${s === 0 && "h-9"}` }
|
|
5913
5914
|
}
|
|
5914
5915
|
)
|
|
@@ -5918,7 +5919,7 @@ const G = {
|
|
|
5918
5919
|
}
|
|
5919
5920
|
);
|
|
5920
5921
|
}
|
|
5921
|
-
),
|
|
5922
|
+
), Me = {
|
|
5922
5923
|
root: "w-[651px] h-[287px] bg-white p-5 shadow-3xl rounded-[10px] font-mono",
|
|
5923
5924
|
header: "flex flex-row justify-between",
|
|
5924
5925
|
link: "text-dark-40 cursor-pointer font-medium text-base",
|
|
@@ -5929,31 +5930,31 @@ const G = {
|
|
|
5929
5930
|
bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
|
|
5930
5931
|
indicator: "h-full rounded-md"
|
|
5931
5932
|
}
|
|
5932
|
-
},
|
|
5933
|
+
}, kr = ({
|
|
5933
5934
|
value: t,
|
|
5934
5935
|
total: d,
|
|
5935
5936
|
color: i,
|
|
5936
5937
|
classNames: o
|
|
5937
5938
|
}) => {
|
|
5938
|
-
const n = d ? Math.abs(t) / d * 100 : 0, [c, l] =
|
|
5939
|
+
const n = d ? Math.abs(t) / d * 100 : 0, [c, l] = A(0);
|
|
5939
5940
|
return ve(() => {
|
|
5940
5941
|
const a = requestAnimationFrame(() => {
|
|
5941
5942
|
l(n);
|
|
5942
5943
|
});
|
|
5943
5944
|
return () => cancelAnimationFrame(a);
|
|
5944
|
-
}, [n]), /* @__PURE__ */ e(
|
|
5945
|
-
|
|
5945
|
+
}, [n]), /* @__PURE__ */ e(ln, { className: r(Jt.bar, o == null ? void 0 : o.bar), children: /* @__PURE__ */ e(
|
|
5946
|
+
pn,
|
|
5946
5947
|
{
|
|
5947
|
-
className: r(
|
|
5948
|
+
className: r(Jt.indicator, i, o == null ? void 0 : o.indicator),
|
|
5948
5949
|
style: {
|
|
5949
5950
|
transform: `translateX(-${100 - c}%)`
|
|
5950
5951
|
}
|
|
5951
5952
|
}
|
|
5952
5953
|
) });
|
|
5953
|
-
},
|
|
5954
|
+
}, Jt = {
|
|
5954
5955
|
bar: "bg-gray-50 rounded-md h-7",
|
|
5955
5956
|
indicator: "h-full rounded-md"
|
|
5956
|
-
},
|
|
5957
|
+
}, Si = Q(
|
|
5957
5958
|
({
|
|
5958
5959
|
classNames: t,
|
|
5959
5960
|
labelText: d,
|
|
@@ -5967,19 +5968,19 @@ const G = {
|
|
|
5967
5968
|
searchValue: p,
|
|
5968
5969
|
onSearchChange: f,
|
|
5969
5970
|
searchPlaceholder: g = "Search...",
|
|
5970
|
-
emptyMessage:
|
|
5971
|
-
container:
|
|
5971
|
+
emptyMessage: b = "Нет данных",
|
|
5972
|
+
container: x,
|
|
5972
5973
|
disablePortal: s = !1,
|
|
5973
|
-
onDebouncedSearch:
|
|
5974
|
+
onDebouncedSearch: y,
|
|
5974
5975
|
debounceDelay: m = 300
|
|
5975
5976
|
}, B) => {
|
|
5976
|
-
var
|
|
5977
|
-
const [S, j] =
|
|
5977
|
+
var K;
|
|
5978
|
+
const [S, j] = A(!1), [k, v] = A(-1), C = fr(p, m);
|
|
5978
5979
|
ve(() => {
|
|
5979
|
-
|
|
5980
|
-
}, [C,
|
|
5980
|
+
y == null || y(C);
|
|
5981
|
+
}, [C, y]);
|
|
5981
5982
|
const D = oe(""), T = oe(null), I = oe(null);
|
|
5982
|
-
|
|
5983
|
+
Nt(
|
|
5983
5984
|
B,
|
|
5984
5985
|
() => ({
|
|
5985
5986
|
focus: () => {
|
|
@@ -5991,9 +5992,9 @@ const G = {
|
|
|
5991
5992
|
}),
|
|
5992
5993
|
[]
|
|
5993
5994
|
);
|
|
5994
|
-
const F = (
|
|
5995
|
+
const F = (K = c.find((W) => W.value === a)) == null ? void 0 : K.label;
|
|
5995
5996
|
F && (D.current = F);
|
|
5996
|
-
const
|
|
5997
|
+
const V = a ? F ?? D.current : "";
|
|
5997
5998
|
ve(() => {
|
|
5998
5999
|
if (k >= 0 && I.current && (c != null && c[k])) {
|
|
5999
6000
|
const W = I.current.querySelector(
|
|
@@ -6028,7 +6029,7 @@ const G = {
|
|
|
6028
6029
|
break;
|
|
6029
6030
|
}
|
|
6030
6031
|
}
|
|
6031
|
-
},
|
|
6032
|
+
}, M = (W) => {
|
|
6032
6033
|
W.preventDefault(), requestAnimationFrame(() => {
|
|
6033
6034
|
var H;
|
|
6034
6035
|
(H = T.current) == null || H.focus();
|
|
@@ -6043,7 +6044,7 @@ const G = {
|
|
|
6043
6044
|
t == null ? void 0 : t.labelContainer
|
|
6044
6045
|
),
|
|
6045
6046
|
children: [
|
|
6046
|
-
/* @__PURE__ */ e(
|
|
6047
|
+
/* @__PURE__ */ e(P, { disabled: i, className: t == null ? void 0 : t.labelText, children: d }),
|
|
6047
6048
|
o === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
|
|
6048
6049
|
]
|
|
6049
6050
|
}
|
|
@@ -6065,7 +6066,7 @@ const G = {
|
|
|
6065
6066
|
),
|
|
6066
6067
|
children: [
|
|
6067
6068
|
/* @__PURE__ */ e("div", { className: R.base.textWrapper, children: /* @__PURE__ */ e(
|
|
6068
|
-
|
|
6069
|
+
w,
|
|
6069
6070
|
{
|
|
6070
6071
|
className: r(
|
|
6071
6072
|
R.base.placeholder,
|
|
@@ -6075,7 +6076,7 @@ const G = {
|
|
|
6075
6076
|
a && i && R.disabled.selectedDisabled,
|
|
6076
6077
|
a ? t == null ? void 0 : t.selected : t == null ? void 0 : t.placeholder
|
|
6077
6078
|
),
|
|
6078
|
-
children:
|
|
6079
|
+
children: V || l
|
|
6079
6080
|
}
|
|
6080
6081
|
) }),
|
|
6081
6082
|
/* @__PURE__ */ e(
|
|
@@ -6100,13 +6101,13 @@ const G = {
|
|
|
6100
6101
|
{
|
|
6101
6102
|
className: r("p-1", t == null ? void 0 : t.content),
|
|
6102
6103
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
6103
|
-
onOpenAutoFocus:
|
|
6104
|
-
container:
|
|
6104
|
+
onOpenAutoFocus: M,
|
|
6105
|
+
container: x,
|
|
6105
6106
|
disablePortal: s,
|
|
6106
6107
|
children: [
|
|
6107
6108
|
/* @__PURE__ */ u("div", { className: R.search.wrapper, children: [
|
|
6108
6109
|
/* @__PURE__ */ e(
|
|
6109
|
-
|
|
6110
|
+
ur,
|
|
6110
6111
|
{
|
|
6111
6112
|
width: 16,
|
|
6112
6113
|
height: 16,
|
|
@@ -6132,7 +6133,7 @@ const G = {
|
|
|
6132
6133
|
] }),
|
|
6133
6134
|
/* @__PURE__ */ e("div", { className: R.search.divider }),
|
|
6134
6135
|
/* @__PURE__ */ u("div", { ref: I, className: R.options.list, children: [
|
|
6135
|
-
h && /* @__PURE__ */ e("div", { className: R.options.loadingWrapper, children: /* @__PURE__ */ e(
|
|
6136
|
+
h && /* @__PURE__ */ e("div", { className: R.options.loadingWrapper, children: /* @__PURE__ */ e(gt, { width: 30, height: 30 }) }),
|
|
6136
6137
|
!h && c.length ? c.map((W, H) => /* @__PURE__ */ e(
|
|
6137
6138
|
"div",
|
|
6138
6139
|
{
|
|
@@ -6146,7 +6147,7 @@ const G = {
|
|
|
6146
6147
|
tt.preventDefault(), tt.stopPropagation(), ce(W.value);
|
|
6147
6148
|
},
|
|
6148
6149
|
onMouseEnter: () => v(H),
|
|
6149
|
-
children: /* @__PURE__ */ e(
|
|
6150
|
+
children: /* @__PURE__ */ e(w, { className: R.options.itemsText, children: W.label })
|
|
6150
6151
|
},
|
|
6151
6152
|
W.value
|
|
6152
6153
|
)) : !h && /* @__PURE__ */ e(
|
|
@@ -6156,7 +6157,7 @@ const G = {
|
|
|
6156
6157
|
R.options.items,
|
|
6157
6158
|
"cursor-default"
|
|
6158
6159
|
),
|
|
6159
|
-
children: /* @__PURE__ */ e(
|
|
6160
|
+
children: /* @__PURE__ */ e(w, { className: R.options.itemsText, children: b })
|
|
6160
6161
|
}
|
|
6161
6162
|
)
|
|
6162
6163
|
] })
|
|
@@ -6205,8 +6206,8 @@ const G = {
|
|
|
6205
6206
|
triggerText: "text-secondary-10/50",
|
|
6206
6207
|
selectedDisabled: "text-dark-30/25"
|
|
6207
6208
|
}
|
|
6208
|
-
},
|
|
6209
|
-
({ name: t, size: d,
|
|
6209
|
+
}, Di = Q(
|
|
6210
|
+
({ name: t, size: d, dateTime: i, isDownloaded: o = !1, classNames: n, ...c }, l) => /* @__PURE__ */ u(
|
|
6210
6211
|
"div",
|
|
6211
6212
|
{
|
|
6212
6213
|
ref: l,
|
|
@@ -6214,22 +6215,22 @@ const G = {
|
|
|
6214
6215
|
...c,
|
|
6215
6216
|
children: [
|
|
6216
6217
|
/* @__PURE__ */ e("div", { className: r(Oe.iconWrapper, n == null ? void 0 : n.iconWrapper), children: o ? /* @__PURE__ */ e(
|
|
6217
|
-
|
|
6218
|
+
Zr,
|
|
6218
6219
|
{
|
|
6219
6220
|
"data-testid": "icon-file",
|
|
6220
6221
|
className: "fill-primary-10"
|
|
6221
6222
|
}
|
|
6222
6223
|
) : /* @__PURE__ */ e(
|
|
6223
|
-
|
|
6224
|
+
Qr,
|
|
6224
6225
|
{
|
|
6225
6226
|
"data-testid": "icon-download",
|
|
6226
6227
|
className: "fill-success-20"
|
|
6227
6228
|
}
|
|
6228
6229
|
) }),
|
|
6229
6230
|
/* @__PURE__ */ u("div", { className: r(Oe.content, n == null ? void 0 : n.content), children: [
|
|
6230
|
-
/* @__PURE__ */ e(
|
|
6231
|
-
/* @__PURE__ */ e(
|
|
6232
|
-
/* @__PURE__ */ e(
|
|
6231
|
+
/* @__PURE__ */ e(w, { "data-testid": "file-name", className: Oe.name, children: t }),
|
|
6232
|
+
/* @__PURE__ */ e(w, { "data-testid": "file-size", className: Oe.size, children: ft(d) }),
|
|
6233
|
+
/* @__PURE__ */ e(w, { "data-testid": "file-date", className: Oe.dateAndTime, children: xt(i) })
|
|
6233
6234
|
] })
|
|
6234
6235
|
]
|
|
6235
6236
|
}
|
|
@@ -6242,7 +6243,7 @@ const G = {
|
|
|
6242
6243
|
name: "text-sm font-semibold text-dark-30 w-[160px] truncate",
|
|
6243
6244
|
size: "text-sm text-dark-40/50",
|
|
6244
6245
|
dateAndTime: "text-xs text-dark-40/50"
|
|
6245
|
-
},
|
|
6246
|
+
}, Cr = z.forwardRef(
|
|
6246
6247
|
({
|
|
6247
6248
|
id: t,
|
|
6248
6249
|
text: d,
|
|
@@ -6256,7 +6257,7 @@ const G = {
|
|
|
6256
6257
|
classNames: p,
|
|
6257
6258
|
...f
|
|
6258
6259
|
}, g) => {
|
|
6259
|
-
const
|
|
6260
|
+
const b = Ve.base, x = Ve.wrapper, s = Ve.sender, y = Ve.message, m = Ve.timestamp;
|
|
6260
6261
|
return /* @__PURE__ */ u(
|
|
6261
6262
|
"div",
|
|
6262
6263
|
{
|
|
@@ -6264,7 +6265,7 @@ const G = {
|
|
|
6264
6265
|
id: t,
|
|
6265
6266
|
"data-testid": "message",
|
|
6266
6267
|
className: r(
|
|
6267
|
-
|
|
6268
|
+
b,
|
|
6268
6269
|
l && "bg-primary-10/[.15] border-dark-40/[.25]",
|
|
6269
6270
|
a && !l && "bg-dark-40/[.25]",
|
|
6270
6271
|
a && l && "bg-primary-10/[.55]",
|
|
@@ -6272,7 +6273,7 @@ const G = {
|
|
|
6272
6273
|
),
|
|
6273
6274
|
...f,
|
|
6274
6275
|
children: [
|
|
6275
|
-
/* @__PURE__ */ u("div", { className: r(
|
|
6276
|
+
/* @__PURE__ */ u("div", { className: r(x.above), children: [
|
|
6276
6277
|
!l && h && !!o && /* @__PURE__ */ e(
|
|
6277
6278
|
"div",
|
|
6278
6279
|
{
|
|
@@ -6282,7 +6283,7 @@ const G = {
|
|
|
6282
6283
|
}
|
|
6283
6284
|
),
|
|
6284
6285
|
!!n && /* @__PURE__ */ e(
|
|
6285
|
-
|
|
6286
|
+
Ur,
|
|
6286
6287
|
{
|
|
6287
6288
|
senderName: n.senderName,
|
|
6288
6289
|
messageText: n.messageText,
|
|
@@ -6293,12 +6294,12 @@ const G = {
|
|
|
6293
6294
|
"span",
|
|
6294
6295
|
{
|
|
6295
6296
|
"data-testid": "message-text",
|
|
6296
|
-
className: r(
|
|
6297
|
+
className: r(y, p == null ? void 0 : p.message),
|
|
6297
6298
|
children: d
|
|
6298
6299
|
}
|
|
6299
6300
|
)
|
|
6300
6301
|
] }),
|
|
6301
|
-
/* @__PURE__ */ u("div", { className:
|
|
6302
|
+
/* @__PURE__ */ u("div", { className: x.below, children: [
|
|
6302
6303
|
!!i && /* @__PURE__ */ e(
|
|
6303
6304
|
"span",
|
|
6304
6305
|
{
|
|
@@ -6309,7 +6310,7 @@ const G = {
|
|
|
6309
6310
|
l ? "text-primary-10" : "text-dark-40/50",
|
|
6310
6311
|
a && "text-dark-30"
|
|
6311
6312
|
),
|
|
6312
|
-
children:
|
|
6313
|
+
children: bt(i)
|
|
6313
6314
|
}
|
|
6314
6315
|
),
|
|
6315
6316
|
l && !!c && /* @__PURE__ */ u("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
|
|
@@ -6338,7 +6339,7 @@ const G = {
|
|
|
6338
6339
|
);
|
|
6339
6340
|
}
|
|
6340
6341
|
);
|
|
6341
|
-
|
|
6342
|
+
Cr.displayName = "Message";
|
|
6342
6343
|
const Ve = {
|
|
6343
6344
|
base: "relative flex gap-3 bg-sidebar-10 border border-dark-40/[.25] rounded-[10px] px-2.5 py-2 min-h-10 max-w-lg",
|
|
6344
6345
|
wrapper: {
|
|
@@ -6348,10 +6349,10 @@ const Ve = {
|
|
|
6348
6349
|
sender: "w-full truncate text-primary-10 text-sm font-sans font-medium",
|
|
6349
6350
|
message: "text-dark-30 text-sm font-sans font-medium whitespace-pre-wrap",
|
|
6350
6351
|
timestamp: "text-xs leading-none"
|
|
6351
|
-
},
|
|
6352
|
+
}, ji = ({
|
|
6352
6353
|
title: t,
|
|
6353
6354
|
size: d,
|
|
6354
|
-
|
|
6355
|
+
dateTime: i,
|
|
6355
6356
|
timestamp: o,
|
|
6356
6357
|
status: n,
|
|
6357
6358
|
isMine: c = !1,
|
|
@@ -6365,7 +6366,7 @@ const Ve = {
|
|
|
6365
6366
|
onClick: l,
|
|
6366
6367
|
children: [
|
|
6367
6368
|
/* @__PURE__ */ e("div", { className: r(Be.icon, a == null ? void 0 : a.icon), children: /* @__PURE__ */ e(
|
|
6368
|
-
|
|
6369
|
+
yn,
|
|
6369
6370
|
{
|
|
6370
6371
|
className: "fill-sidebar-10",
|
|
6371
6372
|
width: 37,
|
|
@@ -6375,7 +6376,7 @@ const Ve = {
|
|
|
6375
6376
|
) }),
|
|
6376
6377
|
/* @__PURE__ */ u("div", { className: r(Be.content, a == null ? void 0 : a.content), children: [
|
|
6377
6378
|
/* @__PURE__ */ e(
|
|
6378
|
-
|
|
6379
|
+
w,
|
|
6379
6380
|
{
|
|
6380
6381
|
"data-testid": "document-title",
|
|
6381
6382
|
className: r(Be.title, a == null ? void 0 : a.title),
|
|
@@ -6383,7 +6384,7 @@ const Ve = {
|
|
|
6383
6384
|
}
|
|
6384
6385
|
),
|
|
6385
6386
|
/* @__PURE__ */ e(
|
|
6386
|
-
|
|
6387
|
+
w,
|
|
6387
6388
|
{
|
|
6388
6389
|
"data-testid": "document-size",
|
|
6389
6390
|
className: r(Be.size, a == null ? void 0 : a.size),
|
|
@@ -6391,11 +6392,11 @@ const Ve = {
|
|
|
6391
6392
|
}
|
|
6392
6393
|
),
|
|
6393
6394
|
/* @__PURE__ */ e(
|
|
6394
|
-
|
|
6395
|
+
w,
|
|
6395
6396
|
{
|
|
6396
6397
|
"data-testid": "document-date",
|
|
6397
|
-
className: r(Be.dateAndTime, a == null ? void 0 : a.
|
|
6398
|
-
children: typeof i == "string" ? i :
|
|
6398
|
+
className: r(Be.dateAndTime, a == null ? void 0 : a.dateTime),
|
|
6399
|
+
children: typeof i == "string" ? i : xt(i)
|
|
6399
6400
|
}
|
|
6400
6401
|
)
|
|
6401
6402
|
] }),
|
|
@@ -6408,7 +6409,7 @@ const Ve = {
|
|
|
6408
6409
|
"text-xs",
|
|
6409
6410
|
c ? "text-primary-10" : "text-dark-40/50"
|
|
6410
6411
|
),
|
|
6411
|
-
children: typeof o == "string" ? o :
|
|
6412
|
+
children: typeof o == "string" ? o : bt(o)
|
|
6412
6413
|
}
|
|
6413
6414
|
),
|
|
6414
6415
|
c && !!n && /* @__PURE__ */ u("div", { "data-testid": "document-status", className: "translate-y-0.5", children: [
|
|
@@ -6442,7 +6443,7 @@ const Ve = {
|
|
|
6442
6443
|
size: "text-xs text-dark-40/50",
|
|
6443
6444
|
dateAndTime: "text-xs text-dark-40/50",
|
|
6444
6445
|
footer: "flex items-center gap-1 self-end shrink-0"
|
|
6445
|
-
},
|
|
6446
|
+
}, Ii = ({
|
|
6446
6447
|
src: t,
|
|
6447
6448
|
alt: d = "",
|
|
6448
6449
|
status: i,
|
|
@@ -6506,7 +6507,7 @@ const Ve = {
|
|
|
6506
6507
|
image: "block w-full h-auto object-cover",
|
|
6507
6508
|
overlay: "absolute inset-0 bg-dark-40/30 rounded-xl",
|
|
6508
6509
|
status: "absolute bottom-3 right-3"
|
|
6509
|
-
},
|
|
6510
|
+
}, _i = ({
|
|
6510
6511
|
src: t,
|
|
6511
6512
|
poster: d,
|
|
6512
6513
|
alt: i = "",
|
|
@@ -6554,7 +6555,7 @@ const Ve = {
|
|
|
6554
6555
|
},
|
|
6555
6556
|
type: "button",
|
|
6556
6557
|
children: /* @__PURE__ */ e(
|
|
6557
|
-
|
|
6558
|
+
Xr,
|
|
6558
6559
|
{
|
|
6559
6560
|
className: "fill-sidebar-10 text-sidebar-10",
|
|
6560
6561
|
width: 18,
|
|
@@ -6571,7 +6572,7 @@ const Ve = {
|
|
|
6571
6572
|
{
|
|
6572
6573
|
"data-testid": "video-card-timestamp",
|
|
6573
6574
|
className: r(Se.timestamp),
|
|
6574
|
-
children: typeof n == "string" ? n :
|
|
6575
|
+
children: typeof n == "string" ? n : bt(n)
|
|
6575
6576
|
}
|
|
6576
6577
|
),
|
|
6577
6578
|
l && !!c && /* @__PURE__ */ u(
|
|
@@ -6612,7 +6613,7 @@ const Ve = {
|
|
|
6612
6613
|
muteButton: "flex items-center justify-center bg-transparent border-none cursor-pointer p-0",
|
|
6613
6614
|
footer: "absolute bottom-3 right-3 flex items-center gap-2",
|
|
6614
6615
|
timestamp: "text-xs text-sidebar-10"
|
|
6615
|
-
},
|
|
6616
|
+
}, Wi = ({
|
|
6616
6617
|
src: t,
|
|
6617
6618
|
duration: d,
|
|
6618
6619
|
size: i,
|
|
@@ -6624,7 +6625,7 @@ const Ve = {
|
|
|
6624
6625
|
onClick: h,
|
|
6625
6626
|
classNames: p
|
|
6626
6627
|
}) => {
|
|
6627
|
-
const f = oe(null), [g,
|
|
6628
|
+
const f = oe(null), [g, b] = A(!1), [x, s] = A(d), [y, m] = A(0), B = ht(() => Array.from(
|
|
6628
6629
|
{ length: 40 },
|
|
6629
6630
|
(D, T) => ((T * 7 + 13) * 17 + 31) % 97 / 97 * 0.8 + 0.2
|
|
6630
6631
|
), []), S = nt((C) => {
|
|
@@ -6636,14 +6637,14 @@ const Ve = {
|
|
|
6636
6637
|
}, []), j = nt((C) => {
|
|
6637
6638
|
C.stopPropagation();
|
|
6638
6639
|
const D = f.current;
|
|
6639
|
-
D && (D.paused ? (D.play(),
|
|
6640
|
+
D && (D.paused ? (D.play(), b(!0)) : (D.pause(), b(!1)));
|
|
6640
6641
|
}, []), k = nt(() => {
|
|
6641
6642
|
const C = f.current;
|
|
6642
6643
|
if (!C) return;
|
|
6643
6644
|
const D = Math.floor(C.currentTime / 60).toString().padStart(2, "0"), T = Math.floor(C.currentTime % 60).toString().padStart(2, "0");
|
|
6644
6645
|
s(`${D}:${T}`), m(C.duration ? C.currentTime / C.duration * 100 : 0);
|
|
6645
6646
|
}, []), v = nt(() => {
|
|
6646
|
-
|
|
6647
|
+
b(!1), s(d), m(0);
|
|
6647
6648
|
}, [d]);
|
|
6648
6649
|
return /* @__PURE__ */ u(
|
|
6649
6650
|
"div",
|
|
@@ -6660,7 +6661,7 @@ const Ve = {
|
|
|
6660
6661
|
className: r(te.playButton, p == null ? void 0 : p.playButton),
|
|
6661
6662
|
onClick: j,
|
|
6662
6663
|
children: g ? /* @__PURE__ */ e(
|
|
6663
|
-
|
|
6664
|
+
Or,
|
|
6664
6665
|
{
|
|
6665
6666
|
className: te.playIcon,
|
|
6666
6667
|
width: 20,
|
|
@@ -6668,7 +6669,7 @@ const Ve = {
|
|
|
6668
6669
|
viewBox: "0 0 24 24"
|
|
6669
6670
|
}
|
|
6670
6671
|
) : /* @__PURE__ */ e(
|
|
6671
|
-
|
|
6672
|
+
Fr,
|
|
6672
6673
|
{
|
|
6673
6674
|
className: te.playIcon,
|
|
6674
6675
|
width: 20,
|
|
@@ -6686,7 +6687,7 @@ const Ve = {
|
|
|
6686
6687
|
className: r(te.waveform, p == null ? void 0 : p.waveform),
|
|
6687
6688
|
onClick: S,
|
|
6688
6689
|
role: "slider",
|
|
6689
|
-
"aria-valuenow":
|
|
6690
|
+
"aria-valuenow": y,
|
|
6690
6691
|
"aria-valuemin": 0,
|
|
6691
6692
|
"aria-valuemax": 100,
|
|
6692
6693
|
tabIndex: 0,
|
|
@@ -6696,7 +6697,7 @@ const Ve = {
|
|
|
6696
6697
|
className: "w-[2px] shrink-0 rounded-full",
|
|
6697
6698
|
style: {
|
|
6698
6699
|
height: `${C * 100}%`,
|
|
6699
|
-
backgroundColor: D / B.length * 100 <=
|
|
6700
|
+
backgroundColor: D / B.length * 100 <= y ? a : l
|
|
6700
6701
|
}
|
|
6701
6702
|
},
|
|
6702
6703
|
D
|
|
@@ -6710,7 +6711,7 @@ const Ve = {
|
|
|
6710
6711
|
{
|
|
6711
6712
|
"data-testid": "audio-card-duration",
|
|
6712
6713
|
className: r(te.duration, p == null ? void 0 : p.duration),
|
|
6713
|
-
children:
|
|
6714
|
+
children: x
|
|
6714
6715
|
}
|
|
6715
6716
|
),
|
|
6716
6717
|
/* @__PURE__ */ e(
|
|
@@ -6728,7 +6729,7 @@ const Ve = {
|
|
|
6728
6729
|
{
|
|
6729
6730
|
"data-testid": "audio-card-timestamp",
|
|
6730
6731
|
className: te.timestamp,
|
|
6731
|
-
children: typeof o == "string" ? o :
|
|
6732
|
+
children: typeof o == "string" ? o : bt(o)
|
|
6732
6733
|
}
|
|
6733
6734
|
),
|
|
6734
6735
|
c && !!n && /* @__PURE__ */ u("div", { "data-testid": "audio-card-status", className: te.status, children: [
|
|
@@ -6784,77 +6785,77 @@ const Ve = {
|
|
|
6784
6785
|
status: "translate-y-0.5"
|
|
6785
6786
|
};
|
|
6786
6787
|
export {
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6788
|
+
Lo as Accordion,
|
|
6789
|
+
fi as ApartmentCard,
|
|
6790
|
+
Wi as AudioMessage,
|
|
6790
6791
|
te as AudioMessageTokens,
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6792
|
+
Lt as AvatarGroup,
|
|
6793
|
+
Ho as Breadcrumb,
|
|
6794
|
+
ui as CardFiles,
|
|
6795
|
+
Ci as CardMonthly,
|
|
6796
|
+
yi as CardPieChart,
|
|
6797
|
+
Bi as CardProgress,
|
|
6798
|
+
Ti as CardRingChart,
|
|
6799
|
+
Qo as CardServices,
|
|
6800
|
+
ki as CardStat,
|
|
6801
|
+
po as ChatButton,
|
|
6802
|
+
Xn as ChatCard,
|
|
6803
|
+
gi as ChatList,
|
|
6804
|
+
vi as ChatMessage,
|
|
6805
|
+
bi as ChatSidebar,
|
|
6806
|
+
Bn as CheckboxGroup,
|
|
6807
|
+
Si as Combobox,
|
|
6808
|
+
Xo as CommentInput,
|
|
6809
|
+
Go as CommentList,
|
|
6810
|
+
ai as DateOfBirth,
|
|
6811
|
+
Vo as DatePicker,
|
|
6812
|
+
qo as DateRangePicker,
|
|
6813
|
+
si as DeleteMessage,
|
|
6814
|
+
ji as DocumentMessage,
|
|
6814
6815
|
Be as DocumentMessageTokens,
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6816
|
+
di as DragAndDrop,
|
|
6817
|
+
Qn as Dropdown,
|
|
6818
|
+
Di as FileCard,
|
|
6819
|
+
Ko as FileUploader,
|
|
6820
|
+
Zo as FilterTable,
|
|
6821
|
+
wi as FloorSelect,
|
|
6821
6822
|
Qe as IconTitle,
|
|
6822
|
-
|
|
6823
|
+
Ii as ImageMessage,
|
|
6823
6824
|
pt as ImageMessageTokens,
|
|
6824
|
-
|
|
6825
|
+
zt as InputGroup,
|
|
6825
6826
|
Re as LabelWithValue,
|
|
6826
|
-
|
|
6827
|
+
Po as Languages,
|
|
6827
6828
|
Xe as Link,
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6829
|
+
Cr as Message,
|
|
6830
|
+
co as MessageSettings,
|
|
6831
|
+
Yo as MultiSelect,
|
|
6832
|
+
oo as NavButton,
|
|
6833
|
+
No as Pagination,
|
|
6833
6834
|
$ as PaginationTokens,
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6835
|
+
Uo as PasswordInput,
|
|
6836
|
+
hi as PaymentCard,
|
|
6837
|
+
ei as PhoneInput,
|
|
6838
|
+
ti as Plate,
|
|
6839
|
+
kr as ProgressItem,
|
|
6840
|
+
mr as RadioGroup,
|
|
6841
|
+
yr as Rating,
|
|
6842
|
+
Mn as SearchInput,
|
|
6843
|
+
ci as SelectGroup,
|
|
6844
|
+
lo as SelectList,
|
|
6845
|
+
xi as ServiceOrders,
|
|
6846
|
+
Jo as Sidebar,
|
|
6847
|
+
wr as StatusSelect,
|
|
6848
|
+
li as Stepper,
|
|
6849
|
+
ni as TabGroup,
|
|
6850
|
+
mi as TabList,
|
|
6851
|
+
ri as TabSwitch,
|
|
6851
6852
|
Ce as TabSwitchTokens,
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6853
|
+
zo as Table,
|
|
6854
|
+
oi as TextareaGroup,
|
|
6855
|
+
ii as ToggleGroup,
|
|
6856
|
+
Eo as UploadInput,
|
|
6857
|
+
pi as UserContact,
|
|
6858
|
+
_i as VideoMessage,
|
|
6858
6859
|
Se as VideoMessageTokens,
|
|
6859
6860
|
me as accordionTokens,
|
|
6860
6861
|
de as apartmentCardTokens,
|
|
@@ -6862,59 +6863,59 @@ export {
|
|
|
6862
6863
|
et as breadcrumnbTokens,
|
|
6863
6864
|
U as cardFilesTokens,
|
|
6864
6865
|
Ge as cardMonthlyTokens,
|
|
6865
|
-
|
|
6866
|
-
|
|
6866
|
+
Z as cardPieChartTokens,
|
|
6867
|
+
Me as cardProgressTokens,
|
|
6867
6868
|
ne as cardRingChartTokens,
|
|
6868
6869
|
be as cardServicesTokens,
|
|
6869
6870
|
fe as cardStatTokens,
|
|
6870
|
-
|
|
6871
|
+
Ae as chatButtonTokens,
|
|
6871
6872
|
Ie as chatCardTokens,
|
|
6872
|
-
|
|
6873
|
+
Qt as chatListTokens,
|
|
6873
6874
|
at as chatMessageTokens,
|
|
6874
6875
|
Ee as chatSidebarTokens,
|
|
6875
6876
|
ue as checkboxGroupTokens,
|
|
6876
6877
|
R as comboboxTokens,
|
|
6877
6878
|
ot as commentInputTokens,
|
|
6878
6879
|
Y as commentItemTokens,
|
|
6879
|
-
|
|
6880
|
+
qt as dateOfBirthClasses,
|
|
6880
6881
|
_ as datePickerTokens,
|
|
6881
|
-
|
|
6882
|
-
|
|
6882
|
+
Kn as dateRangePickerTokens,
|
|
6883
|
+
Zn as dayPickerClasses,
|
|
6883
6884
|
lt as deleteMessageTokens,
|
|
6884
6885
|
We as dragAndDropTokens,
|
|
6885
|
-
|
|
6886
|
+
Et as dropdownTokens,
|
|
6886
6887
|
Oe as fileCardTokens,
|
|
6887
|
-
|
|
6888
|
-
|
|
6888
|
+
G as fileUploaderTokens,
|
|
6889
|
+
Bt as filterTableTokens,
|
|
6889
6890
|
he as floorSelectTokens,
|
|
6890
|
-
|
|
6891
|
+
Kt as iconTitleTokens,
|
|
6891
6892
|
dt as inputGroupTokens,
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6893
|
+
Zt as labelWithValueTokens,
|
|
6894
|
+
St as languagesTokens,
|
|
6895
|
+
io as linkTokens,
|
|
6896
|
+
It as messageSettingsTokens,
|
|
6896
6897
|
Ve as messageTokens,
|
|
6897
6898
|
L as multiSelectTokens,
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6899
|
+
Dt as navButtonTokens,
|
|
6900
|
+
An as passwordInputTokens,
|
|
6901
|
+
J as paymentCardTokens,
|
|
6901
6902
|
ke as phoneInputTokens,
|
|
6902
6903
|
Ue as plateTokens,
|
|
6903
|
-
|
|
6904
|
+
Jt as progressItemsTokens,
|
|
6904
6905
|
ye as radioGroupTokens,
|
|
6905
6906
|
ge as ratingTokens,
|
|
6906
6907
|
re as searchInputTokens,
|
|
6907
|
-
|
|
6908
|
-
|
|
6908
|
+
ao as selectGroupTokens,
|
|
6909
|
+
E as selectListTokens,
|
|
6909
6910
|
Te as serviceOrdersTokens,
|
|
6910
6911
|
it as sidebarTokens,
|
|
6911
6912
|
Ye as statusSelectTokens,
|
|
6912
|
-
|
|
6913
|
+
q as stepperTokens,
|
|
6913
6914
|
_e as tabGroupTokens,
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6915
|
+
uo as tabListTokens,
|
|
6916
|
+
X as tableTokens,
|
|
6917
|
+
Vt as textareaGroupTokens,
|
|
6918
|
+
to as toggleGroupTokens,
|
|
6918
6919
|
we as uploadInputTokens,
|
|
6919
|
-
|
|
6920
|
+
jt as userContactTokens
|
|
6920
6921
|
};
|