konsolpro-custom-ui 0.0.449 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/index.js
CHANGED
|
@@ -41,40 +41,41 @@ import * as ke from "react";
|
|
|
41
41
|
import v, { lazy as lr, Suspense as dr, useMemo as ie, useState as ce, useCallback as Q, createContext as Ot, useContext as Bt, useEffect as he, useRef as de, createElement as ko, useLayoutEffect as dt, forwardRef as To, useImperativeHandle as tn, memo as Vt, useSyncExternalStore as rn } from "react";
|
|
42
42
|
import { Slot as Dt } from "@radix-ui/react-slot";
|
|
43
43
|
import { cva as ge } from "class-variance-authority";
|
|
44
|
-
import { clsx as
|
|
45
|
-
import { twMerge as
|
|
44
|
+
import Ro, { clsx as Mo } from "clsx";
|
|
45
|
+
import { twMerge as Do } from "tailwind-merge";
|
|
46
46
|
import * as Ie from "@radix-ui/react-popover";
|
|
47
47
|
import { Command as Ce } from "cmdk";
|
|
48
48
|
import * as qe from "@radix-ui/react-avatar";
|
|
49
49
|
import cr from "embla-carousel-react";
|
|
50
50
|
import * as Or from "@radix-ui/react-checkbox";
|
|
51
|
-
import { ru as Me, enUS as
|
|
52
|
-
import { DayPicker as
|
|
53
|
-
import { format as Be, addMonths as or, startOfDay as
|
|
54
|
-
import
|
|
51
|
+
import { ru as Me, enUS as Eo } from "date-fns/locale";
|
|
52
|
+
import { DayPicker as Ao, DayContent as Fo } from "react-day-picker";
|
|
53
|
+
import { format as Be, addMonths as or, startOfDay as Lo, parse as Po, isValid as zo } from "date-fns";
|
|
54
|
+
import Oo from "react-input-mask";
|
|
55
55
|
import { createTeleporter as kt } from "react-teleporter";
|
|
56
56
|
import * as le from "@radix-ui/react-dialog";
|
|
57
57
|
import * as ze from "react-phone-number-input";
|
|
58
|
-
import
|
|
59
|
-
import
|
|
58
|
+
import Bo from "react-phone-number-input/flags";
|
|
59
|
+
import Vo from "react-phone-number-input/locale/en.json";
|
|
60
60
|
import * as ut from "@radix-ui/react-scroll-area";
|
|
61
|
-
import
|
|
61
|
+
import _o from "react-phone-number-input/locale/ru.json";
|
|
62
62
|
import * as Br from "@radix-ui/react-progress";
|
|
63
63
|
import * as _t from "@radix-ui/react-radio-group";
|
|
64
64
|
import * as Wt from "@radix-ui/react-toggle-group";
|
|
65
65
|
import * as Se from "@radix-ui/react-select";
|
|
66
66
|
import * as ar from "@radix-ui/react-switch";
|
|
67
67
|
import * as He from "@radix-ui/react-tabs";
|
|
68
|
-
import { toast as me, Toaster as
|
|
68
|
+
import { toast as me, Toaster as Wo } from "sonner";
|
|
69
69
|
import * as Oe from "@radix-ui/react-tooltip";
|
|
70
70
|
import { useFloating as nn, offset as on, flip as an, shift as sn, size as ln, autoUpdate as dn, useTransitionStyles as cn } from "@floating-ui/react";
|
|
71
71
|
import { useCombobox as xe } from "downshift";
|
|
72
|
-
import {
|
|
72
|
+
import { QRCodeCanvas as Ho } from "qrcode.react";
|
|
73
|
+
import { flexRender as un, useReactTable as Go, getSortedRowModel as Ko, getCoreRowModel as jo } from "@tanstack/react-table";
|
|
73
74
|
function m(...e) {
|
|
74
|
-
return Mo(
|
|
75
|
+
return Do(Mo(e));
|
|
75
76
|
}
|
|
76
77
|
const Tt = ["purple", "cyan", "blue", "volcano", "magenta"];
|
|
77
|
-
function
|
|
78
|
+
function Uo(e) {
|
|
78
79
|
if (e == null)
|
|
79
80
|
return "purple";
|
|
80
81
|
const t = typeof e == "number" ? e : Number.parseInt(String(e), 10);
|
|
@@ -88,7 +89,7 @@ function B(e) {
|
|
|
88
89
|
return { default: (yield e()).ReactComponent };
|
|
89
90
|
}));
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
+
const $o = {
|
|
92
93
|
GlobalIcon: B(() => E(null, null, function* () {
|
|
93
94
|
return import("../chunks/global-icon-CtsMxxLT.js");
|
|
94
95
|
})),
|
|
@@ -463,7 +464,7 @@ function Y({
|
|
|
463
464
|
className: r,
|
|
464
465
|
size: o = 16
|
|
465
466
|
}) {
|
|
466
|
-
const a =
|
|
467
|
+
const a = $o[e];
|
|
467
468
|
return a ? /* @__PURE__ */ n(
|
|
468
469
|
"div",
|
|
469
470
|
{
|
|
@@ -481,7 +482,7 @@ function ue(e) {
|
|
|
481
482
|
return { default: (yield e()).ReactComponent };
|
|
482
483
|
}));
|
|
483
484
|
}
|
|
484
|
-
const
|
|
485
|
+
const Yo = {
|
|
485
486
|
AlfaIcon: ue(() => E(null, null, function* () {
|
|
486
487
|
return import("../chunks/alfa-icon-Cx0WqCux.js");
|
|
487
488
|
})),
|
|
@@ -562,8 +563,8 @@ const Uo = {
|
|
|
562
563
|
return import("../chunks/yandex-icon-CepqpI49.js");
|
|
563
564
|
}))
|
|
564
565
|
};
|
|
565
|
-
function
|
|
566
|
-
const t = ie(() =>
|
|
566
|
+
function bd({ icon: e }) {
|
|
567
|
+
const t = ie(() => Yo[e], [e]);
|
|
567
568
|
return t ? /* @__PURE__ */ n(
|
|
568
569
|
"div",
|
|
569
570
|
{
|
|
@@ -582,7 +583,7 @@ function Ee(e) {
|
|
|
582
583
|
return { default: (yield e()).ReactComponent };
|
|
583
584
|
}));
|
|
584
585
|
}
|
|
585
|
-
const
|
|
586
|
+
const Zo = {
|
|
586
587
|
Normal: Ee(() => E(null, null, function* () {
|
|
587
588
|
return import("../chunks/normal-icon-CYvIFN5j.js");
|
|
588
589
|
})),
|
|
@@ -614,12 +615,12 @@ const $o = {
|
|
|
614
615
|
return import("../chunks/accept-icon-X_bMUe5T.js");
|
|
615
616
|
}))
|
|
616
617
|
};
|
|
617
|
-
function
|
|
618
|
+
function xd({
|
|
618
619
|
icon: e,
|
|
619
620
|
color: t = "currentColor",
|
|
620
621
|
size: r = 40
|
|
621
622
|
}) {
|
|
622
|
-
const o = ie(() =>
|
|
623
|
+
const o = ie(() => Zo[e], [e]);
|
|
623
624
|
return o ? /* @__PURE__ */ n(
|
|
624
625
|
"div",
|
|
625
626
|
{
|
|
@@ -634,11 +635,11 @@ function hd({
|
|
|
634
635
|
}
|
|
635
636
|
) : null;
|
|
636
637
|
}
|
|
637
|
-
function
|
|
638
|
+
function yd(t) {
|
|
638
639
|
var e = _(t, []);
|
|
639
640
|
return /* @__PURE__ */ n(ft.Root, N({ "data-slot": "accordion" }, e));
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function vd(r) {
|
|
642
643
|
var o = r, {
|
|
643
644
|
className: e
|
|
644
645
|
} = o, t = _(o, [
|
|
@@ -652,7 +653,7 @@ function bd(r) {
|
|
|
652
653
|
}, t)
|
|
653
654
|
);
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
+
function wd(i) {
|
|
656
657
|
var s = i, {
|
|
657
658
|
className: e,
|
|
658
659
|
children: t,
|
|
@@ -699,7 +700,7 @@ function xd(i) {
|
|
|
699
700
|
})
|
|
700
701
|
) });
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
+
function Nd(o) {
|
|
703
704
|
var a = o, {
|
|
704
705
|
className: e,
|
|
705
706
|
children: t
|
|
@@ -717,7 +718,7 @@ function yd(o) {
|
|
|
717
718
|
})
|
|
718
719
|
);
|
|
719
720
|
}
|
|
720
|
-
const
|
|
721
|
+
const Jo = ge("flex-col items-center justify-center", {
|
|
721
722
|
variants: {
|
|
722
723
|
show: {
|
|
723
724
|
true: "flex",
|
|
@@ -730,7 +731,7 @@ const Yo = ge("flex-col items-center justify-center", {
|
|
|
730
731
|
}), Ge = v.forwardRef(
|
|
731
732
|
(s, i) => {
|
|
732
733
|
var l = s, { size: e = 16, show: t, children: r, className: o } = l, a = _(l, ["size", "show", "children", "className"]);
|
|
733
|
-
return /* @__PURE__ */ k("span", F(N({ ref: i, className:
|
|
734
|
+
return /* @__PURE__ */ k("span", F(N({ ref: i, className: Jo({ show: t }) }, a), { children: [
|
|
734
735
|
/* @__PURE__ */ n(
|
|
735
736
|
Y,
|
|
736
737
|
{
|
|
@@ -840,7 +841,7 @@ const fn = ge(
|
|
|
840
841
|
iconPosition: "start"
|
|
841
842
|
}
|
|
842
843
|
}
|
|
843
|
-
),
|
|
844
|
+
), Qo = {
|
|
844
845
|
primary: {
|
|
845
846
|
hover: "bg-primary-hover",
|
|
846
847
|
focus: "bg-primary-hover",
|
|
@@ -949,7 +950,7 @@ const fn = ge(
|
|
|
949
950
|
isLoadingAndDisabled: R,
|
|
950
951
|
iconPosition: s
|
|
951
952
|
}),
|
|
952
|
-
x && ((W =
|
|
953
|
+
x && ((W = Qo[t]) == null ? void 0 : W[x]),
|
|
953
954
|
e
|
|
954
955
|
),
|
|
955
956
|
disabled: w,
|
|
@@ -1082,7 +1083,7 @@ const Vr = ge("", {
|
|
|
1082
1083
|
}
|
|
1083
1084
|
);
|
|
1084
1085
|
K.displayName = "Typography";
|
|
1085
|
-
const mn = Ot({}),
|
|
1086
|
+
const mn = Ot({}), qo = 384, pn = v.forwardRef(
|
|
1086
1087
|
(c, l) => {
|
|
1087
1088
|
var f = c, {
|
|
1088
1089
|
closeOnItemClick: e = !0,
|
|
@@ -1147,7 +1148,7 @@ const gn = v.forwardRef(
|
|
|
1147
1148
|
align: r = "start",
|
|
1148
1149
|
side: o = "bottom",
|
|
1149
1150
|
minWidth: a = 200,
|
|
1150
|
-
maxHeight: i =
|
|
1151
|
+
maxHeight: i = qo,
|
|
1151
1152
|
sideOffset: s = 4,
|
|
1152
1153
|
style: l
|
|
1153
1154
|
} = d, c = _(d, [
|
|
@@ -1263,7 +1264,7 @@ const yn = v.forwardRef((o, r) => {
|
|
|
1263
1264
|
);
|
|
1264
1265
|
});
|
|
1265
1266
|
yn.displayName = "DropdownSeparator";
|
|
1266
|
-
function
|
|
1267
|
+
function Xo({
|
|
1267
1268
|
children: e,
|
|
1268
1269
|
size: t = "md",
|
|
1269
1270
|
disabled: r,
|
|
@@ -1302,20 +1303,20 @@ function Qo({
|
|
|
1302
1303
|
)
|
|
1303
1304
|
] });
|
|
1304
1305
|
}
|
|
1305
|
-
|
|
1306
|
-
const
|
|
1306
|
+
Xo.displayName = "ActionsMenu";
|
|
1307
|
+
const ea = v.forwardRef(
|
|
1307
1308
|
(e, t) => /* @__PURE__ */ n(bn, N({ ref: t }, e))
|
|
1308
1309
|
);
|
|
1309
|
-
|
|
1310
|
-
const
|
|
1310
|
+
ea.displayName = "ActionsMenuItem";
|
|
1311
|
+
const ta = v.forwardRef(
|
|
1311
1312
|
(e, t) => /* @__PURE__ */ n(yn, N({ ref: t }, e))
|
|
1312
1313
|
);
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1314
|
+
ta.displayName = "ActionsMenuSeparator";
|
|
1315
|
+
const ra = v.forwardRef(
|
|
1315
1316
|
(e, t) => /* @__PURE__ */ n(xn, N({ ref: t }, e))
|
|
1316
1317
|
);
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1318
|
+
ra.displayName = "ActionsMenuLabel";
|
|
1319
|
+
const na = {
|
|
1319
1320
|
error: {
|
|
1320
1321
|
stripe: "bg-destructive",
|
|
1321
1322
|
bg: "bg-red-50",
|
|
@@ -1340,7 +1341,7 @@ const ta = {
|
|
|
1340
1341
|
icon: "text-yellow-500",
|
|
1341
1342
|
iconName: "InfoFillIcon"
|
|
1342
1343
|
}
|
|
1343
|
-
},
|
|
1344
|
+
}, oa = v.forwardRef(
|
|
1344
1345
|
(x, d) => {
|
|
1345
1346
|
var g = x, {
|
|
1346
1347
|
variant: e,
|
|
@@ -1365,7 +1366,7 @@ const ta = {
|
|
|
1365
1366
|
"className",
|
|
1366
1367
|
"data-testid"
|
|
1367
1368
|
]);
|
|
1368
|
-
const p =
|
|
1369
|
+
const p = na[e];
|
|
1369
1370
|
return /* @__PURE__ */ k(
|
|
1370
1371
|
"div",
|
|
1371
1372
|
F(N({
|
|
@@ -1435,7 +1436,7 @@ const ta = {
|
|
|
1435
1436
|
);
|
|
1436
1437
|
}
|
|
1437
1438
|
);
|
|
1438
|
-
|
|
1439
|
+
oa.displayName = "Alert";
|
|
1439
1440
|
const mt = v.forwardRef((o, r) => {
|
|
1440
1441
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
1441
1442
|
return /* @__PURE__ */ n(
|
|
@@ -1450,7 +1451,7 @@ const mt = v.forwardRef((o, r) => {
|
|
|
1450
1451
|
);
|
|
1451
1452
|
});
|
|
1452
1453
|
mt.displayName = Ce.displayName;
|
|
1453
|
-
const
|
|
1454
|
+
const aa = v.forwardRef((o, r) => {
|
|
1454
1455
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
1455
1456
|
return /* @__PURE__ */ k("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1456
1457
|
/* @__PURE__ */ n(Y, { icon: "SearchIcon" }),
|
|
@@ -1466,7 +1467,7 @@ const na = v.forwardRef((o, r) => {
|
|
|
1466
1467
|
)
|
|
1467
1468
|
] });
|
|
1468
1469
|
});
|
|
1469
|
-
|
|
1470
|
+
aa.displayName = Ce.Input.displayName;
|
|
1470
1471
|
const pt = v.forwardRef((o, r) => {
|
|
1471
1472
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
1472
1473
|
return /* @__PURE__ */ n(
|
|
@@ -1500,7 +1501,7 @@ const ht = v.forwardRef((o, r) => {
|
|
|
1500
1501
|
);
|
|
1501
1502
|
});
|
|
1502
1503
|
ht.displayName = Ce.Group.displayName;
|
|
1503
|
-
const
|
|
1504
|
+
const ia = v.forwardRef((o, r) => {
|
|
1504
1505
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
1505
1506
|
return /* @__PURE__ */ n(
|
|
1506
1507
|
Ce.Separator,
|
|
@@ -1510,7 +1511,7 @@ const oa = v.forwardRef((o, r) => {
|
|
|
1510
1511
|
}, t)
|
|
1511
1512
|
);
|
|
1512
1513
|
});
|
|
1513
|
-
|
|
1514
|
+
ia.displayName = Ce.Separator.displayName;
|
|
1514
1515
|
const Ht = v.forwardRef((o, r) => {
|
|
1515
1516
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
1516
1517
|
return /* @__PURE__ */ n(
|
|
@@ -1525,7 +1526,7 @@ const Ht = v.forwardRef((o, r) => {
|
|
|
1525
1526
|
);
|
|
1526
1527
|
});
|
|
1527
1528
|
Ht.displayName = Ce.Item.displayName;
|
|
1528
|
-
function
|
|
1529
|
+
function sa(r) {
|
|
1529
1530
|
var o = r, {
|
|
1530
1531
|
className: e
|
|
1531
1532
|
} = o, t = _(o, [
|
|
@@ -1541,8 +1542,8 @@ function aa(r) {
|
|
|
1541
1542
|
}, t)
|
|
1542
1543
|
);
|
|
1543
1544
|
}
|
|
1544
|
-
|
|
1545
|
-
function
|
|
1545
|
+
sa.displayName = "CommandShortcut";
|
|
1546
|
+
function la(e) {
|
|
1546
1547
|
const t = e.replaceAll(" ", "").replace(",", "."), r = Number.parseFloat(t);
|
|
1547
1548
|
return Number.isNaN(r) ? null : r;
|
|
1548
1549
|
}
|
|
@@ -1550,10 +1551,10 @@ function _r(e) {
|
|
|
1550
1551
|
var o, a;
|
|
1551
1552
|
return e == null ? 0 : (a = (o = String(e).replace(",", ".").split(".")[1]) == null ? void 0 : o.length) != null ? a : 0;
|
|
1552
1553
|
}
|
|
1553
|
-
function
|
|
1554
|
+
function da(e, t) {
|
|
1554
1555
|
return t <= 0 ? String(Math.round(e)) : e.toFixed(t).replace(/\.?0+$/, "");
|
|
1555
1556
|
}
|
|
1556
|
-
function
|
|
1557
|
+
function ca(e, t, r) {
|
|
1557
1558
|
const o = t == null || t === "" ? void 0 : Number(t), a = r == null || r === "" ? void 0 : Number(r);
|
|
1558
1559
|
let i = e;
|
|
1559
1560
|
return Number.isFinite(o) && (i = Math.max(i, Number(o))), Number.isFinite(a) && (i = Math.min(i, Number(a))), i;
|
|
@@ -1613,7 +1614,7 @@ const Fe = v.forwardRef(
|
|
|
1613
1614
|
"value",
|
|
1614
1615
|
"data-testid"
|
|
1615
1616
|
]);
|
|
1616
|
-
const H = v.useRef(null), W = R != null && R.toString().length > 0, M = I && W && !d, z = W ?
|
|
1617
|
+
const H = v.useRef(null), W = R != null && R.toString().length > 0, M = I && W && !d, z = W ? la(String(R)) : null, G = Math.max(
|
|
1617
1618
|
_r(T.step),
|
|
1618
1619
|
_r(R)
|
|
1619
1620
|
), O = v.useCallback(
|
|
@@ -1639,11 +1640,11 @@ const Fe = v.forwardRef(
|
|
|
1639
1640
|
const te = Number((ye = T.step) != null ? ye : 1);
|
|
1640
1641
|
if (!Number.isFinite(te) || te === 0)
|
|
1641
1642
|
return;
|
|
1642
|
-
const j = z != null ? z : 0, J =
|
|
1643
|
+
const j = z != null ? z : 0, J = ca(
|
|
1643
1644
|
j + $ * te,
|
|
1644
1645
|
T.min,
|
|
1645
1646
|
T.max
|
|
1646
|
-
), ne =
|
|
1647
|
+
), ne = da(J, G);
|
|
1647
1648
|
Z(ne);
|
|
1648
1649
|
},
|
|
1649
1650
|
[G, d, z, T.max, T.min, T.step, Z]
|
|
@@ -1856,7 +1857,7 @@ const Fe = v.forwardRef(
|
|
|
1856
1857
|
}
|
|
1857
1858
|
);
|
|
1858
1859
|
Fe.displayName = "Input";
|
|
1859
|
-
const
|
|
1860
|
+
const ua = v.forwardRef(
|
|
1860
1861
|
(e, t) => {
|
|
1861
1862
|
const [r, o] = v.useState(!1), a = v.useRef(null), f = e, { size: i = "md" } = f, s = _(f, ["size"]), l = v.useCallback(
|
|
1862
1863
|
(u) => {
|
|
@@ -1896,7 +1897,7 @@ const da = v.forwardRef(
|
|
|
1896
1897
|
);
|
|
1897
1898
|
}
|
|
1898
1899
|
);
|
|
1899
|
-
|
|
1900
|
+
ua.displayName = "InputPassword";
|
|
1900
1901
|
const At = v.forwardRef(
|
|
1901
1902
|
(e, t) => {
|
|
1902
1903
|
const f = e, {
|
|
@@ -1946,7 +1947,7 @@ const At = v.forwardRef(
|
|
|
1946
1947
|
}
|
|
1947
1948
|
);
|
|
1948
1949
|
At.displayName = "InputSearch";
|
|
1949
|
-
const
|
|
1950
|
+
const fa = v.forwardRef(
|
|
1950
1951
|
(e, t) => {
|
|
1951
1952
|
const l = e, { size: r = "md", title: o, className: a, disabled: i } = l, s = _(l, ["size", "title", "className", "disabled"]);
|
|
1952
1953
|
return /* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
|
|
@@ -1966,8 +1967,8 @@ const ca = v.forwardRef(
|
|
|
1966
1967
|
) });
|
|
1967
1968
|
}
|
|
1968
1969
|
);
|
|
1969
|
-
|
|
1970
|
-
const
|
|
1970
|
+
fa.displayName = "InputTitle";
|
|
1971
|
+
const ma = v.forwardRef(
|
|
1971
1972
|
(e, t) => {
|
|
1972
1973
|
const s = e, { size: r = "md", className: o } = s, a = _(s, ["size", "className"]), i = /* @__PURE__ */ n(
|
|
1973
1974
|
"div",
|
|
@@ -1990,7 +1991,7 @@ const ua = v.forwardRef(
|
|
|
1990
1991
|
);
|
|
1991
1992
|
}
|
|
1992
1993
|
);
|
|
1993
|
-
|
|
1994
|
+
ma.displayName = "InputLink";
|
|
1994
1995
|
const Xe = Ie.Root, Gt = Ie.Trigger, Ke = v.forwardRef((i, a) => {
|
|
1995
1996
|
var s = i, { className: e, align: t = "center", sideOffset: r = 4 } = s, o = _(s, ["className", "align", "sideOffset"]);
|
|
1996
1997
|
return /* @__PURE__ */ n(Ie.Portal, { children: /* @__PURE__ */ n(
|
|
@@ -2012,7 +2013,7 @@ function vn(t) {
|
|
|
2012
2013
|
var e = _(t, []);
|
|
2013
2014
|
return /* @__PURE__ */ n(Ie.Anchor, N({ "data-slot": "popover-anchor" }, e));
|
|
2014
2015
|
}
|
|
2015
|
-
function
|
|
2016
|
+
function Id({
|
|
2016
2017
|
options: e,
|
|
2017
2018
|
value: t,
|
|
2018
2019
|
onValueChange: r,
|
|
@@ -2113,37 +2114,37 @@ function vd({
|
|
|
2113
2114
|
)
|
|
2114
2115
|
] }) });
|
|
2115
2116
|
}
|
|
2116
|
-
const
|
|
2117
|
+
const pa = {
|
|
2117
2118
|
small: "h-6 w-6",
|
|
2118
2119
|
default: "h-8 w-8",
|
|
2119
2120
|
large: "h-10 w-10",
|
|
2120
2121
|
extra: "h-12 w-12"
|
|
2121
|
-
},
|
|
2122
|
+
}, ha = {
|
|
2122
2123
|
small: "rounded-[6px]",
|
|
2123
2124
|
default: "rounded-[8px]",
|
|
2124
2125
|
large: "rounded-[10px]",
|
|
2125
2126
|
extra: "rounded-[12px]"
|
|
2126
|
-
},
|
|
2127
|
+
}, ga = {
|
|
2127
2128
|
small: "text-[12px]",
|
|
2128
2129
|
default: "text-[12px]",
|
|
2129
2130
|
large: "text-[16px]",
|
|
2130
2131
|
extra: "text-[16px]"
|
|
2131
|
-
},
|
|
2132
|
+
}, ba = {
|
|
2132
2133
|
purple: "bg-[var(--color-avatar-purple-bg)]",
|
|
2133
2134
|
cyan: "bg-[var(--color-avatar-cyan-bg)]",
|
|
2134
2135
|
blue: "bg-[var(--color-avatar-blue-bg)]",
|
|
2135
2136
|
volcano: "bg-[var(--color-avatar-volcano-bg)]",
|
|
2136
2137
|
magenta: "bg-[var(--color-avatar-magenta-bg)]"
|
|
2137
|
-
},
|
|
2138
|
+
}, xa = {
|
|
2138
2139
|
purple: "text-[var(--color-avatar-purple-fg)]",
|
|
2139
2140
|
cyan: "text-[var(--color-avatar-cyan-fg)]",
|
|
2140
2141
|
blue: "text-[var(--color-avatar-blue-fg)]",
|
|
2141
2142
|
volcano: "text-[var(--color-avatar-volcano-fg)]",
|
|
2142
2143
|
magenta: "text-[var(--color-avatar-magenta-fg)]"
|
|
2143
|
-
},
|
|
2144
|
+
}, ya = {
|
|
2144
2145
|
error: "text-destructive",
|
|
2145
2146
|
warning: "text-warning"
|
|
2146
|
-
},
|
|
2147
|
+
}, va = ke.forwardRef(
|
|
2147
2148
|
(c, l) => {
|
|
2148
2149
|
var f = c, {
|
|
2149
2150
|
className: e,
|
|
@@ -2160,7 +2161,7 @@ const fa = {
|
|
|
2160
2161
|
"badge",
|
|
2161
2162
|
"children"
|
|
2162
2163
|
]);
|
|
2163
|
-
const u = o === "circle" ? "rounded-full" :
|
|
2164
|
+
const u = o === "circle" ? "rounded-full" : ha[r], d = {
|
|
2164
2165
|
small: 8,
|
|
2165
2166
|
default: 10,
|
|
2166
2167
|
large: 12,
|
|
@@ -2177,7 +2178,7 @@ const fa = {
|
|
|
2177
2178
|
ref: l,
|
|
2178
2179
|
className: m(
|
|
2179
2180
|
"relative flex shrink-0",
|
|
2180
|
-
|
|
2181
|
+
pa[r],
|
|
2181
2182
|
u,
|
|
2182
2183
|
e
|
|
2183
2184
|
),
|
|
@@ -2197,7 +2198,7 @@ const fa = {
|
|
|
2197
2198
|
Y,
|
|
2198
2199
|
{
|
|
2199
2200
|
icon: "ErrorFillIcon",
|
|
2200
|
-
className:
|
|
2201
|
+
className: ya[a],
|
|
2201
2202
|
size: d
|
|
2202
2203
|
}
|
|
2203
2204
|
)
|
|
@@ -2208,8 +2209,8 @@ const fa = {
|
|
|
2208
2209
|
);
|
|
2209
2210
|
}
|
|
2210
2211
|
);
|
|
2211
|
-
|
|
2212
|
-
const
|
|
2212
|
+
va.displayName = qe.Root.displayName;
|
|
2213
|
+
const wa = ke.forwardRef(
|
|
2213
2214
|
(o, r) => {
|
|
2214
2215
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
2215
2216
|
return /* @__PURE__ */ n(
|
|
@@ -2224,8 +2225,8 @@ const ya = ke.forwardRef(
|
|
|
2224
2225
|
);
|
|
2225
2226
|
}
|
|
2226
2227
|
);
|
|
2227
|
-
|
|
2228
|
-
const
|
|
2228
|
+
wa.displayName = qe.Image.displayName;
|
|
2229
|
+
const Na = ke.forwardRef(
|
|
2229
2230
|
(c, l) => {
|
|
2230
2231
|
var f = c, {
|
|
2231
2232
|
className: e,
|
|
@@ -2242,12 +2243,12 @@ const va = ke.forwardRef(
|
|
|
2242
2243
|
"autoColor",
|
|
2243
2244
|
"children"
|
|
2244
2245
|
]);
|
|
2245
|
-
const u =
|
|
2246
|
+
const u = ga[t], d = ke.useMemo(() => {
|
|
2246
2247
|
if (r)
|
|
2247
2248
|
return r;
|
|
2248
2249
|
if (a)
|
|
2249
|
-
return
|
|
2250
|
-
}, [a, r, o]), x = d ?
|
|
2250
|
+
return Uo(o);
|
|
2251
|
+
}, [a, r, o]), x = d ? ba[d] : "bg-muted", g = d ? xa[d] : "text-foreground";
|
|
2251
2252
|
return /* @__PURE__ */ n(
|
|
2252
2253
|
qe.Fallback,
|
|
2253
2254
|
F(N({
|
|
@@ -2267,8 +2268,8 @@ const va = ke.forwardRef(
|
|
|
2267
2268
|
);
|
|
2268
2269
|
}
|
|
2269
2270
|
);
|
|
2270
|
-
|
|
2271
|
-
const
|
|
2271
|
+
Na.displayName = qe.Fallback.displayName;
|
|
2272
|
+
const Ia = new URL("../assets/alfa-BqdpLXjE.png", import.meta.url).href, Sa = new URL("../assets/bolt-BdrQvbQc.png", import.meta.url).href, Ca = new URL("../assets/doc-CA2MQk3m.webp", import.meta.url).href, ka = new URL("../assets/download-D4NtsTXF.webp", import.meta.url).href, Ta = new URL("../assets/headphones-b1FlU-5n.webp", import.meta.url).href, Ra = new URL("../assets/magnifying-glass-DnHnztsH.webp", import.meta.url).href, Ma = new URL("../assets/mandarin-O1JQvcin.png", import.meta.url).href, Da = new URL("../assets/person-Dnyaeaax.webp", import.meta.url).href, Ea = new URL("../assets/plus-XlrU9iHE.webp", import.meta.url).href, Aa = new URL("../assets/pocket-DumMTe-y.webp", import.meta.url).href, Fa = new URL("../assets/tbank-DHDEULnP.png", import.meta.url).href, La = new URL("../assets/torn-paper-Bxt8F9jg.webp", import.meta.url).href, Je = v.forwardRef(
|
|
2272
2273
|
(x, d) => {
|
|
2273
2274
|
var g = x, {
|
|
2274
2275
|
className: e,
|
|
@@ -2367,12 +2368,12 @@ function wn(e) {
|
|
|
2367
2368
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2368
2369
|
}
|
|
2369
2370
|
function Re(e) {
|
|
2370
|
-
return
|
|
2371
|
+
return Lo(e);
|
|
2371
2372
|
}
|
|
2372
2373
|
function Xt(e) {
|
|
2373
2374
|
return Be(e, "LLLL yyyy", { locale: Me });
|
|
2374
2375
|
}
|
|
2375
|
-
const
|
|
2376
|
+
const Pa = [
|
|
2376
2377
|
"января",
|
|
2377
2378
|
"февраля",
|
|
2378
2379
|
"марта",
|
|
@@ -2386,10 +2387,10 @@ const Fa = [
|
|
|
2386
2387
|
"ноября",
|
|
2387
2388
|
"декабря"
|
|
2388
2389
|
];
|
|
2389
|
-
function
|
|
2390
|
-
return
|
|
2390
|
+
function za(e) {
|
|
2391
|
+
return Pa[e.getMonth()];
|
|
2391
2392
|
}
|
|
2392
|
-
function
|
|
2393
|
+
function Sd(e) {
|
|
2393
2394
|
const [t, r, o] = e.split("-").map(Number);
|
|
2394
2395
|
return new Date(t, r - 1, o);
|
|
2395
2396
|
}
|
|
@@ -2401,7 +2402,7 @@ function Mt(e) {
|
|
|
2401
2402
|
{ year: o.getFullYear(), month: o.getMonth() }
|
|
2402
2403
|
];
|
|
2403
2404
|
}
|
|
2404
|
-
const
|
|
2405
|
+
const Oa = ({
|
|
2405
2406
|
date: e,
|
|
2406
2407
|
selected: t,
|
|
2407
2408
|
renderBadge: r,
|
|
@@ -2430,14 +2431,14 @@ const Pa = ({
|
|
|
2430
2431
|
]
|
|
2431
2432
|
}
|
|
2432
2433
|
);
|
|
2433
|
-
}, Pe = 78, Nn = 768,
|
|
2434
|
+
}, Pe = 78, Nn = 768, Ba = 7, Va = ({
|
|
2434
2435
|
date: e,
|
|
2435
2436
|
selected: t,
|
|
2436
2437
|
onClick: r,
|
|
2437
2438
|
renderBadge: o,
|
|
2438
2439
|
className: a = ""
|
|
2439
2440
|
}) => {
|
|
2440
|
-
const i = Be(e, "d", { locale: Me }), s = wn(e), l =
|
|
2441
|
+
const i = Be(e, "d", { locale: Me }), s = wn(e), l = za(e);
|
|
2441
2442
|
return /* @__PURE__ */ n(
|
|
2442
2443
|
"button",
|
|
2443
2444
|
{
|
|
@@ -2466,7 +2467,7 @@ const Pa = ({
|
|
|
2466
2467
|
] })
|
|
2467
2468
|
}
|
|
2468
2469
|
);
|
|
2469
|
-
},
|
|
2470
|
+
}, Cd = ({
|
|
2470
2471
|
dates: e,
|
|
2471
2472
|
selectedDate: t,
|
|
2472
2473
|
onDateSelect: r,
|
|
@@ -2498,7 +2499,7 @@ const Pa = ({
|
|
|
2498
2499
|
[r]
|
|
2499
2500
|
), u = (d) => t ? Re(d).getTime() === Re(t).getTime() : !1;
|
|
2500
2501
|
return /* @__PURE__ */ n("div", { className: m("overflow-hidden", i == null ? void 0 : i.root), ref: s, children: /* @__PURE__ */ n("div", { className: m("flex gap-1.5", i == null ? void 0 : i.content), children: e.map((d) => /* @__PURE__ */ n(
|
|
2501
|
-
|
|
2502
|
+
Va,
|
|
2502
2503
|
{
|
|
2503
2504
|
date: d,
|
|
2504
2505
|
selected: u(d),
|
|
@@ -2513,19 +2514,19 @@ function ct(e) {
|
|
|
2513
2514
|
const t = new Date(e);
|
|
2514
2515
|
return t.setHours(0, 0, 0, 0), t;
|
|
2515
2516
|
}
|
|
2516
|
-
function
|
|
2517
|
+
function _a(e, t) {
|
|
2517
2518
|
return new Date(e, t + 1, 0).getDate();
|
|
2518
2519
|
}
|
|
2519
|
-
function
|
|
2520
|
+
function Wa(e) {
|
|
2520
2521
|
const t = [];
|
|
2521
2522
|
for (const r of e) {
|
|
2522
|
-
const o =
|
|
2523
|
+
const o = _a(r.year, r.month);
|
|
2523
2524
|
for (let a = 1; a <= o; a++)
|
|
2524
2525
|
t.push(ct(new Date(r.year, r.month, a)));
|
|
2525
2526
|
}
|
|
2526
2527
|
return t;
|
|
2527
2528
|
}
|
|
2528
|
-
function
|
|
2529
|
+
function Ha({
|
|
2529
2530
|
value: e,
|
|
2530
2531
|
defaultValue: t,
|
|
2531
2532
|
months: r,
|
|
@@ -2536,7 +2537,7 @@ function _a({
|
|
|
2536
2537
|
return r;
|
|
2537
2538
|
const d = a.current;
|
|
2538
2539
|
return [{ year: d.getFullYear(), month: d.getMonth() }];
|
|
2539
|
-
}, [r]), f = ie(() =>
|
|
2540
|
+
}, [r]), f = ie(() => Wa(c), [c]);
|
|
2540
2541
|
return he(() => {
|
|
2541
2542
|
const d = ct(e || t || a.current);
|
|
2542
2543
|
d.getTime() !== s.getTime() && l(d);
|
|
@@ -2549,7 +2550,7 @@ function _a({
|
|
|
2549
2550
|
}
|
|
2550
2551
|
};
|
|
2551
2552
|
}
|
|
2552
|
-
const
|
|
2553
|
+
const kd = (f) => {
|
|
2553
2554
|
var u = f, {
|
|
2554
2555
|
onChange: e,
|
|
2555
2556
|
dayClassName: t,
|
|
@@ -2569,12 +2570,12 @@ const Id = (f) => {
|
|
|
2569
2570
|
"onScrollComplete",
|
|
2570
2571
|
"testIds"
|
|
2571
2572
|
]);
|
|
2572
|
-
const { days: d, selectedDate: x, setSelectedDate: g } =
|
|
2573
|
+
const { days: d, selectedDate: x, setSelectedDate: g } = Ha(F(N({}, c), {
|
|
2573
2574
|
onChange: e
|
|
2574
2575
|
})), p = de(null), y = Q((S) => {
|
|
2575
2576
|
const A = p.current;
|
|
2576
2577
|
if (A) {
|
|
2577
|
-
const w =
|
|
2578
|
+
const w = Ba * Pe;
|
|
2578
2579
|
A.scrollBy({ left: S > 0 ? w : -546, behavior: "smooth" });
|
|
2579
2580
|
}
|
|
2580
2581
|
}, []), h = (S) => S.getTime() === x.getTime(), b = Q((S, A = !1) => {
|
|
@@ -2655,7 +2656,7 @@ const Id = (f) => {
|
|
|
2655
2656
|
msOverflowStyle: "none"
|
|
2656
2657
|
},
|
|
2657
2658
|
children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((S) => /* @__PURE__ */ n(
|
|
2658
|
-
|
|
2659
|
+
Oa,
|
|
2659
2660
|
{
|
|
2660
2661
|
date: S,
|
|
2661
2662
|
selected: h(S),
|
|
@@ -2988,7 +2989,7 @@ const fr = v.forwardRef(
|
|
|
2988
2989
|
}
|
|
2989
2990
|
);
|
|
2990
2991
|
fr.displayName = "SelectTrigger";
|
|
2991
|
-
const
|
|
2992
|
+
const Td = Se.Group, Ga = v.forwardRef((i, a) => {
|
|
2992
2993
|
var s = i, { className: e, children: t, placeholder: r } = s, o = _(s, ["className", "children", "placeholder"]);
|
|
2993
2994
|
return /* @__PURE__ */ n(
|
|
2994
2995
|
Se.Value,
|
|
@@ -3059,7 +3060,7 @@ const Sd = Se.Group, Wa = v.forwardRef((i, a) => {
|
|
|
3059
3060
|
}
|
|
3060
3061
|
);
|
|
3061
3062
|
mr.displayName = "SelectContent";
|
|
3062
|
-
const
|
|
3063
|
+
const Ka = v.forwardRef((o, r) => {
|
|
3063
3064
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
3064
3065
|
return /* @__PURE__ */ n(
|
|
3065
3066
|
Se.Label,
|
|
@@ -3072,8 +3073,8 @@ const Ha = v.forwardRef((o, r) => {
|
|
|
3072
3073
|
}, t)
|
|
3073
3074
|
);
|
|
3074
3075
|
});
|
|
3075
|
-
|
|
3076
|
-
const
|
|
3076
|
+
Ka.displayName = "SelectLabel";
|
|
3077
|
+
const ja = v.forwardRef((o, r) => {
|
|
3077
3078
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
3078
3079
|
return /* @__PURE__ */ n(
|
|
3079
3080
|
Se.Separator,
|
|
@@ -3083,8 +3084,8 @@ const Ga = v.forwardRef((o, r) => {
|
|
|
3083
3084
|
}, t)
|
|
3084
3085
|
);
|
|
3085
3086
|
});
|
|
3086
|
-
|
|
3087
|
-
const
|
|
3087
|
+
ja.displayName = "SelectSeparator";
|
|
3088
|
+
const Ua = Se.Root, $a = v.forwardRef(
|
|
3088
3089
|
(u, f) => {
|
|
3089
3090
|
var d = u, {
|
|
3090
3091
|
children: e,
|
|
@@ -3143,14 +3144,14 @@ const Ka = Se.Root, ja = v.forwardRef(
|
|
|
3143
3144
|
);
|
|
3144
3145
|
}
|
|
3145
3146
|
);
|
|
3146
|
-
|
|
3147
|
+
$a.displayName = "MultiSelect";
|
|
3147
3148
|
fr.displayName = "SelectTrigger";
|
|
3148
3149
|
mr.displayName = "SelectContent";
|
|
3149
3150
|
ur.displayName = "SelectItem";
|
|
3150
3151
|
function Wr(e) {
|
|
3151
3152
|
return Be(e, "yyyy-MM-dd");
|
|
3152
3153
|
}
|
|
3153
|
-
const
|
|
3154
|
+
const Rd = ({
|
|
3154
3155
|
anchorDate: e,
|
|
3155
3156
|
onChange: t,
|
|
3156
3157
|
onMonthsChange: r,
|
|
@@ -3188,7 +3189,7 @@ const Cd = ({
|
|
|
3188
3189
|
}
|
|
3189
3190
|
return Xt(c);
|
|
3190
3191
|
}, [o, c]);
|
|
3191
|
-
return /* @__PURE__ */ k(
|
|
3192
|
+
return /* @__PURE__ */ k(Ua, { value: g, onValueChange: p, children: [
|
|
3192
3193
|
/* @__PURE__ */ n(
|
|
3193
3194
|
fr,
|
|
3194
3195
|
{
|
|
@@ -3197,13 +3198,13 @@ const Cd = ({
|
|
|
3197
3198
|
transparent: !0,
|
|
3198
3199
|
inlineSelect: !0,
|
|
3199
3200
|
"data-testid": i == null ? void 0 : i.periodSelector,
|
|
3200
|
-
children: /* @__PURE__ */ n(
|
|
3201
|
+
children: /* @__PURE__ */ n(Ga, { children: /* @__PURE__ */ n(K, { variant: "h1", weight: "normal", children: y }) })
|
|
3201
3202
|
}
|
|
3202
3203
|
),
|
|
3203
3204
|
/* @__PURE__ */ n(mr, { size: "lg", children: x.map((h) => /* @__PURE__ */ n(ur, { value: h.value, children: h.label }, h.value)) })
|
|
3204
3205
|
] });
|
|
3205
3206
|
};
|
|
3206
|
-
function
|
|
3207
|
+
function Md({
|
|
3207
3208
|
value: e,
|
|
3208
3209
|
defaultValue: t,
|
|
3209
3210
|
onChange: r
|
|
@@ -3243,20 +3244,20 @@ function kd({
|
|
|
3243
3244
|
resetToToday: p
|
|
3244
3245
|
};
|
|
3245
3246
|
}
|
|
3246
|
-
const
|
|
3247
|
-
doc:
|
|
3248
|
-
download:
|
|
3249
|
-
headphones:
|
|
3250
|
-
"magnifying-glass":
|
|
3251
|
-
mandarin:
|
|
3252
|
-
person:
|
|
3253
|
-
plus:
|
|
3254
|
-
pocket:
|
|
3255
|
-
bolt:
|
|
3256
|
-
"torn-paper":
|
|
3257
|
-
tbank:
|
|
3258
|
-
alfa:
|
|
3259
|
-
},
|
|
3247
|
+
const Ya = window.innerWidth < Nn, Za = {
|
|
3248
|
+
doc: Ca,
|
|
3249
|
+
download: ka,
|
|
3250
|
+
headphones: Ta,
|
|
3251
|
+
"magnifying-glass": Ra,
|
|
3252
|
+
mandarin: Ma,
|
|
3253
|
+
person: Da,
|
|
3254
|
+
plus: Ea,
|
|
3255
|
+
pocket: Aa,
|
|
3256
|
+
bolt: Sa,
|
|
3257
|
+
"torn-paper": La,
|
|
3258
|
+
tbank: Fa,
|
|
3259
|
+
alfa: Ia
|
|
3260
|
+
}, Ja = v.forwardRef(
|
|
3260
3261
|
(u, f) => {
|
|
3261
3262
|
var d = u, {
|
|
3262
3263
|
className: e,
|
|
@@ -3277,7 +3278,7 @@ const Ua = window.innerWidth < Nn, $a = {
|
|
|
3277
3278
|
"onClose",
|
|
3278
3279
|
"color"
|
|
3279
3280
|
]);
|
|
3280
|
-
const x = i ?
|
|
3281
|
+
const x = i ? Za[i] : void 0;
|
|
3281
3282
|
return t === "inline" ? /* @__PURE__ */ n(
|
|
3282
3283
|
Je,
|
|
3283
3284
|
F(N({
|
|
@@ -3361,7 +3362,7 @@ const Ua = window.innerWidth < Nn, $a = {
|
|
|
3361
3362
|
children: r
|
|
3362
3363
|
}
|
|
3363
3364
|
) }),
|
|
3364
|
-
/* @__PURE__ */ n("div", { className: "w-[90%] md:max-w-[60%] z-11", children: /* @__PURE__ */ n(K, { variant:
|
|
3365
|
+
/* @__PURE__ */ n("div", { className: "w-[90%] md:max-w-[60%] z-11", children: /* @__PURE__ */ n(K, { variant: Ya ? "p1" : "p2", children: o }) })
|
|
3365
3366
|
] }),
|
|
3366
3367
|
a && /* @__PURE__ */ n("div", { className: "z-11", children: a })
|
|
3367
3368
|
] }),
|
|
@@ -3413,8 +3414,8 @@ const Ua = window.innerWidth < Nn, $a = {
|
|
|
3413
3414
|
);
|
|
3414
3415
|
}
|
|
3415
3416
|
);
|
|
3416
|
-
|
|
3417
|
-
function
|
|
3417
|
+
Ja.displayName = "Banner";
|
|
3418
|
+
function Dd(s) {
|
|
3418
3419
|
var l = s, {
|
|
3419
3420
|
items: e,
|
|
3420
3421
|
renderSlide: t,
|
|
@@ -3442,7 +3443,7 @@ function Td(s) {
|
|
|
3442
3443
|
})
|
|
3443
3444
|
);
|
|
3444
3445
|
}
|
|
3445
|
-
const
|
|
3446
|
+
const Qa = ge(
|
|
3446
3447
|
"group peer cursor-pointer border-border focus:border-primary focus:shadow-focus disabled:cursor-not-allowed shrink-0 rounded-sm border focus:outline-none flex items-center justify-center",
|
|
3447
3448
|
{
|
|
3448
3449
|
variants: {
|
|
@@ -3466,7 +3467,7 @@ const Za = ge(
|
|
|
3466
3467
|
isDisabled: !1
|
|
3467
3468
|
}
|
|
3468
3469
|
}
|
|
3469
|
-
),
|
|
3470
|
+
), qa = ge(
|
|
3470
3471
|
"rounded-[2px] bg-primary shrink-0 group-hover:bg-primary-hover group-disabled:group-hover:bg-primary group-active:bg-primary-active",
|
|
3471
3472
|
{
|
|
3472
3473
|
variants: {
|
|
@@ -3477,7 +3478,7 @@ const Za = ge(
|
|
|
3477
3478
|
}
|
|
3478
3479
|
}
|
|
3479
3480
|
);
|
|
3480
|
-
function
|
|
3481
|
+
function Xa(e) {
|
|
3481
3482
|
const {
|
|
3482
3483
|
className: t,
|
|
3483
3484
|
checkboxClassName: r,
|
|
@@ -3498,7 +3499,7 @@ function Qa(e) {
|
|
|
3498
3499
|
ref: f,
|
|
3499
3500
|
id: p,
|
|
3500
3501
|
className: m(
|
|
3501
|
-
|
|
3502
|
+
Qa({ size: o, state: A(), isDisabled: y }),
|
|
3502
3503
|
r || (a ? void 0 : t)
|
|
3503
3504
|
),
|
|
3504
3505
|
disabled: y,
|
|
@@ -3507,7 +3508,7 @@ function Qa(e) {
|
|
|
3507
3508
|
"aria-label": u,
|
|
3508
3509
|
"data-testid": d,
|
|
3509
3510
|
children: /* @__PURE__ */ k(Or.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
3510
|
-
S === "indeterminate" && /* @__PURE__ */ n("div", { className:
|
|
3511
|
+
S === "indeterminate" && /* @__PURE__ */ n("div", { className: qa({ size: o }) }),
|
|
3511
3512
|
S === !0 && /* @__PURE__ */ n(Y, { icon: "DoneIcon", size: x, className: "text-white" })
|
|
3512
3513
|
] })
|
|
3513
3514
|
}
|
|
@@ -3529,13 +3530,13 @@ function Qa(e) {
|
|
|
3529
3530
|
] }) : D;
|
|
3530
3531
|
}
|
|
3531
3532
|
const pr = v.forwardRef(
|
|
3532
|
-
(e, t) => /* @__PURE__ */ n(
|
|
3533
|
-
),
|
|
3533
|
+
(e, t) => /* @__PURE__ */ n(Xa, F(N({}, e), { ref: t }))
|
|
3534
|
+
), ei = {
|
|
3534
3535
|
xs: "h-6 text-[12px]",
|
|
3535
3536
|
sm: "h-8 text-[14px]",
|
|
3536
3537
|
md: "h-9 text-[14px]",
|
|
3537
3538
|
lg: "h-10 text-[16px]"
|
|
3538
|
-
},
|
|
3539
|
+
}, ti = v.forwardRef(
|
|
3539
3540
|
({
|
|
3540
3541
|
options: e,
|
|
3541
3542
|
value: t,
|
|
@@ -3658,7 +3659,7 @@ const pr = v.forwardRef(
|
|
|
3658
3659
|
// Разные ховеры для выбранного и невыбранного элемента
|
|
3659
3660
|
t !== R.value && "hover:bg-option-hover",
|
|
3660
3661
|
t === R.value && "bg-primary-10 font-medium hover:bg-option-selected-hover",
|
|
3661
|
-
|
|
3662
|
+
ei[o]
|
|
3662
3663
|
),
|
|
3663
3664
|
onClick: () => {
|
|
3664
3665
|
r(R.value), h(!1), S("");
|
|
@@ -3683,7 +3684,7 @@ const pr = v.forwardRef(
|
|
|
3683
3684
|
] });
|
|
3684
3685
|
}
|
|
3685
3686
|
);
|
|
3686
|
-
|
|
3687
|
+
ti.displayName = "Combobox";
|
|
3687
3688
|
const Cn = Ot(null);
|
|
3688
3689
|
function yt() {
|
|
3689
3690
|
const e = Bt(Cn);
|
|
@@ -3691,7 +3692,7 @@ function yt() {
|
|
|
3691
3692
|
throw new Error("useComboboxPrimitiveContext must be used within ComboboxPrimitiveProvider");
|
|
3692
3693
|
return e;
|
|
3693
3694
|
}
|
|
3694
|
-
function
|
|
3695
|
+
function ri({
|
|
3695
3696
|
items: e,
|
|
3696
3697
|
value: t = null,
|
|
3697
3698
|
onChange: r,
|
|
@@ -3753,7 +3754,7 @@ function ei({
|
|
|
3753
3754
|
setInputValue: d
|
|
3754
3755
|
});
|
|
3755
3756
|
}
|
|
3756
|
-
function
|
|
3757
|
+
function ni(e, t, r) {
|
|
3757
3758
|
const { refs: o, floatingStyles: a, context: i } = nn({
|
|
3758
3759
|
open: e && !t,
|
|
3759
3760
|
placement: "bottom-start",
|
|
@@ -3781,7 +3782,7 @@ function ti(e, t, r) {
|
|
|
3781
3782
|
transitionStyles: l
|
|
3782
3783
|
};
|
|
3783
3784
|
}
|
|
3784
|
-
function
|
|
3785
|
+
function oi({
|
|
3785
3786
|
children: e,
|
|
3786
3787
|
items: t,
|
|
3787
3788
|
value: r = null,
|
|
@@ -3805,7 +3806,7 @@ function ri({
|
|
|
3805
3806
|
const S = Q(x, []), A = ie(() => r ? {
|
|
3806
3807
|
value: r,
|
|
3807
3808
|
label: S(r)
|
|
3808
|
-
} : null, [r, S]), w =
|
|
3809
|
+
} : null, [r, S]), w = ri({
|
|
3809
3810
|
items: t,
|
|
3810
3811
|
value: A,
|
|
3811
3812
|
onChange: o,
|
|
@@ -3815,7 +3816,7 @@ function ri({
|
|
|
3815
3816
|
getLabel: S,
|
|
3816
3817
|
isOpen: y,
|
|
3817
3818
|
onOpenChange: h
|
|
3818
|
-
}), D =
|
|
3819
|
+
}), D = ni(w.isOpen, g, p), R = ie(() => ({
|
|
3819
3820
|
// Combobox состояние
|
|
3820
3821
|
getInputProps: w.getInputProps,
|
|
3821
3822
|
getItemProps: w.getItemProps,
|
|
@@ -3897,7 +3898,7 @@ const Kt = {
|
|
|
3897
3898
|
function kn(e) {
|
|
3898
3899
|
return Kt[e].iconSize;
|
|
3899
3900
|
}
|
|
3900
|
-
const
|
|
3901
|
+
const ai = [
|
|
3901
3902
|
"font-graphik",
|
|
3902
3903
|
"relative",
|
|
3903
3904
|
"flex",
|
|
@@ -3911,16 +3912,16 @@ const ni = [
|
|
|
3911
3912
|
"outline-none",
|
|
3912
3913
|
"select-none",
|
|
3913
3914
|
"p-3"
|
|
3914
|
-
],
|
|
3915
|
+
], ii = [
|
|
3915
3916
|
"bg-primary-10",
|
|
3916
3917
|
"font-medium",
|
|
3917
3918
|
"hover:bg-option-selected-hover"
|
|
3918
|
-
],
|
|
3919
|
+
], si = [
|
|
3919
3920
|
"hover:bg-option-hover"
|
|
3920
|
-
],
|
|
3921
|
+
], li = [
|
|
3921
3922
|
"data-[highlighted]:bg-primary-10",
|
|
3922
3923
|
"data-[highlighted]:font-medium"
|
|
3923
|
-
],
|
|
3924
|
+
], di = [
|
|
3924
3925
|
"font-graphik",
|
|
3925
3926
|
"flex-1",
|
|
3926
3927
|
"border-0",
|
|
@@ -3931,14 +3932,14 @@ const ni = [
|
|
|
3931
3932
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
3932
3933
|
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
3933
3934
|
"placeholder:text-muted-foreground"
|
|
3934
|
-
],
|
|
3935
|
+
], ci = [
|
|
3935
3936
|
"relative",
|
|
3936
3937
|
"flex",
|
|
3937
3938
|
"items-center",
|
|
3938
3939
|
"rounded-lg",
|
|
3939
3940
|
"border-1",
|
|
3940
3941
|
"border-solid"
|
|
3941
|
-
],
|
|
3942
|
+
], ui = [
|
|
3942
3943
|
"bg-background",
|
|
3943
3944
|
"border-border",
|
|
3944
3945
|
"hover:border-hover-input-primary",
|
|
@@ -3950,7 +3951,7 @@ const ni = [
|
|
|
3950
3951
|
"disabled:focus-within:border-border",
|
|
3951
3952
|
"disabled:focus-within:shadow-none",
|
|
3952
3953
|
"disabled:hover:border-none"
|
|
3953
|
-
],
|
|
3954
|
+
], fi = [
|
|
3954
3955
|
"bg-background",
|
|
3955
3956
|
"border-destructive",
|
|
3956
3957
|
"hover:border-destructive",
|
|
@@ -3958,16 +3959,16 @@ const ni = [
|
|
|
3958
3959
|
"focus-within:shadow-error",
|
|
3959
3960
|
"data-[state=open]:border-destructive",
|
|
3960
3961
|
"data-[state=open]:shadow-error"
|
|
3961
|
-
],
|
|
3962
|
+
], mi = [
|
|
3962
3963
|
"bg-input-disabled-background",
|
|
3963
3964
|
"cursor-not-allowed"
|
|
3964
|
-
],
|
|
3965
|
+
], pi = [
|
|
3965
3966
|
"border-0",
|
|
3966
3967
|
"bg-transparent",
|
|
3967
3968
|
"hover:bg-transparent",
|
|
3968
3969
|
"focus-within:border-0",
|
|
3969
3970
|
"focus-within:shadow-none"
|
|
3970
|
-
],
|
|
3971
|
+
], hi = [
|
|
3971
3972
|
"bg-popover",
|
|
3972
3973
|
"text-popover-foreground",
|
|
3973
3974
|
"border-border",
|
|
@@ -3977,7 +3978,7 @@ const ni = [
|
|
|
3977
3978
|
"rounded-lg",
|
|
3978
3979
|
"border",
|
|
3979
3980
|
"shadow-[0_2px_10px_rgba(0,0,0,0.1)]"
|
|
3980
|
-
],
|
|
3981
|
+
], gi = {
|
|
3981
3982
|
xs: "pr-2",
|
|
3982
3983
|
sm: "pr-2",
|
|
3983
3984
|
md: "pr-2.5",
|
|
@@ -3995,7 +3996,7 @@ const ni = [
|
|
|
3995
3996
|
selectedItem: c,
|
|
3996
3997
|
disabled: f
|
|
3997
3998
|
} = yt();
|
|
3998
|
-
return /* @__PURE__ */ n("div", { className: m("flex items-center gap-1.5",
|
|
3999
|
+
return /* @__PURE__ */ n("div", { className: m("flex items-center gap-1.5", gi[e]), children: i ? /* @__PURE__ */ n(Ge, { size: 12 }) : /* @__PURE__ */ k(ve, { children: [
|
|
3999
4000
|
o && /* @__PURE__ */ n(
|
|
4000
4001
|
Y,
|
|
4001
4002
|
{
|
|
@@ -4037,7 +4038,7 @@ const ni = [
|
|
|
4037
4038
|
] }) });
|
|
4038
4039
|
};
|
|
4039
4040
|
Tn.displayName = "ComboboxActions";
|
|
4040
|
-
function
|
|
4041
|
+
function Ed(e) {
|
|
4041
4042
|
const { clientHeight: t, scrollHeight: r, scrollTop: o } = e;
|
|
4042
4043
|
return {
|
|
4043
4044
|
reachedEnd: r - o <= t + 1
|
|
@@ -4045,16 +4046,16 @@ function Rd(e) {
|
|
|
4045
4046
|
}
|
|
4046
4047
|
function er(e, t) {
|
|
4047
4048
|
return m(
|
|
4048
|
-
...
|
|
4049
|
-
e ?
|
|
4050
|
-
...
|
|
4049
|
+
...ai,
|
|
4050
|
+
e ? ii : si,
|
|
4051
|
+
...li,
|
|
4051
4052
|
t
|
|
4052
4053
|
);
|
|
4053
4054
|
}
|
|
4054
4055
|
function Rn(e, t, r) {
|
|
4055
4056
|
const o = Kt[e];
|
|
4056
4057
|
return m(
|
|
4057
|
-
...
|
|
4058
|
+
...di,
|
|
4058
4059
|
o.fontSize,
|
|
4059
4060
|
o.paddingLeft,
|
|
4060
4061
|
o.paddingRight,
|
|
@@ -4067,20 +4068,20 @@ function Rn(e, t, r) {
|
|
|
4067
4068
|
function Mn(e, t, r, o, a) {
|
|
4068
4069
|
const i = Kt[e];
|
|
4069
4070
|
return m(
|
|
4070
|
-
...
|
|
4071
|
+
...ci,
|
|
4071
4072
|
i.height,
|
|
4072
4073
|
{
|
|
4073
4074
|
"w-full": t
|
|
4074
4075
|
},
|
|
4075
4076
|
// Стили в зависимости от состояния
|
|
4076
|
-
!o && !r && !a &&
|
|
4077
|
+
!o && !r && !a && ui,
|
|
4077
4078
|
o && !r && [
|
|
4078
4079
|
"bg-background",
|
|
4079
4080
|
"border-border",
|
|
4080
|
-
...
|
|
4081
|
+
...mi
|
|
4081
4082
|
],
|
|
4082
|
-
a && !o && !r &&
|
|
4083
|
-
r &&
|
|
4083
|
+
a && !o && !r && fi,
|
|
4084
|
+
r && pi
|
|
4084
4085
|
);
|
|
4085
4086
|
}
|
|
4086
4087
|
function Dn(e) {
|
|
@@ -4088,7 +4089,7 @@ function Dn(e) {
|
|
|
4088
4089
|
return m("mb-1.5", t.labelSize);
|
|
4089
4090
|
}
|
|
4090
4091
|
function En(e, t) {
|
|
4091
|
-
return m("hidden", e &&
|
|
4092
|
+
return m("hidden", e && hi, t && "flex flex-col gap-2");
|
|
4092
4093
|
}
|
|
4093
4094
|
function jt(e) {
|
|
4094
4095
|
return e != null && e !== "";
|
|
@@ -4184,13 +4185,13 @@ function Ft(s) {
|
|
|
4184
4185
|
children: t
|
|
4185
4186
|
})
|
|
4186
4187
|
),
|
|
4187
|
-
/* @__PURE__ */ n(
|
|
4188
|
+
/* @__PURE__ */ n(bi, {}),
|
|
4188
4189
|
/* @__PURE__ */ n(ut.Corner, {})
|
|
4189
4190
|
]
|
|
4190
4191
|
})
|
|
4191
4192
|
);
|
|
4192
4193
|
}
|
|
4193
|
-
function
|
|
4194
|
+
function bi(o) {
|
|
4194
4195
|
var a = o, {
|
|
4195
4196
|
className: e,
|
|
4196
4197
|
orientation: t = "vertical"
|
|
@@ -4263,7 +4264,7 @@ function tr(e) {
|
|
|
4263
4264
|
}
|
|
4264
4265
|
return String(e);
|
|
4265
4266
|
}
|
|
4266
|
-
function
|
|
4267
|
+
function xi({
|
|
4267
4268
|
children: e,
|
|
4268
4269
|
classNames: t
|
|
4269
4270
|
}) {
|
|
@@ -4339,7 +4340,7 @@ function gi({
|
|
|
4339
4340
|
}))(e);
|
|
4340
4341
|
return /* @__PURE__ */ n(ve, { children: c });
|
|
4341
4342
|
}
|
|
4342
|
-
const Ln =
|
|
4343
|
+
const Ln = xi;
|
|
4343
4344
|
Object.defineProperty(Ln, "displayName", {
|
|
4344
4345
|
value: "ComboboxItemRenderer",
|
|
4345
4346
|
writable: !1
|
|
@@ -4408,7 +4409,7 @@ function zn(e, t) {
|
|
|
4408
4409
|
}
|
|
4409
4410
|
}), { items: i };
|
|
4410
4411
|
}
|
|
4411
|
-
function
|
|
4412
|
+
function yi({
|
|
4412
4413
|
children: e,
|
|
4413
4414
|
value: t,
|
|
4414
4415
|
onChange: r,
|
|
@@ -4434,7 +4435,7 @@ function bi({
|
|
|
4434
4435
|
}) {
|
|
4435
4436
|
const { items: D } = zn(e, y), R = ie(() => t, [t]);
|
|
4436
4437
|
return /* @__PURE__ */ n(
|
|
4437
|
-
|
|
4438
|
+
oi,
|
|
4438
4439
|
{
|
|
4439
4440
|
getLabel: y,
|
|
4440
4441
|
items: D,
|
|
@@ -4483,7 +4484,7 @@ function bi({
|
|
|
4483
4484
|
}
|
|
4484
4485
|
);
|
|
4485
4486
|
}
|
|
4486
|
-
const On =
|
|
4487
|
+
const On = yi;
|
|
4487
4488
|
On.Item = gr;
|
|
4488
4489
|
On.List = br;
|
|
4489
4490
|
const Bn = Ot(null);
|
|
@@ -4493,7 +4494,7 @@ function vt() {
|
|
|
4493
4494
|
throw new Error("useComboboxMultiSelectContext must be used within ComboboxMultiSelectProvider");
|
|
4494
4495
|
return e;
|
|
4495
4496
|
}
|
|
4496
|
-
function
|
|
4497
|
+
function vi({
|
|
4497
4498
|
items: e,
|
|
4498
4499
|
value: t = null,
|
|
4499
4500
|
onChange: r,
|
|
@@ -4589,7 +4590,7 @@ function xi({
|
|
|
4589
4590
|
setHighlightedIndex: A
|
|
4590
4591
|
});
|
|
4591
4592
|
}
|
|
4592
|
-
function
|
|
4593
|
+
function wi(e, t) {
|
|
4593
4594
|
const { refs: r, floatingStyles: o, context: a } = nn({
|
|
4594
4595
|
open: e && !t,
|
|
4595
4596
|
placement: "bottom-start",
|
|
@@ -4617,7 +4618,7 @@ function yi(e, t) {
|
|
|
4617
4618
|
transitionStyles: s
|
|
4618
4619
|
};
|
|
4619
4620
|
}
|
|
4620
|
-
function
|
|
4621
|
+
function Ni({
|
|
4621
4622
|
children: e,
|
|
4622
4623
|
items: t,
|
|
4623
4624
|
value: r,
|
|
@@ -4650,7 +4651,7 @@ function vi({
|
|
|
4650
4651
|
value: r,
|
|
4651
4652
|
label: T(r)
|
|
4652
4653
|
};
|
|
4653
|
-
}, [r, T]), L =
|
|
4654
|
+
}, [r, T]), L = vi({
|
|
4654
4655
|
items: t,
|
|
4655
4656
|
value: P,
|
|
4656
4657
|
onChange: o,
|
|
@@ -4664,7 +4665,7 @@ function vi({
|
|
|
4664
4665
|
keepOpenOnSelect: l,
|
|
4665
4666
|
inputValueOnSelect: c,
|
|
4666
4667
|
inputValueOnClose: f
|
|
4667
|
-
}), V =
|
|
4668
|
+
}), V = wi(L.isOpen, A), H = ie(() => ({
|
|
4668
4669
|
// Combobox состояние
|
|
4669
4670
|
getInputProps: L.getInputProps,
|
|
4670
4671
|
getItemProps: L.getItemProps,
|
|
@@ -4785,7 +4786,7 @@ _n.displayName = "ComboboxContainer";
|
|
|
4785
4786
|
function Kr(e, t) {
|
|
4786
4787
|
return e && typeof e == "object" && e.displayName === t;
|
|
4787
4788
|
}
|
|
4788
|
-
function
|
|
4789
|
+
function Ii({
|
|
4789
4790
|
children: e,
|
|
4790
4791
|
classNames: t
|
|
4791
4792
|
}) {
|
|
@@ -4864,7 +4865,7 @@ function wi({
|
|
|
4864
4865
|
}))(e);
|
|
4865
4866
|
return /* @__PURE__ */ n(ve, { children: x });
|
|
4866
4867
|
}
|
|
4867
|
-
const Wn =
|
|
4868
|
+
const Wn = Ii;
|
|
4868
4869
|
Object.defineProperty(Wn, "displayName", {
|
|
4869
4870
|
value: "ComboboxItemRenderer",
|
|
4870
4871
|
writable: !1
|
|
@@ -4898,7 +4899,7 @@ const Hn = v.forwardRef(
|
|
|
4898
4899
|
}
|
|
4899
4900
|
);
|
|
4900
4901
|
Hn.displayName = "ComboboxMenu";
|
|
4901
|
-
function
|
|
4902
|
+
function Si(e) {
|
|
4902
4903
|
if (e == null)
|
|
4903
4904
|
return String(e);
|
|
4904
4905
|
if (typeof e == "object")
|
|
@@ -4909,7 +4910,7 @@ function Ni(e) {
|
|
|
4909
4910
|
}
|
|
4910
4911
|
return String(e);
|
|
4911
4912
|
}
|
|
4912
|
-
function
|
|
4913
|
+
function Ci({
|
|
4913
4914
|
selected: e,
|
|
4914
4915
|
onRemove: t,
|
|
4915
4916
|
getLabel: r,
|
|
@@ -5078,7 +5079,7 @@ function Ii({
|
|
|
5078
5079
|
}
|
|
5079
5080
|
);
|
|
5080
5081
|
}
|
|
5081
|
-
function
|
|
5082
|
+
function ki({
|
|
5082
5083
|
children: e,
|
|
5083
5084
|
value: t = [],
|
|
5084
5085
|
onChange: r,
|
|
@@ -5095,7 +5096,7 @@ function Si({
|
|
|
5095
5096
|
disabled: g = !1,
|
|
5096
5097
|
"data-testid": p,
|
|
5097
5098
|
getLabel: y = (P) => typeof P == "object" && P !== null && "label" in P ? P.label : "",
|
|
5098
|
-
getKey: h =
|
|
5099
|
+
getKey: h = Si,
|
|
5099
5100
|
loading: b = !1,
|
|
5100
5101
|
onInputKeyDown: I,
|
|
5101
5102
|
isOpen: S,
|
|
@@ -5122,7 +5123,7 @@ function Si({
|
|
|
5122
5123
|
W(U), o == null || o(U);
|
|
5123
5124
|
}, [o]);
|
|
5124
5125
|
return /* @__PURE__ */ n(
|
|
5125
|
-
|
|
5126
|
+
Ni,
|
|
5126
5127
|
{
|
|
5127
5128
|
getLabel: y,
|
|
5128
5129
|
getKey: h,
|
|
@@ -5161,7 +5162,7 @@ function Si({
|
|
|
5161
5162
|
),
|
|
5162
5163
|
/* @__PURE__ */ k(_n, { children: [
|
|
5163
5164
|
/* @__PURE__ */ n(
|
|
5164
|
-
|
|
5165
|
+
Ci,
|
|
5165
5166
|
{
|
|
5166
5167
|
selected: L,
|
|
5167
5168
|
onRemove: G,
|
|
@@ -5191,10 +5192,10 @@ function Si({
|
|
|
5191
5192
|
}
|
|
5192
5193
|
);
|
|
5193
5194
|
}
|
|
5194
|
-
const Gn =
|
|
5195
|
+
const Gn = ki;
|
|
5195
5196
|
Gn.Item = gr;
|
|
5196
5197
|
Gn.List = br;
|
|
5197
|
-
const
|
|
5198
|
+
const Ti = {
|
|
5198
5199
|
show: !0,
|
|
5199
5200
|
position: "outside",
|
|
5200
5201
|
align: "center",
|
|
@@ -5207,7 +5208,7 @@ function Kn(e) {
|
|
|
5207
5208
|
loop: !1,
|
|
5208
5209
|
slidesToScroll: 1,
|
|
5209
5210
|
containScroll: "trimSnaps"
|
|
5210
|
-
}, o), i = N(N({},
|
|
5211
|
+
}, o), i = N(N({}, Ti), t), [s, l] = cr(a), [c, f] = ce(r), [u, d] = ce(!1), [x, g] = ce(!1), p = Q(() => {
|
|
5211
5212
|
l && (f(l.selectedScrollSnap()), d(l.canScrollNext()), g(l.canScrollPrev()));
|
|
5212
5213
|
}, [l]);
|
|
5213
5214
|
he(() => {
|
|
@@ -5245,11 +5246,11 @@ function Ut() {
|
|
|
5245
5246
|
throw new Error("Компоненты карусели должны использоваться внутри Carousel");
|
|
5246
5247
|
return e;
|
|
5247
5248
|
}
|
|
5248
|
-
function
|
|
5249
|
+
function Ri({ children: e, className: t, options: r }) {
|
|
5249
5250
|
const o = Kn(r);
|
|
5250
5251
|
return /* @__PURE__ */ n(jn.Provider, { value: o, children: /* @__PURE__ */ n("div", { className: m("relative w-full", t), children: e }) });
|
|
5251
5252
|
}
|
|
5252
|
-
function
|
|
5253
|
+
function Mi({ items: e, className: t, slideClassName: r }) {
|
|
5253
5254
|
const { emblaRef: o } = Ut();
|
|
5254
5255
|
return /* @__PURE__ */ n("div", { ref: o, className: m("overflow-hidden", t), children: /* @__PURE__ */ n("div", { className: "flex", children: e.map((a, i) => /* @__PURE__ */ n(
|
|
5255
5256
|
"div",
|
|
@@ -5261,7 +5262,7 @@ function Ti({ items: e, className: t, slideClassName: r }) {
|
|
|
5261
5262
|
i
|
|
5262
5263
|
)) }) });
|
|
5263
5264
|
}
|
|
5264
|
-
function
|
|
5265
|
+
function Di({
|
|
5265
5266
|
items: e,
|
|
5266
5267
|
className: t,
|
|
5267
5268
|
titleClassName: r,
|
|
@@ -5273,7 +5274,7 @@ function Ri({
|
|
|
5273
5274
|
i.text && /* @__PURE__ */ n("div", { className: m(o), children: i.text })
|
|
5274
5275
|
] });
|
|
5275
5276
|
}
|
|
5276
|
-
function
|
|
5277
|
+
function Ei({
|
|
5277
5278
|
item: e,
|
|
5278
5279
|
className: t,
|
|
5279
5280
|
titleClassName: r,
|
|
@@ -5317,7 +5318,7 @@ const Un = ge(
|
|
|
5317
5318
|
}
|
|
5318
5319
|
}
|
|
5319
5320
|
);
|
|
5320
|
-
function
|
|
5321
|
+
function Ai({
|
|
5321
5322
|
prevButton: e,
|
|
5322
5323
|
nextButton: t,
|
|
5323
5324
|
className: r,
|
|
@@ -5367,7 +5368,7 @@ function Di({
|
|
|
5367
5368
|
}
|
|
5368
5369
|
);
|
|
5369
5370
|
}
|
|
5370
|
-
function
|
|
5371
|
+
function Fi({
|
|
5371
5372
|
onPrev: e,
|
|
5372
5373
|
onNext: t,
|
|
5373
5374
|
canScrollPrev: r,
|
|
@@ -5420,7 +5421,7 @@ function Ei({
|
|
|
5420
5421
|
}
|
|
5421
5422
|
);
|
|
5422
5423
|
}
|
|
5423
|
-
const
|
|
5424
|
+
const Li = ge(
|
|
5424
5425
|
"flex gap-2 transition-all",
|
|
5425
5426
|
{
|
|
5426
5427
|
variants: {
|
|
@@ -5469,7 +5470,7 @@ function $n({
|
|
|
5469
5470
|
"div",
|
|
5470
5471
|
{
|
|
5471
5472
|
className: m(
|
|
5472
|
-
|
|
5473
|
+
Li({ position: a, align: i }),
|
|
5473
5474
|
s
|
|
5474
5475
|
),
|
|
5475
5476
|
role: "tablist",
|
|
@@ -5496,7 +5497,7 @@ function $n({
|
|
|
5496
5497
|
}
|
|
5497
5498
|
);
|
|
5498
5499
|
}
|
|
5499
|
-
function
|
|
5500
|
+
function Pi({ className: e, count: t }) {
|
|
5500
5501
|
const { active: r, onChange: o, indicatorOptions: a } = Ut(), { show: i, position: s, align: l, className: c, activeClassName: f, inactiveClassName: u } = a;
|
|
5501
5502
|
return /* @__PURE__ */ n(
|
|
5502
5503
|
$n,
|
|
@@ -5514,19 +5515,19 @@ function Fi({ className: e, count: t }) {
|
|
|
5514
5515
|
);
|
|
5515
5516
|
}
|
|
5516
5517
|
const Rt = {
|
|
5517
|
-
Root:
|
|
5518
|
-
Items:
|
|
5519
|
-
Dots:
|
|
5518
|
+
Root: Ri,
|
|
5519
|
+
Items: Mi,
|
|
5520
|
+
Dots: Pi,
|
|
5520
5521
|
DotsView: $n,
|
|
5521
5522
|
// Экспортируем view-компонент для использования вне контекста
|
|
5522
|
-
Content:
|
|
5523
|
-
ContentView:
|
|
5524
|
-
Buttons:
|
|
5523
|
+
Content: Di,
|
|
5524
|
+
ContentView: Ei,
|
|
5525
|
+
Buttons: Ai,
|
|
5525
5526
|
// Добавляем компонент кнопок
|
|
5526
|
-
ButtonsView:
|
|
5527
|
+
ButtonsView: Fi
|
|
5527
5528
|
// Экспортируем view-компонент кнопок для использования вне контекста
|
|
5528
5529
|
};
|
|
5529
|
-
function
|
|
5530
|
+
function Ad(x) {
|
|
5530
5531
|
var g = x, {
|
|
5531
5532
|
items: e,
|
|
5532
5533
|
renderSlide: t,
|
|
@@ -5577,7 +5578,7 @@ function Md(x) {
|
|
|
5577
5578
|
/* @__PURE__ */ n(Rt.Dots, { count: e.length })
|
|
5578
5579
|
] });
|
|
5579
5580
|
}
|
|
5580
|
-
function
|
|
5581
|
+
function Fd({
|
|
5581
5582
|
items: e,
|
|
5582
5583
|
options: t,
|
|
5583
5584
|
renderItems: r,
|
|
@@ -5590,8 +5591,8 @@ function Dd({
|
|
|
5590
5591
|
o && o(i, e)
|
|
5591
5592
|
] });
|
|
5592
5593
|
}
|
|
5593
|
-
function
|
|
5594
|
-
return /* @__PURE__ */ n("span", { "data-testid": `date-picker-day-${Be(e.date, "yyyy-MM-dd")}`, children: /* @__PURE__ */ n(
|
|
5594
|
+
function zi(e) {
|
|
5595
|
+
return /* @__PURE__ */ n("span", { "data-testid": `date-picker-day-${Be(e.date, "yyyy-MM-dd")}`, children: /* @__PURE__ */ n(Fo, N({}, e)) });
|
|
5595
5596
|
}
|
|
5596
5597
|
function Yn(s) {
|
|
5597
5598
|
var l = s, {
|
|
@@ -5608,7 +5609,7 @@ function Yn(s) {
|
|
|
5608
5609
|
"locale"
|
|
5609
5610
|
]);
|
|
5610
5611
|
return /* @__PURE__ */ n(
|
|
5611
|
-
|
|
5612
|
+
Ao,
|
|
5612
5613
|
N({
|
|
5613
5614
|
showOutsideDays: o,
|
|
5614
5615
|
className: m("p-0 md:p-[10px] md:pb-0", e),
|
|
@@ -5684,20 +5685,20 @@ function Yn(s) {
|
|
|
5684
5685
|
u
|
|
5685
5686
|
] });
|
|
5686
5687
|
},
|
|
5687
|
-
DayContent:
|
|
5688
|
+
DayContent: zi
|
|
5688
5689
|
}, r)
|
|
5689
5690
|
}, i)
|
|
5690
5691
|
);
|
|
5691
5692
|
}
|
|
5692
|
-
const Zn = "dd.MM.yyyy", ir = "99.99.9999",
|
|
5693
|
+
const Zn = "dd.MM.yyyy", ir = "99.99.9999", Oi = 10;
|
|
5693
5694
|
function we(e) {
|
|
5694
5695
|
return e ? Be(e, Zn) : "";
|
|
5695
5696
|
}
|
|
5696
5697
|
function Lt(e) {
|
|
5697
|
-
if (e.length !==
|
|
5698
|
+
if (e.length !== Oi)
|
|
5698
5699
|
return;
|
|
5699
|
-
const t =
|
|
5700
|
-
if (
|
|
5700
|
+
const t = Po(e, Zn, /* @__PURE__ */ new Date());
|
|
5701
|
+
if (zo(t))
|
|
5701
5702
|
return we(t) === e ? t : void 0;
|
|
5702
5703
|
}
|
|
5703
5704
|
function Ae(e) {
|
|
@@ -5707,13 +5708,13 @@ function Ae(e) {
|
|
|
5707
5708
|
e.getDate()
|
|
5708
5709
|
).getTime();
|
|
5709
5710
|
}
|
|
5710
|
-
function
|
|
5711
|
+
function Bi(e, t) {
|
|
5711
5712
|
return Ae(e) === Ae(t);
|
|
5712
5713
|
}
|
|
5713
5714
|
function We(e, t) {
|
|
5714
5715
|
return t in e;
|
|
5715
5716
|
}
|
|
5716
|
-
function
|
|
5717
|
+
function Vi(e) {
|
|
5717
5718
|
return We(e, "from") || We(e, "to");
|
|
5718
5719
|
}
|
|
5719
5720
|
function gt(e, t) {
|
|
@@ -5724,13 +5725,13 @@ function gt(e, t) {
|
|
|
5724
5725
|
if (typeof t == "function")
|
|
5725
5726
|
return t(e);
|
|
5726
5727
|
if (t instanceof Date)
|
|
5727
|
-
return
|
|
5728
|
+
return Bi(e, t);
|
|
5728
5729
|
if (Array.isArray(t))
|
|
5729
5730
|
return t.some((o) => gt(e, o));
|
|
5730
5731
|
const r = Ae(e);
|
|
5731
5732
|
if (We(t, "dayOfWeek"))
|
|
5732
5733
|
return Array.isArray(t.dayOfWeek) && t.dayOfWeek.includes(e.getDay());
|
|
5733
|
-
if (
|
|
5734
|
+
if (Vi(t)) {
|
|
5734
5735
|
const o = t.from ? Ae(t.from) : void 0, a = t.to ? Ae(t.to) : void 0;
|
|
5735
5736
|
if (o !== void 0 && a !== void 0)
|
|
5736
5737
|
return r >= o && r <= a;
|
|
@@ -5741,7 +5742,7 @@ function gt(e, t) {
|
|
|
5741
5742
|
}
|
|
5742
5743
|
return We(t, "before") && We(t, "after") ? r < Ae(t.before) && r > Ae(t.after) : We(t, "before") ? r < Ae(t.before) : We(t, "after") ? r > Ae(t.after) : !1;
|
|
5743
5744
|
}
|
|
5744
|
-
const
|
|
5745
|
+
const _i = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url).href, Wi = new URL("../assets/document-sign-DtWnrhUb.webp", import.meta.url).href, Hi = new URL("../assets/documents-refresh-Ct8s1Pc3.webp", import.meta.url).href, Gi = new URL("../assets/status-error-CVSJeY0m.webp", import.meta.url).href, Ki = new URL("../assets/status-success-CQUzL9Lb.webp", import.meta.url).href, ji = new URL("../assets/status-warning-qsHG0-rO.webp", import.meta.url).href, Ui = new URL("../assets/user-add-BchFss_X.webp", import.meta.url).href, $i = new URL("../assets/user-approved-BKiSeYH5.webp", import.meta.url).href, Yi = new URL("../assets/user-question-BrqYjUap.webp", import.meta.url).href, Zi = new URL("../assets/wallet-B1cH4oVg.webp", import.meta.url).href, et = ge([
|
|
5745
5746
|
"transition-shadow duration-200"
|
|
5746
5747
|
], {
|
|
5747
5748
|
variants: {
|
|
@@ -5773,7 +5774,7 @@ const Bi = new URL("../assets/document-approved-CkP0p152.webp", import.meta.url)
|
|
|
5773
5774
|
return /* @__PURE__ */ n(le.Trigger, F(N({}, t), { asChild: !0, ref: r, className: m(e) }));
|
|
5774
5775
|
});
|
|
5775
5776
|
tt.displayName = "Trigger";
|
|
5776
|
-
const
|
|
5777
|
+
const Ji = ge(
|
|
5777
5778
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 bg-[rgba(37,29,53,0.48)]"
|
|
5778
5779
|
), rt = v.forwardRef((a, o) => {
|
|
5779
5780
|
var i = a, { className: e, style: t } = i, r = _(i, ["className", "style"]);
|
|
@@ -5782,12 +5783,12 @@ const Yi = ge(
|
|
|
5782
5783
|
F(N({}, r), {
|
|
5783
5784
|
ref: o,
|
|
5784
5785
|
style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : F(N({}, t), { zIndex: 50 }),
|
|
5785
|
-
className: m(
|
|
5786
|
+
className: m(Ji(), e)
|
|
5786
5787
|
})
|
|
5787
5788
|
);
|
|
5788
5789
|
});
|
|
5789
5790
|
rt.displayName = "Overlay";
|
|
5790
|
-
const
|
|
5791
|
+
const Qi = ge(
|
|
5791
5792
|
[
|
|
5792
5793
|
"flex flex-col",
|
|
5793
5794
|
// Анимации и состояния
|
|
@@ -5885,7 +5886,7 @@ const Zi = ge(
|
|
|
5885
5886
|
s ? h.preventDefault() : c == null || c(h);
|
|
5886
5887
|
},
|
|
5887
5888
|
className: m(
|
|
5888
|
-
|
|
5889
|
+
Qi({ width: r, overflow: o, padding: d, mobileFullHeight: a }),
|
|
5889
5890
|
et({ all: !0 }),
|
|
5890
5891
|
e
|
|
5891
5892
|
),
|
|
@@ -5963,7 +5964,7 @@ const It = v.forwardRef((a, o) => {
|
|
|
5963
5964
|
) });
|
|
5964
5965
|
});
|
|
5965
5966
|
It.displayName = "Close";
|
|
5966
|
-
const
|
|
5967
|
+
const Ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5967
5968
|
__proto__: null,
|
|
5968
5969
|
Close: It,
|
|
5969
5970
|
Container: nt,
|
|
@@ -5975,7 +5976,7 @@ const Ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5975
5976
|
Title: xr,
|
|
5976
5977
|
Trigger: tt
|
|
5977
5978
|
}, Symbol.toStringTag, { value: "Module" })), St = v.createContext(null);
|
|
5978
|
-
function
|
|
5979
|
+
function Pd() {
|
|
5979
5980
|
const e = v.useContext(St);
|
|
5980
5981
|
if (!e)
|
|
5981
5982
|
throw new Error(
|
|
@@ -5983,7 +5984,7 @@ function Ad() {
|
|
|
5983
5984
|
);
|
|
5984
5985
|
return e;
|
|
5985
5986
|
}
|
|
5986
|
-
function
|
|
5987
|
+
function qi(e) {
|
|
5987
5988
|
var D;
|
|
5988
5989
|
const [t, r] = v.useState(null), [o, a] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, c] = v.useState(!1), [f, u] = v.useState(e.hideFooter), [d, x] = v.useState(!1), [g, p] = v.useState(e.width), y = v.useContext(St), h = (D = y == null ? void 0 : y.nextBaseZIndex) != null ? D : e.baseZIndex, b = h + 1, I = h + 2, S = h + 3, A = v.useMemo(() => !l && i ? "top" : "none", [l, i]), w = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
|
|
5989
5990
|
return v.useEffect(() => {
|
|
@@ -6027,17 +6028,17 @@ function Ji(e) {
|
|
|
6027
6028
|
nextBaseZIndex: S
|
|
6028
6029
|
};
|
|
6029
6030
|
}
|
|
6030
|
-
const
|
|
6031
|
-
"document-approved":
|
|
6032
|
-
"document-sign":
|
|
6033
|
-
"documents-refresh":
|
|
6034
|
-
"status-error":
|
|
6035
|
-
"status-success":
|
|
6036
|
-
"status-warning":
|
|
6037
|
-
"user-add":
|
|
6038
|
-
"user-approved":
|
|
6039
|
-
"user-question":
|
|
6040
|
-
wallet:
|
|
6031
|
+
const Xi = {
|
|
6032
|
+
"document-approved": _i,
|
|
6033
|
+
"document-sign": Wi,
|
|
6034
|
+
"documents-refresh": Hi,
|
|
6035
|
+
"status-error": Gi,
|
|
6036
|
+
"status-success": Ki,
|
|
6037
|
+
"status-warning": ji,
|
|
6038
|
+
"user-add": Ui,
|
|
6039
|
+
"user-approved": $i,
|
|
6040
|
+
"user-question": Yi,
|
|
6041
|
+
wallet: Zi
|
|
6041
6042
|
}, Jn = v.forwardRef(
|
|
6042
6043
|
(a, o) => {
|
|
6043
6044
|
var i = a, { className: e, shadow: t = "none" } = i, r = _(i, ["className", "shadow"]);
|
|
@@ -6060,15 +6061,15 @@ function $t() {
|
|
|
6060
6061
|
throw new Error("useTeleporters должен использоваться внутри DialogBase");
|
|
6061
6062
|
return e;
|
|
6062
6063
|
}
|
|
6063
|
-
function
|
|
6064
|
+
function es(e) {
|
|
6064
6065
|
const { FooterTeleporter: t } = $t();
|
|
6065
6066
|
return /* @__PURE__ */ n(t.Source, N({}, e));
|
|
6066
6067
|
}
|
|
6067
|
-
function
|
|
6068
|
+
function ts(e) {
|
|
6068
6069
|
const { TitleTeleporter: t } = $t();
|
|
6069
6070
|
return /* @__PURE__ */ n(t.Source, N({}, e));
|
|
6070
6071
|
}
|
|
6071
|
-
function
|
|
6072
|
+
function rs(s) {
|
|
6072
6073
|
var l = s, {
|
|
6073
6074
|
className: e,
|
|
6074
6075
|
caption: t,
|
|
@@ -6112,7 +6113,7 @@ function es(s) {
|
|
|
6112
6113
|
})
|
|
6113
6114
|
) });
|
|
6114
6115
|
}
|
|
6115
|
-
function
|
|
6116
|
+
function ns(e) {
|
|
6116
6117
|
const { ContentTeleporter: t } = $t(), r = v.useContext(St), o = r == null ? void 0 : r.statusImage;
|
|
6117
6118
|
return o ? /* @__PURE__ */ k(t.Source, { children: [
|
|
6118
6119
|
/* @__PURE__ */ n(
|
|
@@ -6126,7 +6127,7 @@ function ts(e) {
|
|
|
6126
6127
|
/* @__PURE__ */ n(
|
|
6127
6128
|
"img",
|
|
6128
6129
|
{
|
|
6129
|
-
src:
|
|
6130
|
+
src: Xi[o],
|
|
6130
6131
|
alt: o,
|
|
6131
6132
|
className: "w-full h-50 rounded-t-4xl"
|
|
6132
6133
|
}
|
|
@@ -6164,7 +6165,7 @@ function pe(p) {
|
|
|
6164
6165
|
"statusImage",
|
|
6165
6166
|
"dataTestId"
|
|
6166
6167
|
]);
|
|
6167
|
-
const h =
|
|
6168
|
+
const h = qi({
|
|
6168
6169
|
isVisibleClose: o,
|
|
6169
6170
|
width: a,
|
|
6170
6171
|
hideFooter: c,
|
|
@@ -6273,16 +6274,16 @@ function pe(p) {
|
|
|
6273
6274
|
pe.displayName = "DialogBase";
|
|
6274
6275
|
pe.Trigger = tt;
|
|
6275
6276
|
pe.Close = It;
|
|
6276
|
-
pe.Footer =
|
|
6277
|
-
pe.Content =
|
|
6278
|
-
pe.Title =
|
|
6279
|
-
pe.TopHeader =
|
|
6277
|
+
pe.Footer = es;
|
|
6278
|
+
pe.Content = ns;
|
|
6279
|
+
pe.Title = ts;
|
|
6280
|
+
pe.TopHeader = rs;
|
|
6280
6281
|
pe.Overlay = rt;
|
|
6281
6282
|
pe.Portal = Nt;
|
|
6282
6283
|
pe.Dialog = wt;
|
|
6283
6284
|
pe.Container = nt;
|
|
6284
6285
|
pe.Header = Jn;
|
|
6285
|
-
const
|
|
6286
|
+
const os = Oo, bt = v.forwardRef(
|
|
6286
6287
|
(d, u) => {
|
|
6287
6288
|
var x = d, {
|
|
6288
6289
|
className: e,
|
|
@@ -6307,7 +6308,7 @@ const rs = zo, bt = v.forwardRef(
|
|
|
6307
6308
|
]);
|
|
6308
6309
|
const g = v.useRef(null);
|
|
6309
6310
|
return v.useImperativeHandle(u, () => g.current), /* @__PURE__ */ n(
|
|
6310
|
-
|
|
6311
|
+
os,
|
|
6311
6312
|
F(N({
|
|
6312
6313
|
mask: r,
|
|
6313
6314
|
maskChar: o,
|
|
@@ -6335,7 +6336,7 @@ bt.displayName = "MaskedInput";
|
|
|
6335
6336
|
function Yt() {
|
|
6336
6337
|
return window.innerWidth < 768 ? "mobile" : "desktop";
|
|
6337
6338
|
}
|
|
6338
|
-
function
|
|
6339
|
+
function zd({
|
|
6339
6340
|
date: e,
|
|
6340
6341
|
onSelect: t,
|
|
6341
6342
|
disabled: r = !1,
|
|
@@ -6571,7 +6572,7 @@ function Fd({
|
|
|
6571
6572
|
s && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: s })
|
|
6572
6573
|
] });
|
|
6573
6574
|
}
|
|
6574
|
-
const
|
|
6575
|
+
const as = {
|
|
6575
6576
|
ru: {
|
|
6576
6577
|
selectPeriod: "Выберите период",
|
|
6577
6578
|
reset: "Сбросить",
|
|
@@ -6592,7 +6593,7 @@ const ns = {
|
|
|
6592
6593
|
reset: "Тоза кардан",
|
|
6593
6594
|
placeholder: "рр.мм.сссс"
|
|
6594
6595
|
}
|
|
6595
|
-
},
|
|
6596
|
+
}, is = [
|
|
6596
6597
|
"Yanvar",
|
|
6597
6598
|
"Fevral",
|
|
6598
6599
|
"Mart",
|
|
@@ -6605,7 +6606,7 @@ const ns = {
|
|
|
6605
6606
|
"Oktabr",
|
|
6606
6607
|
"Noyabr",
|
|
6607
6608
|
"Dekabr"
|
|
6608
|
-
],
|
|
6609
|
+
], ss = [
|
|
6609
6610
|
"Yan",
|
|
6610
6611
|
"Fev",
|
|
6611
6612
|
"Mar",
|
|
@@ -6618,7 +6619,7 @@ const ns = {
|
|
|
6618
6619
|
"Okt",
|
|
6619
6620
|
"Noy",
|
|
6620
6621
|
"Dek"
|
|
6621
|
-
],
|
|
6622
|
+
], ls = [
|
|
6622
6623
|
"Yakshanba",
|
|
6623
6624
|
"Dushanba",
|
|
6624
6625
|
"Seshanba",
|
|
@@ -6626,7 +6627,7 @@ const ns = {
|
|
|
6626
6627
|
"Payshanba",
|
|
6627
6628
|
"Juma",
|
|
6628
6629
|
"Shanba"
|
|
6629
|
-
],
|
|
6630
|
+
], ds = ["Yak", "Dush", "Sesh", "Chor", "Pay", "Jum", "Shan"], cs = [
|
|
6630
6631
|
"Январ",
|
|
6631
6632
|
"Феврал",
|
|
6632
6633
|
"Март",
|
|
@@ -6639,7 +6640,7 @@ const ns = {
|
|
|
6639
6640
|
"Октябр",
|
|
6640
6641
|
"Ноябр",
|
|
6641
6642
|
"Декабр"
|
|
6642
|
-
],
|
|
6643
|
+
], us = [
|
|
6643
6644
|
"Янв",
|
|
6644
6645
|
"Фев",
|
|
6645
6646
|
"Мар",
|
|
@@ -6652,7 +6653,7 @@ const ns = {
|
|
|
6652
6653
|
"Окт",
|
|
6653
6654
|
"Ноя",
|
|
6654
6655
|
"Дек"
|
|
6655
|
-
],
|
|
6656
|
+
], fs = [
|
|
6656
6657
|
"Якшанбе",
|
|
6657
6658
|
"Душанбе",
|
|
6658
6659
|
"Сешанбе",
|
|
@@ -6660,13 +6661,13 @@ const ns = {
|
|
|
6660
6661
|
"Панҷшанбе",
|
|
6661
6662
|
"Ҷумъа",
|
|
6662
6663
|
"Шанбе"
|
|
6663
|
-
],
|
|
6664
|
+
], ms = ["Якш", "Душ", "Сеш", "Чор", "Пан", "Ҷум", "Шан"], ps = F(N({}, Me), {
|
|
6664
6665
|
code: "uz",
|
|
6665
6666
|
localize: F(N({}, Me.localize), {
|
|
6666
|
-
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ?
|
|
6667
|
+
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? ss[e] : is[e],
|
|
6667
6668
|
day: (e, t) => {
|
|
6668
6669
|
const r = (t == null ? void 0 : t.width) || "wide";
|
|
6669
|
-
return r === "short" || r === "abbreviated" || r === "narrow" ?
|
|
6670
|
+
return r === "short" || r === "abbreviated" || r === "narrow" ? ds[e] : ls[e];
|
|
6670
6671
|
},
|
|
6671
6672
|
ordinalNumber: (e) => String(e)
|
|
6672
6673
|
}),
|
|
@@ -6675,13 +6676,13 @@ const ns = {
|
|
|
6675
6676
|
time: () => "HH:mm",
|
|
6676
6677
|
dateTime: () => "dd.MM.yyyy HH:mm"
|
|
6677
6678
|
})
|
|
6678
|
-
}),
|
|
6679
|
+
}), hs = F(N({}, Me), {
|
|
6679
6680
|
code: "tg",
|
|
6680
6681
|
localize: F(N({}, Me.localize), {
|
|
6681
|
-
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ?
|
|
6682
|
+
month: (e, t) => ((t == null ? void 0 : t.width) || "wide") === "abbreviated" ? us[e] : cs[e],
|
|
6682
6683
|
day: (e, t) => {
|
|
6683
6684
|
const r = (t == null ? void 0 : t.width) || "wide";
|
|
6684
|
-
return r === "short" || r === "abbreviated" || r === "narrow" ?
|
|
6685
|
+
return r === "short" || r === "abbreviated" || r === "narrow" ? ms[e] : fs[e];
|
|
6685
6686
|
},
|
|
6686
6687
|
ordinalNumber: (e) => String(e)
|
|
6687
6688
|
}),
|
|
@@ -6691,14 +6692,14 @@ const ns = {
|
|
|
6691
6692
|
dateTime: () => "dd.MM.yyyy HH:mm"
|
|
6692
6693
|
})
|
|
6693
6694
|
});
|
|
6694
|
-
function
|
|
6695
|
+
function gs(e) {
|
|
6695
6696
|
switch (e) {
|
|
6696
6697
|
case "en":
|
|
6697
|
-
return
|
|
6698
|
+
return Eo;
|
|
6698
6699
|
case "uz":
|
|
6699
|
-
return
|
|
6700
|
+
return ps;
|
|
6700
6701
|
case "tg":
|
|
6701
|
-
return
|
|
6702
|
+
return hs;
|
|
6702
6703
|
case "ru":
|
|
6703
6704
|
default:
|
|
6704
6705
|
return Me;
|
|
@@ -6711,7 +6712,7 @@ function rr(e) {
|
|
|
6711
6712
|
const t = Pt(e == null ? void 0 : e.from), r = Pt(e == null ? void 0 : e.to);
|
|
6712
6713
|
return t || r ? { from: t, to: r } : void 0;
|
|
6713
6714
|
}
|
|
6714
|
-
function
|
|
6715
|
+
function Od(y) {
|
|
6715
6716
|
var h = y, {
|
|
6716
6717
|
className: e,
|
|
6717
6718
|
value: t,
|
|
@@ -6750,7 +6751,7 @@ function Ld(y) {
|
|
|
6750
6751
|
we(Pt(t == null ? void 0 : t.from))
|
|
6751
6752
|
), [w, D] = v.useState(
|
|
6752
6753
|
we(Pt(t == null ? void 0 : t.to))
|
|
6753
|
-
), [R, C] = v.useState(!1), T = v.useRef(null), P = Yt(), L =
|
|
6754
|
+
), [R, C] = v.useState(!1), T = v.useRef(null), P = Yt(), L = as[r], V = gs(r), H = c === "custom" ? "md" : c, W = {
|
|
6754
6755
|
from: (a == null ? void 0 : a.from) || L.placeholder,
|
|
6755
6756
|
to: (a == null ? void 0 : a.to) || L.placeholder
|
|
6756
6757
|
}, M = v.useMemo(() => {
|
|
@@ -7067,12 +7068,12 @@ function Ld(y) {
|
|
|
7067
7068
|
z() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: Z() })
|
|
7068
7069
|
] }));
|
|
7069
7070
|
}
|
|
7070
|
-
function
|
|
7071
|
+
function bs({ className: e }) {
|
|
7071
7072
|
return /* @__PURE__ */ n("div", { className: m("bg-default-background h-[1px] w-full", e) });
|
|
7072
7073
|
}
|
|
7073
|
-
const
|
|
7074
|
+
const xs = "min(100vw, 480px)", ys = ge(
|
|
7074
7075
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 bg-[rgba(37,29,53,0.48)]"
|
|
7075
|
-
),
|
|
7076
|
+
), vs = ge(
|
|
7076
7077
|
[
|
|
7077
7078
|
"fixed top-0 bottom-0 z-50 flex max-w-full flex-col bg-white outline-none",
|
|
7078
7079
|
"data-[state=open]:animate-in data-[state=closed]:animate-out duration-200",
|
|
@@ -7091,10 +7092,10 @@ const gs = "min(100vw, 480px)", bs = ge(
|
|
|
7091
7092
|
}
|
|
7092
7093
|
}
|
|
7093
7094
|
);
|
|
7094
|
-
function
|
|
7095
|
-
return typeof e == "number" ? `${e}px` : e != null ? e :
|
|
7095
|
+
function ws(e) {
|
|
7096
|
+
return typeof e == "number" ? `${e}px` : e != null ? e : xs;
|
|
7096
7097
|
}
|
|
7097
|
-
function
|
|
7098
|
+
function Ns(e) {
|
|
7098
7099
|
const [t, r] = v.useState(!1), [o, a] = v.useState(!1), [i, s] = v.useState(!0);
|
|
7099
7100
|
return v.useEffect(() => {
|
|
7100
7101
|
let l = null;
|
|
@@ -7147,7 +7148,7 @@ const Xn = v.forwardRef((a, o) => {
|
|
|
7147
7148
|
F(N({}, r), {
|
|
7148
7149
|
ref: o,
|
|
7149
7150
|
style: (t == null ? void 0 : t.zIndex) !== void 0 ? t : F(N({}, t), { zIndex: 50 }),
|
|
7150
|
-
className: m(
|
|
7151
|
+
className: m(ys(), e)
|
|
7151
7152
|
})
|
|
7152
7153
|
);
|
|
7153
7154
|
});
|
|
@@ -7182,7 +7183,7 @@ const eo = v.forwardRef(
|
|
|
7182
7183
|
ref: u,
|
|
7183
7184
|
"data-testid": s,
|
|
7184
7185
|
style: F(N({}, t), {
|
|
7185
|
-
width: (g = t == null ? void 0 : t.width) != null ? g :
|
|
7186
|
+
width: (g = t == null ? void 0 : t.width) != null ? g : ws(o),
|
|
7186
7187
|
zIndex: (p = t == null ? void 0 : t.zIndex) != null ? p : 52
|
|
7187
7188
|
}),
|
|
7188
7189
|
onOpenAutoFocus: (y) => {
|
|
@@ -7191,7 +7192,7 @@ const eo = v.forwardRef(
|
|
|
7191
7192
|
onInteractOutside: (y) => {
|
|
7192
7193
|
i ? y.preventDefault() : c == null || c(y);
|
|
7193
7194
|
},
|
|
7194
|
-
className: m(
|
|
7195
|
+
className: m(vs({ side: r }), e)
|
|
7195
7196
|
})
|
|
7196
7197
|
);
|
|
7197
7198
|
}
|
|
@@ -7237,7 +7238,7 @@ const ro = v.forwardRef((i, a) => {
|
|
|
7237
7238
|
) }));
|
|
7238
7239
|
});
|
|
7239
7240
|
ro.displayName = "DrawerTitle";
|
|
7240
|
-
const
|
|
7241
|
+
const Is = v.forwardRef((a, o) => {
|
|
7241
7242
|
var i = a, { className: e, dataTestId: t = "drawer-description" } = i, r = _(i, ["className", "dataTestId"]);
|
|
7242
7243
|
return /* @__PURE__ */ n(
|
|
7243
7244
|
le.Description,
|
|
@@ -7248,7 +7249,7 @@ const ws = v.forwardRef((a, o) => {
|
|
|
7248
7249
|
})
|
|
7249
7250
|
);
|
|
7250
7251
|
});
|
|
7251
|
-
|
|
7252
|
+
Is.displayName = "DrawerDescription";
|
|
7252
7253
|
const no = v.forwardRef(
|
|
7253
7254
|
(a, o) => {
|
|
7254
7255
|
var i = a, { className: e, dataTestId: t = "drawer-body" } = i, r = _(i, ["className", "dataTestId"]);
|
|
@@ -7314,7 +7315,7 @@ const ao = v.forwardRef((i, a) => {
|
|
|
7314
7315
|
) });
|
|
7315
7316
|
});
|
|
7316
7317
|
ao.displayName = "DrawerClose";
|
|
7317
|
-
function
|
|
7318
|
+
function Ss({
|
|
7318
7319
|
open: e,
|
|
7319
7320
|
defaultOpen: t,
|
|
7320
7321
|
onOpenChange: r,
|
|
@@ -7333,7 +7334,7 @@ function Ns({
|
|
|
7333
7334
|
baseZIndex: y = 50,
|
|
7334
7335
|
width: h
|
|
7335
7336
|
}) {
|
|
7336
|
-
const [b, I] = v.useState(null), { headerShadow: S, footerShadow: A } =
|
|
7337
|
+
const [b, I] = v.useState(null), { headerShadow: S, footerShadow: A } = Ns(b);
|
|
7337
7338
|
return /* @__PURE__ */ k(
|
|
7338
7339
|
le.Root,
|
|
7339
7340
|
{
|
|
@@ -7396,7 +7397,7 @@ function Ns({
|
|
|
7396
7397
|
}
|
|
7397
7398
|
);
|
|
7398
7399
|
}
|
|
7399
|
-
|
|
7400
|
+
Ss.displayName = "Drawer";
|
|
7400
7401
|
const io = v.forwardRef(
|
|
7401
7402
|
(p, g) => {
|
|
7402
7403
|
var y = p, {
|
|
@@ -7676,11 +7677,11 @@ const so = v.forwardRef(
|
|
|
7676
7677
|
}
|
|
7677
7678
|
);
|
|
7678
7679
|
so.displayName = "Link";
|
|
7679
|
-
const
|
|
7680
|
+
const Cs = {
|
|
7680
7681
|
sm: "md:w-100",
|
|
7681
7682
|
md: "md:w-150",
|
|
7682
7683
|
lg: "md:w-200"
|
|
7683
|
-
},
|
|
7684
|
+
}, Bd = le.Root, Vd = le.Trigger, ks = le.Portal, _d = le.Close, lo = v.forwardRef((o, r) => {
|
|
7684
7685
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
7685
7686
|
return /* @__PURE__ */ n(
|
|
7686
7687
|
le.Overlay,
|
|
@@ -7694,7 +7695,7 @@ const Is = {
|
|
|
7694
7695
|
);
|
|
7695
7696
|
});
|
|
7696
7697
|
lo.displayName = le.Overlay.displayName;
|
|
7697
|
-
const
|
|
7698
|
+
const Ts = v.forwardRef(
|
|
7698
7699
|
(d, u) => {
|
|
7699
7700
|
var x = d, {
|
|
7700
7701
|
className: e,
|
|
@@ -7729,7 +7730,7 @@ const Cs = v.forwardRef(
|
|
|
7729
7730
|
const b = g.current;
|
|
7730
7731
|
b && b.removeEventListener("scroll", h);
|
|
7731
7732
|
};
|
|
7732
|
-
}, []), /* @__PURE__ */ k(
|
|
7733
|
+
}, []), /* @__PURE__ */ k(ks, { children: [
|
|
7733
7734
|
!s && /* @__PURE__ */ n(lo, {}),
|
|
7734
7735
|
/* @__PURE__ */ n(
|
|
7735
7736
|
le.Content,
|
|
@@ -7743,7 +7744,7 @@ const Cs = v.forwardRef(
|
|
|
7743
7744
|
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom right-0 bottom-0 left-0 rounded-t-xl md:[right:unset] md:[bottom:unset]",
|
|
7744
7745
|
"md:data-[state=closed]:slide-out-to-left-1/2 md:data-[state=closed]:slide-out-to-top-[48%] md:data-[state=open]:slide-in-from-left-1/2 md:data-[state=open]:slide-in-from-top-[48%] md:top-[50%] md:left-[50%] md:translate-x-[-50%] md:translate-y-[-50%] md:rounded-4xl",
|
|
7745
7746
|
"max-h-[100vh] overflow-hidden bg-white p-4 md:max-h-[calc(100vh-40px)] md:p-6",
|
|
7746
|
-
|
|
7747
|
+
Cs[c],
|
|
7747
7748
|
{ "p-0 md:p-0": a },
|
|
7748
7749
|
{ "w-full md:h-full md:max-h-full md:w-full": l },
|
|
7749
7750
|
e
|
|
@@ -7811,8 +7812,8 @@ const Cs = v.forwardRef(
|
|
|
7811
7812
|
] });
|
|
7812
7813
|
}
|
|
7813
7814
|
);
|
|
7814
|
-
|
|
7815
|
-
function
|
|
7815
|
+
Ts.displayName = le.Content.displayName;
|
|
7816
|
+
function Rs(r) {
|
|
7816
7817
|
var o = r, {
|
|
7817
7818
|
className: e
|
|
7818
7819
|
} = o, t = _(o, [
|
|
@@ -7820,8 +7821,8 @@ function ks(r) {
|
|
|
7820
7821
|
]);
|
|
7821
7822
|
return /* @__PURE__ */ n("div", N({ className: m("flex flex-col space-y-1.5", e) }, t));
|
|
7822
7823
|
}
|
|
7823
|
-
|
|
7824
|
-
const
|
|
7824
|
+
Rs.displayName = "DialogHeader";
|
|
7825
|
+
const Ms = v.forwardRef((o, r) => {
|
|
7825
7826
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
7826
7827
|
return /* @__PURE__ */ n(
|
|
7827
7828
|
le.Title,
|
|
@@ -7837,8 +7838,8 @@ const Ts = v.forwardRef((o, r) => {
|
|
|
7837
7838
|
}, t)
|
|
7838
7839
|
);
|
|
7839
7840
|
});
|
|
7840
|
-
|
|
7841
|
-
const
|
|
7841
|
+
Ms.displayName = le.Title.displayName;
|
|
7842
|
+
const Ds = v.forwardRef((o, r) => {
|
|
7842
7843
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
7843
7844
|
return /* @__PURE__ */ n(
|
|
7844
7845
|
le.Description,
|
|
@@ -7848,8 +7849,8 @@ const Rs = v.forwardRef((o, r) => {
|
|
|
7848
7849
|
}, t)
|
|
7849
7850
|
);
|
|
7850
7851
|
});
|
|
7851
|
-
|
|
7852
|
-
const
|
|
7852
|
+
Ds.displayName = le.Description.displayName;
|
|
7853
|
+
const Wd = ({
|
|
7853
7854
|
totalSteps: e,
|
|
7854
7855
|
items: t,
|
|
7855
7856
|
activeStep: r,
|
|
@@ -7889,8 +7890,8 @@ const Bd = ({
|
|
|
7889
7890
|
g && /* @__PURE__ */ n("div", { className: m("flex-1 pb-4", a), children: g })
|
|
7890
7891
|
] }, f);
|
|
7891
7892
|
}) });
|
|
7892
|
-
},
|
|
7893
|
-
function
|
|
7893
|
+
}, Es = 8, As = 37, Fs = 39, Ls = 46, Ps = 32;
|
|
7894
|
+
function zs(e) {
|
|
7894
7895
|
const u = e, {
|
|
7895
7896
|
focus: t,
|
|
7896
7897
|
isDisabled: r,
|
|
@@ -7938,7 +7939,7 @@ function Ls(e) {
|
|
|
7938
7939
|
}, c)
|
|
7939
7940
|
);
|
|
7940
7941
|
}
|
|
7941
|
-
const
|
|
7942
|
+
const Hd = To((e, t) => {
|
|
7942
7943
|
const {
|
|
7943
7944
|
length: r = 6,
|
|
7944
7945
|
onChange: o = () => {
|
|
@@ -8006,7 +8007,7 @@ const Vd = To((e, t) => {
|
|
|
8006
8007
|
}
|
|
8007
8008
|
M(ne) && O(ne);
|
|
8008
8009
|
}, U = (j) => {
|
|
8009
|
-
s || (j.keyCode ===
|
|
8010
|
+
s || (j.keyCode === Es || j.key === "Backspace" ? (j.preventDefault(), O(""), G()) : j.keyCode === Ls || j.key === "Delete" ? (j.preventDefault(), O("")) : j.keyCode === As || j.key === "ArrowLeft" ? (j.preventDefault(), G()) : j.keyCode === Fs || j.key === "ArrowRight" ? (j.preventDefault(), z()) : (j.keyCode === Ps || j.key === " " || j.key === "Spacebar" || j.key === "Space") && j.preventDefault());
|
|
8010
8011
|
}, X = (j) => {
|
|
8011
8012
|
if (!s) {
|
|
8012
8013
|
if (M(j.currentTarget.value)) {
|
|
@@ -8026,7 +8027,7 @@ const Vd = To((e, t) => {
|
|
|
8026
8027
|
return /* @__PURE__ */ k("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
|
|
8027
8028
|
u && /* @__PURE__ */ n(K, { variant: "h5", weight: "medium", children: u }),
|
|
8028
8029
|
/* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((j, J) => /* @__PURE__ */ n(
|
|
8029
|
-
|
|
8030
|
+
zs,
|
|
8030
8031
|
{
|
|
8031
8032
|
index: J,
|
|
8032
8033
|
masked: a,
|
|
@@ -8058,7 +8059,7 @@ const Vd = To((e, t) => {
|
|
|
8058
8059
|
] }) : /* @__PURE__ */ n(so, { onClick: H, children: g.resend }) })
|
|
8059
8060
|
] });
|
|
8060
8061
|
}), jr = (e, t, r) => Math.min(Math.max(e, t), r);
|
|
8061
|
-
function
|
|
8062
|
+
function Os(e, t) {
|
|
8062
8063
|
switch (e.type) {
|
|
8063
8064
|
case "prev":
|
|
8064
8065
|
return "prev-page";
|
|
@@ -8072,7 +8073,7 @@ function Ps(e, t) {
|
|
|
8072
8073
|
return e.page === 1 ? "first-page" : e.page === t ? "last-page" : `page-${e.page}`;
|
|
8073
8074
|
}
|
|
8074
8075
|
}
|
|
8075
|
-
function
|
|
8076
|
+
function Bs(e, t) {
|
|
8076
8077
|
if (t <= 1)
|
|
8077
8078
|
return [{ type: "page", page: 1 }];
|
|
8078
8079
|
const r = 1, o = 1, a = Array.from({ length: r }, (u, d) => d + 1), i = Array.from({ length: r }, (u, d) => t - r + 1 + d), s = Math.max(
|
|
@@ -8092,7 +8093,7 @@ function zs(e, t) {
|
|
|
8092
8093
|
return f.has(d) ? !1 : (f.add(d), !0);
|
|
8093
8094
|
});
|
|
8094
8095
|
}
|
|
8095
|
-
const
|
|
8096
|
+
const Gd = ({
|
|
8096
8097
|
current: e,
|
|
8097
8098
|
total: t,
|
|
8098
8099
|
pageSize: r = 10,
|
|
@@ -8105,7 +8106,7 @@ const _d = ({
|
|
|
8105
8106
|
}) => {
|
|
8106
8107
|
var S, A;
|
|
8107
8108
|
const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), u = jr(e || 1, 1, f), d = ie(
|
|
8108
|
-
() => [{ type: "prev" }, ...
|
|
8109
|
+
() => [{ type: "prev" }, ...Bs(u, f), { type: "next" }],
|
|
8109
8110
|
[u, f]
|
|
8110
8111
|
), [x, g] = ce("");
|
|
8111
8112
|
if (s && f <= 1)
|
|
@@ -8137,7 +8138,7 @@ const _d = ({
|
|
|
8137
8138
|
}, b = (S = c == null ? void 0 : c.jump_to) != null ? S : "Перейти на", I = (A = c == null ? void 0 : c.page) != null ? A : "страницу";
|
|
8138
8139
|
return /* @__PURE__ */ k("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
|
|
8139
8140
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((w, D) => {
|
|
8140
|
-
const R =
|
|
8141
|
+
const R = Os(w, f), C = w.type === "page" && w.page === u, T = `${w.type}-${w.type === "page" ? w.page : D}`, P = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
|
|
8141
8142
|
oe,
|
|
8142
8143
|
{
|
|
8143
8144
|
variant: "text",
|
|
@@ -8203,7 +8204,7 @@ const _d = ({
|
|
|
8203
8204
|
/* @__PURE__ */ n(oe, { variant: "default", onClick: h, disabled: i, children: "OK" })
|
|
8204
8205
|
] })
|
|
8205
8206
|
] });
|
|
8206
|
-
},
|
|
8207
|
+
}, Vs = {
|
|
8207
8208
|
ru: {
|
|
8208
8209
|
searchCountry: "Найти страну",
|
|
8209
8210
|
notFound: "Ничего не найдено"
|
|
@@ -8220,9 +8221,9 @@ const _d = ({
|
|
|
8220
8221
|
searchCountry: "Ҷустуҷӯи кишвар",
|
|
8221
8222
|
notFound: "Ҳеҷ чиз ёфт нашуд"
|
|
8222
8223
|
}
|
|
8223
|
-
},
|
|
8224
|
+
}, _s = F(N({}, _o), {
|
|
8224
8225
|
BY: "Беларусь"
|
|
8225
|
-
}),
|
|
8226
|
+
}), Ws = {
|
|
8226
8227
|
ext: "иловагӣ",
|
|
8227
8228
|
country: "Кишвари рақами телефон",
|
|
8228
8229
|
phone: "Телефон",
|
|
@@ -8481,7 +8482,7 @@ const _d = ({
|
|
|
8481
8482
|
ZM: "Замбия",
|
|
8482
8483
|
ZW: "Зимбабве",
|
|
8483
8484
|
ZZ: "Байналмилалӣ"
|
|
8484
|
-
},
|
|
8485
|
+
}, Hs = {
|
|
8485
8486
|
ext: "qo‘shimcha",
|
|
8486
8487
|
country: "Telefon raqami davlati",
|
|
8487
8488
|
phone: "Telefon",
|
|
@@ -8740,7 +8741,7 @@ const _d = ({
|
|
|
8740
8741
|
ZM: "Zambiya",
|
|
8741
8742
|
ZW: "Zimbabve",
|
|
8742
8743
|
ZZ: "Xalqaro"
|
|
8743
|
-
},
|
|
8744
|
+
}, Gs = {
|
|
8744
8745
|
AC: ["+247-####"],
|
|
8745
8746
|
AD: ["+376-###-###"],
|
|
8746
8747
|
AE: ["+\\971-##-###-####", "+\\971-#-###-####"],
|
|
@@ -8998,14 +8999,14 @@ const _d = ({
|
|
|
8998
8999
|
ZW: ["+263-#-######"],
|
|
8999
9000
|
GB: ["+44-##-####-####"]
|
|
9000
9001
|
}, Ur = "+999999999999999";
|
|
9001
|
-
function
|
|
9002
|
+
function Ks(e) {
|
|
9002
9003
|
return e.replace(/\+/g, "+").replace(/\(/g, "(").replace(/\)/g, ")").replace(/#/g, "9").replace(/-/g, "-");
|
|
9003
9004
|
}
|
|
9004
9005
|
function nr(e) {
|
|
9005
9006
|
if (!e)
|
|
9006
9007
|
return [Ur];
|
|
9007
|
-
const r =
|
|
9008
|
-
return r ? r.map(
|
|
9008
|
+
const r = Gs[e];
|
|
9009
|
+
return r ? r.map(Ks) : [Ur];
|
|
9009
9010
|
}
|
|
9010
9011
|
const co = ke.forwardRef(
|
|
9011
9012
|
(u, f) => {
|
|
@@ -9117,7 +9118,7 @@ const co = ke.forwardRef(
|
|
|
9117
9118
|
}
|
|
9118
9119
|
);
|
|
9119
9120
|
co.displayName = "InputComponent";
|
|
9120
|
-
function
|
|
9121
|
+
function js(e) {
|
|
9121
9122
|
return e || "";
|
|
9122
9123
|
}
|
|
9123
9124
|
const xt = "RU";
|
|
@@ -9133,7 +9134,7 @@ function $r(e, t) {
|
|
|
9133
9134
|
return (a = (o = r == null ? void 0 : r.country) != null ? o : t) != null ? a : xt;
|
|
9134
9135
|
}
|
|
9135
9136
|
function zt({ country: e, countryName: t }) {
|
|
9136
|
-
const r =
|
|
9137
|
+
const r = Bo[e];
|
|
9137
9138
|
return /* @__PURE__ */ n(
|
|
9138
9139
|
"span",
|
|
9139
9140
|
{
|
|
@@ -9153,7 +9154,7 @@ const Yr = Vt(
|
|
|
9153
9154
|
/* @__PURE__ */ n("span", { className: "flex-1 text-[14px]", children: t }),
|
|
9154
9155
|
/* @__PURE__ */ n("span", { className: "text-foreground/50", children: `+${ze.getCountryCallingCode(e)}` })
|
|
9155
9156
|
] })
|
|
9156
|
-
),
|
|
9157
|
+
), Us = Vt(
|
|
9157
9158
|
({
|
|
9158
9159
|
disabled: e,
|
|
9159
9160
|
value: t,
|
|
@@ -9340,7 +9341,7 @@ const Yr = Vt(
|
|
|
9340
9341
|
] })
|
|
9341
9342
|
] });
|
|
9342
9343
|
}
|
|
9343
|
-
),
|
|
9344
|
+
), Kd = ke.forwardRef(
|
|
9344
9345
|
(y, p) => {
|
|
9345
9346
|
var h = y, {
|
|
9346
9347
|
className: e,
|
|
@@ -9375,16 +9376,16 @@ const Yr = Vt(
|
|
|
9375
9376
|
const [b, I] = ke.useState(() => ""), [S, A] = ke.useState([]), [w, D] = ke.useState(c), R = (() => {
|
|
9376
9377
|
switch (u) {
|
|
9377
9378
|
case "en":
|
|
9378
|
-
return
|
|
9379
|
+
return Vo;
|
|
9379
9380
|
case "uz":
|
|
9380
|
-
return
|
|
9381
|
+
return Hs;
|
|
9381
9382
|
case "tg":
|
|
9382
|
-
return
|
|
9383
|
+
return Ws;
|
|
9383
9384
|
case "ru":
|
|
9384
9385
|
default:
|
|
9385
|
-
return
|
|
9386
|
+
return _s;
|
|
9386
9387
|
}
|
|
9387
|
-
})(), C =
|
|
9388
|
+
})(), C = Vs[u];
|
|
9388
9389
|
ke.useEffect(() => {
|
|
9389
9390
|
if (s && s !== "+7") {
|
|
9390
9391
|
const z = ze.parsePhoneNumber(s);
|
|
@@ -9397,7 +9398,7 @@ const Yr = Vt(
|
|
|
9397
9398
|
D(W), I(M[0]), A(M);
|
|
9398
9399
|
}, [c, t, s]);
|
|
9399
9400
|
const T = (W) => {
|
|
9400
|
-
const M =
|
|
9401
|
+
const M = js(W), z = $r(
|
|
9401
9402
|
M,
|
|
9402
9403
|
w != null ? w : c
|
|
9403
9404
|
);
|
|
@@ -9439,7 +9440,7 @@ const Yr = Vt(
|
|
|
9439
9440
|
),
|
|
9440
9441
|
flagComponent: zt,
|
|
9441
9442
|
countryCallingCodeEditable: !1,
|
|
9442
|
-
countrySelectComponent:
|
|
9443
|
+
countrySelectComponent: Us,
|
|
9443
9444
|
countrySelectProps: {
|
|
9444
9445
|
defaultCountry: (H = w != null ? w : c) != null ? H : xt,
|
|
9445
9446
|
locale: R,
|
|
@@ -9474,21 +9475,21 @@ const Yr = Vt(
|
|
|
9474
9475
|
a && /* @__PURE__ */ n(K, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: a })
|
|
9475
9476
|
] });
|
|
9476
9477
|
}
|
|
9477
|
-
),
|
|
9478
|
+
), $s = (r) => {
|
|
9478
9479
|
var o = r, {
|
|
9479
9480
|
className: e
|
|
9480
9481
|
} = o, t = _(o, [
|
|
9481
9482
|
"className"
|
|
9482
9483
|
]);
|
|
9483
9484
|
return /* @__PURE__ */ n(K, N({ variant: "h5", weight: "medium", className: e }, t));
|
|
9484
|
-
},
|
|
9485
|
+
}, Ys = (r) => {
|
|
9485
9486
|
var o = r, {
|
|
9486
9487
|
className: e
|
|
9487
9488
|
} = o, t = _(o, [
|
|
9488
9489
|
"className"
|
|
9489
9490
|
]);
|
|
9490
9491
|
return /* @__PURE__ */ n(K, N({ textColor: "secondary", className: e }, t));
|
|
9491
|
-
},
|
|
9492
|
+
}, Zs = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => /* @__PURE__ */ k("div", { className: "flex", children: [
|
|
9492
9493
|
/* @__PURE__ */ k("div", { className: "relative mr-3 flex flex-col items-center", children: [
|
|
9493
9494
|
/* @__PURE__ */ n(
|
|
9494
9495
|
"div",
|
|
@@ -9506,10 +9507,10 @@ const Yr = Vt(
|
|
|
9506
9507
|
r.title,
|
|
9507
9508
|
r.additional
|
|
9508
9509
|
] })
|
|
9509
|
-
] }, o)) }), uo =
|
|
9510
|
-
uo.Title =
|
|
9511
|
-
uo.Additional =
|
|
9512
|
-
function
|
|
9510
|
+
] }, o)) }), uo = Zs;
|
|
9511
|
+
uo.Title = $s;
|
|
9512
|
+
uo.Additional = Ys;
|
|
9513
|
+
function Js(o) {
|
|
9513
9514
|
var a = o, {
|
|
9514
9515
|
className: e,
|
|
9515
9516
|
value: t
|
|
@@ -9541,7 +9542,43 @@ function Ys(o) {
|
|
|
9541
9542
|
})
|
|
9542
9543
|
);
|
|
9543
9544
|
}
|
|
9544
|
-
const
|
|
9545
|
+
const jd = ({
|
|
9546
|
+
value: e,
|
|
9547
|
+
size: t = 160,
|
|
9548
|
+
icon: r,
|
|
9549
|
+
iconSize: o = 40,
|
|
9550
|
+
bordered: a = !0,
|
|
9551
|
+
className: i
|
|
9552
|
+
}) => e ? /* @__PURE__ */ n(
|
|
9553
|
+
"div",
|
|
9554
|
+
{
|
|
9555
|
+
className: Ro(
|
|
9556
|
+
"[:where(&)]:relative [:where(&)]:m-0 [:where(&)]:box-border [:where(&)]:flex [:where(&)]:list-none [:where(&)]:items-center [:where(&)]:justify-center [:where(&)]:overflow-hidden [:where(&)]:border [:where(&)]:border-solid [:where(&)]:text-sm [:where(&)]:leading-[1.5714285714285714] [:where(&)]:text-[rgba(37,29,53,0.88)]",
|
|
9557
|
+
"[:where(&)>canvas]:min-w-0 [:where(&)>canvas]:flex-auto [:where(&)>canvas]:self-stretch",
|
|
9558
|
+
a ? "[:where(&)]:rounded-lg [:where(&)]:border-[rgba(37,29,53,0.06)] [:where(&)]:p-3" : "[:where(&)]:rounded-none [:where(&)]:border-transparent [:where(&)]:p-0",
|
|
9559
|
+
i
|
|
9560
|
+
),
|
|
9561
|
+
style: { width: t, height: t, backgroundColor: "transparent" },
|
|
9562
|
+
children: /* @__PURE__ */ n(
|
|
9563
|
+
Ho,
|
|
9564
|
+
{
|
|
9565
|
+
value: e,
|
|
9566
|
+
size: t,
|
|
9567
|
+
level: "M",
|
|
9568
|
+
bgColor: "transparent",
|
|
9569
|
+
fgColor: "rgba(37, 29, 53, 0.88)",
|
|
9570
|
+
style: { width: void 0, height: void 0 },
|
|
9571
|
+
imageSettings: r ? {
|
|
9572
|
+
src: r,
|
|
9573
|
+
width: o,
|
|
9574
|
+
height: o,
|
|
9575
|
+
excavate: !0,
|
|
9576
|
+
crossOrigin: "anonymous"
|
|
9577
|
+
} : void 0
|
|
9578
|
+
}
|
|
9579
|
+
)
|
|
9580
|
+
}
|
|
9581
|
+
) : null, Qs = ge(
|
|
9545
9582
|
"peer relative inline-flex shrink-0 items-center justify-center rounded-full border transition-colors focus:outline-none focus:shadow-focus disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-border cursor-pointer",
|
|
9546
9583
|
{
|
|
9547
9584
|
variants: {
|
|
@@ -9576,7 +9613,7 @@ const Zs = ge(
|
|
|
9576
9613
|
}
|
|
9577
9614
|
]
|
|
9578
9615
|
}
|
|
9579
|
-
),
|
|
9616
|
+
), qs = v.forwardRef(
|
|
9580
9617
|
(y, p) => {
|
|
9581
9618
|
var h = y, {
|
|
9582
9619
|
className: e,
|
|
@@ -9621,7 +9658,7 @@ const Zs = ge(
|
|
|
9621
9658
|
_t.Item,
|
|
9622
9659
|
F(N({
|
|
9623
9660
|
className: m(
|
|
9624
|
-
|
|
9661
|
+
Qs({
|
|
9625
9662
|
size: t,
|
|
9626
9663
|
isChecked: b,
|
|
9627
9664
|
dotSize: t
|
|
@@ -9643,8 +9680,8 @@ const Zs = ge(
|
|
|
9643
9680
|
);
|
|
9644
9681
|
}
|
|
9645
9682
|
);
|
|
9646
|
-
|
|
9647
|
-
const
|
|
9683
|
+
qs.displayName = _t.Item.displayName;
|
|
9684
|
+
const Xs = v.forwardRef((s, i) => {
|
|
9648
9685
|
var l = s, { className: e, label: t, error: r, size: o = "md" } = l, a = _(l, ["className", "label", "error", "size"]);
|
|
9649
9686
|
return /* @__PURE__ */ k("div", { className: "w-full", children: [
|
|
9650
9687
|
t && /* @__PURE__ */ n(
|
|
@@ -9670,15 +9707,15 @@ const Qs = v.forwardRef((s, i) => {
|
|
|
9670
9707
|
r && /* @__PURE__ */ n(K, { variant: "p2", className: "mt-1", textColor: "destructive", children: r })
|
|
9671
9708
|
] });
|
|
9672
9709
|
});
|
|
9673
|
-
|
|
9674
|
-
const
|
|
9710
|
+
Xs.displayName = _t.Root.displayName;
|
|
9711
|
+
const el = {
|
|
9675
9712
|
md: 24,
|
|
9676
9713
|
lg: 32
|
|
9677
9714
|
};
|
|
9678
9715
|
function st(e, t) {
|
|
9679
9716
|
return Number.isFinite(e) ? Math.min(Math.max(Math.round(e || 0), 0), t) : 0;
|
|
9680
9717
|
}
|
|
9681
|
-
function
|
|
9718
|
+
function tl({ className: e }) {
|
|
9682
9719
|
return /* @__PURE__ */ n(
|
|
9683
9720
|
"svg",
|
|
9684
9721
|
{
|
|
@@ -9696,7 +9733,7 @@ function Xs({ className: e }) {
|
|
|
9696
9733
|
}
|
|
9697
9734
|
);
|
|
9698
9735
|
}
|
|
9699
|
-
const
|
|
9736
|
+
const rl = v.forwardRef(
|
|
9700
9737
|
(S, I) => {
|
|
9701
9738
|
var A = S, {
|
|
9702
9739
|
value: e,
|
|
@@ -9742,7 +9779,7 @@ const el = v.forwardRef(
|
|
|
9742
9779
|
), H = v.useRef([]), W = st(
|
|
9743
9780
|
D ? e : R,
|
|
9744
9781
|
w
|
|
9745
|
-
), M = T != null ? T : W, z = typeof i == "number" ? i :
|
|
9782
|
+
), M = T != null ? T : W, z = typeof i == "number" ? i : el[i], G = (U) => {
|
|
9746
9783
|
if (o)
|
|
9747
9784
|
return;
|
|
9748
9785
|
const X = st(U, w), $ = a && X === W ? 0 : X;
|
|
@@ -9815,7 +9852,7 @@ const el = v.forwardRef(
|
|
|
9815
9852
|
onMouseEnter: () => !o && P($),
|
|
9816
9853
|
onKeyDown: (be) => Z(be, $),
|
|
9817
9854
|
children: /* @__PURE__ */ n(
|
|
9818
|
-
|
|
9855
|
+
tl,
|
|
9819
9856
|
{
|
|
9820
9857
|
className: m(
|
|
9821
9858
|
"h-[1em] w-[1em] transition-colors",
|
|
@@ -9832,8 +9869,8 @@ const el = v.forwardRef(
|
|
|
9832
9869
|
);
|
|
9833
9870
|
}
|
|
9834
9871
|
);
|
|
9835
|
-
|
|
9836
|
-
const
|
|
9872
|
+
rl.displayName = "Rate";
|
|
9873
|
+
const nl = ge(
|
|
9837
9874
|
"inline-flex items-center justify-center text-secondary-foreground bg-default-background p-0.5 gap-0 font-cofo",
|
|
9838
9875
|
{
|
|
9839
9876
|
variants: {
|
|
@@ -9913,7 +9950,7 @@ const tl = ge(
|
|
|
9913
9950
|
}
|
|
9914
9951
|
);
|
|
9915
9952
|
mo.displayName = Wt.Item.displayName;
|
|
9916
|
-
const
|
|
9953
|
+
const ol = v.forwardRef(
|
|
9917
9954
|
(f, c) => {
|
|
9918
9955
|
var u = f, {
|
|
9919
9956
|
className: e,
|
|
@@ -9944,7 +9981,7 @@ const rl = v.forwardRef(
|
|
|
9944
9981
|
F(N({
|
|
9945
9982
|
ref: c,
|
|
9946
9983
|
type: "single",
|
|
9947
|
-
className: m(
|
|
9984
|
+
className: m(nl({ size: t }), e),
|
|
9948
9985
|
value: d,
|
|
9949
9986
|
onValueChange: g,
|
|
9950
9987
|
"data-testid": s
|
|
@@ -9954,8 +9991,8 @@ const rl = v.forwardRef(
|
|
|
9954
9991
|
);
|
|
9955
9992
|
}
|
|
9956
9993
|
);
|
|
9957
|
-
|
|
9958
|
-
const
|
|
9994
|
+
ol.displayName = Wt.Root.displayName;
|
|
9995
|
+
const al = v.forwardRef(
|
|
9959
9996
|
(d, u) => {
|
|
9960
9997
|
var x = d, {
|
|
9961
9998
|
className: e,
|
|
@@ -10014,8 +10051,8 @@ const nl = v.forwardRef(
|
|
|
10014
10051
|
);
|
|
10015
10052
|
}
|
|
10016
10053
|
);
|
|
10017
|
-
|
|
10018
|
-
function
|
|
10054
|
+
al.displayName = "SingleSegment";
|
|
10055
|
+
function Ud({
|
|
10019
10056
|
steps: e,
|
|
10020
10057
|
currentStep: t,
|
|
10021
10058
|
className: r,
|
|
@@ -10097,7 +10134,7 @@ function Hd({
|
|
|
10097
10134
|
}
|
|
10098
10135
|
) });
|
|
10099
10136
|
}
|
|
10100
|
-
const
|
|
10137
|
+
const il = ge(
|
|
10101
10138
|
"peer inline-flex shrink-0 items-center justify-start rounded-full border-none border-transparent transition-colors duration-200 focus:outline-none focus:shadow-focus p-0.5 data-[state=checked]:justify-end cursor-pointer disabled:cursor-not-allowed",
|
|
10102
10139
|
{
|
|
10103
10140
|
variants: {
|
|
@@ -10137,7 +10174,7 @@ const ol = ge(
|
|
|
10137
10174
|
}
|
|
10138
10175
|
]
|
|
10139
10176
|
}
|
|
10140
|
-
),
|
|
10177
|
+
), sl = ge(
|
|
10141
10178
|
"pointer-events-none block rounded-full border-0 bg-background shadow-lg transition-all duration-200 ease-in-out",
|
|
10142
10179
|
{
|
|
10143
10180
|
variants: {
|
|
@@ -10150,7 +10187,7 @@ const ol = ge(
|
|
|
10150
10187
|
size: "md"
|
|
10151
10188
|
}
|
|
10152
10189
|
}
|
|
10153
|
-
),
|
|
10190
|
+
), ll = v.forwardRef((u, f) => {
|
|
10154
10191
|
var d = u, { className: e, size: t, label: r, loading: o, checked: a, disabled: i, "data-testid": s, onCheckedChange: l } = d, c = _(d, ["className", "size", "label", "loading", "checked", "disabled", "data-testid", "onCheckedChange"]);
|
|
10155
10192
|
const x = a || !1, g = i || !1, p = de(void 0), y = (b) => {
|
|
10156
10193
|
p.current = b;
|
|
@@ -10162,7 +10199,7 @@ const ol = ge(
|
|
|
10162
10199
|
ar.Root,
|
|
10163
10200
|
F(N({
|
|
10164
10201
|
className: m(
|
|
10165
|
-
|
|
10202
|
+
il({
|
|
10166
10203
|
size: t,
|
|
10167
10204
|
isChecked: x,
|
|
10168
10205
|
isLoading: !!o,
|
|
@@ -10183,7 +10220,7 @@ const ol = ge(
|
|
|
10183
10220
|
ar.Thumb,
|
|
10184
10221
|
{
|
|
10185
10222
|
className: m(
|
|
10186
|
-
|
|
10223
|
+
sl({ size: t }),
|
|
10187
10224
|
o && "flex items-center justify-center"
|
|
10188
10225
|
),
|
|
10189
10226
|
children: o && /* @__PURE__ */ n(
|
|
@@ -10209,11 +10246,11 @@ const ol = ge(
|
|
|
10209
10246
|
)
|
|
10210
10247
|
] });
|
|
10211
10248
|
});
|
|
10212
|
-
|
|
10249
|
+
ll.displayName = ar.Root.displayName;
|
|
10213
10250
|
function vr(e) {
|
|
10214
10251
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
10215
10252
|
}
|
|
10216
|
-
function
|
|
10253
|
+
function dl(e) {
|
|
10217
10254
|
return e === "center" ? "justify-center" : e === "right" ? "justify-end" : "justify-start";
|
|
10218
10255
|
}
|
|
10219
10256
|
const Zr = new URL("../assets/empty-box-ByMlwLaV.png", import.meta.url).href;
|
|
@@ -10266,11 +10303,11 @@ function po({
|
|
|
10266
10303
|
}
|
|
10267
10304
|
);
|
|
10268
10305
|
}
|
|
10269
|
-
const
|
|
10306
|
+
const cl = "4px 0 8px -6px rgba(0, 0, 0, 0.14)", ul = "-4px 0 8px -6px rgba(0, 0, 0, 0.14)";
|
|
10270
10307
|
function wr(e, t) {
|
|
10271
10308
|
return t ? e ? `${e}, ${t}` : t : e;
|
|
10272
10309
|
}
|
|
10273
|
-
function
|
|
10310
|
+
function fl(e, t) {
|
|
10274
10311
|
let r = null, o = null;
|
|
10275
10312
|
for (let a = 0; a < e.length; a += 1) {
|
|
10276
10313
|
const i = e[a];
|
|
@@ -10285,7 +10322,7 @@ function cl(e, t) {
|
|
|
10285
10322
|
}
|
|
10286
10323
|
return { lastLeftId: r, firstRightId: o };
|
|
10287
10324
|
}
|
|
10288
|
-
function
|
|
10325
|
+
function ml(e, t) {
|
|
10289
10326
|
const r = {}, o = {};
|
|
10290
10327
|
let a = 0;
|
|
10291
10328
|
e.forEach((s, l) => {
|
|
@@ -10314,11 +10351,11 @@ function Nr(e, t, r) {
|
|
|
10314
10351
|
}
|
|
10315
10352
|
function Ir(e, t, r, o) {
|
|
10316
10353
|
if (e === "left" && r.lastLeftId === t && o.canScrollLeft)
|
|
10317
|
-
return
|
|
10354
|
+
return cl;
|
|
10318
10355
|
if (e === "right" && r.firstRightId === t && o.canScrollRight)
|
|
10319
|
-
return
|
|
10356
|
+
return ul;
|
|
10320
10357
|
}
|
|
10321
|
-
function
|
|
10358
|
+
function pl({
|
|
10322
10359
|
table: e,
|
|
10323
10360
|
dataSource: t,
|
|
10324
10361
|
columns: r,
|
|
@@ -10430,10 +10467,10 @@ function fl({
|
|
|
10430
10467
|
);
|
|
10431
10468
|
}) });
|
|
10432
10469
|
}
|
|
10433
|
-
function
|
|
10470
|
+
function hl(e, t) {
|
|
10434
10471
|
return e.dataSource === t.dataSource && e.columns === t.columns && e.columnsCount === t.columnsCount && e.rowsSignature === t.rowsSignature && e.renderVersion === t.renderVersion && e.onRow === t.onRow && e.locale === t.locale && e.stickyOffsets === t.stickyOffsets && e.fixedShadowEdges === t.fixedShadowEdges && e.scrollState === t.scrollState && e.highlightNewRows === t.highlightNewRows && e.tbodyDataTestId === t.tbodyDataTestId && e.rowDataTestId === t.rowDataTestId && e.cellDataTestId === t.cellDataTestId;
|
|
10435
10472
|
}
|
|
10436
|
-
const
|
|
10473
|
+
const gl = Vt(pl, hl);
|
|
10437
10474
|
function Jr({ columns: e }) {
|
|
10438
10475
|
return /* @__PURE__ */ n("colgroup", { children: e.map((t, r) => {
|
|
10439
10476
|
var i, s, l;
|
|
@@ -10451,7 +10488,7 @@ function Jr({ columns: e }) {
|
|
|
10451
10488
|
);
|
|
10452
10489
|
}) });
|
|
10453
10490
|
}
|
|
10454
|
-
function
|
|
10491
|
+
function bl(e, t) {
|
|
10455
10492
|
if (!t)
|
|
10456
10493
|
return;
|
|
10457
10494
|
const r = Array.isArray(t) ? t : t.split(".").filter(Boolean);
|
|
@@ -10466,7 +10503,7 @@ function hl(e, t) {
|
|
|
10466
10503
|
function Ze(e, t) {
|
|
10467
10504
|
return typeof e.dataIndex == "string" && e.dataIndex.length > 0 ? e.dataIndex : typeof e.columnKey == "string" && e.columnKey.length > 0 ? e.columnKey : typeof e.key == "string" && e.key.length > 0 ? e.key : `col_${t}`;
|
|
10468
10505
|
}
|
|
10469
|
-
function
|
|
10506
|
+
function xl(e, t) {
|
|
10470
10507
|
var i, s, l, c;
|
|
10471
10508
|
const r = Ze(e, t), o = typeof e.width == "number", a = {
|
|
10472
10509
|
width: e.width,
|
|
@@ -10491,7 +10528,7 @@ function gl(e, t) {
|
|
|
10491
10528
|
id: r,
|
|
10492
10529
|
accessorFn: (f) => {
|
|
10493
10530
|
var u;
|
|
10494
|
-
return
|
|
10531
|
+
return bl(f, (u = e.dataIndex) != null ? u : r);
|
|
10495
10532
|
},
|
|
10496
10533
|
enableSorting: !!e.sorter,
|
|
10497
10534
|
meta: a,
|
|
@@ -10502,7 +10539,7 @@ function gl(e, t) {
|
|
|
10502
10539
|
}
|
|
10503
10540
|
};
|
|
10504
10541
|
}
|
|
10505
|
-
function
|
|
10542
|
+
function yl({
|
|
10506
10543
|
table: e,
|
|
10507
10544
|
columns: t,
|
|
10508
10545
|
sorting: r,
|
|
@@ -10548,7 +10585,7 @@ function bl({
|
|
|
10548
10585
|
)
|
|
10549
10586
|
}),
|
|
10550
10587
|
onClick: S,
|
|
10551
|
-
children: /* @__PURE__ */ k("div", { className: m("flex w-full items-center gap-2",
|
|
10588
|
+
children: /* @__PURE__ */ k("div", { className: m("flex w-full items-center gap-2", dl(d == null ? void 0 : d.align)), children: [
|
|
10552
10589
|
R,
|
|
10553
10590
|
x && /* @__PURE__ */ n("span", { title: p, className: "inline-flex items-center", children: /* @__PURE__ */ n(
|
|
10554
10591
|
Y,
|
|
@@ -10569,8 +10606,8 @@ function bl({
|
|
|
10569
10606
|
);
|
|
10570
10607
|
}) }, f.id)) });
|
|
10571
10608
|
}
|
|
10572
|
-
const Qr = Vt(
|
|
10573
|
-
function
|
|
10609
|
+
const Qr = Vt(yl);
|
|
10610
|
+
function vl(e) {
|
|
10574
10611
|
let t = e, r = new Set(t.map((s) => String(s))), o = 0;
|
|
10575
10612
|
const a = /* @__PURE__ */ new Set(), i = () => {
|
|
10576
10613
|
o += 1, a.forEach((s) => s());
|
|
@@ -10589,7 +10626,7 @@ function xl(e) {
|
|
|
10589
10626
|
}
|
|
10590
10627
|
};
|
|
10591
10628
|
}
|
|
10592
|
-
function
|
|
10629
|
+
function wl({
|
|
10593
10630
|
table: e,
|
|
10594
10631
|
store: t,
|
|
10595
10632
|
runtimeRef: r
|
|
@@ -10616,7 +10653,7 @@ function yl({
|
|
|
10616
10653
|
A(W, V, "page");
|
|
10617
10654
|
}, "aria-label": i === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": "select-all-checkbox" });
|
|
10618
10655
|
}
|
|
10619
|
-
function
|
|
10656
|
+
function Nl({
|
|
10620
10657
|
table: e,
|
|
10621
10658
|
row: t,
|
|
10622
10659
|
store: r,
|
|
@@ -10672,7 +10709,7 @@ function vl({
|
|
|
10672
10709
|
}
|
|
10673
10710
|
);
|
|
10674
10711
|
}
|
|
10675
|
-
function
|
|
10712
|
+
function Il({
|
|
10676
10713
|
table: e,
|
|
10677
10714
|
rowsCount: t,
|
|
10678
10715
|
stickyOffsets: r,
|
|
@@ -10720,13 +10757,13 @@ function wl({
|
|
|
10720
10757
|
}) }, `skeleton_${l}`);
|
|
10721
10758
|
}) });
|
|
10722
10759
|
}
|
|
10723
|
-
const
|
|
10760
|
+
const Sl = {
|
|
10724
10761
|
hasOverflowX: !1,
|
|
10725
10762
|
canScrollLeft: !1,
|
|
10726
10763
|
canScrollRight: !1
|
|
10727
10764
|
};
|
|
10728
|
-
function
|
|
10729
|
-
const [r, o] = ce(
|
|
10765
|
+
function Cl(e, t) {
|
|
10766
|
+
const [r, o] = ce(Sl);
|
|
10730
10767
|
return he(() => {
|
|
10731
10768
|
const a = e.current;
|
|
10732
10769
|
if (!a)
|
|
@@ -10740,10 +10777,10 @@ function Il(e, t) {
|
|
|
10740
10777
|
};
|
|
10741
10778
|
}, [e, ...t]), r;
|
|
10742
10779
|
}
|
|
10743
|
-
function
|
|
10780
|
+
function kl(e, t) {
|
|
10744
10781
|
return e.dataSource === t.dataSource && e.columns === t.columns && e.columnsCount === t.columnsCount && e.rowsSignature === t.rowsSignature && e.onRow === t.onRow && e.locale === t.locale && e.stickyOffsets === t.stickyOffsets && e.fixedShadowEdges === t.fixedShadowEdges && e.scrollState === t.scrollState && e.highlightNewRows === t.highlightNewRows && e.tbodyDataTestId === t.tbodyDataTestId && e.rowDataTestId === t.rowDataTestId && e.cellDataTestId === t.cellDataTestId;
|
|
10745
10782
|
}
|
|
10746
|
-
function
|
|
10783
|
+
function $d({
|
|
10747
10784
|
className: e,
|
|
10748
10785
|
tableClassName: t,
|
|
10749
10786
|
scrollContainerClassName: r,
|
|
@@ -10779,7 +10816,7 @@ function Gd({
|
|
|
10779
10816
|
return (ee = b == null ? void 0 : b.defaultSelectedRowKeys) != null ? ee : [];
|
|
10780
10817
|
}
|
|
10781
10818
|
), $ = (b == null ? void 0 : b.selectedRowKeys) !== void 0, te = (Ar = b == null ? void 0 : b.selectedRowKeys) != null ? Ar : U, j = de(null);
|
|
10782
|
-
j.current || (j.current =
|
|
10819
|
+
j.current || (j.current = vl(te));
|
|
10783
10820
|
const J = ie(() => Z ? {
|
|
10784
10821
|
key: "__row_selection__",
|
|
10785
10822
|
title: null,
|
|
@@ -10797,10 +10834,10 @@ function Gd({
|
|
|
10797
10834
|
() => ne.some((ee) => ee.fixed === "left" || ee.fixed === "right"),
|
|
10798
10835
|
[ne]
|
|
10799
10836
|
), Te = ie(
|
|
10800
|
-
() =>
|
|
10837
|
+
() => fl(ne, Ze),
|
|
10801
10838
|
[ne]
|
|
10802
10839
|
), q = ie(
|
|
10803
|
-
() =>
|
|
10840
|
+
() => ml(ne, Ze),
|
|
10804
10841
|
[ne]
|
|
10805
10842
|
), se = ie(() => (ee, fe) => {
|
|
10806
10843
|
if (typeof h == "function")
|
|
@@ -10849,7 +10886,7 @@ function Gd({
|
|
|
10849
10886
|
"data-testid": "table-row-selection"
|
|
10850
10887
|
},
|
|
10851
10888
|
header: (ae) => /* @__PURE__ */ n(
|
|
10852
|
-
|
|
10889
|
+
wl,
|
|
10853
10890
|
{
|
|
10854
10891
|
table: ae.table,
|
|
10855
10892
|
store: j.current,
|
|
@@ -10857,7 +10894,7 @@ function Gd({
|
|
|
10857
10894
|
}
|
|
10858
10895
|
),
|
|
10859
10896
|
cell: (ae) => /* @__PURE__ */ n(
|
|
10860
|
-
|
|
10897
|
+
Nl,
|
|
10861
10898
|
{
|
|
10862
10899
|
table: ae.table,
|
|
10863
10900
|
row: ae.row,
|
|
@@ -10866,7 +10903,7 @@ function Gd({
|
|
|
10866
10903
|
}
|
|
10867
10904
|
)
|
|
10868
10905
|
}
|
|
10869
|
-
] : [], fe = u.map((ae, De) =>
|
|
10906
|
+
] : [], fe = u.map((ae, De) => xl(ae, De));
|
|
10870
10907
|
return [...ee, ...fe];
|
|
10871
10908
|
}, [
|
|
10872
10909
|
u,
|
|
@@ -10874,7 +10911,7 @@ function Gd({
|
|
|
10874
10911
|
]), [je, Sr] = ce(() => {
|
|
10875
10912
|
const ee = u.findIndex((Le) => Le.defaultSortOrder), fe = ee >= 0 ? u[ee] : void 0, ae = fe == null ? void 0 : fe.defaultSortOrder, De = fe ? Ze(fe, ee) : void 0;
|
|
10876
10913
|
return !De || !ae ? [] : [{ id: De, desc: ae === "descend" }];
|
|
10877
|
-
}), Ue =
|
|
10914
|
+
}), Ue = Go(F(N({
|
|
10878
10915
|
data: L,
|
|
10879
10916
|
columns: Ve,
|
|
10880
10917
|
state: { sorting: je },
|
|
@@ -10889,9 +10926,9 @@ function Gd({
|
|
|
10889
10926
|
};
|
|
10890
10927
|
f == null || f(void 0, void 0, Le, { action: "sort" });
|
|
10891
10928
|
},
|
|
10892
|
-
getCoreRowModel:
|
|
10929
|
+
getCoreRowModel: jo(),
|
|
10893
10930
|
enableSortingRemoval: !0
|
|
10894
|
-
}, y ? { getSortedRowModel:
|
|
10931
|
+
}, y ? { getSortedRowModel: Ko() } : {}), {
|
|
10895
10932
|
getRowId: h ? (ee, fe) => {
|
|
10896
10933
|
if (typeof h == "function")
|
|
10897
10934
|
return String(h(ee));
|
|
@@ -10913,7 +10950,7 @@ function Gd({
|
|
|
10913
10950
|
}, [l == null ? void 0 : l.y]), Qt = ie(() => ne.reduce((ee, fe) => {
|
|
10914
10951
|
const ae = typeof fe.width == "number" ? fe.width : typeof fe.minWidth == "number" ? fe.minWidth : 0;
|
|
10915
10952
|
return ee + ae;
|
|
10916
|
-
}, 0), [ne]), at = ie(() => (l == null ? void 0 : l.x) === "max-content" ? "max-content" : typeof (l == null ? void 0 : l.x) == "number" ? `${l.x}px` : typeof (l == null ? void 0 : l.x) == "string" ? l.x : Qt > 0 ? `${Qt}px` : "max-content", [l == null ? void 0 : l.x, Qt]), $e =
|
|
10953
|
+
}, 0), [ne]), at = ie(() => (l == null ? void 0 : l.x) === "max-content" ? "max-content" : typeof (l == null ? void 0 : l.x) == "number" ? `${l.x}px` : typeof (l == null ? void 0 : l.x) == "string" ? l.x : Qt > 0 ? `${Qt}px` : "max-content", [l == null ? void 0 : l.x, Qt]), $e = Cl(W, [
|
|
10917
10954
|
ne,
|
|
10918
10955
|
at,
|
|
10919
10956
|
ye,
|
|
@@ -10946,7 +10983,7 @@ function Gd({
|
|
|
10946
10983
|
C,
|
|
10947
10984
|
T,
|
|
10948
10985
|
P
|
|
10949
|
-
]), Tr = de(null), Ye = Tr.current, No = !!(Ye && Ye.selectedRowKeysSignature !== Cr &&
|
|
10986
|
+
]), Tr = de(null), Ye = Tr.current, No = !!(Ye && Ye.selectedRowKeysSignature !== Cr && kl(Ye.inputs, kr)), Rr = Ye ? No ? Ye.version : Ye.version + 1 : 0;
|
|
10950
10987
|
dt(() => {
|
|
10951
10988
|
Tr.current = {
|
|
10952
10989
|
version: Rr,
|
|
@@ -11050,7 +11087,7 @@ function Gd({
|
|
|
11050
11087
|
}
|
|
11051
11088
|
),
|
|
11052
11089
|
V ? /* @__PURE__ */ n("tbody", { "data-testid": "table-loading", children: /* @__PURE__ */ n(
|
|
11053
|
-
|
|
11090
|
+
Il,
|
|
11054
11091
|
{
|
|
11055
11092
|
table: Ue,
|
|
11056
11093
|
rowsCount: H,
|
|
@@ -11059,7 +11096,7 @@ function Gd({
|
|
|
11059
11096
|
scrollState: $e
|
|
11060
11097
|
}
|
|
11061
11098
|
) }) : /* @__PURE__ */ n(
|
|
11062
|
-
|
|
11099
|
+
gl,
|
|
11063
11100
|
{
|
|
11064
11101
|
table: Ue,
|
|
11065
11102
|
dataSource: L,
|
|
@@ -11087,7 +11124,7 @@ function Gd({
|
|
|
11087
11124
|
}
|
|
11088
11125
|
);
|
|
11089
11126
|
}
|
|
11090
|
-
function
|
|
11127
|
+
function Tl({
|
|
11091
11128
|
rowsCount: e,
|
|
11092
11129
|
linesCount: t,
|
|
11093
11130
|
className: r
|
|
@@ -11167,7 +11204,7 @@ function Cl({
|
|
|
11167
11204
|
`card_skeleton_${l}`
|
|
11168
11205
|
)) });
|
|
11169
11206
|
}
|
|
11170
|
-
function
|
|
11207
|
+
function Yd({
|
|
11171
11208
|
items: e,
|
|
11172
11209
|
loading: t,
|
|
11173
11210
|
loadingRows: r,
|
|
@@ -11179,7 +11216,7 @@ function Kd({
|
|
|
11179
11216
|
}) {
|
|
11180
11217
|
const c = !!t, f = Math.max(1, Math.floor(r != null ? r : 10)), u = e != null ? e : [];
|
|
11181
11218
|
return c ? /* @__PURE__ */ n("div", { className: m("flex flex-col gap-3 p-3", o), "aria-busy": t, children: /* @__PURE__ */ n(
|
|
11182
|
-
|
|
11219
|
+
Tl,
|
|
11183
11220
|
{
|
|
11184
11221
|
rowsCount: f,
|
|
11185
11222
|
linesCount: 6
|
|
@@ -11213,7 +11250,7 @@ function Kd({
|
|
|
11213
11250
|
);
|
|
11214
11251
|
}) });
|
|
11215
11252
|
}
|
|
11216
|
-
function
|
|
11253
|
+
function Zd({
|
|
11217
11254
|
title: e,
|
|
11218
11255
|
controls: t,
|
|
11219
11256
|
onChange: r,
|
|
@@ -11248,7 +11285,7 @@ function jd({
|
|
|
11248
11285
|
children: [
|
|
11249
11286
|
e && /* @__PURE__ */ k("div", { className: "px-3 pt-2", children: [
|
|
11250
11287
|
/* @__PURE__ */ n(K, { weight: "bold", children: e }),
|
|
11251
|
-
/* @__PURE__ */ n(
|
|
11288
|
+
/* @__PURE__ */ n(bs, { className: "mt-2" })
|
|
11252
11289
|
] }),
|
|
11253
11290
|
/* @__PURE__ */ n("div", { className: "flex flex-col", "data-testid": a, children: t.map((l) => {
|
|
11254
11291
|
const c = () => s(l.key, !l.enabled);
|
|
@@ -11280,7 +11317,7 @@ function jd({
|
|
|
11280
11317
|
)
|
|
11281
11318
|
] });
|
|
11282
11319
|
}
|
|
11283
|
-
const
|
|
11320
|
+
const Rl = ge(
|
|
11284
11321
|
"inline-flex items-center rounded-md bg-transparent w-full overflow-x-auto no-scrollbar",
|
|
11285
11322
|
{
|
|
11286
11323
|
variants: {
|
|
@@ -11291,7 +11328,7 @@ const kl = ge(
|
|
|
11291
11328
|
},
|
|
11292
11329
|
defaultVariants: { size: "md", variant: "default" }
|
|
11293
11330
|
}
|
|
11294
|
-
),
|
|
11331
|
+
), Ml = ge(
|
|
11295
11332
|
// ↳ border-0 — главное условие
|
|
11296
11333
|
"cursor-pointer inline-flex items-center justify-center whitespace-nowrap rounded-full font-medium select-none transition-colors border border-transparent font-cofo",
|
|
11297
11334
|
{
|
|
@@ -11307,18 +11344,18 @@ const kl = ge(
|
|
|
11307
11344
|
},
|
|
11308
11345
|
defaultVariants: { size: "md", variant: "default" }
|
|
11309
11346
|
}
|
|
11310
|
-
),
|
|
11347
|
+
), Jd = He.Root, Dl = v.forwardRef((i, a) => {
|
|
11311
11348
|
var s = i, { size: e = "md", variant: t = "default", className: r } = s, o = _(s, ["size", "variant", "className"]);
|
|
11312
11349
|
return /* @__PURE__ */ n(
|
|
11313
11350
|
He.List,
|
|
11314
11351
|
N({
|
|
11315
11352
|
ref: a,
|
|
11316
|
-
className: m(
|
|
11353
|
+
className: m(Rl({ size: e, variant: t }), r)
|
|
11317
11354
|
}, o)
|
|
11318
11355
|
);
|
|
11319
11356
|
});
|
|
11320
|
-
|
|
11321
|
-
const
|
|
11357
|
+
Dl.displayName = He.List.displayName;
|
|
11358
|
+
const El = v.forwardRef(
|
|
11322
11359
|
(u, f) => {
|
|
11323
11360
|
var d = u, {
|
|
11324
11361
|
size: e = "md",
|
|
@@ -11340,7 +11377,7 @@ const Ml = v.forwardRef(
|
|
|
11340
11377
|
"data-testid"
|
|
11341
11378
|
]);
|
|
11342
11379
|
const x = m(
|
|
11343
|
-
|
|
11380
|
+
Ml({ size: e, variant: t }),
|
|
11344
11381
|
/* base (inactive) */
|
|
11345
11382
|
t === "default" ? "bg-white border-border-tabs" : "bg-transparent text-gray-600 rounded-md w-full",
|
|
11346
11383
|
/* hover / pressed (inactive) */
|
|
@@ -11379,8 +11416,8 @@ const Ml = v.forwardRef(
|
|
|
11379
11416
|
);
|
|
11380
11417
|
}
|
|
11381
11418
|
);
|
|
11382
|
-
|
|
11383
|
-
const
|
|
11419
|
+
El.displayName = He.Trigger.displayName;
|
|
11420
|
+
const Al = v.forwardRef((o, r) => {
|
|
11384
11421
|
var a = o, { className: e } = a, t = _(a, ["className"]);
|
|
11385
11422
|
return /* @__PURE__ */ n(
|
|
11386
11423
|
He.Content,
|
|
@@ -11390,8 +11427,8 @@ const Dl = v.forwardRef((o, r) => {
|
|
|
11390
11427
|
}, t)
|
|
11391
11428
|
);
|
|
11392
11429
|
});
|
|
11393
|
-
|
|
11394
|
-
const
|
|
11430
|
+
Al.displayName = He.Content.displayName;
|
|
11431
|
+
const Fl = ge(
|
|
11395
11432
|
"font-cofo flex flex-shrink-0 items-center justify-center w-fit rounded-md font-medium border-0 h-6 px-2 text-[14px] leading-[18px] min-w-max",
|
|
11396
11433
|
{
|
|
11397
11434
|
variants: {
|
|
@@ -11425,7 +11462,7 @@ const El = ge(
|
|
|
11425
11462
|
iconPosition: "start"
|
|
11426
11463
|
}
|
|
11427
11464
|
}
|
|
11428
|
-
),
|
|
11465
|
+
), Ll = v.forwardRef(
|
|
11429
11466
|
(d, u) => {
|
|
11430
11467
|
var x = d, {
|
|
11431
11468
|
color: e = "default",
|
|
@@ -11458,7 +11495,7 @@ const El = ge(
|
|
|
11458
11495
|
F(N({
|
|
11459
11496
|
ref: u,
|
|
11460
11497
|
className: m(
|
|
11461
|
-
|
|
11498
|
+
Fl({
|
|
11462
11499
|
color: e,
|
|
11463
11500
|
iconOnly: r,
|
|
11464
11501
|
iconPosition: o
|
|
@@ -11473,8 +11510,8 @@ const El = ge(
|
|
|
11473
11510
|
);
|
|
11474
11511
|
}
|
|
11475
11512
|
);
|
|
11476
|
-
|
|
11477
|
-
function
|
|
11513
|
+
Ll.displayName = "Tag";
|
|
11514
|
+
function Pl(e, t, r, o) {
|
|
11478
11515
|
const a = de(null), i = de(0), s = de(!1), l = de(0);
|
|
11479
11516
|
return he(() => {
|
|
11480
11517
|
if (!e || !a.current)
|
|
@@ -11513,7 +11550,7 @@ function Fl(e, t, r, o) {
|
|
|
11513
11550
|
};
|
|
11514
11551
|
}, [e, t, r, o]), a;
|
|
11515
11552
|
}
|
|
11516
|
-
const
|
|
11553
|
+
const zl = v.forwardRef(
|
|
11517
11554
|
(p, g) => {
|
|
11518
11555
|
var y = p, {
|
|
11519
11556
|
className: e,
|
|
@@ -11542,7 +11579,7 @@ const Ll = v.forwardRef(
|
|
|
11542
11579
|
"disabled",
|
|
11543
11580
|
"size"
|
|
11544
11581
|
]);
|
|
11545
|
-
const h =
|
|
11582
|
+
const h = Pl(s, l, x.placeholder, x.value);
|
|
11546
11583
|
return tn(g, () => h.current, [h]), /* @__PURE__ */ k("div", { className: "w-full", children: [
|
|
11547
11584
|
o && /* @__PURE__ */ n(K, { variant: "p2", weight: "medium", className: "mb-1.5", children: o }),
|
|
11548
11585
|
/* @__PURE__ */ k(
|
|
@@ -11610,12 +11647,12 @@ const Ll = v.forwardRef(
|
|
|
11610
11647
|
] });
|
|
11611
11648
|
}
|
|
11612
11649
|
);
|
|
11613
|
-
|
|
11614
|
-
function
|
|
11650
|
+
zl.displayName = "Textarea";
|
|
11651
|
+
function Ol(e, t) {
|
|
11615
11652
|
return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
|
|
11616
11653
|
}
|
|
11617
|
-
function
|
|
11618
|
-
const r = e.replace(/\D/g, ""), o = t.replace(/\D/g, ""), a =
|
|
11654
|
+
function Bl(e, t) {
|
|
11655
|
+
const r = e.replace(/\D/g, ""), o = t.replace(/\D/g, ""), a = Ol(e, t);
|
|
11619
11656
|
return r.length === 0 ? "" : a === "removed" && r.length === 2 && o.length === 3 ? `${r}:` : a === "removed" && r.length === 2 && o.length === 2 && t.includes(":") ? r[0] : a === "removed" && r.length === 1 ? r : a === "added" && r.length === 2 && o.length === 1 ? `${r}:` : r.length === 1 || r.length === 2 ? r : r.length <= 4 ? `${r.slice(0, 2)}:${r.slice(2)}` : `${r.slice(0, 2)}:${r.slice(2, 4)}`;
|
|
11620
11657
|
}
|
|
11621
11658
|
function qr(e) {
|
|
@@ -11626,7 +11663,7 @@ function qr(e) {
|
|
|
11626
11663
|
const [r, o] = e.split(":").map(Number);
|
|
11627
11664
|
return r >= 0 && r <= 23 && o >= 0 && o <= 59;
|
|
11628
11665
|
}
|
|
11629
|
-
function
|
|
11666
|
+
function Qd({
|
|
11630
11667
|
time: e,
|
|
11631
11668
|
onSelect: t,
|
|
11632
11669
|
disabled: r = !1,
|
|
@@ -11644,7 +11681,7 @@ function $d({
|
|
|
11644
11681
|
x(e || ""), g.current = e || "";
|
|
11645
11682
|
}, [e]);
|
|
11646
11683
|
const p = (h) => {
|
|
11647
|
-
const b =
|
|
11684
|
+
const b = Bl(h.target.value, g.current);
|
|
11648
11685
|
x(b), g.current = b, b.length === 5 && qr(b) ? t == null || t(b) : b === "" && (t == null || t(void 0));
|
|
11649
11686
|
}, y = (h) => {
|
|
11650
11687
|
f == null || f(h), d && !qr(d) && (x(""), t == null || t(void 0));
|
|
@@ -11707,10 +11744,10 @@ function $d({
|
|
|
11707
11744
|
s && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: s })
|
|
11708
11745
|
] });
|
|
11709
11746
|
}
|
|
11710
|
-
function
|
|
11747
|
+
function Vl(e, t) {
|
|
11711
11748
|
return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
|
|
11712
11749
|
}
|
|
11713
|
-
function
|
|
11750
|
+
function qd({
|
|
11714
11751
|
value: e,
|
|
11715
11752
|
onTimeChange: t,
|
|
11716
11753
|
placeholder: r = {
|
|
@@ -11739,7 +11776,7 @@ function Yd({
|
|
|
11739
11776
|
x((e == null ? void 0 : e.from) || ""), p((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
|
|
11740
11777
|
}, [e]);
|
|
11741
11778
|
const D = (H, W) => {
|
|
11742
|
-
const M = H.replace(/\D/g, ""), z = W.replace(/\D/g, ""), G =
|
|
11779
|
+
const M = H.replace(/\D/g, ""), z = W.replace(/\D/g, ""), G = Vl(H, W);
|
|
11743
11780
|
return M.length === 0 ? "" : G === "removed" && M.length === 2 && z.length === 3 ? `${M}:` : G === "removed" && M.length === 2 && z.length === 2 && W.includes(":") ? M[0] : G === "removed" && M.length === 1 ? M : G === "added" && M.length === 2 && z.length === 1 ? `${M}:` : M.length === 1 || M.length === 2 ? M : M.length <= 4 ? `${M.slice(0, 2)}:${M.slice(2)}` : `${M.slice(0, 2)}:${M.slice(2, 4)}`;
|
|
11744
11781
|
}, R = (H) => {
|
|
11745
11782
|
if (!H)
|
|
@@ -11871,7 +11908,7 @@ function Yd({
|
|
|
11871
11908
|
I() && /* @__PURE__ */ n(K, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: w() })
|
|
11872
11909
|
] });
|
|
11873
11910
|
}
|
|
11874
|
-
const
|
|
11911
|
+
const Xd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, o) => {
|
|
11875
11912
|
const a = r.active && !r.completed ? r.color : void 0;
|
|
11876
11913
|
return /* @__PURE__ */ k("div", { className: "flex", children: [
|
|
11877
11914
|
/* @__PURE__ */ k("div", { className: "relative mr-4 flex flex-col items-center", children: [
|
|
@@ -11947,10 +11984,10 @@ function lt(e, t, r) {
|
|
|
11947
11984
|
const o = sr(e);
|
|
11948
11985
|
return o.length === 0 ? (t && t(e), [r || "Произошла ошибка"]) : o;
|
|
11949
11986
|
}
|
|
11950
|
-
function
|
|
11987
|
+
function _l(e, t) {
|
|
11951
11988
|
return me(e, t);
|
|
11952
11989
|
}
|
|
11953
|
-
const
|
|
11990
|
+
const ec = Object.assign(_l, {
|
|
11954
11991
|
success: (e, t) => {
|
|
11955
11992
|
const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : lt(
|
|
11956
11993
|
e,
|
|
@@ -12118,7 +12155,7 @@ const Jd = Object.assign(Bl, {
|
|
|
12118
12155
|
}, a));
|
|
12119
12156
|
}
|
|
12120
12157
|
});
|
|
12121
|
-
function
|
|
12158
|
+
function tc(t) {
|
|
12122
12159
|
var e = _(t, []);
|
|
12123
12160
|
const r = v.useRef(null);
|
|
12124
12161
|
return v.useEffect(() => {
|
|
@@ -12135,7 +12172,7 @@ function Qd(t) {
|
|
|
12135
12172
|
const i = new MutationObserver(a);
|
|
12136
12173
|
return i.observe(o, { childList: !0, subtree: !0 }), () => i.disconnect();
|
|
12137
12174
|
}, []), /* @__PURE__ */ n("div", { ref: r, children: /* @__PURE__ */ n(
|
|
12138
|
-
|
|
12175
|
+
Wo,
|
|
12139
12176
|
N({
|
|
12140
12177
|
visibleToasts: 1 / 0,
|
|
12141
12178
|
gap: 4,
|
|
@@ -12165,8 +12202,8 @@ function Qd(t) {
|
|
|
12165
12202
|
}, e)
|
|
12166
12203
|
) });
|
|
12167
12204
|
}
|
|
12168
|
-
const
|
|
12169
|
-
function
|
|
12205
|
+
const rc = Oe.Provider, Wl = 120, ho = v.createContext(null);
|
|
12206
|
+
function Hl() {
|
|
12170
12207
|
const [e, t] = v.useState(!1);
|
|
12171
12208
|
return v.useEffect(() => {
|
|
12172
12209
|
if (typeof window == "undefined")
|
|
@@ -12177,7 +12214,7 @@ function _l() {
|
|
|
12177
12214
|
return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
12178
12215
|
}, []), e;
|
|
12179
12216
|
}
|
|
12180
|
-
function
|
|
12217
|
+
function nc(a) {
|
|
12181
12218
|
var i = a, {
|
|
12182
12219
|
open: e,
|
|
12183
12220
|
defaultOpen: t,
|
|
@@ -12187,14 +12224,14 @@ function Xd(a) {
|
|
|
12187
12224
|
"defaultOpen",
|
|
12188
12225
|
"onOpenChange"
|
|
12189
12226
|
]);
|
|
12190
|
-
const [s, l] = v.useState(!!t), c = e !== void 0, f = c ? e : s, u =
|
|
12227
|
+
const [s, l] = v.useState(!!t), c = e !== void 0, f = c ? e : s, u = Hl(), d = v.useRef(0), x = v.useCallback(
|
|
12191
12228
|
(y) => {
|
|
12192
12229
|
c || l(y), r == null || r(y);
|
|
12193
12230
|
},
|
|
12194
12231
|
[c, r]
|
|
12195
12232
|
), g = v.useCallback(
|
|
12196
12233
|
(y) => {
|
|
12197
|
-
u && !y && Date.now() - d.current <
|
|
12234
|
+
u && !y && Date.now() - d.current < Wl || x(y);
|
|
12198
12235
|
},
|
|
12199
12236
|
[u, x]
|
|
12200
12237
|
), p = v.useCallback(() => {
|
|
@@ -12209,15 +12246,15 @@ function Xd(a) {
|
|
|
12209
12246
|
}, o)
|
|
12210
12247
|
) });
|
|
12211
12248
|
}
|
|
12212
|
-
const
|
|
12249
|
+
const Gl = v.forwardRef((o, r) => {
|
|
12213
12250
|
var a = o, { onPointerDown: e } = a, t = _(a, ["onPointerDown"]);
|
|
12214
12251
|
const i = v.useContext(ho), s = (l) => {
|
|
12215
12252
|
e == null || e(l), !l.defaultPrevented && i != null && i.isTouchDevice && l.pointerType === "touch" && i.toggleByTouch();
|
|
12216
12253
|
};
|
|
12217
12254
|
return /* @__PURE__ */ n(Oe.Trigger, N({ ref: r, onPointerDown: s }, t));
|
|
12218
12255
|
});
|
|
12219
|
-
|
|
12220
|
-
const
|
|
12256
|
+
Gl.displayName = Oe.Trigger.displayName;
|
|
12257
|
+
const Kl = v.forwardRef(
|
|
12221
12258
|
(l, s) => {
|
|
12222
12259
|
var c = l, {
|
|
12223
12260
|
className: e,
|
|
@@ -12275,7 +12312,7 @@ const Hl = v.forwardRef(
|
|
|
12275
12312
|
) });
|
|
12276
12313
|
}
|
|
12277
12314
|
);
|
|
12278
|
-
|
|
12315
|
+
Kl.displayName = Oe.Content.displayName;
|
|
12279
12316
|
const Zt = {
|
|
12280
12317
|
ru: {
|
|
12281
12318
|
dropzoneText: "Добавьте файл для загрузки",
|
|
@@ -12355,13 +12392,13 @@ function en(e, t = "ru") {
|
|
|
12355
12392
|
}
|
|
12356
12393
|
return Zt[t].uploadError;
|
|
12357
12394
|
}
|
|
12358
|
-
function
|
|
12395
|
+
function jl(e) {
|
|
12359
12396
|
return E(this, null, function* () {
|
|
12360
12397
|
var o;
|
|
12361
12398
|
return ((o = e.headers.get("content-type")) != null ? o : "").includes("application/json") ? e.json() : (yield e.text()) || null;
|
|
12362
12399
|
});
|
|
12363
12400
|
}
|
|
12364
|
-
function
|
|
12401
|
+
function Ul(e) {
|
|
12365
12402
|
return {
|
|
12366
12403
|
uid: `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`,
|
|
12367
12404
|
name: e.name,
|
|
@@ -12416,7 +12453,7 @@ function bo({
|
|
|
12416
12453
|
(M) => E(null, null, function* () {
|
|
12417
12454
|
if (!l)
|
|
12418
12455
|
return;
|
|
12419
|
-
let z = M.map(
|
|
12456
|
+
let z = M.map(Ul);
|
|
12420
12457
|
for (const G of z) {
|
|
12421
12458
|
const O = F(N({}, G), {
|
|
12422
12459
|
status: "uploading"
|
|
@@ -12434,7 +12471,7 @@ function bo({
|
|
|
12434
12471
|
headers: u,
|
|
12435
12472
|
credentials: d ? "include" : "same-origin",
|
|
12436
12473
|
body: Z
|
|
12437
|
-
}), X = yield
|
|
12474
|
+
}), X = yield jl(U);
|
|
12438
12475
|
if (!U.ok) {
|
|
12439
12476
|
const te = en(X, g) || U.statusText, j = F(N({}, O), {
|
|
12440
12477
|
status: "error",
|
|
@@ -12695,7 +12732,7 @@ const xo = v.forwardRef(
|
|
|
12695
12732
|
}
|
|
12696
12733
|
)
|
|
12697
12734
|
] }),
|
|
12698
|
-
g && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(
|
|
12735
|
+
g && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(Js, { value: x }) }),
|
|
12699
12736
|
d.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: d.map(($) => {
|
|
12700
12737
|
const te = $.status === "error", j = te ? "FileErrorIcon" : "FileSuccessIcon";
|
|
12701
12738
|
return /* @__PURE__ */ k(
|
|
@@ -12754,7 +12791,7 @@ const xo = v.forwardRef(
|
|
|
12754
12791
|
);
|
|
12755
12792
|
}
|
|
12756
12793
|
);
|
|
12757
|
-
function
|
|
12794
|
+
function $l({
|
|
12758
12795
|
asChild: e = !1,
|
|
12759
12796
|
accept: t,
|
|
12760
12797
|
multiple: r = !1,
|
|
@@ -12828,34 +12865,34 @@ function jl({
|
|
|
12828
12865
|
] });
|
|
12829
12866
|
}
|
|
12830
12867
|
xo.displayName = "Uploader";
|
|
12831
|
-
const
|
|
12832
|
-
|
|
12868
|
+
const Yl = xo;
|
|
12869
|
+
Yl.Button = $l;
|
|
12833
12870
|
export {
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12871
|
+
yd as Accordion,
|
|
12872
|
+
Nd as AccordionContent,
|
|
12873
|
+
vd as AccordionItem,
|
|
12874
|
+
wd as AccordionTrigger,
|
|
12875
|
+
Xo as ActionsMenu,
|
|
12876
|
+
ea as ActionsMenuItem,
|
|
12877
|
+
ra as ActionsMenuLabel,
|
|
12878
|
+
ta as ActionsMenuSeparator,
|
|
12879
|
+
oa as Alert,
|
|
12880
|
+
Id as Autocomplete,
|
|
12881
|
+
va as Avatar,
|
|
12882
|
+
Na as AvatarFallback,
|
|
12883
|
+
wa as AvatarImage,
|
|
12884
|
+
Ja as Banner,
|
|
12848
12885
|
oe as Button,
|
|
12849
12886
|
Pe as CARD_WIDTH,
|
|
12850
|
-
|
|
12851
|
-
|
|
12887
|
+
Oa as CalendarDayCard,
|
|
12888
|
+
kd as CalendarStrip,
|
|
12852
12889
|
Je as Card,
|
|
12853
12890
|
Rt as Carousel,
|
|
12854
|
-
|
|
12855
|
-
|
|
12891
|
+
Fi as CarouselButtonsView,
|
|
12892
|
+
Ei as CarouselContentView,
|
|
12856
12893
|
$n as CarouselDotsView,
|
|
12857
12894
|
pr as Checkbox,
|
|
12858
|
-
|
|
12895
|
+
ti as Combobox,
|
|
12859
12896
|
Tn as ComboboxActions,
|
|
12860
12897
|
On as ComboboxBase,
|
|
12861
12898
|
An as ComboboxContainer,
|
|
@@ -12863,34 +12900,34 @@ export {
|
|
|
12863
12900
|
Ln as ComboboxItemRenderer,
|
|
12864
12901
|
Pn as ComboboxMenu,
|
|
12865
12902
|
Gn as ComboboxMultiSelect,
|
|
12866
|
-
|
|
12903
|
+
oi as ComboboxPrimitiveProvider,
|
|
12867
12904
|
mt as Command,
|
|
12868
12905
|
Et as CommandEmpty,
|
|
12869
12906
|
ht as CommandGroup,
|
|
12870
|
-
|
|
12907
|
+
aa as CommandInput,
|
|
12871
12908
|
Ht as CommandItem,
|
|
12872
12909
|
pt as CommandList,
|
|
12873
|
-
|
|
12874
|
-
|
|
12910
|
+
ia as CommandSeparator,
|
|
12911
|
+
sa as CommandShortcut,
|
|
12875
12912
|
Yr as CountrySelectOption,
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12913
|
+
zd as DatePicker,
|
|
12914
|
+
Od as DateRangePicker,
|
|
12915
|
+
Ad as DefaultCustomizableCarousel,
|
|
12916
|
+
Bd as Dialog,
|
|
12880
12917
|
pe as DialogBase,
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12918
|
+
_d as DialogClose,
|
|
12919
|
+
Ts as DialogContent,
|
|
12920
|
+
Rs as DialogHeader,
|
|
12884
12921
|
lo as DialogOverlay,
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12922
|
+
ks as DialogPortal,
|
|
12923
|
+
Ld as DialogPrimitive,
|
|
12924
|
+
Ms as DialogTitle,
|
|
12925
|
+
Vd as DialogTrigger,
|
|
12926
|
+
bs as Divider,
|
|
12927
|
+
Ss as Drawer,
|
|
12891
12928
|
no as DrawerBody,
|
|
12892
12929
|
ao as DrawerClose,
|
|
12893
|
-
|
|
12930
|
+
Is as DrawerDescription,
|
|
12894
12931
|
oo as DrawerFooter,
|
|
12895
12932
|
to as DrawerHeader,
|
|
12896
12933
|
Xn as DrawerOverlay,
|
|
@@ -12903,100 +12940,101 @@ export {
|
|
|
12903
12940
|
xn as DropdownLabel,
|
|
12904
12941
|
yn as DropdownSeparator,
|
|
12905
12942
|
hn as DropdownTrigger,
|
|
12906
|
-
|
|
12907
|
-
|
|
12943
|
+
Va as EmblaCalendarCard,
|
|
12944
|
+
Cd as EmblaCalendarStrip,
|
|
12908
12945
|
zt as FlagComponent,
|
|
12909
|
-
|
|
12946
|
+
Fd as HeadlessCarousel,
|
|
12910
12947
|
Y as Icon,
|
|
12911
|
-
|
|
12912
|
-
|
|
12948
|
+
bd as IconBanks,
|
|
12949
|
+
xd as IconDocument,
|
|
12913
12950
|
Fe as Input,
|
|
12914
|
-
|
|
12951
|
+
ma as InputLink,
|
|
12915
12952
|
io as InputNumber,
|
|
12916
|
-
|
|
12953
|
+
ua as InputPassword,
|
|
12917
12954
|
At as InputSearch,
|
|
12918
|
-
|
|
12955
|
+
fa as InputTitle,
|
|
12919
12956
|
gr as Item,
|
|
12920
12957
|
hr as ItemView,
|
|
12921
12958
|
so as Link,
|
|
12922
12959
|
br as List,
|
|
12923
12960
|
Nn as MOBILE_BREAKPOINT,
|
|
12924
12961
|
bt as MaskedInput,
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12962
|
+
$a as MultiSelect,
|
|
12963
|
+
Wd as NumericTimeline,
|
|
12964
|
+
Hd as OtpInput,
|
|
12965
|
+
Gd as Pagination,
|
|
12966
|
+
Kd as PhoneInput,
|
|
12930
12967
|
uo as Pointline,
|
|
12931
12968
|
Xe as Popover,
|
|
12932
12969
|
vn as PopoverAnchor,
|
|
12933
12970
|
Ke as PopoverContent,
|
|
12934
12971
|
Gt as PopoverTrigger,
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12972
|
+
Js as Progress,
|
|
12973
|
+
jd as QRCode,
|
|
12974
|
+
qs as Radio,
|
|
12975
|
+
Xs as RadioGroup,
|
|
12976
|
+
rl as Rate,
|
|
12977
|
+
Ba as SCROLL_WEEK_SIZE,
|
|
12978
|
+
Rd as ScheduleHeader,
|
|
12941
12979
|
mo as SegmentItem,
|
|
12942
|
-
|
|
12943
|
-
|
|
12980
|
+
ol as Segments,
|
|
12981
|
+
Ua as Select,
|
|
12944
12982
|
mr as SelectContent,
|
|
12945
|
-
|
|
12983
|
+
Td as SelectGroup,
|
|
12946
12984
|
ur as SelectItem,
|
|
12947
|
-
|
|
12985
|
+
Ka as SelectLabel,
|
|
12948
12986
|
Sn as SelectScrollDownButton,
|
|
12949
12987
|
In as SelectScrollUpButton,
|
|
12950
|
-
|
|
12988
|
+
ja as SelectSeparator,
|
|
12951
12989
|
fr as SelectTrigger,
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12990
|
+
Ga as SelectValue,
|
|
12991
|
+
Dd as SimpleCarousel,
|
|
12992
|
+
al as SingleSegment,
|
|
12955
12993
|
Ge as Spinner,
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12994
|
+
Ud as Stepper,
|
|
12995
|
+
ll as Switch,
|
|
12996
|
+
$d as Table,
|
|
12997
|
+
Yd as TableCards,
|
|
12998
|
+
Zd as TableSettings,
|
|
12999
|
+
Jd as Tabs,
|
|
13000
|
+
Al as TabsContent,
|
|
13001
|
+
Dl as TabsList,
|
|
13002
|
+
El as TabsTrigger,
|
|
13003
|
+
Ll as Tag,
|
|
13004
|
+
zl as Textarea,
|
|
13005
|
+
Qd as TimePicker,
|
|
13006
|
+
qd as TimeRangePicker,
|
|
13007
|
+
Xd as Timeline,
|
|
13008
|
+
tc as Toaster,
|
|
13009
|
+
nc as Tooltip,
|
|
13010
|
+
Kl as TooltipContent,
|
|
13011
|
+
rc as TooltipProvider,
|
|
13012
|
+
Gl as TooltipTrigger,
|
|
12975
13013
|
K as Typography,
|
|
12976
|
-
|
|
13014
|
+
Yl as Uploader,
|
|
12977
13015
|
fn as buttonVariants,
|
|
12978
|
-
|
|
12979
|
-
|
|
13016
|
+
Qa as checkboxVariants,
|
|
13017
|
+
za as formatMonthGenitive,
|
|
12980
13018
|
Xt as formatMonthLong,
|
|
12981
13019
|
wn as formatWeekdayShort,
|
|
12982
|
-
|
|
13020
|
+
Ed as getComboboxScrollState,
|
|
12983
13021
|
Mt as getThreeMonthsAround,
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
13022
|
+
qa as indicatorVariants,
|
|
13023
|
+
js as normalizePhoneInput,
|
|
13024
|
+
Sd as parseDateString,
|
|
13025
|
+
Qs as radioVariants,
|
|
13026
|
+
Jo as spinnerVariants,
|
|
12989
13027
|
Re as startOfDay,
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
13028
|
+
il as switchVariants,
|
|
13029
|
+
Fl as tagVariants,
|
|
13030
|
+
sl as thumbVariants,
|
|
13031
|
+
ec as toast,
|
|
12994
13032
|
Vr as typographyVariants,
|
|
12995
13033
|
Kn as useCarousel,
|
|
12996
13034
|
Ut as useCarouselContext,
|
|
12997
13035
|
yt as useComboboxPrimitiveContext,
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13036
|
+
Pd as useDialogBaseCtx,
|
|
13037
|
+
Ha as useScheduleCalendar,
|
|
13038
|
+
Md as useScheduleSync,
|
|
13001
13039
|
bo as useUploader
|
|
13002
13040
|
};
|