@namuna-nur/ui-kit 1.9.16 → 1.9.17

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.
Files changed (2) hide show
  1. package/lib/molecules/index.js +381 -379
  2. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
- import { jsxs as p, jsx as e, Fragment as mt } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as e, Fragment as vt } from "react/jsx-runtime";
2
2
  import * as $ from "react";
3
- import Ht, { useRef as ue, forwardRef as Z, useState as F, useImperativeHandle as br, useEffect as _e, Fragment as xr, useMemo as gr } from "react";
4
- import { S as et, b as sr, c as be, d as vr, e as mr, f as wr, g as Yt, h as Gt, i as yr, j as Ut, k as kr, l as Cr, m as Tr, n as Sr, o as Br, p as wt } from "../shared/assets-icons-2.js";
5
- import { cn as o, formatFileSize as Ct, formatDateToDayMonthYear as Dr, numberFormat as jr } from "../utils/index.js";
6
- import { Checkbox as yt, Label as P, Spinner as Et, Text as k, Button as _, Avatar as Vt, IconButton as Tt, Select as ke, Textarea as Qt, Radio as qt, Status as He, Toggle as Ir, Headline as Pe, Input as Wr, Message as Mr, Tab as _r } from "../atoms/index.js";
7
- import { useReactTable as Fr, getCoreRowModel as Or, flexRender as pt } from "@tanstack/react-table";
8
- import { b as Ar, c as $r, d as Rr, e as Lr } from "../shared/assets-icons-3.js";
9
- import { Link as Ee, useSearchParams as St, NavLink as tt, useNavigate as zr } from "react-router-dom";
10
- import { S as Hr, a as Yr, b as Gr, c as Ur, d as Er, e as Xt, f as Bt } from "../shared/assets-icons-1.js";
11
- import { P as de, b as ae, c as le, D as rt, d as nt, e as ot, f as Dt, A as Vr, g as Qr, h as qr, i as Xr, j as Zt, k as Jt, l as Kt, m as Zr, n as Jr, o as Kr } from "../shared/shared.js";
12
- import { d as Ye, e as Pr, f as Nr, g as Pt, h as en, i as tn, j as rn, k as nn, a as on, l as dn, m as an, n as ln } from "../shared/assets-icons-4.js";
13
- import { useDebounce as cn, useOption as Nt } from "../hooks/index.js";
14
- import * as er from "@radix-ui/react-toggle";
15
- import { e as tr, f as pn, g as hn, h as un, i as rr, j as Fe, k as _t } from "../shared/assets-icons-0.js";
16
- import { useMask as nr, format as ht } from "@react-input/mask";
17
- import { format as Q, addMonths as fn, parse as kt, isValid as We, parseISO as bn } from "date-fns";
18
- import { ru as ut } from "date-fns/locale";
3
+ import Ht, { useRef as ue, forwardRef as Z, useState as F, useImperativeHandle as xr, useEffect as _e, Fragment as gr, useMemo as sr } from "react";
4
+ import { S as et, b as vr, c as be, d as mr, e as wr, f as yr, g as Yt, h as Gt, i as kr, j as Ut, k as Cr, l as Tr, m as Sr, n as Br, o as Dr, p as mt } from "../shared/assets-icons-2.js";
5
+ import { cn as o, formatFileSize as kt, formatDateToDayMonthYear as jr, numberFormat as Ir } from "../utils/index.js";
6
+ import { Checkbox as wt, Label as P, Spinner as Et, Text as k, Button as _, Avatar as Vt, IconButton as Ct, Select as ke, Textarea as Qt, Radio as qt, Status as He, Toggle as Wr, Headline as Pe, Input as Mr, Message as _r, Tab as Fr } from "../atoms/index.js";
7
+ import { useReactTable as Or, getCoreRowModel as Ar, flexRender as ct } from "@tanstack/react-table";
8
+ import { b as $r, c as Rr, d as Lr, e as zr } from "../shared/assets-icons-3.js";
9
+ import { Link as Ee, useSearchParams as Tt, useNavigate as Xt, NavLink as St } from "react-router-dom";
10
+ import { S as Hr, a as Yr, b as Gr, c as Ur, d as Er, e as Zt, f as Bt } from "../shared/assets-icons-1.js";
11
+ import { P as de, b as ae, c as le, D as tt, d as rt, e as nt, f as Dt, A as Vr, g as Qr, h as qr, i as Xr, j as Jt, k as Kt, l as Pt, m as Zr, n as Jr, o as Kr } from "../shared/shared.js";
12
+ import { d as Ye, e as Pr, f as Nr, g as Nt, h as en, i as tn, j as rn, k as nn, a as on, l as dn, m as an, n as ln } from "../shared/assets-icons-4.js";
13
+ import { useDebounce as cn, useOption as er } from "../hooks/index.js";
14
+ import * as tr from "@radix-ui/react-toggle";
15
+ import { e as rr, f as pn, g as hn, h as un, i as nr, j as Fe, k as _t } from "../shared/assets-icons-0.js";
16
+ import { useMask as or, format as pt } from "@react-input/mask";
17
+ import { format as Q, addMonths as fn, parse as yt, isValid as We, parseISO as bn } from "date-fns";
18
+ import { ru as ht } from "date-fns/locale";
19
19
  import { DayPicker as xn } from "react-day-picker";
20
- import it from "echarts-for-react/lib/core";
20
+ import ot from "echarts-for-react/lib/core";
21
21
  import { colorTokens as Ne } from "../tokens/index.js";
22
- import * as dt from "echarts/core";
22
+ import * as it from "echarts/core";
23
23
  const jo = ({
24
24
  isOpen: t,
25
25
  children: i,
@@ -31,7 +31,7 @@ const jo = ({
31
31
  classNames: a,
32
32
  onClick: f
33
33
  }) => {
34
- const h = se.root, u = se.header, b = se.icon, x = se.content, s = se.titlesWrapper, w = se.title, v = se.subtitle;
34
+ const h = se.root, u = se.header, b = se.icon, x = se.content, s = se.titlesWrapper, y = se.title, w = se.subtitle;
35
35
  return /* @__PURE__ */ p("div", { className: o(h, a == null ? void 0 : a.root), children: [
36
36
  /* @__PURE__ */ p(
37
37
  "button",
@@ -62,7 +62,7 @@ const jo = ({
62
62
  "span",
63
63
  {
64
64
  className: o(
65
- w,
65
+ y,
66
66
  r && "text-dark-30/25",
67
67
  a == null ? void 0 : a.title
68
68
  ),
@@ -74,7 +74,7 @@ const jo = ({
74
74
  "span",
75
75
  {
76
76
  className: o(
77
- v,
77
+ w,
78
78
  r && "text-dark-30/25",
79
79
  a == null ? void 0 : a.subtitle
80
80
  ),
@@ -109,7 +109,7 @@ const jo = ({
109
109
  t ? x.opened : x.closed,
110
110
  a == null ? void 0 : a.content
111
111
  ),
112
- onClick: (y) => y.stopPropagation(),
112
+ onClick: (v) => v.stopPropagation(),
113
113
  children: i
114
114
  }
115
115
  )
@@ -132,7 +132,7 @@ const jo = ({
132
132
  titlesWrapper: "flex flex-col items-start gap-1",
133
133
  title: "text-sidebar-30 text-xs font-sans font-semibold leading-none",
134
134
  subtitle: "text-gray-20 text-[11px] font-sans font-medium leading-none"
135
- }, or = ({
135
+ }, ir = ({
136
136
  id: t,
137
137
  label: i,
138
138
  labelPosition: d = "right",
@@ -152,7 +152,7 @@ const jo = ({
152
152
  ),
153
153
  children: [
154
154
  /* @__PURE__ */ e(
155
- yt,
155
+ wt,
156
156
  {
157
157
  id: t,
158
158
  checked: l,
@@ -207,29 +207,29 @@ function Io({
207
207
  isCheckboxVisible: a = !0,
208
208
  isLoading: f = !1
209
209
  }) {
210
- const h = Fr({
210
+ const h = Or({
211
211
  columns: i,
212
212
  data: d,
213
- getCoreRowModel: Or(),
213
+ getCoreRowModel: Ar(),
214
214
  manualSorting: !0
215
- }), u = ue(null), b = (v) => {
216
- const y = l == null ? void 0 : l.find((B) => B.id === v), S = y != null && y.desc ? "asc" : "desc";
217
- c == null || c({ key: v, order: S });
215
+ }), u = ue(null), b = (w) => {
216
+ const v = l == null ? void 0 : l.find((B) => B.id === w), S = v != null && v.desc ? "asc" : "desc";
217
+ c == null || c({ key: w, order: S });
218
218
  }, x = h.getFooterGroups().some(
219
- (v) => v.headers.some((y) => y.column.columnDef.footer)
220
- ), s = (v) => {
221
- n != null && n.includes(v) ? r(n.filter((y) => y !== v)) : r([...n, v]);
222
- }, w = () => {
223
- const v = h.getCoreRowModel().rows.map((y) => {
219
+ (w) => w.headers.some((v) => v.column.columnDef.footer)
220
+ ), s = (w) => {
221
+ n != null && n.includes(w) ? r(n.filter((v) => v !== w)) : r([...n, w]);
222
+ }, y = () => {
223
+ const w = h.getCoreRowModel().rows.map((v) => {
224
224
  var S;
225
- return (S = y.original) == null ? void 0 : S.id;
225
+ return (S = v.original) == null ? void 0 : S.id;
226
226
  });
227
- (n == null ? void 0 : n.length) === v.length ? r([]) : r(v);
227
+ (n == null ? void 0 : n.length) === w.length ? r([]) : r(w);
228
228
  };
229
229
  return /* @__PURE__ */ p("div", { className: o(V.root, t == null ? void 0 : t.root), children: [
230
230
  f && /* @__PURE__ */ e(Et, {}),
231
231
  !f && !d.length && /* @__PURE__ */ p("div", { className: V.info, children: [
232
- /* @__PURE__ */ e(Ar, { className: "fill-dark-30/50" }),
232
+ /* @__PURE__ */ e($r, { className: "fill-dark-30/50" }),
233
233
  /* @__PURE__ */ e(k, { className: V.infoText, children: "Нет данных" })
234
234
  ] }),
235
235
  /* @__PURE__ */ e(
@@ -238,8 +238,8 @@ function Io({
238
238
  className: o(V.wrapper, t == null ? void 0 : t.wrapper),
239
239
  ref: u,
240
240
  children: /* @__PURE__ */ p("table", { className: V.table, children: [
241
- /* @__PURE__ */ e("thead", { className: V.tableHeader, children: h.getHeaderGroups().map((v) => {
242
- var y, S;
241
+ /* @__PURE__ */ e("thead", { className: V.tableHeader, children: h.getHeaderGroups().map((w) => {
242
+ var v, S;
243
243
  return /* @__PURE__ */ p("tr", { children: [
244
244
  a && /* @__PURE__ */ e(
245
245
  "th",
@@ -249,16 +249,16 @@ function Io({
249
249
  t == null ? void 0 : t.firstHeaderCell
250
250
  ),
251
251
  children: /* @__PURE__ */ e(
252
- yt,
252
+ wt,
253
253
  {
254
254
  id: "selectAll",
255
- checked: (n == null ? void 0 : n.length) === ((S = (y = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : y.rows) == null ? void 0 : S.length),
256
- onChange: w
255
+ checked: (n == null ? void 0 : n.length) === ((S = (v = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : v.rows) == null ? void 0 : S.length),
256
+ onChange: y
257
257
  }
258
258
  )
259
259
  }
260
260
  ),
261
- v.headers.map((B, j) => {
261
+ w.headers.map((B, j) => {
262
262
  var g;
263
263
  const m = B.column.columnDef.meta;
264
264
  return /* @__PURE__ */ e(
@@ -268,17 +268,17 @@ function Io({
268
268
  className: o(
269
269
  V.headerCell,
270
270
  m == null ? void 0 : m.headerClass,
271
- B.index === v.headers.length - 1 && "rounded-r-[10px]",
271
+ B.index === w.headers.length - 1 && "rounded-r-[10px]",
272
272
  !a && j === 0 && V.firstHeaderCell
273
273
  ),
274
274
  onClick: () => (m == null ? void 0 : m.isSortable) && b(B.column.id),
275
275
  children: /* @__PURE__ */ p("div", { className: V.headerText, children: [
276
- pt(
276
+ ct(
277
277
  B.column.columnDef.header,
278
278
  B.getContext()
279
279
  ),
280
280
  (m == null ? void 0 : m.isSortable) && /* @__PURE__ */ e(
281
- sr,
281
+ vr,
282
282
  {
283
283
  className: o(
284
284
  V.sortIcon,
@@ -291,17 +291,17 @@ function Io({
291
291
  B.id
292
292
  );
293
293
  })
294
- ] }, v.id);
294
+ ] }, w.id);
295
295
  }) }),
296
- /* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((v) => {
296
+ /* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((w) => {
297
297
  var S;
298
- const y = (S = v.original) == null ? void 0 : S.id;
298
+ const v = (S = w.original) == null ? void 0 : S.id;
299
299
  return /* @__PURE__ */ p(
300
300
  "tr",
301
301
  {
302
302
  className: o(
303
303
  V.row,
304
- (n == null ? void 0 : n.includes(y)) && "bg-gray-50"
304
+ (n == null ? void 0 : n.includes(v)) && "bg-gray-50"
305
305
  ),
306
306
  children: [
307
307
  a && /* @__PURE__ */ e(
@@ -312,28 +312,28 @@ function Io({
312
312
  t == null ? void 0 : t.firstBodyCell
313
313
  ),
314
314
  children: /* @__PURE__ */ e(
315
- yt,
315
+ wt,
316
316
  {
317
- id: v.id,
318
- checked: n == null ? void 0 : n.includes(y),
319
- onChange: () => s(y)
317
+ id: w.id,
318
+ checked: n == null ? void 0 : n.includes(v),
319
+ onChange: () => s(v)
320
320
  }
321
321
  )
322
322
  }
323
323
  ),
324
- v.getVisibleCells().map((B, j, m) => {
324
+ w.getVisibleCells().map((B, j, m) => {
325
325
  const g = B.column.columnDef.meta;
326
326
  return /* @__PURE__ */ e(
327
327
  "td",
328
328
  {
329
329
  className: o(
330
330
  V.bodyCell,
331
- (n == null ? void 0 : n.includes(v.id)) && "font-bold",
331
+ (n == null ? void 0 : n.includes(w.id)) && "font-bold",
332
332
  j === m.length - 1 && "rounded-r-[10px]",
333
333
  !a && j === 0 && "px-8",
334
334
  g == null ? void 0 : g.cellClass
335
335
  ),
336
- children: pt(
336
+ children: ct(
337
337
  B.column.columnDef.cell,
338
338
  B.getContext()
339
339
  )
@@ -343,13 +343,13 @@ function Io({
343
343
  })
344
344
  ]
345
345
  },
346
- v.id
346
+ w.id
347
347
  );
348
348
  }) }),
349
- x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((v) => v.depth === 0).map((v) => /* @__PURE__ */ e("tr", { children: v.headers.map((y) => /* @__PURE__ */ e("td", { className: o(V.footerCell), children: pt(
350
- y.column.columnDef.footer,
351
- y.getContext()
352
- ) }, y.id)) }, v.id)) })
349
+ x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((w) => w.depth === 0).map((w) => /* @__PURE__ */ e("tr", { children: w.headers.map((v) => /* @__PURE__ */ e("td", { className: o(V.footerCell), children: ct(
350
+ v.column.columnDef.footer,
351
+ v.getContext()
352
+ ) }, v.id)) }, w.id)) })
353
353
  ] })
354
354
  }
355
355
  )
@@ -419,7 +419,7 @@ const wn = ({
419
419
  isLast: i,
420
420
  label: d,
421
421
  disabled: n
422
- }) => /* @__PURE__ */ p(mt, { children: [
422
+ }) => /* @__PURE__ */ p(vt, { children: [
423
423
  /* @__PURE__ */ e(vn, { children: /* @__PURE__ */ e(
424
424
  mn,
425
425
  {
@@ -497,23 +497,23 @@ const wn = ({
497
497
  setSelectedItems: a,
498
498
  classNames: f
499
499
  }, h) => {
500
- const [u, b] = F(""), [x, s] = F(!1), w = ue(null), v = ue(null);
501
- br(h, () => ({
500
+ const [u, b] = F(""), [x, s] = F(!1), y = ue(null), w = ue(null);
501
+ xr(h, () => ({
502
502
  open: () => s(!0),
503
503
  close: () => s(!1),
504
504
  toggle: () => s((g) => !g),
505
505
  focus: () => {
506
506
  var g;
507
- return (g = w.current) == null ? void 0 : g.focus();
507
+ return (g = y.current) == null ? void 0 : g.focus();
508
508
  }
509
509
  }), []);
510
- const y = (g) => {
510
+ const v = (g) => {
511
511
  var I;
512
512
  const C = i.find((T) => T.id === g);
513
- C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (I = w.current) == null || I.focus();
513
+ C && (a((T) => T.some((R) => R.id === g) ? T : [...T, C]), b("")), (I = y.current) == null || I.focus();
514
514
  }, S = (g, C) => {
515
515
  var I;
516
- C.stopPropagation(), a(c.filter((T) => T.id !== g)), (I = w.current) == null || I.focus();
516
+ C.stopPropagation(), a(c.filter((T) => T.id !== g)), (I = y.current) == null || I.focus();
517
517
  }, B = (g) => {
518
518
  b(g.target.value.toLowerCase());
519
519
  }, j = () => {
@@ -528,7 +528,7 @@ const wn = ({
528
528
  };
529
529
  i.push(I), b("");
530
530
  }
531
- (C = w.current) == null || C.focus();
531
+ (C = y.current) == null || C.focus();
532
532
  }, m = i.filter(
533
533
  (g) => g.label.toLowerCase().includes(u)
534
534
  );
@@ -543,7 +543,7 @@ const wn = ({
543
543
  open: x,
544
544
  onOpenChange: () => {
545
545
  var g;
546
- n || ((g = w.current) == null || g.focus(), s(!x));
546
+ n || ((g = y.current) == null || g.focus(), s(!x));
547
547
  },
548
548
  children: [
549
549
  /* @__PURE__ */ e(
@@ -616,10 +616,10 @@ const wn = ({
616
616
  ] })
617
617
  }
618
618
  ),
619
- /* @__PURE__ */ e("div", { ref: v, children: /* @__PURE__ */ p(
619
+ /* @__PURE__ */ e("div", { ref: w, children: /* @__PURE__ */ p(
620
620
  le,
621
621
  {
622
- container: v.current,
622
+ container: w.current,
623
623
  style: { minWidth: "var(--radix-popper-anchor-width)" },
624
624
  className: o(A.options),
625
625
  children: [
@@ -628,7 +628,7 @@ const wn = ({
628
628
  /* @__PURE__ */ e(
629
629
  "input",
630
630
  {
631
- ref: w,
631
+ ref: y,
632
632
  onChange: B,
633
633
  value: u,
634
634
  autoFocus: !0,
@@ -637,7 +637,7 @@ const wn = ({
637
637
  }
638
638
  ),
639
639
  /* @__PURE__ */ e(
640
- vr,
640
+ mr,
641
641
  {
642
642
  width: 20,
643
643
  height: 20,
@@ -648,12 +648,12 @@ const wn = ({
648
648
  )
649
649
  ] }),
650
650
  m.length > 0 ? m.map((g, C, I) => /* @__PURE__ */ e(
651
- or,
651
+ ir,
652
652
  {
653
653
  id: g.id.toString(),
654
654
  "data-testid": "menuitemcheckbox",
655
655
  checked: c.some((T) => T.id === g.id),
656
- onChange: () => y(g.id),
656
+ onChange: () => v(g.id),
657
657
  className: o(
658
658
  A.option,
659
659
  I.length - 1 !== C && "mb-2.5"
@@ -743,34 +743,34 @@ const wn = ({
743
743
  isSearchIcon: b = !0,
744
744
  isSearchResultDisabled: x = !0,
745
745
  classNames: s,
746
- ...w
747
- }, v) => {
748
- const [y, S] = F(r ?? []), [B, j] = F(l ?? []), [m, g] = F(!1), [C, I] = F(!1), T = cn(t, a);
746
+ ...y
747
+ }, w) => {
748
+ const [v, S] = F(r ?? []), [B, j] = F(l ?? []), [m, g] = F(!1), [C, I] = F(!1), T = cn(t, a);
749
749
  _e(() => {
750
750
  g(!!T), f == null || f(T);
751
751
  }, [T, f]);
752
- const W = ee.base, R = ee.hover, U = ee.focus, { focusWithin: Ce } = ee, at = ee.disabled, xe = ee.input, M = ee.button, q = ee.filterIcon, re = ee.dropdown, J = ee.popover, Wt = ee.emptyPopover, cr = (ce, ge, Oe) => {
753
- const fe = (fr = []) => fr.map(
754
- (ct) => ct.id === ge.id && ge.label === ge.label ? { ...ct, checked: Oe } : ct
755
- ), lt = ce === "status" ? fe(y) : y, ur = ce === "module" ? fe(B) : B;
756
- S(lt), j(ur);
757
- }, pr = () => {
752
+ const W = ee.base, R = ee.hover, U = ee.focus, { focusWithin: Ce } = ee, dt = ee.disabled, xe = ee.input, M = ee.button, q = ee.filterIcon, re = ee.dropdown, J = ee.popover, Wt = ee.emptyPopover, pr = (ce, ge, Oe) => {
753
+ const fe = (br = []) => br.map(
754
+ (lt) => lt.id === ge.id && ge.label === ge.label ? { ...lt, checked: Oe } : lt
755
+ ), at = ce === "status" ? fe(v) : v, fr = ce === "module" ? fe(B) : B;
756
+ S(at), j(fr);
757
+ }, hr = () => {
758
758
  c && c({
759
- status: y,
759
+ status: v,
760
760
  module: B
761
761
  }), I(!1);
762
- }, hr = (ce) => {
762
+ }, ur = (ce) => {
763
763
  u == null || u(ce), g(!1);
764
- }, Mt = ({ type: ce, title: ge, items: Oe }) => /* @__PURE__ */ p(xr, { children: [
764
+ }, Mt = ({ type: ce, title: ge, items: Oe }) => /* @__PURE__ */ p(gr, { children: [
765
765
  /* @__PURE__ */ e(k, { className: re.typeFilter, children: ge }),
766
766
  Oe == null ? void 0 : Oe.map((fe) => /* @__PURE__ */ e(
767
- or,
767
+ ir,
768
768
  {
769
769
  id: fe.id,
770
770
  label: fe.label,
771
771
  checked: fe.checked,
772
772
  className: "mt-2.5",
773
- onChange: (lt) => cr(ce, fe, lt.target.checked)
773
+ onChange: (at) => pr(ce, fe, at.target.checked)
774
774
  },
775
775
  fe.id
776
776
  ))
@@ -783,12 +783,12 @@ const wn = ({
783
783
  !d && Ce,
784
784
  (C || m) && !d && U,
785
785
  !(C || m) && !d && R,
786
- d && at,
786
+ d && dt,
787
787
  s == null ? void 0 : s.base
788
788
  ),
789
789
  children: [
790
- /* @__PURE__ */ p(rt, { open: C, onOpenChange: I, children: [
791
- /* @__PURE__ */ e(nt, { asChild: !0, disabled: d, children: n && /* @__PURE__ */ e(
790
+ /* @__PURE__ */ p(tt, { open: C, onOpenChange: I, children: [
791
+ /* @__PURE__ */ e(rt, { asChild: !0, disabled: d, children: n && /* @__PURE__ */ e(
792
792
  "button",
793
793
  {
794
794
  role: "button",
@@ -812,7 +812,7 @@ const wn = ({
812
812
  }
813
813
  ) }),
814
814
  /* @__PURE__ */ p(
815
- ot,
815
+ nt,
816
816
  {
817
817
  className: o(re.content, s == null ? void 0 : s.dropdown),
818
818
  align: "start",
@@ -822,7 +822,7 @@ const wn = ({
822
822
  children: [
823
823
  /* @__PURE__ */ p("div", { className: re.wrapperByStatus, children: [
824
824
  /* @__PURE__ */ e(k, { className: re.title, children: "Поиск по фильтру" }),
825
- /* @__PURE__ */ e(Mt, { type: "status", title: "Статус", items: y })
825
+ /* @__PURE__ */ e(Mt, { type: "status", title: "Статус", items: v })
826
826
  ] }),
827
827
  /* @__PURE__ */ e("div", { className: re.wrapperByModule, children: /* @__PURE__ */ e(Mt, { type: "module", title: "Модуль", items: B }) }),
828
828
  /* @__PURE__ */ p("div", { className: M.parent, children: [
@@ -838,7 +838,7 @@ const wn = ({
838
838
  /* @__PURE__ */ e(
839
839
  _,
840
840
  {
841
- onClick: pr,
841
+ onClick: hr,
842
842
  className: o(M.base, M.save),
843
843
  children: "Сохранить"
844
844
  }
@@ -854,14 +854,14 @@ const wn = ({
854
854
  "input",
855
855
  {
856
856
  role: "searchbox",
857
- ref: v,
857
+ ref: w,
858
858
  value: t,
859
859
  type: "text",
860
860
  placeholder: "Поиск",
861
861
  onChange: i,
862
862
  className: o(xe.base, s == null ? void 0 : s.input),
863
863
  disabled: d,
864
- ...w
864
+ ...y
865
865
  }
866
866
  ),
867
867
  b && /* @__PURE__ */ e(
@@ -898,7 +898,7 @@ const wn = ({
898
898
  children: h == null ? void 0 : h.map((ce, ge) => /* @__PURE__ */ e(
899
899
  k,
900
900
  {
901
- onClick: () => hr(ce),
901
+ onClick: () => ur(ce),
902
902
  className: J.item,
903
903
  children: ce
904
904
  },
@@ -1014,10 +1014,10 @@ const wn = ({
1014
1014
  jobTitle: "text-xs text-dark-40/50 font-medium",
1015
1015
  subText: "text-xs text-dark-40/50 font-normal"
1016
1016
  }, Tn = ({ file: t, onClick: i }) => /* @__PURE__ */ p("li", { className: "flex items-center bg-white px-2 py-1.5 border border-dark-30/[.15] rounded-lg w-[112px] justify-between", children: [
1017
- /* @__PURE__ */ e(mr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
1017
+ /* @__PURE__ */ e(wr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
1018
1018
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
1019
1019
  /* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
1020
- /* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: Ct(t.size) })
1020
+ /* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: kt(t.size) })
1021
1021
  ] }),
1022
1022
  /* @__PURE__ */ e(
1023
1023
  Ye,
@@ -1029,7 +1029,7 @@ const wn = ({
1029
1029
  viewBox: "0 0 20 20"
1030
1030
  }
1031
1031
  )
1032
- ] }), { Root: Sn } = er, Fo = $.forwardRef(
1032
+ ] }), { Root: Sn } = tr, Fo = $.forwardRef(
1033
1033
  ({
1034
1034
  id: t,
1035
1035
  files: i = [],
@@ -1043,13 +1043,13 @@ const wn = ({
1043
1043
  disabled: h = !1,
1044
1044
  ...u
1045
1045
  }, b) => {
1046
- const [x, s] = $.useState(!1), w = $.useRef(null), v = ve.root, y = ve.input, S = ve.icon, B = ve.placeholder, j = ve.list, m = ve.status, g = () => {
1046
+ const [x, s] = $.useState(!1), y = $.useRef(null), w = ve.root, v = ve.input, S = ve.icon, B = ve.placeholder, j = ve.list, m = ve.status, g = () => {
1047
1047
  var I;
1048
- h || (s(!0), (I = w.current) == null || I.click());
1048
+ h || (s(!0), (I = y.current) == null || I.click());
1049
1049
  }, C = () => {
1050
1050
  s(!1);
1051
1051
  };
1052
- return /* @__PURE__ */ p("div", { className: o(v, a == null ? void 0 : a.root), children: [
1052
+ return /* @__PURE__ */ p("div", { className: o(w, a == null ? void 0 : a.root), children: [
1053
1053
  /* @__PURE__ */ p("div", { className: ve.label.wrapper, children: [
1054
1054
  !!d && /* @__PURE__ */ e(
1055
1055
  P,
@@ -1071,9 +1071,9 @@ const wn = ({
1071
1071
  onPressedChange: s,
1072
1072
  onBlur: C,
1073
1073
  className: o(
1074
- y.base,
1075
- !h && y.pressed,
1076
- !h && y.hover,
1074
+ v.base,
1075
+ !h && v.pressed,
1076
+ !h && v.hover,
1077
1077
  !h && !!f && m.danger,
1078
1078
  a == null ? void 0 : a.input,
1079
1079
  {
@@ -1084,7 +1084,7 @@ const wn = ({
1084
1084
  /* @__PURE__ */ e(
1085
1085
  "input",
1086
1086
  {
1087
- ref: w,
1087
+ ref: y,
1088
1088
  id: "file-upload",
1089
1089
  role: "file-input",
1090
1090
  type: "file",
@@ -1106,7 +1106,7 @@ const wn = ({
1106
1106
  I.id
1107
1107
  )) }) : /* @__PURE__ */ p($.Fragment, { children: [
1108
1108
  /* @__PURE__ */ e(
1109
- wr,
1109
+ yr,
1110
1110
  {
1111
1111
  "data-testid": "file-upload-icon",
1112
1112
  width: 16,
@@ -1159,7 +1159,7 @@ const wn = ({
1159
1159
  }
1160
1160
  )),
1161
1161
  t.map(
1162
- ({ id: a, avatarSrc: f, fullName: h, role: u, comment: b, date: x, time: s, stars: w = 0 }) => /* @__PURE__ */ p("div", { className: z.wrapper, children: [
1162
+ ({ id: a, avatarSrc: f, fullName: h, role: u, comment: b, date: x, time: s, stars: y = 0 }) => /* @__PURE__ */ p("div", { className: z.wrapper, children: [
1163
1163
  /* @__PURE__ */ e(
1164
1164
  jt,
1165
1165
  {
@@ -1198,9 +1198,9 @@ const wn = ({
1198
1198
  ),
1199
1199
  children: [
1200
1200
  c && /* @__PURE__ */ e(
1201
- ar,
1201
+ lr,
1202
1202
  {
1203
- rating: w,
1203
+ rating: y,
1204
1204
  classNames: {
1205
1205
  root: "gap-2.5",
1206
1206
  rating: "text-sm font-semibold"
@@ -1214,7 +1214,7 @@ const wn = ({
1214
1214
  s
1215
1215
  ] }),
1216
1216
  l && /* @__PURE__ */ e(
1217
- Tt,
1217
+ Ct,
1218
1218
  {
1219
1219
  icon: Gr,
1220
1220
  shape: "circle",
@@ -1274,7 +1274,7 @@ const wn = ({
1274
1274
  button: "border-none shadow-none p-0 absolute right-3 bottom-1.5",
1275
1275
  icon: "fill-sidebar-50/50"
1276
1276
  }
1277
- }, ft = (t) => {
1277
+ }, ut = (t) => {
1278
1278
  const i = t.getDate().toString().padStart(2, "0"), d = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getFullYear();
1279
1279
  return `${i}/${d}/${n}`;
1280
1280
  }, Bn = (t) => {
@@ -1355,14 +1355,14 @@ const wn = ({
1355
1355
  const [a, f] = F(!1), [h, u] = F(
1356
1356
  t ? new Date(t) : /* @__PURE__ */ new Date()
1357
1357
  ), [b, x] = F(
1358
- t ? ft(new Date(t)) : ""
1358
+ t ? ut(new Date(t)) : ""
1359
1359
  );
1360
1360
  _e(() => {
1361
- t ? (x(ft(new Date(t))), u(new Date(t))) : x("");
1361
+ t ? (x(ut(new Date(t))), u(new Date(t))) : x("");
1362
1362
  }, [t]);
1363
- const s = ue(null), w = ue(null), v = (g) => {
1364
- i(g.toISOString()), x(ft(g)), f(!1);
1365
- }, y = (g) => {
1363
+ const s = ue(null), y = ue(null), w = (g) => {
1364
+ i(g.toISOString()), x(ut(g)), f(!1);
1365
+ }, v = (g) => {
1366
1366
  let C = g.target.value.replace(/\D/g, "");
1367
1367
  if (C.length >= 3 && C.length <= 4 ? C = `${C.slice(0, 2)}/${C.slice(2)}` : C.length > 4 && (C = `${C.slice(0, 2)}/${C.slice(2, 4)}/${C.slice(4, 8)}`), C.length > 10 && (C = C.slice(0, 10)), x(C), !C || C.trim() === "") {
1368
1368
  i(void 0);
@@ -1414,7 +1414,7 @@ const wn = ({
1414
1414
  {
1415
1415
  type: "text",
1416
1416
  value: b,
1417
- onChange: y,
1417
+ onChange: v,
1418
1418
  placeholder: "__ / __ / ____",
1419
1419
  disabled: n,
1420
1420
  className: o(
@@ -1443,7 +1443,7 @@ const wn = ({
1443
1443
  n && D.calendarButton.disabled
1444
1444
  ),
1445
1445
  children: /* @__PURE__ */ e(
1446
- Pt,
1446
+ Nt,
1447
1447
  {
1448
1448
  width: 18,
1449
1449
  height: 18,
@@ -1462,12 +1462,12 @@ const wn = ({
1462
1462
  ] })
1463
1463
  }
1464
1464
  ),
1465
- /* @__PURE__ */ e("div", { ref: w, className: "relative z-50", children: /* @__PURE__ */ e(
1465
+ /* @__PURE__ */ e("div", { ref: y, className: "relative z-50", children: /* @__PURE__ */ e(
1466
1466
  le,
1467
1467
  {
1468
1468
  role: "dialog",
1469
1469
  ref: s,
1470
- container: w.current,
1470
+ container: y.current,
1471
1471
  className: D.popoverWrapper,
1472
1472
  children: /* @__PURE__ */ p("div", { children: [
1473
1473
  /* @__PURE__ */ p("div", { className: D.navigation, children: [
@@ -1536,7 +1536,7 @@ const wn = ({
1536
1536
  )
1537
1537
  ] }),
1538
1538
  /* @__PURE__ */ e("div", { className: D.weekHeader, children: _n.map((g) => /* @__PURE__ */ e("div", { className: D.weekDay, children: g }, g)) }),
1539
- /* @__PURE__ */ e("div", { className: D.calendar, children: An(v, c, h, t) }),
1539
+ /* @__PURE__ */ e("div", { className: D.calendar, children: An(w, c, h, t) }),
1540
1540
  /* @__PURE__ */ e("div", { className: D.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: m, className: D.resetButton, children: "Сбросить" }) })
1541
1541
  ] })
1542
1542
  }
@@ -1613,16 +1613,16 @@ const wn = ({
1613
1613
  disabled: r = !1,
1614
1614
  classNames: l
1615
1615
  }) => {
1616
- const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s = nr({
1616
+ const c = $.useId(), [a, f] = $.useState(/* @__PURE__ */ new Date()), [h, u] = $.useState(""), [b, x] = $.useState(!1), s = or({
1617
1617
  mask: "__/__/____ - __/__/____",
1618
1618
  replacement: { _: /\d/ }
1619
- }), w = $.useRef(null), v = $.useRef(!1);
1619
+ }), y = $.useRef(null), w = $.useRef(!1);
1620
1620
  $.useEffect(() => {
1621
- if (v.current || !t || !(t.to && t.from)) return;
1621
+ if (w.current || !t || !(t.to && t.from)) return;
1622
1622
  const m = t.from ? Q(new Date(t.from), K) : "", g = t.to ? Q(new Date(t.to), K) : "";
1623
1623
  u(g ? `${m} - ${g}` : `${m} - `);
1624
1624
  }, [t]);
1625
- const y = Rn.base, S = (m) => {
1625
+ const v = Rn.base, S = (m) => {
1626
1626
  if (!m)
1627
1627
  u(""), i(void 0);
1628
1628
  else if (m.from && !m.to)
@@ -1638,15 +1638,15 @@ const wn = ({
1638
1638
  Q(new Date(m.from), K) + " - " + Q(new Date(m.to), K)
1639
1639
  );
1640
1640
  }, B = (m) => {
1641
- v.current = !0;
1641
+ w.current = !0;
1642
1642
  const { value: g } = m.target, [C, I] = g.split("-").map((R) => R.trim());
1643
1643
  u(g);
1644
- const T = kt(C, K, /* @__PURE__ */ new Date()), W = I ? kt(I, K, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
1644
+ const T = yt(C, K, /* @__PURE__ */ new Date()), W = I ? yt(I, K, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
1645
1645
  We(T) && We(W) ? i({ from: T, to: W }) : We(T) && !We(W) ? i({ from: T, to: void 0 }) : i({ from: void 0, to: void 0 });
1646
1646
  }, j = () => {
1647
1647
  u(""), i(void 0), f(/* @__PURE__ */ new Date());
1648
1648
  };
1649
- return /* @__PURE__ */ e("div", { className: o(y.wrapper, l == null ? void 0 : l.wrapper), children: /* @__PURE__ */ p(de, { open: b, onOpenChange: x, children: [
1649
+ return /* @__PURE__ */ e("div", { className: o(v.wrapper, l == null ? void 0 : l.wrapper), children: /* @__PURE__ */ p(de, { open: b, onOpenChange: x, children: [
1650
1650
  /* @__PURE__ */ e(ae, { asChild: !0, role: "trigger", className: l == null ? void 0 : l.trigger, children: /* @__PURE__ */ e(
1651
1651
  It,
1652
1652
  {
@@ -1661,11 +1661,11 @@ const wn = ({
1661
1661
  placeholder: "dd/mm/yyyy - dd/mm/yyyy",
1662
1662
  status: n,
1663
1663
  classNames: {
1664
- target: o(y.input, l == null ? void 0 : l.input)
1664
+ target: o(v.input, l == null ? void 0 : l.input)
1665
1665
  },
1666
1666
  disabled: r
1667
1667
  },
1668
- icon: Pt,
1668
+ icon: Nt,
1669
1669
  onIconClick: () => x(!0),
1670
1670
  iconProps: {
1671
1671
  width: 18,
@@ -1677,21 +1677,21 @@ const wn = ({
1677
1677
  }
1678
1678
  }
1679
1679
  ) }),
1680
- /* @__PURE__ */ e("div", { ref: w, className: "relative z-50", children: /* @__PURE__ */ p(
1680
+ /* @__PURE__ */ e("div", { ref: y, className: "relative z-50", children: /* @__PURE__ */ p(
1681
1681
  le,
1682
1682
  {
1683
1683
  role: "dialog",
1684
1684
  style: { borderRadius: 5 },
1685
1685
  side: "bottom",
1686
1686
  align: "start",
1687
- container: w.current,
1688
- className: o(y.content, l == null ? void 0 : l.content),
1687
+ container: y.current,
1688
+ className: o(v.content, l == null ? void 0 : l.content),
1689
1689
  children: [
1690
1690
  /* @__PURE__ */ e(
1691
1691
  xn,
1692
1692
  {
1693
1693
  month: a,
1694
- locale: ut,
1694
+ locale: ht,
1695
1695
  onMonthChange: f,
1696
1696
  mode: "range",
1697
1697
  numberOfMonths: 2,
@@ -1725,7 +1725,7 @@ const wn = ({
1725
1725
  to: void 0
1726
1726
  });
1727
1727
  },
1728
- className: y.selectButton,
1728
+ className: v.selectButton,
1729
1729
  children: /* @__PURE__ */ e(
1730
1730
  "div",
1731
1731
  {
@@ -1775,10 +1775,10 @@ const wn = ({
1775
1775
  ) })
1776
1776
  }
1777
1777
  ),
1778
- /* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Q(R, "MMMM yyyy", { locale: ut }) }) })
1778
+ /* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Q(R, "MMMM yyyy", { locale: ht }) }) })
1779
1779
  ] }),
1780
1780
  /* @__PURE__ */ p("div", { className: "flex items-center w-1/2", children: [
1781
- /* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Q(U, "MMMM yyyy", { locale: ut }) }) }),
1781
+ /* @__PURE__ */ e("div", { className: "w-full flex-1 flex items-center justify-center", children: /* @__PURE__ */ e(k, { className: "text-base text-dark-40 font-semibold font-mono", children: Q(U, "MMMM yyyy", { locale: ht }) }) }),
1782
1782
  /* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1783
1783
  Gt,
1784
1784
  {
@@ -1803,7 +1803,7 @@ const wn = ({
1803
1803
  type: "button",
1804
1804
  onClick: j,
1805
1805
  classNames: {
1806
- base: y.resetButton
1806
+ base: v.resetButton
1807
1807
  },
1808
1808
  children: "Сбросить"
1809
1809
  }
@@ -1835,61 +1835,62 @@ const wn = ({
1835
1835
  align: c = "start",
1836
1836
  classNames: a
1837
1837
  }) => {
1838
- const [f, h] = $.useState(), [u] = St(), b = (v, y) => {
1839
- v.preventDefault(), h(y);
1840
- }, x = Ft.modal, s = x.item, w = Ft.text;
1841
- return /* @__PURE__ */ p(rt, { open: n, onOpenChange: r, children: [
1838
+ const [f, h] = $.useState(), [u] = Tt(), b = Xt(), x = (v) => {
1839
+ h(v), b(`${i}/${v.to}?${u.toString()}`);
1840
+ }, s = Ft.modal, y = s.item, w = Ft.text;
1841
+ return /* @__PURE__ */ p(tt, { open: n, onOpenChange: r, children: [
1842
1842
  /* @__PURE__ */ e(
1843
- nt,
1843
+ rt,
1844
1844
  {
1845
1845
  asChild: !0,
1846
- className: o(x.trigger, a == null ? void 0 : a.trigger),
1846
+ className: o(s.trigger, a == null ? void 0 : a.trigger),
1847
1847
  children: t
1848
1848
  }
1849
1849
  ),
1850
1850
  /* @__PURE__ */ e(
1851
- ot,
1851
+ nt,
1852
1852
  {
1853
1853
  side: l,
1854
1854
  align: c,
1855
- className: o(x.content, a == null ? void 0 : a.content),
1856
- children: d == null ? void 0 : d.map((v) => /* @__PURE__ */ e(
1857
- tt,
1858
- {
1859
- role: "link",
1860
- to: `${i}/${v.to}?${u.toString()}`,
1861
- className: o(
1862
- "p-2",
1863
- (f == null ? void 0 : f.id) === v.id && s.active,
1864
- (f == null ? void 0 : f.id) === v.id && (a == null ? void 0 : a.item)
1865
- ),
1866
- children: /* @__PURE__ */ p(
1867
- Dt,
1868
- {
1869
- onClick: (y) => b(y, v),
1870
- className: o(
1871
- w.base,
1872
- (f == null ? void 0 : f.id) === v.id && "font-bold",
1873
- (f == null ? void 0 : f.id) === v.id && (a == null ? void 0 : a.text)
1874
- ),
1875
- children: [
1876
- /* @__PURE__ */ e(
1877
- "span",
1878
- {
1879
- className: o(
1880
- w.dot,
1881
- (f == null ? void 0 : f.id) === v.id && "bg-primary-10",
1882
- a == null ? void 0 : a.dot
1883
- )
1884
- }
1855
+ className: o(s.content, a == null ? void 0 : a.content),
1856
+ children: d == null ? void 0 : d.map((v) => {
1857
+ const S = (f == null ? void 0 : f.id) === v.id;
1858
+ return /* @__PURE__ */ e(
1859
+ "div",
1860
+ {
1861
+ className: o(
1862
+ "p-2",
1863
+ S && y.active,
1864
+ S && (a == null ? void 0 : a.item)
1865
+ ),
1866
+ children: /* @__PURE__ */ p(
1867
+ Dt,
1868
+ {
1869
+ onClick: () => x(v),
1870
+ className: o(
1871
+ w.base,
1872
+ S && "font-bold",
1873
+ S && (a == null ? void 0 : a.text)
1885
1874
  ),
1886
- v.label
1887
- ]
1888
- }
1889
- )
1890
- },
1891
- v.id
1892
- ))
1875
+ children: [
1876
+ /* @__PURE__ */ e(
1877
+ "span",
1878
+ {
1879
+ className: o(
1880
+ w.dot,
1881
+ S && "bg-primary-10",
1882
+ a == null ? void 0 : a.dot
1883
+ )
1884
+ }
1885
+ ),
1886
+ /* @__PURE__ */ e("span", { children: v.label })
1887
+ ]
1888
+ }
1889
+ )
1890
+ },
1891
+ v.id
1892
+ );
1893
+ })
1893
1894
  }
1894
1895
  )
1895
1896
  ] });
@@ -1914,7 +1915,7 @@ const wn = ({
1914
1915
  classNames: l
1915
1916
  }) => /* @__PURE__ */ p("div", { className: o(Y.wrapper, l == null ? void 0 : l.wrapper), children: [
1916
1917
  t && /* @__PURE__ */ p("div", { className: Y.header, children: [
1917
- /* @__PURE__ */ e(yr, { className: Y.headerIcon, role: "img" }),
1918
+ /* @__PURE__ */ e(kr, { className: Y.headerIcon, role: "img" }),
1918
1919
  /* @__PURE__ */ p(k, { variant: "p", className: Y.headerText, children: [
1919
1920
  t,
1920
1921
  "(",
@@ -1962,7 +1963,7 @@ const wn = ({
1962
1963
  /* @__PURE__ */ e(Ut, { className: Y.fileIcon, role: "img" }),
1963
1964
  /* @__PURE__ */ p("div", { children: [
1964
1965
  /* @__PURE__ */ e(k, { variant: "p", className: Y.fileText, children: c.name }),
1965
- /* @__PURE__ */ e(k, { variant: "p", className: Y.fileSize, children: Ct(c.size) })
1966
+ /* @__PURE__ */ e(k, { variant: "p", className: Y.fileSize, children: kt(c.size) })
1966
1967
  ] }),
1967
1968
  /* @__PURE__ */ e(
1968
1969
  Ue,
@@ -1970,8 +1971,9 @@ const wn = ({
1970
1971
  href: c.downloadUrl ?? "#",
1971
1972
  isIconVisible: !1,
1972
1973
  classNames: { root: "p-0" },
1974
+ target: "_blank",
1973
1975
  children: /* @__PURE__ */ e(
1974
- tr,
1976
+ rr,
1975
1977
  {
1976
1978
  "data-testid": "download-icon",
1977
1979
  className: Y.icon,
@@ -1999,7 +2001,7 @@ const wn = ({
1999
2001
  htmlFor: "file-upload",
2000
2002
  className: o(Y.target, l == null ? void 0 : l.target),
2001
2003
  children: [
2002
- /* @__PURE__ */ e(kr, { className: Y.plusIcon, role: "img" }),
2004
+ /* @__PURE__ */ e(Cr, { className: Y.plusIcon, role: "img" }),
2003
2005
  /* @__PURE__ */ e(
2004
2006
  "input",
2005
2007
  {
@@ -2032,9 +2034,9 @@ const wn = ({
2032
2034
  image: "w-full rounded-[10px] object-cover border box-border transition-all duration-300 group-hover:brightness-50",
2033
2035
  imageText: "max-w-[70px] truncate text-xs underline text-info-10 font-medium focus:border-none p-0",
2034
2036
  closeIcon: "absolute top-6 left-6 opacity-0 group-hover:opacity-100 group-hover:animate-slide-up animate-slide-down transition-opacity cursor-pointer fill-dark-20/60 bg-sidebar-10/80 rounded-full",
2035
- fileWrapper: "flex items-center gap-2 max-w-[220px] h-[72px] px-3 py-2 justify-start border border-dark-30/[.30] rounded-[10px]",
2037
+ fileWrapper: "flex items-center gap-1.5 w-[194px] h-[72px] px-3 py-2 justify-start border border-dark-30/[.30] rounded-[10px]",
2036
2038
  fileIcon: "text-dark-40/[.30]",
2037
- fileText: "max-w-[100px] truncate text-sm text-dark-[.30] font-medium",
2039
+ fileText: "w-[80px] truncate text-sm text-dark-[.30] font-medium",
2038
2040
  fileSize: "text-sm text-dark-30/[.30] font-medium",
2039
2041
  icon: "fill-dark-20/60 cursor-pointer",
2040
2042
  target: "flex items-center justify-center border border-dark-30/[.30] rounded-[10px]",
@@ -2051,23 +2053,23 @@ const wn = ({
2051
2053
  icon: c,
2052
2054
  iconSizes: a
2053
2055
  }) => {
2054
- const [f, h] = F(!1), b = Nt(n)(l), x = bt.base, s = bt.disabled.trigger, w = bt.disabled.triggerText, v = ({
2055
- className: y,
2056
+ const [f, h] = F(!1), b = er(n)(l), x = ft.base, s = ft.disabled.trigger, y = ft.disabled.triggerText, w = ({
2057
+ className: v,
2056
2058
  text: S = ""
2057
2059
  }) => /* @__PURE__ */ e(
2058
2060
  k,
2059
2061
  {
2060
2062
  className: o(
2061
2063
  x.placeholder,
2062
- y,
2063
- i && w
2064
+ v,
2065
+ i && y
2064
2066
  ),
2065
2067
  children: S
2066
2068
  }
2067
2069
  );
2068
- return /* @__PURE__ */ p(rt, { open: f, onOpenChange: h, children: [
2070
+ return /* @__PURE__ */ p(tt, { open: f, onOpenChange: h, children: [
2069
2071
  /* @__PURE__ */ p(
2070
- nt,
2072
+ rt,
2071
2073
  {
2072
2074
  role: "listbox",
2073
2075
  disabled: i,
@@ -2085,16 +2087,16 @@ const wn = ({
2085
2087
  viewBox: a == null ? void 0 : a.viewBox,
2086
2088
  className: o(x.icon, t == null ? void 0 : t.icon)
2087
2089
  }
2088
- ) : /* @__PURE__ */ e(v, { text: "Сортировать:", className: x.label }),
2090
+ ) : /* @__PURE__ */ e(w, { text: "Сортировать:", className: x.label }),
2089
2091
  l ? /* @__PURE__ */ e(
2090
- v,
2092
+ w,
2091
2093
  {
2092
2094
  "data-testid": "dropdown-selected-option",
2093
2095
  text: b == null ? void 0 : b.label,
2094
2096
  className: o(x.selected, t == null ? void 0 : t.selected)
2095
2097
  }
2096
2098
  ) : /* @__PURE__ */ e(
2097
- v,
2099
+ w,
2098
2100
  {
2099
2101
  text: r,
2100
2102
  className: o(x.placeholder, t == null ? void 0 : t.placeholder)
@@ -2107,43 +2109,43 @@ const wn = ({
2107
2109
  x.dropdownIcon,
2108
2110
  f && "rotate-180 transition-transform"
2109
2111
  ),
2110
- children: /* @__PURE__ */ e(Cr, { className: "fill-dark-30" })
2112
+ children: /* @__PURE__ */ e(Tr, { className: "fill-dark-30" })
2111
2113
  }
2112
2114
  )
2113
2115
  ]
2114
2116
  }
2115
2117
  ),
2116
2118
  /* @__PURE__ */ e(
2117
- ot,
2119
+ nt,
2118
2120
  {
2119
2121
  className: o(x.content, t == null ? void 0 : t.content),
2120
2122
  align: "end",
2121
2123
  sideOffset: 1,
2122
- children: n && (n == null ? void 0 : n.map((y) => /* @__PURE__ */ e(
2124
+ children: n && (n == null ? void 0 : n.map((v) => /* @__PURE__ */ e(
2123
2125
  Dt,
2124
2126
  {
2125
2127
  className: x.items,
2126
2128
  onClick: (S) => {
2127
- S.stopPropagation(), d(y.value), h(!1);
2129
+ S.stopPropagation(), d(v.value), h(!1);
2128
2130
  },
2129
2131
  children: /* @__PURE__ */ e(
2130
2132
  k,
2131
2133
  {
2132
2134
  className: o(
2133
2135
  x.item,
2134
- l === y.value && "before:bg-dark-10",
2135
- l === y.value ? "font-semibold" : "font-regular"
2136
+ l === v.value && "before:bg-dark-10",
2137
+ l === v.value ? "font-semibold" : "font-regular"
2136
2138
  ),
2137
- children: y.label
2139
+ children: v.label
2138
2140
  }
2139
2141
  )
2140
2142
  },
2141
- y.value
2143
+ v.value
2142
2144
  )))
2143
2145
  }
2144
2146
  )
2145
2147
  ] });
2146
- }, bt = {
2148
+ }, ft = {
2147
2149
  base: {
2148
2150
  content: "border border rounded-[10px] shadow-lg p-2.5",
2149
2151
  dropdownIcon: "rounded-[5px] size-3 flex items-center justify-center ml-[7px]",
@@ -2310,7 +2312,7 @@ const wn = ({
2310
2312
  d == null ? void 0 : d.button
2311
2313
  ),
2312
2314
  children: /* @__PURE__ */ e(
2313
- Tr,
2315
+ Sr,
2314
2316
  {
2315
2317
  width: n == null ? void 0 : n.width,
2316
2318
  height: n == null ? void 0 : n.height,
@@ -2343,7 +2345,7 @@ const wn = ({
2343
2345
  hover: "group-hover:text-primary-20",
2344
2346
  disabled: "text-dark-30/[.25] group-hover:text-dark-30/[.25] hover:cursor-default"
2345
2347
  }
2346
- }, ir = Z(
2348
+ }, dr = Z(
2347
2349
  ({ checked: t, classNames: i, disabled: d, label: n, ...r }, l) => /* @__PURE__ */ p("div", { className: o(me.wrapper, i == null ? void 0 : i.wrapper), children: [
2348
2350
  /* @__PURE__ */ e(
2349
2351
  qt,
@@ -2374,7 +2376,7 @@ const wn = ({
2374
2376
  )
2375
2377
  ] })
2376
2378
  );
2377
- ir.displayName = "RadioGroup";
2379
+ dr.displayName = "RadioGroup";
2378
2380
  const Yn = ({
2379
2381
  openDropdown: t,
2380
2382
  setOpenDropdown: i,
@@ -2382,7 +2384,7 @@ const Yn = ({
2382
2384
  item: { id: n, label: r, icon: l, to: c, subItems: a },
2383
2385
  onSubNavClick: f
2384
2386
  }) => {
2385
- const [h] = St();
2387
+ const [h] = Tt();
2386
2388
  return /* @__PURE__ */ e(Vr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Qr, { value: String(n), children: [
2387
2389
  /* @__PURE__ */ p(
2388
2390
  qr,
@@ -2434,7 +2436,7 @@ const Yn = ({
2434
2436
  }
2435
2437
  ),
2436
2438
  d && /* @__PURE__ */ e(Xr, { className: "flex flex-col items-start", children: a == null ? void 0 : a.map((u) => /* @__PURE__ */ e(
2437
- tt,
2439
+ St,
2438
2440
  {
2439
2441
  to: `${c}/${u == null ? void 0 : u.to}?${h.toString()}`,
2440
2442
  onClick: f,
@@ -2469,7 +2471,7 @@ const Yn = ({
2469
2471
  {
2470
2472
  className: o(f.base, t && f.expanded),
2471
2473
  children: [
2472
- /* @__PURE__ */ e(tt, { role: "link", to: "/", children: t ? /* @__PURE__ */ e($r, {}) : /* @__PURE__ */ e(pn, {}) }),
2474
+ /* @__PURE__ */ e(St, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Rr, {}) : /* @__PURE__ */ e(pn, {}) }),
2473
2475
  /* @__PURE__ */ e(
2474
2476
  _,
2475
2477
  {
@@ -2571,7 +2573,7 @@ const Yn = ({
2571
2573
  children: i.label
2572
2574
  }
2573
2575
  ) }),
2574
- r && /* @__PURE__ */ e(k, { className: xt.error, children: "Введите все языки" }),
2576
+ r && /* @__PURE__ */ e(k, { className: bt.error, children: "Введите все языки" }),
2575
2577
  /* @__PURE__ */ e(
2576
2578
  le,
2577
2579
  {
@@ -2579,11 +2581,11 @@ const Yn = ({
2579
2581
  align: "center",
2580
2582
  sideOffset: 4,
2581
2583
  side: "bottom",
2582
- className: o(xt.root, n == null ? void 0 : n.content),
2583
- children: /* @__PURE__ */ e("div", { className: o(xt.optionsWrapper), children: t.map((h) => {
2584
+ className: o(bt.root, n == null ? void 0 : n.content),
2585
+ children: /* @__PURE__ */ e("div", { className: o(bt.optionsWrapper), children: t.map((h) => {
2584
2586
  const u = `radio-${h.value}`;
2585
2587
  return /* @__PURE__ */ e(
2586
- ir,
2588
+ dr,
2587
2589
  {
2588
2590
  id: u,
2589
2591
  checked: h.value === (i == null ? void 0 : i.value),
@@ -2598,7 +2600,7 @@ const Yn = ({
2598
2600
  ] })
2599
2601
  }
2600
2602
  );
2601
- }, xt = {
2603
+ }, bt = {
2602
2604
  root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
2603
2605
  optionsWrapper: "flex flex-col gap-3.5",
2604
2606
  error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
@@ -2666,7 +2668,7 @@ const Uo = ({
2666
2668
  )
2667
2669
  },
2668
2670
  children: /* @__PURE__ */ e(
2669
- Rr,
2671
+ Lr,
2670
2672
  {
2671
2673
  width: 28,
2672
2674
  height: 28,
@@ -2782,16 +2784,16 @@ const Uo = ({
2782
2784
  classNames: a,
2783
2785
  ...f
2784
2786
  }) => {
2785
- const h = nr(Xe), [u, b] = F(
2786
- () => ht(String(t), Xe)
2787
+ const h = or(Xe), [u, b] = F(
2788
+ () => pt(String(t), Xe)
2787
2789
  );
2788
2790
  _e(() => {
2789
- b(ht(String(t), Xe));
2791
+ b(pt(String(t), Xe));
2790
2792
  }, [t]);
2791
2793
  const x = (j) => {
2792
- const m = j.target.value.replace(/\D/g, ""), g = ht(m, Xe);
2794
+ const m = j.target.value.replace(/\D/g, ""), g = pt(m, Xe);
2793
2795
  b(g), c == null || c(m);
2794
- }, s = Se.parent, w = Se.base, v = Se.hover, y = Se.focus, S = Se.disabled, B = l && Se.variants[l];
2796
+ }, s = Se.parent, y = Se.base, w = Se.hover, v = Se.focus, S = Se.disabled, B = l && Se.variants[l];
2795
2797
  return /* @__PURE__ */ p("div", { className: o(s, a == null ? void 0 : a.parent), children: [
2796
2798
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
2797
2799
  !!d && /* @__PURE__ */ e(
@@ -2816,10 +2818,10 @@ const Uo = ({
2816
2818
  disabled: n,
2817
2819
  autoFocus: r,
2818
2820
  className: o(
2819
- w,
2821
+ y,
2822
+ !n && w,
2820
2823
  !n && v,
2821
- !n && y,
2822
- !n && r && y,
2824
+ !n && r && v,
2823
2825
  n && S,
2824
2826
  l === "danger" && B,
2825
2827
  a == null ? void 0 : a.target
@@ -2837,7 +2839,7 @@ const Uo = ({
2837
2839
  variants: {
2838
2840
  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"
2839
2841
  }
2840
- }, { Root: En } = er, Vo = Ht.forwardRef(
2842
+ }, { Root: En } = tr, Vo = Ht.forwardRef(
2841
2843
  ({
2842
2844
  id: t = "",
2843
2845
  title: i,
@@ -2851,19 +2853,19 @@ const Uo = ({
2851
2853
  onClick: h,
2852
2854
  ...u
2853
2855
  }, b) => {
2854
- const [x, s] = F(n || ""), w = (g) => {
2856
+ const [x, s] = F(n || ""), y = (g) => {
2855
2857
  s(g), r == null || r(t, g);
2856
- }, v = u.disabled || !1, y = $e.base, S = $e.pressed, B = $e.hover, j = $e.disabled, m = $e.content;
2858
+ }, w = u.disabled || !1, v = $e.base, S = $e.pressed, B = $e.hover, j = $e.disabled, m = $e.content;
2857
2859
  return /* @__PURE__ */ p(
2858
2860
  En,
2859
2861
  {
2860
2862
  ref: b,
2861
2863
  onClick: () => h == null ? void 0 : h(t),
2862
2864
  className: o(
2863
- y,
2865
+ v,
2864
2866
  S,
2865
- !v && B,
2866
- v && j,
2867
+ !w && B,
2868
+ w && j,
2867
2869
  f
2868
2870
  ),
2869
2871
  ...u,
@@ -2874,19 +2876,19 @@ const Uo = ({
2874
2876
  {
2875
2877
  className: o(
2876
2878
  m.title,
2877
- v && m.disabled
2879
+ w && m.disabled
2878
2880
  ),
2879
2881
  children: i
2880
2882
  }
2881
2883
  ),
2882
2884
  /* @__PURE__ */ p("div", { className: m.actions, children: [
2883
2885
  !!c && /* @__PURE__ */ e(
2884
- dr,
2886
+ ar,
2885
2887
  {
2886
2888
  options: c,
2887
2889
  value: x,
2888
- onChange: w,
2889
- disabled: v
2890
+ onChange: y,
2891
+ disabled: w
2890
2892
  }
2891
2893
  ),
2892
2894
  !!a && /* @__PURE__ */ p(de, { children: [
@@ -2932,7 +2934,7 @@ const Uo = ({
2932
2934
  {
2933
2935
  className: o(
2934
2936
  m.amount,
2935
- v && m.disabled
2937
+ w && m.disabled
2936
2938
  ),
2937
2939
  children: g.value
2938
2940
  }
@@ -2962,14 +2964,14 @@ const Uo = ({
2962
2964
  disabled: "text-dark-30/[.42]"
2963
2965
  }
2964
2966
  }, Qo = Ht.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: d, classNames: n, iconSizes: r }, l) => /* @__PURE__ */ e(
2965
- Zt,
2967
+ Jt,
2966
2968
  {
2967
2969
  ref: l,
2968
2970
  value: i,
2969
2971
  onValueChange: d,
2970
2972
  className: o(n == null ? void 0 : n.tab, we.tab),
2971
- children: /* @__PURE__ */ e(Jt, { className: o(we.list, n == null ? void 0 : n.list), children: t && t.map((c) => /* @__PURE__ */ p(
2972
- Kt,
2973
+ children: /* @__PURE__ */ e(Kt, { className: o(we.list, n == null ? void 0 : n.list), children: t && t.map((c) => /* @__PURE__ */ p(
2974
+ Pt,
2973
2975
  {
2974
2976
  value: c.value,
2975
2977
  disabled: c.disabled,
@@ -3013,40 +3015,40 @@ const Uo = ({
3013
3015
  {
3014
3016
  role: "listbox",
3015
3017
  className: o(b.base, r == null ? void 0 : r.datalist),
3016
- children: s.map((w, v) => /* @__PURE__ */ p(
3018
+ children: s.map((y, w) => /* @__PURE__ */ p(
3017
3019
  "li",
3018
3020
  {
3019
3021
  className: o(b.item, r == null ? void 0 : r.dataItem),
3020
3022
  children: [
3021
3023
  /* @__PURE__ */ p("span", { className: "text-dark-40/50", children: [
3022
- w.label,
3024
+ y.label,
3023
3025
  ":"
3024
3026
  ] }),
3025
3027
  " ",
3026
- w.value
3028
+ y.value
3027
3029
  ]
3028
3030
  },
3029
- v
3031
+ w
3030
3032
  ))
3031
3033
  }
3032
3034
  );
3033
3035
  return /* @__PURE__ */ p(
3034
- Zt,
3036
+ Jt,
3035
3037
  {
3036
3038
  ref: l,
3037
3039
  value: i,
3038
3040
  onValueChange: d,
3039
3041
  className: o(c, r == null ? void 0 : r.base),
3040
3042
  children: [
3041
- /* @__PURE__ */ e(Jt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, w, v) => /* @__PURE__ */ p(
3042
- Kt,
3043
+ /* @__PURE__ */ e(Kt, { className: o(a, r == null ? void 0 : r.list), children: t.map((s, y, w) => /* @__PURE__ */ p(
3044
+ Pt,
3043
3045
  {
3044
3046
  value: s.value,
3045
3047
  disabled: s.disabled,
3046
3048
  className: o(
3047
3049
  "curved-tab",
3048
- w === 0 && "first-tab",
3049
- w === v.length - 1 && "last-tab",
3050
+ y === 0 && "first-tab",
3051
+ y === w.length - 1 && "last-tab",
3050
3052
  f.base,
3051
3053
  f.active,
3052
3054
  f.hover,
@@ -3054,7 +3056,7 @@ const Uo = ({
3054
3056
  r == null ? void 0 : r.trigger
3055
3057
  ),
3056
3058
  children: [
3057
- w + 1,
3059
+ y + 1,
3058
3060
  i === s.value && /* @__PURE__ */ e(
3059
3061
  "div",
3060
3062
  {
@@ -3065,28 +3067,28 @@ const Uo = ({
3065
3067
  },
3066
3068
  s.value
3067
3069
  )) }),
3068
- t.map((s, w, v) => /* @__PURE__ */ p(
3070
+ t.map((s, y, w) => /* @__PURE__ */ p(
3069
3071
  Zr,
3070
3072
  {
3071
3073
  value: s.value,
3072
3074
  className: o(
3073
3075
  h.base,
3074
- w === 0 && "rounded-ss-none",
3075
- w === v.length - 1 && "rounded-se-none",
3076
+ y === 0 && "rounded-ss-none",
3077
+ y === w.length - 1 && "rounded-se-none",
3076
3078
  r == null ? void 0 : r.content
3077
3079
  ),
3078
3080
  children: [
3079
3081
  /* @__PURE__ */ p("div", { className: h.title.wrapper, children: [
3080
3082
  /* @__PURE__ */ p(k, { className: h.title.text, children: [
3081
3083
  "Квартира – ",
3082
- w + 1
3084
+ y + 1
3083
3085
  ] }),
3084
3086
  /* @__PURE__ */ e(
3085
3087
  "button",
3086
3088
  {
3087
3089
  className: "hover:cursor-pointer",
3088
3090
  onClick: () => n(s),
3089
- children: /* @__PURE__ */ e(Sr, { className: "fill-sidebar-10" })
3091
+ children: /* @__PURE__ */ e(Br, { className: "fill-sidebar-10" })
3090
3092
  }
3091
3093
  )
3092
3094
  ] }),
@@ -3097,7 +3099,7 @@ const Uo = ({
3097
3099
  /* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(x, { list: s.content.secondary }) })
3098
3100
  ]
3099
3101
  },
3100
- w
3102
+ y
3101
3103
  ))
3102
3104
  ]
3103
3105
  }
@@ -3155,7 +3157,7 @@ const Uo = ({
3155
3157
  }) => /* @__PURE__ */ p("div", { className: o(Vn.root, d), children: [
3156
3158
  /* @__PURE__ */ e(P, { ...n, disabled: i, children: t }),
3157
3159
  /* @__PURE__ */ e(
3158
- Ir,
3160
+ Wr,
3159
3161
  {
3160
3162
  disabled: i,
3161
3163
  onClick: l,
@@ -3252,7 +3254,7 @@ const Uo = ({
3252
3254
  const c = ue(null), a = (T) => {
3253
3255
  if (!T) return;
3254
3256
  if (T instanceof Date) return T;
3255
- const W = kt(T, "dd.MM.yyyy", /* @__PURE__ */ new Date());
3257
+ const W = yt(T, "dd.MM.yyyy", /* @__PURE__ */ new Date());
3256
3258
  if (We(W)) return W;
3257
3259
  const R = bn(T);
3258
3260
  return We(R) ? R : void 0;
@@ -3262,14 +3264,14 @@ const Uo = ({
3262
3264
  f == null ? void 0 : f.getDate()
3263
3265
  ), [x, s] = F(
3264
3266
  f == null ? void 0 : f.getMonth()
3265
- ), [w, v] = F(
3267
+ ), [y, w] = F(
3266
3268
  f == null ? void 0 : f.getFullYear()
3267
3269
  );
3268
3270
  _e(() => {
3269
3271
  const T = a(t);
3270
- h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), v(T == null ? void 0 : T.getFullYear());
3272
+ h(T), b(T == null ? void 0 : T.getDate()), s(T == null ? void 0 : T.getMonth()), w(T == null ? void 0 : T.getFullYear());
3271
3273
  }, [t]);
3272
- const y = /* @__PURE__ */ new Date(), S = w ?? y.getFullYear(), B = x ?? y.getMonth(), j = gr(() => {
3274
+ const v = /* @__PURE__ */ new Date(), S = y ?? v.getFullYear(), B = x ?? v.getMonth(), j = sr(() => {
3273
3275
  const T = new Date(S, B + 1, 0).getDate();
3274
3276
  return Array.from({ length: T }, (W, R) => {
3275
3277
  const U = R + 1;
@@ -3281,18 +3283,18 @@ const Uo = ({
3281
3283
  }, [B, S]), m = (T, W, R) => {
3282
3284
  if (T !== void 0 && W !== void 0 && R !== void 0) {
3283
3285
  const U = new Date(R, W, T);
3284
- h(U), i(Dr(U));
3286
+ h(U), i(jr(U));
3285
3287
  } else
3286
3288
  h(void 0), i(void 0);
3287
3289
  }, g = (T) => {
3288
3290
  const W = parseInt(T);
3289
- s(W), m(u, W, w);
3291
+ s(W), m(u, W, y);
3290
3292
  }, C = (T) => {
3291
3293
  const W = parseInt(T);
3292
- v(W), m(u, x, W);
3294
+ w(W), m(u, x, W);
3293
3295
  }, I = (T) => {
3294
3296
  const W = parseInt(T);
3295
- b(W), m(W, x, w);
3297
+ b(W), m(W, x, y);
3296
3298
  };
3297
3299
  return /* @__PURE__ */ p("div", { ref: c, className: At.root, children: [
3298
3300
  !!n && /* @__PURE__ */ e(P, { className: o(l == null ? void 0 : l.label), children: n }),
@@ -3340,8 +3342,8 @@ const Uo = ({
3340
3342
  },
3341
3343
  disabled: d,
3342
3344
  onChange: C,
3343
- value: w !== void 0 ? String(w) : "",
3344
- autoFocusValue: String(y.getFullYear()),
3345
+ value: y !== void 0 ? String(y) : "",
3346
+ autoFocusValue: String(v.getFullYear()),
3345
3347
  placeholder: "Год",
3346
3348
  status: r === "danger" ? "danger" : void 0
3347
3349
  }
@@ -3362,9 +3364,9 @@ const Uo = ({
3362
3364
  classNames: a,
3363
3365
  onClick: f
3364
3366
  }) => {
3365
- const [h] = St(), u = gt.base;
3367
+ const [h] = Tt(), u = xt.base;
3366
3368
  return /* @__PURE__ */ p(
3367
- tt,
3369
+ St,
3368
3370
  {
3369
3371
  tabIndex: 1,
3370
3372
  role: "link",
@@ -3405,7 +3407,7 @@ const Uo = ({
3405
3407
  {
3406
3408
  "text-primary-10": d,
3407
3409
  "text-sidebar/[.15]": n,
3408
- [gt.expanded.label]: !i
3410
+ [xt.expanded.label]: !i
3409
3411
  },
3410
3412
  a == null ? void 0 : a.label
3411
3413
  ),
@@ -3418,7 +3420,7 @@ const Uo = ({
3418
3420
  variant: "span",
3419
3421
  className: o(
3420
3422
  u.badge,
3421
- !i && gt.expanded.badge,
3423
+ !i && xt.expanded.badge,
3422
3424
  a == null ? void 0 : a.badge
3423
3425
  ),
3424
3426
  children: t
@@ -3428,7 +3430,7 @@ const Uo = ({
3428
3430
  ]
3429
3431
  }
3430
3432
  );
3431
- }, gt = {
3433
+ }, xt = {
3432
3434
  base: {
3433
3435
  container: "flex items-center gap-3 cursor-pointer p-3.5 h-[51px] w-[247px] bg-dark-20 group rounded-[10px] font-mono",
3434
3436
  labelWrapper: "relative inline-block",
@@ -3583,7 +3585,7 @@ const Uo = ({
3583
3585
  ...u
3584
3586
  }, b) => {
3585
3587
  var B;
3586
- const x = Ze.parent, s = Ze.base, w = Ze.icon, v = d || (h == null ? void 0 : h.disabled), y = !!(n || c), S = (h == null ? void 0 : h.status) === "danger";
3588
+ const x = Ze.parent, s = Ze.base, y = Ze.icon, w = d || (h == null ? void 0 : h.disabled), v = !!(n || c), S = (h == null ? void 0 : h.status) === "danger";
3587
3589
  return /* @__PURE__ */ p("div", { className: o(x, a == null ? void 0 : a.parent), ...u, children: [
3588
3590
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
3589
3591
  !!i && /* @__PURE__ */ e(
@@ -3591,7 +3593,7 @@ const Uo = ({
3591
3593
  {
3592
3594
  htmlFor: t,
3593
3595
  className: o(a == null ? void 0 : a.label),
3594
- disabled: v,
3596
+ disabled: w,
3595
3597
  children: i
3596
3598
  }
3597
3599
  ),
@@ -3602,39 +3604,39 @@ const Uo = ({
3602
3604
  {
3603
3605
  className: o(
3604
3606
  s,
3605
- y && Ze.container,
3607
+ v && Ze.container,
3606
3608
  a == null ? void 0 : a.base
3607
3609
  ),
3608
3610
  children: [
3609
3611
  /* @__PURE__ */ e(
3610
- Wr,
3612
+ Mr,
3611
3613
  {
3612
3614
  ...h,
3613
3615
  ref: b,
3614
3616
  id: t,
3615
- disabled: v,
3617
+ disabled: w,
3616
3618
  classNames: {
3617
3619
  ...h == null ? void 0 : h.classNames,
3618
3620
  target: o(
3619
3621
  (B = h == null ? void 0 : h.classNames) == null ? void 0 : B.target,
3620
- y && l === "left" && "pl-11",
3621
- y && l === "right" && "pr-11"
3622
+ v && l === "left" && "pl-11",
3623
+ v && l === "right" && "pr-11"
3622
3624
  )
3623
3625
  }
3624
3626
  }
3625
3627
  ),
3626
- y && /* @__PURE__ */ p(
3628
+ v && /* @__PURE__ */ p(
3627
3629
  "button",
3628
3630
  {
3629
3631
  role: "button",
3630
3632
  type: "button",
3631
- disabled: v,
3633
+ disabled: w,
3632
3634
  className: o(
3633
- w.base,
3635
+ y.base,
3634
3636
  l === "left" && "left-3.5",
3635
3637
  l === "right" && "right-3.5",
3636
- f && w.clickable,
3637
- v && w.disabled,
3638
+ f && y.clickable,
3639
+ w && y.disabled,
3638
3640
  a == null ? void 0 : a.iconButton
3639
3641
  ),
3640
3642
  onClick: f,
@@ -3643,13 +3645,13 @@ const Uo = ({
3643
3645
  n && /* @__PURE__ */ e(
3644
3646
  n,
3645
3647
  {
3646
- className: o(w.icon, a == null ? void 0 : a.icon),
3648
+ className: o(y.icon, a == null ? void 0 : a.icon),
3647
3649
  viewBox: r == null ? void 0 : r.viewBox,
3648
3650
  width: r == null ? void 0 : r.width,
3649
3651
  height: r == null ? void 0 : r.height
3650
3652
  }
3651
3653
  ),
3652
- c && /* @__PURE__ */ e(k, { className: o(w.text, a == null ? void 0 : a.text), children: c })
3654
+ c && /* @__PURE__ */ e(k, { className: o(y.text, a == null ? void 0 : a.text), children: c })
3653
3655
  ]
3654
3656
  }
3655
3657
  )
@@ -3692,12 +3694,12 @@ const Uo = ({
3692
3694
  element: i,
3693
3695
  label: d,
3694
3696
  classNames: n
3695
- }) => /* @__PURE__ */ p("div", { className: o(st.wrapper, n == null ? void 0 : n.wrapper), children: [
3697
+ }) => /* @__PURE__ */ p("div", { className: o(gt.wrapper, n == null ? void 0 : n.wrapper), children: [
3696
3698
  !!t && /* @__PURE__ */ e(
3697
3699
  "div",
3698
3700
  {
3699
3701
  "data-testid": "user-icon",
3700
- className: o(st.iconWrapper, n == null ? void 0 : n.iconWrapper),
3702
+ className: o(gt.iconWrapper, n == null ? void 0 : n.iconWrapper),
3701
3703
  children: t
3702
3704
  }
3703
3705
  ),
@@ -3706,12 +3708,12 @@ const Uo = ({
3706
3708
  {
3707
3709
  "data-testid": "user-label",
3708
3710
  variant: "span",
3709
- className: o(st.label, n == null ? void 0 : n.label),
3711
+ className: o(gt.label, n == null ? void 0 : n.label),
3710
3712
  children: d
3711
3713
  }
3712
3714
  ),
3713
3715
  !!i && i
3714
- ] }), st = {
3716
+ ] }), gt = {
3715
3717
  wrapper: "inline-flex w-auto gap-2 items-center justify-center",
3716
3718
  iconWrapper: "size-5 rounded-full flex items-center justify-center bg-dark-30/[.10]",
3717
3719
  label: "text-dark-40/[.50] text-sm font-medium",
@@ -3762,7 +3764,7 @@ const Uo = ({
3762
3764
  ),
3763
3765
  children: [
3764
3766
  l && /* @__PURE__ */ e(
3765
- Lr,
3767
+ zr,
3766
3768
  {
3767
3769
  width: f.width,
3768
3770
  height: f.height,
@@ -3778,11 +3780,11 @@ const Uo = ({
3778
3780
  states: {
3779
3781
  active: "active:text-primary-30",
3780
3782
  disabled: "text-dark-30/[.30] cursor-not-allowed",
3781
- focus: "focus:border-2 focus:border-primary-10/[.20] focus:rounded-[10px]",
3783
+ focus: "focus:ring-2 focus:ring-primary-10/[.20] focus:rounded-[10px]",
3782
3784
  hover: "hover:text-primary-20",
3783
3785
  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"
3784
3786
  }
3785
- }, dr = Z(
3787
+ }, ar = Z(
3786
3788
  ({
3787
3789
  classNames: t,
3788
3790
  disabled: i,
@@ -3792,7 +3794,7 @@ const Uo = ({
3792
3794
  value: l
3793
3795
  }, c) => {
3794
3796
  var B;
3795
- const [a, f] = F(!1), u = Nt(n)(l), b = ue(null), x = Re.base, s = Re.options, w = Re.disabled.trigger, v = Re.disabled.triggerText, y = (B = n.find((j) => j.value === l)) == null ? void 0 : B.status, S = ({
3797
+ const [a, f] = F(!1), u = er(n)(l), b = ue(null), x = Re.base, s = Re.options, y = Re.disabled.trigger, w = Re.disabled.triggerText, v = (B = n.find((j) => j.value === l)) == null ? void 0 : B.status, S = ({
3796
3798
  className: j,
3797
3799
  text: m = ""
3798
3800
  }) => /* @__PURE__ */ e(
@@ -3800,7 +3802,7 @@ const Uo = ({
3800
3802
  {
3801
3803
  className: o(
3802
3804
  x.placeholder,
3803
- i && v,
3805
+ i && w,
3804
3806
  j
3805
3807
  ),
3806
3808
  children: m
@@ -3811,18 +3813,18 @@ const Uo = ({
3811
3813
  var j;
3812
3814
  (j = b.current) == null || j.scrollIntoView({ block: "center" });
3813
3815
  }, 0);
3814
- }, [a]), /* @__PURE__ */ p(rt, { open: a, onOpenChange: f, children: [
3816
+ }, [a]), /* @__PURE__ */ p(tt, { open: a, onOpenChange: f, children: [
3815
3817
  /* @__PURE__ */ p(
3816
- nt,
3818
+ rt,
3817
3819
  {
3818
3820
  role: "listbox",
3819
3821
  disabled: i,
3820
3822
  className: o(
3821
3823
  x.trigger,
3822
- i && w,
3824
+ i && y,
3823
3825
  !a && !i && x.hover,
3824
3826
  t == null ? void 0 : t.trigger,
3825
- y && Re.status[y]
3827
+ v && Re.status[v]
3826
3828
  ),
3827
3829
  children: [
3828
3830
  l ? /* @__PURE__ */ e(
@@ -3839,7 +3841,7 @@ const Uo = ({
3839
3841
  }
3840
3842
  ),
3841
3843
  /* @__PURE__ */ e("div", { className: "transition-transform duration-200", children: /* @__PURE__ */ e(
3842
- rr,
3844
+ nr,
3843
3845
  {
3844
3846
  className: o(x.icon, a && "rotate-180"),
3845
3847
  width: 16,
@@ -3851,7 +3853,7 @@ const Uo = ({
3851
3853
  }
3852
3854
  ),
3853
3855
  /* @__PURE__ */ e(
3854
- ot,
3856
+ nt,
3855
3857
  {
3856
3858
  className: o(s.content, t == null ? void 0 : t.content),
3857
3859
  style: { minWidth: "var(--radix-popper-anchor-width)" },
@@ -3873,7 +3875,7 @@ const Uo = ({
3873
3875
  ] });
3874
3876
  }
3875
3877
  );
3876
- dr.displayName = "StatusSelect";
3878
+ ar.displayName = "StatusSelect";
3877
3879
  const Re = {
3878
3880
  base: {
3879
3881
  trigger: "rounded-[50px] h-[22px] w-max px-2.5 flex justify-between items-center outline-none bg-dark-30/[.15]",
@@ -3967,7 +3969,7 @@ const Re = {
3967
3969
  children: i.name
3968
3970
  }
3969
3971
  ),
3970
- /* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children: Ct(Number(i.size.toFixed(1))) })
3972
+ /* @__PURE__ */ e(k, { "data-testid": "size-file", className: L.sizeFile, children: kt(Number(i.size.toFixed(1))) })
3971
3973
  ] }),
3972
3974
  /* @__PURE__ */ p("div", { className: L.buttonContainer, children: [
3973
3975
  /* @__PURE__ */ e(
@@ -4087,7 +4089,7 @@ const Re = {
4087
4089
  },
4088
4090
  onClick: n,
4089
4091
  variant: "text",
4090
- icon: tr,
4092
+ icon: rr,
4091
4093
  iconDimensions: { height: 15, width: 16, viewBox: "0 0 16 16" }
4092
4094
  }
4093
4095
  ),
@@ -4289,24 +4291,24 @@ const Re = {
4289
4291
  options: u = []
4290
4292
  }, b) => {
4291
4293
  var xe;
4292
- const [x, s] = F(!1), [w, v] = F(a || ""), [y, S] = F(""), [B, j] = F(null), m = ue(null), g = () => {
4293
- const M = y.trim();
4294
+ const [x, s] = F(!1), [y, w] = F(a || ""), [v, S] = F(""), [B, j] = F(null), m = ue(null), g = () => {
4295
+ const M = v.trim();
4294
4296
  M && (B && l ? (l(M, B), j(null)) : r(M), S(""));
4295
4297
  }, C = (M, q) => {
4296
4298
  q.stopPropagation(), j(M);
4297
4299
  const re = u.find((J) => J.value === M);
4298
4300
  re && S(re.label);
4299
4301
  }, I = (M, q) => {
4300
- q.stopPropagation(), n(M), w === M && v("");
4302
+ q.stopPropagation(), n(M), y === M && w("");
4301
4303
  }, T = () => {
4302
4304
  S(""), j(null);
4303
4305
  }, W = () => {
4304
4306
  s(!1), T();
4305
4307
  }, R = () => {
4306
- d(w), s(!1), T();
4308
+ d(y), s(!1), T();
4307
4309
  }, U = (M) => {
4308
4310
  s(M), M || T();
4309
- }, Ce = a ? ((xe = u.find((M) => M.value === a)) == null ? void 0 : xe.label) || a : "", at = Ce ? H.base.selected : H.base.placeholder;
4311
+ }, Ce = a ? ((xe = u.find((M) => M.value === a)) == null ? void 0 : xe.label) || a : "", dt = Ce ? H.base.selected : H.base.placeholder;
4310
4312
  return /* @__PURE__ */ p("div", { className: H.container, children: [
4311
4313
  f && /* @__PURE__ */ e(P, { htmlFor: "select-list", disabled: i, children: f }),
4312
4314
  /* @__PURE__ */ p(de, { open: x, onOpenChange: U, children: [
@@ -4330,7 +4332,7 @@ const Re = {
4330
4332
  H.base.text,
4331
4333
  i && H.disabled.triggerText,
4332
4334
  t == null ? void 0 : t[Ce ? "selected" : "placeholder"],
4333
- at
4335
+ dt
4334
4336
  ),
4335
4337
  children: Ce || c
4336
4338
  }
@@ -4367,17 +4369,17 @@ const Re = {
4367
4369
  id: "select-list",
4368
4370
  classNames: { target: "px-3 py-[9px]" },
4369
4371
  placeholder: B && h ? `Редактировать ${h}` : h || "",
4370
- value: y,
4372
+ value: v,
4371
4373
  onChange: (M) => S(M.target.value)
4372
4374
  },
4373
- icon: Xt,
4375
+ icon: Zt,
4374
4376
  iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
4375
4377
  iconPosition: "right",
4376
4378
  onIconClick: g
4377
4379
  }
4378
4380
  ),
4379
4381
  /* @__PURE__ */ e("div", { className: H.options.optionsWrapper, children: u.map((M) => {
4380
- const q = B === M.value, re = w === M.value;
4382
+ const q = B === M.value, re = y === M.value;
4381
4383
  return /* @__PURE__ */ p(
4382
4384
  "div",
4383
4385
  {
@@ -4386,7 +4388,7 @@ const Re = {
4386
4388
  q && "opacity-50"
4387
4389
  ),
4388
4390
  onClick: (J) => {
4389
- J.stopPropagation(), J.preventDefault(), q || v(M.value);
4391
+ J.stopPropagation(), J.preventDefault(), q || w(M.value);
4390
4392
  },
4391
4393
  children: [
4392
4394
  /* @__PURE__ */ p(
@@ -4654,7 +4656,7 @@ const H = {
4654
4656
  /* @__PURE__ */ e("div", { className: o(Le.actions, r == null ? void 0 : r.actions), children: a == null ? void 0 : a.map((u) => {
4655
4657
  var b, x;
4656
4658
  return /* @__PURE__ */ e(
4657
- Tt,
4659
+ Ct,
4658
4660
  {
4659
4661
  icon: u.icon,
4660
4662
  shape: "circle",
@@ -4747,7 +4749,7 @@ const H = {
4747
4749
  const s = (u == null ? void 0 : u.id) && (c == null ? void 0 : c.includes(u.id));
4748
4750
  return /* @__PURE__ */ p("ul", { role: "listitem", className: Je.item, children: [
4749
4751
  /* @__PURE__ */ e(
4750
- Mr,
4752
+ _r,
4751
4753
  {
4752
4754
  id: u.id,
4753
4755
  text: u.text,
@@ -4812,7 +4814,7 @@ const H = {
4812
4814
  ),
4813
4815
  children: [
4814
4816
  /* @__PURE__ */ e(
4815
- Tt,
4817
+ Ct,
4816
4818
  {
4817
4819
  icon: Ye,
4818
4820
  shape: "circle",
@@ -4867,7 +4869,7 @@ const H = {
4867
4869
  }, Nn = [
4868
4870
  {
4869
4871
  id: "download",
4870
- icon: Br,
4872
+ icon: Dr,
4871
4873
  iconSizes: {
4872
4874
  width: 20,
4873
4875
  height: 20,
@@ -4928,7 +4930,7 @@ const H = {
4928
4930
  u.preventDefault(), n(!0);
4929
4931
  }, l = (u) => {
4930
4932
  i(u), n(!1);
4931
- }, { icon: c, base: a } = vt.button.normal, { icon: f, base: h } = vt.button.danger;
4933
+ }, { icon: c, base: a } = st.button.normal, { icon: f, base: h } = st.button.danger;
4932
4934
  return /* @__PURE__ */ p(de, { open: d, onOpenChange: n, children: [
4933
4935
  /* @__PURE__ */ e(ae, { asChild: !0, className: "cursor-pointer", children: /* @__PURE__ */ e(
4934
4936
  "div",
@@ -4944,8 +4946,8 @@ const H = {
4944
4946
  align: "center",
4945
4947
  sideOffset: 4,
4946
4948
  side: "top",
4947
- className: vt.wrapper,
4948
- children: Nn.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: w }) => /* @__PURE__ */ e(
4949
+ className: st.wrapper,
4950
+ children: Nn.map(({ id: u, icon: b, iconSizes: x, isDanger: s, text: y }) => /* @__PURE__ */ e(
4949
4951
  _,
4950
4952
  {
4951
4953
  "data-testid": "action",
@@ -4958,14 +4960,14 @@ const H = {
4958
4960
  icon: s ? f : c,
4959
4961
  base: s ? h : a
4960
4962
  },
4961
- children: w
4963
+ children: y
4962
4964
  },
4963
4965
  u
4964
4966
  ))
4965
4967
  }
4966
4968
  )
4967
4969
  ] });
4968
- }, vt = {
4970
+ }, st = {
4969
4971
  wrapper: "flex flex-col gap-3 rounded-xl p-4 w-[230px] shadow-3xl border-0",
4970
4972
  button: {
4971
4973
  normal: {
@@ -4978,9 +4980,9 @@ const H = {
4978
4980
  }
4979
4981
  }
4980
4982
  }, pi = ({ tabs: t }) => {
4981
- const i = zr();
4983
+ const i = Xt();
4982
4984
  return /* @__PURE__ */ e("div", { className: eo.wrapper, "data-testid": "tab-list", children: t.map(({ id: d, icon: n, label: r, isActive: l, href: c }) => /* @__PURE__ */ e(
4983
- _r,
4985
+ Fr,
4984
4986
  {
4985
4987
  icon: n,
4986
4988
  active: l,
@@ -5018,7 +5020,7 @@ const H = {
5018
5020
  ),
5019
5021
  children: [
5020
5022
  i ? u == null ? void 0 : u.name.ru : d,
5021
- /* @__PURE__ */ e(rr, { className: o(oe.icon, f && "-rotate-180") })
5023
+ /* @__PURE__ */ e(nr, { className: o(oe.icon, f && "-rotate-180") })
5022
5024
  ]
5023
5025
  }
5024
5026
  ),
@@ -5031,7 +5033,7 @@ const H = {
5031
5033
  oe.name,
5032
5034
  i === s && "before:bg-dark-10"
5033
5035
  ),
5034
- onClick: (w) => b(w, s),
5036
+ onClick: (y) => b(y, s),
5035
5037
  children: x.ru
5036
5038
  }
5037
5039
  ),
@@ -5042,8 +5044,8 @@ const H = {
5042
5044
  "data-testid": "edit-button",
5043
5045
  variant: "text",
5044
5046
  classNames: { base: "p-0" },
5045
- onClick: (w) => {
5046
- w.stopPropagation(), c(s);
5047
+ onClick: (y) => {
5048
+ y.stopPropagation(), c(s);
5047
5049
  },
5048
5050
  children: /* @__PURE__ */ e(
5049
5051
  Bt,
@@ -5062,8 +5064,8 @@ const H = {
5062
5064
  "data-testid": "delete-button",
5063
5065
  variant: "text",
5064
5066
  classNames: { base: "p-0" },
5065
- onClick: (w) => {
5066
- w.stopPropagation(), a(s);
5067
+ onClick: (y) => {
5068
+ y.stopPropagation(), a(s);
5067
5069
  },
5068
5070
  children: /* @__PURE__ */ e(
5069
5071
  Fe,
@@ -5082,7 +5084,7 @@ const H = {
5082
5084
  _,
5083
5085
  {
5084
5086
  variant: "text",
5085
- icon: Xt,
5087
+ icon: Zt,
5086
5088
  iconPosition: "left",
5087
5089
  iconDimensions: { height: 17, width: 17, viewBox: "0 0 18 18" },
5088
5090
  size: "medium",
@@ -5219,7 +5221,7 @@ const H = {
5219
5221
  /* @__PURE__ */ e(k, { className: o(E.total, c == null ? void 0 : c.total), children: r.total }),
5220
5222
  r.growth && /* @__PURE__ */ p("div", { className: o(E.badge, c == null ? void 0 : c.badge), children: [
5221
5223
  /* @__PURE__ */ e(
5222
- wt,
5224
+ mt,
5223
5225
  {
5224
5226
  width: 7,
5225
5227
  height: 7,
@@ -5241,9 +5243,9 @@ const H = {
5241
5243
  ] })
5242
5244
  ] }),
5243
5245
  i === "chart" && /* @__PURE__ */ e(
5244
- it,
5246
+ ot,
5245
5247
  {
5246
- echarts: dt,
5248
+ echarts: it,
5247
5249
  option: u,
5248
5250
  style: { height: 250 }
5249
5251
  }
@@ -5255,12 +5257,12 @@ const H = {
5255
5257
  className: o(E.progress.line, (x = c == null ? void 0 : c.progress) == null ? void 0 : x.line)
5256
5258
  }
5257
5259
  ),
5258
- h.map(({ name: s, value: w }, v) => {
5259
- var y, S, B;
5260
+ h.map(({ name: s, value: y }, w) => {
5261
+ var v, S, B;
5260
5262
  return /* @__PURE__ */ p(
5261
5263
  "div",
5262
5264
  {
5263
- className: o(E.progress.row, (y = c == null ? void 0 : c.progress) == null ? void 0 : y.row),
5265
+ className: o(E.progress.row, (v = c == null ? void 0 : c.progress) == null ? void 0 : v.row),
5264
5266
  children: [
5265
5267
  /* @__PURE__ */ e(
5266
5268
  k,
@@ -5273,11 +5275,11 @@ const H = {
5273
5275
  }
5274
5276
  ),
5275
5277
  /* @__PURE__ */ e(
5276
- lr,
5278
+ cr,
5277
5279
  {
5278
- value: w,
5280
+ value: y,
5279
5281
  total: r.total,
5280
- color: l[v],
5282
+ color: l[w],
5281
5283
  classNames: {
5282
5284
  bar: E.progress.bar,
5283
5285
  indicator: E.progress.indicator
@@ -5291,7 +5293,7 @@ const H = {
5291
5293
  E.progress.value,
5292
5294
  (B = c == null ? void 0 : c.progress) == null ? void 0 : B.value
5293
5295
  ),
5294
- children: w
5296
+ children: y
5295
5297
  }
5296
5298
  )
5297
5299
  ]
@@ -5376,7 +5378,7 @@ const H = {
5376
5378
  allWhite: f = !1,
5377
5379
  arrowDown: h = !1,
5378
5380
  icon: u = null
5379
- } = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ? jr(t.total) : t.total, s = no(d), w = oo(d, b);
5381
+ } = n ?? {}, b = f ? "#ffffff" : a, x = d === "payment" ? Ir(t.total) : t.total, s = no(d), y = oo(d, b);
5380
5382
  return /* @__PURE__ */ p(
5381
5383
  "div",
5382
5384
  {
@@ -5411,7 +5413,7 @@ const H = {
5411
5413
  d === "payment" && /* @__PURE__ */ e(k, { className: ie.payment, children: "Сум" }),
5412
5414
  d === "count" && /* @__PURE__ */ p("div", { className: o(ie.badge, r == null ? void 0 : r.badge), children: [
5413
5415
  /* @__PURE__ */ e(
5414
- wt,
5416
+ mt,
5415
5417
  {
5416
5418
  width: 7,
5417
5419
  height: 7,
@@ -5436,7 +5438,7 @@ const H = {
5436
5438
  style: { color: b },
5437
5439
  children: [
5438
5440
  /* @__PURE__ */ e(
5439
- wt,
5441
+ mt,
5440
5442
  {
5441
5443
  width: 16,
5442
5444
  height: 16,
@@ -5452,10 +5454,10 @@ const H = {
5452
5454
  ),
5453
5455
  d === "stat" && /* @__PURE__ */ e("div", { className: o(ie.icon, r == null ? void 0 : r.icon), children: u }),
5454
5456
  s && /* @__PURE__ */ e(
5455
- it,
5457
+ ot,
5456
5458
  {
5457
- echarts: dt,
5458
- option: w,
5459
+ echarts: it,
5460
+ option: y,
5459
5461
  style: {
5460
5462
  ...s,
5461
5463
  position: "absolute",
@@ -5544,7 +5546,7 @@ const H = {
5544
5546
  classNames: { title: ze.title, wrapper: "items-center" }
5545
5547
  }
5546
5548
  ),
5547
- t === "master" && f && c && /* @__PURE__ */ p(mt, { children: [
5549
+ t === "master" && f && c && /* @__PURE__ */ p(vt, { children: [
5548
5550
  /* @__PURE__ */ e(
5549
5551
  jt,
5550
5552
  {
@@ -5556,9 +5558,9 @@ const H = {
5556
5558
  }
5557
5559
  }
5558
5560
  ),
5559
- /* @__PURE__ */ e(ar, { rating: c, position: "right" })
5561
+ /* @__PURE__ */ e(lr, { rating: c, position: "right" })
5560
5562
  ] }),
5561
- t === "service" && l && /* @__PURE__ */ p(mt, { children: [
5563
+ t === "service" && l && /* @__PURE__ */ p(vt, { children: [
5562
5564
  /* @__PURE__ */ e(
5563
5565
  Ge,
5564
5566
  {
@@ -5589,9 +5591,9 @@ const H = {
5589
5591
  )
5590
5592
  ] }),
5591
5593
  /* @__PURE__ */ e(
5592
- it,
5594
+ ot,
5593
5595
  {
5594
- echarts: dt,
5596
+ echarts: it,
5595
5597
  option: b,
5596
5598
  style: { height: 135, width: 135 }
5597
5599
  }
@@ -5609,7 +5611,7 @@ const H = {
5609
5611
  }, ao = (t, i) => {
5610
5612
  const d = i - t;
5611
5613
  return d >= 1 ? 100 : d > 0 ? d * 100 : 0;
5612
- }, ar = ({
5614
+ }, lr = ({
5613
5615
  rating: t,
5614
5616
  classNames: i,
5615
5617
  position: d = "left",
@@ -5777,9 +5779,9 @@ const H = {
5777
5779
  }) })
5778
5780
  ] }),
5779
5781
  /* @__PURE__ */ e("div", { className: o(N.chartBlock, r == null ? void 0 : r.chartBlock), children: a.map((h, u) => /* @__PURE__ */ e(
5780
- it,
5782
+ ot,
5781
5783
  {
5782
- echarts: dt,
5784
+ echarts: it,
5783
5785
  "data-testid": "chart",
5784
5786
  option: lo({
5785
5787
  total: d.total,
@@ -5847,23 +5849,23 @@ const H = {
5847
5849
  }
5848
5850
  )
5849
5851
  ] }),
5850
- /* @__PURE__ */ e("div", { className: o(Ie.bar.block, (u = c == null ? void 0 : c.bar) == null ? void 0 : u.block), children: h.map(({ label: b, value: x, color: s }, w) => {
5851
- var v;
5852
+ /* @__PURE__ */ e("div", { className: o(Ie.bar.block, (u = c == null ? void 0 : c.bar) == null ? void 0 : u.block), children: h.map(({ label: b, value: x, color: s }, y) => {
5853
+ var w;
5852
5854
  return /* @__PURE__ */ p("div", { children: [
5853
- /* @__PURE__ */ p("div", { className: o(Ie.bar.text, (v = c == null ? void 0 : c.bar) == null ? void 0 : v.text), children: [
5855
+ /* @__PURE__ */ p("div", { className: o(Ie.bar.text, (w = c == null ? void 0 : c.bar) == null ? void 0 : w.text), children: [
5854
5856
  /* @__PURE__ */ e(k, { children: b }),
5855
- /* @__PURE__ */ p(k, { className: o(w === 2 && "text-danger-10"), children: [
5857
+ /* @__PURE__ */ p(k, { className: o(y === 2 && "text-danger-10"), children: [
5856
5858
  x,
5857
5859
  " сум"
5858
5860
  ] })
5859
5861
  ] }),
5860
5862
  /* @__PURE__ */ e(
5861
- lr,
5863
+ cr,
5862
5864
  {
5863
5865
  value: x,
5864
5866
  total: l,
5865
5867
  color: s,
5866
- classNames: { bar: `${w === 0 && "h-9"}` }
5868
+ classNames: { bar: `${y === 0 && "h-9"}` }
5867
5869
  }
5868
5870
  )
5869
5871
  ] }, b);
@@ -5883,7 +5885,7 @@ const H = {
5883
5885
  bar: "w-full bg-gray-50 rounded-md overflow-hidden h-7",
5884
5886
  indicator: "h-full rounded-md"
5885
5887
  }
5886
- }, lr = ({
5888
+ }, cr = ({
5887
5889
  value: t,
5888
5890
  total: i,
5889
5891
  color: d,
@@ -5925,7 +5927,7 @@ export {
5925
5927
  di as ChatList,
5926
5928
  ai as ChatMessage,
5927
5929
  ii as ChatSidebar,
5928
- or as CheckboxGroup,
5930
+ ir as CheckboxGroup,
5929
5931
  Ho as CommentInput,
5930
5932
  Oo as CommentList,
5931
5933
  Ko as DateOfBirth,
@@ -5951,15 +5953,15 @@ export {
5951
5953
  ri as PaymentCard,
5952
5954
  Eo as PhoneInput,
5953
5955
  Vo as Plate,
5954
- lr as ProgressItem,
5955
- ir as RadioGroup,
5956
- ar as Rating,
5956
+ cr as ProgressItem,
5957
+ dr as RadioGroup,
5958
+ lr as Rating,
5957
5959
  Cn as SearchInput,
5958
5960
  ei as SelectGroup,
5959
5961
  Kn as SelectList,
5960
5962
  oi as ServiceOrders,
5961
5963
  Yo as Sidebar,
5962
- dr as StatusSelect,
5964
+ ar as StatusSelect,
5963
5965
  Po as Stepper,
5964
5966
  qo as TabGroup,
5965
5967
  pi as TabList,
@@ -5997,16 +5999,16 @@ export {
5997
5999
  De as dragAndDropTokens,
5998
6000
  Ft as dropdownTokens,
5999
6001
  Y as fileUploaderTokens,
6000
- bt as filterTableTokens,
6002
+ ft as filterTableTokens,
6001
6003
  oe as floorSelectTokens,
6002
6004
  $t as iconTitleTokens,
6003
6005
  Ze as inputGroupTokens,
6004
6006
  Rt as labelWithValueTokens,
6005
- xt as languagesTokens,
6007
+ bt as languagesTokens,
6006
6008
  Zn as linkTokens,
6007
- vt as messageSettingsTokens,
6009
+ st as messageSettingsTokens,
6008
6010
  A as multiSelectTokens,
6009
- gt as navButtonTokens,
6011
+ xt as navButtonTokens,
6010
6012
  kn as passwordInputTokens,
6011
6013
  X as paymentCardTokens,
6012
6014
  Se as phoneInputTokens,
@@ -6027,5 +6029,5 @@ export {
6027
6029
  Ot as textareaGroupTokens,
6028
6030
  Vn as toggleGroupTokens,
6029
6031
  ve as uploadInputTokens,
6030
- st as userContactTokens
6032
+ gt as userContactTokens
6031
6033
  };