@namuna-nur/ui-kit 1.10.0 → 1.10.1

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.
@@ -1,26 +1,26 @@
1
1
  import { jsxs as p, jsx as e, Fragment as Ne } from "react/jsx-runtime";
2
- import * as z from "react";
2
+ import * as L from "react";
3
3
  import Lt, { useRef as ne, forwardRef as X, useState as A, useImperativeHandle as zt, useEffect as ge, Fragment as pr, useMemo as Ht } from "react";
4
- import { S as Ee, b as hr, c as se, d as ur, e as fr, f as br, g as Ut, h as Yt, i as xr, j as Gt, k as gr, l as sr, m as vr, n as mr, o as wr, p as st } from "../shared/assets-icons-2.js";
5
- import { cn as n, formatFileSize as wt, DATE_FORMAT_DAY_MONTH_YEAR_DASH as It, formatDateToDayMonthYear as yr, numberFormat as kr } from "../utils/index.js";
6
- import { Checkbox as vt, Label as ee, Spinner as rt, Text as k, Button as M, Avatar as Et, IconButton as yt, Select as Te, Textarea as Kt, Radio as Vt, Status as He, Toggle as Cr, Headline as et, Input as Tr, Message as Dr, Tab as Sr } from "../atoms/index.js";
7
- import { useReactTable as Br, getCoreRowModel as Ir, flexRender as lt } from "@tanstack/react-table";
8
- import { b as jr, c as _r, d as Wr, e as Mr } from "../shared/assets-icons-3.js";
4
+ import { S as Ee, b as hr, c as se, d as ur, e as fr, f as Ut, g as Yt, h as br, i as Gt, j as xr, k as gr, l as sr, m as vr, n as mr, o as st } from "../shared/assets-icons-2.js";
5
+ import { cn as n, formatFileSize as wt, DATE_FORMAT_DAY_MONTH_YEAR_DASH as jt, formatDateToDayMonthYear as wr, numberFormat as yr } from "../utils/index.js";
6
+ import { Checkbox as vt, Label as ee, Spinner as rt, Text as k, Button as M, Avatar as Et, IconButton as yt, Select as Te, Textarea as Kt, Radio as Vt, Status as He, Toggle as kr, Headline as et, Input as Cr, Message as Tr, Tab as Dr } from "../atoms/index.js";
7
+ import { useReactTable as Sr, getCoreRowModel as Br, flexRender as lt } from "@tanstack/react-table";
8
+ import { b as jr, c as Ir, d as _r, e as Wr } from "../shared/assets-icons-3.js";
9
9
  import { Link as Ke, useSearchParams as kt, useNavigate as qt, NavLink as Ct } from "react-router-dom";
10
- import { S as Or, a as Ar, b as Fr, c as Rr, d as $r, e as Zt, f as Tt } from "../shared/assets-icons-1.js";
11
- import { P as ae, b as de, c as le, D as nt, d as ot, e as it, f as Dt, A as Lr, g as zr, h as Hr, i as Ur, j as Qt, k as Xt, l as Jt, m as Yr, n as Gr, o as Er } from "../shared/shared.js";
12
- import { d as Ue, e as Kr, f as Pt, g as Nt, h as Vr, i as qr, j as Zr, k as Qr, a as Xr, l as Jr, m as Pr, n as Nr } from "../shared/assets-icons-4.js";
13
- import { useDebounce as en, useOption as er } from "../hooks/index.js";
10
+ import { S as Mr, a as Or, b as Ar, c as Fr, d as Rr, e as Zt, f as Tt } from "../shared/assets-icons-1.js";
11
+ import { P as ae, b as de, c as le, D as nt, d as ot, e as it, f as Dt, A as $r, g as Lr, h as zr, i as Hr, j as Qt, k as Xt, l as Jt, m as Ur, n as Yr, o as Gr } from "../shared/shared.js";
12
+ import { d as Ue, e as Er, f as Pt, g as Nt, h as Kr, i as Vr, j as qr, k as Zr, a as Qr, l as Xr, m as Jr, n as Pr } from "../shared/assets-icons-4.js";
13
+ import { useDebounce as Nr, useOption as er } from "../hooks/index.js";
14
14
  import * as tr from "@radix-ui/react-toggle";
15
- import { e as rr, f as tn, g as rn, h as nn, i as nr, j as Oe, k as jt } from "../shared/assets-icons-0.js";
15
+ import { e as rr, f as en, g as tn, h as rn, i as nr, j as Oe, k as It } from "../shared/assets-icons-0.js";
16
16
  import { useMask as or, format as ct } from "@react-input/mask";
17
- import { format as Q, addMonths as on, parse as mt, isValid as We, parseISO as an } from "date-fns";
17
+ import { format as Q, addMonths as nn, parse as mt, isValid as We, parseISO as on } from "date-fns";
18
18
  import { ru as pt } from "date-fns/locale";
19
- import { DayPicker as dn } from "react-day-picker";
19
+ import { DayPicker as an } from "react-day-picker";
20
20
  import at from "echarts-for-react/lib/core";
21
21
  import { colorTokens as tt } from "../tokens/index.js";
22
22
  import * as dt from "echarts/core";
23
- const yo = ({
23
+ const wo = ({
24
24
  isOpen: t,
25
25
  children: i,
26
26
  icon: a,
@@ -31,7 +31,7 @@ const yo = ({
31
31
  classNames: l,
32
32
  onClick: u
33
33
  }) => {
34
- const h = ve.root, f = ve.header, s = ve.icon, x = ve.content, g = ve.titlesWrapper, w = ve.title, m = ve.subtitle;
34
+ const h = ve.root, f = ve.header, g = ve.icon, x = ve.content, s = ve.titlesWrapper, w = ve.title, v = ve.subtitle;
35
35
  return /* @__PURE__ */ p("div", { className: n(h, l == null ? void 0 : l.root), children: [
36
36
  /* @__PURE__ */ p(
37
37
  "button",
@@ -47,7 +47,7 @@ const yo = ({
47
47
  ),
48
48
  onClick: u,
49
49
  children: [
50
- /* @__PURE__ */ p("div", { className: n(g, l == null ? void 0 : l.wrapperTitles), children: [
50
+ /* @__PURE__ */ p("div", { className: n(s, l == null ? void 0 : l.wrapperTitles), children: [
51
51
  /* @__PURE__ */ p("div", { className: f.title, children: [
52
52
  !!a && /* @__PURE__ */ e(
53
53
  a,
@@ -74,7 +74,7 @@ const yo = ({
74
74
  "span",
75
75
  {
76
76
  className: n(
77
- m,
77
+ v,
78
78
  r && "text-dark-30/25",
79
79
  l == null ? void 0 : l.subtitle
80
80
  ),
@@ -89,7 +89,7 @@ const yo = ({
89
89
  height: "20",
90
90
  viewBox: "0 0 20 20",
91
91
  className: n(
92
- s,
92
+ g,
93
93
  t && "-rotate-180",
94
94
  r && "fill-dark-30/25"
95
95
  )
@@ -109,7 +109,7 @@ const yo = ({
109
109
  t ? x.opened : x.closed,
110
110
  l == null ? void 0 : l.content
111
111
  ),
112
- onClick: (v) => v.stopPropagation(),
112
+ onClick: (m) => m.stopPropagation(),
113
113
  children: i
114
114
  }
115
115
  )
@@ -132,7 +132,7 @@ const yo = ({
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
- }, ln = ({
135
+ }, dn = ({
136
136
  id: t,
137
137
  label: i,
138
138
  labelPosition: a = "right",
@@ -195,7 +195,7 @@ const yo = ({
195
195
  },
196
196
  disabled: "text-tertiary-30"
197
197
  };
198
- function ko({
198
+ function yo({
199
199
  classNames: t,
200
200
  columns: i,
201
201
  data: a,
@@ -207,24 +207,24 @@ function ko({
207
207
  isCheckboxVisible: l = !0,
208
208
  isLoading: u = !1
209
209
  }) {
210
- const h = Br({
210
+ const h = Sr({
211
211
  columns: i,
212
212
  data: a,
213
- getCoreRowModel: Ir(),
213
+ getCoreRowModel: Br(),
214
214
  manualSorting: !0
215
- }), f = ne(null), s = (m) => {
216
- const v = c == null ? void 0 : c.find((S) => S.id === m), D = v != null && v.desc ? "asc" : "desc";
217
- d == null || d({ key: m, order: D });
215
+ }), f = ne(null), g = (v) => {
216
+ const m = c == null ? void 0 : c.find((S) => S.id === v), T = m != null && m.desc ? "asc" : "desc";
217
+ d == null || d({ key: v, order: T });
218
218
  }, x = h.getFooterGroups().some(
219
- (m) => m.headers.some((v) => v.column.columnDef.footer)
220
- ), g = (m) => {
221
- o != null && o.includes(m) ? r(o.filter((v) => v !== m)) : r([...o, m]);
219
+ (v) => v.headers.some((m) => m.column.columnDef.footer)
220
+ ), s = (v) => {
221
+ o != null && o.includes(v) ? r(o.filter((m) => m !== v)) : r([...o, v]);
222
222
  }, w = () => {
223
- const m = h.getCoreRowModel().rows.map((v) => {
224
- var D;
225
- return (D = v.original) == null ? void 0 : D.id;
223
+ const v = h.getCoreRowModel().rows.map((m) => {
224
+ var T;
225
+ return (T = m.original) == null ? void 0 : T.id;
226
226
  });
227
- (o == null ? void 0 : o.length) === m.length ? r([]) : r(m);
227
+ (o == null ? void 0 : o.length) === v.length ? r([]) : r(v);
228
228
  };
229
229
  return /* @__PURE__ */ p("div", { className: n(Z.root, t == null ? void 0 : t.root), children: [
230
230
  u && /* @__PURE__ */ e(rt, {}),
@@ -238,8 +238,8 @@ function ko({
238
238
  className: n(Z.wrapper, t == null ? void 0 : t.wrapper),
239
239
  ref: f,
240
240
  children: /* @__PURE__ */ p("table", { className: Z.table, children: [
241
- /* @__PURE__ */ e("thead", { className: Z.tableHeader, children: h.getHeaderGroups().map((m) => {
242
- var v, D;
241
+ /* @__PURE__ */ e("thead", { className: Z.tableHeader, children: h.getHeaderGroups().map((v) => {
242
+ var m, T;
243
243
  return /* @__PURE__ */ p("tr", { children: [
244
244
  l && /* @__PURE__ */ e(
245
245
  "th",
@@ -252,13 +252,13 @@ function ko({
252
252
  vt,
253
253
  {
254
254
  id: "selectAll",
255
- checked: (o == null ? void 0 : o.length) === ((D = (v = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : v.rows) == null ? void 0 : D.length),
255
+ checked: (o == null ? void 0 : o.length) === ((T = (m = h == null ? void 0 : h.getCoreRowModel()) == null ? void 0 : m.rows) == null ? void 0 : T.length),
256
256
  onChange: w
257
257
  }
258
258
  )
259
259
  }
260
260
  ),
261
- m.headers.map((S, I) => {
261
+ v.headers.map((S, j) => {
262
262
  var b;
263
263
  const y = S.column.columnDef.meta;
264
264
  return /* @__PURE__ */ e(
@@ -268,10 +268,10 @@ function ko({
268
268
  className: n(
269
269
  Z.headerCell,
270
270
  y == null ? void 0 : y.headerClass,
271
- S.index === m.headers.length - 1 && "rounded-r-[10px]",
272
- !l && I === 0 && Z.firstHeaderCell
271
+ S.index === v.headers.length - 1 && "rounded-r-[10px]",
272
+ !l && j === 0 && Z.firstHeaderCell
273
273
  ),
274
- onClick: () => (y == null ? void 0 : y.isSortable) && s(S.column.id),
274
+ onClick: () => (y == null ? void 0 : y.isSortable) && g(S.column.id),
275
275
  children: /* @__PURE__ */ p("div", { className: Z.headerText, children: [
276
276
  lt(
277
277
  S.column.columnDef.header,
@@ -291,17 +291,17 @@ function ko({
291
291
  S.id
292
292
  );
293
293
  })
294
- ] }, m.id);
294
+ ] }, v.id);
295
295
  }) }),
296
- /* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((m) => {
297
- var D;
298
- const v = (D = m.original) == null ? void 0 : D.id;
296
+ /* @__PURE__ */ e("tbody", { children: h.getRowModel().rows.map((v) => {
297
+ var T;
298
+ const m = (T = v.original) == null ? void 0 : T.id;
299
299
  return /* @__PURE__ */ p(
300
300
  "tr",
301
301
  {
302
302
  className: n(
303
303
  Z.row,
304
- (o == null ? void 0 : o.includes(v)) && "bg-gray-50"
304
+ (o == null ? void 0 : o.includes(m)) && "bg-gray-50"
305
305
  ),
306
306
  children: [
307
307
  l && /* @__PURE__ */ e(
@@ -314,23 +314,23 @@ function ko({
314
314
  children: /* @__PURE__ */ e(
315
315
  vt,
316
316
  {
317
- id: m.id,
318
- checked: o == null ? void 0 : o.includes(v),
319
- onChange: () => g(v)
317
+ id: v.id,
318
+ checked: o == null ? void 0 : o.includes(m),
319
+ onChange: () => s(m)
320
320
  }
321
321
  )
322
322
  }
323
323
  ),
324
- m.getVisibleCells().map((S, I, y) => {
324
+ v.getVisibleCells().map((S, j, y) => {
325
325
  const b = S.column.columnDef.meta;
326
326
  return /* @__PURE__ */ e(
327
327
  "td",
328
328
  {
329
329
  className: n(
330
330
  Z.bodyCell,
331
- (o == null ? void 0 : o.includes(m.id)) && "font-bold",
332
- I === y.length - 1 && "rounded-r-[10px]",
333
- !l && I === 0 && "px-8",
331
+ (o == null ? void 0 : o.includes(v.id)) && "font-bold",
332
+ j === y.length - 1 && "rounded-r-[10px]",
333
+ !l && j === 0 && "px-8",
334
334
  b == null ? void 0 : b.cellClass
335
335
  ),
336
336
  children: lt(
@@ -343,13 +343,13 @@ function ko({
343
343
  })
344
344
  ]
345
345
  },
346
- m.id
346
+ v.id
347
347
  );
348
348
  }) }),
349
- x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((m) => m.depth === 0).map((m) => /* @__PURE__ */ e("tr", { children: m.headers.map((v) => /* @__PURE__ */ e("td", { className: n(Z.footerCell), children: lt(
350
- v.column.columnDef.footer,
351
- v.getContext()
352
- ) }, v.id)) }, m.id)) })
349
+ x && /* @__PURE__ */ e("tfoot", { children: h.getFooterGroups().filter((v) => v.depth === 0).map((v) => /* @__PURE__ */ e("tr", { children: v.headers.map((m) => /* @__PURE__ */ e("td", { className: n(Z.footerCell), children: lt(
350
+ m.column.columnDef.footer,
351
+ m.getContext()
352
+ ) }, m.id)) }, v.id)) })
353
353
  ] })
354
354
  }
355
355
  )
@@ -371,7 +371,7 @@ const Z = {
371
371
  sortIcon: "transition-transform duration-200 fill-dark-50",
372
372
  info: "flex flex-col gap-1 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 items-center justify-center",
373
373
  infoText: "text-sm font-semibold text-dark-40/50 font-mono"
374
- }, cn = z.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), pn = z.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("ol", { ref: a, className: n(Ve.list, t), ...i })), hn = z.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("li", { ref: a, className: n(Ve.item, t), ...i })), un = z.forwardRef(
374
+ }, ln = L.forwardRef(({ ...t }, i) => /* @__PURE__ */ e("nav", { ref: i, "aria-label": "breadcrumb", ...t })), cn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("ol", { ref: a, className: n(Ve.list, t), ...i })), pn = L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e("li", { ref: a, className: n(Ve.item, t), ...i })), hn = L.forwardRef(
375
375
  ({ className: t, ...i }, a) => /* @__PURE__ */ e(
376
376
  Ke,
377
377
  {
@@ -381,7 +381,7 @@ const Z = {
381
381
  }
382
382
  )
383
383
  );
384
- z.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e(
384
+ L.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e(
385
385
  "span",
386
386
  {
387
387
  ref: a,
@@ -392,7 +392,7 @@ z.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ e(
392
392
  ...i
393
393
  }
394
394
  ));
395
- const fn = ({
395
+ const un = ({
396
396
  children: t,
397
397
  className: i,
398
398
  ...a
@@ -405,8 +405,8 @@ const fn = ({
405
405
  ...a,
406
406
  children: t
407
407
  }
408
- ), Co = ({ paths: t }) => /* @__PURE__ */ e(cn, { children: /* @__PURE__ */ e(pn, { children: t.map((i, a) => /* @__PURE__ */ e(
409
- bn,
408
+ ), ko = ({ paths: t }) => /* @__PURE__ */ e(ln, { children: /* @__PURE__ */ e(cn, { children: t.map((i, a) => /* @__PURE__ */ e(
409
+ fn,
410
410
  {
411
411
  label: i.label,
412
412
  href: i.href,
@@ -414,14 +414,14 @@ const fn = ({
414
414
  isLast: a === t.length - 1
415
415
  },
416
416
  i.label
417
- )) }) }), bn = ({
417
+ )) }) }), fn = ({
418
418
  href: t,
419
419
  isLast: i,
420
420
  label: a,
421
421
  disabled: o
422
422
  }) => /* @__PURE__ */ p(Ne, { children: [
423
- /* @__PURE__ */ e(hn, { children: /* @__PURE__ */ e(
424
- un,
423
+ /* @__PURE__ */ e(pn, { children: /* @__PURE__ */ e(
424
+ hn,
425
425
  {
426
426
  className: n(i && "pointer-events-none"),
427
427
  to: o ? "/" : t,
@@ -439,14 +439,14 @@ const fn = ({
439
439
  )
440
440
  }
441
441
  ) }),
442
- !i && /* @__PURE__ */ e(fn, { className: "text-dark-40/[.50] font-medium", children: "/" })
442
+ !i && /* @__PURE__ */ e(un, { className: "text-dark-40/[.50] font-medium", children: "/" })
443
443
  ] }), Ve = {
444
444
  list: "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2",
445
445
  item: "inline-flex items-center gap-1.5",
446
446
  link: "transition-colors hover:text-foreground",
447
447
  page: "font-normal text-foreground",
448
448
  separator: "[&>svg]:w-3.5 [&>svg]:h-3.5"
449
- }, To = ({
449
+ }, Co = ({
450
450
  disabled: t = !1,
451
451
  value: i,
452
452
  placeholder: a = "Введите пароль",
@@ -463,10 +463,10 @@ const fn = ({
463
463
  {
464
464
  label: c,
465
465
  iconPosition: "right",
466
- icon: d ? Or : Ar,
466
+ icon: d ? Mr : Or,
467
467
  onIconClick: u,
468
468
  classNames: {
469
- icon: xn.icon,
469
+ icon: bn.icon,
470
470
  label: h == null ? void 0 : h.label,
471
471
  parent: h == null ? void 0 : h.parent,
472
472
  base: h == null ? void 0 : h.base
@@ -483,9 +483,9 @@ const fn = ({
483
483
  type: d ? "text" : "password"
484
484
  }
485
485
  }
486
- ), xn = {
486
+ ), bn = {
487
487
  icon: "size-6 fill-gray-20"
488
- }, Do = X(
488
+ }, To = X(
489
489
  ({
490
490
  label: t,
491
491
  options: i,
@@ -495,45 +495,37 @@ const fn = ({
495
495
  isSearchable: c = !0,
496
496
  selectedItems: d,
497
497
  setSelectedItems: l,
498
- classNames: u
499
- }, h) => {
500
- const [f, s] = A(""), [x, g] = A(!1), w = ne(null), m = ne(null);
501
- zt(h, () => ({
502
- open: () => g(!0),
503
- close: () => g(!1),
504
- toggle: () => g((b) => !b),
498
+ classNames: u,
499
+ inputPlaceholder: h
500
+ }, f) => {
501
+ const [g, x] = A(""), [s, w] = A(!1), v = ne(null), m = ne(null);
502
+ zt(f, () => ({
503
+ open: () => w(!0),
504
+ close: () => w(!1),
505
+ toggle: () => w((b) => !b),
505
506
  focus: () => {
506
507
  var b;
507
- return (b = w.current) == null ? void 0 : b.focus();
508
+ return (b = v.current) == null ? void 0 : b.focus();
508
509
  }
509
510
  }), []);
510
- const v = (b) => {
511
- var j;
512
- const C = i.find((T) => T.value === b);
513
- C && (l((T) => T.some((R) => R.value === b) ? T : [...T, C]), s("")), (j = w.current) == null || j.focus();
514
- }, D = (b, C) => {
515
- var j;
516
- C.stopPropagation(), l(d.filter((T) => T.value !== b)), (j = w.current) == null || j.focus();
517
- }, S = (b) => {
518
- s(b.target.value.toLowerCase());
519
- }, I = () => {
520
- var C;
521
- if (!f.trim()) return;
522
- if (!i.find(
523
- (j) => j.label.toLowerCase() === f
524
- )) {
525
- const j = {
526
- value: String(i.length + 1),
527
- label: f
528
- };
529
- i.push(j), s("");
530
- }
531
- (C = w.current) == null || C.focus();
511
+ const T = (b) => {
512
+ var D;
513
+ const C = i.find((I) => I.value === b);
514
+ if (!C) return;
515
+ const W = d.some((I) => I.value === b);
516
+ l(
517
+ W ? d.filter((I) => I.value !== b) : [...d, C]
518
+ ), x(""), (D = v.current) == null || D.focus();
519
+ }, S = (b, C) => {
520
+ var W;
521
+ C.stopPropagation(), l(d.filter((D) => D.value !== b)), (W = v.current) == null || W.focus();
522
+ }, j = (b) => {
523
+ x(b.target.value.toLowerCase());
532
524
  }, y = i.filter(
533
- (b) => b.label.toLowerCase().includes(f)
525
+ (b) => b.label.toLowerCase().includes(g)
534
526
  );
535
527
  return /* @__PURE__ */ p("div", { className: n("flex flex-col", u == null ? void 0 : u.wrapper), children: [
536
- /* @__PURE__ */ p("div", { className: $.labelWrapper, children: [
528
+ /* @__PURE__ */ p("div", { className: R.labelWrapper, children: [
537
529
  !!t && /* @__PURE__ */ e(ee, { disabled: o, className: u == null ? void 0 : u.label, children: t }),
538
530
  r === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
539
531
  ] }),
@@ -541,10 +533,10 @@ const fn = ({
541
533
  ae,
542
534
  {
543
535
  modal: !1,
544
- open: x,
536
+ open: s,
545
537
  onOpenChange: () => {
546
538
  var b;
547
- o || ((b = w.current) == null || b.focus(), g(!x));
539
+ o || ((b = v.current) == null || b.focus(), w(!s));
548
540
  },
549
541
  children: [
550
542
  /* @__PURE__ */ e(
@@ -554,23 +546,23 @@ const fn = ({
554
546
  disabled: o,
555
547
  "data-testid": "dropdown-trigger",
556
548
  className: n(
557
- $.trigger,
549
+ R.trigger,
558
550
  {
559
- [$.hoverTrigger]: !o,
560
- [$.status.danger]: r === "danger",
561
- [$.focusTrigger]: x || d.length > 0,
551
+ [R.hoverTrigger]: !o,
552
+ [R.status.danger]: r === "danger",
553
+ [R.focusTrigger]: s || d.length > 0,
562
554
  "pl-1.5 pr-3.5 py-[5px]": d.length > 0,
563
- [$.disabled.trigger]: o
555
+ [R.disabled.trigger]: o
564
556
  },
565
557
  u == null ? void 0 : u.trigger
566
558
  ),
567
- children: /* @__PURE__ */ p("div", { className: $.selectedItems, children: [
559
+ children: /* @__PURE__ */ p("div", { className: R.selectedItems, children: [
568
560
  d.length === 0 && /* @__PURE__ */ e(
569
561
  k,
570
562
  {
571
563
  className: n(
572
- $.text,
573
- o && $.disabled.text
564
+ R.text,
565
+ o && R.disabled.text
574
566
  ),
575
567
  children: a
576
568
  }
@@ -578,12 +570,12 @@ const fn = ({
578
570
  d.map((b) => /* @__PURE__ */ p(
579
571
  "div",
580
572
  {
581
- className: $.selectedItem,
573
+ className: R.selectedItem,
582
574
  children: [
583
575
  /* @__PURE__ */ e(
584
576
  k,
585
577
  {
586
- className: $.selectedItemText,
578
+ className: R.selectedItemText,
587
579
  variant: "p",
588
580
  children: b.label
589
581
  }
@@ -591,13 +583,13 @@ const fn = ({
591
583
  /* @__PURE__ */ e(
592
584
  "button",
593
585
  {
594
- onClick: (C) => D(b.value, C),
586
+ onClick: (C) => S(b.value, C),
595
587
  onPointerDownCapture: (C) => C.stopPropagation(),
596
588
  "aria-label": "Close",
597
589
  children: /* @__PURE__ */ e(
598
590
  Ue,
599
591
  {
600
- className: $.closeIcon,
592
+ className: R.closeIcon,
601
593
  width: 12,
602
594
  height: 12,
603
595
  viewBox: "0 0 20 20"
@@ -616,71 +608,59 @@ const fn = ({
616
608
  height: 20,
617
609
  viewBox: "0 0 20 20",
618
610
  className: n(
619
- $.arrowIcon,
620
- x && "-rotate-180"
611
+ R.arrowIcon,
612
+ s && "-rotate-180"
621
613
  )
622
614
  }
623
615
  )
624
616
  ] })
625
617
  }
626
618
  ),
627
- /* @__PURE__ */ e("div", { ref: m, children: /* @__PURE__ */ p(
619
+ /* @__PURE__ */ e("div", { ref: m, className: "relative z-50", children: /* @__PURE__ */ p(
628
620
  le,
629
621
  {
630
622
  container: m.current,
631
623
  style: { minWidth: "var(--radix-popper-anchor-width)" },
632
- className: n($.options),
624
+ className: n(R.options),
633
625
  children: [
634
- /* @__PURE__ */ e(k, { className: "text-dark-40 font-mono mb-[18px] font-medium", children: t }),
635
- c && /* @__PURE__ */ p("div", { className: $.wrapperInput, children: [
636
- /* @__PURE__ */ e(
637
- "input",
638
- {
639
- ref: w,
640
- onChange: S,
641
- value: f,
642
- autoFocus: !0,
643
- className: $.input,
644
- placeholder: "Тип договора"
645
- }
646
- ),
647
- /* @__PURE__ */ e(
648
- ur,
649
- {
650
- width: 20,
651
- height: 20,
652
- viewBox: "0 0 21 21",
653
- className: $.plusIcon,
654
- onClick: I
655
- }
656
- )
657
- ] }),
658
- y.length > 0 ? y.map((b, C, j) => /* @__PURE__ */ e(
659
- ln,
626
+ /* @__PURE__ */ e(k, { className: R.popoverLabel, children: t }),
627
+ c && /* @__PURE__ */ e("div", { className: R.wrapperInput, children: /* @__PURE__ */ e(
628
+ "input",
629
+ {
630
+ ref: v,
631
+ onChange: j,
632
+ value: g,
633
+ autoFocus: !0,
634
+ className: R.input,
635
+ placeholder: h ?? "Поиск..."
636
+ }
637
+ ) }),
638
+ y.length > 0 ? y.map((b, C, W) => /* @__PURE__ */ e(
639
+ dn,
660
640
  {
661
641
  id: b.value.toString(),
662
642
  "data-testid": "menuitemcheckbox",
663
- checked: d.some((T) => T.value === b.value),
664
- onChange: () => v(b.value),
665
- onClick: (T) => T.stopPropagation(),
643
+ checked: d.some((D) => D.value === b.value),
644
+ onChange: () => T(b.value),
645
+ onClick: (D) => D.stopPropagation(),
666
646
  className: n(
667
- $.option,
668
- j.length - 1 !== C && "mb-2.5"
647
+ R.option,
648
+ W.length - 1 !== C && "mb-2.5"
669
649
  ),
670
650
  label: b.label
671
651
  },
672
652
  b.value
673
- )) : /* @__PURE__ */ e("div", { className: $.noItemsFound, children: "No items found" }),
674
- /* @__PURE__ */ p("div", { className: $.buttons, children: [
653
+ )) : /* @__PURE__ */ e("div", { className: R.noItemsFound, children: "No items found" }),
654
+ /* @__PURE__ */ p("div", { className: R.buttons, children: [
675
655
  /* @__PURE__ */ e(
676
656
  M,
677
657
  {
678
658
  variant: "secondary",
679
659
  className: n(
680
- $.button.base,
681
- $.button.cancel
660
+ R.button.base,
661
+ R.button.cancel
682
662
  ),
683
- onClick: () => g(!1),
663
+ onClick: () => w(!1),
684
664
  children: "Отмена"
685
665
  }
686
666
  ),
@@ -689,11 +669,11 @@ const fn = ({
689
669
  {
690
670
  variant: "primary",
691
671
  className: n(
692
- $.button.base,
693
- $.button.save
672
+ R.button.base,
673
+ R.button.save
694
674
  ),
695
675
  isShadow: !0,
696
- onClick: () => g(!1),
676
+ onClick: () => w(!1),
697
677
  children: "Сохранить"
698
678
  }
699
679
  )
@@ -706,7 +686,7 @@ const fn = ({
706
686
  )
707
687
  ] });
708
688
  }
709
- ), $ = {
689
+ ), R = {
710
690
  trigger: "w-full bg-gray-50 z-10 rounded-[10px] border border-gray-50 px-3.5 py-3",
711
691
  labelWrapper: "flex items-center gap-2 mb-2",
712
692
  text: "text-dark-40/50 font-mono text-sm leading-none",
@@ -721,7 +701,7 @@ const fn = ({
721
701
  arrowIcon: "ml-auto fill-dark-40/[.40] rounded hover:cursor-pointer transition-transform durantion-300",
722
702
  wrapperInput: "flex align-items relative",
723
703
  input: "w-full bg-gray-50 outline-none px-4 py-2 text-sm rounded-[10px] mb-5 placeholder:text-dark-40/[.40]",
724
- plusIcon: "text-dark-40/50 absolute top-2 right-2.5 hover:cursor-pointer",
704
+ popoverLabel: "text-dark-40 font-mono mb-[18px] font-medium",
725
705
  noItemsFound: "p-2 text-sm text-gray-500",
726
706
  buttons: "flex align-items justify-end gap-[15px] mt-[30px]",
727
707
  button: {
@@ -736,7 +716,7 @@ const fn = ({
736
716
  status: {
737
717
  danger: "border-danger-20 ring-2 ring-danger-10/[.20] hover:border-danger-10"
738
718
  }
739
- }, gn = X(
719
+ }, xn = X(
740
720
  ({
741
721
  value: t,
742
722
  onChange: i,
@@ -749,27 +729,27 @@ const fn = ({
749
729
  searchResults: u,
750
730
  onResultClick: h,
751
731
  isSearchIcon: f = !0,
752
- isSearchResultDisabled: s = !0,
732
+ isSearchResultDisabled: g = !0,
753
733
  isLoading: x = !1,
754
- classNames: g,
734
+ classNames: s,
755
735
  ...w
756
- }, m) => {
757
- const [v, D] = A({
736
+ }, v) => {
737
+ const [m, T] = A({
758
738
  id: "",
759
739
  label: ""
760
- }), [S, I] = A(!1), [y, b] = A(!1), C = en(t, d);
740
+ }), [S, j] = A(!1), [y, b] = A(!1), C = Nr(t, d);
761
741
  ge(() => {
762
- I(!!C), l == null || l(C);
742
+ j(!!C), l == null || l(C);
763
743
  }, [C, l]);
764
- const j = te.base, T = te.hover, W = te.focus, { focusWithin: R } = te, G = te.disabled, _ = te.input, E = te.button, ce = te.filterIcon, O = te.dropdown, J = te.popover, xe = te.emptyPopover, oe = te.options, cr = ({ title: De, items: Ae }) => /* @__PURE__ */ p(pr, { children: [
744
+ const W = te.base, D = te.hover, I = te.focus, { focusWithin: z } = te, G = te.disabled, _ = te.input, E = te.button, ce = te.filterIcon, O = te.dropdown, J = te.popover, xe = te.emptyPopover, oe = te.options, cr = ({ title: De, items: Ae }) => /* @__PURE__ */ p(pr, { children: [
765
745
  /* @__PURE__ */ e(k, { className: O.typeFilter, children: De }),
766
746
  /* @__PURE__ */ e("div", { className: oe.items, children: Ae == null ? void 0 : Ae.map((qe) => /* @__PURE__ */ e(
767
747
  k,
768
748
  {
769
- onClick: () => D(qe),
749
+ onClick: () => T(qe),
770
750
  className: n(
771
751
  oe.itemsText,
772
- qe.id === v.id && "before:bg-dark-10 !font-bold"
752
+ qe.id === m.id && "before:bg-dark-10 !font-bold"
773
753
  ),
774
754
  children: qe.label
775
755
  },
@@ -780,12 +760,12 @@ const fn = ({
780
760
  "div",
781
761
  {
782
762
  className: n(
783
- j,
784
- !a && R,
785
- (y || S) && !a && W,
786
- !(y || S) && !a && T,
763
+ W,
764
+ !a && z,
765
+ (y || S) && !a && I,
766
+ !(y || S) && !a && D,
787
767
  a && G,
788
- g == null ? void 0 : g.base
768
+ s == null ? void 0 : s.base
789
769
  ),
790
770
  children: [
791
771
  /* @__PURE__ */ p(nt, { open: y, onOpenChange: b, children: [
@@ -798,7 +778,7 @@ const fn = ({
798
778
  type: "button",
799
779
  className: "outline-none",
800
780
  children: /* @__PURE__ */ e(
801
- Kr,
781
+ Er,
802
782
  {
803
783
  width: 14,
804
784
  height: 14,
@@ -819,7 +799,7 @@ const fn = ({
819
799
  sideOffset: 18,
820
800
  alignOffset: -12,
821
801
  onInteractOutside: (De) => De.preventDefault(),
822
- className: n(O.content, g == null ? void 0 : g.dropdown),
802
+ className: n(O.content, s == null ? void 0 : s.dropdown),
823
803
  style: { minWidth: "var(--radix-popper-anchor-width)" },
824
804
  children: [
825
805
  /* @__PURE__ */ e("div", { className: O.wrapperModule, children: /* @__PURE__ */ e(cr, { title: "Поиск по модулям", items: r }) }),
@@ -830,7 +810,7 @@ const fn = ({
830
810
  variant: "secondary",
831
811
  className: n(E.base, E.cancel),
832
812
  onClick: () => {
833
- D({ label: "", id: "" }), b(!1);
813
+ T({ label: "", id: "" }), b(!1);
834
814
  },
835
815
  children: "Отмена"
836
816
  }
@@ -839,7 +819,7 @@ const fn = ({
839
819
  M,
840
820
  {
841
821
  onClick: () => {
842
- c && c(v), b(!1);
822
+ c && c(m), b(!1);
843
823
  },
844
824
  className: n(E.base, E.save),
845
825
  children: "Сохранить"
@@ -857,12 +837,12 @@ const fn = ({
857
837
  {
858
838
  ...w,
859
839
  role: "searchbox",
860
- ref: m,
840
+ ref: v,
861
841
  value: t,
862
842
  type: "text",
863
843
  placeholder: "Поиск",
864
844
  onChange: i,
865
- className: n(_.base, g == null ? void 0 : g.input),
845
+ className: n(_.base, s == null ? void 0 : s.input),
866
846
  disabled: a
867
847
  }
868
848
  ),
@@ -876,7 +856,7 @@ const fn = ({
876
856
  }
877
857
  )
878
858
  ] }) }),
879
- !s && /* @__PURE__ */ e(
859
+ !g && /* @__PURE__ */ e(
880
860
  le,
881
861
  {
882
862
  align: "end",
@@ -884,7 +864,7 @@ const fn = ({
884
864
  sideOffset: 18,
885
865
  alignOffset: o ? -42 : -76,
886
866
  style: { minWidth: "var(--radix-popper-anchor-width)" },
887
- className: n(J.content, g == null ? void 0 : g.popover),
867
+ className: n(J.content, s == null ? void 0 : s.popover),
888
868
  children: x ? /* @__PURE__ */ e("div", { className: xe.wrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }) : u && (u == null ? void 0 : u.length) > 0 ? /* @__PURE__ */ p("div", { className: J.wrapper, children: [
889
869
  /* @__PURE__ */ p(k, { className: J.title, children: [
890
870
  "Результаты (",
@@ -901,7 +881,7 @@ const fn = ({
901
881
  k,
902
882
  {
903
883
  onClick: () => {
904
- h == null || h(De), I(!1);
884
+ h == null || h(De), j(!1);
905
885
  },
906
886
  className: J.item,
907
887
  children: De
@@ -1020,8 +1000,8 @@ const fn = ({
1020
1000
  fullName: "text-sm text-dark-40 font-bold flex items-end gap-1",
1021
1001
  jobTitle: "text-xs text-dark-40/50 font-medium",
1022
1002
  subText: "text-xs text-dark-40/50 font-normal"
1023
- }, sn = ({ 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: [
1024
- /* @__PURE__ */ e(fr, { width: 17, height: 22, viewBox: "0 0 17 22" }),
1003
+ }, gn = ({ 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: [
1004
+ /* @__PURE__ */ e(ur, { width: 17, height: 22, viewBox: "0 0 17 22" }),
1025
1005
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-y-1 justify-start ml-1", children: [
1026
1006
  /* @__PURE__ */ e("span", { className: "text-xs text-dark-30 font-medium leading-none truncate max-w-10", children: t.name }),
1027
1007
  /* @__PURE__ */ e("span", { className: "text-start text-xs font-medium text-gray-30 leading-none", children: wt(t.size) })
@@ -1036,7 +1016,7 @@ const fn = ({
1036
1016
  viewBox: "0 0 20 20"
1037
1017
  }
1038
1018
  )
1039
- ] }), { Root: vn } = tr, So = z.forwardRef(
1019
+ ] }), { Root: sn } = tr, Do = L.forwardRef(
1040
1020
  ({
1041
1021
  id: t,
1042
1022
  files: i = [],
@@ -1049,14 +1029,14 @@ const fn = ({
1049
1029
  status: u,
1050
1030
  disabled: h = !1,
1051
1031
  ...f
1052
- }, s) => {
1053
- const [x, g] = z.useState(!1), w = z.useRef(null), m = me.root, v = me.input, D = me.icon, S = me.placeholder, I = me.list, y = me.status, b = () => {
1054
- var j;
1055
- h || (g(!0), (j = w.current) == null || j.click());
1032
+ }, g) => {
1033
+ const [x, s] = L.useState(!1), w = L.useRef(null), v = me.root, m = me.input, T = me.icon, S = me.placeholder, j = me.list, y = me.status, b = () => {
1034
+ var W;
1035
+ h || (s(!0), (W = w.current) == null || W.click());
1056
1036
  }, C = () => {
1057
- g(!1);
1037
+ s(!1);
1058
1038
  };
1059
- return /* @__PURE__ */ p("div", { className: n(m, l == null ? void 0 : l.root), children: [
1039
+ return /* @__PURE__ */ p("div", { className: n(v, l == null ? void 0 : l.root), children: [
1060
1040
  /* @__PURE__ */ p("div", { className: me.label.wrapper, children: [
1061
1041
  !!a && /* @__PURE__ */ e(
1062
1042
  ee,
@@ -1070,17 +1050,17 @@ const fn = ({
1070
1050
  u === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
1071
1051
  ] }),
1072
1052
  /* @__PURE__ */ p(
1073
- vn,
1053
+ sn,
1074
1054
  {
1075
- ref: s,
1055
+ ref: g,
1076
1056
  onClick: b,
1077
1057
  pressed: x,
1078
- onPressedChange: g,
1058
+ onPressedChange: s,
1079
1059
  onBlur: C,
1080
1060
  className: n(
1081
- v.base,
1082
- !h && v.pressed,
1083
- !h && v.hover,
1061
+ m.base,
1062
+ !h && m.pressed,
1063
+ !h && m.hover,
1084
1064
  !h && !!u && y.danger,
1085
1065
  l == null ? void 0 : l.input,
1086
1066
  {
@@ -1097,30 +1077,30 @@ const fn = ({
1097
1077
  type: "file",
1098
1078
  multiple: r,
1099
1079
  accept: "application/pdf, .doc, .docx, .xls, .xlsx",
1100
- onChange: (j) => {
1101
- c(j), j.target.value = "";
1080
+ onChange: (W) => {
1081
+ c(W), W.target.value = "";
1102
1082
  },
1103
1083
  className: "hidden",
1104
1084
  ...f
1105
1085
  }
1106
1086
  ),
1107
- i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: I, children: i.map((j) => /* @__PURE__ */ e(
1108
- sn,
1087
+ i.length > 0 ? /* @__PURE__ */ e("ul", { role: "listbox", className: j, children: i.map((W) => /* @__PURE__ */ e(
1088
+ gn,
1109
1089
  {
1110
- file: j,
1111
- onClick: (T) => {
1112
- T.stopPropagation(), d == null || d(j.id);
1090
+ file: W,
1091
+ onClick: (D) => {
1092
+ D.stopPropagation(), d == null || d(W.id);
1113
1093
  }
1114
1094
  },
1115
- j.id
1116
- )) }) : /* @__PURE__ */ p(z.Fragment, { children: [
1095
+ W.id
1096
+ )) }) : /* @__PURE__ */ p(L.Fragment, { children: [
1117
1097
  /* @__PURE__ */ e(
1118
- br,
1098
+ fr,
1119
1099
  {
1120
1100
  "data-testid": "file-upload-icon",
1121
1101
  width: 16,
1122
1102
  height: 21,
1123
- className: D
1103
+ className: T
1124
1104
  }
1125
1105
  ),
1126
1106
  /* @__PURE__ */ e("span", { className: S, children: o })
@@ -1146,7 +1126,7 @@ const fn = ({
1146
1126
  status: {
1147
1127
  danger: "bg-white border-danger-10 ring-2 ring-danger-10/[.20] hover:border-danger-10"
1148
1128
  }
1149
- }, Bo = ({
1129
+ }, So = ({
1150
1130
  comments: t = [],
1151
1131
  emptyText: i = "Комментариев нет...",
1152
1132
  variant: a = "comment",
@@ -1168,7 +1148,7 @@ const fn = ({
1168
1148
  }
1169
1149
  )),
1170
1150
  t.map(
1171
- ({ id: l, avatarSrc: u, fullName: h, role: f, comment: s, date: x, time: g, stars: w = 0 }) => /* @__PURE__ */ p("div", { className: U.wrapper, children: [
1151
+ ({ id: l, avatarSrc: u, fullName: h, role: f, comment: g, date: x, time: s, stars: w = 0 }) => /* @__PURE__ */ p("div", { className: U.wrapper, children: [
1172
1152
  /* @__PURE__ */ e(
1173
1153
  St,
1174
1154
  {
@@ -1217,16 +1197,16 @@ const fn = ({
1217
1197
  }
1218
1198
  }
1219
1199
  ),
1220
- /* @__PURE__ */ e(k, { variant: "p", className: U.commentText, children: s }),
1200
+ /* @__PURE__ */ e(k, { variant: "p", className: U.commentText, children: g }),
1221
1201
  /* @__PURE__ */ p(k, { variant: "span", className: U.commentDate, children: [
1222
1202
  x,
1223
1203
  "   ",
1224
- g
1204
+ s
1225
1205
  ] }),
1226
1206
  c && /* @__PURE__ */ e(
1227
1207
  yt,
1228
1208
  {
1229
- icon: Fr,
1209
+ icon: Ar,
1230
1210
  shape: "circle",
1231
1211
  onClick: () => c(l),
1232
1212
  classNames: {
@@ -1288,7 +1268,7 @@ const fn = ({
1288
1268
  }, ht = (t) => {
1289
1269
  const i = t.getDate().toString().padStart(2, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getFullYear();
1290
1270
  return `${i}/${a}/${o}`;
1291
- }, mn = (t) => {
1271
+ }, vn = (t) => {
1292
1272
  const i = t.getFullYear(), a = t.getMonth(), o = new Date(i, a, 1), c = new Date(i, a + 1, 0).getDate();
1293
1273
  let d = o.getDay();
1294
1274
  d = d === 0 ? 6 : d - 1;
@@ -1303,15 +1283,15 @@ const fn = ({
1303
1283
  for (let h = 1; h <= u; h++)
1304
1284
  l.push({ date: new Date(i, a + 1, h), isCurrentMonth: !1 });
1305
1285
  return l;
1306
- }, wn = /* @__PURE__ */ new Date(), yn = (t) => t.toDateString() === wn.toDateString(), kn = (t) => {
1286
+ }, mn = /* @__PURE__ */ new Date(), wn = (t) => t.toDateString() === mn.toDateString(), yn = (t) => {
1307
1287
  const i = t.getDay();
1308
1288
  return i === 0 || i === 6;
1309
- }, Cn = (t, i) => i && t.toDateString() === i.toDateString(), Tn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
1289
+ }, kn = (t, i) => i && t.toDateString() === i.toDateString(), Cn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
1310
1290
  (t) => ({
1311
1291
  label: t.toString(),
1312
1292
  value: t.toString()
1313
1293
  })
1314
- ), Dn = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Sn = [
1294
+ ), Tn = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Dn = [
1315
1295
  "Январь",
1316
1296
  "Февраль",
1317
1297
  "Март",
@@ -1324,7 +1304,7 @@ const fn = ({
1324
1304
  "Октябрь",
1325
1305
  "Ноябрь",
1326
1306
  "Декабрь"
1327
- ], Bn = (t) => {
1307
+ ], Sn = (t) => {
1328
1308
  if (/^\d{4}-\d{2}-\d{2}$/.test(t))
1329
1309
  return new Date(t);
1330
1310
  if (/^\d{2}\.\d{2}\.\d{4}$/.test(t)) {
@@ -1336,25 +1316,25 @@ const fn = ({
1336
1316
  return new Date(o, a - 1, i);
1337
1317
  }
1338
1318
  return null;
1339
- }, In = (t, i, a = /* @__PURE__ */ new Date(), o) => {
1340
- const r = i ? Bn(i) : null;
1341
- return mn(a).map((c, d) => {
1319
+ }, Bn = (t, i, a = /* @__PURE__ */ new Date(), o) => {
1320
+ const r = i ? Sn(i) : null;
1321
+ return vn(a).map((c, d) => {
1342
1322
  const { date: l, isCurrentMonth: u } = c, h = l.getDate(), f = r ? l <= r : !1;
1343
- let s = B.dayButton;
1344
- return f ? s += ` ${B.dayDisabled}` : u ? Cn(l, o ? new Date(o) : void 0) ? s += ` ${B.daySelected}` : yn(l) ? s += ` ${B.dayToday}` : kn(l) ? s += ` ${B.dayWeekend}` : s += ` ${B.dayNormal}` : s += ` ${B.dayOutside}`, /* @__PURE__ */ e(
1323
+ let g = B.dayButton;
1324
+ return f ? g += ` ${B.dayDisabled}` : u ? kn(l, o ? new Date(o) : void 0) ? g += ` ${B.daySelected}` : wn(l) ? g += ` ${B.dayToday}` : yn(l) ? g += ` ${B.dayWeekend}` : g += ` ${B.dayNormal}` : g += ` ${B.dayOutside}`, /* @__PURE__ */ e(
1345
1325
  "button",
1346
1326
  {
1347
1327
  onClick: (x) => {
1348
1328
  x.stopPropagation(), x.preventDefault(), f || t(l);
1349
1329
  },
1350
1330
  disabled: f,
1351
- className: s,
1331
+ className: g,
1352
1332
  children: h
1353
1333
  },
1354
1334
  d
1355
1335
  );
1356
1336
  });
1357
- }, Io = ({
1337
+ }, Bo = ({
1358
1338
  value: t,
1359
1339
  setValue: i,
1360
1340
  classNames: a,
@@ -1365,35 +1345,35 @@ const fn = ({
1365
1345
  }) => {
1366
1346
  const [l, u] = A(!1), [h, f] = A(
1367
1347
  t ? new Date(t) : /* @__PURE__ */ new Date()
1368
- ), [s, x] = A(
1348
+ ), [g, x] = A(
1369
1349
  t ? ht(new Date(t)) : ""
1370
1350
  );
1371
1351
  ge(() => {
1372
1352
  t ? (x(ht(new Date(t))), f(new Date(t))) : x("");
1373
1353
  }, [t]);
1374
- const g = ne(null), w = ne(null), m = (b) => {
1354
+ const s = ne(null), w = ne(null), v = (b) => {
1375
1355
  i(b.toISOString()), x(ht(b)), u(!1);
1376
- }, v = (b) => {
1356
+ }, m = (b) => {
1377
1357
  let C = b.target.value.replace(/\D/g, "");
1378
1358
  if (C.length >= 3 && C.length <= 4 ? C = `${C.slice(0, 2)}/${C.slice(2)}` : C.length > 4 && (C = `${C.slice(0, 2)}/${C.slice(2, 4)}/${C.slice(4, 8)}`), C.length > 10 && (C = C.slice(0, 10)), x(C), !C || C.trim() === "") {
1379
1359
  i(void 0);
1380
1360
  return;
1381
1361
  }
1382
- const j = C.split("/");
1383
- if (j.length === 3) {
1384
- const T = parseInt(j[0]), W = parseInt(j[1]) - 1, R = parseInt(j[2]);
1385
- if (T > 0 && T <= 31 && W >= 0 && W <= 11 && R > 1900) {
1386
- const G = new Date(R, W, T);
1387
- G.getDate() === T && G.getMonth() === W && G.getFullYear() === R && (i(G.toISOString()), f(new Date(R, W, 1)));
1362
+ const W = C.split("/");
1363
+ if (W.length === 3) {
1364
+ const D = parseInt(W[0]), I = parseInt(W[1]) - 1, z = parseInt(W[2]);
1365
+ if (D > 0 && D <= 31 && I >= 0 && I <= 11 && z > 1900) {
1366
+ const G = new Date(z, I, D);
1367
+ G.getDate() === D && G.getMonth() === I && G.getFullYear() === z && (i(G.toISOString()), f(new Date(z, I, 1)));
1388
1368
  }
1389
1369
  }
1390
- }, D = (b) => {
1370
+ }, T = (b) => {
1391
1371
  const C = new Date(h);
1392
1372
  C.setMonth(h.getMonth() + b), f(C);
1393
1373
  }, S = (b) => {
1394
1374
  const C = parseInt(b);
1395
1375
  f(new Date(h.getFullYear(), C, 1));
1396
- }, I = (b) => {
1376
+ }, j = (b) => {
1397
1377
  const C = parseInt(b);
1398
1378
  f(new Date(C, h.getMonth(), 1));
1399
1379
  }, y = (b) => {
@@ -1424,8 +1404,8 @@ const fn = ({
1424
1404
  "input",
1425
1405
  {
1426
1406
  type: "text",
1427
- value: s,
1428
- onChange: v,
1407
+ value: g,
1408
+ onChange: m,
1429
1409
  placeholder: "__ / __ / ____",
1430
1410
  disabled: o,
1431
1411
  className: n(
@@ -1477,7 +1457,7 @@ const fn = ({
1477
1457
  le,
1478
1458
  {
1479
1459
  role: "dialog",
1480
- ref: g,
1460
+ ref: s,
1481
1461
  container: w.current,
1482
1462
  className: B.popoverWrapper,
1483
1463
  children: /* @__PURE__ */ p("div", { children: [
@@ -1485,7 +1465,7 @@ const fn = ({
1485
1465
  /* @__PURE__ */ e(
1486
1466
  "button",
1487
1467
  {
1488
- onClick: () => D(-1),
1468
+ onClick: () => T(-1),
1489
1469
  className: B.navButton,
1490
1470
  children: /* @__PURE__ */ e(
1491
1471
  Ut,
@@ -1501,7 +1481,7 @@ const fn = ({
1501
1481
  /* @__PURE__ */ e(
1502
1482
  Te,
1503
1483
  {
1504
- options: Sn.map((b, C) => ({
1484
+ options: Dn.map((b, C) => ({
1505
1485
  label: b,
1506
1486
  value: C.toString()
1507
1487
  })),
@@ -1518,13 +1498,13 @@ const fn = ({
1518
1498
  /* @__PURE__ */ e(
1519
1499
  Te,
1520
1500
  {
1521
- options: Tn,
1501
+ options: Cn,
1522
1502
  classNames: {
1523
1503
  trigger: "w-28 h-8"
1524
1504
  },
1525
1505
  disabled: !1,
1526
1506
  onChange: (b) => {
1527
- I(b), u(!0);
1507
+ j(b), u(!0);
1528
1508
  },
1529
1509
  value: String(h.getFullYear())
1530
1510
  }
@@ -1533,7 +1513,7 @@ const fn = ({
1533
1513
  /* @__PURE__ */ e(
1534
1514
  "button",
1535
1515
  {
1536
- onClick: () => D(1),
1516
+ onClick: () => T(1),
1537
1517
  className: B.navButton,
1538
1518
  children: /* @__PURE__ */ e(
1539
1519
  Yt,
@@ -1546,8 +1526,8 @@ const fn = ({
1546
1526
  }
1547
1527
  )
1548
1528
  ] }),
1549
- /* @__PURE__ */ e("div", { className: B.weekHeader, children: Dn.map((b) => /* @__PURE__ */ e("div", { className: B.weekDay, children: b }, b)) }),
1550
- /* @__PURE__ */ e("div", { className: B.calendar, children: In(m, d, h, t) }),
1529
+ /* @__PURE__ */ e("div", { className: B.weekHeader, children: Tn.map((b) => /* @__PURE__ */ e("div", { className: B.weekDay, children: b }, b)) }),
1530
+ /* @__PURE__ */ e("div", { className: B.calendar, children: Bn(v, d, h, t) }),
1551
1531
  /* @__PURE__ */ e("div", { className: B.resetButtonWrapper, children: /* @__PURE__ */ e("button", { onClick: y, className: B.resetButton, children: "Сбросить" }) })
1552
1532
  ] })
1553
1533
  }
@@ -1624,16 +1604,16 @@ const fn = ({
1624
1604
  disabled: r = !1,
1625
1605
  classNames: c
1626
1606
  }) => {
1627
- const d = z.useId(), [l, u] = z.useState(/* @__PURE__ */ new Date()), [h, f] = z.useState(""), [s, x] = z.useState(!1), g = or({
1607
+ const d = L.useId(), [l, u] = L.useState(/* @__PURE__ */ new Date()), [h, f] = L.useState(""), [g, x] = L.useState(!1), s = or({
1628
1608
  mask: "__/__/____ - __/__/____",
1629
1609
  replacement: { _: /\d/ }
1630
- }), w = z.useRef(null), m = z.useRef(!1);
1631
- z.useEffect(() => {
1632
- if (m.current || !t || !(t.to && t.from)) return;
1610
+ }), w = L.useRef(null), v = L.useRef(!1);
1611
+ L.useEffect(() => {
1612
+ if (v.current || !t || !(t.to && t.from)) return;
1633
1613
  const y = t.from ? Q(new Date(t.from), N) : "", b = t.to ? Q(new Date(t.to), N) : "";
1634
1614
  f(b ? `${y} - ${b}` : `${y} - `);
1635
1615
  }, [t]);
1636
- const v = _n.base, D = (y) => {
1616
+ const m = In.base, T = (y) => {
1637
1617
  if (!y)
1638
1618
  f(""), i(void 0);
1639
1619
  else if (y.from && !y.to)
@@ -1649,19 +1629,19 @@ const fn = ({
1649
1629
  Q(new Date(y.from), N) + " - " + Q(new Date(y.to), N)
1650
1630
  );
1651
1631
  }, S = (y) => {
1652
- m.current = !0;
1653
- const { value: b } = y.target, [C, j] = b.split("-").map((R) => R.trim());
1632
+ v.current = !0;
1633
+ const { value: b } = y.target, [C, W] = b.split("-").map((z) => z.trim());
1654
1634
  f(b);
1655
- const T = mt(C, N, /* @__PURE__ */ new Date()), W = j ? mt(j, N, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
1656
- 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 });
1657
- }, I = () => {
1635
+ const D = mt(C, N, /* @__PURE__ */ new Date()), I = W ? mt(W, N, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date();
1636
+ We(D) && We(I) ? i({ from: D, to: I }) : We(D) && !We(I) ? i({ from: D, to: void 0 }) : i({ from: void 0, to: void 0 });
1637
+ }, j = () => {
1658
1638
  f(""), i(void 0), u(/* @__PURE__ */ new Date());
1659
1639
  };
1660
- return /* @__PURE__ */ e("div", { className: n(v.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ p(ae, { open: s, onOpenChange: x, children: [
1640
+ return /* @__PURE__ */ e("div", { className: n(m.wrapper, c == null ? void 0 : c.wrapper), children: /* @__PURE__ */ p(ae, { open: g, onOpenChange: x, children: [
1661
1641
  /* @__PURE__ */ e(de, { asChild: !0, role: "trigger", className: c == null ? void 0 : c.trigger, children: /* @__PURE__ */ e(
1662
1642
  Bt,
1663
1643
  {
1664
- ref: g,
1644
+ ref: s,
1665
1645
  label: a,
1666
1646
  inputProps: {
1667
1647
  id: d,
@@ -1672,7 +1652,7 @@ const fn = ({
1672
1652
  placeholder: "dd/mm/yyyy - dd/mm/yyyy",
1673
1653
  status: o,
1674
1654
  classNames: {
1675
- target: n(v.input, c == null ? void 0 : c.input)
1655
+ target: n(m.input, c == null ? void 0 : c.input)
1676
1656
  },
1677
1657
  disabled: r
1678
1658
  },
@@ -1696,10 +1676,10 @@ const fn = ({
1696
1676
  side: "bottom",
1697
1677
  align: "start",
1698
1678
  container: w.current,
1699
- className: n(v.content, c == null ? void 0 : c.content),
1679
+ className: n(m.content, c == null ? void 0 : c.content),
1700
1680
  children: [
1701
1681
  /* @__PURE__ */ e(
1702
- dn,
1682
+ an,
1703
1683
  {
1704
1684
  month: l,
1705
1685
  locale: pt,
@@ -1708,8 +1688,8 @@ const fn = ({
1708
1688
  numberOfMonths: 2,
1709
1689
  pagedNavigation: !0,
1710
1690
  selected: t,
1711
- onSelect: D,
1712
- classNames: Wn,
1691
+ onSelect: T,
1692
+ classNames: _n,
1713
1693
  components: {
1714
1694
  DayButton: (y) => {
1715
1695
  const b = jn(
@@ -1721,22 +1701,22 @@ const fn = ({
1721
1701
  "button",
1722
1702
  {
1723
1703
  onDoubleClick: () => {
1724
- D(void 0);
1704
+ T(void 0);
1725
1705
  },
1726
1706
  onClick: () => {
1727
1707
  const C = new Date(y.day.date);
1728
- t != null && t.from ? C <= t.from ? D({
1708
+ t != null && t.from ? C <= t.from ? T({
1729
1709
  from: C,
1730
1710
  to: t.from
1731
- }) : D({
1711
+ }) : T({
1732
1712
  from: t.from,
1733
1713
  to: C
1734
- }) : D({
1714
+ }) : T({
1735
1715
  from: C,
1736
1716
  to: void 0
1737
1717
  });
1738
1718
  },
1739
- className: v.selectButton,
1719
+ className: m.selectButton,
1740
1720
  children: /* @__PURE__ */ e(
1741
1721
  "div",
1742
1722
  {
@@ -1756,10 +1736,10 @@ const fn = ({
1756
1736
  const {
1757
1737
  className: b,
1758
1738
  onNextClick: C,
1759
- onPreviousClick: j,
1760
- nextMonth: T,
1761
- previousMonth: W
1762
- } = y, R = l, G = on(l, 1);
1739
+ onPreviousClick: W,
1740
+ nextMonth: D,
1741
+ previousMonth: I
1742
+ } = y, z = l, G = nn(l, 1);
1763
1743
  return /* @__PURE__ */ p(
1764
1744
  "div",
1765
1745
  {
@@ -1772,8 +1752,8 @@ const fn = ({
1772
1752
  /* @__PURE__ */ e(
1773
1753
  "button",
1774
1754
  {
1775
- onClick: j,
1776
- disabled: !W,
1755
+ onClick: W,
1756
+ disabled: !I,
1777
1757
  className: "flex items-center justify-center",
1778
1758
  children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1779
1759
  Ut,
@@ -1786,11 +1766,11 @@ const fn = ({
1786
1766
  ) })
1787
1767
  }
1788
1768
  ),
1789
- /* @__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: pt }) }) })
1769
+ /* @__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(z, "MMMM yyyy", { locale: pt }) }) })
1790
1770
  ] }),
1791
1771
  /* @__PURE__ */ p("div", { className: "flex items-center w-1/2", children: [
1792
1772
  /* @__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(G, "MMMM yyyy", { locale: pt }) }) }),
1793
- /* @__PURE__ */ e("button", { onClick: C, disabled: !T, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1773
+ /* @__PURE__ */ e("button", { onClick: C, disabled: !D, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1794
1774
  Yt,
1795
1775
  {
1796
1776
  width: 14,
@@ -1812,9 +1792,9 @@ const fn = ({
1812
1792
  {
1813
1793
  variant: "text",
1814
1794
  type: "button",
1815
- onClick: I,
1795
+ onClick: j,
1816
1796
  classNames: {
1817
- base: v.resetButton
1797
+ base: m.resetButton
1818
1798
  },
1819
1799
  children: "Сбросить"
1820
1800
  }
@@ -1823,7 +1803,7 @@ const fn = ({
1823
1803
  }
1824
1804
  ) })
1825
1805
  ] }) });
1826
- }, _n = {
1806
+ }, In = {
1827
1807
  base: {
1828
1808
  wrapper: "w-full h-max",
1829
1809
  input: "w-60 h-11 !text-base text-dark-30 font-mono font-medium",
@@ -1831,12 +1811,12 @@ const fn = ({
1831
1811
  selectButton: "flex items-center justify-center p-1",
1832
1812
  resetButton: "justify-start p-0 text-xs text-primary-10 font-mono underline underline-offset-[3px] hover:decoration-primary-10"
1833
1813
  }
1834
- }, Wn = {
1814
+ }, _n = {
1835
1815
  months: "[&>.monthContainer:nth-child(2)]:left-0 [&>.monthContainer:nth-child(3)]:right-0 relative",
1836
1816
  month: "monthContainer absolute",
1837
1817
  weekdays: "size-6",
1838
1818
  weekday: "text-sm text-dark-30 font-mono font-semibold"
1839
- }, Mn = ({
1819
+ }, Wn = ({
1840
1820
  triggerElement: t,
1841
1821
  mainUrl: i,
1842
1822
  options: a,
@@ -1846,15 +1826,15 @@ const fn = ({
1846
1826
  align: d = "start",
1847
1827
  classNames: l
1848
1828
  }) => {
1849
- const [u, h] = z.useState(), [f] = kt(), s = qt(), x = (v) => {
1850
- h(v), s(`${i}/${v.to}?${f.toString()}`);
1851
- }, g = _t.modal, w = g.item, m = _t.text;
1829
+ const [u, h] = L.useState(), [f] = kt(), g = qt(), x = (m) => {
1830
+ h(m), g(`${i}/${m.to}?${f.toString()}`);
1831
+ }, s = _t.modal, w = s.item, v = _t.text;
1852
1832
  return /* @__PURE__ */ p(nt, { open: o, onOpenChange: r, children: [
1853
1833
  /* @__PURE__ */ e(
1854
1834
  ot,
1855
1835
  {
1856
1836
  asChild: !0,
1857
- className: n(g.trigger, l == null ? void 0 : l.trigger),
1837
+ className: n(s.trigger, l == null ? void 0 : l.trigger),
1858
1838
  children: t
1859
1839
  }
1860
1840
  ),
@@ -1863,43 +1843,43 @@ const fn = ({
1863
1843
  {
1864
1844
  side: c,
1865
1845
  align: d,
1866
- className: n(g.content, l == null ? void 0 : l.content),
1867
- children: a == null ? void 0 : a.map((v) => {
1868
- const D = (u == null ? void 0 : u.id) === v.id;
1846
+ className: n(s.content, l == null ? void 0 : l.content),
1847
+ children: a == null ? void 0 : a.map((m) => {
1848
+ const T = (u == null ? void 0 : u.id) === m.id;
1869
1849
  return /* @__PURE__ */ e(
1870
1850
  "div",
1871
1851
  {
1872
1852
  className: n(
1873
1853
  "p-2",
1874
- D && w.active,
1875
- D && (l == null ? void 0 : l.item)
1854
+ T && w.active,
1855
+ T && (l == null ? void 0 : l.item)
1876
1856
  ),
1877
1857
  children: /* @__PURE__ */ p(
1878
1858
  Dt,
1879
1859
  {
1880
- onClick: () => x(v),
1860
+ onClick: () => x(m),
1881
1861
  className: n(
1882
- m.base,
1883
- D && "font-bold",
1884
- D && (l == null ? void 0 : l.text)
1862
+ v.base,
1863
+ T && "font-bold",
1864
+ T && (l == null ? void 0 : l.text)
1885
1865
  ),
1886
1866
  children: [
1887
1867
  /* @__PURE__ */ e(
1888
1868
  "span",
1889
1869
  {
1890
1870
  className: n(
1891
- m.dot,
1892
- D && "bg-primary-10",
1871
+ v.dot,
1872
+ T && "bg-primary-10",
1893
1873
  l == null ? void 0 : l.dot
1894
1874
  )
1895
1875
  }
1896
1876
  ),
1897
- /* @__PURE__ */ e("span", { children: v.label })
1877
+ /* @__PURE__ */ e("span", { children: m.label })
1898
1878
  ]
1899
1879
  }
1900
1880
  )
1901
1881
  },
1902
- v.id
1882
+ m.id
1903
1883
  );
1904
1884
  })
1905
1885
  }
@@ -1917,7 +1897,7 @@ const fn = ({
1917
1897
  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",
1918
1898
  dot: "inline-block w-[7px] h-[7px] bg-dark-30/[.15] rounded-full group-hover:bg-primary-20"
1919
1899
  }
1920
- }, _o = ({
1900
+ }, Io = ({
1921
1901
  title: t,
1922
1902
  description: i,
1923
1903
  files: a = [],
@@ -1927,7 +1907,7 @@ const fn = ({
1927
1907
  classNames: d
1928
1908
  }) => /* @__PURE__ */ p("div", { className: n(K.wrapper, d == null ? void 0 : d.wrapper), children: [
1929
1909
  t && /* @__PURE__ */ p("div", { className: K.header, children: [
1930
- /* @__PURE__ */ e(xr, { className: K.headerIcon, role: "img" }),
1910
+ /* @__PURE__ */ e(br, { className: K.headerIcon, role: "img" }),
1931
1911
  /* @__PURE__ */ p(k, { variant: "p", className: K.headerText, children: [
1932
1912
  t,
1933
1913
  "(",
@@ -2013,7 +1993,7 @@ const fn = ({
2013
1993
  htmlFor: "file-upload",
2014
1994
  className: n(K.target, d == null ? void 0 : d.target),
2015
1995
  children: [
2016
- /* @__PURE__ */ e(gr, { className: K.plusIcon, role: "img" }),
1996
+ /* @__PURE__ */ e(xr, { className: K.plusIcon, role: "img" }),
2017
1997
  /* @__PURE__ */ e(
2018
1998
  "input",
2019
1999
  {
@@ -2055,7 +2035,7 @@ const fn = ({
2055
2035
  plusIcon: "text-dark-40/[.30]",
2056
2036
  input: "hidden",
2057
2037
  description: "text-xs text-dark-40/[.80] mt-0.5 font-semibold"
2058
- }, Wo = ({
2038
+ }, _o = ({
2059
2039
  classNames: t,
2060
2040
  disabled: i,
2061
2041
  onChange: a,
@@ -2065,18 +2045,18 @@ const fn = ({
2065
2045
  icon: d,
2066
2046
  iconSizes: l
2067
2047
  }) => {
2068
- const [u, h] = A(!1), s = er(o)(c), x = ut.base, g = ut.disabled.trigger, w = ut.disabled.triggerText, m = ({
2069
- className: v,
2070
- text: D = ""
2048
+ const [u, h] = A(!1), g = er(o)(c), x = ut.base, s = ut.disabled.trigger, w = ut.disabled.triggerText, v = ({
2049
+ className: m,
2050
+ text: T = ""
2071
2051
  }) => /* @__PURE__ */ e(
2072
2052
  k,
2073
2053
  {
2074
2054
  className: n(
2075
2055
  x.placeholder,
2076
- v,
2056
+ m,
2077
2057
  i && w
2078
2058
  ),
2079
- children: D
2059
+ children: T
2080
2060
  }
2081
2061
  );
2082
2062
  return /* @__PURE__ */ p(nt, { open: u, onOpenChange: h, children: [
@@ -2087,7 +2067,7 @@ const fn = ({
2087
2067
  disabled: i,
2088
2068
  className: n(
2089
2069
  x.trigger,
2090
- i && g,
2070
+ i && s,
2091
2071
  t == null ? void 0 : t.trigger
2092
2072
  ),
2093
2073
  children: [
@@ -2099,16 +2079,16 @@ const fn = ({
2099
2079
  viewBox: l == null ? void 0 : l.viewBox,
2100
2080
  className: n(x.icon, t == null ? void 0 : t.icon)
2101
2081
  }
2102
- ) : /* @__PURE__ */ e(m, { text: "Сортировать:", className: x.label }),
2082
+ ) : /* @__PURE__ */ e(v, { text: "Сортировать:", className: x.label }),
2103
2083
  c ? /* @__PURE__ */ e(
2104
- m,
2084
+ v,
2105
2085
  {
2106
2086
  "data-testid": "dropdown-selected-option",
2107
- text: s == null ? void 0 : s.label,
2087
+ text: g == null ? void 0 : g.label,
2108
2088
  className: n(x.selected, t == null ? void 0 : t.selected)
2109
2089
  }
2110
2090
  ) : /* @__PURE__ */ e(
2111
- m,
2091
+ v,
2112
2092
  {
2113
2093
  text: r,
2114
2094
  className: n(x.placeholder, t == null ? void 0 : t.placeholder)
@@ -2121,7 +2101,7 @@ const fn = ({
2121
2101
  x.dropdownIcon,
2122
2102
  u && "rotate-180 transition-transform"
2123
2103
  ),
2124
- children: /* @__PURE__ */ e(sr, { className: "fill-dark-30" })
2104
+ children: /* @__PURE__ */ e(gr, { className: "fill-dark-30" })
2125
2105
  }
2126
2106
  )
2127
2107
  ]
@@ -2133,26 +2113,26 @@ const fn = ({
2133
2113
  className: n(x.content, t == null ? void 0 : t.content),
2134
2114
  align: "end",
2135
2115
  sideOffset: 1,
2136
- children: o && (o == null ? void 0 : o.map((v) => /* @__PURE__ */ e(
2116
+ children: o && (o == null ? void 0 : o.map((m) => /* @__PURE__ */ e(
2137
2117
  Dt,
2138
2118
  {
2139
2119
  className: x.items,
2140
- onClick: (D) => {
2141
- D.stopPropagation(), a(v.value), h(!1);
2120
+ onClick: (T) => {
2121
+ T.stopPropagation(), a(m.value), h(!1);
2142
2122
  },
2143
2123
  children: /* @__PURE__ */ e(
2144
2124
  k,
2145
2125
  {
2146
2126
  className: n(
2147
2127
  x.item,
2148
- c === v.value && "before:bg-dark-10",
2149
- c === v.value ? "font-semibold" : "font-regular"
2128
+ c === m.value && "before:bg-dark-10",
2129
+ c === m.value ? "font-semibold" : "font-regular"
2150
2130
  ),
2151
- children: v.label
2131
+ children: m.label
2152
2132
  }
2153
2133
  )
2154
2134
  },
2155
- v.value
2135
+ m.value
2156
2136
  )))
2157
2137
  }
2158
2138
  )
@@ -2175,7 +2155,7 @@ const fn = ({
2175
2155
  },
2176
2156
  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",
2177
2157
  hover: "hover:bg-primary-20 hover:border-primary-20"
2178
- }, On = ({
2158
+ }, Mn = ({
2179
2159
  photo: t,
2180
2160
  fullname: i,
2181
2161
  status: a,
@@ -2233,7 +2213,7 @@ const fn = ({
2233
2213
  notification: "flex items-center justify-center bg-primary-30 w-auto px-1 h-4 text-xs text-sidebar-10 rounded-full font-medium",
2234
2214
  fullName: "text-sm text-dark-40 mb-1 leading-none font-semibold",
2235
2215
  jobTitle: "text-xs text-dark-40/[.50] leading-none max-w-[126px] truncate font-medium"
2236
- }, Mo = X(
2216
+ }, Wo = X(
2237
2217
  ({ classNames: t, disabled: i, item: { icon: a, label: o = "" }, ...r }, c) => /* @__PURE__ */ p(
2238
2218
  "button",
2239
2219
  {
@@ -2299,10 +2279,10 @@ const fn = ({
2299
2279
  hover: {
2300
2280
  container: "hover:border-primary-20/[.30]"
2301
2281
  }
2302
- }, Oo = z.forwardRef(({ textareaProps: t, disabled: i, classNames: a, iconSizes: o, onIconClick: r }, c) => {
2303
- const d = Ze.base, l = Ze.button, u = (t == null ? void 0 : t.status) === "danger", h = z.useRef(null), f = (s) => {
2282
+ }, Mo = L.forwardRef(({ textareaProps: t, disabled: i, classNames: a, iconSizes: o, onIconClick: r }, c) => {
2283
+ const d = Ze.base, l = Ze.button, u = (t == null ? void 0 : t.status) === "danger", h = L.useRef(null), f = (g) => {
2304
2284
  var x;
2305
- s.key === "Enter" && (s.preventDefault(), (x = h.current) == null || x.click());
2285
+ g.key === "Enter" && (g.preventDefault(), (x = h.current) == null || x.click());
2306
2286
  };
2307
2287
  return /* @__PURE__ */ p("div", { className: n(Ze.parent, a == null ? void 0 : a.parent), children: [
2308
2288
  u && /* @__PURE__ */ e(se, { className: "fill-danger-10 mb-[5px]" }),
@@ -2329,7 +2309,7 @@ const fn = ({
2329
2309
  a == null ? void 0 : a.button
2330
2310
  ),
2331
2311
  children: /* @__PURE__ */ e(
2332
- vr,
2312
+ sr,
2333
2313
  {
2334
2314
  width: o == null ? void 0 : o.width,
2335
2315
  height: o == null ? void 0 : o.height,
@@ -2394,7 +2374,7 @@ const fn = ({
2394
2374
  ] })
2395
2375
  );
2396
2376
  ir.displayName = "RadioGroup";
2397
- const An = ({
2377
+ const On = ({
2398
2378
  openDropdown: t,
2399
2379
  setOpenDropdown: i,
2400
2380
  isExpanded: a,
@@ -2402,9 +2382,9 @@ const An = ({
2402
2382
  onSubNavClick: u
2403
2383
  }) => {
2404
2384
  const [h] = kt();
2405
- return /* @__PURE__ */ e(Lr, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(zr, { value: String(o), children: [
2385
+ return /* @__PURE__ */ e($r, { type: "single", collapsible: !0, children: /* @__PURE__ */ p(Lr, { value: String(o), children: [
2406
2386
  /* @__PURE__ */ p(
2407
- Hr,
2387
+ zr,
2408
2388
  {
2409
2389
  className: n(
2410
2390
  "justify-start gap-3 w-[247px] hover:cursor-pointer hover:bg-sidebar-40 rounded-[10px] hover:data-[state=open]:bg-dark-20",
@@ -2419,7 +2399,7 @@ const An = ({
2419
2399
  },
2420
2400
  children: [
2421
2401
  !!c && (a ? /* @__PURE__ */ e(c, { className: "fill-sidebar-10 shrink-0" }) : /* @__PURE__ */ e(
2422
- Mn,
2402
+ Wn,
2423
2403
  {
2424
2404
  triggerElement: /* @__PURE__ */ e(
2425
2405
  "div",
@@ -2460,26 +2440,26 @@ const An = ({
2460
2440
  ]
2461
2441
  }
2462
2442
  ),
2463
- a && /* @__PURE__ */ e(Ur, { className: "flex flex-col gap-[2.5px] items-start", children: l == null ? void 0 : l.map((f) => /* @__PURE__ */ e(
2443
+ a && /* @__PURE__ */ e(Hr, { className: "flex flex-col gap-[2.5px] items-start", children: l == null ? void 0 : l.map((f) => /* @__PURE__ */ e(
2464
2444
  Ct,
2465
2445
  {
2466
2446
  to: `${d}/${f == null ? void 0 : f.to}?${h.toString()}`,
2467
2447
  onClick: u,
2468
- className: ({ isActive: s }) => n(
2448
+ className: ({ isActive: g }) => n(
2469
2449
  'flex items-center w-full h-[51px] text-sm text-sidebar-10 font-mono font-medium leading-none hover:bg-sidebar-40 pl-[26px] py-3.5 rounded-[10px] before:content-[""] before:block before:bg-white before:w-2 before:h-2 before:rounded-full before:mr-4',
2470
- s && "text-primary-10 bg-sidebar-40 before:bg-primary-10"
2450
+ g && "text-primary-10 bg-sidebar-40 before:bg-primary-10"
2471
2451
  ),
2472
2452
  children: f.label
2473
2453
  },
2474
2454
  f.id
2475
2455
  )) })
2476
2456
  ] }) });
2477
- }, Ao = ({
2457
+ }, Oo = ({
2478
2458
  isExpanded: t = !0,
2479
2459
  navList: i,
2480
2460
  onCollapse: a
2481
2461
  }) => {
2482
- const [o, r] = z.useState(
2462
+ const [o, r] = L.useState(
2483
2463
  null
2484
2464
  ), c = Qe.root, d = Qe.header, l = Qe.body, u = Qe.logo;
2485
2465
  return /* @__PURE__ */ p(
@@ -2494,7 +2474,7 @@ const An = ({
2494
2474
  {
2495
2475
  className: n(d.base, t && d.expanded),
2496
2476
  children: [
2497
- /* @__PURE__ */ e(Ct, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(_r, {}) : /* @__PURE__ */ e(tn, {}) }),
2477
+ /* @__PURE__ */ e(Ct, { role: "link", to: "/", children: t ? /* @__PURE__ */ e(Ir, {}) : /* @__PURE__ */ e(en, {}) }),
2498
2478
  /* @__PURE__ */ e(
2499
2479
  M,
2500
2480
  {
@@ -2503,7 +2483,7 @@ const An = ({
2503
2483
  classNames: { base: "p-0" },
2504
2484
  onClick: a,
2505
2485
  children: /* @__PURE__ */ e(
2506
- rn,
2486
+ tn,
2507
2487
  {
2508
2488
  className: n(
2509
2489
  u,
@@ -2520,8 +2500,8 @@ const An = ({
2520
2500
  ),
2521
2501
  /* @__PURE__ */ e("div", { className: n(l.base, !t && l.expanded), children: i.map((h) => {
2522
2502
  var f;
2523
- return /* @__PURE__ */ e(z.Fragment, { children: (f = h.subItems) != null && f.length ? /* @__PURE__ */ e(
2524
- An,
2503
+ return /* @__PURE__ */ e(L.Fragment, { children: (f = h.subItems) != null && f.length ? /* @__PURE__ */ e(
2504
+ On,
2525
2505
  {
2526
2506
  item: h,
2527
2507
  isExpanded: t,
@@ -2531,7 +2511,7 @@ const An = ({
2531
2511
  )
2532
2512
  }
2533
2513
  ) : /* @__PURE__ */ e(
2534
- Un,
2514
+ Hn,
2535
2515
  {
2536
2516
  item: h,
2537
2517
  badge: h.badge,
@@ -2556,7 +2536,7 @@ const An = ({
2556
2536
  base: "px-[5px] py-4 w-auto flex flex-col gap-[2.5px] items-start transition-all duration-500",
2557
2537
  expanded: "w-16 items-center"
2558
2538
  }
2559
- }, Fo = ({
2539
+ }, Ao = ({
2560
2540
  options: t,
2561
2541
  selectedValue: i,
2562
2542
  onChange: a,
@@ -2624,7 +2604,7 @@ const An = ({
2624
2604
  root: "w-full h-full bg-sidebar-10 border-2 border-dark-30/[.15] rounded-[10px] p-4 flex flex-col overflow-hidden",
2625
2605
  optionsWrapper: "flex flex-col gap-3.5",
2626
2606
  error: "flex items-center justify-end text-xs animate-pulse text-danger-10 font-semibold"
2627
- }, Fn = [
2607
+ }, An = [
2628
2608
  {
2629
2609
  label: "10",
2630
2610
  value: "10"
@@ -2642,7 +2622,7 @@ const An = ({
2642
2622
  value: "100"
2643
2623
  }
2644
2624
  ];
2645
- function Rn(t, i) {
2625
+ function Fn(t, i) {
2646
2626
  if (i <= 10)
2647
2627
  return Array.from({ length: i }, (c, d) => d + 1);
2648
2628
  const a = [], o = Math.max(t - 2, 1), r = Math.min(t + 2, i);
@@ -2651,7 +2631,7 @@ function Rn(t, i) {
2651
2631
  c !== 1 && c !== i && a.push(c);
2652
2632
  return r < i - 1 && a.push("..."), i > 1 && a.push(i), a;
2653
2633
  }
2654
- const Ro = ({
2634
+ const Fo = ({
2655
2635
  currentPageIndex: t,
2656
2636
  onPageChange: i,
2657
2637
  totalPages: a,
@@ -2660,7 +2640,7 @@ const Ro = ({
2660
2640
  totalItems: c = 10,
2661
2641
  className: d
2662
2642
  }) => {
2663
- const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), s = Rn(t, a);
2643
+ const l = t === 1, u = t === a, h = (t - 1) * Number(o) + 1, f = Math.min(t * Number(o), c), g = Fn(t, a);
2664
2644
  return /* @__PURE__ */ p("div", { className: n(F.wrapper, d), children: [
2665
2645
  /* @__PURE__ */ p("div", { className: n(F.countWrapper.base), children: [
2666
2646
  /* @__PURE__ */ e("p", { className: n(F.countWrapper.text), children: "Отображено: " }),
@@ -2688,7 +2668,7 @@ const Ro = ({
2688
2668
  )
2689
2669
  },
2690
2670
  children: /* @__PURE__ */ e(
2691
- Wr,
2671
+ _r,
2692
2672
  {
2693
2673
  width: 28,
2694
2674
  height: 28,
@@ -2700,8 +2680,8 @@ const Ro = ({
2700
2680
  )
2701
2681
  }
2702
2682
  ),
2703
- /* @__PURE__ */ e("div", { className: n(F.nav.pageBtnWrapper), children: s.map(
2704
- (x, g) => x === "..." ? /* @__PURE__ */ e("span", { className: n(F.pageButton.base), children: "..." }, `dots-${g}`) : /* @__PURE__ */ e(
2683
+ /* @__PURE__ */ e("div", { className: n(F.nav.pageBtnWrapper), children: g.map(
2684
+ (x, s) => x === "..." ? /* @__PURE__ */ e("span", { className: n(F.pageButton.base), children: "..." }, `dots-${s}`) : /* @__PURE__ */ e(
2705
2685
  M,
2706
2686
  {
2707
2687
  onClick: () => i == null ? void 0 : i(x),
@@ -2736,7 +2716,7 @@ const Ro = ({
2736
2716
  )
2737
2717
  },
2738
2718
  children: /* @__PURE__ */ e(
2739
- Vr,
2719
+ Kr,
2740
2720
  {
2741
2721
  width: 28,
2742
2722
  height: 28,
@@ -2751,7 +2731,7 @@ const Ro = ({
2751
2731
  /* @__PURE__ */ e(
2752
2732
  Te,
2753
2733
  {
2754
- options: Fn,
2734
+ options: An,
2755
2735
  onChange: r,
2756
2736
  value: o,
2757
2737
  classNames: {
@@ -2799,7 +2779,7 @@ const Ro = ({
2799
2779
  mask: "+_______________",
2800
2780
  replacement: { _: /\d/ }
2801
2781
  }
2802
- }, $o = ({
2782
+ }, Ro = ({
2803
2783
  value: t = "",
2804
2784
  id: i,
2805
2785
  label: a,
@@ -2814,17 +2794,17 @@ const Ro = ({
2814
2794
  const f = Ht(
2815
2795
  () => Wt[d] || Wt.DEFAULT,
2816
2796
  [d]
2817
- ), s = or(f), [x, g] = A(
2797
+ ), g = or(f), [x, s] = A(
2818
2798
  () => ct(String(t), f)
2819
2799
  );
2820
2800
  ge(() => {
2821
- g(ct(String(t), f));
2801
+ s(ct(String(t), f));
2822
2802
  }, [t, f]);
2823
2803
  const w = (b) => {
2824
- const C = b.target.value.replace(/\D/g, ""), j = ct(C, f);
2825
- g(j), l == null || l(C);
2826
- }, m = ye.parent, v = ye.base, D = ye.hover, S = ye.focus, I = ye.disabled, y = c && ye.variants[c];
2827
- return /* @__PURE__ */ p("div", { className: n(m, u == null ? void 0 : u.parent), children: [
2804
+ const C = b.target.value.replace(/\D/g, ""), W = ct(C, f);
2805
+ s(W), l == null || l(C);
2806
+ }, v = ye.parent, m = ye.base, T = ye.hover, S = ye.focus, j = ye.disabled, y = c && ye.variants[c];
2807
+ return /* @__PURE__ */ p("div", { className: n(v, u == null ? void 0 : u.parent), children: [
2828
2808
  /* @__PURE__ */ p("div", { className: ye.title, children: [
2829
2809
  !!a && /* @__PURE__ */ e(
2830
2810
  ee,
@@ -2840,7 +2820,7 @@ const Ro = ({
2840
2820
  /* @__PURE__ */ e(
2841
2821
  "input",
2842
2822
  {
2843
- ref: s,
2823
+ ref: g,
2844
2824
  id: i,
2845
2825
  onChange: w,
2846
2826
  value: x,
@@ -2848,11 +2828,11 @@ const Ro = ({
2848
2828
  disabled: o,
2849
2829
  autoFocus: r,
2850
2830
  className: n(
2851
- v,
2852
- !o && D,
2831
+ m,
2832
+ !o && T,
2853
2833
  !o && S,
2854
2834
  !o && r && S,
2855
- o && I,
2835
+ o && j,
2856
2836
  c === "danger" && y,
2857
2837
  u == null ? void 0 : u.target
2858
2838
  ),
@@ -2870,7 +2850,7 @@ const Ro = ({
2870
2850
  variants: {
2871
2851
  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"
2872
2852
  }
2873
- }, { Root: $n } = tr, Lo = Lt.forwardRef(
2853
+ }, { Root: Rn } = tr, $o = Lt.forwardRef(
2874
2854
  ({
2875
2855
  id: t = "",
2876
2856
  title: i,
@@ -2883,20 +2863,20 @@ const Ro = ({
2883
2863
  className: u,
2884
2864
  onClick: h,
2885
2865
  ...f
2886
- }, s) => {
2887
- const [x, g] = A(o || ""), w = (b) => {
2888
- g(b), r == null || r(t, b);
2889
- }, m = f.disabled || !1, v = Re.base, D = Re.pressed, S = Re.hover, I = Re.disabled, y = Re.content;
2866
+ }, g) => {
2867
+ const [x, s] = A(o || ""), w = (b) => {
2868
+ s(b), r == null || r(t, b);
2869
+ }, v = f.disabled || !1, m = Re.base, T = Re.pressed, S = Re.hover, j = Re.disabled, y = Re.content;
2890
2870
  return /* @__PURE__ */ p(
2891
- $n,
2871
+ Rn,
2892
2872
  {
2893
- ref: s,
2873
+ ref: g,
2894
2874
  onClick: () => h == null ? void 0 : h(t),
2895
2875
  className: n(
2896
- v,
2897
- D,
2898
- !m && S,
2899
- m && I,
2876
+ m,
2877
+ T,
2878
+ !v && S,
2879
+ v && j,
2900
2880
  u
2901
2881
  ),
2902
2882
  ...f,
@@ -2907,7 +2887,7 @@ const Ro = ({
2907
2887
  {
2908
2888
  className: n(
2909
2889
  y.title,
2910
- m && y.disabled
2890
+ v && y.disabled
2911
2891
  ),
2912
2892
  children: i
2913
2893
  }
@@ -2919,7 +2899,7 @@ const Ro = ({
2919
2899
  options: d,
2920
2900
  value: x,
2921
2901
  onChange: w,
2922
- disabled: m
2902
+ disabled: v
2923
2903
  }
2924
2904
  ),
2925
2905
  !!l && /* @__PURE__ */ p(ae, { children: [
@@ -2931,7 +2911,7 @@ const Ro = ({
2931
2911
  base: y.button
2932
2912
  },
2933
2913
  children: /* @__PURE__ */ e(
2934
- qr,
2914
+ Vr,
2935
2915
  {
2936
2916
  className: y.icon,
2937
2917
  width: 15,
@@ -2966,7 +2946,7 @@ const Ro = ({
2966
2946
  {
2967
2947
  className: n(
2968
2948
  y.amount,
2969
- m && y.disabled
2949
+ v && y.disabled
2970
2950
  ),
2971
2951
  children: b.value
2972
2952
  }
@@ -2995,7 +2975,7 @@ const Ro = ({
2995
2975
  amount: "block text-dark-30 font-semibold break-all",
2996
2976
  disabled: "text-dark-30/[.42]"
2997
2977
  }
2998
- }, zo = Lt.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: a, classNames: o, iconSizes: r }, c) => /* @__PURE__ */ e(
2978
+ }, Lo = Lt.forwardRef(({ tabs: t = [], activeTab: i, onTabChange: a, classNames: o, iconSizes: r }, c) => /* @__PURE__ */ e(
2999
2979
  Qt,
3000
2980
  {
3001
2981
  ref: c,
@@ -3040,17 +3020,17 @@ const Ro = ({
3040
3020
  label: "group-data-[state=active]:font-bold font-medium flex items-center gap-1.5",
3041
3021
  activeIcon: "fill-dark-40",
3042
3022
  iconInactive: "fill-dark-40/[.50]"
3043
- }, Ho = z.forwardRef(
3023
+ }, zo = L.forwardRef(
3044
3024
  ({ tabs: t = [], activeTab: i, onTabChange: a, onEditTabContent: o, classNames: r }, c) => {
3045
- const d = Be.base, l = Be.list, u = Be.trigger, h = Be.content, f = Be.overlayBorder, s = Be.datalist, x = ({ list: g }) => /* @__PURE__ */ e(
3025
+ const d = Be.base, l = Be.list, u = Be.trigger, h = Be.content, f = Be.overlayBorder, g = Be.datalist, x = ({ list: s }) => /* @__PURE__ */ e(
3046
3026
  "ul",
3047
3027
  {
3048
3028
  role: "listbox",
3049
- className: n(s.base, r == null ? void 0 : r.datalist),
3050
- children: g.map((w, m) => /* @__PURE__ */ p(
3029
+ className: n(g.base, r == null ? void 0 : r.datalist),
3030
+ children: s.map((w, v) => /* @__PURE__ */ p(
3051
3031
  "li",
3052
3032
  {
3053
- className: n(s.item, r == null ? void 0 : r.dataItem),
3033
+ className: n(g.item, r == null ? void 0 : r.dataItem),
3054
3034
  children: [
3055
3035
  /* @__PURE__ */ p("span", { className: "text-dark-40/50", children: [
3056
3036
  w.label,
@@ -3060,7 +3040,7 @@ const Ro = ({
3060
3040
  w.value
3061
3041
  ]
3062
3042
  },
3063
- m
3043
+ v
3064
3044
  ))
3065
3045
  }
3066
3046
  );
@@ -3072,24 +3052,24 @@ const Ro = ({
3072
3052
  onValueChange: a,
3073
3053
  className: n(d, r == null ? void 0 : r.base),
3074
3054
  children: [
3075
- /* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((g, w, m) => /* @__PURE__ */ p(
3055
+ /* @__PURE__ */ e(Xt, { className: n(l, r == null ? void 0 : r.list), children: t.map((s, w, v) => /* @__PURE__ */ p(
3076
3056
  Jt,
3077
3057
  {
3078
- value: g.value,
3079
- disabled: g.disabled,
3058
+ value: s.value,
3059
+ disabled: s.disabled,
3080
3060
  className: n(
3081
3061
  "curved-tab",
3082
3062
  w === 0 && "first-tab",
3083
- w === m.length - 1 && "last-tab",
3063
+ w === v.length - 1 && "last-tab",
3084
3064
  u.base,
3085
3065
  u.active,
3086
3066
  u.hover,
3087
- g.disabled && u.disabled,
3067
+ s.disabled && u.disabled,
3088
3068
  r == null ? void 0 : r.trigger
3089
3069
  ),
3090
3070
  children: [
3091
3071
  w + 1,
3092
- i === g.value && /* @__PURE__ */ e(
3072
+ i === s.value && /* @__PURE__ */ e(
3093
3073
  "div",
3094
3074
  {
3095
3075
  className: n(f, r == null ? void 0 : r.overlayBorder)
@@ -3097,16 +3077,16 @@ const Ro = ({
3097
3077
  )
3098
3078
  ]
3099
3079
  },
3100
- g.value
3080
+ s.value
3101
3081
  )) }),
3102
- t.map((g, w, m) => /* @__PURE__ */ p(
3103
- Yr,
3082
+ t.map((s, w, v) => /* @__PURE__ */ p(
3083
+ Ur,
3104
3084
  {
3105
- value: g.value,
3085
+ value: s.value,
3106
3086
  className: n(
3107
3087
  h.base,
3108
3088
  w === 0 && "rounded-ss-none",
3109
- w === m.length - 1 && "rounded-se-none",
3089
+ w === v.length - 1 && "rounded-se-none",
3110
3090
  r == null ? void 0 : r.content
3111
3091
  ),
3112
3092
  children: [
@@ -3119,16 +3099,16 @@ const Ro = ({
3119
3099
  "button",
3120
3100
  {
3121
3101
  className: "hover:cursor-pointer",
3122
- onClick: () => o(g),
3123
- children: /* @__PURE__ */ e(mr, { className: "fill-sidebar-10" })
3102
+ onClick: () => o(s),
3103
+ children: /* @__PURE__ */ e(vr, { className: "fill-sidebar-10" })
3124
3104
  }
3125
3105
  )
3126
3106
  ] }),
3127
- /* @__PURE__ */ p("div", { className: s.title.wrapper, children: [
3128
- /* @__PURE__ */ e(k, { className: s.title.text, children: "Общая площадь:" }),
3129
- /* @__PURE__ */ e(x, { list: g.content.main })
3107
+ /* @__PURE__ */ p("div", { className: g.title.wrapper, children: [
3108
+ /* @__PURE__ */ e(k, { className: g.title.text, children: "Общая площадь:" }),
3109
+ /* @__PURE__ */ e(x, { list: s.content.main })
3130
3110
  ] }),
3131
- /* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(x, { list: g.content.secondary }) })
3111
+ /* @__PURE__ */ e("div", { className: "mt-2.5", children: /* @__PURE__ */ e(x, { list: s.content.secondary }) })
3132
3112
  ]
3133
3113
  },
3134
3114
  w
@@ -3162,7 +3142,7 @@ const Ro = ({
3162
3142
  base: "flex flex-col gap-1.5",
3163
3143
  item: "flex items-center gap-2 text-dark-30 font-sans text-sm leading-none"
3164
3144
  }
3165
- }, Uo = ({
3145
+ }, Ho = ({
3166
3146
  disabled: t,
3167
3147
  labelProps: i,
3168
3148
  textareaProps: a,
@@ -3179,17 +3159,17 @@ const Ro = ({
3179
3159
  }, Mt = {
3180
3160
  root: "w-full flex flex-col gap-1.5",
3181
3161
  labelWrapper: "flex items-center gap-2"
3182
- }, Yo = ({
3162
+ }, Uo = ({
3183
3163
  fieldLabel: t,
3184
3164
  disabled: i,
3185
3165
  className: a,
3186
3166
  labelProps: o,
3187
3167
  toggleProps: r,
3188
3168
  onClick: c
3189
- }) => /* @__PURE__ */ p("div", { className: n(Ln.root, a), children: [
3169
+ }) => /* @__PURE__ */ p("div", { className: n($n.root, a), children: [
3190
3170
  /* @__PURE__ */ e(ee, { ...o, disabled: i, children: t }),
3191
3171
  /* @__PURE__ */ e(
3192
- Cr,
3172
+ kr,
3193
3173
  {
3194
3174
  disabled: i,
3195
3175
  onClick: c,
@@ -3199,16 +3179,16 @@ const Ro = ({
3199
3179
  labelPosition: r.labelPosition
3200
3180
  }
3201
3181
  )
3202
- ] }), Ln = {
3182
+ ] }), $n = {
3203
3183
  root: "flex flex-col items-start gap-3"
3204
- }, Ie = {
3184
+ }, je = {
3205
3185
  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",
3206
3186
  button: {
3207
3187
  basic: "w-4 h-4 p-0 bg-transparent active: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",
3208
3188
  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"
3209
3189
  },
3210
3190
  wrapperBlockName: "w-[230px] font-semibold text-sm font-sans text-dark-40/80"
3211
- }, Go = X(
3191
+ }, Yo = X(
3212
3192
  ({
3213
3193
  blockName: t,
3214
3194
  className: i,
@@ -3222,7 +3202,7 @@ const Ro = ({
3222
3202
  {
3223
3203
  ref: l,
3224
3204
  draggable: !0,
3225
- className: n(Ie.wrapper, i),
3205
+ className: n(je.wrapper, i),
3226
3206
  onDragStart: a,
3227
3207
  onDragEnd: o,
3228
3208
  ...d,
@@ -3235,12 +3215,12 @@ const Ro = ({
3235
3215
  "data-testid": "dragAndDrop-menu-button",
3236
3216
  variant: "text",
3237
3217
  classNames: {
3238
- base: n(Ie.button.basic, Ie.button.active)
3218
+ base: n(je.button.basic, je.button.active)
3239
3219
  },
3240
- children: /* @__PURE__ */ e(Rr, {})
3220
+ children: /* @__PURE__ */ e(Fr, {})
3241
3221
  }
3242
3222
  ),
3243
- /* @__PURE__ */ e(k, { className: Ie.wrapperBlockName, children: t || "-" }),
3223
+ /* @__PURE__ */ e(k, { className: je.wrapperBlockName, children: t || "-" }),
3244
3224
  /* @__PURE__ */ e(
3245
3225
  M,
3246
3226
  {
@@ -3249,15 +3229,15 @@ const Ro = ({
3249
3229
  "data-testid": "dragAndDrop-close-button",
3250
3230
  variant: "text",
3251
3231
  classNames: {
3252
- base: n(Ie.button.basic, Ie.button.active)
3232
+ base: n(je.button.basic, je.button.active)
3253
3233
  },
3254
- children: /* @__PURE__ */ e(Zr, {})
3234
+ children: /* @__PURE__ */ e(qr, {})
3255
3235
  }
3256
3236
  )
3257
3237
  ]
3258
3238
  }
3259
3239
  )
3260
- ), zn = [
3240
+ ), Ln = [
3261
3241
  "Январь",
3262
3242
  "Февраль",
3263
3243
  "Март",
@@ -3270,12 +3250,12 @@ const Ro = ({
3270
3250
  "Октябрь",
3271
3251
  "Ноябрь",
3272
3252
  "Декабрь"
3273
- ], Hn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
3253
+ ], zn = Array.from({ length: 200 }, (t, i) => 1900 + i).map(
3274
3254
  (t) => ({
3275
3255
  label: t.toString(),
3276
3256
  value: t.toString()
3277
3257
  })
3278
- ), Eo = ({
3258
+ ), Go = ({
3279
3259
  value: t,
3280
3260
  setValue: i,
3281
3261
  disabled: a,
@@ -3283,56 +3263,56 @@ const Ro = ({
3283
3263
  status: r,
3284
3264
  classNames: c
3285
3265
  }) => {
3286
- const d = ne(null), l = (T) => {
3287
- if (!T) return;
3288
- if (T instanceof Date) return T;
3289
- const W = mt(
3290
- T,
3291
- It,
3266
+ const d = ne(null), l = (D) => {
3267
+ if (!D) return;
3268
+ if (D instanceof Date) return D;
3269
+ const I = mt(
3270
+ D,
3271
+ jt,
3292
3272
  /* @__PURE__ */ new Date()
3293
3273
  );
3294
- if (We(W)) return W;
3295
- const R = an(T);
3296
- return We(R) ? R : void 0;
3274
+ if (We(I)) return I;
3275
+ const z = on(D);
3276
+ return We(z) ? z : void 0;
3297
3277
  }, [u, h] = A(
3298
3278
  l(t)
3299
- ), [f, s] = A(
3279
+ ), [f, g] = A(
3300
3280
  u == null ? void 0 : u.getDate()
3301
- ), [x, g] = A(
3281
+ ), [x, s] = A(
3302
3282
  u == null ? void 0 : u.getMonth()
3303
- ), [w, m] = A(
3283
+ ), [w, v] = A(
3304
3284
  u == null ? void 0 : u.getFullYear()
3305
3285
  );
3306
3286
  ge(() => {
3307
- const T = l(t);
3308
- h(T), s(T == null ? void 0 : T.getDate()), g(T == null ? void 0 : T.getMonth()), m(T == null ? void 0 : T.getFullYear());
3287
+ const D = l(t);
3288
+ h(D), g(D == null ? void 0 : D.getDate()), s(D == null ? void 0 : D.getMonth()), v(D == null ? void 0 : D.getFullYear());
3309
3289
  }, [t]);
3310
- const v = /* @__PURE__ */ new Date(), D = w ?? v.getFullYear(), S = x ?? v.getMonth(), I = Ht(() => {
3311
- const T = new Date(D, S + 1, 0).getDate();
3312
- return Array.from({ length: T }, (W, R) => {
3313
- const G = R + 1;
3290
+ const m = /* @__PURE__ */ new Date(), T = w ?? m.getFullYear(), S = x ?? m.getMonth(), j = Ht(() => {
3291
+ const D = new Date(T, S + 1, 0).getDate();
3292
+ return Array.from({ length: D }, (I, z) => {
3293
+ const G = z + 1;
3314
3294
  return {
3315
3295
  label: G.toString().padStart(2, "0"),
3316
3296
  value: G.toString()
3317
3297
  };
3318
3298
  });
3319
- }, [S, D]), y = (T, W, R) => {
3320
- if (T !== void 0 && W !== void 0 && R !== void 0) {
3321
- const G = new Date(R, W, T);
3299
+ }, [S, T]), y = (D, I, z) => {
3300
+ if (D !== void 0 && I !== void 0 && z !== void 0) {
3301
+ const G = new Date(z, I, D);
3322
3302
  h(G), i(
3323
- yr(G, It)
3303
+ wr(G, jt)
3324
3304
  );
3325
3305
  } else
3326
3306
  h(void 0), i(void 0);
3327
- }, b = (T) => {
3328
- const W = parseInt(T);
3329
- g(W), y(f, W, w);
3330
- }, C = (T) => {
3331
- const W = parseInt(T);
3332
- m(W), y(f, x, W);
3333
- }, j = (T) => {
3334
- const W = parseInt(T);
3335
- s(W), y(W, x, w);
3307
+ }, b = (D) => {
3308
+ const I = parseInt(D);
3309
+ s(I), y(f, I, w);
3310
+ }, C = (D) => {
3311
+ const I = parseInt(D);
3312
+ v(I), y(f, x, I);
3313
+ }, W = (D) => {
3314
+ const I = parseInt(D);
3315
+ g(I), y(I, x, w);
3336
3316
  };
3337
3317
  return /* @__PURE__ */ p("div", { ref: d, className: Ot.root, children: [
3338
3318
  !!o && /* @__PURE__ */ e(ee, { className: n(c == null ? void 0 : c.label), children: o }),
@@ -3340,13 +3320,13 @@ const Ro = ({
3340
3320
  /* @__PURE__ */ e(
3341
3321
  Te,
3342
3322
  {
3343
- options: I,
3323
+ options: j,
3344
3324
  classNames: {
3345
3325
  trigger: n("w-full h-11 bg-gray-50", c == null ? void 0 : c.selectTrigger),
3346
3326
  selected: n("text-sm", c == null ? void 0 : c.selectSelected)
3347
3327
  },
3348
3328
  disabled: a,
3349
- onChange: j,
3329
+ onChange: W,
3350
3330
  value: f !== void 0 ? String(f) : "",
3351
3331
  placeholder: "День",
3352
3332
  status: r === "danger" ? "danger" : void 0
@@ -3355,9 +3335,9 @@ const Ro = ({
3355
3335
  /* @__PURE__ */ e(
3356
3336
  Te,
3357
3337
  {
3358
- options: zn.map((T, W) => ({
3359
- label: T,
3360
- value: W.toString()
3338
+ options: Ln.map((D, I) => ({
3339
+ label: D,
3340
+ value: I.toString()
3361
3341
  })),
3362
3342
  classNames: {
3363
3343
  trigger: n("w-full h-11", c == null ? void 0 : c.selectTrigger),
@@ -3373,7 +3353,7 @@ const Ro = ({
3373
3353
  /* @__PURE__ */ e(
3374
3354
  Te,
3375
3355
  {
3376
- options: Hn,
3356
+ options: zn,
3377
3357
  classNames: {
3378
3358
  trigger: n("w-full h-11", c == null ? void 0 : c.selectTrigger),
3379
3359
  selected: n("text-sm", c == null ? void 0 : c.selectSelected)
@@ -3381,7 +3361,7 @@ const Ro = ({
3381
3361
  disabled: a,
3382
3362
  onChange: C,
3383
3363
  value: w !== void 0 ? String(w) : "",
3384
- autoFocusValue: String(v.getFullYear()),
3364
+ autoFocusValue: String(m.getFullYear()),
3385
3365
  placeholder: "Год",
3386
3366
  status: r === "danger" ? "danger" : void 0
3387
3367
  }
@@ -3393,7 +3373,7 @@ const Ro = ({
3393
3373
  selectContainer: "flex items-center gap-2.5 w-full",
3394
3374
  label: "text-sm font-medium text-secondary-10 font-mono",
3395
3375
  dangerMessage: "absolute -bottom-5 text-danger-10 text-xs text-left"
3396
- }, Un = ({
3376
+ }, Hn = ({
3397
3377
  badge: t,
3398
3378
  isExpanded: i = !0,
3399
3379
  disabled: a = !1,
@@ -3488,7 +3468,7 @@ const Ro = ({
3488
3468
  badge: "top-0 translate-x-1 -translate-y-4",
3489
3469
  label: "w-0 opacity-0"
3490
3470
  }
3491
- }, Ko = ({
3471
+ }, Eo = ({
3492
3472
  options: t,
3493
3473
  title: i,
3494
3474
  setActiveStep: a,
@@ -3496,7 +3476,7 @@ const Ro = ({
3496
3476
  classNames: r
3497
3477
  }) => /* @__PURE__ */ p("div", { className: n(V.root, r == null ? void 0 : r.root), "data-testid": "stepper", children: [
3498
3478
  i && /* @__PURE__ */ p("div", { className: n(V.header, r == null ? void 0 : r.header), children: [
3499
- /* @__PURE__ */ e(nn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
3479
+ /* @__PURE__ */ e(rn, { width: 16, height: 16, viewBox: "0 0 16 16" }),
3500
3480
  /* @__PURE__ */ e(
3501
3481
  et,
3502
3482
  {
@@ -3627,9 +3607,9 @@ const Ro = ({
3627
3607
  onIconClick: u,
3628
3608
  inputProps: h,
3629
3609
  ...f
3630
- }, s) => {
3610
+ }, g) => {
3631
3611
  var S;
3632
- const x = Xe.parent, g = Xe.base, w = Xe.icon, m = a || (h == null ? void 0 : h.disabled), v = !!(o || d), D = (h == null ? void 0 : h.status) === "danger";
3612
+ const x = Xe.parent, s = Xe.base, w = Xe.icon, v = a || (h == null ? void 0 : h.disabled), m = !!(o || d), T = (h == null ? void 0 : h.status) === "danger";
3633
3613
  return /* @__PURE__ */ p("div", { className: n(x, l == null ? void 0 : l.parent), ...f, children: [
3634
3614
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
3635
3615
  !!i && /* @__PURE__ */ e(
@@ -3637,50 +3617,50 @@ const Ro = ({
3637
3617
  {
3638
3618
  htmlFor: t,
3639
3619
  className: n(l == null ? void 0 : l.label),
3640
- disabled: m,
3620
+ disabled: v,
3641
3621
  children: i
3642
3622
  }
3643
3623
  ),
3644
- D && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
3624
+ T && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
3645
3625
  ] }),
3646
3626
  /* @__PURE__ */ p(
3647
3627
  "div",
3648
3628
  {
3649
3629
  className: n(
3650
- g,
3651
- v && Xe.container,
3630
+ s,
3631
+ m && Xe.container,
3652
3632
  l == null ? void 0 : l.base
3653
3633
  ),
3654
3634
  children: [
3655
3635
  /* @__PURE__ */ e(
3656
- Tr,
3636
+ Cr,
3657
3637
  {
3658
3638
  ...h,
3659
- ref: s,
3639
+ ref: g,
3660
3640
  id: t,
3661
- disabled: m,
3641
+ disabled: v,
3662
3642
  classNames: {
3663
3643
  ...h == null ? void 0 : h.classNames,
3664
3644
  target: n(
3665
3645
  (S = h == null ? void 0 : h.classNames) == null ? void 0 : S.target,
3666
- v && c === "left" && "pl-11",
3667
- v && c === "right" && "pr-11"
3646
+ m && c === "left" && "pl-11",
3647
+ m && c === "right" && "pr-11"
3668
3648
  )
3669
3649
  }
3670
3650
  }
3671
3651
  ),
3672
- v && /* @__PURE__ */ p(
3652
+ m && /* @__PURE__ */ p(
3673
3653
  "button",
3674
3654
  {
3675
3655
  role: "button",
3676
3656
  type: "button",
3677
- disabled: m,
3657
+ disabled: v,
3678
3658
  className: n(
3679
3659
  w.base,
3680
3660
  c === "left" && "left-3.5",
3681
3661
  c === "right" && "right-3.5",
3682
3662
  u && w.clickable,
3683
- m && w.disabled,
3663
+ v && w.disabled,
3684
3664
  l == null ? void 0 : l.iconButton
3685
3665
  ),
3686
3666
  onClick: u,
@@ -3733,7 +3713,7 @@ const Ro = ({
3733
3713
  icon: "fill-dark-10/60 size-6",
3734
3714
  text: "text-gray-10 text-sm font-mono leading-none"
3735
3715
  }
3736
- }, Vo = ({
3716
+ }, Ko = ({
3737
3717
  icon: t,
3738
3718
  element: i,
3739
3719
  label: a,
@@ -3782,7 +3762,7 @@ const Ro = ({
3782
3762
  },
3783
3763
  ...h
3784
3764
  }) => {
3785
- const f = Yn.states;
3765
+ const f = Un.states;
3786
3766
  return /* @__PURE__ */ p(
3787
3767
  Ke,
3788
3768
  {
@@ -3808,7 +3788,7 @@ const Ro = ({
3808
3788
  ),
3809
3789
  children: [
3810
3790
  c && /* @__PURE__ */ e(
3811
- Mr,
3791
+ Wr,
3812
3792
  {
3813
3793
  width: u.width,
3814
3794
  height: u.height,
@@ -3820,7 +3800,7 @@ const Ro = ({
3820
3800
  ]
3821
3801
  }
3822
3802
  );
3823
- }, Yn = {
3803
+ }, Un = {
3824
3804
  states: {
3825
3805
  active: "active:text-primary-30",
3826
3806
  disabled: "text-dark-30/[.30] cursor-not-allowed",
@@ -3838,24 +3818,24 @@ const Ro = ({
3838
3818
  value: c
3839
3819
  }, d) => {
3840
3820
  var S;
3841
- const [l, u] = A(!1), f = er(o)(c), s = ne(null), x = $e.base, g = $e.options, w = $e.disabled.trigger, m = $e.disabled.triggerText, v = (S = o.find((I) => I.value === c)) == null ? void 0 : S.status, D = ({
3842
- className: I,
3821
+ const [l, u] = A(!1), f = er(o)(c), g = ne(null), x = $e.base, s = $e.options, w = $e.disabled.trigger, v = $e.disabled.triggerText, m = (S = o.find((j) => j.value === c)) == null ? void 0 : S.status, T = ({
3822
+ className: j,
3843
3823
  text: y = ""
3844
3824
  }) => /* @__PURE__ */ e(
3845
3825
  k,
3846
3826
  {
3847
3827
  className: n(
3848
3828
  x.placeholder,
3849
- i && m,
3850
- I
3829
+ i && v,
3830
+ j
3851
3831
  ),
3852
3832
  children: y
3853
3833
  }
3854
3834
  );
3855
3835
  return ge(() => {
3856
3836
  l && setTimeout(() => {
3857
- var I;
3858
- (I = s.current) == null || I.scrollIntoView({ block: "center" });
3837
+ var j;
3838
+ (j = g.current) == null || j.scrollIntoView({ block: "center" });
3859
3839
  }, 0);
3860
3840
  }, [l]), /* @__PURE__ */ p(nt, { open: l, onOpenChange: u, children: [
3861
3841
  /* @__PURE__ */ p(
@@ -3868,17 +3848,17 @@ const Ro = ({
3868
3848
  i && w,
3869
3849
  !l && !i && x.hover,
3870
3850
  t == null ? void 0 : t.trigger,
3871
- v && $e.status[v]
3851
+ m && $e.status[m]
3872
3852
  ),
3873
3853
  children: [
3874
3854
  c ? /* @__PURE__ */ e(
3875
- D,
3855
+ T,
3876
3856
  {
3877
3857
  text: f == null ? void 0 : f.label,
3878
3858
  className: n(x.selected, t == null ? void 0 : t.selected)
3879
3859
  }
3880
3860
  ) : /* @__PURE__ */ e(
3881
- D,
3861
+ T,
3882
3862
  {
3883
3863
  text: r,
3884
3864
  className: t == null ? void 0 : t.placeholder
@@ -3899,20 +3879,20 @@ const Ro = ({
3899
3879
  /* @__PURE__ */ e(
3900
3880
  it,
3901
3881
  {
3902
- className: n(g.content, t == null ? void 0 : t.content),
3882
+ className: n(s.content, t == null ? void 0 : t.content),
3903
3883
  style: { minWidth: "var(--radix-popper-anchor-width)" },
3904
3884
  ref: d,
3905
- children: /* @__PURE__ */ e("div", { className: n(g.wrapper), children: !!o && (o == null ? void 0 : o.map((I) => /* @__PURE__ */ e(
3885
+ children: /* @__PURE__ */ e("div", { className: n(s.wrapper), children: !!o && (o == null ? void 0 : o.map((j) => /* @__PURE__ */ e(
3906
3886
  Dt,
3907
3887
  {
3908
- ref: c === I.value ? s : null,
3909
- className: n(g.items),
3888
+ ref: c === j.value ? g : null,
3889
+ className: n(s.items),
3910
3890
  onClick: (y) => {
3911
- y.preventDefault(), y.stopPropagation(), a(I.value), u(!1);
3891
+ y.preventDefault(), y.stopPropagation(), a(j.value), u(!1);
3912
3892
  },
3913
- children: /* @__PURE__ */ e(He, { text: I.label, variant: I.status })
3893
+ children: /* @__PURE__ */ e(He, { text: j.label, variant: j.status })
3914
3894
  },
3915
- I.value
3895
+ j.value
3916
3896
  ))) })
3917
3897
  }
3918
3898
  )
@@ -3947,20 +3927,20 @@ const $e = {
3947
3927
  items: "group rounded-[5px] cursor-pointer p-0",
3948
3928
  itemsText: "flex items-center w-full mr-1.5 text-dark-30 text-xs font-normal py-1 px-3 rounded-[50px]"
3949
3929
  }
3950
- }, qo = ({
3930
+ }, Vo = ({
3951
3931
  classNames: t,
3952
3932
  label: i,
3953
3933
  selectProps: a,
3954
3934
  ...o
3955
- }) => /* @__PURE__ */ p("div", { ...o, className: n(Gn.container, t == null ? void 0 : t.container), children: [
3935
+ }) => /* @__PURE__ */ p("div", { ...o, className: n(Yn.container, t == null ? void 0 : t.container), children: [
3956
3936
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
3957
3937
  /* @__PURE__ */ e(ee, { disabled: a == null ? void 0 : a.disabled, className: t == null ? void 0 : t.label, children: i }),
3958
3938
  (a == null ? void 0 : a.status) === "danger" && /* @__PURE__ */ e(se, { className: "fill-danger-10" })
3959
3939
  ] }),
3960
3940
  /* @__PURE__ */ e(Te, { ...a })
3961
- ] }), Gn = {
3941
+ ] }), Yn = {
3962
3942
  container: "w-full flex items-start flex-col gap-1.5"
3963
- }, Zo = X(
3943
+ }, qo = X(
3964
3944
  ({
3965
3945
  title: t,
3966
3946
  file: i,
@@ -4077,7 +4057,7 @@ const $e = {
4077
4057
  textDisabled: "text-dark-30/25 fill-dark-30/25 decoration-dark-30/25",
4078
4058
  iconContainer: "mr-3 pt-1.5 h-full",
4079
4059
  fileImg: " object-cover"
4080
- }, Qo = ({
4060
+ }, Zo = ({
4081
4061
  title: t,
4082
4062
  dateAndTime: i,
4083
4063
  onDelete: a,
@@ -4146,7 +4126,7 @@ const $e = {
4146
4126
  },
4147
4127
  onClick: r,
4148
4128
  variant: "text",
4149
- icon: $r,
4129
+ icon: Rr,
4150
4130
  iconDimensions: { height: 14, width: 14, viewBox: "0 0 14 14" }
4151
4131
  }
4152
4132
  ),
@@ -4185,7 +4165,7 @@ const $e = {
4185
4165
  basic: " p-0",
4186
4166
  icon: "fill-dark-30/[.50]"
4187
4167
  }
4188
- }, Xo = ({
4168
+ }, Qo = ({
4189
4169
  title: t,
4190
4170
  options: i,
4191
4171
  icon: a,
@@ -4242,12 +4222,12 @@ const $e = {
4242
4222
  link: "font-medium text-sm text-[#2AABEE] font-mono p-0 underline underline-offset-[3px] hover:text-[#2AABEE]",
4243
4223
  headerIcon: "p-0 text-dark-10 font-semibold text-xl gap-1.5",
4244
4224
  icon: "fill-dark-30"
4245
- }, Jo = ({
4225
+ }, Xo = ({
4246
4226
  title: t,
4247
4227
  options: i,
4248
4228
  classNames: a
4249
4229
  }) => {
4250
- const o = Ce.base, r = Ce.content.wrapper, c = Ce.content.title, d = Ce.content.typography, l = Ce.content.amount, u = Ce.content.amountBold, h = i.find((s) => s.total), f = i.filter((s) => !s.total);
4230
+ const o = Ce.base, r = Ce.content.wrapper, c = Ce.content.title, d = Ce.content.typography, l = Ce.content.amount, u = Ce.content.amountBold, h = i.find((g) => g.total), f = i.filter((g) => !g.total);
4251
4231
  return /* @__PURE__ */ p("div", { className: n(o, a == null ? void 0 : a.root), children: [
4252
4232
  /* @__PURE__ */ e("div", { className: r, "data-testid": "plate", children: /* @__PURE__ */ e(
4253
4233
  k,
@@ -4258,18 +4238,18 @@ const $e = {
4258
4238
  }
4259
4239
  ) }),
4260
4240
  /* @__PURE__ */ p("div", { className: Ce.content.items, children: [
4261
- f.map((s) => /* @__PURE__ */ e(
4241
+ f.map((g) => /* @__PURE__ */ e(
4262
4242
  Me,
4263
4243
  {
4264
4244
  "data-testid": "item",
4265
- value: s.value,
4266
- label: s.label,
4245
+ value: g.value,
4246
+ label: g.label,
4267
4247
  classNames: {
4268
4248
  label: n(d, a == null ? void 0 : a.label),
4269
4249
  value: n(l, a == null ? void 0 : a.value)
4270
4250
  }
4271
4251
  },
4272
- s.label
4252
+ g.label
4273
4253
  )),
4274
4254
  h && /* @__PURE__ */ e(
4275
4255
  Me,
@@ -4319,7 +4299,7 @@ const $e = {
4319
4299
  ), Ft = {
4320
4300
  label: "flex items-center gap-2.5 text-dark-40/[.50] text-sm font-medium",
4321
4301
  value: "text-sm text-dark-30 font-semibold"
4322
- }, En = X(
4302
+ }, Gn = X(
4323
4303
  ({
4324
4304
  classNames: t,
4325
4305
  disabled: i,
@@ -4332,25 +4312,25 @@ const $e = {
4332
4312
  label: u,
4333
4313
  title: h,
4334
4314
  options: f = []
4335
- }, s) => {
4315
+ }, g) => {
4336
4316
  var ce;
4337
- const [x, g] = A(!1), [w, m] = A(l || ""), [v, D] = A(""), [S, I] = A(null), y = ne(null), b = () => {
4338
- const O = v.trim();
4339
- O && (S && c ? (c(O, S), I(null)) : r(O), D(""));
4317
+ const [x, s] = A(!1), [w, v] = A(l || ""), [m, T] = A(""), [S, j] = A(null), y = ne(null), b = () => {
4318
+ const O = m.trim();
4319
+ O && (S && c ? (c(O, S), j(null)) : r(O), T(""));
4340
4320
  }, C = (O, J) => {
4341
- J.stopPropagation(), I(O);
4321
+ J.stopPropagation(), j(O);
4342
4322
  const xe = f.find((oe) => oe.value === O);
4343
- xe && D(xe.label);
4344
- }, j = (O, J) => {
4345
- J.stopPropagation(), o(O), w === O && m("");
4346
- }, T = () => {
4347
- D(""), I(null);
4348
- }, W = () => {
4349
- g(!1), T();
4350
- }, R = () => {
4351
- a(w), g(!1), T();
4323
+ xe && T(xe.label);
4324
+ }, W = (O, J) => {
4325
+ J.stopPropagation(), o(O), w === O && v("");
4326
+ }, D = () => {
4327
+ T(""), j(null);
4328
+ }, I = () => {
4329
+ s(!1), D();
4330
+ }, z = () => {
4331
+ a(w), s(!1), D();
4352
4332
  }, G = (O) => {
4353
- g(O), O || T();
4333
+ s(O), O || D();
4354
4334
  }, _ = l ? ((ce = f.find((O) => O.value === l)) == null ? void 0 : ce.label) || l : "", E = _ ? Y.base.selected : Y.base.placeholder;
4355
4335
  return /* @__PURE__ */ p("div", { className: Y.container, children: [
4356
4336
  u && /* @__PURE__ */ e(ee, { htmlFor: "select-list", disabled: i, children: u }),
@@ -4402,7 +4382,7 @@ const $e = {
4402
4382
  container: y.current,
4403
4383
  className: n(Y.options.content, t == null ? void 0 : t.content),
4404
4384
  style: { minWidth: "var(--radix-popper-anchor-width)" },
4405
- ref: s,
4385
+ ref: g,
4406
4386
  children: [
4407
4387
  h && /* @__PURE__ */ e(k, { className: n(Y.options.label), children: h }),
4408
4388
  /* @__PURE__ */ e(
@@ -4412,8 +4392,8 @@ const $e = {
4412
4392
  id: "select-list",
4413
4393
  classNames: { target: "px-3 py-[9px]" },
4414
4394
  placeholder: S && h ? `Редактировать ${h}` : h || "",
4415
- value: v,
4416
- onChange: (O) => D(O.target.value)
4395
+ value: m,
4396
+ onChange: (O) => T(O.target.value)
4417
4397
  },
4418
4398
  icon: Zt,
4419
4399
  iconProps: { width: 20, height: 20, viewBox: "0 0 20 20" },
@@ -4431,7 +4411,7 @@ const $e = {
4431
4411
  J && "opacity-50"
4432
4412
  ),
4433
4413
  onClick: (oe) => {
4434
- oe.stopPropagation(), oe.preventDefault(), J || m(O.value);
4414
+ oe.stopPropagation(), oe.preventDefault(), J || v(O.value);
4435
4415
  },
4436
4416
  children: [
4437
4417
  /* @__PURE__ */ p(
@@ -4476,7 +4456,7 @@ const $e = {
4476
4456
  base: "p-0",
4477
4457
  icon: "fill-sidebar-50/50 text-sidebar-50/50"
4478
4458
  },
4479
- onClick: (oe) => j(O.value, oe),
4459
+ onClick: (oe) => W(O.value, oe),
4480
4460
  iconDimensions: {
4481
4461
  height: 20,
4482
4462
  width: 20,
@@ -4498,7 +4478,7 @@ const $e = {
4498
4478
  type: "button",
4499
4479
  variant: "secondary",
4500
4480
  className: n(Y.options.primaryActionCancel),
4501
- onClick: W,
4481
+ onClick: I,
4502
4482
  children: "Отмена"
4503
4483
  }
4504
4484
  ),
@@ -4509,7 +4489,7 @@ const $e = {
4509
4489
  variant: "primary",
4510
4490
  className: n(Y.options.primaryActionApply),
4511
4491
  isShadow: !0,
4512
- onClick: R,
4492
+ onClick: z,
4513
4493
  children: "Сохранить"
4514
4494
  }
4515
4495
  )
@@ -4521,7 +4501,7 @@ const $e = {
4521
4501
  ] });
4522
4502
  }
4523
4503
  );
4524
- En.displayName = "SelectList";
4504
+ Gn.displayName = "SelectList";
4525
4505
  const Y = {
4526
4506
  container: "relative w-full flex items-start flex-col gap-1.5",
4527
4507
  base: {
@@ -4552,7 +4532,7 @@ const Y = {
4552
4532
  primaryActionCancel: "text-sm font-semibold text-dark-30 font-mono cursor-pointer border border-dark-30/[.25] px-4 py-3 rounded-[10px]",
4553
4533
  primaryActionApply: "text-sm font-semibold bg-primary-10 text-sidebar-10 font-mono cursor-pointer px-4 py-3 rounded-[10px]"
4554
4534
  }
4555
- }, Kn = ({
4535
+ }, En = ({
4556
4536
  classNames: t,
4557
4537
  isActive: i,
4558
4538
  item: { icon: a, label: o = "" },
@@ -4561,9 +4541,9 @@ const Y = {
4561
4541
  "div",
4562
4542
  {
4563
4543
  className: n(
4564
- je.base.container,
4544
+ Ie.base.container,
4565
4545
  {
4566
- [je.active.container]: i
4546
+ [Ie.active.container]: i
4567
4547
  },
4568
4548
  t == null ? void 0 : t.container
4569
4549
  ),
@@ -4574,9 +4554,9 @@ const Y = {
4574
4554
  a,
4575
4555
  {
4576
4556
  className: n(
4577
- je.base.icon,
4557
+ Ie.base.icon,
4578
4558
  {
4579
- [je.active.icon]: i
4559
+ [Ie.active.icon]: i
4580
4560
  },
4581
4561
  t == null ? void 0 : t.icon
4582
4562
  )
@@ -4586,9 +4566,9 @@ const Y = {
4586
4566
  k,
4587
4567
  {
4588
4568
  className: n(
4589
- je.base.label,
4569
+ Ie.base.label,
4590
4570
  {
4591
- [je.active.label]: i
4571
+ [Ie.active.label]: i
4592
4572
  },
4593
4573
  t == null ? void 0 : t.label
4594
4574
  ),
@@ -4597,7 +4577,7 @@ const Y = {
4597
4577
  )
4598
4578
  ]
4599
4579
  }
4600
- ), je = {
4580
+ ), Ie = {
4601
4581
  active: {
4602
4582
  container: "bg-sidebar-20",
4603
4583
  icon: "fill-sidebar-10 group-hover:fill-sidebar-10",
@@ -4608,7 +4588,7 @@ const Y = {
4608
4588
  icon: "fill-dark-40/[.80] group-hover:fill-primary-10",
4609
4589
  label: "max-w-[55px] text-xs text-center text-dark-40/[.80] font-semibold truncate group-hover:text-primary-10"
4610
4590
  }
4611
- }, Po = ({
4591
+ }, Jo = ({
4612
4592
  tabs: t = [],
4613
4593
  activeTabId: i,
4614
4594
  popoverOptions: a = [],
@@ -4618,7 +4598,7 @@ const Y = {
4618
4598
  onPopoverSelect: d,
4619
4599
  actions: l
4620
4600
  }) => {
4621
- const [u, h] = z.useState(!1);
4601
+ const [u, h] = L.useState(!1);
4622
4602
  return /* @__PURE__ */ p(
4623
4603
  "div",
4624
4604
  {
@@ -4639,7 +4619,7 @@ const Y = {
4639
4619
  base: "items-center justify-center h-[60px]",
4640
4620
  icon: "fill-dark-40/[.80] hover:fill-primary-10"
4641
4621
  },
4642
- icon: Qr
4622
+ icon: Zr
4643
4623
  }
4644
4624
  ) }),
4645
4625
  /* @__PURE__ */ e(
@@ -4650,7 +4630,7 @@ const Y = {
4650
4630
  sideOffset: 4,
4651
4631
  className: n(Le.popover, r == null ? void 0 : r.popover),
4652
4632
  children: a.map((f) => {
4653
- const s = o === f.value;
4633
+ const g = o === f.value;
4654
4634
  return /* @__PURE__ */ p(
4655
4635
  ee,
4656
4636
  {
@@ -4664,7 +4644,7 @@ const Y = {
4664
4644
  Vt,
4665
4645
  {
4666
4646
  id: `popover-radio-${f.value}`,
4667
- checked: s,
4647
+ checked: g,
4668
4648
  readOnly: !0,
4669
4649
  size: "medium"
4670
4650
  }
@@ -4674,7 +4654,7 @@ const Y = {
4674
4654
  {
4675
4655
  className: n(
4676
4656
  "transition-colors",
4677
- s ? "text-primary-20 group-hover:text-primary-20" : "text-dark-40 group-hover:text-dark-20"
4657
+ g ? "text-primary-20 group-hover:text-primary-20" : "text-dark-40 group-hover:text-dark-20"
4678
4658
  ),
4679
4659
  children: f.label
4680
4660
  }
@@ -4688,16 +4668,16 @@ const Y = {
4688
4668
  )
4689
4669
  ] }),
4690
4670
  /* @__PURE__ */ e("div", { className: n(Le.body, r == null ? void 0 : r.body), children: t.map((f) => /* @__PURE__ */ e(
4691
- Kn,
4671
+ En,
4692
4672
  {
4693
4673
  item: f,
4694
- isActive: i === f.id,
4695
- onClick: () => c == null ? void 0 : c(f.id)
4674
+ isActive: i === f.value,
4675
+ onClick: () => c == null ? void 0 : c(f.value)
4696
4676
  },
4697
- f.id
4677
+ f.value
4698
4678
  )) }),
4699
4679
  /* @__PURE__ */ e("div", { className: n(Le.actions, r == null ? void 0 : r.actions), children: l == null ? void 0 : l.map((f) => {
4700
- var s, x;
4680
+ var g, x;
4701
4681
  return /* @__PURE__ */ e(
4702
4682
  yt,
4703
4683
  {
@@ -4705,7 +4685,7 @@ const Y = {
4705
4685
  shape: "circle",
4706
4686
  variant: "text",
4707
4687
  classNames: {
4708
- icon: n("fill-dark-40/[.80]", (s = f.classNames) == null ? void 0 : s.icon),
4688
+ icon: n("fill-dark-40/[.80]", (g = f.classNames) == null ? void 0 : g.icon),
4709
4689
  button: n("p-0", (x = f.classNames) == null ? void 0 : x.button)
4710
4690
  },
4711
4691
  iconSizes: f.iconSizes ?? {
@@ -4727,7 +4707,7 @@ const Y = {
4727
4707
  popover: "flex flex-col gap-2 p-1 w-auto",
4728
4708
  popoverItem: "group flex items-center gap-2 rounded-lg px-2 py-1 cursor-pointer",
4729
4709
  actions: "flex flex-col mt-auto gap-5 mb-5"
4730
- }, No = ({
4710
+ }, Po = ({
4731
4711
  chats: t,
4732
4712
  onSelectChat: i,
4733
4713
  classNames: a
@@ -4737,7 +4717,7 @@ const Y = {
4737
4717
  };
4738
4718
  return /* @__PURE__ */ p("div", { className: n(Rt.wrapper, a == null ? void 0 : a.wrapper), children: [
4739
4719
  /* @__PURE__ */ e(
4740
- gn,
4720
+ xn,
4741
4721
  {
4742
4722
  value: c,
4743
4723
  onChange: (u) => d(u.target.value),
@@ -4750,24 +4730,24 @@ const Y = {
4750
4730
  }
4751
4731
  ),
4752
4732
  /* @__PURE__ */ e("div", { className: n(Rt.list, a == null ? void 0 : a.list), children: t.map((u) => /* @__PURE__ */ e(
4753
- On,
4733
+ Mn,
4754
4734
  {
4755
- onClick: () => l(u.id),
4735
+ onClick: () => l(u.value),
4756
4736
  photo: u.photo,
4757
4737
  fullname: u.fullname,
4758
4738
  status: u.status,
4759
4739
  time: u.time,
4760
4740
  notification: u.notification,
4761
- isActive: o === u.id,
4741
+ isActive: o === u.value,
4762
4742
  classNames: { wrapper: "w-full cursor-pointer ps-5" }
4763
4743
  },
4764
- u.id
4744
+ u.value
4765
4745
  )) })
4766
4746
  ] });
4767
4747
  }, Rt = {
4768
4748
  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",
4769
4749
  list: "flex flex-col justify-center items-center overflow-y-auto w-full pt-5"
4770
- }, ei = ({
4750
+ }, No = ({
4771
4751
  currentUserId: t,
4772
4752
  senderId: i,
4773
4753
  senderName: a,
@@ -4788,11 +4768,11 @@ const Y = {
4788
4768
  classNames: { wrapper: "shrink-0" }
4789
4769
  }
4790
4770
  ),
4791
- /* @__PURE__ */ e("ul", { role: "list", className: n(Je.list, h && "items-end"), children: o.map((f, s, x) => {
4792
- const g = (f == null ? void 0 : f.id) && (d == null ? void 0 : d.includes(f.id));
4771
+ /* @__PURE__ */ e("ul", { role: "list", className: n(Je.list, h && "items-end"), children: o.map((f, g, x) => {
4772
+ const s = (f == null ? void 0 : f.id) && (d == null ? void 0 : d.includes(f.id));
4793
4773
  return /* @__PURE__ */ p("ul", { role: "listitem", className: Je.item, children: [
4794
4774
  /* @__PURE__ */ e(
4795
- Dr,
4775
+ Tr,
4796
4776
  {
4797
4777
  id: f.id,
4798
4778
  text: f.text,
@@ -4800,8 +4780,8 @@ const Y = {
4800
4780
  senderName: c ? a : "",
4801
4781
  status: f.status,
4802
4782
  isMine: h,
4803
- firstMessage: !h && c ? s === 0 : !1,
4804
- lastMessage: !h && c ? s === x.length - 1 : !0,
4783
+ firstMessage: !h && c ? g === 0 : !1,
4784
+ lastMessage: !h && c ? g === x.length - 1 : !0,
4805
4785
  onClick: () => l == null ? void 0 : l(f == null ? void 0 : f.id)
4806
4786
  },
4807
4787
  f.id
@@ -4812,14 +4792,14 @@ const Y = {
4812
4792
  "data-testid": "select-icon",
4813
4793
  className: n(
4814
4794
  Je.selection,
4815
- g && "bg-sidebar-20"
4795
+ s && "bg-sidebar-20"
4816
4796
  ),
4817
4797
  onClick: () => l == null ? void 0 : l(f == null ? void 0 : f.id),
4818
4798
  children: /* @__PURE__ */ e(
4819
- Xr,
4799
+ Qr,
4820
4800
  {
4821
4801
  className: n(
4822
- g ? "fill-sidebar-10" : "fill-transparent"
4802
+ s ? "fill-sidebar-10" : "fill-transparent"
4823
4803
  ),
4824
4804
  width: 24,
4825
4805
  height: 24,
@@ -4836,7 +4816,7 @@ const Y = {
4836
4816
  list: "w-full flex flex-col items-start gap-2.5",
4837
4817
  item: "flex items-end gap-4",
4838
4818
  selection: "flex items-center justify-center size-7 rounded-full bg-dark-30/[.08]"
4839
- }, ti = ({
4819
+ }, ei = ({
4840
4820
  messagesCount: t,
4841
4821
  open: i,
4842
4822
  onDelete: a,
@@ -4909,10 +4889,10 @@ const Y = {
4909
4889
  icon: "fill-danger-10"
4910
4890
  },
4911
4891
  amount: "ms-5 me-9"
4912
- }, Vn = [
4892
+ }, Kn = [
4913
4893
  {
4914
4894
  id: "download",
4915
- icon: wr,
4895
+ icon: mr,
4916
4896
  iconSizes: {
4917
4897
  width: 20,
4918
4898
  height: 20,
@@ -4932,7 +4912,7 @@ const Y = {
4932
4912
  },
4933
4913
  {
4934
4914
  id: "response",
4935
- icon: Jr,
4915
+ icon: Xr,
4936
4916
  iconSizes: {
4937
4917
  width: 20,
4938
4918
  height: 20
@@ -4941,7 +4921,7 @@ const Y = {
4941
4921
  },
4942
4922
  {
4943
4923
  id: "copy",
4944
- icon: Pr,
4924
+ icon: Jr,
4945
4925
  iconSizes: {
4946
4926
  width: 20,
4947
4927
  height: 20
@@ -4950,7 +4930,7 @@ const Y = {
4950
4930
  },
4951
4931
  {
4952
4932
  id: "select",
4953
- icon: Nr,
4933
+ icon: Pr,
4954
4934
  iconSizes: {
4955
4935
  width: 20,
4956
4936
  height: 20
@@ -4968,7 +4948,7 @@ const Y = {
4968
4948
  isDanger: !0,
4969
4949
  text: "Удалить"
4970
4950
  }
4971
- ], ri = ({ trigger: t, onClick: i }) => {
4951
+ ], ti = ({ trigger: t, onClick: i }) => {
4972
4952
  const [a, o] = A(!1), r = (f) => {
4973
4953
  f.preventDefault(), o(!0);
4974
4954
  }, c = (f) => {
@@ -4990,18 +4970,18 @@ const Y = {
4990
4970
  sideOffset: 4,
4991
4971
  side: "top",
4992
4972
  className: gt.wrapper,
4993
- children: Vn.map(({ id: f, icon: s, iconSizes: x, isDanger: g, text: w }) => /* @__PURE__ */ e(
4973
+ children: Kn.map(({ id: f, icon: g, iconSizes: x, isDanger: s, text: w }) => /* @__PURE__ */ e(
4994
4974
  M,
4995
4975
  {
4996
4976
  "data-testid": "action",
4997
4977
  variant: "text",
4998
4978
  iconPosition: "left",
4999
- icon: s,
4979
+ icon: g,
5000
4980
  iconDimensions: x,
5001
4981
  onClick: () => c(f),
5002
4982
  classNames: {
5003
- icon: g ? u : d,
5004
- base: g ? h : l
4983
+ icon: s ? u : d,
4984
+ base: s ? h : l
5005
4985
  },
5006
4986
  children: w
5007
4987
  },
@@ -5022,10 +5002,10 @@ const Y = {
5022
5002
  base: "text-danger-10 hover:text-danger-20 p-0 active:text-danger-30 justify-start text-base"
5023
5003
  }
5024
5004
  }
5025
- }, ni = ({ tabs: t }) => {
5005
+ }, ri = ({ tabs: t }) => {
5026
5006
  const i = qt();
5027
- return /* @__PURE__ */ e("div", { className: qn.wrapper, "data-testid": "tab-list", children: t.map(({ id: a, icon: o, label: r, isActive: c, href: d }) => /* @__PURE__ */ e(
5028
- Sr,
5007
+ return /* @__PURE__ */ e("div", { className: Vn.wrapper, "data-testid": "tab-list", children: t.map(({ id: a, icon: o, label: r, isActive: c, href: d }) => /* @__PURE__ */ e(
5008
+ Dr,
5029
5009
  {
5030
5010
  icon: o,
5031
5011
  active: c,
@@ -5035,9 +5015,9 @@ const Y = {
5035
5015
  },
5036
5016
  a
5037
5017
  )) });
5038
- }, qn = {
5018
+ }, Vn = {
5039
5019
  wrapper: "flex items-center mt-4 mb-6 gap-2"
5040
- }, oi = ({
5020
+ }, ni = ({
5041
5021
  options: t = [],
5042
5022
  value: i,
5043
5023
  placeholder: a,
@@ -5047,8 +5027,8 @@ const Y = {
5047
5027
  onEdit: d,
5048
5028
  onDelete: l
5049
5029
  }) => {
5050
- const [u, h] = A(!1), f = t == null ? void 0 : t.find((x) => x.id === i), s = (x, g) => {
5051
- x.stopPropagation(), r(g), h(!1);
5030
+ const [u, h] = A(!1), f = t == null ? void 0 : t.find((x) => x.id === i), g = (x, s) => {
5031
+ x.stopPropagation(), r(s), h(!1);
5052
5032
  };
5053
5033
  return /* @__PURE__ */ e("div", { className: "min-w-[170px]", children: /* @__PURE__ */ p(ae, { open: u, onOpenChange: h, children: [
5054
5034
  /* @__PURE__ */ p(
@@ -5068,15 +5048,15 @@ const Y = {
5068
5048
  }
5069
5049
  ),
5070
5050
  /* @__PURE__ */ p(le, { className: he.content, children: [
5071
- /* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name: x, id: g }) => /* @__PURE__ */ p("li", { role: "listitem", className: he.item, children: [
5051
+ /* @__PURE__ */ e("ul", { role: "list", className: he.list, children: t == null ? void 0 : t.map(({ name: x, id: s }) => /* @__PURE__ */ p("li", { role: "listitem", className: he.item, children: [
5072
5052
  /* @__PURE__ */ e(
5073
5053
  k,
5074
5054
  {
5075
5055
  className: n(
5076
5056
  he.name,
5077
- i === g && "before:bg-dark-10"
5057
+ i === s && "before:bg-dark-10"
5078
5058
  ),
5079
- onClick: (w) => s(w, g),
5059
+ onClick: (w) => g(w, s),
5080
5060
  children: x.ru
5081
5061
  }
5082
5062
  ),
@@ -5088,7 +5068,7 @@ const Y = {
5088
5068
  variant: "text",
5089
5069
  classNames: { base: "p-0" },
5090
5070
  onClick: (w) => {
5091
- w.stopPropagation(), d(g);
5071
+ w.stopPropagation(), d(s);
5092
5072
  },
5093
5073
  children: /* @__PURE__ */ e(
5094
5074
  Tt,
@@ -5108,7 +5088,7 @@ const Y = {
5108
5088
  variant: "text",
5109
5089
  classNames: { base: "p-0" },
5110
5090
  onClick: (w) => {
5111
- w.stopPropagation(), l(g);
5091
+ w.stopPropagation(), l(s);
5112
5092
  },
5113
5093
  children: /* @__PURE__ */ e(
5114
5094
  Oe,
@@ -5122,7 +5102,7 @@ const Y = {
5122
5102
  }
5123
5103
  )
5124
5104
  ] })
5125
- ] }, g)) }),
5105
+ ] }, s)) }),
5126
5106
  /* @__PURE__ */ e(
5127
5107
  M,
5128
5108
  {
@@ -5151,7 +5131,7 @@ const Y = {
5151
5131
  item: "flex items-center justify-between cursor-pointer",
5152
5132
  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',
5153
5133
  actions: "flex gap-2"
5154
- }, Zn = {
5134
+ }, qn = {
5155
5135
  pie: {
5156
5136
  radius: ["0%", "90%"],
5157
5137
  legendPosition: { orient: "vertical", left: 0, bottom: "10%" },
@@ -5162,12 +5142,12 @@ const Y = {
5162
5142
  legendPosition: { orient: "vertical", left: "55%", top: "5%" },
5163
5143
  chartCenter: ["25%", "50%"]
5164
5144
  }
5165
- }, Qn = ({
5145
+ }, Zn = ({
5166
5146
  chartMode: t = "pie",
5167
5147
  colors: i,
5168
5148
  items: a
5169
5149
  }) => {
5170
- const { radius: o, legendPosition: r, chartCenter: c } = Zn[t];
5150
+ const { radius: o, legendPosition: r, chartCenter: c } = qn[t];
5171
5151
  return {
5172
5152
  color: i,
5173
5153
  tooltip: {
@@ -5214,7 +5194,7 @@ const Y = {
5214
5194
  }
5215
5195
  ]
5216
5196
  };
5217
- }, ii = X(
5197
+ }, oi = X(
5218
5198
  ({
5219
5199
  chartMode: t = "doughtnut",
5220
5200
  mode: i = "chart",
@@ -5225,14 +5205,14 @@ const Y = {
5225
5205
  classNames: d,
5226
5206
  ...l
5227
5207
  }, u) => {
5228
- var s, x;
5208
+ var g, x;
5229
5209
  const h = [
5230
5210
  { value: r.rented, name: "Сдано в аренду" },
5231
5211
  { value: r.sold, name: "Продано" },
5232
5212
  { value: r.free, name: "Свободно" }
5233
5213
  ];
5234
5214
  r.blocked !== void 0 && h.push({ value: r.blocked, name: "Заблокировано" });
5235
- const f = i === "chart" ? Qn({ chartMode: t, colors: c, items: h }) : void 0;
5215
+ const f = i === "chart" ? Zn({ chartMode: t, colors: c, items: h }) : void 0;
5236
5216
  return /* @__PURE__ */ p(
5237
5217
  "div",
5238
5218
  {
@@ -5293,28 +5273,28 @@ const Y = {
5293
5273
  style: { height: 250 }
5294
5274
  }
5295
5275
  ),
5296
- i === "progress" && /* @__PURE__ */ p("div", { className: n(q.progress.root, (s = d == null ? void 0 : d.progress) == null ? void 0 : s.root), children: [
5276
+ i === "progress" && /* @__PURE__ */ p("div", { className: n(q.progress.root, (g = d == null ? void 0 : d.progress) == null ? void 0 : g.root), children: [
5297
5277
  /* @__PURE__ */ e(
5298
5278
  "div",
5299
5279
  {
5300
5280
  className: n(q.progress.line, (x = d == null ? void 0 : d.progress) == null ? void 0 : x.line)
5301
5281
  }
5302
5282
  ),
5303
- h.map(({ name: g, value: w }, m) => {
5304
- var v, D, S;
5283
+ h.map(({ name: s, value: w }, v) => {
5284
+ var m, T, S;
5305
5285
  return /* @__PURE__ */ p(
5306
5286
  "div",
5307
5287
  {
5308
- className: n(q.progress.row, (v = d == null ? void 0 : d.progress) == null ? void 0 : v.row),
5288
+ className: n(q.progress.row, (m = d == null ? void 0 : d.progress) == null ? void 0 : m.row),
5309
5289
  children: [
5310
5290
  /* @__PURE__ */ e(
5311
5291
  k,
5312
5292
  {
5313
5293
  className: n(
5314
5294
  q.progress.name,
5315
- (D = d == null ? void 0 : d.progress) == null ? void 0 : D.name
5295
+ (T = d == null ? void 0 : d.progress) == null ? void 0 : T.name
5316
5296
  ),
5317
- children: g
5297
+ children: s
5318
5298
  }
5319
5299
  ),
5320
5300
  /* @__PURE__ */ e(
@@ -5322,7 +5302,7 @@ const Y = {
5322
5302
  {
5323
5303
  value: w,
5324
5304
  total: r.total,
5325
- color: c[m],
5305
+ color: c[v],
5326
5306
  classNames: {
5327
5307
  bar: q.progress.bar,
5328
5308
  indicator: q.progress.indicator
@@ -5341,7 +5321,7 @@ const Y = {
5341
5321
  )
5342
5322
  ]
5343
5323
  },
5344
- g
5324
+ s
5345
5325
  );
5346
5326
  })
5347
5327
  ] })
@@ -5368,7 +5348,7 @@ const Y = {
5368
5348
  indicator: "h-full rounded-e-md",
5369
5349
  value: "text-xs font-semibold w-5 text-left"
5370
5350
  }
5371
- }, Xn = (t) => {
5351
+ }, Qn = (t) => {
5372
5352
  switch (t) {
5373
5353
  case "payment":
5374
5354
  return { width: 240, height: 110 };
@@ -5378,7 +5358,7 @@ const Y = {
5378
5358
  default:
5379
5359
  return null;
5380
5360
  }
5381
- }, Jn = (t, i) => {
5361
+ }, Xn = (t, i) => {
5382
5362
  const a = [20, 50, 100, 101, ...t === "payment" ? [140] : []];
5383
5363
  return {
5384
5364
  grid: {
@@ -5414,14 +5394,14 @@ const Y = {
5414
5394
  }
5415
5395
  ]
5416
5396
  };
5417
- }, ai = X(
5397
+ }, ii = X(
5418
5398
  ({ data: t, title: i, mode: a = "stat", settings: o, classNames: r, ...c }, d) => {
5419
5399
  const {
5420
5400
  chartColor: l = "#1B9BE4",
5421
5401
  allWhite: u = !1,
5422
5402
  arrowDown: h = !1,
5423
5403
  icon: f = null
5424
- } = o ?? {}, s = u ? "#ffffff" : l, x = a === "payment" ? kr(t.total) : t.total, g = Xn(a), w = Jn(a, s);
5404
+ } = o ?? {}, g = u ? "#ffffff" : l, x = a === "payment" ? yr(t.total) : t.total, s = Qn(a), w = Xn(a, g);
5425
5405
  return /* @__PURE__ */ p(
5426
5406
  "div",
5427
5407
  {
@@ -5478,7 +5458,7 @@ const Y = {
5478
5458
  "div",
5479
5459
  {
5480
5460
  className: n(ue.growth, r == null ? void 0 : r.growth),
5481
- style: { color: s },
5461
+ style: { color: g },
5482
5462
  children: [
5483
5463
  /* @__PURE__ */ e(
5484
5464
  st,
@@ -5496,13 +5476,13 @@ const Y = {
5496
5476
  }
5497
5477
  ),
5498
5478
  a === "stat" && /* @__PURE__ */ e("div", { className: n(ue.icon, r == null ? void 0 : r.icon), children: f }),
5499
- g && /* @__PURE__ */ e(
5479
+ s && /* @__PURE__ */ e(
5500
5480
  at,
5501
5481
  {
5502
5482
  echarts: dt,
5503
5483
  option: w,
5504
5484
  style: {
5505
- ...g,
5485
+ ...s,
5506
5486
  position: "absolute",
5507
5487
  right: a === "bid" ? -60 : -40,
5508
5488
  bottom: a === "bid" ? -5 : 0
@@ -5524,7 +5504,7 @@ const Y = {
5524
5504
  payment: "text-base font-medium text-dark-30/50",
5525
5505
  counBlock: "flex flex-col gap-1",
5526
5506
  totalBlock: "flex flex-row items-start gap-2"
5527
- }, Pn = (t) => {
5507
+ }, Jn = (t) => {
5528
5508
  const i = 100 - t;
5529
5509
  return {
5530
5510
  emphasis: { disabled: !0 },
@@ -5558,7 +5538,7 @@ const Y = {
5558
5538
  }
5559
5539
  ]
5560
5540
  };
5561
- }, di = X(
5541
+ }, ai = X(
5562
5542
  ({
5563
5543
  mode: t = "master",
5564
5544
  title: i,
@@ -5571,7 +5551,7 @@ const Y = {
5571
5551
  avatarGroupProps: u,
5572
5552
  ...h
5573
5553
  }, f) => {
5574
- const s = Pn(o);
5554
+ const g = Jn(o);
5575
5555
  return /* @__PURE__ */ p(
5576
5556
  "div",
5577
5557
  {
@@ -5637,7 +5617,7 @@ const Y = {
5637
5617
  at,
5638
5618
  {
5639
5619
  echarts: dt,
5640
- option: s,
5620
+ option: g,
5641
5621
  style: { height: 135, width: 135 }
5642
5622
  }
5643
5623
  )
@@ -5651,7 +5631,7 @@ const Y = {
5651
5631
  status: "rounded-[8px] text-sm text-secondary-10 font-medium w-max py-1 px-2",
5652
5632
  block: "flex flex-col h-full gap-4",
5653
5633
  serviceTitle: "text-2xl text-semibold leading-none pt-2"
5654
- }, Nn = (t, i) => {
5634
+ }, Pn = (t, i) => {
5655
5635
  const a = i - t;
5656
5636
  return a >= 1 ? 100 : a > 0 ? a * 100 : 0;
5657
5637
  }, dr = ({
@@ -5672,11 +5652,11 @@ const Y = {
5672
5652
  /* @__PURE__ */ e("div", { className: n(be.block, i == null ? void 0 : i.block), children: [...Array(5)].map((r, c) => {
5673
5653
  const d = Math.max(
5674
5654
  0,
5675
- Math.min(100, Nn(c, t))
5655
+ Math.min(100, Pn(c, t))
5676
5656
  );
5677
5657
  return /* @__PURE__ */ p("div", { className: n(be.overlay.block), children: [
5678
5658
  /* @__PURE__ */ e(
5679
- jt,
5659
+ It,
5680
5660
  {
5681
5661
  className: n(be.icon, be.empty),
5682
5662
  "data-testid": "star-empty"
@@ -5689,7 +5669,7 @@ const Y = {
5689
5669
  style: { width: `${d}%` },
5690
5670
  "data-testid": "star-overlay",
5691
5671
  children: /* @__PURE__ */ e(
5692
- jt,
5672
+ It,
5693
5673
  {
5694
5674
  className: n(be.icon, be.filled),
5695
5675
  "data-testid": "star-filled"
@@ -5713,7 +5693,7 @@ const Y = {
5713
5693
  block: "relative",
5714
5694
  star: "absolute inset-0 overflow-hidden"
5715
5695
  }
5716
- }, eo = ({
5696
+ }, Nn = ({
5717
5697
  total: t,
5718
5698
  value: i,
5719
5699
  color: a
@@ -5751,7 +5731,7 @@ const Y = {
5751
5731
  }
5752
5732
  ]
5753
5733
  };
5754
- }, li = X(
5734
+ }, di = X(
5755
5735
  ({ title: t, icon: i, data: a, colors: o, classNames: r, ...c }, d) => {
5756
5736
  var u;
5757
5737
  const l = [
@@ -5791,11 +5771,11 @@ const Y = {
5791
5771
  /* @__PURE__ */ e(k, { className: n(re.total, r == null ? void 0 : r.total), children: a.total })
5792
5772
  ] }),
5793
5773
  /* @__PURE__ */ e("div", { className: n(re.legend.root, (u = r == null ? void 0 : r.legend) == null ? void 0 : u.root), children: l.map((h, f) => {
5794
- var s;
5774
+ var g;
5795
5775
  return /* @__PURE__ */ p(
5796
5776
  "div",
5797
5777
  {
5798
- className: n(re.legend.main, (s = r == null ? void 0 : r.legend) == null ? void 0 : s.main),
5778
+ className: n(re.legend.main, (g = r == null ? void 0 : r.legend) == null ? void 0 : g.main),
5799
5779
  children: [
5800
5780
  /* @__PURE__ */ e(
5801
5781
  "div",
@@ -5826,7 +5806,7 @@ const Y = {
5826
5806
  {
5827
5807
  echarts: dt,
5828
5808
  "data-testid": "chart",
5829
- option: eo({
5809
+ option: Nn({
5830
5810
  total: a.total,
5831
5811
  value: h.value,
5832
5812
  color: o[f]
@@ -5854,7 +5834,7 @@ const Y = {
5854
5834
  root: "flex flex-col gap-2",
5855
5835
  dot: "size-2 rounded-full"
5856
5836
  }
5857
- }, ci = X(
5837
+ }, li = X(
5858
5838
  ({ paid: t, pending: i, overdue: a, title: o, icon: r, total: c, classNames: d, ...l }, u) => {
5859
5839
  var f;
5860
5840
  const h = [
@@ -5892,11 +5872,11 @@ const Y = {
5892
5872
  }
5893
5873
  )
5894
5874
  ] }),
5895
- /* @__PURE__ */ e("div", { className: n(_e.bar.block, (f = d == null ? void 0 : d.bar) == null ? void 0 : f.block), children: h.map(({ label: s, value: x, color: g }, w) => {
5896
- var m;
5875
+ /* @__PURE__ */ e("div", { className: n(_e.bar.block, (f = d == null ? void 0 : d.bar) == null ? void 0 : f.block), children: h.map(({ label: g, value: x, color: s }, w) => {
5876
+ var v;
5897
5877
  return /* @__PURE__ */ p("div", { children: [
5898
- /* @__PURE__ */ p("div", { className: n(_e.bar.text, (m = d == null ? void 0 : d.bar) == null ? void 0 : m.text), children: [
5899
- /* @__PURE__ */ e(k, { children: s }),
5878
+ /* @__PURE__ */ p("div", { className: n(_e.bar.text, (v = d == null ? void 0 : d.bar) == null ? void 0 : v.text), children: [
5879
+ /* @__PURE__ */ e(k, { children: g }),
5900
5880
  /* @__PURE__ */ p(k, { className: n(w === 2 && "text-danger-10"), children: [
5901
5881
  x,
5902
5882
  " сум"
@@ -5907,11 +5887,11 @@ const Y = {
5907
5887
  {
5908
5888
  value: x,
5909
5889
  total: c,
5910
- color: g,
5890
+ color: s,
5911
5891
  classNames: { bar: `${w === 0 && "h-9"}` }
5912
5892
  }
5913
5893
  )
5914
- ] }, s);
5894
+ ] }, g);
5915
5895
  }) })
5916
5896
  ]
5917
5897
  }
@@ -5940,8 +5920,8 @@ const Y = {
5940
5920
  d(r);
5941
5921
  });
5942
5922
  return () => cancelAnimationFrame(l);
5943
- }, [r]), /* @__PURE__ */ e(Gr, { className: n($t.bar, o == null ? void 0 : o.bar), children: /* @__PURE__ */ e(
5944
- Er,
5923
+ }, [r]), /* @__PURE__ */ e(Yr, { className: n($t.bar, o == null ? void 0 : o.bar), children: /* @__PURE__ */ e(
5924
+ Gr,
5945
5925
  {
5946
5926
  className: n($t.indicator, a, o == null ? void 0 : o.indicator),
5947
5927
  style: {
@@ -5952,7 +5932,7 @@ const Y = {
5952
5932
  }, $t = {
5953
5933
  bar: "bg-gray-50 rounded-md h-7",
5954
5934
  indicator: "h-full rounded-md"
5955
- }, pi = X(
5935
+ }, ci = X(
5956
5936
  ({
5957
5937
  classNames: t,
5958
5938
  disabled: i,
@@ -5965,20 +5945,20 @@ const Y = {
5965
5945
  searchValue: u,
5966
5946
  onSearchChange: h,
5967
5947
  searchPlaceholder: f = "Search...",
5968
- emptyMessage: s = "Нет данных",
5948
+ emptyMessage: g = "Нет данных",
5969
5949
  container: x
5970
- }, g) => {
5950
+ }, s) => {
5971
5951
  var G;
5972
- const [w, m] = A(!1), [v, D] = A(-1), S = ne(""), I = ne(null), y = ne(null);
5952
+ const [w, v] = A(!1), [m, T] = A(-1), S = ne(""), j = ne(null), y = ne(null);
5973
5953
  zt(
5974
- g,
5954
+ s,
5975
5955
  () => ({
5976
5956
  focus: () => {
5977
5957
  var _;
5978
- return (_ = I.current) == null ? void 0 : _.focus();
5958
+ return (_ = j.current) == null ? void 0 : _.focus();
5979
5959
  },
5980
- open: () => m(!0),
5981
- close: () => m(!1)
5960
+ open: () => v(!0),
5961
+ close: () => v(!1)
5982
5962
  }),
5983
5963
  []
5984
5964
  );
@@ -5986,46 +5966,46 @@ const Y = {
5986
5966
  b && (S.current = b);
5987
5967
  const C = d ? b ?? S.current : "";
5988
5968
  ge(() => {
5989
- if (v >= 0 && y.current && (r != null && r[v])) {
5969
+ if (m >= 0 && y.current && (r != null && r[m])) {
5990
5970
  const _ = y.current.querySelector(
5991
- `[data-value="${r[v].value}"]`
5971
+ `[data-value="${r[m].value}"]`
5992
5972
  );
5993
5973
  _ == null || _.scrollIntoView({ block: "nearest", behavior: "smooth" });
5994
5974
  }
5995
- }, [v, r]), ge(() => {
5996
- D(-1);
5975
+ }, [m, r]), ge(() => {
5976
+ T(-1);
5997
5977
  }, [r]);
5998
- const j = (_) => {
5999
- m(_), _ && (h(""), D(-1));
6000
- }, T = (_) => {
6001
- o(_), m(!1);
6002
- }, W = (_) => {
5978
+ const W = (_) => {
5979
+ v(_), _ && (h(""), T(-1));
5980
+ }, D = (_) => {
5981
+ o(_), v(!1);
5982
+ }, I = (_) => {
6003
5983
  if (r.length)
6004
5984
  switch (_.key) {
6005
5985
  case "ArrowDown": {
6006
- _.preventDefault(), D((E) => E < r.length - 1 ? E + 1 : 0);
5986
+ _.preventDefault(), T((E) => E < r.length - 1 ? E + 1 : 0);
6007
5987
  break;
6008
5988
  }
6009
5989
  case "ArrowUp": {
6010
- _.preventDefault(), D((E) => E > 0 ? E - 1 : r.length - 1);
5990
+ _.preventDefault(), T((E) => E > 0 ? E - 1 : r.length - 1);
6011
5991
  break;
6012
5992
  }
6013
5993
  case "Enter": {
6014
- _.preventDefault(), v >= 0 && r[v] && T(r[v].value);
5994
+ _.preventDefault(), m >= 0 && r[m] && D(r[m].value);
6015
5995
  break;
6016
5996
  }
6017
5997
  case "Escape": {
6018
- _.preventDefault(), m(!1);
5998
+ _.preventDefault(), v(!1);
6019
5999
  break;
6020
6000
  }
6021
6001
  }
6022
- }, R = (_) => {
6002
+ }, z = (_) => {
6023
6003
  _.preventDefault(), requestAnimationFrame(() => {
6024
6004
  var E;
6025
- (E = I.current) == null || E.focus();
6005
+ (E = j.current) == null || E.focus();
6026
6006
  });
6027
6007
  };
6028
- return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */ p(ae, { open: w, onOpenChange: j, modal: !1, children: [
6008
+ return /* @__PURE__ */ e("div", { className: n("w-full", t == null ? void 0 : t.parent), children: /* @__PURE__ */ p(ae, { open: w, onOpenChange: W, modal: !1, children: [
6029
6009
  /* @__PURE__ */ p(
6030
6010
  de,
6031
6011
  {
@@ -6033,23 +6013,23 @@ const Y = {
6033
6013
  "aria-expanded": w,
6034
6014
  disabled: i,
6035
6015
  className: n(
6036
- L.base.trigger,
6037
- i && L.disabled.trigger,
6038
- w && L.base.focus,
6039
- !w && !i && L.base.hover,
6040
- !w && a && L.status.styles[a],
6016
+ $.base.trigger,
6017
+ i && $.disabled.trigger,
6018
+ w && $.base.focus,
6019
+ !w && !i && $.base.hover,
6020
+ !w && a && $.status.styles[a],
6041
6021
  t == null ? void 0 : t.trigger
6042
6022
  ),
6043
6023
  children: [
6044
- /* @__PURE__ */ e("div", { className: L.base.textWrapper, children: /* @__PURE__ */ e(
6024
+ /* @__PURE__ */ e("div", { className: $.base.textWrapper, children: /* @__PURE__ */ e(
6045
6025
  k,
6046
6026
  {
6047
6027
  className: n(
6048
- L.base.placeholder,
6049
- i && L.disabled.triggerText,
6028
+ $.base.placeholder,
6029
+ i && $.disabled.triggerText,
6050
6030
  "truncate",
6051
- d && L.base.selected,
6052
- d && i && L.disabled.selectedDisabled,
6031
+ d && $.base.selected,
6032
+ d && i && $.disabled.selectedDisabled,
6053
6033
  d ? t == null ? void 0 : t.selected : t == null ? void 0 : t.placeholder
6054
6034
  ),
6055
6035
  children: C || c
@@ -6062,8 +6042,8 @@ const Y = {
6062
6042
  height: 20,
6063
6043
  viewBox: "0 0 20 20",
6064
6044
  className: n(
6065
- L.base.icon,
6066
- i && L.base.iconDisabled,
6045
+ $.base.icon,
6046
+ i && $.base.iconDisabled,
6067
6047
  w && "-rotate-180",
6068
6048
  "flex-shrink-0"
6069
6049
  )
@@ -6077,62 +6057,62 @@ const Y = {
6077
6057
  {
6078
6058
  className: n("p-1", t == null ? void 0 : t.content),
6079
6059
  style: { minWidth: "var(--radix-popper-anchor-width)" },
6080
- onOpenAutoFocus: R,
6060
+ onOpenAutoFocus: z,
6081
6061
  container: x,
6082
6062
  children: [
6083
- /* @__PURE__ */ p("div", { className: L.search.wrapper, children: [
6063
+ /* @__PURE__ */ p("div", { className: $.search.wrapper, children: [
6084
6064
  /* @__PURE__ */ e(
6085
6065
  Pt,
6086
6066
  {
6087
6067
  width: 16,
6088
6068
  height: 16,
6089
- className: L.search.icon
6069
+ className: $.search.icon
6090
6070
  }
6091
6071
  ),
6092
6072
  /* @__PURE__ */ e(
6093
6073
  "input",
6094
6074
  {
6095
- ref: I,
6075
+ ref: j,
6096
6076
  type: "text",
6097
6077
  value: u,
6098
6078
  onChange: (_) => h(_.target.value),
6099
- onKeyDown: W,
6079
+ onKeyDown: I,
6100
6080
  placeholder: f,
6101
6081
  className: n(
6102
- L.search.input,
6082
+ $.search.input,
6103
6083
  t == null ? void 0 : t.searchInput
6104
6084
  ),
6105
6085
  autoComplete: "off"
6106
6086
  }
6107
6087
  )
6108
6088
  ] }),
6109
- /* @__PURE__ */ e("div", { className: L.search.divider }),
6110
- /* @__PURE__ */ p("div", { ref: y, className: L.options.list, children: [
6111
- l && /* @__PURE__ */ e("div", { className: L.options.loadingWrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }),
6089
+ /* @__PURE__ */ e("div", { className: $.search.divider }),
6090
+ /* @__PURE__ */ p("div", { ref: y, className: $.options.list, children: [
6091
+ l && /* @__PURE__ */ e("div", { className: $.options.loadingWrapper, children: /* @__PURE__ */ e(rt, { width: 30, height: 30 }) }),
6112
6092
  !l && r.length ? r.map((_, E) => /* @__PURE__ */ e(
6113
6093
  "div",
6114
6094
  {
6115
6095
  "data-value": _.value,
6116
6096
  className: n(
6117
- L.options.items,
6118
- v === E && L.options.highlighted,
6119
- d === _.value && L.options.active
6097
+ $.options.items,
6098
+ m === E && $.options.highlighted,
6099
+ d === _.value && $.options.active
6120
6100
  ),
6121
6101
  onClick: (ce) => {
6122
- ce.preventDefault(), ce.stopPropagation(), T(_.value);
6102
+ ce.preventDefault(), ce.stopPropagation(), D(_.value);
6123
6103
  },
6124
- onMouseEnter: () => D(E),
6125
- children: /* @__PURE__ */ e(k, { className: L.options.itemsText, children: _.label })
6104
+ onMouseEnter: () => T(E),
6105
+ children: /* @__PURE__ */ e(k, { className: $.options.itemsText, children: _.label })
6126
6106
  },
6127
6107
  _.value
6128
6108
  )) : !l && /* @__PURE__ */ e(
6129
6109
  "div",
6130
6110
  {
6131
6111
  className: n(
6132
- L.options.items,
6112
+ $.options.items,
6133
6113
  "cursor-default"
6134
6114
  ),
6135
- children: /* @__PURE__ */ e(k, { className: L.options.itemsText, children: s })
6115
+ children: /* @__PURE__ */ e(k, { className: $.options.itemsText, children: g })
6136
6116
  }
6137
6117
  )
6138
6118
  ] })
@@ -6141,7 +6121,7 @@ const Y = {
6141
6121
  )
6142
6122
  ] }) });
6143
6123
  }
6144
- ), L = {
6124
+ ), $ = {
6145
6125
  base: {
6146
6126
  trigger: "px-4 py-3 rounded-[10px] h-11 border border-dark-30/[.10] bg-gray-50 text-start flex justify-between items-center outline-none gap-2 w-full",
6147
6127
  focus: "bg-transparent outline-[2px] outline-primary-10/[.20] border-primary-10 outline-offset-0",
@@ -6180,68 +6160,68 @@ const Y = {
6180
6160
  }
6181
6161
  };
6182
6162
  export {
6183
- yo as Accordion,
6184
- Xo as ApartmentCard,
6163
+ wo as Accordion,
6164
+ Qo as ApartmentCard,
6185
6165
  St as AvatarGroup,
6186
- Co as Breadcrumb,
6187
- Zo as CardFiles,
6188
- di as CardMonthly,
6189
- ii as CardPieChart,
6190
- ci as CardProgress,
6191
- li as CardRingChart,
6192
- Mo as CardServices,
6193
- ai as CardStat,
6194
- Kn as ChatButton,
6195
- On as ChatCard,
6196
- No as ChatList,
6197
- ei as ChatMessage,
6198
- Po as ChatSidebar,
6199
- ln as CheckboxGroup,
6200
- pi as Combobox,
6201
- Oo as CommentInput,
6202
- Bo as CommentList,
6203
- Eo as DateOfBirth,
6204
- Io as DatePicker,
6166
+ ko as Breadcrumb,
6167
+ qo as CardFiles,
6168
+ ai as CardMonthly,
6169
+ oi as CardPieChart,
6170
+ li as CardProgress,
6171
+ di as CardRingChart,
6172
+ Wo as CardServices,
6173
+ ii as CardStat,
6174
+ En as ChatButton,
6175
+ Mn as ChatCard,
6176
+ Po as ChatList,
6177
+ No as ChatMessage,
6178
+ Jo as ChatSidebar,
6179
+ dn as CheckboxGroup,
6180
+ ci as Combobox,
6181
+ Mo as CommentInput,
6182
+ So as CommentList,
6183
+ Go as DateOfBirth,
6184
+ Bo as DatePicker,
6205
6185
  jo as DateRangePicker,
6206
- ti as DeleteMessage,
6207
- Go as DragAndDrop,
6208
- Mn as Dropdown,
6209
- _o as FileUploader,
6210
- Wo as FilterTable,
6211
- oi as FloorSelect,
6186
+ ei as DeleteMessage,
6187
+ Yo as DragAndDrop,
6188
+ Wn as Dropdown,
6189
+ Io as FileUploader,
6190
+ _o as FilterTable,
6191
+ ni as FloorSelect,
6212
6192
  Ye as IconTitle,
6213
6193
  Bt as InputGroup,
6214
6194
  Me as LabelWithValue,
6215
- Fo as Languages,
6195
+ Ao as Languages,
6216
6196
  Ge as Link,
6217
- ri as MessageSettings,
6218
- Do as MultiSelect,
6219
- Un as NavButton,
6220
- Ro as Pagination,
6197
+ ti as MessageSettings,
6198
+ To as MultiSelect,
6199
+ Hn as NavButton,
6200
+ Fo as Pagination,
6221
6201
  F as PaginationTokens,
6222
- To as PasswordInput,
6223
- Qo as PaymentCard,
6224
- $o as PhoneInput,
6225
- Lo as Plate,
6202
+ Co as PasswordInput,
6203
+ Zo as PaymentCard,
6204
+ Ro as PhoneInput,
6205
+ $o as Plate,
6226
6206
  lr as ProgressItem,
6227
6207
  ir as RadioGroup,
6228
6208
  dr as Rating,
6229
- gn as SearchInput,
6230
- qo as SelectGroup,
6231
- En as SelectList,
6232
- Jo as ServiceOrders,
6233
- Ao as Sidebar,
6209
+ xn as SearchInput,
6210
+ Vo as SelectGroup,
6211
+ Gn as SelectList,
6212
+ Xo as ServiceOrders,
6213
+ Oo as Sidebar,
6234
6214
  ar as StatusSelect,
6235
- Ko as Stepper,
6236
- Ho as TabGroup,
6237
- ni as TabList,
6238
- zo as TabSwitch,
6215
+ Eo as Stepper,
6216
+ zo as TabGroup,
6217
+ ri as TabList,
6218
+ Lo as TabSwitch,
6239
6219
  ke as TabSwitchTokens,
6240
- ko as Table,
6241
- Uo as TextareaGroup,
6242
- Yo as ToggleGroup,
6243
- So as UploadInput,
6244
- Vo as UserContact,
6220
+ yo as Table,
6221
+ Ho as TextareaGroup,
6222
+ Uo as ToggleGroup,
6223
+ Do as UploadInput,
6224
+ Ko as UserContact,
6245
6225
  ve as accordionTokens,
6246
6226
  ie as apartmentCardTokens,
6247
6227
  Fe as avatarTokens,
@@ -6253,21 +6233,21 @@ export {
6253
6233
  re as cardRingChartTokens,
6254
6234
  fe as cardServicesTokens,
6255
6235
  ue as cardStatTokens,
6256
- je as chatButtonTokens,
6236
+ Ie as chatButtonTokens,
6257
6237
  Se as chatCardTokens,
6258
6238
  Rt as chatListTokens,
6259
6239
  Je as chatMessageTokens,
6260
6240
  Le as chatSidebarTokens,
6261
6241
  pe as checkboxGroupTokens,
6262
- L as comboboxTokens,
6242
+ $ as comboboxTokens,
6263
6243
  Ze as commentInputTokens,
6264
6244
  U as commentItemTokens,
6265
6245
  Ot as dateOfBirthClasses,
6266
6246
  B as datePickerTokens,
6267
- _n as dateRangePickerTokens,
6268
- Wn as dayPickerClasses,
6247
+ In as dateRangePickerTokens,
6248
+ _n as dayPickerClasses,
6269
6249
  Pe as deleteMessageTokens,
6270
- Ie as dragAndDropTokens,
6250
+ je as dragAndDropTokens,
6271
6251
  _t as dropdownTokens,
6272
6252
  K as fileUploaderTokens,
6273
6253
  ut as filterTableTokens,
@@ -6276,11 +6256,11 @@ export {
6276
6256
  Xe as inputGroupTokens,
6277
6257
  Ft as labelWithValueTokens,
6278
6258
  ft as languagesTokens,
6279
- Yn as linkTokens,
6259
+ Un as linkTokens,
6280
6260
  gt as messageSettingsTokens,
6281
- $ as multiSelectTokens,
6261
+ R as multiSelectTokens,
6282
6262
  bt as navButtonTokens,
6283
- xn as passwordInputTokens,
6263
+ bn as passwordInputTokens,
6284
6264
  P as paymentCardTokens,
6285
6265
  ye as phoneInputTokens,
6286
6266
  Re as plateTokens,
@@ -6288,17 +6268,17 @@ export {
6288
6268
  we as radioGroupTokens,
6289
6269
  be as ratingTokens,
6290
6270
  te as searchInputTokens,
6291
- Gn as selectGroupTokens,
6271
+ Yn as selectGroupTokens,
6292
6272
  Y as selectListTokens,
6293
6273
  Ce as serviceOrdersTokens,
6294
6274
  Qe as sidebarTokens,
6295
6275
  $e as statusSelectTokens,
6296
6276
  V as stepperTokens,
6297
6277
  Be as tabGroupTokens,
6298
- qn as tabListTokens,
6278
+ Vn as tabListTokens,
6299
6279
  Z as tableTokens,
6300
6280
  Mt as textareaGroupTokens,
6301
- Ln as toggleGroupTokens,
6281
+ $n as toggleGroupTokens,
6302
6282
  me as uploadInputTokens,
6303
6283
  xt as userContactTokens
6304
6284
  };