konsolpro-custom-ui 0.0.453 → 0.0.454
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 +231 -207
- package/dist/styles/konsolpro-custom-ui.css +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -917,8 +917,8 @@ const mr = ye(
|
|
|
917
917
|
]);
|
|
918
918
|
var H;
|
|
919
919
|
const A = o ? Et : "button", w = !!d, D = c && !w, T = c && w, k = c || w;
|
|
920
|
-
let
|
|
921
|
-
T ?
|
|
920
|
+
let M;
|
|
921
|
+
T ? M = "disabled-loading" : D ? M = "loading" : w && (M = "disabled");
|
|
922
922
|
const z = () => w ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", F = () => /* @__PURE__ */ n(
|
|
923
923
|
Ge,
|
|
924
924
|
{
|
|
@@ -955,14 +955,14 @@ const mr = ye(
|
|
|
955
955
|
"aria-disabled": k || void 0,
|
|
956
956
|
"aria-busy": c || void 0,
|
|
957
957
|
ref: b,
|
|
958
|
-
"data-state":
|
|
958
|
+
"data-state": M,
|
|
959
959
|
type: D && !o ? "button" : p,
|
|
960
|
-
onClick: (
|
|
960
|
+
onClick: (R) => {
|
|
961
961
|
if (k) {
|
|
962
|
-
|
|
962
|
+
R.preventDefault(), R.stopPropagation();
|
|
963
963
|
return;
|
|
964
964
|
}
|
|
965
|
-
v == null || v(
|
|
965
|
+
v == null || v(R);
|
|
966
966
|
},
|
|
967
967
|
"data-testid": g,
|
|
968
968
|
children: a ? V() : W
|
|
@@ -1585,7 +1585,7 @@ const Le = y.forwardRef(
|
|
|
1585
1585
|
onChange: D,
|
|
1586
1586
|
value: T,
|
|
1587
1587
|
"data-testid": k
|
|
1588
|
-
} = V,
|
|
1588
|
+
} = V, M = _(V, [
|
|
1589
1589
|
"className",
|
|
1590
1590
|
"type",
|
|
1591
1591
|
"size",
|
|
@@ -1612,8 +1612,8 @@ const Le = y.forwardRef(
|
|
|
1612
1612
|
"value",
|
|
1613
1613
|
"data-testid"
|
|
1614
1614
|
]);
|
|
1615
|
-
const W = y.useRef(null), H = T != null && T.toString().length > 0,
|
|
1616
|
-
Wr(
|
|
1615
|
+
const W = y.useRef(null), H = T != null && T.toString().length > 0, R = S && H && !d, B = H ? fa(String(T)) : null, G = Math.max(
|
|
1616
|
+
Wr(M.step),
|
|
1617
1617
|
Wr(T)
|
|
1618
1618
|
), P = y.useCallback(
|
|
1619
1619
|
(U) => {
|
|
@@ -1635,17 +1635,17 @@ const Le = y.forwardRef(
|
|
|
1635
1635
|
var be;
|
|
1636
1636
|
if (d)
|
|
1637
1637
|
return;
|
|
1638
|
-
const Q = Number((be =
|
|
1638
|
+
const Q = Number((be = M.step) != null ? be : 1);
|
|
1639
1639
|
if (!Number.isFinite(Q) || Q === 0)
|
|
1640
1640
|
return;
|
|
1641
1641
|
const j = B != null ? B : 0, J = pa(
|
|
1642
1642
|
j + U * Q,
|
|
1643
|
-
|
|
1644
|
-
|
|
1643
|
+
M.min,
|
|
1644
|
+
M.max
|
|
1645
1645
|
), ne = ma(J, G);
|
|
1646
1646
|
Y(ne);
|
|
1647
1647
|
},
|
|
1648
|
-
[G, d, B,
|
|
1648
|
+
[G, d, B, M.max, M.min, M.step, Y]
|
|
1649
1649
|
), $ = y.useCallback(() => {
|
|
1650
1650
|
if (A) {
|
|
1651
1651
|
A();
|
|
@@ -1735,9 +1735,9 @@ const Le = y.forwardRef(
|
|
|
1735
1735
|
disabled: d,
|
|
1736
1736
|
autoFocus: v,
|
|
1737
1737
|
"data-testid": k
|
|
1738
|
-
},
|
|
1738
|
+
}, M)
|
|
1739
1739
|
),
|
|
1740
|
-
(g || o || l || i || h ||
|
|
1740
|
+
(g || o || l || i || h || R || N) && /* @__PURE__ */ C(
|
|
1741
1741
|
"div",
|
|
1742
1742
|
{
|
|
1743
1743
|
className: m(
|
|
@@ -1776,7 +1776,7 @@ const Le = y.forwardRef(
|
|
|
1776
1776
|
)
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
|
-
|
|
1779
|
+
R && /* @__PURE__ */ n(
|
|
1780
1780
|
"div",
|
|
1781
1781
|
{
|
|
1782
1782
|
onClick: S,
|
|
@@ -2034,14 +2034,14 @@ function Dd({
|
|
|
2034
2034
|
), [e, v]);
|
|
2035
2035
|
y.useEffect(() => {
|
|
2036
2036
|
if (t) {
|
|
2037
|
-
const k = e.find((
|
|
2037
|
+
const k = e.find((M) => M.value === t);
|
|
2038
2038
|
h((k == null ? void 0 : k.label) || "");
|
|
2039
2039
|
}
|
|
2040
2040
|
}, [t]);
|
|
2041
2041
|
const N = y.useCallback(
|
|
2042
2042
|
(k) => {
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2043
|
+
const M = e.find((z) => z.value === k);
|
|
2044
|
+
M && (r(M.value, M), h(M.label)), p(!1);
|
|
2045
2045
|
},
|
|
2046
2046
|
[e, r]
|
|
2047
2047
|
), A = y.useCallback(
|
|
@@ -2056,8 +2056,8 @@ function Dd({
|
|
|
2056
2056
|
}, 0));
|
|
2057
2057
|
}, [g]), D = y.useCallback((k) => {
|
|
2058
2058
|
p(k), k && setTimeout(() => {
|
|
2059
|
-
var
|
|
2060
|
-
(
|
|
2059
|
+
var M;
|
|
2060
|
+
(M = b.current) == null || M.focus();
|
|
2061
2061
|
}, 0);
|
|
2062
2062
|
}, []);
|
|
2063
2063
|
return /* @__PURE__ */ n(Xe, { open: g, onOpenChange: D, children: /* @__PURE__ */ C("div", { className: "relative", children: [
|
|
@@ -2623,11 +2623,11 @@ const Fd = (f) => {
|
|
|
2623
2623
|
else if (D === -1) {
|
|
2624
2624
|
const T = A.getTime(), k = w.getTime();
|
|
2625
2625
|
if (k < T) {
|
|
2626
|
-
const
|
|
2627
|
-
p.current.scrollLeft +=
|
|
2626
|
+
const M = Math.round((T - k) / 864e5);
|
|
2627
|
+
p.current.scrollLeft += M * Pe;
|
|
2628
2628
|
} else {
|
|
2629
|
-
const
|
|
2630
|
-
p.current.scrollLeft = Math.max(0, p.current.scrollLeft -
|
|
2629
|
+
const M = Math.round((k - T) / 864e5);
|
|
2630
|
+
p.current.scrollLeft = Math.max(0, p.current.scrollLeft - M * Pe);
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
@@ -2781,7 +2781,7 @@ const hr = y.forwardRef(
|
|
|
2781
2781
|
"onClear",
|
|
2782
2782
|
"inlineSelect"
|
|
2783
2783
|
]);
|
|
2784
|
-
const D = f || c && c.length > 0, T = y.useRef(null), [k,
|
|
2784
|
+
const D = f || c && c.length > 0, T = y.useRef(null), [k, M] = y.useState(2);
|
|
2785
2785
|
return y.useLayoutEffect(() => {
|
|
2786
2786
|
if (!D || !(c != null && c.length) || !T.current)
|
|
2787
2787
|
return;
|
|
@@ -2789,7 +2789,7 @@ const hr = y.forwardRef(
|
|
|
2789
2789
|
const V = T.current;
|
|
2790
2790
|
if (!V)
|
|
2791
2791
|
return;
|
|
2792
|
-
const W = V.offsetWidth, H = u ? 60 : 0,
|
|
2792
|
+
const W = V.offsetWidth, H = u ? 60 : 0, R = 20, B = a ? 20 : 0, Y = W - H - R - B - 16 - 30;
|
|
2793
2793
|
let re = 0, $ = 0;
|
|
2794
2794
|
const ee = 12, U = 20, Q = 4, j = 7;
|
|
2795
2795
|
for (let J = 0; J < c.length; J++) {
|
|
@@ -2799,7 +2799,7 @@ const hr = y.forwardRef(
|
|
|
2799
2799
|
else
|
|
2800
2800
|
break;
|
|
2801
2801
|
}
|
|
2802
|
-
|
|
2802
|
+
M(Math.max(1, re));
|
|
2803
2803
|
};
|
|
2804
2804
|
z();
|
|
2805
2805
|
const F = new ResizeObserver(z);
|
|
@@ -4512,25 +4512,28 @@ function Si({
|
|
|
4512
4512
|
inputValueOnSelect: d,
|
|
4513
4513
|
inputValueOnClose: x
|
|
4514
4514
|
}) {
|
|
4515
|
-
const g = de(null), p = de(!1), v = de(f != null ? f : ""), h = X((
|
|
4515
|
+
const g = de(null), p = de(!1), v = de(f != null ? f : ""), h = X((M, z) => {
|
|
4516
4516
|
var W, H;
|
|
4517
4517
|
const { type: F, changes: V } = z;
|
|
4518
4518
|
switch (F) {
|
|
4519
4519
|
case ve.stateChangeTypes.ItemClick:
|
|
4520
4520
|
case ve.stateChangeTypes.InputKeyDownEnter:
|
|
4521
4521
|
case ve.stateChangeTypes.FunctionSelectItem: {
|
|
4522
|
-
const
|
|
4522
|
+
const R = ((W = M == null ? void 0 : M.inputValue) != null ? W : "").trim().length > 0;
|
|
4523
4523
|
return L(I({}, V), {
|
|
4524
4524
|
isOpen: c ? !0 : V.isOpen,
|
|
4525
|
-
inputValue: d === "clear" ? "" : d === "preserve" ? (
|
|
4526
|
-
highlightedIndex:
|
|
4525
|
+
inputValue: d === "clear" ? "" : d === "preserve" ? (M == null ? void 0 : M.inputValue) || "" : V.selectedItem ? s(V.selectedItem.value) : V.inputValue || "",
|
|
4526
|
+
highlightedIndex: R ? 0 : (H = M == null ? void 0 : M.highlightedIndex) != null ? H : V.highlightedIndex
|
|
4527
4527
|
});
|
|
4528
4528
|
}
|
|
4529
4529
|
case ve.stateChangeTypes.InputKeyDownEscape:
|
|
4530
|
-
case ve.stateChangeTypes.InputBlur:
|
|
4530
|
+
case ve.stateChangeTypes.InputBlur: {
|
|
4531
|
+
const R = F === ve.stateChangeTypes.InputBlur ? M : V;
|
|
4531
4532
|
return L(I({}, V), {
|
|
4532
|
-
|
|
4533
|
+
selectedItem: R.selectedItem,
|
|
4534
|
+
inputValue: x === "clear" ? "" : x === "preserve" ? (M == null ? void 0 : M.inputValue) || "" : R.selectedItem ? s(R.selectedItem.value) : R.inputValue || ""
|
|
4533
4535
|
});
|
|
4536
|
+
}
|
|
4534
4537
|
default:
|
|
4535
4538
|
return V;
|
|
4536
4539
|
}
|
|
@@ -4539,25 +4542,25 @@ function Si({
|
|
|
4539
4542
|
stateReducer: h,
|
|
4540
4543
|
defaultHighlightedIndex: 0,
|
|
4541
4544
|
isOpen: l,
|
|
4542
|
-
onIsOpenChange: (
|
|
4545
|
+
onIsOpenChange: (M) => {
|
|
4543
4546
|
var z;
|
|
4544
|
-
if (u == null || u(
|
|
4547
|
+
if (u == null || u(M.isOpen), !M.isOpen) {
|
|
4545
4548
|
if (x === "preserve")
|
|
4546
4549
|
return;
|
|
4547
4550
|
(z = g.current) == null || z.call(
|
|
4548
4551
|
g,
|
|
4549
|
-
x === "clear" ? "" :
|
|
4552
|
+
x === "clear" ? "" : M.selectedItem ? s(M.selectedItem.value) : ""
|
|
4550
4553
|
);
|
|
4551
4554
|
}
|
|
4552
4555
|
},
|
|
4553
|
-
itemToString: (
|
|
4554
|
-
onInputValueChange: ({ inputValue:
|
|
4555
|
-
i || z === ve.stateChangeTypes.InputChange && (o == null || o(
|
|
4556
|
+
itemToString: (M) => M ? s(M == null ? void 0 : M.value) : "",
|
|
4557
|
+
onInputValueChange: ({ inputValue: M, type: z }) => {
|
|
4558
|
+
i || z === ve.stateChangeTypes.InputChange && (o == null || o(M != null ? M : ""));
|
|
4556
4559
|
},
|
|
4557
|
-
onSelectedItemChange: ({ selectedItem:
|
|
4560
|
+
onSelectedItemChange: ({ selectedItem: M }) => {
|
|
4558
4561
|
if (i)
|
|
4559
4562
|
return;
|
|
4560
|
-
const z = (
|
|
4563
|
+
const z = (M == null ? void 0 : M.value) !== void 0 && (M == null ? void 0 : M.value) !== null ? M.value : null;
|
|
4561
4564
|
r == null || r(z);
|
|
4562
4565
|
}
|
|
4563
4566
|
};
|
|
@@ -4574,11 +4577,11 @@ function Si({
|
|
|
4574
4577
|
"getInputProps"
|
|
4575
4578
|
]);
|
|
4576
4579
|
g.current = N, ge(() => {
|
|
4577
|
-
const
|
|
4578
|
-
(F || V) && A(0), p.current =
|
|
4580
|
+
const M = !!D.isOpen, z = f != null ? f : "", F = M && !p.current, V = M && v.current.trim().length > 0 && z.trim().length === 0;
|
|
4581
|
+
(F || V) && A(0), p.current = M, v.current = z;
|
|
4579
4582
|
}, [D.isOpen, f, A]);
|
|
4580
|
-
const T = X((
|
|
4581
|
-
const z = w(
|
|
4583
|
+
const T = X((M) => {
|
|
4584
|
+
const z = w(M);
|
|
4582
4585
|
return L(I({}, z), {
|
|
4583
4586
|
onBlur: (F) => {
|
|
4584
4587
|
var V;
|
|
@@ -4648,20 +4651,20 @@ function ki({
|
|
|
4648
4651
|
onClear: T,
|
|
4649
4652
|
clearable: k
|
|
4650
4653
|
}) {
|
|
4651
|
-
const
|
|
4654
|
+
const M = X(S, [S]), z = se(() => {
|
|
4652
4655
|
if (r !== void 0)
|
|
4653
4656
|
return r === null ? null : {
|
|
4654
4657
|
value: r,
|
|
4655
|
-
label:
|
|
4658
|
+
label: M(r)
|
|
4656
4659
|
};
|
|
4657
|
-
}, [r,
|
|
4660
|
+
}, [r, M]), F = Si({
|
|
4658
4661
|
items: t,
|
|
4659
4662
|
value: z,
|
|
4660
4663
|
onChange: o,
|
|
4661
4664
|
onSearch: a,
|
|
4662
4665
|
onBlur: i,
|
|
4663
4666
|
disabled: v,
|
|
4664
|
-
getLabel:
|
|
4667
|
+
getLabel: M,
|
|
4665
4668
|
isOpen: w,
|
|
4666
4669
|
onOpenChange: D,
|
|
4667
4670
|
inputValue: s,
|
|
@@ -4695,7 +4698,7 @@ function ki({
|
|
|
4695
4698
|
onBlur: i,
|
|
4696
4699
|
loading: A,
|
|
4697
4700
|
items: t,
|
|
4698
|
-
getLabel:
|
|
4701
|
+
getLabel: M,
|
|
4699
4702
|
getKey: N,
|
|
4700
4703
|
onClear: T,
|
|
4701
4704
|
clearable: k,
|
|
@@ -4712,7 +4715,7 @@ function ki({
|
|
|
4712
4715
|
b,
|
|
4713
4716
|
i,
|
|
4714
4717
|
t,
|
|
4715
|
-
|
|
4718
|
+
M,
|
|
4716
4719
|
N,
|
|
4717
4720
|
D,
|
|
4718
4721
|
T,
|
|
@@ -4730,7 +4733,10 @@ const Hn = () => {
|
|
|
4730
4733
|
error: o,
|
|
4731
4734
|
getToggleButtonProps: a,
|
|
4732
4735
|
loading: i,
|
|
4733
|
-
disabled: s
|
|
4736
|
+
disabled: s,
|
|
4737
|
+
clearable: l,
|
|
4738
|
+
hasSelection: u,
|
|
4739
|
+
onClear: f
|
|
4734
4740
|
} = wt();
|
|
4735
4741
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(Ge, { size: 12 }) : /* @__PURE__ */ C(we, { children: [
|
|
4736
4742
|
o && /* @__PURE__ */ n(
|
|
@@ -4741,6 +4747,24 @@ const Hn = () => {
|
|
|
4741
4747
|
size: 16
|
|
4742
4748
|
}
|
|
4743
4749
|
),
|
|
4750
|
+
l && u && /* @__PURE__ */ n(
|
|
4751
|
+
oe,
|
|
4752
|
+
{
|
|
4753
|
+
type: "button",
|
|
4754
|
+
"aria-label": "Очистить значение",
|
|
4755
|
+
variant: "text",
|
|
4756
|
+
icon: "CloseIcon",
|
|
4757
|
+
size: "custom",
|
|
4758
|
+
className: "rounded-full p-0.5 text-secondary",
|
|
4759
|
+
iconOnly: !0,
|
|
4760
|
+
iconProps: { size: 14 },
|
|
4761
|
+
disabled: s,
|
|
4762
|
+
onPointerDown: (c) => c.preventDefault(),
|
|
4763
|
+
onClick: (c) => {
|
|
4764
|
+
c.stopPropagation(), f == null || f();
|
|
4765
|
+
}
|
|
4766
|
+
}
|
|
4767
|
+
),
|
|
4744
4768
|
/* @__PURE__ */ n("button", L(I({ type: "button", className: "cursor-pointer inline-flex items-center justify-center bg-transparent border-none focus:outline-none p-0" }, a({ disabled: s })), { children: /* @__PURE__ */ n(
|
|
4745
4769
|
Z,
|
|
4746
4770
|
{
|
|
@@ -4815,16 +4839,16 @@ function Ti({
|
|
|
4815
4839
|
try {
|
|
4816
4840
|
const N = S.props, A = s(N.option), w = f.get(A);
|
|
4817
4841
|
if (w) {
|
|
4818
|
-
const { item: D, index: T } = w, k = i ? i(D.value) : c === A,
|
|
4842
|
+
const { item: D, index: T } = w, k = i ? i(D.value) : c === A, M = a({ item: D, index: T }), z = typeof N.children == "function" ? N.children(I({
|
|
4819
4843
|
isSelected: k,
|
|
4820
4844
|
className: N.className
|
|
4821
|
-
},
|
|
4845
|
+
}, M)) : N.children;
|
|
4822
4846
|
return /* @__PURE__ */ n(
|
|
4823
4847
|
xr,
|
|
4824
4848
|
L(I({
|
|
4825
4849
|
isSelected: k,
|
|
4826
4850
|
className: m(N.className, l, u)
|
|
4827
|
-
},
|
|
4851
|
+
}, M), {
|
|
4828
4852
|
children: /* @__PURE__ */ C("div", { className: "flex w-full items-center gap-2", children: [
|
|
4829
4853
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: z }),
|
|
4830
4854
|
k && /* @__PURE__ */ n(Z, { icon: "DoneIcon", size: 16, className: "shrink-0 text-primary" })
|
|
@@ -4940,9 +4964,9 @@ function Mi({
|
|
|
4940
4964
|
return;
|
|
4941
4965
|
const V = T.offsetWidth - 56 - 30 - 8;
|
|
4942
4966
|
let W = 0, H = 0;
|
|
4943
|
-
const
|
|
4967
|
+
const R = 12, B = 20, G = 4, P = 7;
|
|
4944
4968
|
for (let re = 0; re < e.length; re++) {
|
|
4945
|
-
const ee = r(e[re]).length * P, U =
|
|
4969
|
+
const ee = r(e[re]).length * P, U = R + ee + B + G;
|
|
4946
4970
|
if (H + U <= V)
|
|
4947
4971
|
H += U, W = re + 1;
|
|
4948
4972
|
else
|
|
@@ -5028,14 +5052,14 @@ function Mi({
|
|
|
5028
5052
|
]
|
|
5029
5053
|
}
|
|
5030
5054
|
);
|
|
5031
|
-
},
|
|
5055
|
+
}, M = (z = s == null ? void 0 : s({
|
|
5032
5056
|
option: w,
|
|
5033
5057
|
label: D,
|
|
5034
5058
|
disabled: c,
|
|
5035
5059
|
remove: T,
|
|
5036
5060
|
renderDefaultTag: k
|
|
5037
5061
|
})) != null ? z : k();
|
|
5038
|
-
return /* @__PURE__ */ n(y.Fragment, { children:
|
|
5062
|
+
return /* @__PURE__ */ n(y.Fragment, { children: M }, o(w));
|
|
5039
5063
|
}),
|
|
5040
5064
|
N > 0 && /* @__PURE__ */ n(
|
|
5041
5065
|
"div",
|
|
@@ -5108,19 +5132,19 @@ function Di({
|
|
|
5108
5132
|
clearable: D = !0,
|
|
5109
5133
|
onClear: T,
|
|
5110
5134
|
maxTags: k = 4,
|
|
5111
|
-
renderSelectedTag:
|
|
5135
|
+
renderSelectedTag: M
|
|
5112
5136
|
}) {
|
|
5113
|
-
const { items: z } = On(e, v), F = se(() => t || [], [t]), V = se(() => new Set(F.map(h)), [F, h]), [W, H] = ce(""),
|
|
5137
|
+
const { items: z } = On(e, v), F = se(() => t || [], [t]), V = se(() => new Set(F.map(h)), [F, h]), [W, H] = ce(""), R = X(() => {
|
|
5114
5138
|
H(""), o == null || o("");
|
|
5115
5139
|
}, [o]), B = X(($) => {
|
|
5116
5140
|
const ee = h($), Q = V.has(ee) ? F.filter((j) => h(j) !== ee) : [...F, $];
|
|
5117
|
-
r == null || r(Q),
|
|
5118
|
-
}, [
|
|
5141
|
+
r == null || r(Q), R();
|
|
5142
|
+
}, [R, h, r, F, V]), G = X(($) => {
|
|
5119
5143
|
const ee = h($);
|
|
5120
5144
|
r == null || r(F.filter((U) => h(U) !== ee));
|
|
5121
5145
|
}, [h, r, F]), P = X(() => {
|
|
5122
|
-
r == null || r([]), T == null || T();
|
|
5123
|
-
}, [r, T]), Y = X(($) => {
|
|
5146
|
+
R(), r == null || r([]), T == null || T();
|
|
5147
|
+
}, [R, r, T]), Y = X(($) => {
|
|
5124
5148
|
A == null || A($), $ || (H(""), o == null || o(""));
|
|
5125
5149
|
}, [A, o]), re = X(($) => {
|
|
5126
5150
|
H($), o == null || o($);
|
|
@@ -5173,7 +5197,7 @@ function Di({
|
|
|
5173
5197
|
getKey: h,
|
|
5174
5198
|
maxTags: k,
|
|
5175
5199
|
onInputKeyDown: S,
|
|
5176
|
-
renderSelectedTag:
|
|
5200
|
+
renderSelectedTag: M,
|
|
5177
5201
|
"data-testid": p
|
|
5178
5202
|
}
|
|
5179
5203
|
),
|
|
@@ -6001,8 +6025,8 @@ function rs(e) {
|
|
|
6001
6025
|
};
|
|
6002
6026
|
t.addEventListener("scroll", T);
|
|
6003
6027
|
const k = new ResizeObserver(() => {
|
|
6004
|
-
const
|
|
6005
|
-
s(
|
|
6028
|
+
const M = t.scrollHeight > t.clientHeight;
|
|
6029
|
+
s(M);
|
|
6006
6030
|
});
|
|
6007
6031
|
return k.observe(t), () => {
|
|
6008
6032
|
t.removeEventListener("scroll", T), k.disconnect();
|
|
@@ -6183,7 +6207,7 @@ function ue(p) {
|
|
|
6183
6207
|
TopHeaderTeleporter: kt()
|
|
6184
6208
|
}),
|
|
6185
6209
|
[]
|
|
6186
|
-
), S = b.TitleTeleporter.useTargetRef(), N = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, T] = y.useState(!1), k = !d && !(e != null && e.content),
|
|
6210
|
+
), S = b.TitleTeleporter.useTargetRef(), N = b.FooterTeleporter.useTargetRef(), A = b.ContentTeleporter.useTargetRef(), w = b.TopHeaderTeleporter.useTargetRef(), [D, T] = y.useState(!1), k = !d && !(e != null && e.content), M = D ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
|
|
6187
6211
|
Qe,
|
|
6188
6212
|
{
|
|
6189
6213
|
ref: (z) => {
|
|
@@ -6254,7 +6278,7 @@ function ue(p) {
|
|
|
6254
6278
|
]
|
|
6255
6279
|
}
|
|
6256
6280
|
),
|
|
6257
|
-
|
|
6281
|
+
M,
|
|
6258
6282
|
!h.isHideFooter && /* @__PURE__ */ n(
|
|
6259
6283
|
wr,
|
|
6260
6284
|
{
|
|
@@ -6377,8 +6401,8 @@ function ds({
|
|
|
6377
6401
|
classNames: g
|
|
6378
6402
|
}) {
|
|
6379
6403
|
var ne, be, he, Ie, q, ae;
|
|
6380
|
-
const [p, v] = y.useState(o), h = r !== void 0, b = h ? r : p, S = e.length, N = e[b], A = b === 0, w = b === S - 1, D = y.useContext(ot), T = (ne = D == null ? void 0 : D.nextBaseZIndex) != null ? ne : u, k = !!(N != null && N.content), [
|
|
6381
|
-
scene:
|
|
6404
|
+
const [p, v] = y.useState(o), h = r !== void 0, b = h ? r : p, S = e.length, N = e[b], A = b === 0, w = b === S - 1, D = y.useContext(ot), T = (ne = D == null ? void 0 : D.nextBaseZIndex) != null ? ne : u, k = !!(N != null && N.content), [M, z] = y.useState(null), [F, V] = y.useState(null), [W, H] = y.useState(null), R = ls({
|
|
6405
|
+
scene: M,
|
|
6382
6406
|
canvas: F,
|
|
6383
6407
|
highlight: N == null ? void 0 : N.highlight,
|
|
6384
6408
|
step: b,
|
|
@@ -6566,13 +6590,13 @@ function ds({
|
|
|
6566
6590
|
),
|
|
6567
6591
|
children: /* @__PURE__ */ C("div", { ref: V, className: "relative min-h-full", children: [
|
|
6568
6592
|
N.content,
|
|
6569
|
-
|
|
6593
|
+
R && /* @__PURE__ */ n(
|
|
6570
6594
|
"div",
|
|
6571
6595
|
{
|
|
6572
6596
|
"data-testid": `${c}-highlight`,
|
|
6573
6597
|
"data-halo": Q.halo === !1 ? "off" : void 0,
|
|
6574
6598
|
className: m("tour-highlight rounded-xl", Q.className),
|
|
6575
|
-
style: I(I({}, j),
|
|
6599
|
+
style: I(I({}, j), R)
|
|
6576
6600
|
},
|
|
6577
6601
|
(ae = N.sceneKey) != null ? ae : b
|
|
6578
6602
|
)
|
|
@@ -6667,7 +6691,7 @@ function Kd({
|
|
|
6667
6691
|
[t]
|
|
6668
6692
|
), k = (B) => {
|
|
6669
6693
|
B && (T(B), b === "mobile" && N(!1));
|
|
6670
|
-
},
|
|
6694
|
+
}, M = () => {
|
|
6671
6695
|
T(void 0), c == null || c();
|
|
6672
6696
|
}, z = (B) => {
|
|
6673
6697
|
const G = B.target.value;
|
|
@@ -6731,7 +6755,7 @@ function Kd({
|
|
|
6731
6755
|
}
|
|
6732
6756
|
)
|
|
6733
6757
|
}
|
|
6734
|
-
),
|
|
6758
|
+
), R = /* @__PURE__ */ n(
|
|
6735
6759
|
Jn,
|
|
6736
6760
|
{
|
|
6737
6761
|
mode: "single",
|
|
@@ -6823,14 +6847,14 @@ function Kd({
|
|
|
6823
6847
|
},
|
|
6824
6848
|
children: [
|
|
6825
6849
|
/* @__PURE__ */ n(ue.Title, { children: "Выберите дату" }),
|
|
6826
|
-
/* @__PURE__ */ n(ue.Content, { children: y.cloneElement(
|
|
6850
|
+
/* @__PURE__ */ n(ue.Content, { children: y.cloneElement(R, {
|
|
6827
6851
|
className: "font-graphik mt-3",
|
|
6828
6852
|
initialFocus: !0
|
|
6829
6853
|
}) }),
|
|
6830
6854
|
f && /* @__PURE__ */ n(ue.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
|
|
6831
6855
|
oe,
|
|
6832
6856
|
{
|
|
6833
|
-
onClick:
|
|
6857
|
+
onClick: M,
|
|
6834
6858
|
variant: "text",
|
|
6835
6859
|
disabled: !g,
|
|
6836
6860
|
className: "w-full",
|
|
@@ -6855,11 +6879,11 @@ function Kd({
|
|
|
6855
6879
|
onOpenAutoFocus: (B) => B.preventDefault(),
|
|
6856
6880
|
onInteractOutside: W,
|
|
6857
6881
|
children: [
|
|
6858
|
-
|
|
6882
|
+
R,
|
|
6859
6883
|
f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
|
|
6860
6884
|
oe,
|
|
6861
6885
|
{
|
|
6862
|
-
onClick:
|
|
6886
|
+
onClick: M,
|
|
6863
6887
|
variant: "text",
|
|
6864
6888
|
size: "sm",
|
|
6865
6889
|
className: "w-full",
|
|
@@ -7056,10 +7080,10 @@ function jd(v) {
|
|
|
7056
7080
|
Ne(Pt(t == null ? void 0 : t.from))
|
|
7057
7081
|
), [w, D] = y.useState(
|
|
7058
7082
|
Ne(Pt(t == null ? void 0 : t.to))
|
|
7059
|
-
), [T, k] = y.useState(!1),
|
|
7083
|
+
), [T, k] = y.useState(!1), M = y.useRef(null), z = Jt(), F = us[r], V = Ns(r), W = u === "custom" ? "md" : u, H = {
|
|
7060
7084
|
from: (a == null ? void 0 : a.from) || F.placeholder,
|
|
7061
7085
|
to: (a == null ? void 0 : a.to) || F.placeholder
|
|
7062
|
-
},
|
|
7086
|
+
}, R = y.useMemo(() => {
|
|
7063
7087
|
const q = (at) => typeof at == "string", ae = (at) => typeof at == "object" && at !== null;
|
|
7064
7088
|
return {
|
|
7065
7089
|
hasAnyError: () => i ? q(i) ? !0 : !!(i.from || i.to) : !1,
|
|
@@ -7067,7 +7091,7 @@ function jd(v) {
|
|
|
7067
7091
|
hasToError: () => q(i) ? !0 : ae(i) && !!i.to,
|
|
7068
7092
|
getErrorText: () => q(i) ? i : ae(i) ? i.from && i.to ? `${i.from}, ${i.to}` : i.from || i.to || "" : ""
|
|
7069
7093
|
};
|
|
7070
|
-
}, [i]), { hasAnyError: B, hasFromError: G, hasToError: P, getErrorText: Y } =
|
|
7094
|
+
}, [i]), { hasAnyError: B, hasFromError: G, hasToError: P, getErrorText: Y } = R;
|
|
7071
7095
|
y.useEffect(() => {
|
|
7072
7096
|
const q = or(t);
|
|
7073
7097
|
S(q), A(Ne(q == null ? void 0 : q.from)), D(Ne(q == null ? void 0 : q.to));
|
|
@@ -7104,7 +7128,7 @@ function jd(v) {
|
|
|
7104
7128
|
}, J = (q) => {
|
|
7105
7129
|
var xe;
|
|
7106
7130
|
const ae = q.target;
|
|
7107
|
-
ae instanceof Node && ((xe =
|
|
7131
|
+
ae instanceof Node && ((xe = M.current) != null && xe.contains(ae)) && q.preventDefault();
|
|
7108
7132
|
}, ne = (q) => g ? `${g}-${q}` : void 0, be = (q) => /* @__PURE__ */ C(
|
|
7109
7133
|
"div",
|
|
7110
7134
|
{
|
|
@@ -7343,7 +7367,7 @@ function jd(v) {
|
|
|
7343
7367
|
]
|
|
7344
7368
|
}
|
|
7345
7369
|
) : /* @__PURE__ */ C(Xe, { open: T, onOpenChange: k, children: [
|
|
7346
|
-
/* @__PURE__ */ n("div", { ref:
|
|
7370
|
+
/* @__PURE__ */ n("div", { ref: M, children: /* @__PURE__ */ n(Nn, { className: "block", children: be() }) }),
|
|
7347
7371
|
/* @__PURE__ */ C(
|
|
7348
7372
|
Ke,
|
|
7349
7373
|
{
|
|
@@ -7739,19 +7763,19 @@ const co = y.forwardRef(
|
|
|
7739
7763
|
(k) => {
|
|
7740
7764
|
if (k === "" && u)
|
|
7741
7765
|
return "";
|
|
7742
|
-
let
|
|
7743
|
-
if (l ? (
|
|
7744
|
-
const F =
|
|
7745
|
-
|
|
7766
|
+
let M = k.replace(/[^\d.,\-]/g, "");
|
|
7767
|
+
if (l ? (M.match(/-/g) || []).length > 1 && (M = M.replace(/-/g, ""), k.startsWith("-") && (M = `-${M}`)) : M = M.replace(/-/g, ""), M = S(M), (M.match(/[.,]/g) || []).length > 1) {
|
|
7768
|
+
const F = M.search(/[.,]/);
|
|
7769
|
+
M = M.substring(0, F + 1) + M.substring(F + 1).replace(/[.,]/g, "");
|
|
7746
7770
|
}
|
|
7747
7771
|
if (r !== void 0 && r >= 0) {
|
|
7748
|
-
const F =
|
|
7772
|
+
const F = M.search(/[.,]/);
|
|
7749
7773
|
if (F !== -1) {
|
|
7750
|
-
const V =
|
|
7751
|
-
|
|
7774
|
+
const V = M.substring(0, F), H = M.substring(F + 1).substring(0, r);
|
|
7775
|
+
M = V + M[F] + H;
|
|
7752
7776
|
}
|
|
7753
7777
|
}
|
|
7754
|
-
return a && (
|
|
7778
|
+
return a && (M = a(M)), M;
|
|
7755
7779
|
},
|
|
7756
7780
|
[r, o, l, u, S, a]
|
|
7757
7781
|
), A = X(
|
|
@@ -7759,7 +7783,7 @@ const co = y.forwardRef(
|
|
|
7759
7783
|
[i, s]
|
|
7760
7784
|
), w = X(
|
|
7761
7785
|
(k) => {
|
|
7762
|
-
const
|
|
7786
|
+
const M = k.target.value, z = N(M);
|
|
7763
7787
|
if (b(z), z === "") {
|
|
7764
7788
|
t == null || t(u ? "" : 0);
|
|
7765
7789
|
return;
|
|
@@ -7770,7 +7794,7 @@ const co = y.forwardRef(
|
|
|
7770
7794
|
[N, A, t, o, u]
|
|
7771
7795
|
), D = X(
|
|
7772
7796
|
(k) => {
|
|
7773
|
-
const { key:
|
|
7797
|
+
const { key: M, ctrlKey: z, metaKey: F } = k;
|
|
7774
7798
|
if (z || F || [
|
|
7775
7799
|
"Backspace",
|
|
7776
7800
|
"Delete",
|
|
@@ -7783,25 +7807,25 @@ const co = y.forwardRef(
|
|
|
7783
7807
|
"ArrowDown",
|
|
7784
7808
|
"Home",
|
|
7785
7809
|
"End"
|
|
7786
|
-
].includes(
|
|
7810
|
+
].includes(M)) {
|
|
7787
7811
|
f == null || f(k);
|
|
7788
7812
|
return;
|
|
7789
7813
|
}
|
|
7790
|
-
if (/^\d$/.test(
|
|
7814
|
+
if (/^\d$/.test(M)) {
|
|
7791
7815
|
f == null || f(k);
|
|
7792
7816
|
return;
|
|
7793
7817
|
}
|
|
7794
|
-
if (
|
|
7795
|
-
if (o === "dot" &&
|
|
7818
|
+
if (M === "." || M === ",") {
|
|
7819
|
+
if (o === "dot" && M === "." || o === "comma" && M === ",") {
|
|
7796
7820
|
f == null || f(k);
|
|
7797
7821
|
return;
|
|
7798
7822
|
}
|
|
7799
7823
|
k.preventDefault();
|
|
7800
|
-
const V = k.currentTarget, W = V.selectionStart || 0, H = V.value.substring(0, W) + (o === "dot" ? "." : ",") + V.value.substring(W),
|
|
7801
|
-
b(
|
|
7824
|
+
const V = k.currentTarget, W = V.selectionStart || 0, H = V.value.substring(0, W) + (o === "dot" ? "." : ",") + V.value.substring(W), R = N(H);
|
|
7825
|
+
b(R), t == null || t(R);
|
|
7802
7826
|
return;
|
|
7803
7827
|
}
|
|
7804
|
-
if (
|
|
7828
|
+
if (M === "-" && l) {
|
|
7805
7829
|
const V = k.currentTarget;
|
|
7806
7830
|
if ((V.selectionStart || 0) === 0 && !V.value.includes("-")) {
|
|
7807
7831
|
f == null || f(k);
|
|
@@ -7813,11 +7837,11 @@ const co = y.forwardRef(
|
|
|
7813
7837
|
[l, f, o, N, b, t]
|
|
7814
7838
|
), T = X(
|
|
7815
7839
|
(k) => {
|
|
7816
|
-
const
|
|
7817
|
-
if (z !==
|
|
7840
|
+
const M = k.clipboardData.getData("text"), z = N(M);
|
|
7841
|
+
if (z !== M) {
|
|
7818
7842
|
k.preventDefault();
|
|
7819
|
-
const F = k.currentTarget, V = F.selectionStart || 0, W = F.selectionEnd || 0, H = F.value.substring(0, V) + z + F.value.substring(W),
|
|
7820
|
-
b(
|
|
7843
|
+
const F = k.currentTarget, V = F.selectionStart || 0, W = F.selectionEnd || 0, H = F.value.substring(0, V) + z + F.value.substring(W), R = N(H);
|
|
7844
|
+
b(R), t == null || t(R);
|
|
7821
7845
|
}
|
|
7822
7846
|
c == null || c(k);
|
|
7823
7847
|
},
|
|
@@ -8264,7 +8288,7 @@ const Jd = Do((e, t) => {
|
|
|
8264
8288
|
}
|
|
8265
8289
|
} = e, p = e["data-cy"], v = e["data-testid"], [h, b] = ce(0), [S, N] = ce(
|
|
8266
8290
|
Array.from({ length: r }, () => "")
|
|
8267
|
-
), [A, w] = ce(d ? x : 0), [D, T] = ce(!!d), [k,
|
|
8291
|
+
), [A, w] = ce(d ? x : 0), [D, T] = ce(!!d), [k, M] = ce(u), [z, F] = ce(f), V = (j) => {
|
|
8268
8292
|
const J = Math.max(Math.min(r - 1, j), 0);
|
|
8269
8293
|
b(J);
|
|
8270
8294
|
};
|
|
@@ -8278,16 +8302,16 @@ const Jd = Do((e, t) => {
|
|
|
8278
8302
|
j && clearInterval(j);
|
|
8279
8303
|
};
|
|
8280
8304
|
}, [A, D]), ge(() => {
|
|
8281
|
-
|
|
8305
|
+
M(u), F(f);
|
|
8282
8306
|
}, [u, f]);
|
|
8283
8307
|
const W = () => {
|
|
8284
8308
|
d && !D && (d(), w(x), T(!0));
|
|
8285
8309
|
}, H = (j) => {
|
|
8286
8310
|
var ne;
|
|
8287
|
-
k && (
|
|
8311
|
+
k && (M(!1), F("")), N(j);
|
|
8288
8312
|
const J = j.join("");
|
|
8289
8313
|
o(J), J.length === r && ((ne = e.onComplete) == null || ne.call(e, J), l && (N(Array.from({ length: r }, () => "")), b(0)));
|
|
8290
|
-
},
|
|
8314
|
+
}, R = (j) => !Number.isNaN(Number.parseInt(j, 10)) && j.trim().length === 1, B = () => {
|
|
8291
8315
|
V(h + 1);
|
|
8292
8316
|
}, G = () => {
|
|
8293
8317
|
V(h - 1);
|
|
@@ -8310,12 +8334,12 @@ const Jd = Do((e, t) => {
|
|
|
8310
8334
|
H(ne.split(""));
|
|
8311
8335
|
return;
|
|
8312
8336
|
}
|
|
8313
|
-
|
|
8337
|
+
R(ne) && P(ne);
|
|
8314
8338
|
}, $ = (j) => {
|
|
8315
8339
|
s || (j.keyCode === Bs || j.key === "Backspace" ? (j.preventDefault(), P(""), G()) : j.keyCode === _s || j.key === "Delete" ? (j.preventDefault(), P("")) : j.keyCode === Os || j.key === "ArrowLeft" ? (j.preventDefault(), G()) : j.keyCode === Vs || j.key === "ArrowRight" ? (j.preventDefault(), B()) : (j.keyCode === Hs || j.key === " " || j.key === "Spacebar" || j.key === "Space") && j.preventDefault());
|
|
8316
8340
|
}, ee = (j) => {
|
|
8317
8341
|
if (!s) {
|
|
8318
|
-
if (
|
|
8342
|
+
if (R(j.currentTarget.value)) {
|
|
8319
8343
|
B();
|
|
8320
8344
|
return;
|
|
8321
8345
|
}
|
|
@@ -8443,7 +8467,7 @@ const Qd = ({
|
|
|
8443
8467
|
}, b = (N = u == null ? void 0 : u.jump_to) != null ? N : "Перейти на", S = (A = u == null ? void 0 : u.page) != null ? A : "страницу";
|
|
8444
8468
|
return /* @__PURE__ */ C("div", { className: m("flex items-center justify-between gap-3 flex-wrap", a), "data-testid": "paginator", children: [
|
|
8445
8469
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((w, D) => {
|
|
8446
|
-
const T = Gs(w, f), k = w.type === "page" && w.page === c,
|
|
8470
|
+
const T = Gs(w, f), k = w.type === "page" && w.page === c, M = `${w.type}-${w.type === "page" ? w.page : D}`, z = w.type === "prev" || w.type === "next" ? /* @__PURE__ */ n(
|
|
8447
8471
|
oe,
|
|
8448
8472
|
{
|
|
8449
8473
|
variant: "text",
|
|
@@ -8486,7 +8510,7 @@ const Qd = ({
|
|
|
8486
8510
|
children: String(w.page)
|
|
8487
8511
|
}
|
|
8488
8512
|
);
|
|
8489
|
-
return /* @__PURE__ */ n("span", { "data-testid": T, children: z },
|
|
8513
|
+
return /* @__PURE__ */ n("span", { "data-testid": T, children: z }, M);
|
|
8490
8514
|
}) }),
|
|
8491
8515
|
l && /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
8492
8516
|
/* @__PURE__ */ n(K, { variant: "p2", textColor: "secondary", children: b }),
|
|
@@ -9699,27 +9723,27 @@ const Qr = _t(
|
|
|
9699
9723
|
return;
|
|
9700
9724
|
}
|
|
9701
9725
|
}
|
|
9702
|
-
const H = Jr(s, u),
|
|
9703
|
-
D(H), S(
|
|
9726
|
+
const H = Jr(s, u), R = ar(H);
|
|
9727
|
+
D(H), S(R[0]), A(R);
|
|
9704
9728
|
}, [u, t, s]);
|
|
9705
|
-
const
|
|
9706
|
-
const
|
|
9707
|
-
|
|
9729
|
+
const M = (H) => {
|
|
9730
|
+
const R = Qs(H), B = Jr(
|
|
9731
|
+
R,
|
|
9708
9732
|
w != null ? w : u
|
|
9709
9733
|
);
|
|
9710
9734
|
if (B !== w) {
|
|
9711
9735
|
const P = ar(B);
|
|
9712
9736
|
D(B), S(P[0]), A(P);
|
|
9713
9737
|
}
|
|
9714
|
-
t == null || t(
|
|
9715
|
-
const G = Be.isPossiblePhoneNumber(
|
|
9738
|
+
t == null || t(R);
|
|
9739
|
+
const G = Be.isPossiblePhoneNumber(R);
|
|
9716
9740
|
f == null || f(G);
|
|
9717
9741
|
}, z = (H) => {
|
|
9718
9742
|
if (!H)
|
|
9719
9743
|
return;
|
|
9720
9744
|
r == null || r(H), D(H);
|
|
9721
|
-
const
|
|
9722
|
-
S(
|
|
9745
|
+
const R = ar(H);
|
|
9746
|
+
S(R[0]), A(R);
|
|
9723
9747
|
const B = `+${Be.getCountryCallingCode(H)}`;
|
|
9724
9748
|
t == null || t(B);
|
|
9725
9749
|
}, F = (H) => {
|
|
@@ -9756,7 +9780,7 @@ const Qr = _t(
|
|
|
9756
9780
|
inputComponent: mo,
|
|
9757
9781
|
labels: T,
|
|
9758
9782
|
smartCaret: !1,
|
|
9759
|
-
onChange:
|
|
9783
|
+
onChange: M,
|
|
9760
9784
|
mask: b,
|
|
9761
9785
|
masks: N,
|
|
9762
9786
|
inputSize: d,
|
|
@@ -10079,12 +10103,12 @@ const ll = y.forwardRef(
|
|
|
10079
10103
|
]);
|
|
10080
10104
|
const w = Math.max(Math.round(r), 1), D = e !== void 0, [T, k] = y.useState(
|
|
10081
10105
|
() => lt(t, w)
|
|
10082
|
-
), [
|
|
10106
|
+
), [M, z] = y.useState(null), [F, V] = y.useState(
|
|
10083
10107
|
lt(e != null ? e : t, w) || 1
|
|
10084
10108
|
), W = y.useRef([]), H = lt(
|
|
10085
10109
|
D ? e : T,
|
|
10086
10110
|
w
|
|
10087
|
-
),
|
|
10111
|
+
), R = M != null ? M : H, B = typeof i == "number" ? i : il[i], G = ($) => {
|
|
10088
10112
|
if (o)
|
|
10089
10113
|
return;
|
|
10090
10114
|
const ee = lt($, w), U = a && ee === H ? 0 : ee;
|
|
@@ -10134,7 +10158,7 @@ const ll = y.forwardRef(
|
|
|
10134
10158
|
"data-testid": h,
|
|
10135
10159
|
children: Array.from({ length: w }, ($, ee) => {
|
|
10136
10160
|
var be;
|
|
10137
|
-
const U = ee + 1, Q = U <=
|
|
10161
|
+
const U = ee + 1, Q = U <= R, j = U === H, ne = !o && (H ? U === H : U === F) ? 0 : -1;
|
|
10138
10162
|
return /* @__PURE__ */ n(
|
|
10139
10163
|
"button",
|
|
10140
10164
|
{
|
|
@@ -10695,11 +10719,11 @@ function vl({
|
|
|
10695
10719
|
const w = S.current, D = A.filter((T) => !w.has(T));
|
|
10696
10720
|
S.current = new Set(A), D.length !== 0 && (b((T) => {
|
|
10697
10721
|
const k = new Set(T);
|
|
10698
|
-
return D.forEach((
|
|
10722
|
+
return D.forEach((M) => k.add(M)), k;
|
|
10699
10723
|
}), D.forEach((T) => {
|
|
10700
10724
|
const k = N.current.get(T);
|
|
10701
10725
|
k && window.clearTimeout(k);
|
|
10702
|
-
const
|
|
10726
|
+
const M = window.setTimeout(() => {
|
|
10703
10727
|
b((z) => {
|
|
10704
10728
|
if (!z.has(T))
|
|
10705
10729
|
return z;
|
|
@@ -10707,34 +10731,34 @@ function vl({
|
|
|
10707
10731
|
return F.delete(T), F;
|
|
10708
10732
|
}), N.current.delete(T);
|
|
10709
10733
|
}, 1400);
|
|
10710
|
-
N.current.set(T,
|
|
10734
|
+
N.current.set(T, M);
|
|
10711
10735
|
}));
|
|
10712
10736
|
}, [d, v]), v.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": x, children: /* @__PURE__ */ n("tr", { "data-testid": g, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, o), className: "p-0", children: /* @__PURE__ */ n(bo, { locale: l }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": x, children: v.map((A) => {
|
|
10713
|
-
var W, H,
|
|
10714
|
-
const w = A.index, D = (W = s == null ? void 0 : s(A.original, w)) != null ? W : {}, T = typeof D.onClick == "function", k = D.onClick,
|
|
10737
|
+
var W, H, R, B;
|
|
10738
|
+
const w = A.index, D = (W = s == null ? void 0 : s(A.original, w)) != null ? W : {}, T = typeof D.onClick == "function", k = D.onClick, M = d && h.has(A.id), z = (G) => {
|
|
10715
10739
|
var P;
|
|
10716
10740
|
(P = D.onKeyDown) == null || P.call(D, G), T && (G.key !== "Enter" && G.key !== " " || (G.preventDefault(), G.currentTarget.click()));
|
|
10717
10741
|
}, F = m(
|
|
10718
10742
|
"group transition-colors",
|
|
10719
|
-
|
|
10743
|
+
M && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
|
|
10720
10744
|
// Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
|
|
10721
10745
|
(s || T) && "cursor-pointer",
|
|
10722
10746
|
D.className
|
|
10723
10747
|
), V = m(
|
|
10724
10748
|
"bg-background group-hover:bg-[#F6F6F7]",
|
|
10725
|
-
|
|
10749
|
+
M && "bg-primary/5 group-hover:bg-primary/10"
|
|
10726
10750
|
);
|
|
10727
10751
|
return /* @__PURE__ */ n(
|
|
10728
10752
|
"tr",
|
|
10729
10753
|
L(I({
|
|
10730
10754
|
"data-testid": g
|
|
10731
10755
|
}, D), {
|
|
10732
|
-
"data-new":
|
|
10756
|
+
"data-new": M ? "true" : void 0,
|
|
10733
10757
|
className: F,
|
|
10734
10758
|
onClick: k,
|
|
10735
10759
|
onKeyDown: T ? z : D.onKeyDown,
|
|
10736
10760
|
role: T ? (H = D.role) != null ? H : "button" : D.role,
|
|
10737
|
-
tabIndex: T ? (
|
|
10761
|
+
tabIndex: T ? (R = D.tabIndex) != null ? R : 0 : D.tabIndex,
|
|
10738
10762
|
"aria-label": T ? (B = D["aria-label"]) != null ? B : "Открыть строку" : D["aria-label"],
|
|
10739
10763
|
children: A.getVisibleCells().map((G) => {
|
|
10740
10764
|
var be, he, Ie, q;
|
|
@@ -10856,7 +10880,7 @@ function Cl({
|
|
|
10856
10880
|
scrollState: u
|
|
10857
10881
|
}) {
|
|
10858
10882
|
return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((c) => {
|
|
10859
|
-
var k,
|
|
10883
|
+
var k, M;
|
|
10860
10884
|
const d = c.column.columnDef.meta, x = c.column.getCanSort(), g = c.column.getIsSorted(), p = void 0, v = Nr(d == null ? void 0 : d.align), h = Sr(d == null ? void 0 : d.fixed, c.column.id, s), b = Cr(d == null ? void 0 : d.fixed, c.column.id, l, u), S = typeof a == "number" ? `${a}px` : a, N = x ? c.column.getToggleSortingHandler() : void 0, A = c.isPlaceholder ? null : pn(c.column.columnDef.header, c.getContext()), w = t.findIndex((z, F) => Ze(z, F) === c.column.id), D = w >= 0 ? t[w] : void 0, T = typeof (D == null ? void 0 : D.title) == "function" ? D.title({
|
|
10861
10885
|
sortColumns: r.map((z) => ({
|
|
10862
10886
|
column: { dataIndex: z.id, key: z.id, columnKey: z.id },
|
|
@@ -10885,7 +10909,7 @@ function Cl({
|
|
|
10885
10909
|
maxWidth: d == null ? void 0 : d.maxWidth
|
|
10886
10910
|
}), h), {
|
|
10887
10911
|
boxShadow: Ir(
|
|
10888
|
-
(
|
|
10912
|
+
(M = d == null ? void 0 : d.headerStyle) == null ? void 0 : M.boxShadow,
|
|
10889
10913
|
b
|
|
10890
10914
|
)
|
|
10891
10915
|
}),
|
|
@@ -10946,15 +10970,15 @@ function Tl({
|
|
|
10946
10970
|
return e.getCoreRowModel().rows.filter((W) => V.has(W.id)).map((W) => W.original);
|
|
10947
10971
|
}, u = e.getRowModel().rows, f = u.filter((F) => !s(F.original)).map((F) => F.id), c = f.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), d = f.length > 0 && c === f.length, x = c > 0 && !d, g = d ? !0 : x ? "indeterminate" : !1, p = ((z = a == null ? void 0 : a.allRowKeys) != null ? z : []).map((F) => String(F)), v = p.length > 0 ? p : f, h = v.reduce((F, V) => t.isSelected(V) ? F + 1 : F, 0), b = v.length > 0 && h === v.length, S = h > 0 && !b, N = b ? !0 : S ? "indeterminate" : !1, A = (F, V, W) => {
|
|
10948
10972
|
var G, P;
|
|
10949
|
-
const H = r.current,
|
|
10973
|
+
const H = r.current, R = t.getKeys(), B = V ? Array.from(new Map([...R, ...F].map((Y) => [String(Y), Y])).values()) : R.filter((Y) => !new Set(F.map((re) => String(re))).has(String(Y)));
|
|
10950
10974
|
H.isControlled || (t.setKeys(B), H.setInternalSelectedRowKeys(B)), (P = (G = H.rowSelection) == null ? void 0 : G.onChange) == null || P.call(G, B, l(B), { type: W });
|
|
10951
10975
|
};
|
|
10952
10976
|
return /* @__PURE__ */ n(br, { checked: i === "all" ? N : g, onCheckedChange: i === "all" ? (F) => {
|
|
10953
|
-
var
|
|
10954
|
-
const V = F === !0, W = r.current, H = (B = (
|
|
10977
|
+
var R, B;
|
|
10978
|
+
const V = F === !0, W = r.current, H = (B = (R = W.rowSelection) == null ? void 0 : R.allRowKeys) != null && B.length ? W.rowSelection.allRowKeys : u.map((G) => W.getRowKeyValue(G.original, G.index));
|
|
10955
10979
|
A(H != null ? H : [], V, "all");
|
|
10956
10980
|
} : (F) => {
|
|
10957
|
-
const V = F === !0, W = r.current, H = u.filter((
|
|
10981
|
+
const V = F === !0, W = r.current, H = u.filter((R) => !s(R.original)).map((R) => W.getRowKeyValue(R.original, R.index));
|
|
10958
10982
|
A(H, V, "page");
|
|
10959
10983
|
}, "aria-label": i === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": "select-all-checkbox" });
|
|
10960
10984
|
}
|
|
@@ -10999,10 +11023,10 @@ function Rl({
|
|
|
10999
11023
|
const v = o.current, h = p === !0;
|
|
11000
11024
|
if (u)
|
|
11001
11025
|
return;
|
|
11002
|
-
const b = v.getRowKeyValue(i, t.index), S = String(b), N = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = N.findIndex((
|
|
11026
|
+
const b = v.getRowKeyValue(i, t.index), S = String(b), N = e.getRowModel().rows, A = v.lastRowSelectionKeyRef.current == null ? null : String(v.lastRowSelectionKeyRef.current), w = N.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === S), D = A == null ? -1 : N.findIndex((R) => String(v.getRowKeyValue(R.original, R.index)) === A), T = v.rowSelectionShiftKeyRef.current && w >= 0 && D >= 0, k = T ? N.slice(Math.min(D, w), Math.max(D, w) + 1).filter((R) => {
|
|
11003
11027
|
var B, G, P;
|
|
11004
|
-
return !((P = (G = (B = v.rowSelection) == null ? void 0 : B.getCheckboxProps) == null ? void 0 : G.call(B,
|
|
11005
|
-
}).map((
|
|
11028
|
+
return !((P = (G = (B = v.rowSelection) == null ? void 0 : B.getCheckboxProps) == null ? void 0 : G.call(B, R.original)) != null && P.disabled);
|
|
11029
|
+
}).map((R) => v.getRowKeyValue(R.original, R.index)) : [b], M = new Set(k.map((R) => String(R))), z = r.getKeys(), F = h ? Array.from(new Map([...z, ...k].map((R) => [String(R), R])).values()) : z.filter((R) => !M.has(String(R)));
|
|
11006
11030
|
v.isControlled || (r.setKeys(F), v.setInternalSelectedRowKeys(F));
|
|
11007
11031
|
const V = T && k.length > 1 ? "range" : "row";
|
|
11008
11032
|
(H = (W = v.rowSelection) == null ? void 0 : W.onChange) == null || H.call(W, F, f(F), { type: V }), v.lastRowSelectionKeyRef.current = b, v.rowSelectionShiftKeyRef.current = !1;
|
|
@@ -11111,11 +11135,11 @@ function tc({
|
|
|
11111
11135
|
onRow: D,
|
|
11112
11136
|
locale: T,
|
|
11113
11137
|
tbodyDataTestId: k,
|
|
11114
|
-
rowDataTestId:
|
|
11138
|
+
rowDataTestId: M = "item",
|
|
11115
11139
|
cellDataTestId: z
|
|
11116
11140
|
}) {
|
|
11117
11141
|
var Ar, Fr, Lr;
|
|
11118
|
-
const F = (Ar = d != null ? d : x) != null ? Ar : [], V = !!i, W = Math.max(1, Math.floor(s != null ? s : 10)), H = de(null),
|
|
11142
|
+
const F = (Ar = d != null ? d : x) != null ? Ar : [], V = !!i, W = Math.max(1, Math.floor(s != null ? s : 10)), H = de(null), R = de(null), B = de(/* @__PURE__ */ new WeakMap()), G = de(!1), P = de(null), Y = !!b, re = (Fr = b == null ? void 0 : b.selectAllMode) != null ? Fr : (b == null ? void 0 : b.selectAllScope) === "all" ? "all" : "page", [$, ee] = ce(
|
|
11119
11143
|
() => {
|
|
11120
11144
|
var te;
|
|
11121
11145
|
return (te = b == null ? void 0 : b.defaultSelectedRowKeys) != null ? te : [];
|
|
@@ -11272,7 +11296,7 @@ function tc({
|
|
|
11272
11296
|
scrollState: Ue,
|
|
11273
11297
|
highlightNewRows: S,
|
|
11274
11298
|
tbodyDataTestId: k,
|
|
11275
|
-
rowDataTestId:
|
|
11299
|
+
rowDataTestId: M,
|
|
11276
11300
|
cellDataTestId: z
|
|
11277
11301
|
}), [
|
|
11278
11302
|
F,
|
|
@@ -11286,7 +11310,7 @@ function tc({
|
|
|
11286
11310
|
Ue,
|
|
11287
11311
|
S,
|
|
11288
11312
|
k,
|
|
11289
|
-
|
|
11313
|
+
M,
|
|
11290
11314
|
z
|
|
11291
11315
|
]), Mr = de(null), Ye = Mr.current, Co = !!(Ye && Ye.selectedRowKeysSignature !== Tr && Al(Ye.inputs, Rr)), Dr = Ye ? Co ? Ye.version : Ye.version + 1 : 0;
|
|
11292
11316
|
ct(() => {
|
|
@@ -11297,7 +11321,7 @@ function tc({
|
|
|
11297
11321
|
};
|
|
11298
11322
|
});
|
|
11299
11323
|
const Er = X((te) => {
|
|
11300
|
-
const fe = H.current, ie =
|
|
11324
|
+
const fe = H.current, ie = R.current;
|
|
11301
11325
|
if (!fe || !ie)
|
|
11302
11326
|
return;
|
|
11303
11327
|
const Ee = te === "body" ? fe : ie, ze = te === "body" ? ie : fe, st = Ee.scrollLeft, er = B.current.get(Ee);
|
|
@@ -11316,7 +11340,7 @@ function tc({
|
|
|
11316
11340
|
_e && /* @__PURE__ */ n(
|
|
11317
11341
|
"div",
|
|
11318
11342
|
{
|
|
11319
|
-
ref:
|
|
11343
|
+
ref: R,
|
|
11320
11344
|
className: m(
|
|
11321
11345
|
"no-scrollbar sticky z-30 overflow-x-auto rounded-t-lg bg-background"
|
|
11322
11346
|
),
|
|
@@ -11416,7 +11440,7 @@ function tc({
|
|
|
11416
11440
|
scrollState: Ue,
|
|
11417
11441
|
highlightNewRows: S,
|
|
11418
11442
|
tbodyDataTestId: k,
|
|
11419
|
-
rowDataTestId:
|
|
11443
|
+
rowDataTestId: M,
|
|
11420
11444
|
cellDataTestId: z
|
|
11421
11445
|
}
|
|
11422
11446
|
)
|
|
@@ -11529,8 +11553,8 @@ function rc({
|
|
|
11529
11553
|
) }) : c.length === 0 ? /* @__PURE__ */ n("div", { className: o, "aria-busy": t, children: /* @__PURE__ */ n(bo, { locale: a }) }) : /* @__PURE__ */ n("div", { className: m("flex flex-col gap-2", o), "aria-busy": t, children: c.map((d, x) => {
|
|
11530
11554
|
var N, A, w, D, T;
|
|
11531
11555
|
const g = (N = s == null ? void 0 : s(d, x)) != null ? N : {}, p = typeof g.onClick == "function", v = (A = i == null ? void 0 : i(d, x)) != null ? A : x, h = g.onClick, b = (k) => {
|
|
11532
|
-
var
|
|
11533
|
-
(
|
|
11556
|
+
var M;
|
|
11557
|
+
(M = g.onKeyDown) == null || M.call(g, k), p && (k.key !== "Enter" && k.key !== " " || (k.preventDefault(), k.currentTarget.click()));
|
|
11534
11558
|
}, S = m(
|
|
11535
11559
|
p && "cursor-pointer hover:bg-[#F6F6F7]",
|
|
11536
11560
|
p && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
@@ -12081,22 +12105,22 @@ function ic({
|
|
|
12081
12105
|
x((e == null ? void 0 : e.from) || ""), p((e == null ? void 0 : e.to) || ""), v.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
|
|
12082
12106
|
}, [e]);
|
|
12083
12107
|
const D = (W, H) => {
|
|
12084
|
-
const
|
|
12085
|
-
return
|
|
12108
|
+
const R = W.replace(/\D/g, ""), B = H.replace(/\D/g, ""), G = jl(W, H);
|
|
12109
|
+
return R.length === 0 ? "" : G === "removed" && R.length === 2 && B.length === 3 ? `${R}:` : G === "removed" && R.length === 2 && B.length === 2 && H.includes(":") ? R[0] : G === "removed" && R.length === 1 ? R : G === "added" && R.length === 2 && B.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)}`;
|
|
12086
12110
|
}, T = (W) => {
|
|
12087
12111
|
if (!W)
|
|
12088
12112
|
return !0;
|
|
12089
12113
|
if (!/^(?:[01]?\d|2[0-3]):[0-5]?\d$/.test(W))
|
|
12090
12114
|
return !1;
|
|
12091
|
-
const [
|
|
12092
|
-
return
|
|
12115
|
+
const [R, B] = W.split(":").map(Number);
|
|
12116
|
+
return R >= 0 && R <= 23 && B >= 0 && B <= 59;
|
|
12093
12117
|
}, k = (W, H) => {
|
|
12094
|
-
const
|
|
12118
|
+
const R = {
|
|
12095
12119
|
from: W || void 0,
|
|
12096
12120
|
to: H || void 0
|
|
12097
12121
|
};
|
|
12098
|
-
!
|
|
12099
|
-
},
|
|
12122
|
+
!R.from && !R.to ? t == null || t(void 0) : t == null || t(R);
|
|
12123
|
+
}, M = (W) => {
|
|
12100
12124
|
const H = D(W.target.value, v.current);
|
|
12101
12125
|
x(H), v.current = H, (H === "" || H.length === 5 && T(H)) && k(H, g);
|
|
12102
12126
|
}, z = (W) => {
|
|
@@ -12144,7 +12168,7 @@ function ic({
|
|
|
12144
12168
|
{
|
|
12145
12169
|
type: "text",
|
|
12146
12170
|
value: d,
|
|
12147
|
-
onChange:
|
|
12171
|
+
onChange: M,
|
|
12148
12172
|
onBlur: F,
|
|
12149
12173
|
placeholder: r.from,
|
|
12150
12174
|
disabled: o,
|
|
@@ -12729,17 +12753,17 @@ function vo({
|
|
|
12729
12753
|
locale: g = "ru"
|
|
12730
12754
|
}) {
|
|
12731
12755
|
const [p, v] = ce(!1), h = de(null), b = de(0), S = X(
|
|
12732
|
-
(
|
|
12756
|
+
(R) => {
|
|
12733
12757
|
var G;
|
|
12734
12758
|
const B = Qt[g];
|
|
12735
12759
|
if (e) {
|
|
12736
|
-
const P = e.split(",").map(($) => $.trim()), Y = `.${(G =
|
|
12760
|
+
const P = e.split(",").map(($) => $.trim()), Y = `.${(G = R.name.split(".").pop()) == null ? void 0 : G.toLowerCase()}`;
|
|
12737
12761
|
if (!P.some(
|
|
12738
|
-
($) => $ === Y || $.includes("*") &&
|
|
12762
|
+
($) => $ === Y || $.includes("*") && R.type.match($.replace("*", ".*"))
|
|
12739
12763
|
))
|
|
12740
12764
|
return B.invalidFileType(P.join(B.typeSeparator));
|
|
12741
12765
|
}
|
|
12742
|
-
if (t &&
|
|
12766
|
+
if (t && R.size > t) {
|
|
12743
12767
|
const P = (t / 1024 / 1024).toFixed(2);
|
|
12744
12768
|
return B.maxFileSize(P);
|
|
12745
12769
|
}
|
|
@@ -12747,18 +12771,18 @@ function vo({
|
|
|
12747
12771
|
},
|
|
12748
12772
|
[e, g, t]
|
|
12749
12773
|
), N = X(
|
|
12750
|
-
(
|
|
12774
|
+
(R, B) => {
|
|
12751
12775
|
x == null || x({
|
|
12752
|
-
file:
|
|
12776
|
+
file: R,
|
|
12753
12777
|
fileList: B
|
|
12754
12778
|
});
|
|
12755
12779
|
},
|
|
12756
12780
|
[x]
|
|
12757
12781
|
), A = X(
|
|
12758
|
-
(
|
|
12782
|
+
(R) => E(null, null, function* () {
|
|
12759
12783
|
if (!l)
|
|
12760
12784
|
return;
|
|
12761
|
-
let B =
|
|
12785
|
+
let B = R.map(ql);
|
|
12762
12786
|
for (const G of B) {
|
|
12763
12787
|
const P = L(I({}, G), {
|
|
12764
12788
|
status: "uploading"
|
|
@@ -12812,10 +12836,10 @@ function vo({
|
|
|
12812
12836
|
d
|
|
12813
12837
|
]
|
|
12814
12838
|
), w = X(
|
|
12815
|
-
(
|
|
12816
|
-
if (!
|
|
12839
|
+
(R) => {
|
|
12840
|
+
if (!R || R.length === 0 || r)
|
|
12817
12841
|
return;
|
|
12818
|
-
const G = Array.from(
|
|
12842
|
+
const G = Array.from(R);
|
|
12819
12843
|
for (const P of G) {
|
|
12820
12844
|
const Y = S(P);
|
|
12821
12845
|
if (Y) {
|
|
@@ -12827,73 +12851,73 @@ function vo({
|
|
|
12827
12851
|
},
|
|
12828
12852
|
[l, r, i, o, A, S]
|
|
12829
12853
|
), D = X(
|
|
12830
|
-
(
|
|
12831
|
-
w(
|
|
12854
|
+
(R) => {
|
|
12855
|
+
w(R.target.files), R.target.value = "";
|
|
12832
12856
|
},
|
|
12833
12857
|
[w]
|
|
12834
12858
|
), T = X(() => {
|
|
12835
|
-
var
|
|
12836
|
-
r || (
|
|
12859
|
+
var R;
|
|
12860
|
+
r || (R = h.current) == null || R.click();
|
|
12837
12861
|
}, [r]), k = X(
|
|
12838
|
-
(
|
|
12839
|
-
a == null || a(
|
|
12862
|
+
(R) => {
|
|
12863
|
+
a == null || a(R);
|
|
12840
12864
|
},
|
|
12841
12865
|
[a]
|
|
12842
|
-
),
|
|
12843
|
-
(
|
|
12844
|
-
|
|
12866
|
+
), M = X(
|
|
12867
|
+
(R) => {
|
|
12868
|
+
R.preventDefault(), R.stopPropagation(), b.current += 1, R.dataTransfer.items && R.dataTransfer.items.length > 0 && v(!0);
|
|
12845
12869
|
},
|
|
12846
12870
|
[]
|
|
12847
|
-
), z = X((
|
|
12848
|
-
|
|
12849
|
-
}, []), F = X((
|
|
12850
|
-
|
|
12871
|
+
), z = X((R) => {
|
|
12872
|
+
R.preventDefault(), R.stopPropagation(), b.current -= 1, b.current <= 0 && (b.current = 0, v(!1));
|
|
12873
|
+
}, []), F = X((R) => {
|
|
12874
|
+
R.preventDefault(), R.stopPropagation();
|
|
12851
12875
|
}, []), V = X(
|
|
12852
|
-
(
|
|
12853
|
-
|
|
12876
|
+
(R) => {
|
|
12877
|
+
R.preventDefault(), R.stopPropagation(), b.current = 0, v(!1), w(R.dataTransfer.files);
|
|
12854
12878
|
},
|
|
12855
12879
|
[w]
|
|
12856
12880
|
), W = X(
|
|
12857
|
-
(
|
|
12881
|
+
(R = {}) => {
|
|
12858
12882
|
var B, G;
|
|
12859
|
-
return L(I({},
|
|
12860
|
-
role: (B =
|
|
12861
|
-
tabIndex: (G =
|
|
12862
|
-
"aria-disabled": r ||
|
|
12883
|
+
return L(I({}, R), {
|
|
12884
|
+
role: (B = R.role) != null ? B : "button",
|
|
12885
|
+
tabIndex: (G = R.tabIndex) != null ? G : r ? -1 : 0,
|
|
12886
|
+
"aria-disabled": r || R["aria-disabled"],
|
|
12863
12887
|
onClick: (P) => {
|
|
12864
12888
|
var Y;
|
|
12865
|
-
(Y =
|
|
12889
|
+
(Y = R.onClick) == null || Y.call(R, P), P.defaultPrevented || T();
|
|
12866
12890
|
},
|
|
12867
12891
|
onKeyDown: (P) => {
|
|
12868
12892
|
var Y;
|
|
12869
|
-
(Y =
|
|
12893
|
+
(Y = R.onKeyDown) == null || Y.call(R, P), !(P.defaultPrevented || r) && (P.key === "Enter" || P.key === " ") && (P.preventDefault(), T());
|
|
12870
12894
|
}
|
|
12871
12895
|
});
|
|
12872
12896
|
},
|
|
12873
12897
|
[r, T]
|
|
12874
12898
|
), H = X(
|
|
12875
|
-
(
|
|
12876
|
-
const B = W(
|
|
12899
|
+
(R = {}) => {
|
|
12900
|
+
const B = W(R);
|
|
12877
12901
|
return L(I({}, B), {
|
|
12878
12902
|
onDragEnter: (G) => {
|
|
12879
12903
|
var P;
|
|
12880
|
-
(P =
|
|
12904
|
+
(P = R.onDragEnter) == null || P.call(R, G), G.defaultPrevented || M(G);
|
|
12881
12905
|
},
|
|
12882
12906
|
onDragLeave: (G) => {
|
|
12883
12907
|
var P;
|
|
12884
|
-
(P =
|
|
12908
|
+
(P = R.onDragLeave) == null || P.call(R, G), G.defaultPrevented || z(G);
|
|
12885
12909
|
},
|
|
12886
12910
|
onDragOver: (G) => {
|
|
12887
12911
|
var P;
|
|
12888
|
-
(P =
|
|
12912
|
+
(P = R.onDragOver) == null || P.call(R, G), G.defaultPrevented || F(G);
|
|
12889
12913
|
},
|
|
12890
12914
|
onDrop: (G) => {
|
|
12891
12915
|
var P;
|
|
12892
|
-
(P =
|
|
12916
|
+
(P = R.onDrop) == null || P.call(R, G), G.defaultPrevented || V(G);
|
|
12893
12917
|
}
|
|
12894
12918
|
});
|
|
12895
12919
|
},
|
|
12896
|
-
[W,
|
|
12920
|
+
[W, M, z, F, V]
|
|
12897
12921
|
);
|
|
12898
12922
|
return se(
|
|
12899
12923
|
() => ({
|
|
@@ -12942,12 +12966,12 @@ const wo = y.forwardRef(
|
|
|
12942
12966
|
action: D,
|
|
12943
12967
|
method: T,
|
|
12944
12968
|
data: k,
|
|
12945
|
-
headers:
|
|
12969
|
+
headers: M,
|
|
12946
12970
|
withCredentials: z,
|
|
12947
12971
|
onChange: F,
|
|
12948
12972
|
"data-testId": V
|
|
12949
12973
|
}, W) => {
|
|
12950
|
-
const H = Qt[A],
|
|
12974
|
+
const H = Qt[A], R = h === void 0 ? H.dropzoneText : h, B = S === void 0 ? H.selectFile : S, {
|
|
12951
12975
|
isDragging: G,
|
|
12952
12976
|
inputRef: P,
|
|
12953
12977
|
handleInputChange: Y,
|
|
@@ -12965,7 +12989,7 @@ const wo = y.forwardRef(
|
|
|
12965
12989
|
action: D,
|
|
12966
12990
|
method: T,
|
|
12967
12991
|
data: k,
|
|
12968
|
-
headers:
|
|
12992
|
+
headers: M,
|
|
12969
12993
|
withCredentials: z,
|
|
12970
12994
|
onChange: F,
|
|
12971
12995
|
locale: A
|
|
@@ -13016,7 +13040,7 @@ const wo = y.forwardRef(
|
|
|
13016
13040
|
variant: "p3",
|
|
13017
13041
|
weight: "medium",
|
|
13018
13042
|
className: m("text-center", v == null ? void 0 : v.dropzoneText),
|
|
13019
|
-
children:
|
|
13043
|
+
children: R
|
|
13020
13044
|
}
|
|
13021
13045
|
),
|
|
13022
13046
|
/* @__PURE__ */ n(K, { variant: "p2", textColor: "secondary", className: "text-center", children: H.dragHere })
|