@namuna-nur/ui-kit 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/shared/Avatar.tokens.js +610 -609
- package/lib/shared/FloorItem.tokens.js +417 -416
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as Jn, p as a, y as to, x as tn, U as Zn, P as tt, z as _n, v as $n, J as no, q as ro, _ as oo, a1 as io, C as Wt, e as I, L as ee, a2 as pe, a3 as he, a4 as ve, B as z, a5 as xt, a6 as mt, a7 as bt, A as er, k as Ue, a8 as nn, f as tr, R as nr, S as pt, h as ao, H as ht, a as lo, a9 as rn, I as rr, M as uo, aa as so, T as co } from "./Avatar.tokens.js";
|
|
2
2
|
import * as A from "react";
|
|
3
|
-
import k, { useRef as
|
|
3
|
+
import k, { useRef as ce, forwardRef as Ve, useState as F, useImperativeHandle as fo, useEffect as Vt, Fragment as go, useMemo as or } from "react";
|
|
4
4
|
import { d as Ao, t as Un, m as ir, e as ar, a as f, i as po, f as lr } from "./twMerge.js";
|
|
5
5
|
import { Link as dr, useSearchParams as on, NavLink as Et, useNavigate as ho } from "react-router-dom";
|
|
6
6
|
import { u as an } from "./useOption.js";
|
|
@@ -193,19 +193,19 @@ var fn = "CollapsibleContent", vr = A.forwardRef(
|
|
|
193
193
|
);
|
|
194
194
|
vr.displayName = fn;
|
|
195
195
|
var pi = A.forwardRef((e, n) => {
|
|
196
|
-
const { __scopeCollapsible: t, present: r, children: o, ...i } = e, l = cn(fn, t), [d, u] = A.useState(r), s = A.useRef(null), c = $n(n, s), p = A.useRef(0), h = p.current, g = A.useRef(0),
|
|
196
|
+
const { __scopeCollapsible: t, present: r, children: o, ...i } = e, l = cn(fn, t), [d, u] = A.useState(r), s = A.useRef(null), c = $n(n, s), p = A.useRef(0), h = p.current, g = A.useRef(0), q = g.current, v = l.open || d, x = A.useRef(v), m = A.useRef(void 0);
|
|
197
197
|
return A.useEffect(() => {
|
|
198
|
-
const
|
|
199
|
-
return () => cancelAnimationFrame(
|
|
198
|
+
const V = requestAnimationFrame(() => x.current = !1);
|
|
199
|
+
return () => cancelAnimationFrame(V);
|
|
200
200
|
}, []), no(() => {
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
transitionDuration:
|
|
205
|
-
animationName:
|
|
206
|
-
},
|
|
207
|
-
const
|
|
208
|
-
p.current =
|
|
201
|
+
const V = s.current;
|
|
202
|
+
if (V) {
|
|
203
|
+
m.current = m.current || {
|
|
204
|
+
transitionDuration: V.style.transitionDuration,
|
|
205
|
+
animationName: V.style.animationName
|
|
206
|
+
}, V.style.transitionDuration = "0s", V.style.animationName = "none";
|
|
207
|
+
const b = V.getBoundingClientRect();
|
|
208
|
+
p.current = b.height, g.current = b.width, x.current || (V.style.transitionDuration = m.current.transitionDuration, V.style.animationName = m.current.animationName), u(r);
|
|
209
209
|
}
|
|
210
210
|
}, [l.open, r]), /* @__PURE__ */ a.jsx(
|
|
211
211
|
tt.div,
|
|
@@ -213,15 +213,15 @@ var pi = A.forwardRef((e, n) => {
|
|
|
213
213
|
"data-state": gn(l.open),
|
|
214
214
|
"data-disabled": l.disabled ? "" : void 0,
|
|
215
215
|
id: l.contentId,
|
|
216
|
-
hidden: !
|
|
216
|
+
hidden: !v,
|
|
217
217
|
...i,
|
|
218
218
|
ref: c,
|
|
219
219
|
style: {
|
|
220
220
|
"--radix-collapsible-content-height": h ? `${h}px` : void 0,
|
|
221
|
-
"--radix-collapsible-content-width":
|
|
221
|
+
"--radix-collapsible-content-width": q ? `${q}px` : void 0,
|
|
222
222
|
...e.style
|
|
223
223
|
},
|
|
224
|
-
children:
|
|
224
|
+
children: v && o
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
});
|
|
@@ -304,40 +304,40 @@ var [qr, Ci] = Ct(qe), [xr, Ii] = Ct(
|
|
|
304
304
|
const { __scopeAccordion: t, disabled: r, dir: o, orientation: i = "vertical", ...l } = e, d = k.useRef(null), u = $n(d, n), s = Vi(t), p = mi(o) === "ltr", h = _n(e.onKeyDown, (g) => {
|
|
305
305
|
var Q;
|
|
306
306
|
if (!bi.includes(g.key)) return;
|
|
307
|
-
const
|
|
307
|
+
const q = g.target, v = s().filter((B) => {
|
|
308
308
|
var y;
|
|
309
309
|
return !((y = B.ref.current) != null && y.disabled);
|
|
310
|
-
}), x =
|
|
310
|
+
}), x = v.findIndex((B) => B.ref.current === q), m = v.length;
|
|
311
311
|
if (x === -1) return;
|
|
312
312
|
g.preventDefault();
|
|
313
|
-
let
|
|
314
|
-
const
|
|
315
|
-
|
|
313
|
+
let V = x;
|
|
314
|
+
const b = 0, C = m - 1, E = () => {
|
|
315
|
+
V = x + 1, V > C && (V = b);
|
|
316
316
|
}, R = () => {
|
|
317
|
-
|
|
317
|
+
V = x - 1, V < b && (V = C);
|
|
318
318
|
};
|
|
319
319
|
switch (g.key) {
|
|
320
320
|
case "Home":
|
|
321
|
-
|
|
321
|
+
V = b;
|
|
322
322
|
break;
|
|
323
323
|
case "End":
|
|
324
|
-
|
|
324
|
+
V = C;
|
|
325
325
|
break;
|
|
326
326
|
case "ArrowRight":
|
|
327
|
-
i === "horizontal" && (p ?
|
|
327
|
+
i === "horizontal" && (p ? E() : R());
|
|
328
328
|
break;
|
|
329
329
|
case "ArrowDown":
|
|
330
|
-
i === "vertical" &&
|
|
330
|
+
i === "vertical" && E();
|
|
331
331
|
break;
|
|
332
332
|
case "ArrowLeft":
|
|
333
|
-
i === "horizontal" && (p ? R() :
|
|
333
|
+
i === "horizontal" && (p ? R() : E());
|
|
334
334
|
break;
|
|
335
335
|
case "ArrowUp":
|
|
336
336
|
i === "vertical" && R();
|
|
337
337
|
break;
|
|
338
338
|
}
|
|
339
|
-
const w =
|
|
340
|
-
(Q =
|
|
339
|
+
const w = V % m;
|
|
340
|
+
(Q = v[w].ref.current) == null || Q.focus();
|
|
341
341
|
});
|
|
342
342
|
return /* @__PURE__ */ a.jsx(
|
|
343
343
|
Ui,
|
|
@@ -539,7 +539,7 @@ const od = ({
|
|
|
539
539
|
classNames: d,
|
|
540
540
|
onClick: u
|
|
541
541
|
}) => {
|
|
542
|
-
const s = Ee.root, c = Ee.header, p = Ee.icon, h = Ee.content, g = Ee.titlesWrapper,
|
|
542
|
+
const s = Ee.root, c = Ee.header, p = Ee.icon, h = Ee.content, g = Ee.titlesWrapper, q = Ee.title, v = Ee.subtitle;
|
|
543
543
|
return /* @__PURE__ */ a.jsxs("div", { className: f(s, d == null ? void 0 : d.root), children: [
|
|
544
544
|
/* @__PURE__ */ a.jsxs(
|
|
545
545
|
"button",
|
|
@@ -570,7 +570,7 @@ const od = ({
|
|
|
570
570
|
"span",
|
|
571
571
|
{
|
|
572
572
|
className: f(
|
|
573
|
-
|
|
573
|
+
q,
|
|
574
574
|
o && "text-dark-30/25",
|
|
575
575
|
d == null ? void 0 : d.title
|
|
576
576
|
),
|
|
@@ -582,7 +582,7 @@ const od = ({
|
|
|
582
582
|
"span",
|
|
583
583
|
{
|
|
584
584
|
className: f(
|
|
585
|
-
|
|
585
|
+
v,
|
|
586
586
|
o && "text-dark-30/25",
|
|
587
587
|
d == null ? void 0 : d.subtitle
|
|
588
588
|
),
|
|
@@ -751,10 +751,10 @@ function U(e, n, t) {
|
|
|
751
751
|
r = d;
|
|
752
752
|
let s;
|
|
753
753
|
if (t.key && t.debug && (s = Date.now()), o = n(...d), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
|
|
754
|
-
const c = Math.round((Date.now() - l) * 100) / 100, p = Math.round((Date.now() - s) * 100) / 100, h = p / 16, g = (
|
|
755
|
-
for (
|
|
756
|
-
|
|
757
|
-
return
|
|
754
|
+
const c = Math.round((Date.now() - l) * 100) / 100, p = Math.round((Date.now() - s) * 100) / 100, h = p / 16, g = (q, v) => {
|
|
755
|
+
for (q = String(q); q.length < v; )
|
|
756
|
+
q = " " + q;
|
|
757
|
+
return q;
|
|
758
758
|
};
|
|
759
759
|
console.info(`%c⏱ ${g(p, 5)} /${g(c, 5)} ms`, `
|
|
760
760
|
font-size: .6rem;
|
|
@@ -806,9 +806,9 @@ function Mi(e, n, t, r) {
|
|
|
806
806
|
let s = (o = (i = d.id) != null ? i : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? o : typeof d.header == "string" ? d.header : void 0, c;
|
|
807
807
|
if (d.accessorFn ? c = d.accessorFn : u && (u.includes(".") ? c = (h) => {
|
|
808
808
|
let g = h;
|
|
809
|
-
for (const
|
|
810
|
-
var
|
|
811
|
-
g = (
|
|
809
|
+
for (const v of u.split(".")) {
|
|
810
|
+
var q;
|
|
811
|
+
g = (q = g) == null ? void 0 : q[v], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${v}" in deeply nested key "${u}" returned undefined.`);
|
|
812
812
|
}
|
|
813
813
|
return g;
|
|
814
814
|
} : c = (h) => h[d.accessorKey]), !s)
|
|
@@ -827,8 +827,8 @@ function Mi(e, n, t, r) {
|
|
|
827
827
|
getLeafColumns: U(() => [e._getOrderColumnsFn()], (h) => {
|
|
828
828
|
var g;
|
|
829
829
|
if ((g = p.columns) != null && g.length) {
|
|
830
|
-
let
|
|
831
|
-
return h(
|
|
830
|
+
let q = p.columns.flatMap((v) => v.getLeafColumns());
|
|
831
|
+
return h(q);
|
|
832
832
|
}
|
|
833
833
|
return [p];
|
|
834
834
|
}, O(e.options, "debugColumns", "column.getLeafColumns"))
|
|
@@ -900,53 +900,53 @@ function it(e, n, t, r) {
|
|
|
900
900
|
var o, i;
|
|
901
901
|
let l = 0;
|
|
902
902
|
const d = function(h, g) {
|
|
903
|
-
g === void 0 && (g = 1), l = Math.max(l, g), h.filter((
|
|
904
|
-
var
|
|
905
|
-
(
|
|
903
|
+
g === void 0 && (g = 1), l = Math.max(l, g), h.filter((q) => q.getIsVisible()).forEach((q) => {
|
|
904
|
+
var v;
|
|
905
|
+
(v = q.columns) != null && v.length && d(q.columns, g + 1);
|
|
906
906
|
}, 0);
|
|
907
907
|
};
|
|
908
908
|
d(e);
|
|
909
909
|
let u = [];
|
|
910
910
|
const s = (h, g) => {
|
|
911
|
-
const
|
|
911
|
+
const q = {
|
|
912
912
|
depth: g,
|
|
913
913
|
id: [r, `${g}`].filter(Boolean).join("_"),
|
|
914
914
|
headers: []
|
|
915
|
-
},
|
|
915
|
+
}, v = [];
|
|
916
916
|
h.forEach((x) => {
|
|
917
|
-
const
|
|
918
|
-
let
|
|
919
|
-
if (
|
|
920
|
-
|
|
917
|
+
const m = [...v].reverse()[0], V = x.column.depth === q.depth;
|
|
918
|
+
let b, C = !1;
|
|
919
|
+
if (V && x.column.parent ? b = x.column.parent : (b = x.column, C = !0), m && (m == null ? void 0 : m.column) === b)
|
|
920
|
+
m.subHeaders.push(x);
|
|
921
921
|
else {
|
|
922
|
-
const
|
|
923
|
-
id: [r, g,
|
|
922
|
+
const E = On(t, b, {
|
|
923
|
+
id: [r, g, b.id, x == null ? void 0 : x.id].filter(Boolean).join("_"),
|
|
924
924
|
isPlaceholder: C,
|
|
925
|
-
placeholderId: C ? `${
|
|
925
|
+
placeholderId: C ? `${v.filter((R) => R.column === b).length}` : void 0,
|
|
926
926
|
depth: g,
|
|
927
|
-
index:
|
|
927
|
+
index: v.length
|
|
928
928
|
});
|
|
929
|
-
|
|
929
|
+
E.subHeaders.push(x), v.push(E);
|
|
930
930
|
}
|
|
931
|
-
|
|
932
|
-
}), u.push(
|
|
931
|
+
q.headers.push(x), x.headerGroup = q;
|
|
932
|
+
}), u.push(q), g > 0 && s(v, g - 1);
|
|
933
933
|
}, c = n.map((h, g) => On(t, h, {
|
|
934
934
|
depth: l,
|
|
935
935
|
index: g
|
|
936
936
|
}));
|
|
937
937
|
s(c, l - 1), u.reverse();
|
|
938
|
-
const p = (h) => h.filter((
|
|
939
|
-
let
|
|
940
|
-
|
|
938
|
+
const p = (h) => h.filter((q) => q.column.getIsVisible()).map((q) => {
|
|
939
|
+
let v = 0, x = 0, m = [0];
|
|
940
|
+
q.subHeaders && q.subHeaders.length ? (m = [], p(q.subHeaders).forEach((b) => {
|
|
941
941
|
let {
|
|
942
942
|
colSpan: C,
|
|
943
|
-
rowSpan:
|
|
944
|
-
} =
|
|
945
|
-
|
|
946
|
-
})) :
|
|
947
|
-
const
|
|
948
|
-
return x = x +
|
|
949
|
-
colSpan:
|
|
943
|
+
rowSpan: E
|
|
944
|
+
} = b;
|
|
945
|
+
v += C, m.push(E);
|
|
946
|
+
})) : v = 1;
|
|
947
|
+
const V = Math.min(...m);
|
|
948
|
+
return x = x + V, q.colSpan = v, q.rowSpan = x, {
|
|
949
|
+
colSpan: v,
|
|
950
950
|
rowSpan: x
|
|
951
951
|
};
|
|
952
952
|
});
|
|
@@ -1055,7 +1055,7 @@ Rn.resolveFilterValue = (e) => {
|
|
|
1055
1055
|
return [i, l];
|
|
1056
1056
|
};
|
|
1057
1057
|
Rn.autoRemove = (e) => ae(e) || ae(e[0]) && ae(e[1]);
|
|
1058
|
-
const
|
|
1058
|
+
const Ae = {
|
|
1059
1059
|
includesString: Xr,
|
|
1060
1060
|
includesStringSensitive: Pr,
|
|
1061
1061
|
equalsString: Qr,
|
|
@@ -1085,12 +1085,12 @@ const Zi = {
|
|
|
1085
1085
|
createColumn: (e, n) => {
|
|
1086
1086
|
e.getAutoFilterFn = () => {
|
|
1087
1087
|
const t = n.getCoreRowModel().flatRows[0], r = t == null ? void 0 : t.getValue(e.id);
|
|
1088
|
-
return typeof r == "string" ?
|
|
1088
|
+
return typeof r == "string" ? Ae.includesString : typeof r == "number" ? Ae.inNumberRange : typeof r == "boolean" || r !== null && typeof r == "object" ? Ae.equals : Array.isArray(r) ? Ae.arrIncludes : Ae.weakEquals;
|
|
1089
1089
|
}, e.getFilterFn = () => {
|
|
1090
1090
|
var t, r;
|
|
1091
1091
|
return wt(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1092
1092
|
// @ts-ignore
|
|
1093
|
-
(t = (r = n.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? t :
|
|
1093
|
+
(t = (r = n.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? t : Ae[e.columnDef.filterFn]
|
|
1094
1094
|
);
|
|
1095
1095
|
}, e.getCanFilter = () => {
|
|
1096
1096
|
var t, r, o;
|
|
@@ -1448,25 +1448,25 @@ const ua = {
|
|
|
1448
1448
|
return (i) => {
|
|
1449
1449
|
if (!r || !o || (i.persist == null || i.persist(), Bt(i) && i.touches && i.touches.length > 1))
|
|
1450
1450
|
return;
|
|
1451
|
-
const l = e.getSize(), d = e ? e.getLeafHeaders().map((
|
|
1452
|
-
typeof
|
|
1453
|
-
var C,
|
|
1454
|
-
const R = n.options.columnResizeDirection === "rtl" ? -1 : 1, w = (
|
|
1455
|
-
return
|
|
1451
|
+
const l = e.getSize(), d = e ? e.getLeafHeaders().map((m) => [m.column.id, m.column.getSize()]) : [[r.id, r.getSize()]], u = Bt(i) ? Math.round(i.touches[0].clientX) : i.clientX, s = {}, c = (m, V) => {
|
|
1452
|
+
typeof V == "number" && (n.setColumnSizingInfo((b) => {
|
|
1453
|
+
var C, E;
|
|
1454
|
+
const R = n.options.columnResizeDirection === "rtl" ? -1 : 1, w = (V - ((C = b == null ? void 0 : b.startOffset) != null ? C : 0)) * R, Q = Math.max(w / ((E = b == null ? void 0 : b.startSize) != null ? E : 0), -0.999999);
|
|
1455
|
+
return b.columnSizingStart.forEach((B) => {
|
|
1456
1456
|
let [y, P] = B;
|
|
1457
1457
|
s[y] = Math.round(Math.max(P + P * Q, 0) * 100) / 100;
|
|
1458
1458
|
}), {
|
|
1459
|
-
...
|
|
1459
|
+
...b,
|
|
1460
1460
|
deltaOffset: w,
|
|
1461
1461
|
deltaPercentage: Q
|
|
1462
1462
|
};
|
|
1463
|
-
}), (n.options.columnResizeMode === "onChange" ||
|
|
1464
|
-
...
|
|
1463
|
+
}), (n.options.columnResizeMode === "onChange" || m === "end") && n.setColumnSizing((b) => ({
|
|
1464
|
+
...b,
|
|
1465
1465
|
...s
|
|
1466
1466
|
})));
|
|
1467
|
-
}, p = (
|
|
1468
|
-
c("end",
|
|
1469
|
-
...
|
|
1467
|
+
}, p = (m) => c("move", m), h = (m) => {
|
|
1468
|
+
c("end", m), n.setColumnSizingInfo((V) => ({
|
|
1469
|
+
...V,
|
|
1470
1470
|
isResizingColumn: !1,
|
|
1471
1471
|
startOffset: null,
|
|
1472
1472
|
startSize: null,
|
|
@@ -1474,22 +1474,22 @@ const ua = {
|
|
|
1474
1474
|
deltaPercentage: null,
|
|
1475
1475
|
columnSizingStart: []
|
|
1476
1476
|
}));
|
|
1477
|
-
}, g = t || typeof document < "u" ? document : null,
|
|
1478
|
-
moveHandler: (
|
|
1479
|
-
upHandler: (
|
|
1480
|
-
g == null || g.removeEventListener("mousemove",
|
|
1477
|
+
}, g = t || typeof document < "u" ? document : null, q = {
|
|
1478
|
+
moveHandler: (m) => p(m.clientX),
|
|
1479
|
+
upHandler: (m) => {
|
|
1480
|
+
g == null || g.removeEventListener("mousemove", q.moveHandler), g == null || g.removeEventListener("mouseup", q.upHandler), h(m.clientX);
|
|
1481
1481
|
}
|
|
1482
|
-
},
|
|
1483
|
-
moveHandler: (
|
|
1484
|
-
upHandler: (
|
|
1485
|
-
var
|
|
1486
|
-
g == null || g.removeEventListener("touchmove",
|
|
1482
|
+
}, v = {
|
|
1483
|
+
moveHandler: (m) => (m.cancelable && (m.preventDefault(), m.stopPropagation()), p(m.touches[0].clientX), !1),
|
|
1484
|
+
upHandler: (m) => {
|
|
1485
|
+
var V;
|
|
1486
|
+
g == null || g.removeEventListener("touchmove", v.moveHandler), g == null || g.removeEventListener("touchend", v.upHandler), m.cancelable && (m.preventDefault(), m.stopPropagation()), h((V = m.touches[0]) == null ? void 0 : V.clientX);
|
|
1487
1487
|
}
|
|
1488
1488
|
}, x = fa() ? {
|
|
1489
1489
|
passive: !1
|
|
1490
1490
|
} : !1;
|
|
1491
|
-
Bt(i) ? (g == null || g.addEventListener("touchmove",
|
|
1492
|
-
...
|
|
1491
|
+
Bt(i) ? (g == null || g.addEventListener("touchmove", v.moveHandler, x), g == null || g.addEventListener("touchend", v.upHandler, x)) : (g == null || g.addEventListener("mousemove", q.moveHandler, x), g == null || g.addEventListener("mouseup", q.upHandler, x)), n.setColumnSizingInfo((m) => ({
|
|
1492
|
+
...m,
|
|
1493
1493
|
startOffset: u,
|
|
1494
1494
|
startSize: l,
|
|
1495
1495
|
deltaOffset: 0,
|
|
@@ -1618,12 +1618,12 @@ const Aa = {
|
|
|
1618
1618
|
};
|
|
1619
1619
|
},
|
|
1620
1620
|
createTable: (e) => {
|
|
1621
|
-
e.getGlobalAutoFilterFn = () =>
|
|
1621
|
+
e.getGlobalAutoFilterFn = () => Ae.includesString, e.getGlobalFilterFn = () => {
|
|
1622
1622
|
var n, t;
|
|
1623
1623
|
const {
|
|
1624
1624
|
globalFilterFn: r
|
|
1625
1625
|
} = e.options;
|
|
1626
|
-
return wt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[r]) != null ? n :
|
|
1626
|
+
return wt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[r]) != null ? n : Ae[r];
|
|
1627
1627
|
}, e.setGlobalFilter = (n) => {
|
|
1628
1628
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
1629
1629
|
}, e.resetGlobalFilter = (n) => {
|
|
@@ -1829,20 +1829,20 @@ const Aa = {
|
|
|
1829
1829
|
if (t === "bottom") {
|
|
1830
1830
|
var p, h;
|
|
1831
1831
|
return {
|
|
1832
|
-
top: ((p = u == null ? void 0 : u.top) != null ? p : []).filter((
|
|
1833
|
-
bottom: [...((h = u == null ? void 0 : u.bottom) != null ? h : []).filter((
|
|
1832
|
+
top: ((p = u == null ? void 0 : u.top) != null ? p : []).filter((v) => !(d != null && d.has(v))),
|
|
1833
|
+
bottom: [...((h = u == null ? void 0 : u.bottom) != null ? h : []).filter((v) => !(d != null && d.has(v))), ...Array.from(d)]
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
1836
|
if (t === "top") {
|
|
1837
|
-
var g,
|
|
1837
|
+
var g, q;
|
|
1838
1838
|
return {
|
|
1839
|
-
top: [...((g = u == null ? void 0 : u.top) != null ? g : []).filter((
|
|
1840
|
-
bottom: ((
|
|
1839
|
+
top: [...((g = u == null ? void 0 : u.top) != null ? g : []).filter((v) => !(d != null && d.has(v))), ...Array.from(d)],
|
|
1840
|
+
bottom: ((q = u == null ? void 0 : u.bottom) != null ? q : []).filter((v) => !(d != null && d.has(v)))
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
|
1844
|
-
top: ((s = u == null ? void 0 : u.top) != null ? s : []).filter((
|
|
1845
|
-
bottom: ((c = u == null ? void 0 : u.bottom) != null ? c : []).filter((
|
|
1844
|
+
top: ((s = u == null ? void 0 : u.top) != null ? s : []).filter((v) => !(d != null && d.has(v))),
|
|
1845
|
+
bottom: ((c = u == null ? void 0 : u.bottom) != null ? c : []).filter((v) => !(d != null && d.has(v)))
|
|
1846
1846
|
};
|
|
1847
1847
|
});
|
|
1848
1848
|
}, e.getCanPin = () => {
|
|
@@ -2254,9 +2254,9 @@ function ja(e) {
|
|
|
2254
2254
|
setState: (h) => {
|
|
2255
2255
|
o.options.onStateChange == null || o.options.onStateChange(h);
|
|
2256
2256
|
},
|
|
2257
|
-
_getRowId: (h, g,
|
|
2258
|
-
var
|
|
2259
|
-
return (
|
|
2257
|
+
_getRowId: (h, g, q) => {
|
|
2258
|
+
var v;
|
|
2259
|
+
return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(h, g, q)) != null ? v : `${q ? [q.id, g].join(".") : g}`;
|
|
2260
2260
|
},
|
|
2261
2261
|
getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
|
|
2262
2262
|
// The final calls start at the bottom of the model,
|
|
@@ -2264,42 +2264,42 @@ function ja(e) {
|
|
|
2264
2264
|
getRowModel: () => o.getPaginationRowModel(),
|
|
2265
2265
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2266
2266
|
getRow: (h, g) => {
|
|
2267
|
-
let
|
|
2268
|
-
if (!
|
|
2267
|
+
let q = (g ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[h];
|
|
2268
|
+
if (!q && (q = o.getCoreRowModel().rowsById[h], !q))
|
|
2269
2269
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${h}`) : new Error();
|
|
2270
|
-
return
|
|
2270
|
+
return q;
|
|
2271
2271
|
},
|
|
2272
2272
|
_getDefaultColumnDef: U(() => [o.options.defaultColumn], (h) => {
|
|
2273
2273
|
var g;
|
|
2274
2274
|
return h = (g = h) != null ? g : {}, {
|
|
2275
|
-
header: (
|
|
2276
|
-
const
|
|
2277
|
-
return
|
|
2275
|
+
header: (q) => {
|
|
2276
|
+
const v = q.header.column.columnDef;
|
|
2277
|
+
return v.accessorKey ? v.accessorKey : v.accessorFn ? v.id : null;
|
|
2278
2278
|
},
|
|
2279
2279
|
// footer: props => props.header.column.id,
|
|
2280
|
-
cell: (
|
|
2281
|
-
var
|
|
2282
|
-
return (
|
|
2280
|
+
cell: (q) => {
|
|
2281
|
+
var v, x;
|
|
2282
|
+
return (v = (x = q.renderValue()) == null || x.toString == null ? void 0 : x.toString()) != null ? v : null;
|
|
2283
2283
|
},
|
|
2284
|
-
...o._features.reduce((
|
|
2284
|
+
...o._features.reduce((q, v) => Object.assign(q, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
|
|
2285
2285
|
...h
|
|
2286
2286
|
};
|
|
2287
2287
|
}, O(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2288
2288
|
_getColumnDefs: () => o.options.columns,
|
|
2289
2289
|
getAllColumns: U(() => [o._getColumnDefs()], (h) => {
|
|
2290
|
-
const g = function(
|
|
2291
|
-
return x === void 0 && (x = 0),
|
|
2292
|
-
const
|
|
2293
|
-
return
|
|
2290
|
+
const g = function(q, v, x) {
|
|
2291
|
+
return x === void 0 && (x = 0), q.map((m) => {
|
|
2292
|
+
const V = Mi(o, m, x, v), b = m;
|
|
2293
|
+
return V.columns = b.columns ? g(b.columns, V, x + 1) : [], V;
|
|
2294
2294
|
});
|
|
2295
2295
|
};
|
|
2296
2296
|
return g(h);
|
|
2297
2297
|
}, O(e, "debugColumns", "getAllColumns")),
|
|
2298
2298
|
getAllFlatColumns: U(() => [o.getAllColumns()], (h) => h.flatMap((g) => g.getFlatColumns()), O(e, "debugColumns", "getAllFlatColumns")),
|
|
2299
|
-
_getAllFlatColumnsById: U(() => [o.getAllFlatColumns()], (h) => h.reduce((g,
|
|
2299
|
+
_getAllFlatColumnsById: U(() => [o.getAllFlatColumns()], (h) => h.reduce((g, q) => (g[q.id] = q, g), {}), O(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2300
2300
|
getAllLeafColumns: U(() => [o.getAllColumns(), o._getOrderColumnsFn()], (h, g) => {
|
|
2301
|
-
let
|
|
2302
|
-
return g(
|
|
2301
|
+
let q = h.flatMap((v) => v.getLeafColumns());
|
|
2302
|
+
return g(q);
|
|
2303
2303
|
}, O(e, "debugColumns", "getAllLeafColumns")),
|
|
2304
2304
|
getColumn: (h) => {
|
|
2305
2305
|
const g = o._getAllFlatColumnsById()[h];
|
|
@@ -2398,7 +2398,7 @@ function id({
|
|
|
2398
2398
|
columns: n,
|
|
2399
2399
|
data: t,
|
|
2400
2400
|
getCoreRowModel: Ua()
|
|
2401
|
-
}), d =
|
|
2401
|
+
}), d = ce(null), u = l.getFooterGroups().some(
|
|
2402
2402
|
(p) => p.headers.some((h) => h.column.columnDef.footer)
|
|
2403
2403
|
), s = (p) => {
|
|
2404
2404
|
r != null && r.includes(p) ? o(r.filter((h) => h !== p)) : o([...r, p]);
|
|
@@ -2424,27 +2424,27 @@ function id({
|
|
|
2424
2424
|
onChange: c
|
|
2425
2425
|
}
|
|
2426
2426
|
) }),
|
|
2427
|
-
p.headers.map((
|
|
2428
|
-
const x =
|
|
2427
|
+
p.headers.map((q, v) => {
|
|
2428
|
+
const x = q.column.columnDef.meta;
|
|
2429
2429
|
return /* @__PURE__ */ a.jsx(
|
|
2430
2430
|
"th",
|
|
2431
2431
|
{
|
|
2432
|
-
colSpan:
|
|
2432
|
+
colSpan: q.colSpan,
|
|
2433
2433
|
className: f(
|
|
2434
2434
|
$.headerCell,
|
|
2435
2435
|
x == null ? void 0 : x.headerClass,
|
|
2436
|
-
|
|
2437
|
-
!i &&
|
|
2436
|
+
q.index === p.headers.length - 1 && "rounded-r-[10px]",
|
|
2437
|
+
!i && v === 0 && $.firstHeaderCell
|
|
2438
2438
|
),
|
|
2439
2439
|
children: /* @__PURE__ */ a.jsxs("div", { className: $.headerText, children: [
|
|
2440
2440
|
Ft(
|
|
2441
|
-
|
|
2442
|
-
|
|
2441
|
+
q.column.columnDef.header,
|
|
2442
|
+
q.getContext()
|
|
2443
2443
|
),
|
|
2444
2444
|
!!(x != null && x.isSortable) && /* @__PURE__ */ a.jsx(yo, { className: "fill-dark-50" })
|
|
2445
2445
|
] })
|
|
2446
2446
|
},
|
|
2447
|
-
|
|
2447
|
+
q.id
|
|
2448
2448
|
);
|
|
2449
2449
|
})
|
|
2450
2450
|
] }, p.id);
|
|
@@ -2468,24 +2468,24 @@ function id({
|
|
|
2468
2468
|
onChange: () => s(h)
|
|
2469
2469
|
}
|
|
2470
2470
|
) }),
|
|
2471
|
-
p.getVisibleCells().map((
|
|
2472
|
-
const
|
|
2471
|
+
p.getVisibleCells().map((q, v, x) => {
|
|
2472
|
+
const m = q.column.columnDef.meta;
|
|
2473
2473
|
return /* @__PURE__ */ a.jsx(
|
|
2474
2474
|
"td",
|
|
2475
2475
|
{
|
|
2476
2476
|
className: f(
|
|
2477
2477
|
$.bodyCell,
|
|
2478
2478
|
(r == null ? void 0 : r.includes(p.id)) && "font-bold",
|
|
2479
|
-
|
|
2480
|
-
!i &&
|
|
2481
|
-
|
|
2479
|
+
v === x.length - 1 && "rounded-r-[10px]",
|
|
2480
|
+
!i && v === 0 && "px-8",
|
|
2481
|
+
m == null ? void 0 : m.cellClass
|
|
2482
2482
|
),
|
|
2483
2483
|
children: Ft(
|
|
2484
|
-
|
|
2485
|
-
|
|
2484
|
+
q.column.columnDef.cell,
|
|
2485
|
+
q.getContext()
|
|
2486
2486
|
)
|
|
2487
2487
|
},
|
|
2488
|
-
|
|
2488
|
+
q.id
|
|
2489
2489
|
);
|
|
2490
2490
|
})
|
|
2491
2491
|
]
|
|
@@ -2639,40 +2639,40 @@ const Fa = ({
|
|
|
2639
2639
|
setSelectedItems: l,
|
|
2640
2640
|
classNames: d
|
|
2641
2641
|
}, u) => {
|
|
2642
|
-
const [s, c] = F(""), [p, h] = F(!1), g =
|
|
2642
|
+
const [s, c] = F(""), [p, h] = F(!1), g = ce(null);
|
|
2643
2643
|
fo(u, () => ({
|
|
2644
2644
|
open: () => h(!0),
|
|
2645
2645
|
close: () => h(!1),
|
|
2646
|
-
toggle: () => h((
|
|
2646
|
+
toggle: () => h((b) => !b),
|
|
2647
2647
|
focus: () => {
|
|
2648
|
-
var
|
|
2649
|
-
return (
|
|
2648
|
+
var b;
|
|
2649
|
+
return (b = g.current) == null ? void 0 : b.focus();
|
|
2650
2650
|
}
|
|
2651
2651
|
}), []);
|
|
2652
|
-
const
|
|
2653
|
-
var
|
|
2654
|
-
const C = n.find((R) => R.id ===
|
|
2655
|
-
C && (l((R) => R.some((Q) => Q.id ===
|
|
2656
|
-
},
|
|
2657
|
-
var
|
|
2658
|
-
C.stopPropagation(), l(i.filter((R) => R.id !==
|
|
2659
|
-
}, x = (
|
|
2660
|
-
c(
|
|
2661
|
-
},
|
|
2652
|
+
const q = (b) => {
|
|
2653
|
+
var E;
|
|
2654
|
+
const C = n.find((R) => R.id === b);
|
|
2655
|
+
C && (l((R) => R.some((Q) => Q.id === b) ? R : [...R, C]), c("")), (E = g.current) == null || E.focus();
|
|
2656
|
+
}, v = (b, C) => {
|
|
2657
|
+
var E;
|
|
2658
|
+
C.stopPropagation(), l(i.filter((R) => R.id !== b)), (E = g.current) == null || E.focus();
|
|
2659
|
+
}, x = (b) => {
|
|
2660
|
+
c(b.target.value.toLowerCase());
|
|
2661
|
+
}, m = () => {
|
|
2662
2662
|
var C;
|
|
2663
2663
|
if (!s.trim()) return;
|
|
2664
2664
|
if (!n.find(
|
|
2665
|
-
(
|
|
2665
|
+
(E) => E.label.toLowerCase() === s
|
|
2666
2666
|
)) {
|
|
2667
|
-
const
|
|
2667
|
+
const E = {
|
|
2668
2668
|
id: n.length + 1,
|
|
2669
2669
|
label: s
|
|
2670
2670
|
};
|
|
2671
|
-
n.push(
|
|
2671
|
+
n.push(E), c("");
|
|
2672
2672
|
}
|
|
2673
2673
|
(C = g.current) == null || C.focus();
|
|
2674
|
-
},
|
|
2675
|
-
(
|
|
2674
|
+
}, V = n.filter(
|
|
2675
|
+
(b) => b.label.toLowerCase().includes(s)
|
|
2676
2676
|
);
|
|
2677
2677
|
return /* @__PURE__ */ a.jsxs("div", { className: f("flex flex-col", d == null ? void 0 : d.wrapper), children: [
|
|
2678
2678
|
!!e && /* @__PURE__ */ a.jsx(
|
|
@@ -2688,8 +2688,8 @@ const Fa = ({
|
|
|
2688
2688
|
{
|
|
2689
2689
|
open: p,
|
|
2690
2690
|
onOpenChange: () => {
|
|
2691
|
-
var
|
|
2692
|
-
r || ((
|
|
2691
|
+
var b;
|
|
2692
|
+
r || ((b = g.current) == null || b.focus(), h(!p));
|
|
2693
2693
|
},
|
|
2694
2694
|
children: [
|
|
2695
2695
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2719,19 +2719,19 @@ const Fa = ({
|
|
|
2719
2719
|
children: t
|
|
2720
2720
|
}
|
|
2721
2721
|
),
|
|
2722
|
-
i.map((
|
|
2722
|
+
i.map((b) => /* @__PURE__ */ a.jsxs("div", { className: G.selectedItem, children: [
|
|
2723
2723
|
/* @__PURE__ */ a.jsx(
|
|
2724
2724
|
I,
|
|
2725
2725
|
{
|
|
2726
2726
|
className: G.selectedItemText,
|
|
2727
2727
|
variant: "p",
|
|
2728
|
-
children:
|
|
2728
|
+
children: b.label
|
|
2729
2729
|
}
|
|
2730
2730
|
),
|
|
2731
2731
|
/* @__PURE__ */ a.jsx(
|
|
2732
2732
|
"button",
|
|
2733
2733
|
{
|
|
2734
|
-
onClick: (C) =>
|
|
2734
|
+
onClick: (C) => v(b.id, C),
|
|
2735
2735
|
onPointerDownCapture: (C) => C.stopPropagation(),
|
|
2736
2736
|
"aria-label": "Close",
|
|
2737
2737
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -2745,7 +2745,7 @@ const Fa = ({
|
|
|
2745
2745
|
)
|
|
2746
2746
|
}
|
|
2747
2747
|
)
|
|
2748
|
-
] },
|
|
2748
|
+
] }, b.id)),
|
|
2749
2749
|
/* @__PURE__ */ a.jsx(
|
|
2750
2750
|
Rt,
|
|
2751
2751
|
{
|
|
@@ -2787,24 +2787,24 @@ const Fa = ({
|
|
|
2787
2787
|
height: 20,
|
|
2788
2788
|
viewBox: "0 0 21 21",
|
|
2789
2789
|
className: G.plusIcon,
|
|
2790
|
-
onClick:
|
|
2790
|
+
onClick: m
|
|
2791
2791
|
}
|
|
2792
2792
|
)
|
|
2793
2793
|
] }),
|
|
2794
|
-
|
|
2794
|
+
V.length > 0 ? V.map((b, C, E) => /* @__PURE__ */ a.jsx(
|
|
2795
2795
|
Or,
|
|
2796
2796
|
{
|
|
2797
|
-
id:
|
|
2797
|
+
id: b.id.toString(),
|
|
2798
2798
|
"data-testid": "menuitemcheckbox",
|
|
2799
|
-
checked: i.some((R) => R.id ===
|
|
2800
|
-
onChange: () =>
|
|
2799
|
+
checked: i.some((R) => R.id === b.id),
|
|
2800
|
+
onChange: () => q(b.id),
|
|
2801
2801
|
className: f(
|
|
2802
2802
|
G.option,
|
|
2803
|
-
|
|
2803
|
+
E.length - 1 !== C && "mb-2.5"
|
|
2804
2804
|
),
|
|
2805
|
-
label:
|
|
2805
|
+
label: b.label
|
|
2806
2806
|
},
|
|
2807
|
-
|
|
2807
|
+
b.id
|
|
2808
2808
|
)) : /* @__PURE__ */ a.jsx("div", { className: G.noItemsFound, children: "No items found" }),
|
|
2809
2809
|
/* @__PURE__ */ a.jsxs("div", { className: G.buttons, children: [
|
|
2810
2810
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2884,24 +2884,24 @@ const Fa = ({
|
|
|
2884
2884
|
isSearchIcon: p = !0,
|
|
2885
2885
|
isSearchResultDisabled: h = !0,
|
|
2886
2886
|
classNames: g,
|
|
2887
|
-
...
|
|
2888
|
-
},
|
|
2889
|
-
const [x,
|
|
2887
|
+
...q
|
|
2888
|
+
}, v) => {
|
|
2889
|
+
const [x, m] = F(o ?? []), [V, b] = F(i ?? []), [C, E] = F(!1), [R, w] = F(!1), Q = vo(e, d);
|
|
2890
2890
|
Vt(() => {
|
|
2891
|
-
|
|
2891
|
+
E(!!Q), u == null || u(Q);
|
|
2892
2892
|
}, [Q, u]);
|
|
2893
|
-
const B = ie.base, y = ie.hover, P = ie.focus, { focusWithin: D } = ie, j = ie.disabled, T = ie.input, M = ie.button, te = ie.filterIcon, ne = ie.dropdown, le = ie.popover,
|
|
2893
|
+
const B = ie.base, y = ie.hover, P = ie.focus, { focusWithin: D } = ie, j = ie.disabled, T = ie.input, M = ie.button, te = ie.filterIcon, ne = ie.dropdown, le = ie.popover, fe = ie.emptyPopover, Oe = (re, oe, xe) => {
|
|
2894
2894
|
const Y = (De = []) => De.map(
|
|
2895
2895
|
(Pe) => Pe.id === oe.id && oe.label === oe.label ? { ...Pe, checked: xe } : Pe
|
|
2896
|
-
), de = re === "status" ? Y(x) : x, rt = re === "module" ? Y(
|
|
2897
|
-
|
|
2896
|
+
), de = re === "status" ? Y(x) : x, rt = re === "module" ? Y(V) : V;
|
|
2897
|
+
m(de), b(rt);
|
|
2898
2898
|
}, _ = () => {
|
|
2899
2899
|
l && l({
|
|
2900
2900
|
status: x,
|
|
2901
|
-
module:
|
|
2901
|
+
module: V
|
|
2902
2902
|
}), w(!1);
|
|
2903
2903
|
}, Xe = (re) => {
|
|
2904
|
-
c == null || c(re),
|
|
2904
|
+
c == null || c(re), E(!1);
|
|
2905
2905
|
}, He = ({ type: re, title: oe, items: xe }) => /* @__PURE__ */ a.jsxs(go, { children: [
|
|
2906
2906
|
/* @__PURE__ */ a.jsx(I, { className: ne.typeFilter, children: oe }),
|
|
2907
2907
|
xe == null ? void 0 : xe.map((Y) => /* @__PURE__ */ a.jsx(
|
|
@@ -2965,7 +2965,7 @@ const Fa = ({
|
|
|
2965
2965
|
/* @__PURE__ */ a.jsx(I, { className: ne.title, children: "Поиск по фильтру" }),
|
|
2966
2966
|
/* @__PURE__ */ a.jsx(He, { type: "status", title: "Статус", items: x })
|
|
2967
2967
|
] }),
|
|
2968
|
-
/* @__PURE__ */ a.jsx("div", { className: ne.wrapperByModule, children: /* @__PURE__ */ a.jsx(He, { type: "module", title: "Модуль", items:
|
|
2968
|
+
/* @__PURE__ */ a.jsx("div", { className: ne.wrapperByModule, children: /* @__PURE__ */ a.jsx(He, { type: "module", title: "Модуль", items: V }) }),
|
|
2969
2969
|
/* @__PURE__ */ a.jsxs("div", { className: M.parent, children: [
|
|
2970
2970
|
/* @__PURE__ */ a.jsx(
|
|
2971
2971
|
z,
|
|
@@ -2995,14 +2995,14 @@ const Fa = ({
|
|
|
2995
2995
|
"input",
|
|
2996
2996
|
{
|
|
2997
2997
|
role: "searchbox",
|
|
2998
|
-
ref:
|
|
2998
|
+
ref: v,
|
|
2999
2999
|
value: e,
|
|
3000
3000
|
type: "text",
|
|
3001
3001
|
placeholder: "Поиск",
|
|
3002
3002
|
onChange: n,
|
|
3003
3003
|
className: f(T.base, g == null ? void 0 : g.input),
|
|
3004
3004
|
disabled: t,
|
|
3005
|
-
...
|
|
3005
|
+
...q
|
|
3006
3006
|
}
|
|
3007
3007
|
),
|
|
3008
3008
|
p && /* @__PURE__ */ a.jsx(
|
|
@@ -3047,7 +3047,7 @@ const Fa = ({
|
|
|
3047
3047
|
))
|
|
3048
3048
|
}
|
|
3049
3049
|
)
|
|
3050
|
-
] }) : /* @__PURE__ */ a.jsx("div", { className:
|
|
3050
|
+
] }) : /* @__PURE__ */ a.jsx("div", { className: fe.wrapper, children: /* @__PURE__ */ a.jsx(I, { className: fe.text, children: "Нет результатов поиска" }) })
|
|
3051
3051
|
}
|
|
3052
3052
|
)
|
|
3053
3053
|
] })
|
|
@@ -3357,7 +3357,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3357
3357
|
disabled: s = !1,
|
|
3358
3358
|
...c
|
|
3359
3359
|
}, p) => {
|
|
3360
|
-
const [h, g] = A.useState(!1),
|
|
3360
|
+
const [h, g] = A.useState(!1), q = A.useRef(null), v = Re.root, x = Re.input, m = Re.icon, V = Re.placeholder, b = Re.list, C = Re.status, E = Re.message, R = (P) => {
|
|
3361
3361
|
const D = P.target.files ? Array.from(P.target.files) : [];
|
|
3362
3362
|
if (D.length === 0) return;
|
|
3363
3363
|
const j = o ? D : D[0];
|
|
@@ -3368,7 +3368,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3368
3368
|
size: ol(P.size)
|
|
3369
3369
|
})) : [], Q = () => {
|
|
3370
3370
|
var P;
|
|
3371
|
-
s || (g(!0), (P =
|
|
3371
|
+
s || (g(!0), (P = q.current) == null || P.click());
|
|
3372
3372
|
}, B = () => {
|
|
3373
3373
|
g(!1);
|
|
3374
3374
|
}, y = (P) => {
|
|
@@ -3381,7 +3381,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3381
3381
|
}
|
|
3382
3382
|
i(null);
|
|
3383
3383
|
};
|
|
3384
|
-
return /* @__PURE__ */ a.jsxs("div", { className: f(
|
|
3384
|
+
return /* @__PURE__ */ a.jsxs("div", { className: f(v, l == null ? void 0 : l.root), children: [
|
|
3385
3385
|
!!t && /* @__PURE__ */ a.jsx(
|
|
3386
3386
|
ee,
|
|
3387
3387
|
{
|
|
@@ -3413,7 +3413,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3413
3413
|
/* @__PURE__ */ a.jsx(
|
|
3414
3414
|
"input",
|
|
3415
3415
|
{
|
|
3416
|
-
ref:
|
|
3416
|
+
ref: q,
|
|
3417
3417
|
id: "file-upload",
|
|
3418
3418
|
role: "file-input",
|
|
3419
3419
|
type: "file",
|
|
@@ -3424,7 +3424,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3424
3424
|
...c
|
|
3425
3425
|
}
|
|
3426
3426
|
),
|
|
3427
|
-
n && (!Array.isArray(n) || n.length > 0) ? /* @__PURE__ */ a.jsx("ul", { role: "listbox", className:
|
|
3427
|
+
n && (!Array.isArray(n) || n.length > 0) ? /* @__PURE__ */ a.jsx("ul", { role: "listbox", className: b, children: w.map((P) => /* @__PURE__ */ a.jsx(
|
|
3428
3428
|
il,
|
|
3429
3429
|
{
|
|
3430
3430
|
file: P,
|
|
@@ -3440,15 +3440,15 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3440
3440
|
"data-testid": "file-upload-icon",
|
|
3441
3441
|
width: 16,
|
|
3442
3442
|
height: 21,
|
|
3443
|
-
className:
|
|
3443
|
+
className: m
|
|
3444
3444
|
}
|
|
3445
3445
|
),
|
|
3446
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
3446
|
+
/* @__PURE__ */ a.jsx("span", { className: V, children: r })
|
|
3447
3447
|
] })
|
|
3448
3448
|
]
|
|
3449
3449
|
}
|
|
3450
3450
|
),
|
|
3451
|
-
!!d && !!u && /* @__PURE__ */ a.jsx(I, { className: f(
|
|
3451
|
+
!!d && !!u && /* @__PURE__ */ a.jsx(I, { className: f(E == null ? void 0 : E[u], l == null ? void 0 : l.status), children: d })
|
|
3452
3452
|
] });
|
|
3453
3453
|
}
|
|
3454
3454
|
), Re = {
|
|
@@ -3516,15 +3516,15 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3516
3516
|
),
|
|
3517
3517
|
children: [
|
|
3518
3518
|
o && /* @__PURE__ */ a.jsxs("div", { className: L.stars.row, children: [
|
|
3519
|
-
[...Array(5)].map((
|
|
3519
|
+
[...Array(5)].map((q, v) => /* @__PURE__ */ a.jsx(
|
|
3520
3520
|
si,
|
|
3521
3521
|
{
|
|
3522
3522
|
className: f(
|
|
3523
3523
|
L.stars.icon,
|
|
3524
|
-
|
|
3524
|
+
v < g ? L.stars.filled : L.stars.empty
|
|
3525
3525
|
)
|
|
3526
3526
|
},
|
|
3527
|
-
|
|
3527
|
+
v
|
|
3528
3528
|
)),
|
|
3529
3529
|
/* @__PURE__ */ a.jsx(I, { variant: "span", className: L.stars.score, children: String(p).replace(".", ",") })
|
|
3530
3530
|
] }),
|
|
@@ -3631,10 +3631,10 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3631
3631
|
label: o,
|
|
3632
3632
|
message: i
|
|
3633
3633
|
}) => {
|
|
3634
|
-
const [l, d] = F(!1), [u, s] = F(e || /* @__PURE__ */ new Date()), [c, p] = F(Qn(e || /* @__PURE__ */ new Date())), h =
|
|
3635
|
-
n(
|
|
3636
|
-
}, x = (
|
|
3637
|
-
let R =
|
|
3634
|
+
const [l, d] = F(!1), [u, s] = F(e || /* @__PURE__ */ new Date()), [c, p] = F(Qn(e || /* @__PURE__ */ new Date())), h = ce(null), g = ce(null), q = ce(null), v = (E) => {
|
|
3635
|
+
n(E), p(Qn(E)), d(!1);
|
|
3636
|
+
}, x = (E) => {
|
|
3637
|
+
let R = E.target.value.replace(/\D/g, "");
|
|
3638
3638
|
R.length >= 3 && R.length <= 4 ? R = `${R.slice(0, 2)}/${R.slice(2)}` : R.length > 4 && (R = `${R.slice(0, 2)}/${R.slice(2, 4)}/${R.slice(4, 8)}`), R.length > 10 && (R = R.slice(0, 10)), p(R);
|
|
3639
3639
|
const w = R.split("/");
|
|
3640
3640
|
if (w.length === 3) {
|
|
@@ -3646,29 +3646,29 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3646
3646
|
}
|
|
3647
3647
|
};
|
|
3648
3648
|
Vt(() => {
|
|
3649
|
-
const
|
|
3649
|
+
const E = (R) => {
|
|
3650
3650
|
const w = R.composedPath(), Q = h.current && w.includes(h.current), B = g.current && w.includes(g.current);
|
|
3651
3651
|
!Q && !B && d(!1);
|
|
3652
3652
|
};
|
|
3653
|
-
return window.addEventListener("mousedown",
|
|
3654
|
-
window.removeEventListener("mousedown",
|
|
3653
|
+
return window.addEventListener("mousedown", E), () => {
|
|
3654
|
+
window.removeEventListener("mousedown", E);
|
|
3655
3655
|
};
|
|
3656
3656
|
}, []);
|
|
3657
|
-
const
|
|
3657
|
+
const m = (E) => {
|
|
3658
3658
|
const R = new Date(u);
|
|
3659
|
-
R.setMonth(u.getMonth() +
|
|
3660
|
-
},
|
|
3661
|
-
const R = parseInt(
|
|
3659
|
+
R.setMonth(u.getMonth() + E), s(R);
|
|
3660
|
+
}, V = (E) => {
|
|
3661
|
+
const R = parseInt(E);
|
|
3662
3662
|
s(new Date(u.getFullYear(), R, 1));
|
|
3663
|
-
},
|
|
3664
|
-
const R = parseInt(
|
|
3663
|
+
}, b = (E) => {
|
|
3664
|
+
const R = parseInt(E);
|
|
3665
3665
|
s(new Date(R, u.getMonth(), 1));
|
|
3666
|
-
}, C = (
|
|
3667
|
-
|
|
3666
|
+
}, C = (E) => {
|
|
3667
|
+
E.stopPropagation();
|
|
3668
3668
|
const R = /* @__PURE__ */ new Date();
|
|
3669
|
-
|
|
3669
|
+
v(R), d(!0), s(new Date(R.getFullYear(), R.getMonth(), 1));
|
|
3670
3670
|
};
|
|
3671
|
-
return /* @__PURE__ */ a.jsxs("div", {
|
|
3671
|
+
return /* @__PURE__ */ a.jsxs("div", { className: f(X.base), children: [
|
|
3672
3672
|
!!o && /* @__PURE__ */ a.jsx(ee, { disabled: r, children: o }),
|
|
3673
3673
|
/* @__PURE__ */ a.jsxs(pe, { open: l, onOpenChange: d, children: [
|
|
3674
3674
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -3706,8 +3706,8 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3706
3706
|
/* @__PURE__ */ a.jsx(
|
|
3707
3707
|
"button",
|
|
3708
3708
|
{
|
|
3709
|
-
onClick: (
|
|
3710
|
-
|
|
3709
|
+
onClick: (E) => {
|
|
3710
|
+
E.preventDefault(), E.stopPropagation(), d(!l);
|
|
3711
3711
|
},
|
|
3712
3712
|
disabled: r,
|
|
3713
3713
|
className: f(
|
|
@@ -3737,18 +3737,19 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3737
3737
|
]
|
|
3738
3738
|
}
|
|
3739
3739
|
),
|
|
3740
|
-
/* @__PURE__ */ a.jsx(
|
|
3740
|
+
/* @__PURE__ */ a.jsx("div", { ref: q, children: /* @__PURE__ */ a.jsx(
|
|
3741
3741
|
ve,
|
|
3742
3742
|
{
|
|
3743
3743
|
ref: h,
|
|
3744
3744
|
role: "dialog",
|
|
3745
|
+
container: q.current,
|
|
3745
3746
|
className: X.popoverWrapper,
|
|
3746
3747
|
children: /* @__PURE__ */ a.jsxs("div", { children: [
|
|
3747
3748
|
/* @__PURE__ */ a.jsxs("div", { className: X.navigation, children: [
|
|
3748
3749
|
/* @__PURE__ */ a.jsx(
|
|
3749
3750
|
"button",
|
|
3750
3751
|
{
|
|
3751
|
-
onClick: () =>
|
|
3752
|
+
onClick: () => m(-1),
|
|
3752
3753
|
className: X.navButton,
|
|
3753
3754
|
children: /* @__PURE__ */ a.jsx(
|
|
3754
3755
|
ni,
|
|
@@ -3764,16 +3765,16 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3764
3765
|
/* @__PURE__ */ a.jsx(
|
|
3765
3766
|
Ue,
|
|
3766
3767
|
{
|
|
3767
|
-
options: Al.map((
|
|
3768
|
-
label:
|
|
3768
|
+
options: Al.map((E, R) => ({
|
|
3769
|
+
label: E,
|
|
3769
3770
|
value: R.toString()
|
|
3770
3771
|
})),
|
|
3771
3772
|
classNames: {
|
|
3772
3773
|
trigger: "w-28 h-8"
|
|
3773
3774
|
},
|
|
3774
3775
|
disabled: !1,
|
|
3775
|
-
onChange: (
|
|
3776
|
-
E
|
|
3776
|
+
onChange: (E) => {
|
|
3777
|
+
V(E), d(!0);
|
|
3777
3778
|
},
|
|
3778
3779
|
value: String(u.getMonth())
|
|
3779
3780
|
}
|
|
@@ -3786,8 +3787,8 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3786
3787
|
trigger: "w-28 h-8"
|
|
3787
3788
|
},
|
|
3788
3789
|
disabled: !1,
|
|
3789
|
-
onChange: (
|
|
3790
|
-
|
|
3790
|
+
onChange: (E) => {
|
|
3791
|
+
b(E), d(!0);
|
|
3791
3792
|
},
|
|
3792
3793
|
value: String(u.getFullYear())
|
|
3793
3794
|
}
|
|
@@ -3796,7 +3797,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3796
3797
|
/* @__PURE__ */ a.jsx(
|
|
3797
3798
|
"button",
|
|
3798
3799
|
{
|
|
3799
|
-
onClick: () =>
|
|
3800
|
+
onClick: () => m(1),
|
|
3800
3801
|
className: X.navButton,
|
|
3801
3802
|
children: /* @__PURE__ */ a.jsx(
|
|
3802
3803
|
ri,
|
|
@@ -3809,14 +3810,14 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3809
3810
|
}
|
|
3810
3811
|
)
|
|
3811
3812
|
] }),
|
|
3812
|
-
/* @__PURE__ */ a.jsx("div", { className: X.weekHeader, children: gl.map((
|
|
3813
|
-
/* @__PURE__ */ a.jsx("div", { className: X.calendar, children: ll(u).map((
|
|
3814
|
-
const { date: w, isCurrentMonth: Q } =
|
|
3813
|
+
/* @__PURE__ */ a.jsx("div", { className: X.weekHeader, children: gl.map((E) => /* @__PURE__ */ a.jsx("div", { className: X.weekDay, children: E }, E)) }),
|
|
3814
|
+
/* @__PURE__ */ a.jsx("div", { className: X.calendar, children: ll(u).map((E, R) => {
|
|
3815
|
+
const { date: w, isCurrentMonth: Q } = E, B = w.getDate();
|
|
3815
3816
|
let y = X.dayButton;
|
|
3816
3817
|
return Q ? cl(w, e) ? y += ` ${X.daySelected}` : ul(w) ? y += ` ${X.dayToday}` : sl(w) ? y += ` ${X.dayWeekend}` : y += ` ${X.dayNormal}` : y += ` ${X.dayOutside}`, /* @__PURE__ */ a.jsx(
|
|
3817
3818
|
"button",
|
|
3818
3819
|
{
|
|
3819
|
-
onClick: () =>
|
|
3820
|
+
onClick: () => v(w),
|
|
3820
3821
|
className: y,
|
|
3821
3822
|
children: B
|
|
3822
3823
|
},
|
|
@@ -3826,7 +3827,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3826
3827
|
/* @__PURE__ */ a.jsx("div", { className: X.resetButtonWrapper, children: /* @__PURE__ */ a.jsx("button", { onClick: C, className: X.resetButton, children: "Сбросить" }) })
|
|
3827
3828
|
] })
|
|
3828
3829
|
}
|
|
3829
|
-
)
|
|
3830
|
+
) })
|
|
3830
3831
|
] }),
|
|
3831
3832
|
!!i && /* @__PURE__ */ a.jsx(I, { className: f(X.message, t == null ? void 0 : t.message), children: i })
|
|
3832
3833
|
] });
|
|
@@ -3894,8 +3895,8 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3894
3895
|
setOpen: o,
|
|
3895
3896
|
classNames: i
|
|
3896
3897
|
}) => {
|
|
3897
|
-
const [l, d] = A.useState(), [u] = on(), s = (g,
|
|
3898
|
-
g.preventDefault(), d(
|
|
3898
|
+
const [l, d] = A.useState(), [u] = on(), s = (g, q) => {
|
|
3899
|
+
g.preventDefault(), d(q);
|
|
3899
3900
|
}, c = Bn.modal, p = c.item, h = Bn.text;
|
|
3900
3901
|
return /* @__PURE__ */ a.jsxs(xt, { open: r, onOpenChange: o, children: [
|
|
3901
3902
|
/* @__PURE__ */ a.jsx(
|
|
@@ -3914,7 +3915,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3914
3915
|
children: t == null ? void 0 : t.map((g) => /* @__PURE__ */ a.jsx(
|
|
3915
3916
|
nn,
|
|
3916
3917
|
{
|
|
3917
|
-
onClick: (
|
|
3918
|
+
onClick: (q) => s(q, g),
|
|
3918
3919
|
className: f(
|
|
3919
3920
|
"p-4",
|
|
3920
3921
|
(l == null ? void 0 : l.id) === g.id && p.active,
|
|
@@ -4085,18 +4086,18 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4085
4086
|
icon: l,
|
|
4086
4087
|
iconSizes: d
|
|
4087
4088
|
}) => {
|
|
4088
|
-
const [u, s] = F(!1), p = an(r)(i), h = St.base, g = St.disabled.trigger,
|
|
4089
|
+
const [u, s] = F(!1), p = an(r)(i), h = St.base, g = St.disabled.trigger, q = St.disabled.triggerText, v = ({
|
|
4089
4090
|
className: x,
|
|
4090
|
-
text:
|
|
4091
|
+
text: m = ""
|
|
4091
4092
|
}) => /* @__PURE__ */ a.jsx(
|
|
4092
4093
|
I,
|
|
4093
4094
|
{
|
|
4094
4095
|
className: f(
|
|
4095
4096
|
h.placeholder,
|
|
4096
4097
|
x,
|
|
4097
|
-
n &&
|
|
4098
|
+
n && q
|
|
4098
4099
|
),
|
|
4099
|
-
children:
|
|
4100
|
+
children: m
|
|
4100
4101
|
}
|
|
4101
4102
|
);
|
|
4102
4103
|
return /* @__PURE__ */ a.jsxs(xt, { open: u, onOpenChange: s, children: [
|
|
@@ -4119,16 +4120,16 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4119
4120
|
viewBox: d == null ? void 0 : d.viewBox,
|
|
4120
4121
|
className: f(h.icon, e == null ? void 0 : e.icon)
|
|
4121
4122
|
}
|
|
4122
|
-
) : /* @__PURE__ */ a.jsx(
|
|
4123
|
+
) : /* @__PURE__ */ a.jsx(v, { text: "Сортировать:", className: h.label }),
|
|
4123
4124
|
i ? /* @__PURE__ */ a.jsx(
|
|
4124
|
-
|
|
4125
|
+
v,
|
|
4125
4126
|
{
|
|
4126
4127
|
"data-testid": "dropdown-selected-option",
|
|
4127
4128
|
text: p == null ? void 0 : p.label,
|
|
4128
4129
|
className: f(h.selected, e == null ? void 0 : e.selected)
|
|
4129
4130
|
}
|
|
4130
4131
|
) : /* @__PURE__ */ a.jsx(
|
|
4131
|
-
|
|
4132
|
+
v,
|
|
4132
4133
|
{
|
|
4133
4134
|
text: o,
|
|
4134
4135
|
className: f(h.placeholder, e == null ? void 0 : e.placeholder)
|
|
@@ -4157,8 +4158,8 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4157
4158
|
nn,
|
|
4158
4159
|
{
|
|
4159
4160
|
className: h.items,
|
|
4160
|
-
onClick: (
|
|
4161
|
-
|
|
4161
|
+
onClick: (m) => {
|
|
4162
|
+
m.stopPropagation(), t(x.value), s(!1);
|
|
4162
4163
|
},
|
|
4163
4164
|
children: /* @__PURE__ */ a.jsx(
|
|
4164
4165
|
I,
|
|
@@ -4262,10 +4263,10 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4262
4263
|
ref: i,
|
|
4263
4264
|
disabled: n,
|
|
4264
4265
|
className: f(
|
|
4265
|
-
|
|
4266
|
+
ge.base.container,
|
|
4266
4267
|
"group",
|
|
4267
|
-
n &&
|
|
4268
|
-
!n &&
|
|
4268
|
+
n && ge.disabled.container,
|
|
4269
|
+
!n && ge.hover.container,
|
|
4269
4270
|
e == null ? void 0 : e.container
|
|
4270
4271
|
),
|
|
4271
4272
|
...o,
|
|
@@ -4274,15 +4275,15 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4274
4275
|
"div",
|
|
4275
4276
|
{
|
|
4276
4277
|
className: f(
|
|
4277
|
-
|
|
4278
|
-
n &&
|
|
4278
|
+
ge.base.iconWrapper,
|
|
4279
|
+
n && ge.disabled.iconWrapper
|
|
4279
4280
|
),
|
|
4280
4281
|
children: /* @__PURE__ */ a.jsx(
|
|
4281
4282
|
t,
|
|
4282
4283
|
{
|
|
4283
4284
|
className: f(
|
|
4284
|
-
|
|
4285
|
-
n &&
|
|
4285
|
+
ge.base.icon,
|
|
4286
|
+
n && ge.disabled.icon,
|
|
4286
4287
|
e == null ? void 0 : e.icon
|
|
4287
4288
|
)
|
|
4288
4289
|
}
|
|
@@ -4293,8 +4294,8 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4293
4294
|
I,
|
|
4294
4295
|
{
|
|
4295
4296
|
className: f(
|
|
4296
|
-
|
|
4297
|
-
n &&
|
|
4297
|
+
ge.base.label,
|
|
4298
|
+
n && ge.disabled.label,
|
|
4298
4299
|
e == null ? void 0 : e.label
|
|
4299
4300
|
),
|
|
4300
4301
|
children: r
|
|
@@ -4303,7 +4304,7 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4303
4304
|
]
|
|
4304
4305
|
}
|
|
4305
4306
|
)
|
|
4306
|
-
),
|
|
4307
|
+
), ge = {
|
|
4307
4308
|
base: {
|
|
4308
4309
|
container: "flex items-center gap-4 h-[73px] w-[400px] p-4 font-mono cursor-pointer rounded-[20px] shadow-[0px_4px_39.2px_-13px_#4242424A] border-2 border-transparent focus-visible:shadow-[0px_4px_39.2px_-13px_#4242424A,_inset_0_0_0_1px_#F9B800] outline-none focus-visible:border-primary-20/[.30] active:border-primary-30/[.30]",
|
|
4309
4310
|
label: "text-sm text-start leading-none text-dark-30 truncate max-w-[300px] font-bold",
|
|
@@ -4543,7 +4544,7 @@ const vl = ({
|
|
|
4543
4544
|
onChange: t,
|
|
4544
4545
|
classNames: r
|
|
4545
4546
|
}) => {
|
|
4546
|
-
const [o, i] = F(!1), l =
|
|
4547
|
+
const [o, i] = F(!1), l = ce(null), d = (u) => {
|
|
4547
4548
|
t(u), i(!1);
|
|
4548
4549
|
};
|
|
4549
4550
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -5116,42 +5117,42 @@ var _e = function(e) {
|
|
|
5116
5117
|
this.register = function(i) {
|
|
5117
5118
|
var l;
|
|
5118
5119
|
if (Ln.includes(i.type)) {
|
|
5119
|
-
var d = (l = i._wrapperState) !== null && l !== void 0 ? l : {}, u = d.initialValue, s = u === void 0 ? "" : u, c = d.controlled, p = c !== void 0 && c, h = t({ initialValue: i.value || s, controlled: p }), g = h.value,
|
|
5120
|
-
Object.defineProperty(i, "value", Hn(Hn({},
|
|
5120
|
+
var d = (l = i._wrapperState) !== null && l !== void 0 ? l : {}, u = d.initialValue, s = u === void 0 ? "" : u, c = d.controlled, p = c !== void 0 && c, h = t({ initialValue: i.value || s, controlled: p }), g = h.value, q = h.options, v = { value: g, options: q, fallbackOptions: q }, x = { id: -1, cachedId: -1 }, m = { value: "", selectionStart: 0, selectionEnd: 0 }, V = Object.getOwnPropertyDescriptor("_valueTracker" in i ? i : HTMLInputElement.prototype, "value");
|
|
5121
|
+
Object.defineProperty(i, "value", Hn(Hn({}, V), {}, { set: function(R) {
|
|
5121
5122
|
var w;
|
|
5122
|
-
|
|
5123
|
+
m.value = R, V == null || (w = V.set) === null || w === void 0 || w.call(i, R);
|
|
5123
5124
|
} })), i.value = g;
|
|
5124
|
-
var
|
|
5125
|
+
var b = function() {
|
|
5125
5126
|
var R = function() {
|
|
5126
5127
|
var w, Q;
|
|
5127
|
-
|
|
5128
|
+
m.selectionStart = (w = i.selectionStart) !== null && w !== void 0 ? w : 0, m.selectionEnd = (Q = i.selectionEnd) !== null && Q !== void 0 ? Q : 0, x.id = window.setTimeout(R);
|
|
5128
5129
|
};
|
|
5129
5130
|
x.id = window.setTimeout(R);
|
|
5130
5131
|
}, C = function() {
|
|
5131
5132
|
window.clearTimeout(x.id), x.id = -1, x.cachedId = -1;
|
|
5132
|
-
},
|
|
5133
|
+
}, E = function(R) {
|
|
5133
5134
|
try {
|
|
5134
5135
|
var w, Q;
|
|
5135
5136
|
if (x.cachedId === x.id) throw new _e("The input selection has not been updated.");
|
|
5136
5137
|
x.cachedId = x.id;
|
|
5137
5138
|
var B = i.value, y = i.selectionStart, P = i.selectionEnd;
|
|
5138
5139
|
if (y === null || P === null) throw new _e("The selection attributes have not been initialized.");
|
|
5139
|
-
var D, j =
|
|
5140
|
-
if (R.inputType === void 0 && (
|
|
5141
|
-
var T = "", M =
|
|
5142
|
-
if (D === "insert") T = B.slice(
|
|
5140
|
+
var D, j = m.value;
|
|
5141
|
+
if (R.inputType === void 0 && (m.selectionStart = 0, m.selectionEnd = j.length), y > m.selectionStart ? D = "insert" : y <= m.selectionStart && y < m.selectionEnd ? D = "deleteBackward" : y === m.selectionEnd && B.length < j.length && (D = "deleteForward"), D === void 0 || (D === "deleteBackward" || D === "deleteForward") && B.length > j.length) throw new _e("Input type detection error.");
|
|
5142
|
+
var T = "", M = m.selectionStart, te = m.selectionEnd;
|
|
5143
|
+
if (D === "insert") T = B.slice(m.selectionStart, y);
|
|
5143
5144
|
else {
|
|
5144
5145
|
var ne = j.length - B.length;
|
|
5145
5146
|
M = y, te = y + ne;
|
|
5146
5147
|
}
|
|
5147
|
-
|
|
5148
|
-
var le =
|
|
5149
|
-
i.value = _.value, i.setSelectionRange(_.selectionStart, _.selectionEnd),
|
|
5148
|
+
v.value !== j ? v.options = v.fallbackOptions : v.fallbackOptions = v.options;
|
|
5149
|
+
var le = v.options, fe = r({ inputType: D, previousValue: j, previousOptions: le, value: B, addedValue: T, changeStart: M, changeEnd: te, selectionStart: y, selectionEnd: P }), Oe = fe.options, _ = Ql(fe, Bl);
|
|
5150
|
+
i.value = _.value, i.setSelectionRange(_.selectionStart, _.selectionEnd), v.value = _.value, v.options = Oe, m.selectionStart = _.selectionStart, m.selectionEnd = _.selectionEnd, (w = i._valueTracker) === null || w === void 0 || (Q = w.setValue) === null || Q === void 0 || Q.call(w, j);
|
|
5150
5151
|
} catch (Xe) {
|
|
5151
|
-
if (i.value =
|
|
5152
|
+
if (i.value = m.value, i.setSelectionRange(m.selectionStart, m.selectionEnd), R.preventDefault(), R.stopPropagation(), Xe.name !== "SyntheticChangeError") throw Xe;
|
|
5152
5153
|
}
|
|
5153
5154
|
};
|
|
5154
|
-
document.activeElement === i &&
|
|
5155
|
+
document.activeElement === i && b(), i.addEventListener("focus", b), i.addEventListener("blur", C), i.addEventListener("input", E), o.set(i, { onFocus: b, onBlur: C, onInput: E });
|
|
5155
5156
|
} else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(Ln.join(", "), "."));
|
|
5156
5157
|
}, this.unregister = function(i) {
|
|
5157
5158
|
var l = o.get(i);
|
|
@@ -5178,36 +5179,36 @@ var _r = function(e) {
|
|
|
5178
5179
|
return bl(this, n), (t = ml(this, n, [{ init: function(o) {
|
|
5179
5180
|
var i = o.initialValue, l = o.controlled, d = Be(r), u = d.mask, s = d.replacement, c = d.separate, p = d.showMask;
|
|
5180
5181
|
return i = l || i ? i : p ? u : "", process.env.NODE_ENV !== "production" && function(h) {
|
|
5181
|
-
var g = h.initialValue,
|
|
5182
|
-
g.length >
|
|
5183
|
-
var x = Object.keys(
|
|
5184
|
-
return
|
|
5182
|
+
var g = h.initialValue, q = h.mask, v = h.replacement;
|
|
5183
|
+
g.length > q.length && console.error(Dt(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(g, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
5184
|
+
var x = Object.keys(v).filter(function(E) {
|
|
5185
|
+
return E.length > 1;
|
|
5185
5186
|
});
|
|
5186
5187
|
x.length > 0 && console.error(Dt(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(x.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
5187
|
-
for (var
|
|
5188
|
-
var C = Object.prototype.hasOwnProperty.call(
|
|
5189
|
-
if (!(b
|
|
5190
|
-
|
|
5188
|
+
for (var m = q.slice(0, g.length), V = -1, b = 0; b < m.length; b++) {
|
|
5189
|
+
var C = Object.prototype.hasOwnProperty.call(v, m[b]);
|
|
5190
|
+
if (!(m[b] === g[b] || C && v[m[b]].test(g[b]))) {
|
|
5191
|
+
V = b;
|
|
5191
5192
|
break;
|
|
5192
5193
|
}
|
|
5193
5194
|
}
|
|
5194
|
-
|
|
5195
|
+
V !== -1 && console.error(Dt(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(V, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(g, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
5195
5196
|
}({ initialValue: i, mask: u, replacement: s }), { value: i, options: { mask: u, replacement: s, separate: c } };
|
|
5196
5197
|
}, tracking: function(o) {
|
|
5197
|
-
var i = o.inputType, l = o.previousValue, d = o.previousOptions, u = o.addedValue, s = o.changeStart, c = o.changeEnd, p = Be(r), h = p.track, g = p.modify,
|
|
5198
|
+
var i = o.inputType, l = o.previousValue, d = o.previousOptions, u = o.addedValue, s = o.changeStart, c = o.changeEnd, p = Be(r), h = p.track, g = p.modify, q = Rl(p, yl), v = q.mask, x = q.replacement, m = q.showMask, V = q.separate, b = st(st({}, i === "insert" ? { inputType: i, data: u } : { inputType: i, data: null }), {}, { value: l, selectionStart: s, selectionEnd: c }), C = h == null ? void 0 : h(b);
|
|
5198
5199
|
if (C === !1) throw new _e("Custom tracking stop.");
|
|
5199
5200
|
C === null ? u = "" : C !== !0 && C !== void 0 && (u = C);
|
|
5200
|
-
var
|
|
5201
|
-
(
|
|
5202
|
-
var R = $t(l, st({ end: s }, d)), w = $t(l, st({ start: c }, d)), Q = RegExp("[^".concat(Object.keys(x).join(""), "]"), "g"), B =
|
|
5203
|
-
if (R && (R = Je(R, { replacementChars: B, replacement: x, separate:
|
|
5204
|
-
if (
|
|
5205
|
-
var y =
|
|
5201
|
+
var E = g == null ? void 0 : g(b);
|
|
5202
|
+
(E == null ? void 0 : E.mask) !== void 0 && (v = E.mask), (E == null ? void 0 : E.replacement) !== void 0 && (x = typeof (E == null ? void 0 : E.replacement) == "string" ? Se(E == null ? void 0 : E.replacement) : E.replacement), (E == null ? void 0 : E.showMask) !== void 0 && (m = E.showMask), (E == null ? void 0 : E.separate) !== void 0 && (V = E.separate);
|
|
5203
|
+
var R = $t(l, st({ end: s }, d)), w = $t(l, st({ start: c }, d)), Q = RegExp("[^".concat(Object.keys(x).join(""), "]"), "g"), B = v.replace(Q, "");
|
|
5204
|
+
if (R && (R = Je(R, { replacementChars: B, replacement: x, separate: V }), B = B.slice(R.length)), u && (u = Je(u, { replacementChars: B, replacement: x, separate: !1 }), B = B.slice(u.length)), i === "insert" && u === "") throw new _e("The character does not match the key value of the `replacement` object.");
|
|
5205
|
+
if (V) {
|
|
5206
|
+
var y = v.slice(s, c).replace(Q, ""), P = y.length - u.length;
|
|
5206
5207
|
P < 0 ? w = w.slice(-P) : P > 0 && (w = y.slice(-P) + w);
|
|
5207
5208
|
}
|
|
5208
|
-
w && (w = Je(w, { replacementChars: B, replacement: x, separate:
|
|
5209
|
-
var D = Mr(R + u + w, { mask:
|
|
5210
|
-
var M, te, ne, le = T.inputType,
|
|
5209
|
+
w && (w = Je(w, { replacementChars: B, replacement: x, separate: V }));
|
|
5210
|
+
var D = Mr(R + u + w, { mask: v, replacement: x, separate: V, showMask: m }), j = function(T) {
|
|
5211
|
+
var M, te, ne, le = T.inputType, fe = T.value, Oe = T.addedValue, _ = T.beforeChangeValue, Xe = T.mask, He = T.replacement, re = T.separate, oe = Kr(fe, { mask: Xe, replacement: He }).filter(function(De) {
|
|
5211
5212
|
var Pe = De.type;
|
|
5212
5213
|
return Pe === "input" || re && Pe === "replacement";
|
|
5213
5214
|
}), xe = (M = oe[_.length + Oe.length - 1]) === null || M === void 0 ? void 0 : M.index, Y = (te = oe[_.length - 1]) === null || te === void 0 ? void 0 : te.index, de = (ne = oe[_.length + Oe.length]) === null || ne === void 0 ? void 0 : ne.index;
|
|
@@ -5224,12 +5225,12 @@ var _r = function(e) {
|
|
|
5224
5225
|
if (Y !== void 0) return Y + 1;
|
|
5225
5226
|
if (de !== void 0) return de;
|
|
5226
5227
|
}
|
|
5227
|
-
var rt =
|
|
5228
|
+
var rt = fe.split("").findIndex(function(De) {
|
|
5228
5229
|
return Object.prototype.hasOwnProperty.call(He, De);
|
|
5229
5230
|
});
|
|
5230
|
-
return rt !== -1 ? rt :
|
|
5231
|
-
}({ inputType: i, value: D, addedValue: u, beforeChangeValue: R, mask:
|
|
5232
|
-
return { value: D, selectionStart: j, selectionEnd: j, options: { mask:
|
|
5231
|
+
return rt !== -1 ? rt : fe.length;
|
|
5232
|
+
}({ inputType: i, value: D, addedValue: u, beforeChangeValue: R, mask: v, replacement: x, separate: V });
|
|
5233
|
+
return { value: D, selectionStart: j, selectionEnd: j, options: { mask: v, replacement: x, separate: V } };
|
|
5233
5234
|
} }])).format = function(o) {
|
|
5234
5235
|
return Ze(o, Be(r));
|
|
5235
5236
|
}, t.formatToParts = function(o) {
|
|
@@ -5244,7 +5245,7 @@ var _r = function(e) {
|
|
|
5244
5245
|
}();
|
|
5245
5246
|
Gn = _r, Object.defineProperty(Gn.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
|
|
5246
5247
|
function Tl() {
|
|
5247
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mask, t = e.replacement, r = e.showMask, o = e.separate, i = e.track, l = e.modify, d =
|
|
5248
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mask, t = e.replacement, r = e.showMask, o = e.separate, i = e.track, l = e.modify, d = ce(null), u = ce({ mask: n, replacement: t, showMask: r, separate: o, track: i, modify: l });
|
|
5248
5249
|
return u.current.mask = n, u.current.replacement = t, u.current.showMask = r, u.current.separate = o, u.current.track = i, u.current.modify = l, or(function() {
|
|
5249
5250
|
return Ul(d, new _r(u.current));
|
|
5250
5251
|
}, []);
|
|
@@ -5270,11 +5271,11 @@ const ct = {
|
|
|
5270
5271
|
Vt(() => {
|
|
5271
5272
|
h(Ze(String(e), ct));
|
|
5272
5273
|
}, [e]);
|
|
5273
|
-
const g = (
|
|
5274
|
-
const R =
|
|
5274
|
+
const g = (E) => {
|
|
5275
|
+
const R = E.target.value.replace(/\D/g, ""), w = Ze(R, ct);
|
|
5275
5276
|
h(w), d == null || d(R);
|
|
5276
|
-
},
|
|
5277
|
-
return /* @__PURE__ */ a.jsxs("div", { className: f(
|
|
5277
|
+
}, q = Ie.parent, v = Ie.base, x = Ie.hover, m = Ie.focus, V = Ie.disabled, b = l && Ie.variants[l], C = l && Ie.message[l];
|
|
5278
|
+
return /* @__PURE__ */ a.jsxs("div", { className: f(q, u == null ? void 0 : u.parent), children: [
|
|
5278
5279
|
!!t && /* @__PURE__ */ a.jsx(
|
|
5279
5280
|
ee,
|
|
5280
5281
|
{
|
|
@@ -5295,12 +5296,12 @@ const ct = {
|
|
|
5295
5296
|
disabled: r,
|
|
5296
5297
|
autoFocus: o,
|
|
5297
5298
|
className: f(
|
|
5298
|
-
|
|
5299
|
+
v,
|
|
5299
5300
|
!r && x,
|
|
5300
|
-
!r &&
|
|
5301
|
-
!r && o &&
|
|
5302
|
-
r &&
|
|
5303
|
-
l === "danger" &&
|
|
5301
|
+
!r && m,
|
|
5302
|
+
!r && o && m,
|
|
5303
|
+
r && V,
|
|
5304
|
+
l === "danger" && b,
|
|
5304
5305
|
u == null ? void 0 : u.target
|
|
5305
5306
|
),
|
|
5306
5307
|
...s
|
|
@@ -5335,39 +5336,39 @@ const ct = {
|
|
|
5335
5336
|
}, c) => {
|
|
5336
5337
|
const [p, h] = F(r || ""), g = (C) => {
|
|
5337
5338
|
h(C), o == null || o(e, C);
|
|
5338
|
-
},
|
|
5339
|
+
}, q = s.disabled || !1, v = Ne.base, x = Ne.pressed, m = Ne.hover, V = Ne.disabled, b = Ne.content;
|
|
5339
5340
|
return /* @__PURE__ */ a.jsxs(
|
|
5340
5341
|
zl,
|
|
5341
5342
|
{
|
|
5342
5343
|
ref: c,
|
|
5343
5344
|
className: f(
|
|
5344
|
-
|
|
5345
|
+
v,
|
|
5345
5346
|
x,
|
|
5346
|
-
!
|
|
5347
|
-
|
|
5347
|
+
!q && m,
|
|
5348
|
+
q && V,
|
|
5348
5349
|
u
|
|
5349
5350
|
),
|
|
5350
5351
|
...s,
|
|
5351
5352
|
children: [
|
|
5352
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5353
|
+
/* @__PURE__ */ a.jsxs("div", { className: b.header, "data-testid": "plate", children: [
|
|
5353
5354
|
/* @__PURE__ */ a.jsx(
|
|
5354
5355
|
I,
|
|
5355
5356
|
{
|
|
5356
5357
|
className: f(
|
|
5357
|
-
|
|
5358
|
-
|
|
5358
|
+
b.title,
|
|
5359
|
+
q && b.disabled
|
|
5359
5360
|
),
|
|
5360
5361
|
children: n
|
|
5361
5362
|
}
|
|
5362
5363
|
),
|
|
5363
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5364
|
+
/* @__PURE__ */ a.jsxs("div", { className: b.actions, children: [
|
|
5364
5365
|
!!l && /* @__PURE__ */ a.jsx(
|
|
5365
5366
|
eo,
|
|
5366
5367
|
{
|
|
5367
5368
|
options: l,
|
|
5368
5369
|
value: p,
|
|
5369
5370
|
onChange: g,
|
|
5370
|
-
disabled:
|
|
5371
|
+
disabled: q
|
|
5371
5372
|
}
|
|
5372
5373
|
),
|
|
5373
5374
|
!!d && /* @__PURE__ */ a.jsxs(pe, { children: [
|
|
@@ -5376,12 +5377,12 @@ const ct = {
|
|
|
5376
5377
|
{
|
|
5377
5378
|
variant: "text",
|
|
5378
5379
|
classNames: {
|
|
5379
|
-
base:
|
|
5380
|
+
base: b.button
|
|
5380
5381
|
},
|
|
5381
5382
|
children: /* @__PURE__ */ a.jsx(
|
|
5382
5383
|
_o,
|
|
5383
5384
|
{
|
|
5384
|
-
className:
|
|
5385
|
+
className: b.icon,
|
|
5385
5386
|
width: 15,
|
|
5386
5387
|
height: 15,
|
|
5387
5388
|
viewBox: "0 0 6 24"
|
|
@@ -5389,12 +5390,12 @@ const ct = {
|
|
|
5389
5390
|
)
|
|
5390
5391
|
}
|
|
5391
5392
|
) }),
|
|
5392
|
-
/* @__PURE__ */ a.jsx(ve, { className:
|
|
5393
|
+
/* @__PURE__ */ a.jsx(ve, { className: b.popup, children: d })
|
|
5393
5394
|
] })
|
|
5394
5395
|
] })
|
|
5395
5396
|
] }),
|
|
5396
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5397
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5397
|
+
/* @__PURE__ */ a.jsx("div", { className: b.flatType, children: !!i && /* @__PURE__ */ a.jsx(pt, { text: i, variant: "warning" }) }),
|
|
5398
|
+
/* @__PURE__ */ a.jsx("div", { className: b.flexWrapper, children: t.map((C) => /* @__PURE__ */ a.jsxs(I, { className: b.typography, children: [
|
|
5398
5399
|
C.label,
|
|
5399
5400
|
":",
|
|
5400
5401
|
C.href ? /* @__PURE__ */ a.jsx(
|
|
@@ -5403,15 +5404,15 @@ const ct = {
|
|
|
5403
5404
|
weight: "font-semibold",
|
|
5404
5405
|
isIconVisible: !1,
|
|
5405
5406
|
href: C.href,
|
|
5406
|
-
className:
|
|
5407
|
+
className: b.link,
|
|
5407
5408
|
children: C.value
|
|
5408
5409
|
}
|
|
5409
5410
|
) : /* @__PURE__ */ a.jsx(
|
|
5410
5411
|
"span",
|
|
5411
5412
|
{
|
|
5412
5413
|
className: f(
|
|
5413
|
-
|
|
5414
|
-
|
|
5414
|
+
b.amount,
|
|
5415
|
+
q && b.disabled
|
|
5415
5416
|
),
|
|
5416
5417
|
children: C.value
|
|
5417
5418
|
}
|
|
@@ -5492,20 +5493,20 @@ const ct = {
|
|
|
5492
5493
|
{
|
|
5493
5494
|
role: "listbox",
|
|
5494
5495
|
className: f(p.base, o == null ? void 0 : o.datalist),
|
|
5495
|
-
children: g.map((
|
|
5496
|
+
children: g.map((q, v) => /* @__PURE__ */ a.jsxs(
|
|
5496
5497
|
"li",
|
|
5497
5498
|
{
|
|
5498
5499
|
className: f(p.item, o == null ? void 0 : o.dataItem),
|
|
5499
5500
|
children: [
|
|
5500
5501
|
/* @__PURE__ */ a.jsxs("span", { className: "text-dark-40/50", children: [
|
|
5501
|
-
|
|
5502
|
+
q.label,
|
|
5502
5503
|
":"
|
|
5503
5504
|
] }),
|
|
5504
5505
|
" ",
|
|
5505
|
-
|
|
5506
|
+
q.value
|
|
5506
5507
|
]
|
|
5507
5508
|
},
|
|
5508
|
-
|
|
5509
|
+
v
|
|
5509
5510
|
))
|
|
5510
5511
|
}
|
|
5511
5512
|
);
|
|
@@ -5517,15 +5518,15 @@ const ct = {
|
|
|
5517
5518
|
onValueChange: t,
|
|
5518
5519
|
className: f(l, o == null ? void 0 : o.base),
|
|
5519
5520
|
children: [
|
|
5520
|
-
/* @__PURE__ */ a.jsx(Vn, { className: f(d, o == null ? void 0 : o.list), children: e.map((g,
|
|
5521
|
+
/* @__PURE__ */ a.jsx(Vn, { className: f(d, o == null ? void 0 : o.list), children: e.map((g, q, v) => /* @__PURE__ */ a.jsxs(
|
|
5521
5522
|
En,
|
|
5522
5523
|
{
|
|
5523
5524
|
value: g.value,
|
|
5524
5525
|
disabled: g.disabled,
|
|
5525
5526
|
className: f(
|
|
5526
5527
|
"curved-tab",
|
|
5527
|
-
|
|
5528
|
-
|
|
5528
|
+
q === 0 && "first-tab",
|
|
5529
|
+
q === v.length - 1 && "last-tab",
|
|
5529
5530
|
u.base,
|
|
5530
5531
|
u.active,
|
|
5531
5532
|
u.hover,
|
|
@@ -5533,7 +5534,7 @@ const ct = {
|
|
|
5533
5534
|
o == null ? void 0 : o.trigger
|
|
5534
5535
|
),
|
|
5535
5536
|
children: [
|
|
5536
|
-
|
|
5537
|
+
q + 1,
|
|
5537
5538
|
n === g.value && /* @__PURE__ */ a.jsx(
|
|
5538
5539
|
"div",
|
|
5539
5540
|
{
|
|
@@ -5544,21 +5545,21 @@ const ct = {
|
|
|
5544
5545
|
},
|
|
5545
5546
|
g.value
|
|
5546
5547
|
)) }),
|
|
5547
|
-
e.map((g,
|
|
5548
|
+
e.map((g, q, v) => /* @__PURE__ */ a.jsxs(
|
|
5548
5549
|
Ur,
|
|
5549
5550
|
{
|
|
5550
5551
|
value: g.value,
|
|
5551
5552
|
className: f(
|
|
5552
5553
|
s.base,
|
|
5553
|
-
|
|
5554
|
-
|
|
5554
|
+
q === 0 && "rounded-ss-none",
|
|
5555
|
+
q === v.length - 1 && "rounded-se-none",
|
|
5555
5556
|
o == null ? void 0 : o.content
|
|
5556
5557
|
),
|
|
5557
5558
|
children: [
|
|
5558
5559
|
/* @__PURE__ */ a.jsxs("div", { className: s.title.wrapper, children: [
|
|
5559
5560
|
/* @__PURE__ */ a.jsxs(I, { className: s.title.text, children: [
|
|
5560
5561
|
"Квартира – ",
|
|
5561
|
-
|
|
5562
|
+
q + 1
|
|
5562
5563
|
] }),
|
|
5563
5564
|
/* @__PURE__ */ a.jsx(
|
|
5564
5565
|
"button",
|
|
@@ -5576,7 +5577,7 @@ const ct = {
|
|
|
5576
5577
|
/* @__PURE__ */ a.jsx("div", { className: "mt-2.5", children: /* @__PURE__ */ a.jsx(h, { list: g.content.secondary }) })
|
|
5577
5578
|
]
|
|
5578
5579
|
},
|
|
5579
|
-
|
|
5580
|
+
q
|
|
5580
5581
|
))
|
|
5581
5582
|
]
|
|
5582
5583
|
}
|
|
@@ -5723,72 +5724,72 @@ const ct = {
|
|
|
5723
5724
|
label: r,
|
|
5724
5725
|
classNames: o
|
|
5725
5726
|
}) => {
|
|
5726
|
-
const i = (v) => {
|
|
5727
|
+
const i = ce(null), l = (v) => {
|
|
5727
5728
|
if (!v) return /* @__PURE__ */ new Date();
|
|
5728
5729
|
if (v instanceof Date) return v;
|
|
5729
|
-
const
|
|
5730
|
-
return po(
|
|
5731
|
-
}, [
|
|
5732
|
-
const v = new Date(
|
|
5733
|
-
return Array.from({ length: v }, (
|
|
5734
|
-
const
|
|
5730
|
+
const x = qo(v);
|
|
5731
|
+
return po(x) ? x : /* @__PURE__ */ new Date();
|
|
5732
|
+
}, [d, u] = F(l(e)), s = d.getFullYear(), c = d.getMonth(), p = or(() => {
|
|
5733
|
+
const v = new Date(s, c + 1, 0).getDate();
|
|
5734
|
+
return Array.from({ length: v }, (x, m) => {
|
|
5735
|
+
const V = m + 1;
|
|
5735
5736
|
return {
|
|
5736
|
-
label:
|
|
5737
|
-
value:
|
|
5737
|
+
label: V.toString().padStart(2, "0"),
|
|
5738
|
+
value: V.toString()
|
|
5738
5739
|
};
|
|
5739
5740
|
});
|
|
5740
|
-
}, [
|
|
5741
|
-
const
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
);
|
|
5746
|
-
d(x), n(Ut(x));
|
|
5747
|
-
}, h = (v) => {
|
|
5748
|
-
const q = parseInt(v), x = new Date(
|
|
5749
|
-
q,
|
|
5750
|
-
l.getMonth(),
|
|
5751
|
-
l.getDate()
|
|
5741
|
+
}, [c, s]), h = (v) => {
|
|
5742
|
+
const x = parseInt(v), m = new Date(
|
|
5743
|
+
d.getFullYear(),
|
|
5744
|
+
x,
|
|
5745
|
+
d.getDate()
|
|
5752
5746
|
);
|
|
5753
|
-
|
|
5747
|
+
u(m), n(Ut(m));
|
|
5754
5748
|
}, g = (v) => {
|
|
5755
|
-
const
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5749
|
+
const x = parseInt(v), m = new Date(
|
|
5750
|
+
x,
|
|
5751
|
+
d.getMonth(),
|
|
5752
|
+
d.getDate()
|
|
5759
5753
|
);
|
|
5760
|
-
|
|
5754
|
+
u(m), n(Ut(m));
|
|
5755
|
+
}, q = (v) => {
|
|
5756
|
+
const x = parseInt(v), m = new Date(
|
|
5757
|
+
d.getFullYear(),
|
|
5758
|
+
d.getMonth(),
|
|
5759
|
+
x
|
|
5760
|
+
);
|
|
5761
|
+
u(m), n(Ut(m));
|
|
5761
5762
|
};
|
|
5762
|
-
return /* @__PURE__ */ a.jsxs("div", { className: Nn.root, children: [
|
|
5763
|
+
return /* @__PURE__ */ a.jsxs("div", { ref: i, className: Nn.root, children: [
|
|
5763
5764
|
!!r && /* @__PURE__ */ a.jsx(ee, { className: f(o == null ? void 0 : o.label), children: r }),
|
|
5764
5765
|
/* @__PURE__ */ a.jsxs("div", { className: Nn.selectContainer, children: [
|
|
5765
5766
|
/* @__PURE__ */ a.jsx(
|
|
5766
5767
|
Ue,
|
|
5767
5768
|
{
|
|
5768
|
-
options:
|
|
5769
|
+
options: p,
|
|
5769
5770
|
classNames: {
|
|
5770
5771
|
trigger: f("w-full h-11 bg-gray-50", o == null ? void 0 : o.selectTrigger),
|
|
5771
5772
|
selected: f("text-sm", o == null ? void 0 : o.selectSelected)
|
|
5772
5773
|
},
|
|
5773
5774
|
disabled: t,
|
|
5774
|
-
onChange:
|
|
5775
|
-
value: String(
|
|
5775
|
+
onChange: q,
|
|
5776
|
+
value: String(d.getDate())
|
|
5776
5777
|
}
|
|
5777
5778
|
),
|
|
5778
5779
|
/* @__PURE__ */ a.jsx(
|
|
5779
5780
|
Ue,
|
|
5780
5781
|
{
|
|
5781
|
-
options: Hl.map((v,
|
|
5782
|
+
options: Hl.map((v, x) => ({
|
|
5782
5783
|
label: v,
|
|
5783
|
-
value:
|
|
5784
|
+
value: x.toString()
|
|
5784
5785
|
})),
|
|
5785
5786
|
classNames: {
|
|
5786
5787
|
trigger: f("w-full h-11", o == null ? void 0 : o.selectTrigger),
|
|
5787
5788
|
selected: f("text-sm", o == null ? void 0 : o.selectSelected)
|
|
5788
5789
|
},
|
|
5789
5790
|
disabled: t,
|
|
5790
|
-
onChange:
|
|
5791
|
-
value: String(
|
|
5791
|
+
onChange: h,
|
|
5792
|
+
value: String(d.getMonth())
|
|
5792
5793
|
}
|
|
5793
5794
|
),
|
|
5794
5795
|
/* @__PURE__ */ a.jsx(
|
|
@@ -5800,8 +5801,8 @@ const ct = {
|
|
|
5800
5801
|
selected: f("text-sm", o == null ? void 0 : o.selectSelected)
|
|
5801
5802
|
},
|
|
5802
5803
|
disabled: t,
|
|
5803
|
-
onChange:
|
|
5804
|
-
value: String(
|
|
5804
|
+
onChange: g,
|
|
5805
|
+
value: String(d.getFullYear())
|
|
5805
5806
|
}
|
|
5806
5807
|
)
|
|
5807
5808
|
] })
|
|
@@ -6072,7 +6073,7 @@ const ct = {
|
|
|
6072
6073
|
inputProps: s,
|
|
6073
6074
|
...c
|
|
6074
6075
|
}) => {
|
|
6075
|
-
var
|
|
6076
|
+
var q;
|
|
6076
6077
|
const p = ft.parent, h = ft.base, g = ft.icon;
|
|
6077
6078
|
return /* @__PURE__ */ a.jsxs("div", { className: f(p, d == null ? void 0 : d.parent), ...c, children: [
|
|
6078
6079
|
!!n && /* @__PURE__ */ a.jsx(
|
|
@@ -6102,7 +6103,7 @@ const ct = {
|
|
|
6102
6103
|
classNames: {
|
|
6103
6104
|
...s == null ? void 0 : s.classNames,
|
|
6104
6105
|
target: f(
|
|
6105
|
-
(
|
|
6106
|
+
(q = s == null ? void 0 : s.classNames) == null ? void 0 : q.target,
|
|
6106
6107
|
(r || l) && i === "left" && g.inputWithLeftIcon,
|
|
6107
6108
|
(r || l) && i === "right" && g.inputWithRightIcon
|
|
6108
6109
|
)
|
|
@@ -6231,25 +6232,25 @@ const ct = {
|
|
|
6231
6232
|
placeholder: o = "Choose",
|
|
6232
6233
|
value: i
|
|
6233
6234
|
}, l) => {
|
|
6234
|
-
var
|
|
6235
|
-
const [d, u] = F(!1), c = an(r)(i), p =
|
|
6236
|
-
className:
|
|
6235
|
+
var V;
|
|
6236
|
+
const [d, u] = F(!1), c = an(r)(i), p = ce(null), h = We.base, g = We.options, q = We.disabled.trigger, v = We.disabled.triggerText, x = (V = r.find((b) => b.value === i)) == null ? void 0 : V.status, m = ({
|
|
6237
|
+
className: b,
|
|
6237
6238
|
text: C = ""
|
|
6238
6239
|
}) => /* @__PURE__ */ a.jsx(
|
|
6239
6240
|
I,
|
|
6240
6241
|
{
|
|
6241
6242
|
className: f(
|
|
6242
6243
|
h.placeholder,
|
|
6243
|
-
n &&
|
|
6244
|
-
|
|
6244
|
+
n && v,
|
|
6245
|
+
b
|
|
6245
6246
|
),
|
|
6246
6247
|
children: C
|
|
6247
6248
|
}
|
|
6248
6249
|
);
|
|
6249
6250
|
return Vt(() => {
|
|
6250
6251
|
d && setTimeout(() => {
|
|
6251
|
-
var
|
|
6252
|
-
(
|
|
6252
|
+
var b;
|
|
6253
|
+
(b = p.current) == null || b.scrollIntoView({ block: "center" });
|
|
6253
6254
|
}, 0);
|
|
6254
6255
|
}, [d]), /* @__PURE__ */ a.jsxs(xt, { open: d, onOpenChange: u, children: [
|
|
6255
6256
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -6259,20 +6260,20 @@ const ct = {
|
|
|
6259
6260
|
disabled: n,
|
|
6260
6261
|
className: f(
|
|
6261
6262
|
h.trigger,
|
|
6262
|
-
n &&
|
|
6263
|
+
n && q,
|
|
6263
6264
|
!d && !n && h.hover,
|
|
6264
6265
|
e == null ? void 0 : e.trigger,
|
|
6265
6266
|
x && We.status[x]
|
|
6266
6267
|
),
|
|
6267
6268
|
children: [
|
|
6268
6269
|
i ? /* @__PURE__ */ a.jsx(
|
|
6269
|
-
|
|
6270
|
+
m,
|
|
6270
6271
|
{
|
|
6271
6272
|
text: c == null ? void 0 : c.label,
|
|
6272
6273
|
className: f(h.selected, e == null ? void 0 : e.selected)
|
|
6273
6274
|
}
|
|
6274
6275
|
) : /* @__PURE__ */ a.jsx(
|
|
6275
|
-
|
|
6276
|
+
m,
|
|
6276
6277
|
{
|
|
6277
6278
|
text: o,
|
|
6278
6279
|
className: e == null ? void 0 : e.placeholder
|
|
@@ -6296,17 +6297,17 @@ const ct = {
|
|
|
6296
6297
|
className: f(g.content, e == null ? void 0 : e.content),
|
|
6297
6298
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
6298
6299
|
ref: l,
|
|
6299
|
-
children: /* @__PURE__ */ a.jsx("div", { className: f(g.wrapper), children: !!r && (r == null ? void 0 : r.map((
|
|
6300
|
+
children: /* @__PURE__ */ a.jsx("div", { className: f(g.wrapper), children: !!r && (r == null ? void 0 : r.map((b) => /* @__PURE__ */ a.jsx(
|
|
6300
6301
|
nn,
|
|
6301
6302
|
{
|
|
6302
|
-
ref: i ===
|
|
6303
|
+
ref: i === b.value ? p : null,
|
|
6303
6304
|
className: f(g.items),
|
|
6304
6305
|
onClick: (C) => {
|
|
6305
|
-
C.preventDefault(), C.stopPropagation(), t(
|
|
6306
|
+
C.preventDefault(), C.stopPropagation(), t(b.value), u(!1);
|
|
6306
6307
|
},
|
|
6307
|
-
children: /* @__PURE__ */ a.jsx(pt, { text:
|
|
6308
|
+
children: /* @__PURE__ */ a.jsx(pt, { text: b.label, variant: b.status })
|
|
6308
6309
|
},
|
|
6309
|
-
|
|
6310
|
+
b.value
|
|
6310
6311
|
))) })
|
|
6311
6312
|
}
|
|
6312
6313
|
)
|
|
@@ -6728,14 +6729,14 @@ const We = {
|
|
|
6728
6729
|
value: "text-sm text-dark-30 font-semibold"
|
|
6729
6730
|
}, Wl = Ve(
|
|
6730
6731
|
({ classNames: e, disabled: n, onChange: t, placeholder: r = "Choose", value: o, label: i }, l) => {
|
|
6731
|
-
const [d, u] = F(!1), [s, c] = F([]), [p, h] = F(""), [g,
|
|
6732
|
+
const [d, u] = F(!1), [s, c] = F([]), [p, h] = F(""), [g, q] = F(""), [v, x] = F(null), V = an(s)(o), b = ke.base, C = ke.options, E = ke.disabled.trigger, R = ke.disabled.triggerText, w = ({
|
|
6732
6733
|
className: j,
|
|
6733
6734
|
text: T = ""
|
|
6734
6735
|
}) => /* @__PURE__ */ a.jsx(
|
|
6735
6736
|
I,
|
|
6736
6737
|
{
|
|
6737
6738
|
className: f(
|
|
6738
|
-
|
|
6739
|
+
b.placeholder,
|
|
6739
6740
|
n && R,
|
|
6740
6741
|
j
|
|
6741
6742
|
),
|
|
@@ -6743,12 +6744,12 @@ const We = {
|
|
|
6743
6744
|
}
|
|
6744
6745
|
), Q = () => {
|
|
6745
6746
|
if (p && !s.find((j) => j.label === p)) {
|
|
6746
|
-
if (
|
|
6747
|
+
if (v)
|
|
6747
6748
|
c(
|
|
6748
6749
|
(j) => j.map(
|
|
6749
|
-
(T) => T.value ===
|
|
6750
|
+
(T) => T.value === v ? { ...T, label: p, value: p } : T
|
|
6750
6751
|
)
|
|
6751
|
-
), g ===
|
|
6752
|
+
), g === v && (q(p), t(p)), x(null);
|
|
6752
6753
|
else {
|
|
6753
6754
|
const j = {
|
|
6754
6755
|
label: p,
|
|
@@ -6759,7 +6760,7 @@ const We = {
|
|
|
6759
6760
|
h("");
|
|
6760
6761
|
}
|
|
6761
6762
|
}, B = (j) => {
|
|
6762
|
-
c((T) => T.filter((M) => M.value !== j)), g === j && (
|
|
6763
|
+
c((T) => T.filter((M) => M.value !== j)), g === j && (q(""), t(""));
|
|
6763
6764
|
}, y = (j) => {
|
|
6764
6765
|
const T = s.find((M) => M.value === j);
|
|
6765
6766
|
T && (h(T.label), x(j));
|
|
@@ -6777,18 +6778,18 @@ const We = {
|
|
|
6777
6778
|
role: "listbox",
|
|
6778
6779
|
disabled: n,
|
|
6779
6780
|
className: f(
|
|
6780
|
-
|
|
6781
|
-
n &&
|
|
6782
|
-
d &&
|
|
6783
|
-
!d && !n &&
|
|
6781
|
+
b.trigger,
|
|
6782
|
+
n && E,
|
|
6783
|
+
d && b.focus,
|
|
6784
|
+
!d && !n && b.hover,
|
|
6784
6785
|
e == null ? void 0 : e.trigger
|
|
6785
6786
|
),
|
|
6786
6787
|
children: [
|
|
6787
6788
|
o ? /* @__PURE__ */ a.jsx(
|
|
6788
6789
|
w,
|
|
6789
6790
|
{
|
|
6790
|
-
text:
|
|
6791
|
-
className: f(
|
|
6791
|
+
text: V == null ? void 0 : V.label,
|
|
6792
|
+
className: f(b.selected, e == null ? void 0 : e.selected)
|
|
6792
6793
|
}
|
|
6793
6794
|
) : /* @__PURE__ */ a.jsx(
|
|
6794
6795
|
w,
|
|
@@ -6797,7 +6798,7 @@ const We = {
|
|
|
6797
6798
|
className: e == null ? void 0 : e.placeholder
|
|
6798
6799
|
}
|
|
6799
6800
|
),
|
|
6800
|
-
/* @__PURE__ */ a.jsx("div", { children: d ? /* @__PURE__ */ a.jsx(Do, { className:
|
|
6801
|
+
/* @__PURE__ */ a.jsx("div", { children: d ? /* @__PURE__ */ a.jsx(Do, { className: b.icon }) : /* @__PURE__ */ a.jsx(rn, { className: b.icon }) })
|
|
6801
6802
|
]
|
|
6802
6803
|
}
|
|
6803
6804
|
),
|
|
@@ -6814,7 +6815,7 @@ const We = {
|
|
|
6814
6815
|
{
|
|
6815
6816
|
inputProps: {
|
|
6816
6817
|
classNames: { target: "px-3 py-[9px]" },
|
|
6817
|
-
placeholder:
|
|
6818
|
+
placeholder: v ? "Редактировать тип договора" : "Тип договора",
|
|
6818
6819
|
value: p,
|
|
6819
6820
|
onChange: (j) => h(j.target.value),
|
|
6820
6821
|
onKeyDown: (j) => {
|
|
@@ -6832,10 +6833,10 @@ const We = {
|
|
|
6832
6833
|
{
|
|
6833
6834
|
className: f(
|
|
6834
6835
|
C.items,
|
|
6835
|
-
|
|
6836
|
+
v === j.value && "opacity-50"
|
|
6836
6837
|
),
|
|
6837
6838
|
onClick: (T) => {
|
|
6838
|
-
T.stopPropagation(), T.preventDefault(),
|
|
6839
|
+
T.stopPropagation(), T.preventDefault(), v !== j.value && q(j.value);
|
|
6839
6840
|
},
|
|
6840
6841
|
children: [
|
|
6841
6842
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -6848,7 +6849,7 @@ const We = {
|
|
|
6848
6849
|
),
|
|
6849
6850
|
children: [
|
|
6850
6851
|
j.label,
|
|
6851
|
-
|
|
6852
|
+
v === j.value && " (редактируется...)"
|
|
6852
6853
|
]
|
|
6853
6854
|
}
|
|
6854
6855
|
),
|
|
@@ -6870,7 +6871,7 @@ const We = {
|
|
|
6870
6871
|
width: 20,
|
|
6871
6872
|
viewBox: "0 0 31 31"
|
|
6872
6873
|
},
|
|
6873
|
-
disabled:
|
|
6874
|
+
disabled: v === j.value
|
|
6874
6875
|
}
|
|
6875
6876
|
),
|
|
6876
6877
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6890,7 +6891,7 @@ const We = {
|
|
|
6890
6891
|
width: 20,
|
|
6891
6892
|
viewBox: "0 0 30 30"
|
|
6892
6893
|
},
|
|
6893
|
-
disabled:
|
|
6894
|
+
disabled: v === j.value
|
|
6894
6895
|
}
|
|
6895
6896
|
)
|
|
6896
6897
|
] })
|
|
@@ -7399,7 +7400,7 @@ const ke = {
|
|
|
7399
7400
|
sideOffset: 4,
|
|
7400
7401
|
side: "top",
|
|
7401
7402
|
className: Nt.wrapper,
|
|
7402
|
-
children: Ml.map(({ id: c, icon: p, iconSizes: h, isDanger: g, text:
|
|
7403
|
+
children: Ml.map(({ id: c, icon: p, iconSizes: h, isDanger: g, text: q }) => /* @__PURE__ */ a.jsx(
|
|
7403
7404
|
z,
|
|
7404
7405
|
{
|
|
7405
7406
|
"data-testid": "action",
|
|
@@ -7412,7 +7413,7 @@ const ke = {
|
|
|
7412
7413
|
icon: g ? u : l,
|
|
7413
7414
|
base: g ? s : d
|
|
7414
7415
|
},
|
|
7415
|
-
children:
|
|
7416
|
+
children: q
|
|
7416
7417
|
},
|
|
7417
7418
|
c
|
|
7418
7419
|
))
|
|
@@ -7455,8 +7456,8 @@ const ke = {
|
|
|
7455
7456
|
statusModal: i,
|
|
7456
7457
|
onFloorDelete: l
|
|
7457
7458
|
}) => {
|
|
7458
|
-
const [d, u] = F(!1), [s, c] = F(!1), [p, h] = F(!1), [g,
|
|
7459
|
-
|
|
7459
|
+
const [d, u] = F(!1), [s, c] = F(!1), [p, h] = F(!1), [g, q] = F(!1), v = e == null ? void 0 : e.find(({ id: m }) => m === n), x = (m, V) => {
|
|
7460
|
+
m.stopPropagation(), r(V || ""), u(!1);
|
|
7460
7461
|
};
|
|
7461
7462
|
return /* @__PURE__ */ a.jsxs("div", { className: "min-w-[170px]", children: [
|
|
7462
7463
|
/* @__PURE__ */ a.jsxs(pe, { open: d, onOpenChange: u, children: [
|
|
@@ -7470,37 +7471,37 @@ const ke = {
|
|
|
7470
7471
|
!d && Ke.hover
|
|
7471
7472
|
),
|
|
7472
7473
|
children: [
|
|
7473
|
-
n ?
|
|
7474
|
+
n ? v == null ? void 0 : v.name.ru : t,
|
|
7474
7475
|
/* @__PURE__ */ a.jsx(rn, { className: f(Ke.icon, d && "rotate-180") })
|
|
7475
7476
|
]
|
|
7476
7477
|
}
|
|
7477
7478
|
),
|
|
7478
7479
|
/* @__PURE__ */ a.jsxs(ve, { className: Ke.content, children: [
|
|
7479
|
-
e && e.map(({ name:
|
|
7480
|
+
e && e.map(({ name: m, id: V }) => /* @__PURE__ */ a.jsx(
|
|
7480
7481
|
Yl,
|
|
7481
7482
|
{
|
|
7482
|
-
floorId:
|
|
7483
|
-
floorName:
|
|
7483
|
+
floorId: V,
|
|
7484
|
+
floorName: m,
|
|
7484
7485
|
selectedFloorId: n,
|
|
7485
7486
|
onSelect: x,
|
|
7486
7487
|
onEdit: () => o(
|
|
7487
7488
|
p,
|
|
7488
7489
|
() => h(!1),
|
|
7489
7490
|
"edit",
|
|
7490
|
-
|
|
7491
|
-
|
|
7491
|
+
V,
|
|
7492
|
+
m
|
|
7492
7493
|
),
|
|
7493
7494
|
onDelete: () => i(
|
|
7494
7495
|
g,
|
|
7495
|
-
() =>
|
|
7496
|
+
() => q(!1),
|
|
7496
7497
|
() => {
|
|
7497
|
-
l(
|
|
7498
|
+
l(V), V === n && r("");
|
|
7498
7499
|
}
|
|
7499
7500
|
),
|
|
7500
7501
|
setOpenEditModal: h,
|
|
7501
|
-
setOpenStatusModal:
|
|
7502
|
+
setOpenStatusModal: q
|
|
7502
7503
|
},
|
|
7503
|
-
|
|
7504
|
+
V
|
|
7504
7505
|
)),
|
|
7505
7506
|
/* @__PURE__ */ a.jsx(
|
|
7506
7507
|
z,
|
|
@@ -7692,7 +7693,7 @@ export {
|
|
|
7692
7693
|
ie as s,
|
|
7693
7694
|
$ as t,
|
|
7694
7695
|
Re as u,
|
|
7695
|
-
|
|
7696
|
+
ge as v,
|
|
7696
7697
|
pd as w,
|
|
7697
7698
|
Ht as x,
|
|
7698
7699
|
Ce as y,
|