urfu-ui-kit-react 1.11.3 → 1.11.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ii = Object.defineProperty;
|
|
2
2
|
var Li = (n, r, t) => r in n ? Ii(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t;
|
|
3
3
|
var te = (n, r, t) => Li(n, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { jsxs as
|
|
4
|
+
import { jsxs as T, jsx as f, Fragment as Re } from "react/jsx-runtime";
|
|
5
5
|
import * as fe from "react";
|
|
6
|
-
import R, { useId as _o, useLayoutEffect as Ft, useEffect as ae, cloneElement as So, createRef as Wt, Component as Be, useRef as re, useCallback as
|
|
6
|
+
import R, { useId as _o, useLayoutEffect as Ft, useEffect as ae, cloneElement as So, createRef as Wt, Component as Be, useRef as re, useCallback as Te, createElement as Co, forwardRef as Yi, useState as j, useMemo as Xe, createContext as Ai, useContext as Fi } from "react";
|
|
7
7
|
import * as Wi from "react-dom";
|
|
8
8
|
import $i, { createPortal as Ln } from "react-dom";
|
|
9
9
|
const et = (n, r = "u") => {
|
|
@@ -16,7 +16,7 @@ const et = (n, r = "u") => {
|
|
|
16
16
|
className: e = ""
|
|
17
17
|
}) => {
|
|
18
18
|
const o = `u-accordion${et(r, "auto")}`;
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ T("div", { className: `u-accordion ${e}`, children: [
|
|
20
20
|
/* @__PURE__ */ f("div", { className: "u-accordion-title", children: n }),
|
|
21
21
|
/* @__PURE__ */ f("input", { className: "u-accordion-input", type: "checkbox", id: o }),
|
|
22
22
|
/* @__PURE__ */ f("label", { className: "u-accordion-toggle", htmlFor: o }),
|
|
@@ -51,8 +51,8 @@ const et = (n, r = "u") => {
|
|
|
51
51
|
};
|
|
52
52
|
return /* @__PURE__ */ f("div", { className: `u-breadcrumbs ${r}`.trim(), children: e.map((o, i) => {
|
|
53
53
|
const s = Hi(o) && !!o.to, l = s ? "th clr-blue-main" : "tt clr-gray-60", u = `u-breadcrumbs__item ${s ? `ucp ${l}` : l}`.trim(), c = i < e.length - 1;
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ T("div", { className: "u-breadcrumbs__entry", children: [
|
|
55
|
+
/* @__PURE__ */ T("div", { className: u, onClick: () => s && a(o.to), children: [
|
|
56
56
|
i === 0 ? /* @__PURE__ */ f(Ct, { name: "left-arrow", className: "clr-blue-main", size: "16px" }) : null,
|
|
57
57
|
o.label
|
|
58
58
|
] }),
|
|
@@ -110,7 +110,7 @@ const et = (n, r = "u") => {
|
|
|
110
110
|
const b = String(w).trim(), y = b.match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
111
111
|
return y ? `calc(${y[1]} * var(--u-unit, 1px))` : b;
|
|
112
112
|
};
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ T(
|
|
114
114
|
"button",
|
|
115
115
|
{
|
|
116
116
|
className: `${d(r)}${p(t)}${h(o, r)} ${c}`,
|
|
@@ -234,14 +234,14 @@ function or(n, r) {
|
|
|
234
234
|
function Nt(n, r) {
|
|
235
235
|
return lt(n, r * 12);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ta(n) {
|
|
238
238
|
let r;
|
|
239
239
|
return n.forEach(function(t) {
|
|
240
240
|
const e = ee(t);
|
|
241
241
|
(r === void 0 || r < e || isNaN(Number(e))) && (r = e);
|
|
242
242
|
}), r || /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Oa(n) {
|
|
245
245
|
let r;
|
|
246
246
|
return n.forEach((t) => {
|
|
247
247
|
const e = ee(t);
|
|
@@ -287,11 +287,11 @@ function Pa(n, r) {
|
|
|
287
287
|
const t = n.getFullYear() - r.getFullYear() || n.getMonth() - r.getMonth() || n.getDate() - r.getDate() || n.getHours() - r.getHours() || n.getMinutes() - r.getMinutes() || n.getSeconds() - r.getSeconds() || n.getMilliseconds() - r.getMilliseconds();
|
|
288
288
|
return t < 0 ? -1 : t > 0 ? 1 : t;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function To(n) {
|
|
291
291
|
const r = ee(n);
|
|
292
292
|
return r.setHours(23, 59, 59, 999), r;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Oo(n) {
|
|
295
295
|
const r = ee(n), t = r.getMonth();
|
|
296
296
|
return r.setFullYear(r.getFullYear(), t + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
297
297
|
}
|
|
@@ -1361,7 +1361,7 @@ const Ya = (n, r) => {
|
|
|
1361
1361
|
default:
|
|
1362
1362
|
return r.time({ width: "full" });
|
|
1363
1363
|
}
|
|
1364
|
-
},
|
|
1364
|
+
}, Ts = (n, r) => {
|
|
1365
1365
|
const t = n.match(/(P+)(p+)?/) || [], e = t[1], a = t[2];
|
|
1366
1366
|
if (!a)
|
|
1367
1367
|
return Ya(n, r);
|
|
@@ -1384,10 +1384,10 @@ const Ya = (n, r) => {
|
|
|
1384
1384
|
return o.replace("{{date}}", Ya(e, r)).replace("{{time}}", Ao(a, r));
|
|
1385
1385
|
}, ur = {
|
|
1386
1386
|
p: Ao,
|
|
1387
|
-
P:
|
|
1388
|
-
},
|
|
1387
|
+
P: Ts
|
|
1388
|
+
}, Os = /^D+$/, Ps = /^Y+$/, Rs = ["D", "DD", "YY", "YYYY"];
|
|
1389
1389
|
function Fo(n) {
|
|
1390
|
-
return
|
|
1390
|
+
return Os.test(n);
|
|
1391
1391
|
}
|
|
1392
1392
|
function Wo(n) {
|
|
1393
1393
|
return Ps.test(n);
|
|
@@ -2896,7 +2896,7 @@ class El extends ke {
|
|
|
2896
2896
|
);
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
|
-
class
|
|
2899
|
+
class Tl extends ke {
|
|
2900
2900
|
constructor() {
|
|
2901
2901
|
super(...arguments);
|
|
2902
2902
|
te(this, "priority", 40);
|
|
@@ -2909,7 +2909,7 @@ class Ol extends ke {
|
|
|
2909
2909
|
return [Se(t, a * 1e3), { timestampIsSet: !0 }];
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
class
|
|
2912
|
+
class Ol extends ke {
|
|
2913
2913
|
constructor() {
|
|
2914
2914
|
super(...arguments);
|
|
2915
2915
|
te(this, "priority", 20);
|
|
@@ -2952,12 +2952,12 @@ const Pl = {
|
|
|
2952
2952
|
S: new Nl(),
|
|
2953
2953
|
X: new Ml(),
|
|
2954
2954
|
x: new El(),
|
|
2955
|
-
t: new
|
|
2956
|
-
T: new
|
|
2955
|
+
t: new Tl(),
|
|
2956
|
+
T: new Ol()
|
|
2957
2957
|
}, Rl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Il = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ll = /^'([^]*?)'?$/, Yl = /''/g, Al = /\S/, Fl = /[a-zA-Z]/;
|
|
2958
2958
|
function Yr(n, r, t, e) {
|
|
2959
|
-
var v, w, b, y, D, C, _,
|
|
2960
|
-
const a = Gs(), o = (e == null ? void 0 : e.locale) ?? a.locale ?? Lo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (v = e == null ? void 0 : e.locale) == null ? void 0 : v.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (b = a.locale) == null ? void 0 : b.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((C = (D = e == null ? void 0 : e.locale) == null ? void 0 : D.options) == null ? void 0 : C.weekStartsOn) ?? a.weekStartsOn ?? ((
|
|
2959
|
+
var v, w, b, y, D, C, _, O;
|
|
2960
|
+
const a = Gs(), o = (e == null ? void 0 : e.locale) ?? a.locale ?? Lo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (v = e == null ? void 0 : e.locale) == null ? void 0 : v.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (b = a.locale) == null ? void 0 : b.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((C = (D = e == null ? void 0 : e.locale) == null ? void 0 : D.options) == null ? void 0 : C.weekStartsOn) ?? a.weekStartsOn ?? ((O = (_ = a.locale) == null ? void 0 : _.options) == null ? void 0 : O.weekStartsOn) ?? 0;
|
|
2961
2961
|
if (r === "")
|
|
2962
2962
|
return n === "" ? ee(t) : Se(t, NaN);
|
|
2963
2963
|
const l = {
|
|
@@ -3046,7 +3046,7 @@ function Bl(n, r) {
|
|
|
3046
3046
|
const t = ee(n), e = ee(r);
|
|
3047
3047
|
return t.getFullYear() === e.getFullYear();
|
|
3048
3048
|
}
|
|
3049
|
-
function
|
|
3049
|
+
function Tn(n, r) {
|
|
3050
3050
|
const t = +ee(n), [e, a] = [
|
|
3051
3051
|
+ee(r.start),
|
|
3052
3052
|
+ee(r.end)
|
|
@@ -3311,15 +3311,15 @@ function jo(n) {
|
|
|
3311
3311
|
const r = Ht(n);
|
|
3312
3312
|
return vn(r) ? n.ownerDocument ? n.ownerDocument.body : n.body : yt(r) && Yn(r) ? r : jo(r);
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function On(n, r, t) {
|
|
3315
3315
|
var e;
|
|
3316
3316
|
r === void 0 && (r = []), t === void 0 && (t = !0);
|
|
3317
3317
|
const a = jo(n), o = a === ((e = n.ownerDocument) == null ? void 0 : e.body), i = Je(a);
|
|
3318
3318
|
if (o) {
|
|
3319
3319
|
const s = ea(i);
|
|
3320
|
-
return r.concat(i, i.visualViewport || [], Yn(a) ? a : [], s && t ?
|
|
3320
|
+
return r.concat(i, i.visualViewport || [], Yn(a) ? a : [], s && t ? On(s) : []);
|
|
3321
3321
|
}
|
|
3322
|
-
return r.concat(a,
|
|
3322
|
+
return r.concat(a, On(a, [], t));
|
|
3323
3323
|
}
|
|
3324
3324
|
function ea(n) {
|
|
3325
3325
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
@@ -3604,9 +3604,9 @@ const yc = (n) => ({
|
|
|
3604
3604
|
const d = Ko(c), p = {
|
|
3605
3605
|
x: t,
|
|
3606
3606
|
y: e
|
|
3607
|
-
}, h = pa(a), m = da(h), v = await i.getDimensions(u), w = h === "y", b = w ? "top" : "left", y = w ? "bottom" : "right", D = w ? "clientHeight" : "clientWidth", C = o.reference[m] + o.reference[h] - p[h] - o.floating[m], _ = p[h] - o.reference[h],
|
|
3608
|
-
let k =
|
|
3609
|
-
(!k || !await (i.isElement == null ? void 0 : i.isElement(
|
|
3607
|
+
}, h = pa(a), m = da(h), v = await i.getDimensions(u), w = h === "y", b = w ? "top" : "left", y = w ? "bottom" : "right", D = w ? "clientHeight" : "clientWidth", C = o.reference[m] + o.reference[h] - p[h] - o.floating[m], _ = p[h] - o.reference[h], O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
3608
|
+
let k = O ? O[D] : 0;
|
|
3609
|
+
(!k || !await (i.isElement == null ? void 0 : i.isElement(O))) && (k = s.floating[D] || o.floating[m]);
|
|
3610
3610
|
const g = C / 2 - _ / 2, S = k / 2 - v[m] / 2 - 1, M = bn(d[b], S), I = bn(d[y], S), F = M, W = k - v[m] - I, Q = k / 2 - v[m] / 2 + g, G = dc(F, Q, W), H = !l.arrow && An(a) != null && Q !== G && o.reference[m] / 2 - (Q < F ? M : I) - v[m] / 2 < 0, x = H ? Q < F ? Q - F : Q - W : 0;
|
|
3611
3611
|
return {
|
|
3612
3612
|
[h]: p[h] + x,
|
|
@@ -3644,8 +3644,8 @@ const yc = (n) => ({
|
|
|
3644
3644
|
} = Cr(n, r);
|
|
3645
3645
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
3646
3646
|
return {};
|
|
3647
|
-
const b = wn(a), y = Pn(s), D = wn(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = p || (D || !v ? [fr(s)] : hc(s)),
|
|
3648
|
-
!p &&
|
|
3647
|
+
const b = wn(a), y = Pn(s), D = wn(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = p || (D || !v ? [fr(s)] : hc(s)), O = m !== "none";
|
|
3648
|
+
!p && O && _.push(...gc(s, v, m, C));
|
|
3649
3649
|
const k = [s, ..._], g = await wc(r, w), S = [];
|
|
3650
3650
|
let M = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
3651
3651
|
if (c && S.push(g[b]), d) {
|
|
@@ -3674,7 +3674,7 @@ const yc = (n) => ({
|
|
|
3674
3674
|
case "bestFit": {
|
|
3675
3675
|
var W;
|
|
3676
3676
|
const x = (W = M.filter((E) => {
|
|
3677
|
-
if (
|
|
3677
|
+
if (O) {
|
|
3678
3678
|
const N = Pn(E.placement);
|
|
3679
3679
|
return N === y || // Create a bias to the `y` side axis due to horizontal
|
|
3680
3680
|
// reading directions favoring greater width.
|
|
@@ -3882,7 +3882,7 @@ function Ec(n, r) {
|
|
|
3882
3882
|
y: l
|
|
3883
3883
|
};
|
|
3884
3884
|
}
|
|
3885
|
-
function
|
|
3885
|
+
function Tc(n, r) {
|
|
3886
3886
|
const t = tn(n, !0, r === "fixed"), e = t.top + n.clientTop, a = t.left + n.clientLeft, o = yt(n) ? pn(n) : wt(1), i = n.clientWidth * o.x, s = n.clientHeight * o.y, l = a * o.x, u = e * o.y;
|
|
3887
3887
|
return {
|
|
3888
3888
|
width: i,
|
|
@@ -3898,7 +3898,7 @@ function Ga(n, r, t) {
|
|
|
3898
3898
|
else if (r === "document")
|
|
3899
3899
|
e = Mc(xt(n));
|
|
3900
3900
|
else if (je(r))
|
|
3901
|
-
e =
|
|
3901
|
+
e = Tc(r, t);
|
|
3902
3902
|
else {
|
|
3903
3903
|
const a = Uo(n);
|
|
3904
3904
|
e = {
|
|
@@ -3914,11 +3914,11 @@ function Zo(n, r) {
|
|
|
3914
3914
|
const t = Ht(n);
|
|
3915
3915
|
return t === r || !je(t) || vn(t) ? !1 : at(t).position === "fixed" || Zo(t, r);
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3917
|
+
function Oc(n, r) {
|
|
3918
3918
|
const t = r.get(n);
|
|
3919
3919
|
if (t)
|
|
3920
3920
|
return t;
|
|
3921
|
-
let e =
|
|
3921
|
+
let e = On(n, [], !1).filter((s) => je(s) && Dn(s) !== "body"), a = null;
|
|
3922
3922
|
const o = at(n).position === "fixed";
|
|
3923
3923
|
let i = o ? Ht(n) : n;
|
|
3924
3924
|
for (; je(i) && !vn(i); ) {
|
|
@@ -3934,7 +3934,7 @@ function Pc(n) {
|
|
|
3934
3934
|
rootBoundary: e,
|
|
3935
3935
|
strategy: a
|
|
3936
3936
|
} = n;
|
|
3937
|
-
const i = [...t === "clippingAncestors" ? _r(r) ? [] :
|
|
3937
|
+
const i = [...t === "clippingAncestors" ? _r(r) ? [] : Oc(r, this._c) : [].concat(t), e], s = i[0], l = i.reduce((u, c) => {
|
|
3938
3938
|
const d = Ga(r, c, a);
|
|
3939
3939
|
return u.top = Xt(d.top, u.top), u.right = bn(d.right, u.right), u.bottom = bn(d.bottom, u.bottom), u.left = Xt(d.left, u.left), u;
|
|
3940
3940
|
}, Ga(r, s, a));
|
|
@@ -4056,8 +4056,8 @@ function Fc(n, r) {
|
|
|
4056
4056
|
threshold: Xt(0, bn(1, l)) || 1
|
|
4057
4057
|
};
|
|
4058
4058
|
let C = !0;
|
|
4059
|
-
function _(
|
|
4060
|
-
const k =
|
|
4059
|
+
function _(O) {
|
|
4060
|
+
const k = O[0].intersectionRatio;
|
|
4061
4061
|
if (k !== l) {
|
|
4062
4062
|
if (!C)
|
|
4063
4063
|
return i();
|
|
@@ -4088,7 +4088,7 @@ function Wc(n, r, t, e) {
|
|
|
4088
4088
|
elementResize: i = typeof ResizeObserver == "function",
|
|
4089
4089
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
4090
4090
|
animationFrame: l = !1
|
|
4091
|
-
} = e, u = fa(n), c = a || o ? [...u ?
|
|
4091
|
+
} = e, u = fa(n), c = a || o ? [...u ? On(u) : [], ...On(r)] : [];
|
|
4092
4092
|
c.forEach((b) => {
|
|
4093
4093
|
a && b.addEventListener("scroll", t, {
|
|
4094
4094
|
passive: !0
|
|
@@ -4197,18 +4197,18 @@ function Gc(n) {
|
|
|
4197
4197
|
}), [p, h] = fe.useState(e);
|
|
4198
4198
|
mr(p, e) || h(e);
|
|
4199
4199
|
const [m, v] = fe.useState(null), [w, b] = fe.useState(null), y = fe.useCallback((E) => {
|
|
4200
|
-
E !==
|
|
4200
|
+
E !== O.current && (O.current = E, v(E));
|
|
4201
4201
|
}, []), D = fe.useCallback((E) => {
|
|
4202
4202
|
E !== k.current && (k.current = E, b(E));
|
|
4203
|
-
}, []), C = o || m, _ = i || w,
|
|
4204
|
-
if (!
|
|
4203
|
+
}, []), C = o || m, _ = i || w, O = fe.useRef(null), k = fe.useRef(null), g = fe.useRef(c), S = l != null, M = Wr(l), I = Wr(a), F = Wr(u), W = fe.useCallback(() => {
|
|
4204
|
+
if (!O.current || !k.current)
|
|
4205
4205
|
return;
|
|
4206
4206
|
const E = {
|
|
4207
4207
|
placement: r,
|
|
4208
4208
|
strategy: t,
|
|
4209
4209
|
middleware: p
|
|
4210
4210
|
};
|
|
4211
|
-
I.current && (E.platform = I.current), Bc(
|
|
4211
|
+
I.current && (E.platform = I.current), Bc(O.current, k.current, E).then((N) => {
|
|
4212
4212
|
const A = {
|
|
4213
4213
|
...N,
|
|
4214
4214
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -4232,14 +4232,14 @@ function Gc(n) {
|
|
|
4232
4232
|
tr(() => (Q.current = !0, () => {
|
|
4233
4233
|
Q.current = !1;
|
|
4234
4234
|
}), []), tr(() => {
|
|
4235
|
-
if (C && (
|
|
4235
|
+
if (C && (O.current = C), _ && (k.current = _), C && _) {
|
|
4236
4236
|
if (M.current)
|
|
4237
4237
|
return M.current(C, _, W);
|
|
4238
4238
|
W();
|
|
4239
4239
|
}
|
|
4240
4240
|
}, [C, _, W, M, S]);
|
|
4241
4241
|
const G = fe.useMemo(() => ({
|
|
4242
|
-
reference:
|
|
4242
|
+
reference: O,
|
|
4243
4243
|
floating: k,
|
|
4244
4244
|
setReference: y,
|
|
4245
4245
|
setFloating: D
|
|
@@ -4389,9 +4389,9 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
|
|
|
4389
4389
|
at(a).direction === "rtl" && D(!0);
|
|
4390
4390
|
}, [a]), !a)
|
|
4391
4391
|
return null;
|
|
4392
|
-
const [C, _] = e.split("-"),
|
|
4392
|
+
const [C, _] = e.split("-"), O = C === "top" || C === "bottom";
|
|
4393
4393
|
let k = d;
|
|
4394
|
-
(
|
|
4394
|
+
(O && i != null && i.x || !O && i != null && i.y) && (k = null);
|
|
4395
4395
|
const g = c * 2, S = g / 2, M = s / 2 * (u / -8 + 1), I = l / 2 * u / 4, F = !!h, W = k && _ === "end" ? "bottom" : "top";
|
|
4396
4396
|
let Q = k && _ === "end" ? "right" : "left";
|
|
4397
4397
|
k && y && (Q = _ === "end" ? "left" : "right");
|
|
@@ -4401,7 +4401,7 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
|
|
|
4401
4401
|
bottom: F ? "" : "rotate(180deg)",
|
|
4402
4402
|
right: F ? "rotate(-90deg)" : "rotate(90deg)"
|
|
4403
4403
|
}[C];
|
|
4404
|
-
return /* @__PURE__ */
|
|
4404
|
+
return /* @__PURE__ */ T("svg", {
|
|
4405
4405
|
...w,
|
|
4406
4406
|
"aria-hidden": !0,
|
|
4407
4407
|
ref: t,
|
|
@@ -4413,7 +4413,7 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
|
|
|
4413
4413
|
pointerEvents: "none",
|
|
4414
4414
|
[Q]: G,
|
|
4415
4415
|
[W]: H,
|
|
4416
|
-
[C]:
|
|
4416
|
+
[C]: O || F ? "100%" : "calc(100% - " + g / 2 + "px)",
|
|
4417
4417
|
transform: [E, m].filter((N) => !!N).join(" "),
|
|
4418
4418
|
...v
|
|
4419
4419
|
},
|
|
@@ -4593,7 +4593,7 @@ var uu = function(n) {
|
|
|
4593
4593
|
}, du = function(n, r) {
|
|
4594
4594
|
var t = re(null), e = re(n);
|
|
4595
4595
|
e.current = n;
|
|
4596
|
-
var a =
|
|
4596
|
+
var a = Te(function(o) {
|
|
4597
4597
|
var i;
|
|
4598
4598
|
t.current && !t.current.contains(o.target) && (r && o.target instanceof HTMLElement && o.target.classList.contains(r) || (i = e.current) === null || i === void 0 || i.call(e, o));
|
|
4599
4599
|
}, [r]);
|
|
@@ -4714,7 +4714,7 @@ function At(n, r, t) {
|
|
|
4714
4714
|
weekStartsOn: t
|
|
4715
4715
|
});
|
|
4716
4716
|
}
|
|
4717
|
-
function
|
|
4717
|
+
function Tt(n) {
|
|
4718
4718
|
return Po(n);
|
|
4719
4719
|
}
|
|
4720
4720
|
function Nn(n) {
|
|
@@ -4727,13 +4727,13 @@ function Ua() {
|
|
|
4727
4727
|
return Jt(Ce());
|
|
4728
4728
|
}
|
|
4729
4729
|
function Xa(n) {
|
|
4730
|
-
return
|
|
4730
|
+
return To(n);
|
|
4731
4731
|
}
|
|
4732
4732
|
function vu(n) {
|
|
4733
4733
|
return Ui(n);
|
|
4734
4734
|
}
|
|
4735
4735
|
function bu(n) {
|
|
4736
|
-
return
|
|
4736
|
+
return Oo(n);
|
|
4737
4737
|
}
|
|
4738
4738
|
function dt(n, r) {
|
|
4739
4739
|
return n && r ? Bl(n, r) : !n && !r;
|
|
@@ -4751,9 +4751,9 @@ function Kt(n, r) {
|
|
|
4751
4751
|
return n && r ? zs(n, r) : !n && !r;
|
|
4752
4752
|
}
|
|
4753
4753
|
function Mn(n, r, t) {
|
|
4754
|
-
var e, a = Jt(r), o =
|
|
4754
|
+
var e, a = Jt(r), o = To(t);
|
|
4755
4755
|
try {
|
|
4756
|
-
e =
|
|
4756
|
+
e = Tn(n, { start: a, end: o });
|
|
4757
4757
|
} catch {
|
|
4758
4758
|
e = !1;
|
|
4759
4759
|
}
|
|
@@ -4798,19 +4798,19 @@ function rt(n, r) {
|
|
|
4798
4798
|
return c instanceof Date ? ve(n, c) : ve(n, c.date);
|
|
4799
4799
|
}) || i && i.some(function(c) {
|
|
4800
4800
|
var d = c.start, p = c.end;
|
|
4801
|
-
return
|
|
4801
|
+
return Tn(n, { start: d, end: p });
|
|
4802
4802
|
}) || s && !s.some(function(c) {
|
|
4803
4803
|
return ve(n, c);
|
|
4804
4804
|
}) || l && !l.some(function(c) {
|
|
4805
4805
|
var d = c.start, p = c.end;
|
|
4806
|
-
return
|
|
4806
|
+
return Tn(n, { start: d, end: p });
|
|
4807
4807
|
}) || u && !u(Ce(n)) || !1;
|
|
4808
4808
|
}
|
|
4809
4809
|
function va(n, r) {
|
|
4810
4810
|
var t = r === void 0 ? {} : r, e = t.excludeDates, a = t.excludeDateIntervals;
|
|
4811
4811
|
return a && a.length > 0 ? a.some(function(o) {
|
|
4812
4812
|
var i = o.start, s = o.end;
|
|
4813
|
-
return
|
|
4813
|
+
return Tn(n, { start: i, end: s });
|
|
4814
4814
|
}) : e && e.some(function(o) {
|
|
4815
4815
|
var i;
|
|
4816
4816
|
return o instanceof Date ? ve(n, o) : ve(n, (i = o.date) !== null && i !== void 0 ? i : /* @__PURE__ */ new Date());
|
|
@@ -4820,7 +4820,7 @@ function oi(n, r) {
|
|
|
4820
4820
|
var t = r === void 0 ? {} : r, e = t.minDate, a = t.maxDate, o = t.excludeDates, i = t.includeDates, s = t.filterDate;
|
|
4821
4821
|
return Wn(n, {
|
|
4822
4822
|
minDate: e ? Po(e) : void 0,
|
|
4823
|
-
maxDate: a ?
|
|
4823
|
+
maxDate: a ? Oo(a) : void 0
|
|
4824
4824
|
}) || (o == null ? void 0 : o.some(function(l) {
|
|
4825
4825
|
return Ue(n, l instanceof Date ? l : l.date);
|
|
4826
4826
|
})) || i && !i.some(function(l) {
|
|
@@ -4893,7 +4893,7 @@ function eo(n, r) {
|
|
|
4893
4893
|
i = Zn(i, vt(e)), i = Jn(i, bt(e)), i = er(i, Et(e));
|
|
4894
4894
|
var s;
|
|
4895
4895
|
try {
|
|
4896
|
-
s = !
|
|
4896
|
+
s = !Tn(a, { start: o, end: i });
|
|
4897
4897
|
} catch {
|
|
4898
4898
|
s = !1;
|
|
4899
4899
|
}
|
|
@@ -4949,8 +4949,8 @@ function ii(n) {
|
|
|
4949
4949
|
var e = t.filter(function(a) {
|
|
4950
4950
|
return mn(a, r) >= 0;
|
|
4951
4951
|
});
|
|
4952
|
-
return
|
|
4953
|
-
} else return t ?
|
|
4952
|
+
return Oa(e);
|
|
4953
|
+
} else return t ? Oa(t) : r;
|
|
4954
4954
|
}
|
|
4955
4955
|
function si(n) {
|
|
4956
4956
|
var r = n.maxDate, t = n.includeDates;
|
|
@@ -4958,8 +4958,8 @@ function si(n) {
|
|
|
4958
4958
|
var e = t.filter(function(a) {
|
|
4959
4959
|
return mn(a, r) <= 0;
|
|
4960
4960
|
});
|
|
4961
|
-
return
|
|
4962
|
-
} else return t ?
|
|
4961
|
+
return Ta(e);
|
|
4962
|
+
} else return t ? Ta(t) : r;
|
|
4963
4963
|
}
|
|
4964
4964
|
function oo(n, r) {
|
|
4965
4965
|
var t;
|
|
@@ -4988,7 +4988,7 @@ function Eu(n, r) {
|
|
|
4988
4988
|
return t === r[e];
|
|
4989
4989
|
});
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function Tu(n, r) {
|
|
4992
4992
|
n === void 0 && (n = []), r === void 0 && (r = "react-datepicker__day--holidays");
|
|
4993
4993
|
var t = /* @__PURE__ */ new Map();
|
|
4994
4994
|
return n.forEach(function(e) {
|
|
@@ -5006,7 +5006,7 @@ function Ou(n, r) {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
}), t;
|
|
5008
5008
|
}
|
|
5009
|
-
function
|
|
5009
|
+
function Ou(n, r, t, e, a) {
|
|
5010
5010
|
for (var o = a.length, i = [], s = 0; s < o; s++) {
|
|
5011
5011
|
var l = n, u = a[s];
|
|
5012
5012
|
u && (l = Qi(l, vt(u)), l = Ur(l, bt(u)), l = ji(l, Et(u)));
|
|
@@ -5483,7 +5483,7 @@ var Wu = (
|
|
|
5483
5483
|
}, t.isSelectedQuarter = function(e, a, o) {
|
|
5484
5484
|
return Vt(e) === a && he(e) === he(o);
|
|
5485
5485
|
}, t.renderWeeks = function() {
|
|
5486
|
-
for (var e = [], a = t.props.fixedHeight, o = 0, i = !1, s = At(
|
|
5486
|
+
for (var e = [], a = t.props.fixedHeight, o = 0, i = !1, s = At(Tt(t.props.day), t.props.locale, t.props.calendarStartDay), l = function(m) {
|
|
5487
5487
|
return t.props.showWeekPicker ? At(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
|
|
5488
5488
|
}, u = function(m) {
|
|
5489
5489
|
return t.props.showWeekPicker ? At(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
|
|
@@ -5499,10 +5499,10 @@ var Wu = (
|
|
|
5499
5499
|
return e;
|
|
5500
5500
|
}, t.onMonthClick = function(e, a) {
|
|
5501
5501
|
var o = t.isMonthDisabledForLabelDate(a), i = o.isDisabled, s = o.labelDate;
|
|
5502
|
-
i || t.handleDayClick(
|
|
5502
|
+
i || t.handleDayClick(Tt(s), e);
|
|
5503
5503
|
}, t.onMonthMouseEnter = function(e) {
|
|
5504
5504
|
var a = t.isMonthDisabledForLabelDate(e), o = a.isDisabled, i = a.labelDate;
|
|
5505
|
-
o || t.handleDayMouseEnter(
|
|
5505
|
+
o || t.handleDayMouseEnter(Tt(i));
|
|
5506
5506
|
}, t.handleMonthNavigation = function(e, a) {
|
|
5507
5507
|
var o, i, s, l;
|
|
5508
5508
|
(i = (o = t.props).setPreSelection) === null || i === void 0 || i.call(o, a), (l = (s = t.MONTH_REFS[e]) === null || s === void 0 ? void 0 : s.current) === null || l === void 0 || l.focus();
|
|
@@ -5555,13 +5555,13 @@ var Wu = (
|
|
|
5555
5555
|
t.isMonthDisabled(o) || (t.onMonthClick(e, o), c == null || c(l));
|
|
5556
5556
|
return;
|
|
5557
5557
|
}
|
|
5558
|
-
var C = D(a, u, o), _ = C.newCalculatedDate,
|
|
5558
|
+
var C = D(a, u, o), _ = C.newCalculatedDate, O = C.newCalculatedMonth;
|
|
5559
5559
|
switch (a) {
|
|
5560
5560
|
case U.ArrowRight:
|
|
5561
5561
|
case U.ArrowLeft:
|
|
5562
5562
|
case U.ArrowUp:
|
|
5563
5563
|
case U.ArrowDown:
|
|
5564
|
-
t.handleMonthNavigation(
|
|
5564
|
+
t.handleMonthNavigation(O, _);
|
|
5565
5565
|
break;
|
|
5566
5566
|
}
|
|
5567
5567
|
}
|
|
@@ -5779,7 +5779,7 @@ var Wu = (
|
|
|
5779
5779
|
}(Be)
|
|
5780
5780
|
);
|
|
5781
5781
|
function Bu(n, r) {
|
|
5782
|
-
for (var t = [], e =
|
|
5782
|
+
for (var t = [], e = Tt(n), a = Tt(r); !$t(e, a); )
|
|
5783
5783
|
t.push(Ce(e)), e = lt(e, 1);
|
|
5784
5784
|
return t;
|
|
5785
5785
|
}
|
|
@@ -5824,7 +5824,7 @@ var Gu = (
|
|
|
5824
5824
|
return t.state = {
|
|
5825
5825
|
dropdownVisible: !1
|
|
5826
5826
|
}, t.renderSelectOptions = function() {
|
|
5827
|
-
for (var e =
|
|
5827
|
+
for (var e = Tt(t.props.minDate), a = Tt(t.props.maxDate), o = []; !$t(e, a); ) {
|
|
5828
5828
|
var i = Jr(e);
|
|
5829
5829
|
o.push(R.createElement("option", { key: i, value: i }, Ee(e, t.props.dateFormat, t.props.locale))), e = lt(e, 1);
|
|
5830
5830
|
}
|
|
@@ -5832,7 +5832,7 @@ var Gu = (
|
|
|
5832
5832
|
}, t.onSelectChange = function(e) {
|
|
5833
5833
|
t.onChange(parseInt(e.target.value));
|
|
5834
5834
|
}, t.renderSelectMode = function() {
|
|
5835
|
-
return R.createElement("select", { value: Jr(
|
|
5835
|
+
return R.createElement("select", { value: Jr(Tt(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
|
|
5836
5836
|
}, t.renderReadView = function(e) {
|
|
5837
5837
|
var a = Ee(t.props.date, t.props.dateFormat, t.props.locale);
|
|
5838
5838
|
return R.createElement(
|
|
@@ -5904,7 +5904,7 @@ var Gu = (
|
|
|
5904
5904
|
}), c = 60 * Pu(s), d = c / i, p = 0; p < d; p++) {
|
|
5905
5905
|
var h = Ur(l, p * i);
|
|
5906
5906
|
if (a.push(h), u) {
|
|
5907
|
-
var m =
|
|
5907
|
+
var m = Ou(l, h, p, i, u);
|
|
5908
5908
|
a = a.concat(m);
|
|
5909
5909
|
}
|
|
5910
5910
|
}
|
|
@@ -6322,7 +6322,7 @@ var Ku = (
|
|
|
6322
6322
|
}, e.getEnabledPreSelectionDateForMonth = function(a) {
|
|
6323
6323
|
if (!rt(a, e.props))
|
|
6324
6324
|
return a;
|
|
6325
|
-
for (var o =
|
|
6325
|
+
for (var o = Tt(a), i = bu(a), s = Vi(i, o), l = null, u = 0; u <= s; u++) {
|
|
6326
6326
|
var c = st(o, u);
|
|
6327
6327
|
if (!rt(c, e.props)) {
|
|
6328
6328
|
l = c;
|
|
@@ -6412,7 +6412,7 @@ var Ku = (
|
|
|
6412
6412
|
"react-datepicker__navigation--previous"
|
|
6413
6413
|
], m = e.decreaseMonth;
|
|
6414
6414
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (m = e.decreaseYear), d && e.props.showDisabledMonthNavigation && (h.push("react-datepicker__navigation--previous--disabled"), m = void 0);
|
|
6415
|
-
var v = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, w = e.props, b = w.previousMonthButtonLabel, y = b === void 0 ? r.defaultProps.previousMonthButtonLabel : b, D = w.previousYearButtonLabel, C = D === void 0 ? r.defaultProps.previousYearButtonLabel : D, _ = e.props,
|
|
6415
|
+
var v = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, w = e.props, b = w.previousMonthButtonLabel, y = b === void 0 ? r.defaultProps.previousMonthButtonLabel : b, D = w.previousYearButtonLabel, C = D === void 0 ? r.defaultProps.previousYearButtonLabel : D, _ = e.props, O = _.previousMonthAriaLabel, k = O === void 0 ? typeof y == "string" ? y : "Previous Month" : O, g = _.previousYearAriaLabel, S = g === void 0 ? typeof C == "string" ? C : "Previous Year" : g;
|
|
6416
6416
|
return R.createElement(
|
|
6417
6417
|
"button",
|
|
6418
6418
|
{ type: "button", className: h.join(" "), onClick: m, onKeyDown: e.props.handleOnKeyDown, "aria-label": v ? S : k },
|
|
@@ -6845,10 +6845,10 @@ var Gr = "Date input not valid.", id = (
|
|
|
6845
6845
|
if (m) {
|
|
6846
6846
|
var y = b.split("-", 2).map(function(M) {
|
|
6847
6847
|
return M.trim();
|
|
6848
|
-
}), D = y[0], C = y[1], _ = $r(D ?? "", d, e.props.locale, h),
|
|
6849
|
-
if (!k && !g || _ && rt(_, e.props) ||
|
|
6848
|
+
}), D = y[0], C = y[1], _ = $r(D ?? "", d, e.props.locale, h), O = $r(C ?? "", d, e.props.locale, h), k = (v == null ? void 0 : v.getTime()) !== (_ == null ? void 0 : _.getTime()), g = (w == null ? void 0 : w.getTime()) !== (O == null ? void 0 : O.getTime());
|
|
6849
|
+
if (!k && !g || _ && rt(_, e.props) || O && rt(O, e.props))
|
|
6850
6850
|
return;
|
|
6851
|
-
(o = (a = e.props).onChange) === null || o === void 0 || o.call(a, [_,
|
|
6851
|
+
(o = (a = e.props).onChange) === null || o === void 0 || o.call(a, [_, O], l);
|
|
6852
6852
|
} else {
|
|
6853
6853
|
var S = $r(b, d, e.props.locale, h, e.props.minDate);
|
|
6854
6854
|
e.props.showTimeSelectOnly && e.props.selected && S && !ve(S, e.props.selected) && (S = ic(e.props.selected, {
|
|
@@ -6889,8 +6889,8 @@ var Gr = "Date input not valid.", id = (
|
|
|
6889
6889
|
})), e.props.inline || e.setState({
|
|
6890
6890
|
preSelection: c
|
|
6891
6891
|
}), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), h) {
|
|
6892
|
-
var C = !m && !v, _ = m && !v,
|
|
6893
|
-
C ? p == null || p([c, null], o) : _ && (c === null ? p == null || p([null, null], o) : co(c, m) ? D ? p == null || p([c, m], o) : p == null || p([c, null], o) : p == null || p([m, c], o)),
|
|
6892
|
+
var C = !m && !v, _ = m && !v, O = m && v;
|
|
6893
|
+
C ? p == null || p([c, null], o) : _ && (c === null ? p == null || p([null, null], o) : co(c, m) ? D ? p == null || p([c, m], o) : p == null || p([c, null], o) : p == null || p([m, c], o)), O && (p == null || p([c, null], o));
|
|
6894
6894
|
} else if (w) {
|
|
6895
6895
|
if (c !== null)
|
|
6896
6896
|
if (!(b != null && b.length))
|
|
@@ -6973,7 +6973,7 @@ var Gr = "Date input not valid.", id = (
|
|
|
6973
6973
|
}, e.onDayKeyDown = function(a) {
|
|
6974
6974
|
var o, i, s, l, u, c, d = e.props, p = d.minDate, h = d.maxDate, m = d.disabledKeyboardNavigation, v = d.showWeekPicker, w = d.shouldCloseOnSelect, b = d.locale, y = d.calendarStartDay, D = d.adjustDateOnChange, C = d.inline;
|
|
6975
6975
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, a), !m) {
|
|
6976
|
-
var _ = a.key,
|
|
6976
|
+
var _ = a.key, O = a.shiftKey, k = Ce(e.state.preSelection), g = function(G, H) {
|
|
6977
6977
|
var x = H;
|
|
6978
6978
|
switch (G) {
|
|
6979
6979
|
case U.ArrowRight:
|
|
@@ -6989,10 +6989,10 @@ var Gr = "Date input not valid.", id = (
|
|
|
6989
6989
|
x = or(H, 1);
|
|
6990
6990
|
break;
|
|
6991
6991
|
case U.PageUp:
|
|
6992
|
-
x =
|
|
6992
|
+
x = O ? gn(H, 1) : Ut(H, 1);
|
|
6993
6993
|
break;
|
|
6994
6994
|
case U.PageDown:
|
|
6995
|
-
x =
|
|
6995
|
+
x = O ? Nt(H, 1) : lt(H, 1);
|
|
6996
6996
|
break;
|
|
6997
6997
|
case U.Home:
|
|
6998
6998
|
x = At(H, b, y);
|
|
@@ -7056,7 +7056,7 @@ var Gr = "Date input not valid.", id = (
|
|
|
7056
7056
|
var a, o;
|
|
7057
7057
|
return !e.props.inline && !e.isCalendarOpen() ? null : R.createElement(Zu, ye({ showMonthYearDropdown: void 0, ref: function(i) {
|
|
7058
7058
|
e.calendar = i;
|
|
7059
|
-
} }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (a = e.props.dateFormatCalendar) !== null && a !== void 0 ? a : r.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays:
|
|
7059
|
+
} }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (a = e.props.dateFormatCalendar) !== null && a !== void 0 ? a : r.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays: Tu(e.modifyHolidays()), outsideClickIgnoreClass: fo, onDropdownFocus: e.handleDropdownFocus, onTimeChange: e.handleTimeChange, className: e.props.calendarClassName, container: e.props.calendarContainer, handleOnKeyDown: e.props.onKeyDown, handleOnDayKeyDown: e.onDayKeyDown, setPreSelection: e.setPreSelection, dropdownMode: (o = e.props.dropdownMode) !== null && o !== void 0 ? o : r.defaultProps.dropdownMode }), e.props.children);
|
|
7060
7060
|
}, e.renderAriaLiveRegion = function() {
|
|
7061
7061
|
var a = e.props, o = a.dateFormat, i = o === void 0 ? r.defaultProps.dateFormat : o, s = a.locale, l = e.props.showTimeInput || e.props.showTimeSelect, u = l ? "PPPPp" : "PPPP", c;
|
|
7062
7062
|
return e.props.selectsRange ? c = "Selected start date: ".concat(nt(e.props.startDate, {
|
|
@@ -7213,21 +7213,21 @@ const ld = (n) => {
|
|
|
7213
7213
|
}, It = /^\d{2}\.\d{2}\.\d{4}$/, di = Yi(({ value: n, onChange: r, onFocus: t, onBlur: e, onMouseUp: a, onKeyDown: o, onWheelDate: i, onOpenCalendar: s, onFocusChange: l, isClearable: u, wheelEdit: c = !1, ...d }, p) => {
|
|
7214
7214
|
const h = re(null), [m, v] = j(null), [w, b] = j(0), [y, D] = j(0), C = re(typeof n == "string" ? n : ""), _ = re(
|
|
7215
7215
|
typeof n == "string" && It.test(n) ? n : ""
|
|
7216
|
-
),
|
|
7216
|
+
), O = re(!1);
|
|
7217
7217
|
ae(() => {
|
|
7218
|
-
typeof n == "string" && It.test(n) && (_.current = n),
|
|
7218
|
+
typeof n == "string" && It.test(n) && (_.current = n), O.current || (C.current = typeof n == "string" ? n : "");
|
|
7219
7219
|
}, [n]);
|
|
7220
|
-
const k =
|
|
7220
|
+
const k = Te(
|
|
7221
7221
|
(x) => {
|
|
7222
7222
|
h.current = x, typeof p == "function" ? p(x) : p && (p.current = x);
|
|
7223
7223
|
},
|
|
7224
7224
|
[p]
|
|
7225
|
-
), g =
|
|
7225
|
+
), g = Te((x) => {
|
|
7226
7226
|
const E = h.current;
|
|
7227
7227
|
if (!E) return;
|
|
7228
7228
|
const [N, A] = cd(x);
|
|
7229
7229
|
E.setSelectionRange(N, A);
|
|
7230
|
-
}, []), S =
|
|
7230
|
+
}, []), S = Te(
|
|
7231
7231
|
(x) => {
|
|
7232
7232
|
requestAnimationFrame(() => {
|
|
7233
7233
|
g(x), requestAnimationFrame(() => g(x));
|
|
@@ -7259,10 +7259,10 @@ const ld = (n) => {
|
|
|
7259
7259
|
var N;
|
|
7260
7260
|
t == null || t(x), l == null || l(!0);
|
|
7261
7261
|
const E = ((N = h.current) == null ? void 0 : N.value) ?? "";
|
|
7262
|
-
C.current = It.test(E) ? E : typeof n == "string" ? n : "", It.test(C.current) && (_.current = C.current),
|
|
7262
|
+
C.current = It.test(E) ? E : typeof n == "string" ? n : "", It.test(C.current) && (_.current = C.current), O.current = !0, c && (v("day"), S("day"));
|
|
7263
7263
|
}, W = (x) => {
|
|
7264
7264
|
var X;
|
|
7265
|
-
e == null || e(x), l == null || l(!1),
|
|
7265
|
+
e == null || e(x), l == null || l(!1), O.current = !1, v(null);
|
|
7266
7266
|
const E = ((X = h.current) == null ? void 0 : X.value) ?? "";
|
|
7267
7267
|
if (It.test(E)) {
|
|
7268
7268
|
C.current = E, _.current = E;
|
|
@@ -7284,10 +7284,10 @@ const ld = (n) => {
|
|
|
7284
7284
|
return;
|
|
7285
7285
|
}
|
|
7286
7286
|
C.current = E;
|
|
7287
|
-
}, Q =
|
|
7287
|
+
}, Q = Te(
|
|
7288
7288
|
(x, E) => {
|
|
7289
7289
|
var B;
|
|
7290
|
-
|
|
7290
|
+
O.current = !0;
|
|
7291
7291
|
const N = h.current, A = (N == null ? void 0 : N.value) ?? "", X = It.test(C.current) ? C.current : It.test(A) ? A : "", J = dd(X, x, E);
|
|
7292
7292
|
if (C.current = J, _.current = J, s == null || s(), N) {
|
|
7293
7293
|
const Y = (B = Object.getOwnPropertyDescriptor(
|
|
@@ -7305,7 +7305,7 @@ const ld = (n) => {
|
|
|
7305
7305
|
v(x), S(x);
|
|
7306
7306
|
},
|
|
7307
7307
|
[r, i, s, S]
|
|
7308
|
-
), G =
|
|
7308
|
+
), G = Te(
|
|
7309
7309
|
(x) => {
|
|
7310
7310
|
const E = h.current;
|
|
7311
7311
|
if (!E || document.activeElement !== E) return;
|
|
@@ -7314,7 +7314,7 @@ const ld = (n) => {
|
|
|
7314
7314
|
Q(A, x.deltaY < 0 ? 1 : -1);
|
|
7315
7315
|
},
|
|
7316
7316
|
[m, Q]
|
|
7317
|
-
), H =
|
|
7317
|
+
), H = Te(
|
|
7318
7318
|
(x) => {
|
|
7319
7319
|
if (!c) {
|
|
7320
7320
|
o == null || o(x);
|
|
@@ -7408,11 +7408,11 @@ const fd = 100, hd = (n, r, t, e) => {
|
|
|
7408
7408
|
isActive: l = !0,
|
|
7409
7409
|
showWhenActive: u = !1
|
|
7410
7410
|
}) => {
|
|
7411
|
-
const c = re(null), d = re(null), p = re(null), [h, m] = j(!1), [v, w] = j(null), [b, y] = j(null), [D, C] = j(s), [_,
|
|
7411
|
+
const c = re(null), d = re(null), p = re(null), [h, m] = j(!1), [v, w] = j(null), [b, y] = j(null), [D, C] = j(s), [_, O] = j(!1), k = () => {
|
|
7412
7412
|
p.current && (clearTimeout(p.current), p.current = null);
|
|
7413
|
-
}, g =
|
|
7414
|
-
k(), m(!1), w(null), y(null),
|
|
7415
|
-
}, [s]), S =
|
|
7413
|
+
}, g = Te(() => {
|
|
7414
|
+
k(), m(!1), w(null), y(null), O(!1), C(s);
|
|
7415
|
+
}, [s]), S = Te((M) => {
|
|
7416
7416
|
k();
|
|
7417
7417
|
const { x: I, y: F, width: W, height: Q } = M.getBoundingClientRect();
|
|
7418
7418
|
w({ x: I, y: F, width: W, height: Q, scrollY: window.scrollY }), m(!0);
|
|
@@ -7425,7 +7425,7 @@ const fd = 100, hd = (n, r, t, e) => {
|
|
|
7425
7425
|
C(W.placement), y({ x: W.x, y: W.y });
|
|
7426
7426
|
}, [t, h, v, s, a]), ae(() => {
|
|
7427
7427
|
if (b)
|
|
7428
|
-
return p.current = setTimeout(() =>
|
|
7428
|
+
return p.current = setTimeout(() => O(!0), fd), k;
|
|
7429
7429
|
}, [b]), ae(() => {
|
|
7430
7430
|
l || g();
|
|
7431
7431
|
}, [l, g]), ae(() => {
|
|
@@ -7442,7 +7442,7 @@ const fd = 100, hd = (n, r, t, e) => {
|
|
|
7442
7442
|
}
|
|
7443
7443
|
const M = c.current;
|
|
7444
7444
|
M && S(M);
|
|
7445
|
-
}, [u, t, l, g, S]), ae(() => k, []), t ? /* @__PURE__ */
|
|
7445
|
+
}, [u, t, l, g, S]), ae(() => k, []), t ? /* @__PURE__ */ T(
|
|
7446
7446
|
"div",
|
|
7447
7447
|
{
|
|
7448
7448
|
ref: c,
|
|
@@ -7490,7 +7490,7 @@ const fd = 100, hd = (n, r, t, e) => {
|
|
|
7490
7490
|
/* @__PURE__ */ f("div", { children: n })
|
|
7491
7491
|
]
|
|
7492
7492
|
}
|
|
7493
|
-
) : /* @__PURE__ */
|
|
7493
|
+
) : /* @__PURE__ */ T("div", { style: o, className: `u-help ${r}`, children: [
|
|
7494
7494
|
/* @__PURE__ */ f("div", { className: `u-help-tooltip u-help-tooltip--${s}`, children: a }),
|
|
7495
7495
|
/* @__PURE__ */ f("div", { children: n })
|
|
7496
7496
|
] });
|
|
@@ -7767,7 +7767,7 @@ const Cd = {
|
|
|
7767
7767
|
narrow: ["1", "2", "3", "4"],
|
|
7768
7768
|
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
7769
7769
|
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
7770
|
-
},
|
|
7770
|
+
}, Td = {
|
|
7771
7771
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
7772
7772
|
abbreviated: [
|
|
7773
7773
|
"янв.",
|
|
@@ -7797,7 +7797,7 @@ const Cd = {
|
|
|
7797
7797
|
"ноябрь",
|
|
7798
7798
|
"декабрь"
|
|
7799
7799
|
]
|
|
7800
|
-
},
|
|
7800
|
+
}, Od = {
|
|
7801
7801
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
7802
7802
|
abbreviated: [
|
|
7803
7803
|
"янв.",
|
|
@@ -7918,9 +7918,9 @@ const Cd = {
|
|
|
7918
7918
|
argumentCallback: (n) => n - 1
|
|
7919
7919
|
}),
|
|
7920
7920
|
month: pt({
|
|
7921
|
-
values:
|
|
7921
|
+
values: Td,
|
|
7922
7922
|
defaultWidth: "wide",
|
|
7923
|
-
formattingValues:
|
|
7923
|
+
formattingValues: Od,
|
|
7924
7924
|
defaultFormattingWidth: "wide"
|
|
7925
7925
|
}),
|
|
7926
7926
|
day: pt({
|
|
@@ -8050,20 +8050,22 @@ const Cd = {
|
|
|
8050
8050
|
firstWeekContainsDate: 1
|
|
8051
8051
|
}
|
|
8052
8052
|
}, Xd = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, yn = ({ isOpen: n, duration: r = 140, disabled: t = !1 }) => {
|
|
8053
|
-
const e = t || Xd(), [a, o] = j(n), [i, s] = j(n ? "open" : "closed"), l
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8053
|
+
const e = t || Xd(), [a, o] = j(n), [i, s] = j(n ? "open" : "closed"), [l, u] = j(n);
|
|
8054
|
+
l !== n && (u(n), e ? (o(n), s(n ? "open" : "closed")) : n ? (o(!0), s("entering")) : s(a ? "exiting" : "closed"));
|
|
8055
|
+
const c = re(null), d = re(0), p = re(a);
|
|
8056
|
+
return p.current = a, ae(() => {
|
|
8057
|
+
const h = () => {
|
|
8058
|
+
c.current && clearTimeout(c.current), d.current && cancelAnimationFrame(d.current), c.current = null, d.current = 0;
|
|
8057
8059
|
};
|
|
8058
|
-
if (
|
|
8060
|
+
if (h(), e) {
|
|
8059
8061
|
o(n), s(n ? "open" : "closed");
|
|
8060
8062
|
return;
|
|
8061
8063
|
}
|
|
8062
|
-
return n ? (o(!0), s("entering"),
|
|
8063
|
-
|
|
8064
|
-
}),
|
|
8064
|
+
return n ? (o(!0), s("entering"), d.current = requestAnimationFrame(() => {
|
|
8065
|
+
d.current = requestAnimationFrame(() => s("open"));
|
|
8066
|
+
}), h) : p.current ? (s("exiting"), c.current = setTimeout(() => {
|
|
8065
8067
|
o(!1), s("closed");
|
|
8066
|
-
}, r),
|
|
8068
|
+
}, r), h) : (s("closed"), h);
|
|
8067
8069
|
}, [n, r, e]), { shouldRender: a, status: i, isAnimated: !e };
|
|
8068
8070
|
}, Zd = "medium", Jd = (n, r) => n || (r ? "small" : Zd), rn = (n, r) => Jd(n, r) === "small", Dt = ({
|
|
8069
8071
|
error: n,
|
|
@@ -8113,7 +8115,7 @@ const Cd = {
|
|
|
8113
8115
|
const s = re(null);
|
|
8114
8116
|
Mr({ refs: [s], onDismiss: i, enabled: a });
|
|
8115
8117
|
const l = n.find((u) => u.value === r);
|
|
8116
|
-
return /* @__PURE__ */
|
|
8118
|
+
return /* @__PURE__ */ T(
|
|
8117
8119
|
"div",
|
|
8118
8120
|
{
|
|
8119
8121
|
ref: s,
|
|
@@ -8248,7 +8250,7 @@ const qr = [
|
|
|
8248
8250
|
lineUp: D = !1,
|
|
8249
8251
|
rowGap: C = 4,
|
|
8250
8252
|
columnGap: _ = 20,
|
|
8251
|
-
styleInputContainer:
|
|
8253
|
+
styleInputContainer: O,
|
|
8252
8254
|
styleTitle: k,
|
|
8253
8255
|
disabled: g,
|
|
8254
8256
|
wheelEdit: S = !1,
|
|
@@ -8312,7 +8314,7 @@ const qr = [
|
|
|
8312
8314
|
increaseMonth: we,
|
|
8313
8315
|
prevMonthButtonDisabled: oe,
|
|
8314
8316
|
nextMonthButtonDisabled: de
|
|
8315
|
-
}) => /* @__PURE__ */
|
|
8317
|
+
}) => /* @__PURE__ */ T(
|
|
8316
8318
|
"div",
|
|
8317
8319
|
{
|
|
8318
8320
|
style: {
|
|
@@ -8405,13 +8407,13 @@ const qr = [
|
|
|
8405
8407
|
dateFormat: "dd.MM.yyyy"
|
|
8406
8408
|
}
|
|
8407
8409
|
);
|
|
8408
|
-
return /* @__PURE__ */
|
|
8410
|
+
return /* @__PURE__ */ T(
|
|
8409
8411
|
"div",
|
|
8410
8412
|
{
|
|
8411
8413
|
id: `u-datepicker${G}`,
|
|
8412
8414
|
style: { display: "flex", flexDirection: "column", rowGap: 4 },
|
|
8413
8415
|
children: [
|
|
8414
|
-
/* @__PURE__ */
|
|
8416
|
+
/* @__PURE__ */ T(
|
|
8415
8417
|
"div",
|
|
8416
8418
|
{
|
|
8417
8419
|
style: Object.assign(
|
|
@@ -8421,7 +8423,7 @@ const qr = [
|
|
|
8421
8423
|
rowGap: D ? null : z(C),
|
|
8422
8424
|
columnGap: D ? z(_) : null
|
|
8423
8425
|
},
|
|
8424
|
-
|
|
8426
|
+
O
|
|
8425
8427
|
),
|
|
8426
8428
|
children: [
|
|
8427
8429
|
n && /* @__PURE__ */ f(
|
|
@@ -8486,7 +8488,7 @@ const qr = [
|
|
|
8486
8488
|
const d = et(l, "u-checkbox"), p = i || (o ? (h) => {
|
|
8487
8489
|
o(h);
|
|
8488
8490
|
} : void 0);
|
|
8489
|
-
return /* @__PURE__ */ f("div", { className: "u-checkbox-wrapper", children: /* @__PURE__ */
|
|
8491
|
+
return /* @__PURE__ */ f("div", { className: "u-checkbox-wrapper", children: /* @__PURE__ */ T("label", { style: Object.assign({ columnGap: n ? "" : 0 }, c || {}), className: `u-checkbox ${s}`, children: [
|
|
8490
8492
|
a && /* @__PURE__ */ f(Re, { children: n }),
|
|
8491
8493
|
/* @__PURE__ */ f("input", { defaultChecked: e, checked: t, disabled: r, id: d, type: "checkbox", onChange: p, onClick: o, readOnly: t !== void 0 && !i && !o, ...u }),
|
|
8492
8494
|
/* @__PURE__ */ f("div", { className: "u-checkbox-input" }),
|
|
@@ -8505,7 +8507,7 @@ const qr = [
|
|
|
8505
8507
|
children: u
|
|
8506
8508
|
}) => {
|
|
8507
8509
|
const c = Dt({ error: t }), d = typeof a == "number" ? `${a}px` : a;
|
|
8508
|
-
return /* @__PURE__ */
|
|
8510
|
+
return /* @__PURE__ */ T(
|
|
8509
8511
|
"div",
|
|
8510
8512
|
{
|
|
8511
8513
|
className: `u-form-field${e ? " u-form-field--inline" : ""} ${s}`.trim(),
|
|
@@ -8548,14 +8550,14 @@ const qr = [
|
|
|
8548
8550
|
minHeight: D,
|
|
8549
8551
|
maxHeight: C,
|
|
8550
8552
|
maxLength: _,
|
|
8551
|
-
disabled:
|
|
8553
|
+
disabled: O
|
|
8552
8554
|
}) => {
|
|
8553
8555
|
const k = Dt({ error: w, validationOn: v, validationText: m }), g = rn(h, p), S = et(t, "u-input-expand"), [M, I] = j(null), F = re(null), W = (B) => typeof B == "number" ? `${B}px` : String(B), Q = (B) => {
|
|
8554
8556
|
if (B == null || B === "") return;
|
|
8555
8557
|
if (typeof B == "number") return `calc(${B} * var(--u-unit, 1px))`;
|
|
8556
8558
|
const ne = String(B).trim().match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
8557
8559
|
return ne ? `calc(${ne[1]} * var(--u-unit, 1px))` : B;
|
|
8558
|
-
}, G =
|
|
8560
|
+
}, G = Te(() => {
|
|
8559
8561
|
const B = F.current;
|
|
8560
8562
|
if (B) {
|
|
8561
8563
|
if (D === void 0 && C === void 0) {
|
|
@@ -8576,8 +8578,8 @@ const qr = [
|
|
|
8576
8578
|
G();
|
|
8577
8579
|
}, [G, y]);
|
|
8578
8580
|
const x = y || "", E = x.length, N = typeof _ == "number" && Number.isFinite(_) && _ >= 0, A = N && E >= _, X = Q(D), J = Q(C);
|
|
8579
|
-
return /* @__PURE__ */
|
|
8580
|
-
/* @__PURE__ */
|
|
8581
|
+
return /* @__PURE__ */ T("div", { className: `${d}`, style: { position: "relative" }, children: [
|
|
8582
|
+
/* @__PURE__ */ T(
|
|
8581
8583
|
"div",
|
|
8582
8584
|
{
|
|
8583
8585
|
style: Object.assign(
|
|
@@ -8604,11 +8606,11 @@ const qr = [
|
|
|
8604
8606
|
children: n
|
|
8605
8607
|
}
|
|
8606
8608
|
),
|
|
8607
|
-
/* @__PURE__ */
|
|
8609
|
+
/* @__PURE__ */ T("div", { className: "u-input-expand-textarea-field", children: [
|
|
8608
8610
|
/* @__PURE__ */ f(
|
|
8609
8611
|
"textarea",
|
|
8610
8612
|
{
|
|
8611
|
-
disabled:
|
|
8613
|
+
disabled: O,
|
|
8612
8614
|
className: "u-textarea input_expand",
|
|
8613
8615
|
style: Object.assign(
|
|
8614
8616
|
{
|
|
@@ -8635,7 +8637,7 @@ const qr = [
|
|
|
8635
8637
|
id: `input_expand${S}`
|
|
8636
8638
|
}
|
|
8637
8639
|
),
|
|
8638
|
-
N && /* @__PURE__ */
|
|
8640
|
+
N && /* @__PURE__ */ T("div", { className: "u-input-expand-textarea-counter", style: A ? { color: "#ef302b" } : void 0, children: [
|
|
8639
8641
|
E,
|
|
8640
8642
|
"/",
|
|
8641
8643
|
_
|
|
@@ -8669,7 +8671,7 @@ const qr = [
|
|
|
8669
8671
|
multiple: D = !1,
|
|
8670
8672
|
hideLoaderAfterSelect: C = 0,
|
|
8671
8673
|
accept: _ = [],
|
|
8672
|
-
maxFileSize:
|
|
8674
|
+
maxFileSize: O,
|
|
8673
8675
|
fileNamePattern: k,
|
|
8674
8676
|
onFileReject: g
|
|
8675
8677
|
}) => {
|
|
@@ -8688,7 +8690,7 @@ const qr = [
|
|
|
8688
8690
|
const ne = Y == null ? void 0 : Y.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" });
|
|
8689
8691
|
if (!ne) return "";
|
|
8690
8692
|
const pe = ne.split(".");
|
|
8691
|
-
return pe.length === 3 ? /* @__PURE__ */
|
|
8693
|
+
return pe.length === 3 ? /* @__PURE__ */ T(Re, { children: [
|
|
8692
8694
|
pe[0],
|
|
8693
8695
|
".",
|
|
8694
8696
|
pe[1],
|
|
@@ -8731,7 +8733,7 @@ const qr = [
|
|
|
8731
8733
|
}, N = () => _.length === 0 ? "Неверный формат файла" : _.length === 1 ? `Файл должен быть в формате ${_[0]}` : `Разрешенные форматы файлов: ${_.join(", ")}`, A = (Y, ne) => {
|
|
8732
8734
|
D ? X(Y, ne) : J(Y, ne);
|
|
8733
8735
|
}, X = (Y, ne) => {
|
|
8734
|
-
const ue = (ne ? Array.from(Y.dataTransfer.files) : Array.from(Y.target.files)).filter(($) => _.length > 0 && !_.includes($.name.split(".").pop().toLowerCase()) ? (g == null || g(N(), $), !1) :
|
|
8736
|
+
const ue = (ne ? Array.from(Y.dataTransfer.files) : Array.from(Y.target.files)).filter(($) => _.length > 0 && !_.includes($.name.split(".").pop().toLowerCase()) ? (g == null || g(N(), $), !1) : O && $.size > O ? (g == null || g("Файл слишком большой", $), !1) : k && !k.test($.name) ? (g == null || g("Имя файла не соответствует шаблону", $), !1) : !b.some((ce) => ce.name === $.name));
|
|
8735
8737
|
ue.length > 0 && y(($) => [...$, ...ue]), M.current.value = "";
|
|
8736
8738
|
}, J = (Y, ne) => {
|
|
8737
8739
|
const ue = (ne ? Array.from([Y.dataTransfer.files[0]]) : Array.from(Y.target.files))[0];
|
|
@@ -8739,7 +8741,7 @@ const qr = [
|
|
|
8739
8741
|
g == null || g(N(), ue), M.current.value = "";
|
|
8740
8742
|
return;
|
|
8741
8743
|
}
|
|
8742
|
-
if (
|
|
8744
|
+
if (O && ue.size > O) {
|
|
8743
8745
|
g == null || g("Файл слишком большой", ue), M.current.value = "";
|
|
8744
8746
|
return;
|
|
8745
8747
|
}
|
|
@@ -8751,7 +8753,7 @@ const qr = [
|
|
|
8751
8753
|
}, B = (Y) => {
|
|
8752
8754
|
y((ne) => ne.filter((pe, ue) => ue !== Y));
|
|
8753
8755
|
};
|
|
8754
|
-
return /* @__PURE__ */
|
|
8756
|
+
return /* @__PURE__ */ T(
|
|
8755
8757
|
"div",
|
|
8756
8758
|
{
|
|
8757
8759
|
className: `u-react-file-container ${p}`,
|
|
@@ -8779,8 +8781,8 @@ const qr = [
|
|
|
8779
8781
|
children: n
|
|
8780
8782
|
}
|
|
8781
8783
|
),
|
|
8782
|
-
/* @__PURE__ */
|
|
8783
|
-
!(C > 0 && (b == null ? void 0 : b.length) === C) && /* @__PURE__ */
|
|
8784
|
+
/* @__PURE__ */ T("div", { children: [
|
|
8785
|
+
!(C > 0 && (b == null ? void 0 : b.length) === C) && /* @__PURE__ */ T(
|
|
8784
8786
|
"label",
|
|
8785
8787
|
{
|
|
8786
8788
|
id: S,
|
|
@@ -8792,25 +8794,25 @@ const qr = [
|
|
|
8792
8794
|
children: [
|
|
8793
8795
|
/* @__PURE__ */ f("input", { ref: M, type: "file", id: S, name: a, value: t, defaultValue: r, disabled: i, onChange: (Y) => A(Y), multiple: D, accept: _.length > 0 ? _.map((Y) => "." + Y).join(",") : void 0 }),
|
|
8794
8796
|
/* @__PURE__ */ f("i", { className: "u-file-icon" }),
|
|
8795
|
-
!w && /* @__PURE__ */
|
|
8797
|
+
!w && /* @__PURE__ */ T(Re, { children: [
|
|
8796
8798
|
/* @__PURE__ */ f("p", { className: "u-file-title", children: m }),
|
|
8797
8799
|
/* @__PURE__ */ f("p", { className: "u-file-subtitle", children: v })
|
|
8798
8800
|
] }),
|
|
8799
|
-
w && /* @__PURE__ */
|
|
8801
|
+
w && /* @__PURE__ */ T(Re, { children: [
|
|
8800
8802
|
/* @__PURE__ */ f("i", { className: "u-file-icon-loading" }),
|
|
8801
8803
|
/* @__PURE__ */ f("p", { className: "u-file-title-loading", children: h })
|
|
8802
8804
|
] })
|
|
8803
8805
|
]
|
|
8804
8806
|
}
|
|
8805
8807
|
),
|
|
8806
|
-
D ? (b == null ? void 0 : b.length) > 0 && /* @__PURE__ */ f("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: b == null ? void 0 : b.map((Y, ne) => /* @__PURE__ */
|
|
8808
|
+
D ? (b == null ? void 0 : b.length) > 0 && /* @__PURE__ */ f("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: b == null ? void 0 : b.map((Y, ne) => /* @__PURE__ */ T("div", { className: "u-file-cell", children: [
|
|
8807
8809
|
/* @__PURE__ */ f("div", { className: `u-file-cell-icon ${E(Y.name)}` }),
|
|
8808
|
-
/* @__PURE__ */ f("div", { className: "u-file-cell-content", children: /* @__PURE__ */
|
|
8810
|
+
/* @__PURE__ */ f("div", { className: "u-file-cell-content", children: /* @__PURE__ */ T("div", { className: "u-file-cell-content-wrapper", children: [
|
|
8809
8811
|
/* @__PURE__ */ f("p", { children: Y.name }),
|
|
8810
|
-
/* @__PURE__ */
|
|
8812
|
+
/* @__PURE__ */ T("div", { className: "u-file-cell-content-props", children: [
|
|
8811
8813
|
/* @__PURE__ */ f("span", { children: (() => {
|
|
8812
8814
|
const [pe, ue] = x(Y.size);
|
|
8813
|
-
return /* @__PURE__ */
|
|
8815
|
+
return /* @__PURE__ */ T(Re, { children: [
|
|
8814
8816
|
pe,
|
|
8815
8817
|
/* @__PURE__ */ f("span", { className: "uwsn", children: ue })
|
|
8816
8818
|
] });
|
|
@@ -8819,14 +8821,14 @@ const qr = [
|
|
|
8819
8821
|
] })
|
|
8820
8822
|
] }) }),
|
|
8821
8823
|
/* @__PURE__ */ f("button", { type: "button", onClick: () => B(ne) })
|
|
8822
|
-
] }, ne)) }) : b && b[0] && /* @__PURE__ */ f("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: /* @__PURE__ */
|
|
8824
|
+
] }, ne)) }) : b && b[0] && /* @__PURE__ */ f("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: /* @__PURE__ */ T("div", { className: "u-file-cell", children: [
|
|
8823
8825
|
/* @__PURE__ */ f("div", { className: `u-file-cell-icon ${E(b[0].name)}` }),
|
|
8824
|
-
/* @__PURE__ */ f("div", { className: "u-file-cell-content", children: /* @__PURE__ */
|
|
8826
|
+
/* @__PURE__ */ f("div", { className: "u-file-cell-content", children: /* @__PURE__ */ T("div", { className: "u-file-cell-content-wrapper", children: [
|
|
8825
8827
|
/* @__PURE__ */ f("p", { children: b[0].name }),
|
|
8826
|
-
/* @__PURE__ */
|
|
8828
|
+
/* @__PURE__ */ T("div", { className: "u-file-cell-content-props ucg4", children: [
|
|
8827
8829
|
/* @__PURE__ */ f("span", { children: (() => {
|
|
8828
8830
|
const [Y, ne] = x(b[0].size);
|
|
8829
|
-
return /* @__PURE__ */
|
|
8831
|
+
return /* @__PURE__ */ T(Re, { children: [
|
|
8830
8832
|
Y,
|
|
8831
8833
|
/* @__PURE__ */ f("span", { className: "uwsn", children: ne })
|
|
8832
8834
|
] });
|
|
@@ -8863,11 +8865,11 @@ const qr = [
|
|
|
8863
8865
|
hintText: D = "Используйте колесо мыши или стрелки ↑↓ для изменения значения",
|
|
8864
8866
|
validationText: C = "Заполните поле",
|
|
8865
8867
|
validationOn: _,
|
|
8866
|
-
error:
|
|
8868
|
+
error: O,
|
|
8867
8869
|
validationOnWithoutText: k,
|
|
8868
8870
|
absoluteValidationText: g
|
|
8869
8871
|
}) => {
|
|
8870
|
-
const S = Dt({ error:
|
|
8872
|
+
const S = Dt({ error: O, validationOn: _, validationOnWithoutText: k, validationText: C }), M = et(a, "u-input-number"), I = re(null), F = re(null), [W, Q] = j(!1), [G, H] = j(!1), [x, E] = j(String(e ?? t ?? "")), N = re(String(e ?? t ?? "")), A = (P) => typeof P == "number" ? `${P}px` : String(P), X = (P) => typeof P == "number" ? `calc(${P} * var(--u-unit, 1px))` : String(P);
|
|
8871
8873
|
ae(() => {
|
|
8872
8874
|
const P = () => {
|
|
8873
8875
|
H(window.innerWidth <= 900);
|
|
@@ -8878,13 +8880,13 @@ const qr = [
|
|
|
8878
8880
|
const P = String(e ?? "");
|
|
8879
8881
|
E(P), P.trim() !== "" && (N.current = P);
|
|
8880
8882
|
}, [y, W, e]);
|
|
8881
|
-
const J =
|
|
8883
|
+
const J = Te((P) => {
|
|
8882
8884
|
const z = Number(String(P).replace(",", "."));
|
|
8883
8885
|
if (!Number.isFinite(z)) return "";
|
|
8884
8886
|
const se = w != null && w !== "" ? Number(w) : void 0, xe = b != null && b !== "" ? Number(b) : void 0;
|
|
8885
8887
|
let Ne = z;
|
|
8886
8888
|
return Number.isFinite(se) && (Ne = Math.max(Ne, se)), Number.isFinite(xe) && (Ne = Math.min(Ne, xe)), String(Ne);
|
|
8887
|
-
}, [w, b]), B =
|
|
8889
|
+
}, [w, b]), B = Te((P) => {
|
|
8888
8890
|
if (y && (E(P), String(P).trim() !== "" && (N.current = String(P))), !i) return;
|
|
8889
8891
|
i({
|
|
8890
8892
|
target: {
|
|
@@ -8902,7 +8904,7 @@ const qr = [
|
|
|
8902
8904
|
if (l) return;
|
|
8903
8905
|
const z = I.current;
|
|
8904
8906
|
z && (P === -1 ? z.stepDown() : z.stepUp(), B(z.value));
|
|
8905
|
-
}, ne =
|
|
8907
|
+
}, ne = Te((P) => {
|
|
8906
8908
|
if (l) return;
|
|
8907
8909
|
const z = I.current;
|
|
8908
8910
|
if (!z) return;
|
|
@@ -8940,7 +8942,7 @@ const qr = [
|
|
|
8940
8942
|
if (Q(!1), !y) return;
|
|
8941
8943
|
const P = String(((xe = I.current) == null ? void 0 : xe.value) ?? x ?? "").trim(), z = P !== "" ? P : N.current || String(e ?? ""), se = J(z);
|
|
8942
8944
|
E(se), se.trim() !== "" && (N.current = se), se !== String(e ?? "") && B(se);
|
|
8943
|
-
}, ce = /* @__PURE__ */
|
|
8945
|
+
}, ce = /* @__PURE__ */ T("div", { ref: F, className: `u-number ${l ? "u-number-disabled" : ""}`, children: [
|
|
8944
8946
|
/* @__PURE__ */ f(
|
|
8945
8947
|
"button",
|
|
8946
8948
|
{
|
|
@@ -8985,7 +8987,7 @@ const qr = [
|
|
|
8985
8987
|
}
|
|
8986
8988
|
)
|
|
8987
8989
|
] });
|
|
8988
|
-
return /* @__PURE__ */
|
|
8990
|
+
return /* @__PURE__ */ T(
|
|
8989
8991
|
"div",
|
|
8990
8992
|
{
|
|
8991
8993
|
className: `u-react-input-number-container ${v}`,
|
|
@@ -9058,7 +9060,7 @@ const qr = [
|
|
|
9058
9060
|
validationOn: D,
|
|
9059
9061
|
error: C,
|
|
9060
9062
|
validationOnWithoutText: _,
|
|
9061
|
-
absoluteValidationText:
|
|
9063
|
+
absoluteValidationText: O
|
|
9062
9064
|
}) => {
|
|
9063
9065
|
const k = Dt({ error: C, validationOn: D, validationOnWithoutText: _, validationText: y }), g = rn(b, w), S = et(a, "u-input-text"), [M, I] = j(null), F = re(null), W = (G) => {
|
|
9064
9066
|
I(G.target.selectionStart), i && i(G);
|
|
@@ -9068,8 +9070,8 @@ const qr = [
|
|
|
9068
9070
|
G && G.setSelectionRange(M, M);
|
|
9069
9071
|
}, [F, M, e]);
|
|
9070
9072
|
const Q = (G) => typeof G == "number" ? `${G}px` : String(G);
|
|
9071
|
-
return /* @__PURE__ */
|
|
9072
|
-
/* @__PURE__ */
|
|
9073
|
+
return /* @__PURE__ */ T("div", { className: `u-react-input-container ${v}`, style: { position: "relative" }, children: [
|
|
9074
|
+
/* @__PURE__ */ T(
|
|
9073
9075
|
"div",
|
|
9074
9076
|
{
|
|
9075
9077
|
style: Object.assign(
|
|
@@ -9123,7 +9125,7 @@ const qr = [
|
|
|
9123
9125
|
]
|
|
9124
9126
|
}
|
|
9125
9127
|
),
|
|
9126
|
-
k.showText && /* @__PURE__ */ f("h5", { className: "clr-red-main", style:
|
|
9128
|
+
k.showText && /* @__PURE__ */ f("h5", { className: "clr-red-main", style: O ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: k.text })
|
|
9127
9129
|
] });
|
|
9128
9130
|
}, xn = 140, Bt = (n, r) => {
|
|
9129
9131
|
if (!r) return {};
|
|
@@ -9159,7 +9161,7 @@ const qr = [
|
|
|
9159
9161
|
onSelectHour: i,
|
|
9160
9162
|
onSelectMinute: s,
|
|
9161
9163
|
style: l
|
|
9162
|
-
}) => /* @__PURE__ */
|
|
9164
|
+
}) => /* @__PURE__ */ T("div", { className: "u-react-input-time-dropdown", style: l, children: [
|
|
9163
9165
|
/* @__PURE__ */ f(yo, { values: n, selected: t, onSelect: i, columnRef: a }),
|
|
9164
9166
|
/* @__PURE__ */ f(yo, { values: r, selected: e, onSelect: s, columnRef: o })
|
|
9165
9167
|
] }), rp = (n, r) => {
|
|
@@ -9207,8 +9209,8 @@ const qr = [
|
|
|
9207
9209
|
return;
|
|
9208
9210
|
}
|
|
9209
9211
|
n.preventDefault(), l();
|
|
9210
|
-
const b = /^\d{2}:\d{2}$/.test(m || ""), y = b ? m : "00:00", [D, C] = y.split(":"), _ = n.currentTarget.selectionStart ?? 0,
|
|
9211
|
-
if (
|
|
9212
|
+
const b = /^\d{2}:\d{2}$/.test(m || ""), y = b ? m : "00:00", [D, C] = y.split(":"), _ = n.currentTarget.selectionStart ?? 0, O = b ? o ?? (_ <= 2 ? "hour" : "minute") : "hour", k = b ? Math.min(i + 1, 2) : 1, g = k - 1;
|
|
9213
|
+
if (O === "hour") {
|
|
9212
9214
|
const F = D.split("");
|
|
9213
9215
|
F[g] = n.key;
|
|
9214
9216
|
const W = F.join("");
|
|
@@ -9233,7 +9235,7 @@ const qr = [
|
|
|
9233
9235
|
hoursColumnRef: i,
|
|
9234
9236
|
minutesColumnRef: s,
|
|
9235
9237
|
isOpen: l
|
|
9236
|
-
} = n, u =
|
|
9238
|
+
} = n, u = Te((c) => {
|
|
9237
9239
|
if (r) return;
|
|
9238
9240
|
const d = t.current;
|
|
9239
9241
|
!d || document.activeElement !== d || (c.cancelable && c.preventDefault(), c.stopPropagation(), e(c.deltaY < 0 ? 1 : -1));
|
|
@@ -9288,12 +9290,12 @@ const qr = [
|
|
|
9288
9290
|
hintText: D = "Используйте колесо мыши или стрелки ↑↓ для изменения значения. Нажмите Enter для подтверждения.",
|
|
9289
9291
|
className: C = "",
|
|
9290
9292
|
validationText: _ = "Заполните поле",
|
|
9291
|
-
validationOn:
|
|
9293
|
+
validationOn: O,
|
|
9292
9294
|
error: k,
|
|
9293
9295
|
validationOnWithoutText: g,
|
|
9294
9296
|
absoluteValidationText: S
|
|
9295
9297
|
}) => {
|
|
9296
|
-
const M = Dt({ error: k, validationOn:
|
|
9298
|
+
const M = Dt({ error: k, validationOn: O, validationOnWithoutText: g, validationText: _ }), I = et(a, "u-input-time"), F = re(null), W = re(null), Q = re(!1), G = re(null), H = re(null), [x, E] = j(!1), { shouldRender: N, status: A, isAnimated: X } = yn({
|
|
9297
9299
|
isOpen: x && !l,
|
|
9298
9300
|
duration: xn
|
|
9299
9301
|
}), [J, B] = j(null), [Y, ne] = j(0), [pe, ue] = j(0), [$, ce] = j(0), [P, z] = j(!1), [se, xe] = j(() => String(e ?? t ?? "")), Ne = re(e), [V, be] = j(!1);
|
|
@@ -9332,7 +9334,7 @@ const qr = [
|
|
|
9332
9334
|
};
|
|
9333
9335
|
K(G.current, de), K(H.current, q);
|
|
9334
9336
|
}, [x, N, de, q]);
|
|
9335
|
-
const ie =
|
|
9337
|
+
const ie = Te((K) => {
|
|
9336
9338
|
if (xe(K), we.current = K, /^\d{2}:\d{2}$/.test(K) && (oe.current = K), !i) return;
|
|
9337
9339
|
i({
|
|
9338
9340
|
target: {
|
|
@@ -9346,7 +9348,7 @@ const qr = [
|
|
|
9346
9348
|
name: o
|
|
9347
9349
|
}
|
|
9348
9350
|
});
|
|
9349
|
-
}, [I, o, i]),
|
|
9351
|
+
}, [I, o, i]), Oe = () => {
|
|
9350
9352
|
l || E(!0);
|
|
9351
9353
|
}, $e = (K) => {
|
|
9352
9354
|
const ge = String(K.target.value ?? "");
|
|
@@ -9355,9 +9357,9 @@ const qr = [
|
|
|
9355
9357
|
return;
|
|
9356
9358
|
}
|
|
9357
9359
|
K.target.value || (B("hour"), ne(0)), ie(K.target.value);
|
|
9358
|
-
}, We =
|
|
9360
|
+
}, We = Te((K) => {
|
|
9359
9361
|
W.current && (K === "hour" ? W.current.setSelectionRange(0, 2) : W.current.setSelectionRange(3, 5));
|
|
9360
|
-
}, []), ot =
|
|
9362
|
+
}, []), ot = Te((K) => {
|
|
9361
9363
|
requestAnimationFrame(() => {
|
|
9362
9364
|
We(K), requestAnimationFrame(() => We(K));
|
|
9363
9365
|
});
|
|
@@ -9371,7 +9373,7 @@ const qr = [
|
|
|
9371
9373
|
const K = W.current;
|
|
9372
9374
|
!K || document.activeElement !== K || K.setSelectionRange(0, K.value.length);
|
|
9373
9375
|
}, [pe, b]);
|
|
9374
|
-
const kt = (K, ge, He) => K < ge ? He : K > He ? ge : K, Ke =
|
|
9376
|
+
const kt = (K, ge, He) => K < ge ? He : K > He ? ge : K, Ke = Te((K) => {
|
|
9375
9377
|
const ge = W.current, zt = /^\d{2}:\d{2}$/.test(me || "") ? me : "00:00", [on, Pt] = zt.split(":"), qt = (ge == null ? void 0 : ge.selectionStart) ?? 0;
|
|
9376
9378
|
if ((J ?? (qt <= 2 ? "hour" : "minute")) === "hour") {
|
|
9377
9379
|
const Pr = kt(Number(on) + K, 0, 23), Hn = String(Pr).padStart(2, "0");
|
|
@@ -9383,7 +9385,7 @@ const qr = [
|
|
|
9383
9385
|
}, [J, me, ie, ot]), it = (K) => {
|
|
9384
9386
|
if (l) return;
|
|
9385
9387
|
const He = K.currentTarget.getBoundingClientRect().right - 44;
|
|
9386
|
-
Q.current = K.clientX >= He,
|
|
9388
|
+
Q.current = K.clientX >= He, Oe();
|
|
9387
9389
|
}, Le = (K) => {
|
|
9388
9390
|
if (!b) return;
|
|
9389
9391
|
if (K.preventDefault(), K.detail >= 2) {
|
|
@@ -9396,7 +9398,7 @@ const qr = [
|
|
|
9396
9398
|
var ge;
|
|
9397
9399
|
const K = ((ge = W.current) == null ? void 0 : ge.value) ?? se ?? "";
|
|
9398
9400
|
we.current = K, /^\d{2}:\d{2}$/.test(K) && (oe.current = K), z(!0), b && (B("hour"), ne(0), ot("hour"));
|
|
9399
|
-
},
|
|
9401
|
+
}, Ot = () => {
|
|
9400
9402
|
z(!1);
|
|
9401
9403
|
const K = we.current;
|
|
9402
9404
|
if (/^\d{2}:\d{2}$/.test(K)) return;
|
|
@@ -9416,7 +9418,7 @@ const qr = [
|
|
|
9416
9418
|
minutesColumnRef: H,
|
|
9417
9419
|
isOpen: x
|
|
9418
9420
|
});
|
|
9419
|
-
const ze = (K) => typeof K == "number" ? `${K}px` : String(K), kn = (K) => typeof K == "number" ? `calc(${K} * var(--u-unit, 1px))` : String(K), $n = /* @__PURE__ */
|
|
9421
|
+
const ze = (K) => typeof K == "number" ? `${K}px` : String(K), kn = (K) => typeof K == "number" ? `calc(${K} * var(--u-unit, 1px))` : String(K), $n = /* @__PURE__ */ T(
|
|
9420
9422
|
"div",
|
|
9421
9423
|
{
|
|
9422
9424
|
className: `u-react-input-time-field ${x ? "u-react-input-time-field--open" : ""}`,
|
|
@@ -9447,7 +9449,7 @@ const qr = [
|
|
|
9447
9449
|
activeSegment: J,
|
|
9448
9450
|
segmentInputCount: Y,
|
|
9449
9451
|
wheelEdit: b,
|
|
9450
|
-
openDropdown:
|
|
9452
|
+
openDropdown: Oe,
|
|
9451
9453
|
changeActiveSegmentBy: Ke,
|
|
9452
9454
|
selectSegment: We,
|
|
9453
9455
|
emitChange: ie,
|
|
@@ -9455,7 +9457,7 @@ const qr = [
|
|
|
9455
9457
|
setSegmentInputCount: ne
|
|
9456
9458
|
}),
|
|
9457
9459
|
onFocus: an,
|
|
9458
|
-
onBlur:
|
|
9460
|
+
onBlur: Ot
|
|
9459
9461
|
}
|
|
9460
9462
|
),
|
|
9461
9463
|
/* @__PURE__ */ f(
|
|
@@ -9466,7 +9468,7 @@ const qr = [
|
|
|
9466
9468
|
disabled: l,
|
|
9467
9469
|
onClick: () => {
|
|
9468
9470
|
var K;
|
|
9469
|
-
|
|
9471
|
+
Oe(), (K = W.current) == null || K.focus();
|
|
9470
9472
|
},
|
|
9471
9473
|
"aria-label": "Открыть выбор времени",
|
|
9472
9474
|
children: /* @__PURE__ */ f("span", { className: "u-react-input-time-icon", "aria-hidden": !0, children: /* @__PURE__ */ f(Ct, { name: "clock", color: "#1E4391", size: 20 }) })
|
|
@@ -9489,8 +9491,8 @@ const qr = [
|
|
|
9489
9491
|
]
|
|
9490
9492
|
}
|
|
9491
9493
|
);
|
|
9492
|
-
return /* @__PURE__ */
|
|
9493
|
-
/* @__PURE__ */
|
|
9494
|
+
return /* @__PURE__ */ T("div", { className: `u-react-input-container ${C}`, style: { position: "relative" }, children: [
|
|
9495
|
+
/* @__PURE__ */ T(
|
|
9494
9496
|
"div",
|
|
9495
9497
|
{
|
|
9496
9498
|
style: Object.assign(
|
|
@@ -9581,16 +9583,16 @@ const qr = [
|
|
|
9581
9583
|
};
|
|
9582
9584
|
return document.addEventListener("pointerdown", g), () => document.removeEventListener("pointerdown", g);
|
|
9583
9585
|
}, [r, t, p]);
|
|
9584
|
-
const [_,
|
|
9586
|
+
const [_, O] = j(
|
|
9585
9587
|
() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(`(max-width: ${p}px)`).matches : !1
|
|
9586
9588
|
);
|
|
9587
9589
|
ae(() => {
|
|
9588
9590
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
9589
|
-
const g = window.matchMedia(`(max-width: ${p}px)`), S = () =>
|
|
9591
|
+
const g = window.matchMedia(`(max-width: ${p}px)`), S = () => O(g.matches);
|
|
9590
9592
|
return S(), g.addEventListener("change", S), () => g.removeEventListener("change", S);
|
|
9591
9593
|
}, [p]);
|
|
9592
9594
|
const k = _ ? "u-collapsible-menu--overlay" : "";
|
|
9593
|
-
return /* @__PURE__ */ f(Re, { children: o === "collapsible" && /* @__PURE__ */
|
|
9595
|
+
return /* @__PURE__ */ f(Re, { children: o === "collapsible" && /* @__PURE__ */ T(
|
|
9594
9596
|
"div",
|
|
9595
9597
|
{
|
|
9596
9598
|
ref: v,
|
|
@@ -9613,7 +9615,7 @@ const qr = [
|
|
|
9613
9615
|
}
|
|
9614
9616
|
),
|
|
9615
9617
|
/* @__PURE__ */ f("label", { className: "u-collapsible-menu-toggle", htmlFor: w }),
|
|
9616
|
-
/* @__PURE__ */
|
|
9618
|
+
/* @__PURE__ */ T(
|
|
9617
9619
|
"div",
|
|
9618
9620
|
{
|
|
9619
9621
|
className: "u-collapsible-menu-body",
|
|
@@ -9713,7 +9715,7 @@ const qr = [
|
|
|
9713
9715
|
style: { backgroundColor: "unset" },
|
|
9714
9716
|
onMouseDown: s ? () => {
|
|
9715
9717
|
} : n,
|
|
9716
|
-
children: /* @__PURE__ */ f("div", { className: "u-modal__container", style: Object.assign({ backgroundColor: "#0006" }, y), children: /* @__PURE__ */
|
|
9718
|
+
children: /* @__PURE__ */ f("div", { className: "u-modal__container", style: Object.assign({ backgroundColor: "#0006" }, y), children: /* @__PURE__ */ T(
|
|
9717
9719
|
"div",
|
|
9718
9720
|
{
|
|
9719
9721
|
className: "u-modal__body",
|
|
@@ -9748,7 +9750,7 @@ const qr = [
|
|
|
9748
9750
|
const { x: r, y: t, width: e, height: a } = n.getBoundingClientRect();
|
|
9749
9751
|
return { x: r, y: t, width: e, height: a, scrollX: window.scrollX, scrollY: window.scrollY };
|
|
9750
9752
|
}, ip = (n, r) => !n || !r ? n === r : n.x === r.x && n.y === r.y && n.width === r.width && n.height === r.height && n.scrollX === r.scrollX && n.scrollY === r.scrollY, fi = ({ anchor: n, enabled: r = !0 }) => {
|
|
9751
|
-
const [t, e] = j(null), a = re(null), o =
|
|
9753
|
+
const [t, e] = j(null), a = re(null), o = Te(() => {
|
|
9752
9754
|
if (!n) {
|
|
9753
9755
|
a.current = null, e(null);
|
|
9754
9756
|
return;
|
|
@@ -9786,7 +9788,7 @@ const qr = [
|
|
|
9786
9788
|
ae(() => {
|
|
9787
9789
|
n || l(-1);
|
|
9788
9790
|
}, [n]);
|
|
9789
|
-
const u =
|
|
9791
|
+
const u = Te(() => {
|
|
9790
9792
|
if (r) return;
|
|
9791
9793
|
if (a == null || a(), t <= 0) {
|
|
9792
9794
|
l(-1);
|
|
@@ -9794,7 +9796,7 @@ const qr = [
|
|
|
9794
9796
|
}
|
|
9795
9797
|
const d = Math.min(Math.max(e, 0), t - 1);
|
|
9796
9798
|
l(d);
|
|
9797
|
-
}, [r, e, a, t]), c =
|
|
9799
|
+
}, [r, e, a, t]), c = Te(
|
|
9798
9800
|
(d) => {
|
|
9799
9801
|
if (!r) {
|
|
9800
9802
|
if (d.key === "ArrowDown") {
|
|
@@ -9870,7 +9872,7 @@ const qr = [
|
|
|
9870
9872
|
idPrefix: l,
|
|
9871
9873
|
getPortalPosition: u
|
|
9872
9874
|
}) => {
|
|
9873
|
-
const [c, d] = j(!1), [p, h] = j(null), [m, v] = j(null), [w, b] = j(!1), y = a === "auto" ? w : a === !0, D = re(null), C = re(null), _ = re(null),
|
|
9875
|
+
const [c, d] = j(!1), [p, h] = j(null), [m, v] = j(null), [w, b] = j(!1), y = a === "auto" ? w : a === !0, D = re(null), C = re(null), _ = re(null), O = et(s, l), k = `${O}-listbox`, g = (B) => `${k}-option-${B}`, S = () => {
|
|
9874
9876
|
d(!1);
|
|
9875
9877
|
}, M = (B) => {
|
|
9876
9878
|
if (e) return;
|
|
@@ -9925,7 +9927,7 @@ const qr = [
|
|
|
9925
9927
|
blockRef: D,
|
|
9926
9928
|
portalOptionsRef: C,
|
|
9927
9929
|
optionsListRef: _,
|
|
9928
|
-
selectId:
|
|
9930
|
+
selectId: O,
|
|
9929
9931
|
listboxId: k,
|
|
9930
9932
|
activeDescendantId: c && G >= 0 ? g(G) : void 0,
|
|
9931
9933
|
optionId: g,
|
|
@@ -9976,7 +9978,7 @@ const qr = [
|
|
|
9976
9978
|
onInputValueChange: D,
|
|
9977
9979
|
id: C
|
|
9978
9980
|
}) => {
|
|
9979
|
-
const _ = rn(u, l),
|
|
9981
|
+
const _ = rn(u, l), O = Dt({ error: p, validationOn: d, validationText: c }), [k, g] = j(""), S = re(null), M = pi(k, 300), I = Xe(() => t.filter((oe) => (oe.label ?? "").toLowerCase().includes((M || "").toLowerCase())), [M, t]), F = I.findIndex(
|
|
9980
9982
|
(oe) => o.some((de) => St(de == null ? void 0 : de.value, oe == null ? void 0 : oe.value))
|
|
9981
9983
|
), W = wa({
|
|
9982
9984
|
optionsLength: I.length,
|
|
@@ -10040,7 +10042,7 @@ const qr = [
|
|
|
10040
10042
|
),
|
|
10041
10043
|
onMouseEnter: () => J(de),
|
|
10042
10044
|
onMouseLeave: () => J(null),
|
|
10043
|
-
children: /* @__PURE__ */
|
|
10045
|
+
children: /* @__PURE__ */ T(
|
|
10044
10046
|
"label",
|
|
10045
10047
|
{
|
|
10046
10048
|
className: "u-multiselectbox-option-checkbox",
|
|
@@ -10070,12 +10072,12 @@ const qr = [
|
|
|
10070
10072
|
De[de]
|
|
10071
10073
|
);
|
|
10072
10074
|
};
|
|
10073
|
-
return /* @__PURE__ */
|
|
10075
|
+
return /* @__PURE__ */ T(
|
|
10074
10076
|
"div",
|
|
10075
10077
|
{
|
|
10076
10078
|
className: `u-react-multiselect-container ${s}`,
|
|
10077
10079
|
children: [
|
|
10078
|
-
/* @__PURE__ */
|
|
10080
|
+
/* @__PURE__ */ T("div", { style: e, children: [
|
|
10079
10081
|
n && /* @__PURE__ */ f(
|
|
10080
10082
|
"div",
|
|
10081
10083
|
{
|
|
@@ -10083,13 +10085,13 @@ const qr = [
|
|
|
10083
10085
|
children: n
|
|
10084
10086
|
}
|
|
10085
10087
|
),
|
|
10086
|
-
/* @__PURE__ */
|
|
10088
|
+
/* @__PURE__ */ T(
|
|
10087
10089
|
"div",
|
|
10088
10090
|
{
|
|
10089
10091
|
className: "u-multiselectbox u-react-multiselect",
|
|
10090
10092
|
ref: G,
|
|
10091
10093
|
children: [
|
|
10092
|
-
/* @__PURE__ */
|
|
10094
|
+
/* @__PURE__ */ T(
|
|
10093
10095
|
"div",
|
|
10094
10096
|
{
|
|
10095
10097
|
className: Q ? "u-multiselectbox-select u-multiselectbox-select-open" : "u-multiselectbox-select",
|
|
@@ -10125,7 +10127,7 @@ const qr = [
|
|
|
10125
10127
|
children: a
|
|
10126
10128
|
}
|
|
10127
10129
|
) : /* @__PURE__ */ f(Re, {}),
|
|
10128
|
-
o == null ? void 0 : o.map((oe, de) => /* @__PURE__ */ f("div", { className: "u-multiselectbox-select-item-wrapper", children: /* @__PURE__ */
|
|
10130
|
+
o == null ? void 0 : o.map((oe, de) => /* @__PURE__ */ f("div", { className: "u-multiselectbox-select-item-wrapper", children: /* @__PURE__ */ T(
|
|
10129
10131
|
"div",
|
|
10130
10132
|
{
|
|
10131
10133
|
className: "u-multiselectbox-select-item-container",
|
|
@@ -10235,10 +10237,10 @@ const qr = [
|
|
|
10235
10237
|
}
|
|
10236
10238
|
)
|
|
10237
10239
|
] }),
|
|
10238
|
-
|
|
10240
|
+
O.showText && /* @__PURE__ */ f("h5", { className: "clr-red-main", style: h ? {
|
|
10239
10241
|
position: "absolute",
|
|
10240
10242
|
bottom: "-20px"
|
|
10241
|
-
} : { position: "relative", marginTop: "4px" }, children:
|
|
10243
|
+
} : { position: "relative", marginTop: "4px" }, children: O.text })
|
|
10242
10244
|
]
|
|
10243
10245
|
}
|
|
10244
10246
|
);
|
|
@@ -10259,8 +10261,8 @@ const qr = [
|
|
|
10259
10261
|
C.current = d;
|
|
10260
10262
|
const _ = re(c);
|
|
10261
10263
|
_.current = c;
|
|
10262
|
-
const
|
|
10263
|
-
|
|
10264
|
+
const O = re(t);
|
|
10265
|
+
O.current = t, ae(() => (e ? (p(!0), w(150), D.current = setTimeout(() => m(1), 10), s && l > u && (b.current = setTimeout(() => {
|
|
10264
10266
|
w(u), m(0);
|
|
10265
10267
|
}, l - u), y.current = setTimeout(() => {
|
|
10266
10268
|
var g;
|
|
@@ -10287,9 +10289,9 @@ const qr = [
|
|
|
10287
10289
|
};
|
|
10288
10290
|
return ae(() => {
|
|
10289
10291
|
if (!s) return;
|
|
10290
|
-
const g = setTimeout(() =>
|
|
10292
|
+
const g = setTimeout(() => O.current(), 0);
|
|
10291
10293
|
return () => clearTimeout(g);
|
|
10292
|
-
}, [s]), d && /* @__PURE__ */
|
|
10294
|
+
}, [s]), d && /* @__PURE__ */ T(
|
|
10293
10295
|
"div",
|
|
10294
10296
|
{
|
|
10295
10297
|
style: {
|
|
@@ -10343,7 +10345,7 @@ const qr = [
|
|
|
10343
10345
|
setTimeout(() => a(s.totalId), 0);
|
|
10344
10346
|
});
|
|
10345
10347
|
};
|
|
10346
|
-
return /* @__PURE__ */
|
|
10348
|
+
return /* @__PURE__ */ T(gi.Provider, { value: { showNotification: e, hideNotification: a, hideAllNotification: i }, children: [
|
|
10347
10349
|
n,
|
|
10348
10350
|
r.map(({ totalId: s, variant: l, message: u, left: c, top: d, right: p, zIndex: h, show: m, duration: v }, w) => /* @__PURE__ */ f(
|
|
10349
10351
|
dp,
|
|
@@ -10371,48 +10373,48 @@ const qr = [
|
|
|
10371
10373
|
}, vi = ({
|
|
10372
10374
|
variant: n = "small-primary",
|
|
10373
10375
|
className: r = ""
|
|
10374
|
-
}) => /* @__PURE__ */
|
|
10375
|
-
n === "small-primary" && /* @__PURE__ */ f("div", { className: `u-preloader-mini ${r}`, children: /* @__PURE__ */
|
|
10376
|
+
}) => /* @__PURE__ */ T(Re, { children: [
|
|
10377
|
+
n === "small-primary" && /* @__PURE__ */ f("div", { className: `u-preloader-mini ${r}`, children: /* @__PURE__ */ T("svg", { className: "u-preloader-mini-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10376
10378
|
/* @__PURE__ */ f("circle", { cx: "24", cy: "24", r: "23", stroke: "#1E4391", strokeWidth: "2" }),
|
|
10377
10379
|
/* @__PURE__ */ f("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: "#1E4391" })
|
|
10378
10380
|
] }) }),
|
|
10379
|
-
n === "small-special" && /* @__PURE__ */ f("div", { className: `u-preloader-mini-gradient ${r}`, children: /* @__PURE__ */
|
|
10381
|
+
n === "small-special" && /* @__PURE__ */ f("div", { className: `u-preloader-mini-gradient ${r}`, children: /* @__PURE__ */ T("svg", { className: "u-preloader-mini-gradient-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10380
10382
|
/* @__PURE__ */ f("circle", { cx: "24", cy: "24", r: "23", stroke: "url(#paint0_linear_8025_35626)", strokeWidth: "2" }),
|
|
10381
10383
|
/* @__PURE__ */ f("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: "url(#paint0_linear_8025_35627)" }),
|
|
10382
|
-
/* @__PURE__ */
|
|
10383
|
-
/* @__PURE__ */
|
|
10384
|
+
/* @__PURE__ */ T("defs", { children: [
|
|
10385
|
+
/* @__PURE__ */ T("linearGradient", { id: "paint0_linear_8025_35626", x1: "54.3387", y1: "23.9985", x2: "6", y2: "23.9985", gradientUnits: "userSpaceOnUse", children: [
|
|
10384
10386
|
/* @__PURE__ */ f("stop", { stopColor: "#FF2D7F" }),
|
|
10385
10387
|
/* @__PURE__ */ f("stop", { offset: "0.48", stopColor: "#FB3727" }),
|
|
10386
10388
|
/* @__PURE__ */ f("stop", { offset: "1", stopColor: "#FEEA0F" })
|
|
10387
10389
|
] }),
|
|
10388
|
-
/* @__PURE__ */
|
|
10390
|
+
/* @__PURE__ */ T("linearGradient", { id: "paint0_linear_8025_35627", x1: "0.50109", y1: "13", x2: "8.00065", y2: "0.000589107", gradientUnits: "userSpaceOnUse", children: [
|
|
10389
10391
|
/* @__PURE__ */ f("stop", { stopColor: "#FF2D7F" }),
|
|
10390
10392
|
/* @__PURE__ */ f("stop", { offset: "0.192259", stopColor: "#FB3727" }),
|
|
10391
10393
|
/* @__PURE__ */ f("stop", { offset: "1", stopColor: "#FEEA0F" })
|
|
10392
10394
|
] })
|
|
10393
10395
|
] })
|
|
10394
10396
|
] }) }),
|
|
10395
|
-
n === "large-primary" && /* @__PURE__ */ f("div", { className: `u-preloader ${r}`, children: /* @__PURE__ */
|
|
10397
|
+
n === "large-primary" && /* @__PURE__ */ f("div", { className: `u-preloader ${r}`, children: /* @__PURE__ */ T("svg", { className: "u-preloader-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10396
10398
|
/* @__PURE__ */ f("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: "#1E4391" }),
|
|
10397
10399
|
/* @__PURE__ */ f("path", { className: "u-preloader-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: "#1E4391" }),
|
|
10398
10400
|
/* @__PURE__ */ f("path", { className: "u-preloader-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: "#1E4391" })
|
|
10399
10401
|
] }) }),
|
|
10400
|
-
n === "large-special" && /* @__PURE__ */ f("div", { className: `u-preloader-gradient ${r}`, children: /* @__PURE__ */
|
|
10402
|
+
n === "large-special" && /* @__PURE__ */ f("div", { className: `u-preloader-gradient ${r}`, children: /* @__PURE__ */ T("svg", { className: "u-preloader-gradient-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10401
10403
|
/* @__PURE__ */ f("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: "url(#paint0_linear_1804_4939)" }),
|
|
10402
10404
|
/* @__PURE__ */ f("path", { className: "u-preloader-gradient-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: "url(#paint1_linear_1804_4939)" }),
|
|
10403
10405
|
/* @__PURE__ */ f("path", { className: "u-preloader-gradient-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: "url(#paint2_linear_1804_4939)" }),
|
|
10404
|
-
/* @__PURE__ */
|
|
10405
|
-
/* @__PURE__ */
|
|
10406
|
+
/* @__PURE__ */ T("defs", { children: [
|
|
10407
|
+
/* @__PURE__ */ T("linearGradient", { id: "paint0_linear_1804_4939", x1: "76.5363", y1: "37.9977", x2: "1.9146e-07", y2: "37.9977", gradientUnits: "userSpaceOnUse", children: [
|
|
10406
10408
|
/* @__PURE__ */ f("stop", { stopColor: "#FF2D7F" }),
|
|
10407
10409
|
/* @__PURE__ */ f("stop", { offset: "0.48", stopColor: "#FB3727" }),
|
|
10408
10410
|
/* @__PURE__ */ f("stop", { offset: "1", stopColor: "#FEEA0F" })
|
|
10409
10411
|
] }),
|
|
10410
|
-
/* @__PURE__ */
|
|
10412
|
+
/* @__PURE__ */ T("linearGradient", { id: "paint1_linear_1804_4939", x1: "5.06202", y1: "20.769", x2: "11.2799", y2: "12.9983", gradientUnits: "userSpaceOnUse", children: [
|
|
10411
10413
|
/* @__PURE__ */ f("stop", { stopColor: "#FF2D7F" }),
|
|
10412
10414
|
/* @__PURE__ */ f("stop", { offset: "0.48", stopColor: "#FB3727" }),
|
|
10413
10415
|
/* @__PURE__ */ f("stop", { offset: "1", stopColor: "#FEEA0F" })
|
|
10414
10416
|
] }),
|
|
10415
|
-
/* @__PURE__ */
|
|
10417
|
+
/* @__PURE__ */ T("linearGradient", { id: "paint2_linear_1804_4939", x1: "35.9984", y1: "21.9995", x2: "36.4978", y2: "56.9995", gradientUnits: "userSpaceOnUse", children: [
|
|
10416
10418
|
/* @__PURE__ */ f("stop", { stopColor: "#FF2D7F" }),
|
|
10417
10419
|
/* @__PURE__ */ f("stop", { offset: "0.48", stopColor: "#FB3727" }),
|
|
10418
10420
|
/* @__PURE__ */ f("stop", { offset: "1", stopColor: "#FEEA0F" })
|
|
@@ -10427,7 +10429,7 @@ const qr = [
|
|
|
10427
10429
|
onClick: a,
|
|
10428
10430
|
className: o = "",
|
|
10429
10431
|
style: i
|
|
10430
|
-
}) => /* @__PURE__ */ f("div", { className: "u-radio-wrapper", children: /* @__PURE__ */
|
|
10432
|
+
}) => /* @__PURE__ */ f("div", { className: "u-radio-wrapper", children: /* @__PURE__ */ T("label", { style: Object.assign({ columnGap: n ? "" : 0 }, i || {}), className: `u-radio ${o}`, children: [
|
|
10431
10433
|
e && n && /* @__PURE__ */ f(Re, { children: n }),
|
|
10432
10434
|
/* @__PURE__ */ f("input", { checked: t, disabled: r, type: "radio", onClick: a }),
|
|
10433
10435
|
/* @__PURE__ */ f("div", { className: "u-radio-input" }),
|
|
@@ -10443,7 +10445,7 @@ const qr = [
|
|
|
10443
10445
|
target: { value: "" }
|
|
10444
10446
|
});
|
|
10445
10447
|
};
|
|
10446
|
-
return /* @__PURE__ */
|
|
10448
|
+
return /* @__PURE__ */ T("div", { className: `u-search ${e}`, children: [
|
|
10447
10449
|
/* @__PURE__ */ f(
|
|
10448
10450
|
"input",
|
|
10449
10451
|
{
|
|
@@ -10544,7 +10546,7 @@ const qr = [
|
|
|
10544
10546
|
absoluteValidationText: D,
|
|
10545
10547
|
disabled: C,
|
|
10546
10548
|
portalOn: _,
|
|
10547
|
-
onInputChange:
|
|
10549
|
+
onInputChange: O,
|
|
10548
10550
|
loading: k,
|
|
10549
10551
|
inputValue: g,
|
|
10550
10552
|
onInputValueChange: S,
|
|
@@ -10601,22 +10603,22 @@ const qr = [
|
|
|
10601
10603
|
}, [c]), ae(() => {
|
|
10602
10604
|
c != null && c.label && Object.keys(c).length && !X && G(c.label);
|
|
10603
10605
|
}, [X, c]);
|
|
10604
|
-
const ie = x ? g : Q,
|
|
10605
|
-
C || (X || A.open(le.currentTarget), x ? S && S(le.target.value) : G(le.target.value),
|
|
10606
|
+
const ie = x ? g : Q, Oe = (le) => {
|
|
10607
|
+
C || (X || A.open(le.currentTarget), x ? S && S(le.target.value) : G(le.target.value), O && O(le.target.value));
|
|
10606
10608
|
}, $e = !!(c && typeof c == "object" && c.value !== void 0 && String(c.value).length > 0);
|
|
10607
10609
|
ae(() => {
|
|
10608
10610
|
const le = H.current;
|
|
10609
10611
|
H.current = X, le && !X && x && $e && g.length > 0 && (S == null || S(""));
|
|
10610
10612
|
}, [X, x, $e, g, S]);
|
|
10611
10613
|
const We = () => {
|
|
10612
|
-
C || (p == null || p(null), x ? S == null || S("") : G(""),
|
|
10614
|
+
C || (p == null || p(null), x ? S == null || S("") : G(""), O && O(""), oe());
|
|
10613
10615
|
}, ot = (le) => {
|
|
10614
10616
|
le.preventDefault(), le.stopPropagation(), We();
|
|
10615
10617
|
}, kt = (le) => {
|
|
10616
10618
|
p == null || p(le), oe(), x ? S == null || S("") : G(le.label ?? "");
|
|
10617
10619
|
}, Ke = Xe(() => ya(E), [E]);
|
|
10618
10620
|
q.current = kt;
|
|
10619
|
-
const it = d && $e ? 28 : void 0, Le = d ? { display: "block" } : null, an = /* @__PURE__ */ f("div", { className: "u-selectbox-empty-text", children: M }),
|
|
10621
|
+
const it = d && $e ? 28 : void 0, Le = d ? { display: "block" } : null, an = /* @__PURE__ */ f("div", { className: "u-selectbox-empty-text", children: M }), Ot = (le, ze) => /* @__PURE__ */ f(
|
|
10620
10622
|
hp,
|
|
10621
10623
|
{
|
|
10622
10624
|
option: le,
|
|
@@ -10656,13 +10658,13 @@ const qr = [
|
|
|
10656
10658
|
type: "text",
|
|
10657
10659
|
disabled: C,
|
|
10658
10660
|
value: ie || "",
|
|
10659
|
-
onChange:
|
|
10661
|
+
onChange: Oe,
|
|
10660
10662
|
onKeyDown: P,
|
|
10661
10663
|
placeholder: c != null && c.label && Object.keys(c).length ? c.label : u
|
|
10662
10664
|
}
|
|
10663
10665
|
);
|
|
10664
|
-
return /* @__PURE__ */
|
|
10665
|
-
/* @__PURE__ */
|
|
10666
|
+
return /* @__PURE__ */ T("div", { className: `u-react-select-container ${h}`, style: { position: "relative" }, children: [
|
|
10667
|
+
/* @__PURE__ */ T(
|
|
10666
10668
|
"div",
|
|
10667
10669
|
{
|
|
10668
10670
|
style: Object.assign(
|
|
@@ -10689,7 +10691,7 @@ const qr = [
|
|
|
10689
10691
|
children: n
|
|
10690
10692
|
}
|
|
10691
10693
|
),
|
|
10692
|
-
/* @__PURE__ */
|
|
10694
|
+
/* @__PURE__ */ T(
|
|
10693
10695
|
"div",
|
|
10694
10696
|
{
|
|
10695
10697
|
className: `u-selectbox${C ? " u-selectbox-disabled" : ""} u-react-select`,
|
|
@@ -10701,7 +10703,7 @@ const qr = [
|
|
|
10701
10703
|
o
|
|
10702
10704
|
),
|
|
10703
10705
|
children: [
|
|
10704
|
-
d ? /* @__PURE__ */
|
|
10706
|
+
d ? /* @__PURE__ */ T("div", { style: { position: "relative", width: "100%" }, children: [
|
|
10705
10707
|
Qt,
|
|
10706
10708
|
!C && $e ? /* @__PURE__ */ f(
|
|
10707
10709
|
"div",
|
|
@@ -10760,7 +10762,7 @@ const qr = [
|
|
|
10760
10762
|
},
|
|
10761
10763
|
Bt(se, V)
|
|
10762
10764
|
),
|
|
10763
|
-
children: E.length > 0 ? E.map((le, ze) =>
|
|
10765
|
+
children: E.length > 0 ? E.map((le, ze) => Ot(le, ze)) : an
|
|
10764
10766
|
}
|
|
10765
10767
|
),
|
|
10766
10768
|
document.body
|
|
@@ -10780,7 +10782,7 @@ const qr = [
|
|
|
10780
10782
|
{ display: "block" },
|
|
10781
10783
|
Bt(Ne, V)
|
|
10782
10784
|
),
|
|
10783
|
-
children: E.length > 0 ? E.map((le, ze) =>
|
|
10785
|
+
children: E.length > 0 ? E.map((le, ze) => Ot(le, ze)) : an
|
|
10784
10786
|
}
|
|
10785
10787
|
) : null
|
|
10786
10788
|
]
|
|
@@ -10814,7 +10816,7 @@ const qr = [
|
|
|
10814
10816
|
absoluteValidationText: D,
|
|
10815
10817
|
disabled: C,
|
|
10816
10818
|
portalOn: _,
|
|
10817
|
-
noScroll:
|
|
10819
|
+
noScroll: O,
|
|
10818
10820
|
id: k
|
|
10819
10821
|
}) => {
|
|
10820
10822
|
const g = rn(v, m), S = Dt({ error: y, validationOn: b, validationText: w }), M = t.findIndex((V) => St(V == null ? void 0 : V.value, c == null ? void 0 : c.value)), I = wa({
|
|
@@ -10877,7 +10879,7 @@ const qr = [
|
|
|
10877
10879
|
padding: "8px 5px"
|
|
10878
10880
|
} : null,
|
|
10879
10881
|
De ? { backgroundColor: Gt.selectedBackground } : we ? { backgroundColor: Gt.hoveredBackground } : null,
|
|
10880
|
-
me &&
|
|
10882
|
+
me && O ? {
|
|
10881
10883
|
maxHeight: "none"
|
|
10882
10884
|
} : null,
|
|
10883
10885
|
o
|
|
@@ -10889,8 +10891,8 @@ const qr = [
|
|
|
10889
10891
|
xe[be]
|
|
10890
10892
|
);
|
|
10891
10893
|
};
|
|
10892
|
-
return /* @__PURE__ */
|
|
10893
|
-
/* @__PURE__ */
|
|
10894
|
+
return /* @__PURE__ */ T("div", { className: `u-react-select-container ${h}`, style: { position: "relative" }, children: [
|
|
10895
|
+
/* @__PURE__ */ T(
|
|
10894
10896
|
"div",
|
|
10895
10897
|
{
|
|
10896
10898
|
style: Object.assign(
|
|
@@ -10917,7 +10919,7 @@ const qr = [
|
|
|
10917
10919
|
children: n
|
|
10918
10920
|
}
|
|
10919
10921
|
),
|
|
10920
|
-
/* @__PURE__ */
|
|
10922
|
+
/* @__PURE__ */ T(
|
|
10921
10923
|
"div",
|
|
10922
10924
|
{
|
|
10923
10925
|
className: `u-selectbox${C ? " u-selectbox-disabled" : ""} u-react-select`,
|
|
@@ -10929,7 +10931,7 @@ const qr = [
|
|
|
10929
10931
|
o
|
|
10930
10932
|
),
|
|
10931
10933
|
children: [
|
|
10932
|
-
/* @__PURE__ */
|
|
10934
|
+
/* @__PURE__ */ T(
|
|
10933
10935
|
"div",
|
|
10934
10936
|
{
|
|
10935
10937
|
className: W ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
|
|
@@ -11009,7 +11011,7 @@ const qr = [
|
|
|
11009
11011
|
zIndex: "var(--u-select-popup-z, 1000)",
|
|
11010
11012
|
display: "block"
|
|
11011
11013
|
},
|
|
11012
|
-
|
|
11014
|
+
O ? {
|
|
11013
11015
|
maxHeight: "none"
|
|
11014
11016
|
} : {},
|
|
11015
11017
|
Bt(Y, ue)
|
|
@@ -11026,7 +11028,7 @@ const qr = [
|
|
|
11026
11028
|
role: "listbox",
|
|
11027
11029
|
className: "u-selectbox-options",
|
|
11028
11030
|
style: Object.assign(
|
|
11029
|
-
|
|
11031
|
+
O ? { maxHeight: "none" } : {},
|
|
11030
11032
|
/**
|
|
11031
11033
|
* `display` держим сами всё время, пока узел в разметке.
|
|
11032
11034
|
* Иначе при закрытии снимается класс `…-select-open`,
|
|
@@ -11085,7 +11087,7 @@ function Cf({
|
|
|
11085
11087
|
className: o
|
|
11086
11088
|
}) {
|
|
11087
11089
|
const i = _o(), s = a ?? i, l = ["u-switch", o].filter(Boolean).join(" ");
|
|
11088
|
-
return /* @__PURE__ */ f("div", { className: "u-switch-wrapper", children: /* @__PURE__ */
|
|
11090
|
+
return /* @__PURE__ */ f("div", { className: "u-switch-wrapper", children: /* @__PURE__ */ T("label", { className: l, htmlFor: s, children: [
|
|
11089
11091
|
/* @__PURE__ */ f(
|
|
11090
11092
|
"input",
|
|
11091
11093
|
{
|
|
@@ -11119,8 +11121,8 @@ const Nf = ({ children: n, className: r = "" }) => {
|
|
|
11119
11121
|
const c = (v = !1) => {
|
|
11120
11122
|
var k;
|
|
11121
11123
|
v && l !== window && (u = Number.parseFloat(window.getComputedStyle(l).paddingBottom) || 0);
|
|
11122
|
-
const w = i.getBoundingClientRect(), b = (k = i.parentElement) == null ? void 0 : k.getBoundingClientRect(), D = (l === window ? window.innerHeight : l.getBoundingClientRect().bottom) - u, C = Math.abs(w.bottom - D) <= 1, _ = typeof (b == null ? void 0 : b.bottom) == "number" && b.bottom > D + 1,
|
|
11123
|
-
o((g) => g ===
|
|
11124
|
+
const w = i.getBoundingClientRect(), b = (k = i.parentElement) == null ? void 0 : k.getBoundingClientRect(), D = (l === window ? window.innerHeight : l.getBoundingClientRect().bottom) - u, C = Math.abs(w.bottom - D) <= 1, _ = typeof (b == null ? void 0 : b.bottom) == "number" && b.bottom > D + 1, O = C && _;
|
|
11125
|
+
o((g) => g === O ? g : O);
|
|
11124
11126
|
}, d = (v = !1) => {
|
|
11125
11127
|
e.current == null && (e.current = window.requestAnimationFrame(() => {
|
|
11126
11128
|
e.current = null, c(v);
|
|
@@ -11206,7 +11208,7 @@ function wp({
|
|
|
11206
11208
|
return n > W;
|
|
11207
11209
|
}), b = n > v && w.length > 1, y = Math.ceil(n / t), D = y > 1;
|
|
11208
11210
|
if ((o ?? Math.max(0, Math.min(t, n - (r - 1) * t))) === 0 || !D && !b) return null;
|
|
11209
|
-
const _ = (r - 1) * t + 1,
|
|
11211
|
+
const _ = (r - 1) * t + 1, O = Math.min(r * t, n), k = () => vp(y, r, i).map((I, F) => I === "dots" ? /* @__PURE__ */ f(gp, {}, `dots-${F}`) : /* @__PURE__ */ f(
|
|
11210
11212
|
"button",
|
|
11211
11213
|
{
|
|
11212
11214
|
type: "button",
|
|
@@ -11220,7 +11222,7 @@ function wp({
|
|
|
11220
11222
|
u ? "u-pagination_no-results" : "",
|
|
11221
11223
|
c
|
|
11222
11224
|
].filter(Boolean).join(" ");
|
|
11223
|
-
return /* @__PURE__ */
|
|
11225
|
+
return /* @__PURE__ */ T(
|
|
11224
11226
|
"div",
|
|
11225
11227
|
{
|
|
11226
11228
|
className: M,
|
|
@@ -11229,8 +11231,8 @@ function wp({
|
|
|
11229
11231
|
...d
|
|
11230
11232
|
},
|
|
11231
11233
|
children: [
|
|
11232
|
-
u ? null : /* @__PURE__ */ f("p", { className: "u-pagination__result", children: g({ startItem: _, endItem:
|
|
11233
|
-
/* @__PURE__ */ f("div", { className: "u-pagination__limits", children: b && /* @__PURE__ */
|
|
11234
|
+
u ? null : /* @__PURE__ */ f("p", { className: "u-pagination__result", children: g({ startItem: _, endItem: O, totalItems: n }) }),
|
|
11235
|
+
/* @__PURE__ */ f("div", { className: "u-pagination__limits", children: b && /* @__PURE__ */ T(Re, { children: [
|
|
11234
11236
|
"Выводить по",
|
|
11235
11237
|
/* @__PURE__ */ f("div", { className: "u-pagination__limit-wrapper", children: w.map((I) => /* @__PURE__ */ f(
|
|
11236
11238
|
"span",
|
|
@@ -11245,7 +11247,7 @@ function wp({
|
|
|
11245
11247
|
I
|
|
11246
11248
|
)) })
|
|
11247
11249
|
] }) }),
|
|
11248
|
-
/* @__PURE__ */ f("div", { className: "u-table-pagination-paginator-column", children: D ? /* @__PURE__ */
|
|
11250
|
+
/* @__PURE__ */ f("div", { className: "u-table-pagination-paginator-column", children: D ? /* @__PURE__ */ T("div", { className: "u-paginator", children: [
|
|
11249
11251
|
/* @__PURE__ */ f(
|
|
11250
11252
|
"button",
|
|
11251
11253
|
{
|
|
@@ -11347,8 +11349,8 @@ const yp = (n, r, t, e) => {
|
|
|
11347
11349
|
children: r
|
|
11348
11350
|
}) => {
|
|
11349
11351
|
const [t, e] = j(!1), a = () => e((o) => !o);
|
|
11350
|
-
return /* @__PURE__ */
|
|
11351
|
-
/* @__PURE__ */
|
|
11352
|
+
return /* @__PURE__ */ T("div", { className: "u-table-mobile-card__row u-table-mobile-card__row--collapsible", children: [
|
|
11353
|
+
/* @__PURE__ */ T(
|
|
11352
11354
|
"button",
|
|
11353
11355
|
{
|
|
11354
11356
|
type: "button",
|
|
@@ -11394,9 +11396,9 @@ const yp = (n, r, t, e) => {
|
|
|
11394
11396
|
showLabels: p = !0,
|
|
11395
11397
|
columns: h = 1
|
|
11396
11398
|
}) => {
|
|
11397
|
-
const [m, v] = j(!1), w = u.length > 0, b = l.length > 0, y = h === 2 ? " u-table-mobile-card__fields--cols2" : "", D = /* @__PURE__ */
|
|
11398
|
-
/* @__PURE__ */
|
|
11399
|
-
/* @__PURE__ */
|
|
11399
|
+
const [m, v] = j(!1), w = u.length > 0, b = l.length > 0, y = h === 2 ? " u-table-mobile-card__fields--cols2" : "", D = /* @__PURE__ */ T(Re, { children: [
|
|
11400
|
+
/* @__PURE__ */ T("div", { className: "u-table-mobile-card__head-main", children: [
|
|
11401
|
+
/* @__PURE__ */ T("span", { className: "u-table-mobile-card__primary", children: [
|
|
11400
11402
|
p && !t && r != null && r !== "" && /* @__PURE__ */ f(
|
|
11401
11403
|
"span",
|
|
11402
11404
|
{
|
|
@@ -11423,7 +11425,7 @@ const yp = (n, r, t, e) => {
|
|
|
11423
11425
|
)
|
|
11424
11426
|
] }),
|
|
11425
11427
|
s.length > 0 && /* @__PURE__ */ f("span", { className: "u-table-mobile-card__inline-group", children: s.map(
|
|
11426
|
-
(_,
|
|
11428
|
+
(_, O) => p && !_.hideLabel ? /* @__PURE__ */ T("span", { className: "u-table-mobile-card__inline-field", children: [
|
|
11427
11429
|
/* @__PURE__ */ f(
|
|
11428
11430
|
"span",
|
|
11429
11431
|
{
|
|
@@ -11440,14 +11442,14 @@ const yp = (n, r, t, e) => {
|
|
|
11440
11442
|
children: _.value
|
|
11441
11443
|
}
|
|
11442
11444
|
)
|
|
11443
|
-
] },
|
|
11445
|
+
] }, O) : /* @__PURE__ */ f(
|
|
11444
11446
|
"span",
|
|
11445
11447
|
{
|
|
11446
11448
|
className: "u-table-mobile-card__inline",
|
|
11447
11449
|
style: _.valueColor ? { color: _.valueColor } : void 0,
|
|
11448
11450
|
children: _.value
|
|
11449
11451
|
},
|
|
11450
|
-
|
|
11452
|
+
O
|
|
11451
11453
|
)
|
|
11452
11454
|
) })
|
|
11453
11455
|
] }),
|
|
@@ -11460,7 +11462,7 @@ const yp = (n, r, t, e) => {
|
|
|
11460
11462
|
className: `u-table-mobile-card__chevron${m ? " u-table-mobile-card__chevron--open" : ""}`
|
|
11461
11463
|
}
|
|
11462
11464
|
)
|
|
11463
|
-
] }), C = (_,
|
|
11465
|
+
] }), C = (_, O) => /* @__PURE__ */ T("div", { className: "u-table-mobile-card__row", children: [
|
|
11464
11466
|
p && !_.hideLabel && /* @__PURE__ */ f(
|
|
11465
11467
|
"span",
|
|
11466
11468
|
{
|
|
@@ -11477,8 +11479,8 @@ const yp = (n, r, t, e) => {
|
|
|
11477
11479
|
children: _.value
|
|
11478
11480
|
}
|
|
11479
11481
|
)
|
|
11480
|
-
] },
|
|
11481
|
-
return /* @__PURE__ */
|
|
11482
|
+
] }, O);
|
|
11483
|
+
return /* @__PURE__ */ T(
|
|
11482
11484
|
"div",
|
|
11483
11485
|
{
|
|
11484
11486
|
className: `u-table-mobile-card u-table-mobile-card--list${c ? " u-table-mobile-card--flat" : ""}${d ? " u-table-mobile-card--divider" : ""}`,
|
|
@@ -11527,7 +11529,7 @@ const yp = (n, r, t, e) => {
|
|
|
11527
11529
|
mobileCardLabels: D = !0,
|
|
11528
11530
|
mobileMaxVisible: C,
|
|
11529
11531
|
mobileCardColumns: _ = 1,
|
|
11530
|
-
mobileCardGap:
|
|
11532
|
+
mobileCardGap: O,
|
|
11531
11533
|
mobileCardDivider: k,
|
|
11532
11534
|
mobileCardFlat: g
|
|
11533
11535
|
}) => {
|
|
@@ -11571,8 +11573,8 @@ const yp = (n, r, t, e) => {
|
|
|
11571
11573
|
const $ = n.filter((z) => z.sortOn);
|
|
11572
11574
|
if (!(h ?? $.length > 0) || $.length === 0) return null;
|
|
11573
11575
|
const P = $.find((z) => z.field === l);
|
|
11574
|
-
return v === "menu" ? /* @__PURE__ */
|
|
11575
|
-
/* @__PURE__ */
|
|
11576
|
+
return v === "menu" ? /* @__PURE__ */ T("div", { className: "u-table-mobile-sortmenu", ref: W, children: [
|
|
11577
|
+
/* @__PURE__ */ T(
|
|
11576
11578
|
"button",
|
|
11577
11579
|
{
|
|
11578
11580
|
type: "button",
|
|
@@ -11588,7 +11590,7 @@ const yp = (n, r, t, e) => {
|
|
|
11588
11590
|
),
|
|
11589
11591
|
Q && /* @__PURE__ */ f("div", { className: "u-table-mobile-sortmenu__list", role: "listbox", children: $.map((z) => {
|
|
11590
11592
|
const se = z.field === l;
|
|
11591
|
-
return /* @__PURE__ */
|
|
11593
|
+
return /* @__PURE__ */ T(
|
|
11592
11594
|
"button",
|
|
11593
11595
|
{
|
|
11594
11596
|
type: "button",
|
|
@@ -11622,7 +11624,7 @@ const yp = (n, r, t, e) => {
|
|
|
11622
11624
|
"aria-label": m,
|
|
11623
11625
|
children: $.map((z) => {
|
|
11624
11626
|
const se = z.field === l, xe = z.mobileLabel ?? z.title ?? z.field;
|
|
11625
|
-
return /* @__PURE__ */
|
|
11627
|
+
return /* @__PURE__ */ T(
|
|
11626
11628
|
"button",
|
|
11627
11629
|
{
|
|
11628
11630
|
type: "button",
|
|
@@ -11653,9 +11655,9 @@ const yp = (n, r, t, e) => {
|
|
|
11653
11655
|
);
|
|
11654
11656
|
})
|
|
11655
11657
|
}
|
|
11656
|
-
) : /* @__PURE__ */
|
|
11658
|
+
) : /* @__PURE__ */ T("div", { className: "u-table-mobile-toolbar u-table-mobile-toolbar--sort", children: [
|
|
11657
11659
|
m && /* @__PURE__ */ f("span", { className: "u-table-mobile-toolbar__label", children: m }),
|
|
11658
|
-
/* @__PURE__ */
|
|
11660
|
+
/* @__PURE__ */ T("div", { className: "u-table-mobile-toolbar__row", children: [
|
|
11659
11661
|
/* @__PURE__ */ f(
|
|
11660
11662
|
mp,
|
|
11661
11663
|
{
|
|
@@ -11726,7 +11728,7 @@ const yp = (n, r, t, e) => {
|
|
|
11726
11728
|
}))
|
|
11727
11729
|
},
|
|
11728
11730
|
$.id ?? ce
|
|
11729
|
-
) : /* @__PURE__ */
|
|
11731
|
+
) : /* @__PURE__ */ T(
|
|
11730
11732
|
"div",
|
|
11731
11733
|
{
|
|
11732
11734
|
className: `u-table-mobile-card${g ? " u-table-mobile-card--flat" : ""}${k ? " u-table-mobile-card--divider" : ""}`,
|
|
@@ -11740,7 +11742,7 @@ const yp = (n, r, t, e) => {
|
|
|
11740
11742
|
children: H(P, $, ce)
|
|
11741
11743
|
},
|
|
11742
11744
|
P.key ?? P.field ?? z
|
|
11743
|
-
) : /* @__PURE__ */
|
|
11745
|
+
) : /* @__PURE__ */ T("div", { className: "u-table-mobile-card__row", children: [
|
|
11744
11746
|
D && /* @__PURE__ */ f("span", { className: "u-table-mobile-card__label", children: P.mobileLabel ?? P.title }),
|
|
11745
11747
|
/* @__PURE__ */ f("span", { className: "u-table-mobile-card__value", children: H(P, $, ce) })
|
|
11746
11748
|
] }, P.key ?? P.field ?? z)
|
|
@@ -11749,13 +11751,13 @@ const yp = (n, r, t, e) => {
|
|
|
11749
11751
|
},
|
|
11750
11752
|
$.id ?? ce
|
|
11751
11753
|
);
|
|
11752
|
-
return /* @__PURE__ */
|
|
11754
|
+
return /* @__PURE__ */ T(Re, { children: [
|
|
11753
11755
|
pe(),
|
|
11754
11756
|
o || i ? /* @__PURE__ */ f("div", { className: "u-table-mobile-loading", children: /* @__PURE__ */ f(vi, { variant: "large-primary", className: "" }) }) : t === 0 ? s ? /* @__PURE__ */ f("div", { className: "u-table-mobile-empty", children: s }) : null : /* @__PURE__ */ f(
|
|
11755
11757
|
"div",
|
|
11756
11758
|
{
|
|
11757
11759
|
className: "u-table-mobile-list",
|
|
11758
|
-
style:
|
|
11760
|
+
style: O != null ? { gap: O } : void 0,
|
|
11759
11761
|
children: r.map(($, ce) => ue($, ce))
|
|
11760
11762
|
}
|
|
11761
11763
|
)
|
|
@@ -11765,7 +11767,7 @@ function Ep(n, r) {
|
|
|
11765
11767
|
const t = n == null ? void 0 : n[r];
|
|
11766
11768
|
return t && typeof t == "object" && "title" in t ? t.title : t;
|
|
11767
11769
|
}
|
|
11768
|
-
function
|
|
11770
|
+
function Tp(n, r, t = "asc", e = "ru") {
|
|
11769
11771
|
const a = t === "desc" ? -1 : 1, o = n == null || n === "", i = r == null || r === "";
|
|
11770
11772
|
if (o || i)
|
|
11771
11773
|
return o && i ? 0 : o ? 1 : -1;
|
|
@@ -11774,11 +11776,11 @@ function Op(n, r, t = "asc", e = "ru") {
|
|
|
11774
11776
|
const s = Number(n), l = Number(r);
|
|
11775
11777
|
return !Number.isNaN(s) && !Number.isNaN(l) ? a * (s - l) : a * String(n).localeCompare(String(r), e);
|
|
11776
11778
|
}
|
|
11777
|
-
function
|
|
11779
|
+
function Op(n, r, t, e = {}) {
|
|
11778
11780
|
if (!r || !t || !Array.isArray(n)) return n;
|
|
11779
11781
|
const a = e.getValue ?? Ep, o = e.locale ?? "ru";
|
|
11780
11782
|
return [...n].sort(
|
|
11781
|
-
(i, s) =>
|
|
11783
|
+
(i, s) => Tp(a(i, r), a(s, r), t, o)
|
|
11782
11784
|
);
|
|
11783
11785
|
}
|
|
11784
11786
|
function bi(n, r) {
|
|
@@ -11868,8 +11870,8 @@ const Pp = ({
|
|
|
11868
11870
|
return t.asc ? D - C : C - D;
|
|
11869
11871
|
if (b == null) return t.asc ? -1 : 1;
|
|
11870
11872
|
if (y == null) return t.asc ? 1 : -1;
|
|
11871
|
-
const _ = b.toString().toLowerCase(),
|
|
11872
|
-
return _ <
|
|
11873
|
+
const _ = b.toString().toLowerCase(), O = y.toString().toLowerCase();
|
|
11874
|
+
return _ < O ? t.asc ? -1 : 1 : _ > O ? t.asc ? 1 : -1 : 0;
|
|
11873
11875
|
}, p = [...s ? n == null ? void 0 : n.map((h) => {
|
|
11874
11876
|
var m;
|
|
11875
11877
|
return {
|
|
@@ -11963,7 +11965,7 @@ const Pp = ({
|
|
|
11963
11965
|
tdStyle: D,
|
|
11964
11966
|
allTdStyleFunction: C,
|
|
11965
11967
|
cellContentStyle: _,
|
|
11966
|
-
tdContentStyle:
|
|
11968
|
+
tdContentStyle: O,
|
|
11967
11969
|
allTdContentStyleFunction: k
|
|
11968
11970
|
}) => /* @__PURE__ */ f(
|
|
11969
11971
|
"tr",
|
|
@@ -11977,7 +11979,7 @@ const Pp = ({
|
|
|
11977
11979
|
ref: s && a !== void 0 ? (g) => {
|
|
11978
11980
|
c.current[a] = g;
|
|
11979
11981
|
} : void 0,
|
|
11980
|
-
children: o == null ? void 0 : o.map((g, S) => /* @__PURE__ */
|
|
11982
|
+
children: o == null ? void 0 : o.map((g, S) => /* @__PURE__ */ T(
|
|
11981
11983
|
"td",
|
|
11982
11984
|
{
|
|
11983
11985
|
id: `${i}td${r}${S}`,
|
|
@@ -12015,7 +12017,7 @@ const Pp = ({
|
|
|
12015
12017
|
WebkitBoxOrient: "vertical"
|
|
12016
12018
|
},
|
|
12017
12019
|
_,
|
|
12018
|
-
|
|
12020
|
+
O,
|
|
12019
12021
|
g.tdContentStyle,
|
|
12020
12022
|
g.cellContentStyle,
|
|
12021
12023
|
k && k(n),
|
|
@@ -12070,18 +12072,18 @@ const Pp = ({
|
|
|
12070
12072
|
page: s,
|
|
12071
12073
|
pageSize: l
|
|
12072
12074
|
}) => {
|
|
12073
|
-
const u = re(null), [c, d] = j(0), [p, h] = j(0), m = re([]), v = re([]), w = re([]), b = re([]), y = re([]), D = re({}), [C, _] = j(void 0),
|
|
12075
|
+
const u = re(null), [c, d] = j(0), [p, h] = j(0), m = re([]), v = re([]), w = re([]), b = re([]), y = re([]), D = re({}), [C, _] = j(void 0), O = Te(
|
|
12074
12076
|
(x) => m.current[x] ?? e,
|
|
12075
12077
|
[e]
|
|
12076
12078
|
), k = Xe(() => {
|
|
12077
12079
|
const x = new Array(n.length + 1).fill(0);
|
|
12078
12080
|
for (let E = 0; E < n.length; E++)
|
|
12079
|
-
x[E + 1] = x[E] +
|
|
12081
|
+
x[E + 1] = x[E] + O(E);
|
|
12080
12082
|
return x;
|
|
12081
|
-
}, [n.length,
|
|
12083
|
+
}, [n.length, O, p]), g = Xe(
|
|
12082
12084
|
() => k.length > 0 ? k[k.length - 1] : 0,
|
|
12083
12085
|
[k]
|
|
12084
|
-
), S = t + 1, M =
|
|
12086
|
+
), S = t + 1, M = Te(
|
|
12085
12087
|
(x) => {
|
|
12086
12088
|
let E = 0, N = k.length - 1;
|
|
12087
12089
|
for (; E < N; ) {
|
|
@@ -12094,7 +12096,7 @@ const Pp = ({
|
|
|
12094
12096
|
), I = typeof s == "number" && typeof l == "number" && l > 0, F = I ? n.slice((s - 1) * l, s * l) : n, W = r && !I && n.length > t, Q = W ? k[c] : 0, G = W ? Math.max(
|
|
12095
12097
|
0,
|
|
12096
12098
|
g - k[Math.min(n.length, c + S)]
|
|
12097
|
-
) : 0, H =
|
|
12099
|
+
) : 0, H = Te(
|
|
12098
12100
|
(x) => {
|
|
12099
12101
|
if (!W)
|
|
12100
12102
|
return;
|
|
@@ -12278,7 +12280,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12278
12280
|
{ id: "2", title: "Нет" }
|
|
12279
12281
|
], qp = ({ active: n }) => {
|
|
12280
12282
|
const r = n ? "#1E4391" : "#9FAECD";
|
|
12281
|
-
return /* @__PURE__ */
|
|
12283
|
+
return /* @__PURE__ */ T(
|
|
12282
12284
|
"svg",
|
|
12283
12285
|
{
|
|
12284
12286
|
width: "12",
|
|
@@ -12294,7 +12296,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12294
12296
|
]
|
|
12295
12297
|
}
|
|
12296
12298
|
);
|
|
12297
|
-
},
|
|
12299
|
+
}, Tr = (n) => {
|
|
12298
12300
|
var m;
|
|
12299
12301
|
const [r, t] = j(!1), [e, a] = j(void 0);
|
|
12300
12302
|
ae(() => a(n.value), []);
|
|
@@ -12307,14 +12309,14 @@ const Fp = (n, r, t, e) => {
|
|
|
12307
12309
|
}, l = re(null);
|
|
12308
12310
|
Mr({ refs: [l], onDismiss: o, enabled: r });
|
|
12309
12311
|
const u = e, c = n.value, d = u == null ? void 0 : u.id, p = u == null ? void 0 : u.title, h = u == null ? void 0 : u.value;
|
|
12310
|
-
return /* @__PURE__ */
|
|
12312
|
+
return /* @__PURE__ */ T(
|
|
12311
12313
|
"div",
|
|
12312
12314
|
{
|
|
12313
12315
|
ref: l,
|
|
12314
12316
|
className: `u-selectbox ${n.disabled && "u-selectbox-disabled "}` + n.className,
|
|
12315
12317
|
style: { width: n.width },
|
|
12316
12318
|
children: [
|
|
12317
|
-
/* @__PURE__ */
|
|
12319
|
+
/* @__PURE__ */ T(
|
|
12318
12320
|
"div",
|
|
12319
12321
|
{
|
|
12320
12322
|
style: {
|
|
@@ -12341,7 +12343,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12341
12343
|
]
|
|
12342
12344
|
}
|
|
12343
12345
|
),
|
|
12344
|
-
!n.disabled && /* @__PURE__ */
|
|
12346
|
+
!n.disabled && /* @__PURE__ */ T("div", { className: "u-selectbox-options", children: [
|
|
12345
12347
|
n.options && n.options.map((v) => /* @__PURE__ */ f(
|
|
12346
12348
|
"div",
|
|
12347
12349
|
{
|
|
@@ -12386,7 +12388,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12386
12388
|
setDateEnd: p
|
|
12387
12389
|
}) => {
|
|
12388
12390
|
var h, m;
|
|
12389
|
-
return /* @__PURE__ */
|
|
12391
|
+
return /* @__PURE__ */ T(
|
|
12390
12392
|
"div",
|
|
12391
12393
|
{
|
|
12392
12394
|
className: "select-params__box",
|
|
@@ -12403,7 +12405,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12403
12405
|
zIndex: 999
|
|
12404
12406
|
},
|
|
12405
12407
|
children: [
|
|
12406
|
-
/* @__PURE__ */
|
|
12408
|
+
/* @__PURE__ */ T(
|
|
12407
12409
|
"div",
|
|
12408
12410
|
{
|
|
12409
12411
|
style: {
|
|
@@ -12414,7 +12416,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12414
12416
|
},
|
|
12415
12417
|
children: [
|
|
12416
12418
|
/* @__PURE__ */ f(
|
|
12417
|
-
|
|
12419
|
+
Tr,
|
|
12418
12420
|
{
|
|
12419
12421
|
keySelect: "typeFilterSearch",
|
|
12420
12422
|
value: o == null ? void 0 : o.typeFilterSearch,
|
|
@@ -12455,7 +12457,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12455
12457
|
]
|
|
12456
12458
|
}
|
|
12457
12459
|
),
|
|
12458
|
-
/* @__PURE__ */
|
|
12460
|
+
/* @__PURE__ */ T(
|
|
12459
12461
|
"div",
|
|
12460
12462
|
{
|
|
12461
12463
|
style: {
|
|
@@ -12529,7 +12531,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12529
12531
|
selectAll: h,
|
|
12530
12532
|
checkBox: m,
|
|
12531
12533
|
chooseAllFoundedChecker: v
|
|
12532
|
-
}) => /* @__PURE__ */
|
|
12534
|
+
}) => /* @__PURE__ */ T(
|
|
12533
12535
|
"div",
|
|
12534
12536
|
{
|
|
12535
12537
|
className: "select-params__box",
|
|
@@ -12548,7 +12550,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12548
12550
|
zIndex: 9999
|
|
12549
12551
|
},
|
|
12550
12552
|
children: [
|
|
12551
|
-
/* @__PURE__ */
|
|
12553
|
+
/* @__PURE__ */ T(
|
|
12552
12554
|
"div",
|
|
12553
12555
|
{
|
|
12554
12556
|
style: {
|
|
@@ -12559,7 +12561,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12559
12561
|
},
|
|
12560
12562
|
children: [
|
|
12561
12563
|
/* @__PURE__ */ f(
|
|
12562
|
-
|
|
12564
|
+
Tr,
|
|
12563
12565
|
{
|
|
12564
12566
|
keySelect: "typeFilterSearch",
|
|
12565
12567
|
value: o == null ? void 0 : o.typeFilterSearch,
|
|
@@ -12609,8 +12611,8 @@ const Fp = (n, r, t, e) => {
|
|
|
12609
12611
|
isSelectColumn: !0
|
|
12610
12612
|
}
|
|
12611
12613
|
) }),
|
|
12612
|
-
/* @__PURE__ */
|
|
12613
|
-
d.length > 0 ? /* @__PURE__ */
|
|
12614
|
+
/* @__PURE__ */ T("ul", { style: { overflow: "auto", height: 170 }, children: [
|
|
12615
|
+
d.length > 0 ? /* @__PURE__ */ T(
|
|
12614
12616
|
"li",
|
|
12615
12617
|
{
|
|
12616
12618
|
className: "select-column__li",
|
|
@@ -12621,7 +12623,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12621
12623
|
alignItems: "center"
|
|
12622
12624
|
},
|
|
12623
12625
|
children: [
|
|
12624
|
-
/* @__PURE__ */
|
|
12626
|
+
/* @__PURE__ */ T("label", { className: "u-checkbox", children: [
|
|
12625
12627
|
/* @__PURE__ */ f(
|
|
12626
12628
|
"input",
|
|
12627
12629
|
{
|
|
@@ -12664,7 +12666,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12664
12666
|
children: "Не найдено"
|
|
12665
12667
|
}
|
|
12666
12668
|
),
|
|
12667
|
-
d && (d == null ? void 0 : d.map((w, b) => /* @__PURE__ */
|
|
12669
|
+
d && (d == null ? void 0 : d.map((w, b) => /* @__PURE__ */ T(
|
|
12668
12670
|
"li",
|
|
12669
12671
|
{
|
|
12670
12672
|
className: "select-column__li",
|
|
@@ -12714,7 +12716,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12714
12716
|
checkBox: m,
|
|
12715
12717
|
chooseAllFoundedChecker: v,
|
|
12716
12718
|
filterEmptyLabel: w
|
|
12717
|
-
}) => /* @__PURE__ */
|
|
12719
|
+
}) => /* @__PURE__ */ T(
|
|
12718
12720
|
"div",
|
|
12719
12721
|
{
|
|
12720
12722
|
className: "select-params__box",
|
|
@@ -12733,7 +12735,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12733
12735
|
zIndex: 9999
|
|
12734
12736
|
},
|
|
12735
12737
|
children: [
|
|
12736
|
-
/* @__PURE__ */
|
|
12738
|
+
/* @__PURE__ */ T(
|
|
12737
12739
|
"div",
|
|
12738
12740
|
{
|
|
12739
12741
|
style: {
|
|
@@ -12744,7 +12746,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12744
12746
|
},
|
|
12745
12747
|
children: [
|
|
12746
12748
|
/* @__PURE__ */ f(
|
|
12747
|
-
|
|
12749
|
+
Tr,
|
|
12748
12750
|
{
|
|
12749
12751
|
keySelect: "typeFilterSearch",
|
|
12750
12752
|
value: o == null ? void 0 : o.typeFilterSearch,
|
|
@@ -12794,8 +12796,8 @@ const Fp = (n, r, t, e) => {
|
|
|
12794
12796
|
isSelectColumn: !0
|
|
12795
12797
|
}
|
|
12796
12798
|
) }),
|
|
12797
|
-
/* @__PURE__ */
|
|
12798
|
-
d.length > 0 ? /* @__PURE__ */
|
|
12799
|
+
/* @__PURE__ */ T("ul", { style: { overflow: "auto", height: 170 }, children: [
|
|
12800
|
+
d.length > 0 ? /* @__PURE__ */ T(
|
|
12799
12801
|
"li",
|
|
12800
12802
|
{
|
|
12801
12803
|
className: "select-column__li",
|
|
@@ -12806,7 +12808,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12806
12808
|
alignItems: "center"
|
|
12807
12809
|
},
|
|
12808
12810
|
children: [
|
|
12809
|
-
/* @__PURE__ */
|
|
12811
|
+
/* @__PURE__ */ T("label", { className: "u-checkbox", children: [
|
|
12810
12812
|
/* @__PURE__ */ f(
|
|
12811
12813
|
"input",
|
|
12812
12814
|
{
|
|
@@ -12849,7 +12851,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12849
12851
|
children: "Не найдено"
|
|
12850
12852
|
}
|
|
12851
12853
|
),
|
|
12852
|
-
d && (d == null ? void 0 : d.map((b, y) => /* @__PURE__ */
|
|
12854
|
+
d && (d == null ? void 0 : d.map((b, y) => /* @__PURE__ */ T(
|
|
12853
12855
|
"li",
|
|
12854
12856
|
{
|
|
12855
12857
|
className: "select-column__li",
|
|
@@ -12910,7 +12912,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12910
12912
|
cursor: "default",
|
|
12911
12913
|
zIndex: 9999
|
|
12912
12914
|
},
|
|
12913
|
-
children: /* @__PURE__ */
|
|
12915
|
+
children: /* @__PURE__ */ T(
|
|
12914
12916
|
"div",
|
|
12915
12917
|
{
|
|
12916
12918
|
style: {
|
|
@@ -12922,7 +12924,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12922
12924
|
},
|
|
12923
12925
|
children: [
|
|
12924
12926
|
/* @__PURE__ */ f(
|
|
12925
|
-
|
|
12927
|
+
Tr,
|
|
12926
12928
|
{
|
|
12927
12929
|
keySelect: "typeFilterSearch",
|
|
12928
12930
|
value: o == null ? void 0 : o.typeFilterSearch,
|
|
@@ -12987,7 +12989,7 @@ const Fp = (n, r, t, e) => {
|
|
|
12987
12989
|
setColumnWidths: D,
|
|
12988
12990
|
tableRight: C,
|
|
12989
12991
|
filterDates: _,
|
|
12990
|
-
isParentDataField:
|
|
12992
|
+
isParentDataField: O,
|
|
12991
12993
|
filterResetParam: k
|
|
12992
12994
|
}) => {
|
|
12993
12995
|
const g = `${n}th${r}`, S = "auto", [M, I] = j(), [F, W] = j(), [Q, G] = j(), [H, x] = j(), [E, N] = j(0), [A, X] = j(""), [J, B] = j(), [Y, ne] = j(!1), [pe, ue] = j(), $ = re(null), ce = Ap(() => {
|
|
@@ -13008,7 +13010,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13008
13010
|
v == null || v(Z);
|
|
13009
13011
|
}, be = (q, L) => {
|
|
13010
13012
|
var Z;
|
|
13011
|
-
return /* @__PURE__ */
|
|
13013
|
+
return /* @__PURE__ */ T(Re, { children: [
|
|
13012
13014
|
/* @__PURE__ */ f(
|
|
13013
13015
|
"input",
|
|
13014
13016
|
{
|
|
@@ -13024,7 +13026,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13024
13026
|
var Z;
|
|
13025
13027
|
d(
|
|
13026
13028
|
L in c ? c[L].filter((ie) => ie !== q).length === 0 ? Object.keys(c).filter((ie) => ie !== String(L)).reduce(
|
|
13027
|
-
(ie,
|
|
13029
|
+
(ie, Oe) => ({ ...ie, [Oe]: c[Oe] }),
|
|
13028
13030
|
{}
|
|
13029
13031
|
) : (Z = c[L]) != null && Z.some((ie) => ie === q) ? {
|
|
13030
13032
|
...c,
|
|
@@ -13134,7 +13136,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13134
13136
|
checkBox: be,
|
|
13135
13137
|
chooseAllFoundedChecker: Y
|
|
13136
13138
|
};
|
|
13137
|
-
return /* @__PURE__ */
|
|
13139
|
+
return /* @__PURE__ */ T(
|
|
13138
13140
|
"th",
|
|
13139
13141
|
{
|
|
13140
13142
|
ref: (q) => {
|
|
@@ -13156,7 +13158,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13156
13158
|
s.cellStyle
|
|
13157
13159
|
),
|
|
13158
13160
|
children: [
|
|
13159
|
-
/* @__PURE__ */
|
|
13161
|
+
/* @__PURE__ */ T(
|
|
13160
13162
|
"div",
|
|
13161
13163
|
{
|
|
13162
13164
|
onClick: () => {
|
|
@@ -13167,7 +13169,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13167
13169
|
display: "flex",
|
|
13168
13170
|
alignItems: "center",
|
|
13169
13171
|
justifyContent: "space-between",
|
|
13170
|
-
width: w && !s.resizeOff && (s != null && s.width) ? y[s.field] >= s.width ?
|
|
13172
|
+
width: w && !s.resizeOff && (s != null && s.width) ? y[s.field] >= s.width ? O && r === 0 ? y[s.field] + 24 : y[s.field] : ko(s.width) : w && !s.resizeOff || s != null && s.width ? O && r === 0 ? y[s.field] + 24 : y[s.field] : S,
|
|
13171
13173
|
minWidth: w && !s.resizeOff && s.width ? ko(s.width) : "",
|
|
13172
13174
|
position: s.sticky ? "sticky" : "",
|
|
13173
13175
|
height: E - 2,
|
|
@@ -13259,7 +13261,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13259
13261
|
parentDataField: D,
|
|
13260
13262
|
filterResetParam: C,
|
|
13261
13263
|
thRefs: _,
|
|
13262
|
-
columnWidths:
|
|
13264
|
+
columnWidths: O,
|
|
13263
13265
|
calcLeftValues: k,
|
|
13264
13266
|
cellStyle: g,
|
|
13265
13267
|
thStyle: S,
|
|
@@ -13272,7 +13274,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13272
13274
|
handleSortToggle: H
|
|
13273
13275
|
}) => {
|
|
13274
13276
|
const x = (N) => {
|
|
13275
|
-
const A = F === N.field, X = Q === N.field, J = /* @__PURE__ */
|
|
13277
|
+
const A = F === N.field, X = Q === N.field, J = /* @__PURE__ */ T(
|
|
13276
13278
|
"span",
|
|
13277
13279
|
{
|
|
13278
13280
|
className: "u-table-th-sortable",
|
|
@@ -13289,7 +13291,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13289
13291
|
onMouseEnter: () => G(N.field),
|
|
13290
13292
|
onMouseLeave: () => G(null),
|
|
13291
13293
|
children: [
|
|
13292
|
-
/* @__PURE__ */
|
|
13294
|
+
/* @__PURE__ */ T("span", { children: [
|
|
13293
13295
|
N.title,
|
|
13294
13296
|
N.headerIcon && /* @__PURE__ */ f("span", { style: { marginLeft: 4 }, children: N.headerIcon })
|
|
13295
13297
|
] }),
|
|
@@ -13307,7 +13309,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13307
13309
|
return N.headerTooltip ? /* @__PURE__ */ f(In, { tooltipText: N.headerTooltip, portalOn: !0, children: J }) : J;
|
|
13308
13310
|
}, E = (N) => {
|
|
13309
13311
|
if (!N.headerIcon && !N.headerTooltip) return N.title;
|
|
13310
|
-
const A = /* @__PURE__ */
|
|
13312
|
+
const A = /* @__PURE__ */ T("span", { style: { display: "inline-flex", alignItems: "center" }, children: [
|
|
13311
13313
|
N.title,
|
|
13312
13314
|
N.headerIcon && /* @__PURE__ */ f("span", { style: { marginLeft: 4 }, children: N.headerIcon })
|
|
13313
13315
|
] });
|
|
@@ -13378,7 +13380,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13378
13380
|
style: wr(
|
|
13379
13381
|
Object.assign(
|
|
13380
13382
|
{
|
|
13381
|
-
width: m && !N.resizeOff && (N != null && N.width) ?
|
|
13383
|
+
width: m && !N.resizeOff && (N != null && N.width) ? O[N.field] >= N.width ? O[N.field] : br(N.width) : m && !N.resizeOff || N.width ? O[N.field] || N.width : Zp,
|
|
13382
13384
|
minWidth: m && !N.resizeOff && N.width ? br(N.width) : "",
|
|
13383
13385
|
position: N.sticky ? "sticky" : "",
|
|
13384
13386
|
overflow: m && !N.resizeOff ? "hidden" : "auto"
|
|
@@ -13434,7 +13436,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13434
13436
|
draggable: D,
|
|
13435
13437
|
resize: C,
|
|
13436
13438
|
onDrop: _,
|
|
13437
|
-
maxHeight:
|
|
13439
|
+
maxHeight: O,
|
|
13438
13440
|
minHeight: k,
|
|
13439
13441
|
whereFindChecked: g = "",
|
|
13440
13442
|
filterEmptyLabel: S = "Не указано",
|
|
@@ -13477,12 +13479,12 @@ const Fp = (n, r, t, e) => {
|
|
|
13477
13479
|
const {
|
|
13478
13480
|
columnWidths: Z,
|
|
13479
13481
|
lookColumnWidths: ie,
|
|
13480
|
-
setLookColumnWidths:
|
|
13482
|
+
setLookColumnWidths: Oe,
|
|
13481
13483
|
handleMouseDown: $e,
|
|
13482
13484
|
thRefs: We
|
|
13483
13485
|
} = Ip(r, C), [ot, kt] = j(void 0), [Ke, it] = j([]), [Le, an] = j(
|
|
13484
13486
|
r.filter((Me) => Me.hidden !== !0)
|
|
13485
|
-
), [
|
|
13487
|
+
), [Ot, Qt] = j({}), [le, ze] = j([]), {
|
|
13486
13488
|
sort: kn,
|
|
13487
13489
|
setSort: $n,
|
|
13488
13490
|
hoveredSortCol: K,
|
|
@@ -13492,7 +13494,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13492
13494
|
applySort: on,
|
|
13493
13495
|
handleSortToggle: Pt,
|
|
13494
13496
|
setSortField: qt,
|
|
13495
|
-
toggleSortDir:
|
|
13497
|
+
toggleSortDir: Or
|
|
13496
13498
|
} = Pp({
|
|
13497
13499
|
defaultSort: ue,
|
|
13498
13500
|
controlledSort: B,
|
|
@@ -13529,14 +13531,14 @@ const Fp = (n, r, t, e) => {
|
|
|
13529
13531
|
for (let tt = Me; tt > 0; tt--)
|
|
13530
13532
|
Ye = r[tt - 1].width ? Ye + r[tt - 1].width : Ye;
|
|
13531
13533
|
return Ye;
|
|
13532
|
-
},
|
|
13534
|
+
}, Ti = (Me, Ye) => _(Me, Ye);
|
|
13533
13535
|
ae(() => {
|
|
13534
13536
|
if (n) {
|
|
13535
13537
|
const Me = Rp({
|
|
13536
13538
|
data: n,
|
|
13537
13539
|
columns: r,
|
|
13538
13540
|
sort: kn,
|
|
13539
|
-
uncheckedValues:
|
|
13541
|
+
uncheckedValues: Ot,
|
|
13540
13542
|
filterDates: le,
|
|
13541
13543
|
whereFindChecked: g,
|
|
13542
13544
|
filterEmptyLabel: S,
|
|
@@ -13544,7 +13546,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13544
13546
|
});
|
|
13545
13547
|
it(Ca(Me)), Q && Q(Ca(Me));
|
|
13546
13548
|
}
|
|
13547
|
-
}, [n,
|
|
13549
|
+
}, [n, Ot, le, kn]), ae(() => {
|
|
13548
13550
|
Qt({});
|
|
13549
13551
|
}, [H]);
|
|
13550
13552
|
const Ca = (Me) => Me.map((Ye, tt) => ({
|
|
@@ -13556,7 +13558,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13556
13558
|
ae(() => {
|
|
13557
13559
|
an(r.filter((Me) => Me.hidden !== !0));
|
|
13558
13560
|
}, [r]);
|
|
13559
|
-
const
|
|
13561
|
+
const Oi = (Me) => {
|
|
13560
13562
|
const Ye = [...Ke];
|
|
13561
13563
|
Ye[Me].parentDataOpened = !0, it(Ye);
|
|
13562
13564
|
}, Pi = (Me) => {
|
|
@@ -13586,8 +13588,8 @@ const Fp = (n, r, t, e) => {
|
|
|
13586
13588
|
columnWidths: Z,
|
|
13587
13589
|
parentDataField: I,
|
|
13588
13590
|
calcLeftValues: Sa,
|
|
13589
|
-
handleDrop:
|
|
13590
|
-
insertChildRows:
|
|
13591
|
+
handleDrop: Ti,
|
|
13592
|
+
insertChildRows: Oi,
|
|
13591
13593
|
removeChildRows: Pi,
|
|
13592
13594
|
cellStyle: u,
|
|
13593
13595
|
tdStyle: s,
|
|
@@ -13596,13 +13598,13 @@ const Fp = (n, r, t, e) => {
|
|
|
13596
13598
|
tdContentStyle: c,
|
|
13597
13599
|
allTdContentStyleFunction: b
|
|
13598
13600
|
};
|
|
13599
|
-
return /* @__PURE__ */
|
|
13601
|
+
return /* @__PURE__ */ T(Re, { children: [
|
|
13600
13602
|
(n == null ? void 0 : n.length) !== 0 || (n == null ? void 0 : n.length) === 0 && m ? /* @__PURE__ */ f(
|
|
13601
13603
|
"div",
|
|
13602
13604
|
{
|
|
13603
13605
|
id: y,
|
|
13604
13606
|
className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? Dp(t) : ""}${e ? " striped" : ""}${a ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${v ? " " + v : ""}${Rr ? " u-table-mobile" : ""}`,
|
|
13605
|
-
style: { maxHeight:
|
|
13607
|
+
style: { maxHeight: O, minHeight: k },
|
|
13606
13608
|
ref: sn,
|
|
13607
13609
|
children: Rr ? /* @__PURE__ */ f(
|
|
13608
13610
|
Mp,
|
|
@@ -13619,7 +13621,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13619
13621
|
effectiveSortDir: zt,
|
|
13620
13622
|
applySort: on,
|
|
13621
13623
|
setSortField: qt,
|
|
13622
|
-
toggleSortDir:
|
|
13624
|
+
toggleSortDir: Or,
|
|
13623
13625
|
mobileSortBar: oe,
|
|
13624
13626
|
mobileSortLabel: de,
|
|
13625
13627
|
mobileSortStyle: q,
|
|
@@ -13633,7 +13635,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13633
13635
|
mobileCardDivider: be,
|
|
13634
13636
|
mobileCardFlat: L
|
|
13635
13637
|
}
|
|
13636
|
-
) : /* @__PURE__ */
|
|
13638
|
+
) : /* @__PURE__ */ T("table", { className: "table", children: [
|
|
13637
13639
|
!G && /* @__PURE__ */ f(
|
|
13638
13640
|
Jp,
|
|
13639
13641
|
{
|
|
@@ -13644,7 +13646,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13644
13646
|
setSelected: kt,
|
|
13645
13647
|
setFilteredData: it,
|
|
13646
13648
|
filteredData: Ke,
|
|
13647
|
-
uncheckedValues:
|
|
13649
|
+
uncheckedValues: Ot,
|
|
13648
13650
|
setUncheckedValues: Qt,
|
|
13649
13651
|
setFilterDates: ze,
|
|
13650
13652
|
filterDates: le,
|
|
@@ -13653,7 +13655,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13653
13655
|
setSort: $n,
|
|
13654
13656
|
resize: C,
|
|
13655
13657
|
handleMouseDown: $e,
|
|
13656
|
-
setLookColumnWidths:
|
|
13658
|
+
setLookColumnWidths: Oe,
|
|
13657
13659
|
lookColumnWidths: ie,
|
|
13658
13660
|
rootRef: sn,
|
|
13659
13661
|
parentDataField: I,
|
|
@@ -13690,11 +13692,11 @@ const Fp = (n, r, t, e) => {
|
|
|
13690
13692
|
rows: A,
|
|
13691
13693
|
rowHeight: X
|
|
13692
13694
|
}
|
|
13693
|
-
) : /* @__PURE__ */
|
|
13695
|
+
) : /* @__PURE__ */ T(Re, { children: [
|
|
13694
13696
|
(n == null ? void 0 : n.length) === 0 && m ? /* @__PURE__ */ f("tr", { className: "u-empty-table-row", children: /* @__PURE__ */ f("td", { colSpan: Le.length, children: m }) }) : Bn && /* @__PURE__ */ f("tr", { style: { height: Si } }),
|
|
13695
13697
|
(Ea = Bn ? Ke == null ? void 0 : Ke.slice(ln, ln + Pr) : Hn) == null ? void 0 : Ea.map((Me, Ye) => {
|
|
13696
13698
|
const tt = Bn ? ln + Ye : Ye;
|
|
13697
|
-
return /* @__PURE__ */
|
|
13699
|
+
return /* @__PURE__ */ T(
|
|
13698
13700
|
R.Fragment,
|
|
13699
13701
|
{
|
|
13700
13702
|
children: [
|
|
@@ -13764,7 +13766,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13764
13766
|
onClick: () => n == null ? void 0 : n(o),
|
|
13765
13767
|
children: o.title
|
|
13766
13768
|
}
|
|
13767
|
-
) }, o.id)) }),
|
|
13769
|
+
) }, o.id)) }), Tf = ({
|
|
13768
13770
|
title: n = "",
|
|
13769
13771
|
placeholder: r = "введите",
|
|
13770
13772
|
defaultValue: t,
|
|
@@ -13782,7 +13784,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13782
13784
|
className: m = ""
|
|
13783
13785
|
}) => {
|
|
13784
13786
|
const v = et(a, "u-textarea"), w = (b) => typeof b == "number" ? `${b}px` : String(b);
|
|
13785
|
-
return /* @__PURE__ */
|
|
13787
|
+
return /* @__PURE__ */ T(
|
|
13786
13788
|
"div",
|
|
13787
13789
|
{
|
|
13788
13790
|
className: `u-react-input-container ${m}`,
|
|
@@ -13814,7 +13816,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13814
13816
|
]
|
|
13815
13817
|
}
|
|
13816
13818
|
);
|
|
13817
|
-
},
|
|
13819
|
+
}, Of = ({
|
|
13818
13820
|
title: n = "",
|
|
13819
13821
|
required: r = !1,
|
|
13820
13822
|
styleSelectContainer: t,
|
|
@@ -13837,7 +13839,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13837
13839
|
data: D,
|
|
13838
13840
|
portalOn: C,
|
|
13839
13841
|
id: _,
|
|
13840
|
-
disabled:
|
|
13842
|
+
disabled: O,
|
|
13841
13843
|
isSearchable: k
|
|
13842
13844
|
}) => {
|
|
13843
13845
|
var q;
|
|
@@ -13850,23 +13852,23 @@ const Fp = (n, r, t, e) => {
|
|
|
13850
13852
|
enabled: x
|
|
13851
13853
|
});
|
|
13852
13854
|
const ue = (L) => typeof L == "number" ? `${L}px` : String(L), $ = (L, Z) => {
|
|
13853
|
-
L.stopPropagation(), H((ie) => ie != null && ie.includes(Z) ? ie.filter((
|
|
13855
|
+
L.stopPropagation(), H((ie) => ie != null && ie.includes(Z) ? ie.filter((Oe) => Oe !== Z) : [...ie, Z]);
|
|
13854
13856
|
}, ce = (L) => {
|
|
13855
|
-
const Z = D.filter((
|
|
13857
|
+
const Z = D.filter((Oe) => Oe.parentId === L.id);
|
|
13856
13858
|
if (Z.length === 0)
|
|
13857
13859
|
return L;
|
|
13858
13860
|
let ie = null;
|
|
13859
|
-
return Z.forEach((
|
|
13860
|
-
const $e = ce(
|
|
13861
|
+
return Z.forEach((Oe) => {
|
|
13862
|
+
const $e = ce(Oe);
|
|
13861
13863
|
$e && (ie = $e);
|
|
13862
13864
|
}), ie;
|
|
13863
13865
|
}, P = ({ node: L, counter: Z }) => {
|
|
13864
|
-
const ie = D.filter((Le) => Le.parentId === L.id),
|
|
13866
|
+
const ie = D.filter((Le) => Le.parentId === L.id), Oe = Z + 1, $e = G == null ? void 0 : G.includes(L.id), We = ce(L), ot = V === L.id, kt = l == (L == null ? void 0 : L.title), Ke = N === L.id, it = () => {
|
|
13865
13867
|
var Le;
|
|
13866
13868
|
d(L), pe(), k && (F(""), (Le = B == null ? void 0 : B.current) == null || Le.focus());
|
|
13867
13869
|
};
|
|
13868
|
-
return /* @__PURE__ */
|
|
13869
|
-
/* @__PURE__ */
|
|
13870
|
+
return /* @__PURE__ */ T("ul", { className: "treeview-list", children: [
|
|
13871
|
+
/* @__PURE__ */ T(
|
|
13870
13872
|
"li",
|
|
13871
13873
|
{
|
|
13872
13874
|
className: "treeview-list__item",
|
|
@@ -13884,26 +13886,26 @@ const Fp = (n, r, t, e) => {
|
|
|
13884
13886
|
]
|
|
13885
13887
|
}
|
|
13886
13888
|
),
|
|
13887
|
-
$e && ie.map((Le) => /* @__PURE__ */ f(P, { node: Le, counter:
|
|
13889
|
+
$e && ie.map((Le) => /* @__PURE__ */ f(P, { node: Le, counter: Oe }, Le.id))
|
|
13888
13890
|
] });
|
|
13889
13891
|
}, z = k && I ? ne : D == null ? void 0 : D.filter((L) => L.parentId === null), se = Xe(() => {
|
|
13890
13892
|
if (!Array.isArray(D)) return [];
|
|
13891
13893
|
if (k && I)
|
|
13892
13894
|
return ne;
|
|
13893
13895
|
const L = /* @__PURE__ */ new Map();
|
|
13894
|
-
D.forEach((
|
|
13895
|
-
const $e =
|
|
13896
|
-
We.push(
|
|
13896
|
+
D.forEach((Oe) => {
|
|
13897
|
+
const $e = Oe.parentId, We = L.get($e) ?? [];
|
|
13898
|
+
We.push(Oe), L.set($e, We);
|
|
13897
13899
|
});
|
|
13898
|
-
const Z = [], ie = (
|
|
13899
|
-
(L.get(
|
|
13900
|
+
const Z = [], ie = (Oe) => {
|
|
13901
|
+
(L.get(Oe) ?? []).forEach((We) => {
|
|
13900
13902
|
Z.push(We), G.includes(We.id) && ie(We.id);
|
|
13901
13903
|
});
|
|
13902
13904
|
};
|
|
13903
13905
|
return ie(null), Z;
|
|
13904
13906
|
}, [D, G, ne, k, I]), { activeIndex: xe, handleKeyDown: Ne } = hi({
|
|
13905
13907
|
isOpen: x,
|
|
13906
|
-
disabled:
|
|
13908
|
+
disabled: O,
|
|
13907
13909
|
optionsLength: se.length,
|
|
13908
13910
|
initialIndex: Math.max(
|
|
13909
13911
|
0,
|
|
@@ -13938,8 +13940,8 @@ const Fp = (n, r, t, e) => {
|
|
|
13938
13940
|
isOpen: x && !!C,
|
|
13939
13941
|
duration: xn
|
|
13940
13942
|
});
|
|
13941
|
-
return /* @__PURE__ */
|
|
13942
|
-
/* @__PURE__ */
|
|
13943
|
+
return /* @__PURE__ */ T("div", { className: `u-react-select-container ${p}`, style: { position: "relative" }, children: [
|
|
13944
|
+
/* @__PURE__ */ T(
|
|
13943
13945
|
"div",
|
|
13944
13946
|
{
|
|
13945
13947
|
style: Object.assign(
|
|
@@ -13966,17 +13968,17 @@ const Fp = (n, r, t, e) => {
|
|
|
13966
13968
|
children: n
|
|
13967
13969
|
}
|
|
13968
13970
|
),
|
|
13969
|
-
/* @__PURE__ */
|
|
13971
|
+
/* @__PURE__ */ T(
|
|
13970
13972
|
"div",
|
|
13971
13973
|
{
|
|
13972
|
-
className: `u-selectbox${
|
|
13974
|
+
className: `u-selectbox${O ? " u-selectbox-disabled" : ""} u-react-tree-view`,
|
|
13973
13975
|
ref: X,
|
|
13974
|
-
style: { cursor:
|
|
13976
|
+
style: { cursor: O ? "default" : "pointer" },
|
|
13975
13977
|
children: [
|
|
13976
|
-
/* @__PURE__ */
|
|
13978
|
+
/* @__PURE__ */ T(
|
|
13977
13979
|
"div",
|
|
13978
13980
|
{
|
|
13979
|
-
tabIndex:
|
|
13981
|
+
tabIndex: O ? -1 : 0,
|
|
13980
13982
|
onKeyDown: k ? void 0 : Ne,
|
|
13981
13983
|
onClick: (L) => {
|
|
13982
13984
|
var Z;
|
|
@@ -13992,7 +13994,7 @@ const Fp = (n, r, t, e) => {
|
|
|
13992
13994
|
padding: "8px 5px"
|
|
13993
13995
|
} : {},
|
|
13994
13996
|
S.hasError && { border: "1px solid var(--u-color-error, #EF302B)" },
|
|
13995
|
-
|
|
13997
|
+
O && { pointerEvents: "none" }
|
|
13996
13998
|
),
|
|
13997
13999
|
children: [
|
|
13998
14000
|
!l && (!k || !x) ? /* @__PURE__ */ f(
|
|
@@ -14042,7 +14044,7 @@ const Fp = (n, r, t, e) => {
|
|
|
14042
14044
|
g ? {
|
|
14043
14045
|
right: "24px"
|
|
14044
14046
|
} : {},
|
|
14045
|
-
|
|
14047
|
+
O && { pointerEvents: "none" }
|
|
14046
14048
|
)
|
|
14047
14049
|
}
|
|
14048
14050
|
),
|
|
@@ -14115,7 +14117,7 @@ function Pf(n = {}) {
|
|
|
14115
14117
|
return { field: r, dir: e, setSort: o, toggle: (l) => {
|
|
14116
14118
|
const u = bi({ field: r, dir: e }, l);
|
|
14117
14119
|
o(u.field, u.dir);
|
|
14118
|
-
}, sortData: (l) =>
|
|
14120
|
+
}, sortData: (l) => Op(l, r, e, { getValue: n.getValue, locale: n.locale }) };
|
|
14119
14121
|
}
|
|
14120
14122
|
function Rf({
|
|
14121
14123
|
totalItems: n,
|
|
@@ -14176,12 +14178,12 @@ export {
|
|
|
14176
14178
|
Cf as Switch,
|
|
14177
14179
|
Mf as Table,
|
|
14178
14180
|
Ef as Tabs,
|
|
14179
|
-
|
|
14181
|
+
Tf as Textarea,
|
|
14180
14182
|
In as Tooltip,
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
+
Of as TreeView,
|
|
14184
|
+
Tp as compareValues,
|
|
14183
14185
|
bi as nextSort,
|
|
14184
|
-
|
|
14186
|
+
Op as sortRows,
|
|
14185
14187
|
xf as useNotification,
|
|
14186
14188
|
Rf as usePagination,
|
|
14187
14189
|
Pf as useTableSort
|