kelt-ui-kit-react 1.9.5 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +312 -308
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/expands/expand/expand.tsx +41 -39
- package/src/header/Header.tsx +1 -1
- package/src/header/header.css +17 -0
package/dist/index.js
CHANGED
|
@@ -21,11 +21,11 @@ function qo() {
|
|
|
21
21
|
qn = 1;
|
|
22
22
|
var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function s(l, c, u) {
|
|
24
|
-
var f, h = {},
|
|
25
|
-
u !== void 0 && (
|
|
24
|
+
var f, h = {}, m = null, v = null;
|
|
25
|
+
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
26
26
|
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (h[f] = c[f]);
|
|
27
27
|
if (l && l.defaultProps) for (f in c = l.defaultProps, c) h[f] === void 0 && (h[f] = c[f]);
|
|
28
|
-
return { $$typeof: t, type: l, key:
|
|
28
|
+
return { $$typeof: t, type: l, key: m, ref: v, props: h, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = r, It.jsx = s, It.jsxs = s, It;
|
|
31
31
|
}
|
|
@@ -42,11 +42,11 @@ var $t = {};
|
|
|
42
42
|
var Xn;
|
|
43
43
|
function Xo() {
|
|
44
44
|
return Xn || (Xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
|
45
|
+
var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), g = Symbol.iterator, p = "@@iterator";
|
|
46
46
|
function y(d) {
|
|
47
47
|
if (d === null || typeof d != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var x =
|
|
49
|
+
var x = g && d[g] || d[p];
|
|
50
50
|
return typeof x == "function" ? x : null;
|
|
51
51
|
}
|
|
52
52
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -70,7 +70,7 @@ function Xo() {
|
|
|
70
70
|
var D = !1, S = !1, O = !1, _ = !1, z = !1, b;
|
|
71
71
|
b = Symbol.for("react.module.reference");
|
|
72
72
|
function T(d) {
|
|
73
|
-
return !!(typeof d == "string" || typeof d == "function" || d === n || d === i || z || d === a || d === u || d === f || _ || d === v || D || S || O || typeof d == "object" && d !== null && (d.$$typeof ===
|
|
73
|
+
return !!(typeof d == "string" || typeof d == "function" || d === n || d === i || z || d === a || d === u || d === f || _ || d === v || D || S || O || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === h || d.$$typeof === s || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
@@ -120,7 +120,7 @@ function Xo() {
|
|
|
120
120
|
case h:
|
|
121
121
|
var I = d.displayName || null;
|
|
122
122
|
return I !== null ? I : L(d.type) || "Memo";
|
|
123
|
-
case
|
|
123
|
+
case m: {
|
|
124
124
|
var G = d, k = G._payload, P = G._init;
|
|
125
125
|
try {
|
|
126
126
|
return L(P(k));
|
|
@@ -309,7 +309,7 @@ function Xo() {
|
|
|
309
309
|
return we(d.render);
|
|
310
310
|
case h:
|
|
311
311
|
return Ce(d.type, x, E);
|
|
312
|
-
case
|
|
312
|
+
case m: {
|
|
313
313
|
var I = d, G = I._payload, k = I._init;
|
|
314
314
|
try {
|
|
315
315
|
return Ce(k(G), x, E);
|
|
@@ -1151,10 +1151,10 @@ function Oi(e) {
|
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, l, c) {
|
|
1154
|
-
for (var u = 0, f = 0, h = s,
|
|
1155
|
-
switch (
|
|
1154
|
+
for (var u = 0, f = 0, h = s, m = 0, v = 0, g = 0, p = 1, y = 1, j = 1, w = 0, N = "", D = a, S = i, O = n, _ = N; y; )
|
|
1155
|
+
switch (g = w, w = Pe()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (
|
|
1157
|
+
if (g != 108 && me(_, h - 1) == 58) {
|
|
1158
1158
|
dr(_ += W(zr(w), "&", "&\f"), "&\f", Ba(u ? l[u - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
@@ -1167,7 +1167,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1167
1167
|
case 10:
|
|
1168
1168
|
case 13:
|
|
1169
1169
|
case 32:
|
|
1170
|
-
_ += wi(
|
|
1170
|
+
_ += wi(g);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 92:
|
|
1173
1173
|
_ += ji(fr() - 1, 7);
|
|
@@ -1182,9 +1182,9 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1182
1182
|
_ += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
|
-
case 123 *
|
|
1185
|
+
case 123 * p:
|
|
1186
1186
|
l[u++] = Ae(_) * j;
|
|
1187
|
-
case 125 *
|
|
1187
|
+
case 125 * p:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
1190
1190
|
switch (w) {
|
|
@@ -1201,7 +1201,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1201
1201
|
if (f === 0)
|
|
1202
1202
|
hr(_, t, O, O, D, i, h, l, S);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (
|
|
1204
|
+
switch (m === 99 && me(_, 3) === 110 ? 100 : m) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
@@ -1212,18 +1212,18 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1212
1212
|
hr(_, O, O, O, [""], S, 0, l, S);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
u = f = v = 0,
|
|
1215
|
+
u = f = v = 0, p = j = 1, N = _ = "", h = s;
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 58:
|
|
1218
|
-
h = 1 + Ae(_), v =
|
|
1218
|
+
h = 1 + Ae(_), v = g;
|
|
1219
1219
|
default:
|
|
1220
|
-
if (
|
|
1220
|
+
if (p < 1) {
|
|
1221
1221
|
if (w == 123)
|
|
1222
|
-
--
|
|
1223
|
-
else if (w == 125 &&
|
|
1222
|
+
--p;
|
|
1223
|
+
else if (w == 125 && p++ == 0 && yi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (_ += _n(w), w *
|
|
1226
|
+
switch (_ += _n(w), w * p) {
|
|
1227
1227
|
case 38:
|
|
1228
1228
|
j = f > 0 ? 1 : (_ += "\f", -1);
|
|
1229
1229
|
break;
|
|
@@ -1231,17 +1231,17 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1231
1231
|
l[u++] = (Ae(_) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
tt() === 45 && (_ += zr(Pe())),
|
|
1234
|
+
tt() === 45 && (_ += zr(Pe())), m = tt(), f = h = Ae(N = _ += Di(fr())), w++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
|
-
|
|
1237
|
+
g === 45 && Ae(_) == 2 && (p = 0);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
1242
|
function ea(e, t, r, n, a, i, s, l, c, u, f, h) {
|
|
1243
|
-
for (var
|
|
1244
|
-
for (var w = 0, N = pt(e,
|
|
1243
|
+
for (var m = a - 1, v = a === 0 ? i : [""], g = za(v), p = 0, y = 0, j = 0; p < n; ++p)
|
|
1244
|
+
for (var w = 0, N = pt(e, m + 1, m = Ba(y = s[p])), D = e; w < g; ++w)
|
|
1245
1245
|
(D = Ua(y > 0 ? v[w] + " " + N : W(N, /&\f/g, v[w]))) && (c[j++] = D);
|
|
1246
1246
|
return Er(e, t, r, a === 0 ? Or : l, c, u, f, h);
|
|
1247
1247
|
}
|
|
@@ -1778,16 +1778,16 @@ var no = function(e) {
|
|
|
1778
1778
|
this.options = Ne(Ne({}, is), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && ua && (ua = !1, la(this)), Rn(this, function() {
|
|
1779
1779
|
return function(i) {
|
|
1780
1780
|
for (var s = i.getTag(), l = s.length, c = "", u = function(h) {
|
|
1781
|
-
var
|
|
1781
|
+
var m = function(j) {
|
|
1782
1782
|
return xr.get(j);
|
|
1783
1783
|
}(h);
|
|
1784
|
-
if (
|
|
1785
|
-
var v = i.names.get(
|
|
1786
|
-
if (v === void 0 || !v.size ||
|
|
1787
|
-
var
|
|
1784
|
+
if (m === void 0) return "continue";
|
|
1785
|
+
var v = i.names.get(m), g = s.getGroup(h);
|
|
1786
|
+
if (v === void 0 || !v.size || g.length === 0) return "continue";
|
|
1787
|
+
var p = "".concat(at, ".g").concat(h, '[id="').concat(m, '"]'), y = "";
|
|
1788
1788
|
v !== void 0 && v.forEach(function(j) {
|
|
1789
1789
|
j.length > 0 && (y += "".concat(j, ","));
|
|
1790
|
-
}), c += "".concat(
|
|
1790
|
+
}), c += "".concat(g).concat(p, '{content:"').concat(y, '"}').concat(Tn);
|
|
1791
1791
|
}, f = 0; f < l; f++) u(f);
|
|
1792
1792
|
return c;
|
|
1793
1793
|
}(a);
|
|
@@ -1833,23 +1833,23 @@ function oo(e, t) {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
1835
|
function ls(e) {
|
|
1836
|
-
var t, r, n, a = yt, i = a.options, s = i === void 0 ? yt : i, l = a.plugins, c = l === void 0 ? _r : l, u = function(
|
|
1837
|
-
return
|
|
1836
|
+
var t, r, n, a = yt, i = a.options, s = i === void 0 ? yt : i, l = a.plugins, c = l === void 0 ? _r : l, u = function(m, v, g) {
|
|
1837
|
+
return g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(t) : m;
|
|
1838
1838
|
}, f = c.slice();
|
|
1839
|
-
f.push(function(
|
|
1840
|
-
|
|
1839
|
+
f.push(function(m) {
|
|
1840
|
+
m.type === Or && m.value.includes("&") && (m.props[0] = m.props[0].replace(ss, r).replace(n, u));
|
|
1841
1841
|
}), s.prefix && f.push(_i), f.push(Ei);
|
|
1842
|
-
var h = function(
|
|
1843
|
-
v === void 0 && (v = ""),
|
|
1844
|
-
var y =
|
|
1842
|
+
var h = function(m, v, g, p) {
|
|
1843
|
+
v === void 0 && (v = ""), g === void 0 && (g = ""), p === void 0 && (p = "&"), t = p, r = v, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1844
|
+
var y = m.replace(cs, ""), j = Oi(g || v ? "".concat(g, " ").concat(v, " { ").concat(y, " }") : y);
|
|
1845
1845
|
s.namespace && (j = oo(j, s.namespace));
|
|
1846
1846
|
var w = [];
|
|
1847
1847
|
return yr(j, Ci(f.concat(ki(function(N) {
|
|
1848
1848
|
return w.push(N);
|
|
1849
1849
|
})))), w;
|
|
1850
1850
|
};
|
|
1851
|
-
return h.hash = c.length ? c.reduce(function(
|
|
1852
|
-
return v.name || St(15), Ze(
|
|
1851
|
+
return h.hash = c.length ? c.reduce(function(m, v) {
|
|
1852
|
+
return v.name || St(15), Ze(m, v.name);
|
|
1853
1853
|
}, Ka).toString() : "", h;
|
|
1854
1854
|
}
|
|
1855
1855
|
var us = new ao(), cn = ls(), io = $e.createContext({ shouldForwardProp: void 0, styleSheet: us, stylis: cn });
|
|
@@ -1933,8 +1933,8 @@ var hs = Ja(kr), vs = function() {
|
|
|
1933
1933
|
var h = this.rules[f];
|
|
1934
1934
|
if (typeof h == "string") u += h, process.env.NODE_ENV !== "production" && (c = Ze(c, h));
|
|
1935
1935
|
else if (h) {
|
|
1936
|
-
var
|
|
1937
|
-
c = Ze(c,
|
|
1936
|
+
var m = ca(rt(h, t, r, n));
|
|
1937
|
+
c = Ze(c, m + f), u += m;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
if (u) {
|
|
@@ -1955,17 +1955,17 @@ function ms(e, t, r) {
|
|
|
1955
1955
|
return S ? "".concat(S, "-").concat(_) : _;
|
|
1956
1956
|
}(t.displayName, t.parentComponentId) : c, f = t.displayName, h = f === void 0 ? function(D) {
|
|
1957
1957
|
return Gr(D) ? "styled.".concat(D) : "Styled(".concat(Qa(D), ")");
|
|
1958
|
-
}(e) : f,
|
|
1958
|
+
}(e) : f, m = t.displayName && t.componentId ? "".concat(na(t.displayName), "-").concat(t.componentId) : t.componentId || u, v = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, g = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
|
-
var
|
|
1960
|
+
var p = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
1962
1962
|
var y = t.shouldForwardProp;
|
|
1963
|
-
|
|
1964
|
-
return
|
|
1963
|
+
g = function(D, S) {
|
|
1964
|
+
return p(D, S) && y(D, S);
|
|
1965
1965
|
};
|
|
1966
|
-
} else
|
|
1966
|
+
} else g = p;
|
|
1967
1967
|
}
|
|
1968
|
-
var j = new vs(r,
|
|
1968
|
+
var j = new vs(r, m, n ? a.componentStyle : void 0);
|
|
1969
1969
|
function w(D, S) {
|
|
1970
1970
|
return function(O, _, z) {
|
|
1971
1971
|
var b = O.attrs, T = O.componentStyle, U = O.defaultProps, Y = O.foldedComponentIds, L = O.styledComponentId, te = O.target, pe = $e.useContext(lo), de = da(), xe = O.shouldForwardProp || de.shouldForwardProp;
|
|
@@ -1989,7 +1989,7 @@ function ms(e, t, r) {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
w.displayName = h;
|
|
1991
1991
|
var N = $e.forwardRef(w);
|
|
1992
|
-
return N.attrs = v, N.componentStyle = j, N.displayName = h, N.shouldForwardProp =
|
|
1992
|
+
return N.attrs = v, N.componentStyle = j, N.displayName = h, N.shouldForwardProp = g, N.foldedComponentIds = n ? et(a.foldedComponentIds, a.styledComponentId) : "", N.styledComponentId = m, N.target = n ? a.target : e, Object.defineProperty(N, "defaultProps", { get: function() {
|
|
1993
1993
|
return this._foldedDefaultProps;
|
|
1994
1994
|
}, set: function(D) {
|
|
1995
1995
|
this._foldedDefaultProps = n ? function(S) {
|
|
@@ -1997,7 +1997,7 @@ function ms(e, t, r) {
|
|
|
1997
1997
|
for (var z = 0, b = O; z < b.length; z++) sn(S, b[z], !0);
|
|
1998
1998
|
return S;
|
|
1999
1999
|
}({}, a.defaultProps, D) : D;
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(h,
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(h, m), N.warnTooManyClasses = /* @__PURE__ */ function(D, S) {
|
|
2001
2001
|
var O = {}, _ = !1;
|
|
2002
2002
|
return function(z) {
|
|
2003
2003
|
if (!_ && (O[z] = !0, Object.keys(O).length >= 200)) {
|
|
@@ -2014,7 +2014,7 @@ Example:
|
|
|
2014
2014
|
<Component />`), _ = !0, O = {};
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
}(h,
|
|
2017
|
+
}(h, m)), Rn(N, function() {
|
|
2018
2018
|
return ".".concat(N.styledComponentId);
|
|
2019
2019
|
}), i && ro(N, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), N;
|
|
2020
2020
|
}
|
|
@@ -2077,20 +2077,20 @@ const ps = An.div`
|
|
|
2077
2077
|
id: s,
|
|
2078
2078
|
closeOverlay: l
|
|
2079
2079
|
}, c) => {
|
|
2080
|
-
const { activeOverlayId: u, setActiveOverlay: f } = li(), [h,
|
|
2080
|
+
const { activeOverlayId: u, setActiveOverlay: f } = li(), [h, m] = V(i || !1), [v, g] = V(
|
|
2081
2081
|
r ?? { top: 0, left: 0 }
|
|
2082
|
-
),
|
|
2082
|
+
), p = se(null), y = Uo();
|
|
2083
2083
|
Dr(c, () => ({
|
|
2084
|
-
setCoords:
|
|
2084
|
+
setCoords: g
|
|
2085
2085
|
})), J(() => {
|
|
2086
|
-
u !== y &&
|
|
2086
|
+
u !== y && m(!1);
|
|
2087
2087
|
}, [u, y]), J(() => {
|
|
2088
2088
|
const N = () => {
|
|
2089
2089
|
var D;
|
|
2090
2090
|
if (!t && r)
|
|
2091
|
-
|
|
2091
|
+
g(r);
|
|
2092
2092
|
else if (e) {
|
|
2093
|
-
const S = e.getBoundingClientRect(), O = (D =
|
|
2093
|
+
const S = e.getBoundingClientRect(), O = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: _, innerHeight: z } = window;
|
|
2094
2094
|
if (O) {
|
|
2095
2095
|
let b, T;
|
|
2096
2096
|
const U = {
|
|
@@ -2119,23 +2119,23 @@ const ps = An.div`
|
|
|
2119
2119
|
left: S.right
|
|
2120
2120
|
})
|
|
2121
2121
|
};
|
|
2122
|
-
t && U[t] ? { top: b, left: T } = U[t]() : (T = S.right, b = S.bottom, S.right + O.width > _ && (T = S.left - O.width), S.bottom + O.height > z && (b = S.top - O.height)),
|
|
2122
|
+
t && U[t] ? { top: b, left: T } = U[t]() : (T = S.right, b = S.bottom, S.right + O.width > _ && (T = S.left - O.width), S.bottom + O.height > z && (b = S.top - O.height)), g({ top: b, left: T < 0 ? 0 : T });
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
2125
|
};
|
|
2126
2126
|
return h && (N(), window.addEventListener("resize", N)), () => window.removeEventListener("resize", N);
|
|
2127
2127
|
}, [e, h, t]);
|
|
2128
2128
|
const j = () => {
|
|
2129
|
-
|
|
2129
|
+
m(!0), f(y);
|
|
2130
2130
|
}, w = A(
|
|
2131
2131
|
(N) => {
|
|
2132
|
-
N.stopPropagation(),
|
|
2132
|
+
N.stopPropagation(), m(!1), f(null), l && l(!1);
|
|
2133
2133
|
},
|
|
2134
2134
|
[l, f]
|
|
2135
2135
|
);
|
|
2136
2136
|
return J(() => {
|
|
2137
2137
|
const N = (D) => {
|
|
2138
|
-
|
|
2138
|
+
p.current && !p.current.contains(D.target) && w(D);
|
|
2139
2139
|
};
|
|
2140
2140
|
return h && document.addEventListener("mousedown", N), () => {
|
|
2141
2141
|
document.removeEventListener("mousedown", N);
|
|
@@ -2147,7 +2147,7 @@ const ps = An.div`
|
|
|
2147
2147
|
ps,
|
|
2148
2148
|
{
|
|
2149
2149
|
className: n,
|
|
2150
|
-
ref:
|
|
2150
|
+
ref: p,
|
|
2151
2151
|
$top: v.top,
|
|
2152
2152
|
$left: v.left,
|
|
2153
2153
|
children: /* @__PURE__ */ o.jsxs(
|
|
@@ -2182,28 +2182,28 @@ const ps = An.div`
|
|
|
2182
2182
|
disabled: i = !1,
|
|
2183
2183
|
id: s
|
|
2184
2184
|
}) => {
|
|
2185
|
-
const l = (
|
|
2186
|
-
|
|
2185
|
+
const l = (g) => {
|
|
2186
|
+
g.preventDefault(), t && t(g);
|
|
2187
2187
|
}, c = se(null), [u, f] = V(!1), h = A(
|
|
2188
|
-
(
|
|
2189
|
-
|
|
2188
|
+
(g) => {
|
|
2189
|
+
g.stopPropagation(), n && f(!u);
|
|
2190
2190
|
},
|
|
2191
2191
|
[u, f]
|
|
2192
|
-
),
|
|
2193
|
-
id:
|
|
2194
|
-
icon:
|
|
2195
|
-
name:
|
|
2192
|
+
), m = Ie(() => n ? n.map((g, p) => ({
|
|
2193
|
+
id: g.id ?? p,
|
|
2194
|
+
icon: g.icon,
|
|
2195
|
+
name: g.label,
|
|
2196
2196
|
children: /* @__PURE__ */ o.jsx(
|
|
2197
2197
|
wt,
|
|
2198
2198
|
{
|
|
2199
|
-
classIcon:
|
|
2199
|
+
classIcon: g.icon,
|
|
2200
2200
|
sizeIcon: _e.LARGE,
|
|
2201
2201
|
onClick: (y) => {
|
|
2202
|
-
y.stopPropagation(), v(),
|
|
2202
|
+
y.stopPropagation(), v(), g.onClick && g.onClick(g);
|
|
2203
2203
|
},
|
|
2204
|
-
title:
|
|
2204
|
+
title: g.label || ""
|
|
2205
2205
|
},
|
|
2206
|
-
|
|
2206
|
+
p
|
|
2207
2207
|
)
|
|
2208
2208
|
})) : [], [n]), v = A(() => {
|
|
2209
2209
|
f(!1);
|
|
@@ -2215,7 +2215,7 @@ const ps = An.div`
|
|
|
2215
2215
|
id: s ?? "",
|
|
2216
2216
|
disabled: i,
|
|
2217
2217
|
type: "submit",
|
|
2218
|
-
onClick: (
|
|
2218
|
+
onClick: (g) => l(g),
|
|
2219
2219
|
className: ` ${e} button-actions`,
|
|
2220
2220
|
children: [
|
|
2221
2221
|
/* @__PURE__ */ o.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
@@ -2224,7 +2224,7 @@ const ps = An.div`
|
|
|
2224
2224
|
{
|
|
2225
2225
|
className: "ml-2",
|
|
2226
2226
|
ref: c,
|
|
2227
|
-
onClick: (
|
|
2227
|
+
onClick: (g) => h(g),
|
|
2228
2228
|
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-chevron-up" })
|
|
2229
2229
|
}
|
|
2230
2230
|
)
|
|
@@ -2238,7 +2238,7 @@ const ps = An.div`
|
|
|
2238
2238
|
position: a,
|
|
2239
2239
|
closeOverlay: f,
|
|
2240
2240
|
referenceElement: c.current,
|
|
2241
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items:
|
|
2241
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items: m }) })
|
|
2242
2242
|
}
|
|
2243
2243
|
)
|
|
2244
2244
|
] });
|
|
@@ -2254,9 +2254,9 @@ const ps = An.div`
|
|
|
2254
2254
|
const u = (f = c.target.files) == null ? void 0 : f[0];
|
|
2255
2255
|
if (u && e) {
|
|
2256
2256
|
const h = new FileReader();
|
|
2257
|
-
h.onload = (
|
|
2258
|
-
var
|
|
2259
|
-
const v = (
|
|
2257
|
+
h.onload = (m) => {
|
|
2258
|
+
var g;
|
|
2259
|
+
const v = (g = m.target) == null ? void 0 : g.result;
|
|
2260
2260
|
e(u, v);
|
|
2261
2261
|
}, h.readAsArrayBuffer(u);
|
|
2262
2262
|
}
|
|
@@ -2298,27 +2298,27 @@ const ps = An.div`
|
|
|
2298
2298
|
J(() => {
|
|
2299
2299
|
t && h(t);
|
|
2300
2300
|
}, [t]);
|
|
2301
|
-
const
|
|
2302
|
-
(
|
|
2303
|
-
e.length !== 0 && (
|
|
2301
|
+
const m = A(
|
|
2302
|
+
(p, y) => {
|
|
2303
|
+
e.length !== 0 && (p.preventDefault(), c("bottomRight"), i && i(y));
|
|
2304
2304
|
},
|
|
2305
2305
|
[c, i]
|
|
2306
2306
|
), v = A(() => {
|
|
2307
2307
|
c(void 0), h(!1), i && i(!1);
|
|
2308
|
-
}, [h, c, i]),
|
|
2309
|
-
let j =
|
|
2310
|
-
return
|
|
2308
|
+
}, [h, c, i]), g = Ie(() => e == null ? void 0 : e.filter((p) => p.type === "menu").map((p, y) => {
|
|
2309
|
+
let j = p.label || "";
|
|
2310
|
+
return p.setLabel && r && (j = p.setLabel(r)), {
|
|
2311
2311
|
id: y,
|
|
2312
|
-
icon:
|
|
2313
|
-
name:
|
|
2312
|
+
icon: p.icon,
|
|
2313
|
+
name: p.label,
|
|
2314
2314
|
children: /* @__PURE__ */ o.jsx(
|
|
2315
2315
|
wt,
|
|
2316
2316
|
{
|
|
2317
|
-
classIcon:
|
|
2318
|
-
disabled: r &&
|
|
2317
|
+
classIcon: p.icon,
|
|
2318
|
+
disabled: r && p.disabled ? p.disabled(r) : !1,
|
|
2319
2319
|
sizeIcon: _e.LARGE,
|
|
2320
2320
|
onClick: (w) => {
|
|
2321
|
-
w.stopPropagation(), v(),
|
|
2321
|
+
w.stopPropagation(), v(), p.onClick && r && p.onClick(r);
|
|
2322
2322
|
},
|
|
2323
2323
|
title: j
|
|
2324
2324
|
},
|
|
@@ -2331,8 +2331,8 @@ const ps = An.div`
|
|
|
2331
2331
|
"div",
|
|
2332
2332
|
{
|
|
2333
2333
|
ref: u,
|
|
2334
|
-
className: `card-action ${e.filter((
|
|
2335
|
-
onClick: (
|
|
2334
|
+
className: `card-action ${e.filter((p) => p.type === "menu").length ? "visible" : "hidden"}`,
|
|
2335
|
+
onClick: (p) => m(p, !f),
|
|
2336
2336
|
children: [
|
|
2337
2337
|
/* @__PURE__ */ o.jsx(
|
|
2338
2338
|
B,
|
|
@@ -2360,7 +2360,7 @@ const ps = An.div`
|
|
|
2360
2360
|
closeOverlay: v,
|
|
2361
2361
|
coordonnees: n,
|
|
2362
2362
|
referenceElement: u.current,
|
|
2363
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items:
|
|
2363
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items: g }) })
|
|
2364
2364
|
}
|
|
2365
2365
|
)
|
|
2366
2366
|
] });
|
|
@@ -2374,9 +2374,9 @@ const ps = An.div`
|
|
|
2374
2374
|
positionOverlay: s,
|
|
2375
2375
|
children: l
|
|
2376
2376
|
}) => {
|
|
2377
|
-
const [c, u] = V(!1), [f, h] = V(!1), [
|
|
2377
|
+
const [c, u] = V(!1), [f, h] = V(!1), [m, v] = V(), g = (y, j) => {
|
|
2378
2378
|
y.stopPropagation(), a && a(j);
|
|
2379
|
-
},
|
|
2379
|
+
}, p = A(
|
|
2380
2380
|
(y, j) => {
|
|
2381
2381
|
if (y.stopPropagation(), f)
|
|
2382
2382
|
return v(void 0), h(!1);
|
|
@@ -2395,7 +2395,7 @@ const ps = An.div`
|
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
onContextMenu: (y) => y.preventDefault(),
|
|
2398
|
-
onMouseDown: (y) =>
|
|
2398
|
+
onMouseDown: (y) => p(y, e),
|
|
2399
2399
|
className: `card ${r ?? ""} ${c ? "card--active" : ""} `,
|
|
2400
2400
|
children: [
|
|
2401
2401
|
l,
|
|
@@ -2413,7 +2413,7 @@ const ps = An.div`
|
|
|
2413
2413
|
"div",
|
|
2414
2414
|
{
|
|
2415
2415
|
className: "ml-2 cursor-pointer",
|
|
2416
|
-
onClick: (y) =>
|
|
2416
|
+
onClick: (y) => g(y, e),
|
|
2417
2417
|
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-trash3" })
|
|
2418
2418
|
}
|
|
2419
2419
|
),
|
|
@@ -2424,7 +2424,7 @@ const ps = An.div`
|
|
|
2424
2424
|
setOpenActions: h,
|
|
2425
2425
|
actions: t,
|
|
2426
2426
|
item: e,
|
|
2427
|
-
positions:
|
|
2427
|
+
positions: m,
|
|
2428
2428
|
positionOverlay: s
|
|
2429
2429
|
}
|
|
2430
2430
|
)
|
|
@@ -2445,34 +2445,34 @@ const ps = An.div`
|
|
|
2445
2445
|
}) => {
|
|
2446
2446
|
const [a, i] = V(0), s = e.length, [l, c] = V(1);
|
|
2447
2447
|
J(() => {
|
|
2448
|
-
const
|
|
2449
|
-
const
|
|
2450
|
-
if (n.xl &&
|
|
2448
|
+
const g = () => {
|
|
2449
|
+
const p = window.innerWidth;
|
|
2450
|
+
if (n.xl && p >= 1200)
|
|
2451
2451
|
return c(n.xl);
|
|
2452
|
-
if (n.lg &&
|
|
2452
|
+
if (n.lg && p >= 992)
|
|
2453
2453
|
return c(n.lg);
|
|
2454
|
-
if (n.md &&
|
|
2454
|
+
if (n.md && p >= 768)
|
|
2455
2455
|
return c(n.md);
|
|
2456
|
-
if (n.sm &&
|
|
2456
|
+
if (n.sm && p >= 576)
|
|
2457
2457
|
return c(n.sm);
|
|
2458
2458
|
};
|
|
2459
|
-
return
|
|
2459
|
+
return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
|
|
2460
2460
|
}, [n]);
|
|
2461
2461
|
const u = A(
|
|
2462
|
-
(
|
|
2463
|
-
|
|
2464
|
-
(
|
|
2462
|
+
(g) => {
|
|
2463
|
+
g.preventDefault(), i(
|
|
2464
|
+
(p) => Math.min(p + r, s - l)
|
|
2465
2465
|
);
|
|
2466
2466
|
},
|
|
2467
2467
|
[i]
|
|
2468
2468
|
), f = A(
|
|
2469
|
-
(
|
|
2470
|
-
|
|
2469
|
+
(g) => {
|
|
2470
|
+
g.preventDefault(), i((p) => Math.max(p - r, 0));
|
|
2471
2471
|
},
|
|
2472
2472
|
[i]
|
|
2473
|
-
), h = a + r >= s - l + 1,
|
|
2473
|
+
), h = a + r >= s - l + 1, m = s <= l, v = a <= 0;
|
|
2474
2474
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2475
|
-
t && !
|
|
2475
|
+
t && !m && /* @__PURE__ */ o.jsx(
|
|
2476
2476
|
"div",
|
|
2477
2477
|
{
|
|
2478
2478
|
className: `carousel-control prev ${v && "disabled"}`,
|
|
@@ -2489,7 +2489,7 @@ const ps = An.div`
|
|
|
2489
2489
|
transform: `translateX(-${a * 100 / l}%)`,
|
|
2490
2490
|
transition: "transform 0.5s ease-in-out"
|
|
2491
2491
|
},
|
|
2492
|
-
children: $e.Children.map(e, (
|
|
2492
|
+
children: $e.Children.map(e, (g) => /* @__PURE__ */ o.jsx(
|
|
2493
2493
|
"div",
|
|
2494
2494
|
{
|
|
2495
2495
|
className: "carousel-slide",
|
|
@@ -2497,12 +2497,12 @@ const ps = An.div`
|
|
|
2497
2497
|
minWidth: `${100 / l}%`,
|
|
2498
2498
|
boxSizing: "border-box"
|
|
2499
2499
|
},
|
|
2500
|
-
children:
|
|
2500
|
+
children: g
|
|
2501
2501
|
}
|
|
2502
2502
|
))
|
|
2503
2503
|
}
|
|
2504
2504
|
) }),
|
|
2505
|
-
t && !
|
|
2505
|
+
t && !m && /* @__PURE__ */ o.jsx(
|
|
2506
2506
|
"div",
|
|
2507
2507
|
{
|
|
2508
2508
|
className: `carousel-control next ${h && "disabled"}`,
|
|
@@ -2529,20 +2529,20 @@ const ps = An.div`
|
|
|
2529
2529
|
}, [n]);
|
|
2530
2530
|
const u = Ie(() => {
|
|
2531
2531
|
const h = [];
|
|
2532
|
-
for (let
|
|
2532
|
+
for (let m = 0; m < s; m++) {
|
|
2533
2533
|
const v = [];
|
|
2534
|
-
for (let
|
|
2535
|
-
const
|
|
2536
|
-
(j) => j.position ===
|
|
2534
|
+
for (let g = 0; g < i; g++) {
|
|
2535
|
+
const p = g + m * i, y = r == null ? void 0 : r.find(
|
|
2536
|
+
(j) => j.position === p + 1
|
|
2537
2537
|
);
|
|
2538
2538
|
y ? v.push(
|
|
2539
|
-
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell: y }, `${
|
|
2539
|
+
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell: y }, `${m}-${g}`)
|
|
2540
2540
|
) : v.push(
|
|
2541
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2541
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${m}-${g}`)
|
|
2542
2542
|
);
|
|
2543
2543
|
}
|
|
2544
2544
|
h.push(
|
|
2545
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children: v },
|
|
2545
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: v }, m)
|
|
2546
2546
|
);
|
|
2547
2547
|
}
|
|
2548
2548
|
return h;
|
|
@@ -2567,10 +2567,10 @@ const wr = ze(
|
|
|
2567
2567
|
maxLength: u,
|
|
2568
2568
|
autoFocus: f = !1,
|
|
2569
2569
|
disabled: h = !1,
|
|
2570
|
-
required:
|
|
2570
|
+
required: m = !1,
|
|
2571
2571
|
autoComplete: v,
|
|
2572
|
-
tabIndex:
|
|
2573
|
-
step:
|
|
2572
|
+
tabIndex: g = 0,
|
|
2573
|
+
step: p,
|
|
2574
2574
|
checked: y,
|
|
2575
2575
|
onChange: j,
|
|
2576
2576
|
onBlur: w,
|
|
@@ -2592,10 +2592,10 @@ const wr = ze(
|
|
|
2592
2592
|
value: n,
|
|
2593
2593
|
placeholder: i,
|
|
2594
2594
|
disabled: h,
|
|
2595
|
-
required:
|
|
2595
|
+
required: m,
|
|
2596
2596
|
autoComplete: v ?? "new-password",
|
|
2597
|
-
step:
|
|
2598
|
-
tabIndex:
|
|
2597
|
+
step: p,
|
|
2598
|
+
tabIndex: g,
|
|
2599
2599
|
autoFocus: f,
|
|
2600
2600
|
minLength: c,
|
|
2601
2601
|
maxLength: u,
|
|
@@ -2702,10 +2702,10 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2702
2702
|
name: u,
|
|
2703
2703
|
onChange: f,
|
|
2704
2704
|
onChangeMultiple: h,
|
|
2705
|
-
value:
|
|
2705
|
+
value: m,
|
|
2706
2706
|
placeholder: v
|
|
2707
2707
|
}) => {
|
|
2708
|
-
const
|
|
2708
|
+
const g = se({}), p = (j) => {
|
|
2709
2709
|
let w;
|
|
2710
2710
|
s ? (w = Array.from(
|
|
2711
2711
|
j.target.selectedOptions,
|
|
@@ -2726,17 +2726,17 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2726
2726
|
disabled: a,
|
|
2727
2727
|
id: `select-${e}`,
|
|
2728
2728
|
className: "select-container-select",
|
|
2729
|
-
value:
|
|
2730
|
-
onChange:
|
|
2729
|
+
value: m ?? c ?? (s ? [] : ""),
|
|
2730
|
+
onChange: p,
|
|
2731
2731
|
multiple: s,
|
|
2732
|
-
ref: (j) =>
|
|
2732
|
+
ref: (j) => g.current[e ?? "select"] = j,
|
|
2733
2733
|
children: [
|
|
2734
2734
|
v && !c && !s && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: v }),
|
|
2735
2735
|
r.map((j, w) => /* @__PURE__ */ o.jsx("option", { value: j.value, children: j.label }, w))
|
|
2736
2736
|
]
|
|
2737
2737
|
}
|
|
2738
2738
|
),
|
|
2739
|
-
|
|
2739
|
+
m !== "" && v && /* @__PURE__ */ o.jsx(
|
|
2740
2740
|
"div",
|
|
2741
2741
|
{
|
|
2742
2742
|
className: "clear-btn",
|
|
@@ -2827,10 +2827,10 @@ function Bl(e) {
|
|
|
2827
2827
|
columns: u = [],
|
|
2828
2828
|
loading: f,
|
|
2829
2829
|
onRowClick: h,
|
|
2830
|
-
onColumnClick:
|
|
2830
|
+
onColumnClick: m,
|
|
2831
2831
|
onLoadMore: v,
|
|
2832
|
-
emptyMessage:
|
|
2833
|
-
hasMore:
|
|
2832
|
+
emptyMessage: g,
|
|
2833
|
+
hasMore: p,
|
|
2834
2834
|
onSelectionChange: y,
|
|
2835
2835
|
autoFocusFirstEditable: j = !1,
|
|
2836
2836
|
hideToggleAll: w = !1,
|
|
@@ -2970,7 +2970,7 @@ function Bl(e) {
|
|
|
2970
2970
|
$.disconnect();
|
|
2971
2971
|
};
|
|
2972
2972
|
}, [q]), J(() => {
|
|
2973
|
-
if (!v || !
|
|
2973
|
+
if (!v || !p) return;
|
|
2974
2974
|
const C = new IntersectionObserver(
|
|
2975
2975
|
(M) => {
|
|
2976
2976
|
M[0].isIntersecting && v();
|
|
@@ -2984,7 +2984,7 @@ function Bl(e) {
|
|
|
2984
2984
|
return S.current && C.observe(S.current), () => {
|
|
2985
2985
|
S.current && C.unobserve(S.current);
|
|
2986
2986
|
};
|
|
2987
|
-
}, [v,
|
|
2987
|
+
}, [v, p]), /* @__PURE__ */ o.jsxs(
|
|
2988
2988
|
"div",
|
|
2989
2989
|
{
|
|
2990
2990
|
className: `data-table-container ${q ? "data-table-container--with-footer-action" : ""}`,
|
|
@@ -3016,7 +3016,7 @@ function Bl(e) {
|
|
|
3016
3016
|
{
|
|
3017
3017
|
column: C,
|
|
3018
3018
|
idx: M,
|
|
3019
|
-
onColumnClick:
|
|
3019
|
+
onColumnClick: m
|
|
3020
3020
|
},
|
|
3021
3021
|
M
|
|
3022
3022
|
)),
|
|
@@ -3101,7 +3101,7 @@ function Bl(e) {
|
|
|
3101
3101
|
{
|
|
3102
3102
|
columns: u,
|
|
3103
3103
|
actions: l,
|
|
3104
|
-
emptyMessage:
|
|
3104
|
+
emptyMessage: g
|
|
3105
3105
|
}
|
|
3106
3106
|
)
|
|
3107
3107
|
] })
|
|
@@ -3133,7 +3133,7 @@ function Bl(e) {
|
|
|
3133
3133
|
document.body
|
|
3134
3134
|
),
|
|
3135
3135
|
a,
|
|
3136
|
-
|
|
3136
|
+
p && /* @__PURE__ */ o.jsx("div", { ref: S, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(ga, { display: !0 }) })
|
|
3137
3137
|
]
|
|
3138
3138
|
}
|
|
3139
3139
|
);
|
|
@@ -3180,26 +3180,26 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3180
3180
|
(function(e, t) {
|
|
3181
3181
|
var r = ar && ar.__awaiter || function(s, l, c, u) {
|
|
3182
3182
|
return new (c || (c = Promise))(function(f, h) {
|
|
3183
|
-
function p
|
|
3183
|
+
function m(p) {
|
|
3184
3184
|
try {
|
|
3185
|
-
|
|
3185
|
+
g(u.next(p));
|
|
3186
3186
|
} catch (y) {
|
|
3187
3187
|
h(y);
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
|
-
function v(
|
|
3190
|
+
function v(p) {
|
|
3191
3191
|
try {
|
|
3192
|
-
|
|
3192
|
+
g(u.throw(p));
|
|
3193
3193
|
} catch (y) {
|
|
3194
3194
|
h(y);
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3198
|
-
|
|
3199
|
-
y(
|
|
3200
|
-
}).then(
|
|
3197
|
+
function g(p) {
|
|
3198
|
+
p.done ? f(p.value) : new c(function(y) {
|
|
3199
|
+
y(p.value);
|
|
3200
|
+
}).then(m, v);
|
|
3201
3201
|
}
|
|
3202
|
-
|
|
3202
|
+
g((u = u.apply(s, l || [])).next());
|
|
3203
3203
|
});
|
|
3204
3204
|
}, n = ar && ar.__importDefault || function(s) {
|
|
3205
3205
|
return s && s.__esModule ? s : { default: s };
|
|
@@ -3211,30 +3211,30 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3211
3211
|
const h = () => r(this, void 0, void 0, function* () {
|
|
3212
3212
|
if (c !== void 0)
|
|
3213
3213
|
return;
|
|
3214
|
-
const
|
|
3214
|
+
const g = (p) => r(this, void 0, void 0, function* () {
|
|
3215
3215
|
f = a.default();
|
|
3216
|
-
const y =
|
|
3216
|
+
const y = p[1][l] - Date.now();
|
|
3217
3217
|
if (y <= 0) {
|
|
3218
|
-
s.delete(
|
|
3218
|
+
s.delete(p[0]), f.resolve();
|
|
3219
3219
|
return;
|
|
3220
3220
|
}
|
|
3221
|
-
return c =
|
|
3222
|
-
s.delete(
|
|
3221
|
+
return c = p[0], u = setTimeout(() => {
|
|
3222
|
+
s.delete(p[0]), f && f.resolve();
|
|
3223
3223
|
}, y), typeof u.unref == "function" && u.unref(), f.promise;
|
|
3224
3224
|
});
|
|
3225
3225
|
try {
|
|
3226
|
-
for (const
|
|
3227
|
-
yield
|
|
3226
|
+
for (const p of s)
|
|
3227
|
+
yield g(p);
|
|
3228
3228
|
} catch {
|
|
3229
3229
|
}
|
|
3230
3230
|
c = void 0;
|
|
3231
|
-
}),
|
|
3231
|
+
}), m = () => {
|
|
3232
3232
|
c = void 0, u !== void 0 && (clearTimeout(u), u = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3233
3233
|
}, v = s.set.bind(s);
|
|
3234
|
-
return s.set = (
|
|
3235
|
-
s.has(
|
|
3236
|
-
const y = v(
|
|
3237
|
-
return c && c ===
|
|
3234
|
+
return s.set = (g, p) => {
|
|
3235
|
+
s.has(g) && s.delete(g);
|
|
3236
|
+
const y = v(g, p);
|
|
3237
|
+
return c && c === g && m(), h(), y;
|
|
3238
3238
|
}, h(), s;
|
|
3239
3239
|
}
|
|
3240
3240
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3315,7 +3315,7 @@ function Ws(e) {
|
|
|
3315
3315
|
var h = f[u];
|
|
3316
3316
|
c = c.concat(ya(h));
|
|
3317
3317
|
}
|
|
3318
|
-
var
|
|
3318
|
+
var m = navigator.language, v = m && ya(m);
|
|
3319
3319
|
s = s.concat(c, v);
|
|
3320
3320
|
}
|
|
3321
3321
|
return n && s.push(i), s.filter(Ms).map(dn).filter(Ls);
|
|
@@ -3678,7 +3678,7 @@ function Po(e, t) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
var Re = "react-calendar__navigation";
|
|
3680
3680
|
function Dc(e) {
|
|
3681
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, u = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f,
|
|
3681
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, u = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f, m = e.navigationAriaLive, v = e.navigationLabel, g = e.next2AriaLabel, p = g === void 0 ? "" : g, y = e.next2Label, j = y === void 0 ? "»" : y, w = e.nextAriaLabel, N = w === void 0 ? "" : w, D = e.nextLabel, S = D === void 0 ? "›" : D, O = e.prev2AriaLabel, _ = O === void 0 ? "" : O, z = e.prev2Label, b = z === void 0 ? "«" : z, T = e.prevAriaLabel, U = T === void 0 ? "" : T, Y = e.prevLabel, L = Y === void 0 ? "‹" : Y, te = e.setActiveStartDate, pe = e.showDoubleView, de = e.view, xe = e.views, Ee = xe.indexOf(de) > 0, le = de !== "century", q = pc(de, t), fe = le ? gc(de, t) : void 0, oe = Co(de, t), C = le ? yc(de, t) : void 0, M = function() {
|
|
3682
3682
|
if (q.getFullYear() < 0)
|
|
3683
3683
|
return !0;
|
|
3684
3684
|
var K = bc(de, t);
|
|
@@ -3725,9 +3725,9 @@ function Dc(e) {
|
|
|
3725
3725
|
}
|
|
3726
3726
|
function we() {
|
|
3727
3727
|
var K = "".concat(Re, "__label");
|
|
3728
|
-
return o.jsxs("button", { "aria-label": h, "aria-live":
|
|
3728
|
+
return o.jsxs("button", { "aria-label": h, "aria-live": m, className: K, disabled: !Ee, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(K, "__labelText ").concat(K, "__labelText--from"), children: Q(t) }), pe ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(K, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(K, "__labelText ").concat(K, "__labelText--to"), children: Q(oe) })] }) : null] });
|
|
3729
3729
|
}
|
|
3730
|
-
return o.jsxs("div", { className: Re, children: [b !== null && le ? o.jsx("button", { "aria-label": _, className: "".concat(Re, "__arrow ").concat(Re, "__prev2-button"), disabled: $, onClick: ue, type: "button", children: b }) : null, L !== null && o.jsx("button", { "aria-label": U, className: "".concat(Re, "__arrow ").concat(Re, "__prev-button"), disabled: M, onClick: ee, type: "button", children: L }), we(), S !== null && o.jsx("button", { "aria-label": N, className: "".concat(Re, "__arrow ").concat(Re, "__next-button"), disabled: F, onClick: je, type: "button", children: S }), j !== null && le ? o.jsx("button", { "aria-label":
|
|
3730
|
+
return o.jsxs("div", { className: Re, children: [b !== null && le ? o.jsx("button", { "aria-label": _, className: "".concat(Re, "__arrow ").concat(Re, "__prev2-button"), disabled: $, onClick: ue, type: "button", children: b }) : null, L !== null && o.jsx("button", { "aria-label": U, className: "".concat(Re, "__arrow ").concat(Re, "__prev-button"), disabled: M, onClick: ee, type: "button", children: L }), we(), S !== null && o.jsx("button", { "aria-label": N, className: "".concat(Re, "__arrow ").concat(Re, "__next-button"), disabled: F, onClick: je, type: "button", children: S }), j !== null && le ? o.jsx("button", { "aria-label": p, className: "".concat(Re, "__arrow ").concat(Re, "__next2-button"), disabled: re, onClick: Se, type: "button", children: j }) : null] });
|
|
3731
3731
|
}
|
|
3732
3732
|
var ht = function() {
|
|
3733
3733
|
return ht = Object.assign || function(e) {
|
|
@@ -3816,41 +3816,41 @@ function kc(e) {
|
|
|
3816
3816
|
i.push.apply(i, u);
|
|
3817
3817
|
var f = Array.isArray(t) ? t : [t];
|
|
3818
3818
|
if (n && f.length === 1) {
|
|
3819
|
-
var h = n > c[0] ? [c[0], n] : [n, c[0]],
|
|
3820
|
-
i.push.apply(i,
|
|
3819
|
+
var h = n > c[0] ? [c[0], n] : [n, c[0]], m = ja(h, l, "".concat(a, "--hover"));
|
|
3820
|
+
i.push.apply(i, m);
|
|
3821
3821
|
}
|
|
3822
3822
|
return i;
|
|
3823
3823
|
}
|
|
3824
3824
|
function $r(e) {
|
|
3825
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, u = e.renderTile, f = e.start, h = e.step,
|
|
3825
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, u = e.renderTile, f = e.start, h = e.step, m = h === void 0 ? 1 : h, v = e.value, g = e.valueType, p = [], y = f; y <= s; y += m) {
|
|
3826
3826
|
var j = a(y);
|
|
3827
|
-
|
|
3827
|
+
p.push(u({
|
|
3828
3828
|
classes: kc({
|
|
3829
3829
|
date: j,
|
|
3830
3830
|
dateType: i,
|
|
3831
3831
|
hover: l,
|
|
3832
3832
|
value: v,
|
|
3833
|
-
valueType:
|
|
3833
|
+
valueType: g
|
|
3834
3834
|
}),
|
|
3835
3835
|
date: j
|
|
3836
3836
|
}));
|
|
3837
3837
|
}
|
|
3838
|
-
return o.jsx(Bn, { className: t, count: n, offset: c, wrap: !0, children:
|
|
3838
|
+
return o.jsx(Bn, { className: t, count: n, offset: c, wrap: !0, children: p });
|
|
3839
3839
|
}
|
|
3840
3840
|
function Mr(e) {
|
|
3841
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, u = e.minDate, f = e.minDateTransform, h = e.onClick,
|
|
3842
|
-
var D = { activeStartDate: t, date: a, view: j };
|
|
3843
|
-
return typeof m == "function" ? m(D) : m;
|
|
3844
|
-
}, [t, a, m, j]), N = Ie(function() {
|
|
3841
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, u = e.minDate, f = e.minDateTransform, h = e.onClick, m = e.onMouseOver, v = e.style, g = e.tileClassName, p = e.tileContent, y = e.tileDisabled, j = e.view, w = Ie(function() {
|
|
3845
3842
|
var D = { activeStartDate: t, date: a, view: j };
|
|
3846
3843
|
return typeof g == "function" ? g(D) : g;
|
|
3847
|
-
}, [t, a, g, j])
|
|
3844
|
+
}, [t, a, g, j]), N = Ie(function() {
|
|
3845
|
+
var D = { activeStartDate: t, date: a, view: j };
|
|
3846
|
+
return typeof p == "function" ? p(D) : p;
|
|
3847
|
+
}, [t, a, p, j]);
|
|
3848
3848
|
return o.jsxs("button", { className: Tr(n, w), disabled: u && f(u) > a || l && c(l) < a || (y == null ? void 0 : y({ activeStartDate: t, date: a, view: j })), onClick: h ? function(D) {
|
|
3849
3849
|
return h(a, D);
|
|
3850
|
-
} : void 0, onFocus:
|
|
3851
|
-
return
|
|
3852
|
-
} : void 0, onMouseOver:
|
|
3853
|
-
return
|
|
3850
|
+
} : void 0, onFocus: m ? function() {
|
|
3851
|
+
return m(a);
|
|
3852
|
+
} : void 0, onMouseOver: m ? function() {
|
|
3853
|
+
return m(a);
|
|
3854
3854
|
} : void 0, style: v, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, N] });
|
|
3855
3855
|
}
|
|
3856
3856
|
var hn = function() {
|
|
@@ -4051,8 +4051,8 @@ var jn = function() {
|
|
|
4051
4051
|
return r;
|
|
4052
4052
|
}, Jr = "react-calendar__month-view__days__day";
|
|
4053
4053
|
function Uc(e) {
|
|
4054
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, l = e.formatLongDate, c = l === void 0 ? sc : l, u = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = u.date, h = u.locale,
|
|
4055
|
-
return n &&
|
|
4054
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, l = e.formatLongDate, c = l === void 0 ? sc : l, u = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = u.date, h = u.locale, m = [];
|
|
4055
|
+
return n && m.push.apply(m, n), m.push(Jr), Po(f, t) && m.push("".concat(Jr, "--weekend")), f.getMonth() !== a && m.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, u, { classes: m, formatAbbr: c, maxDateTransform: Vn, minDateTransform: Ht, view: "month", children: s(h, f) }));
|
|
4056
4056
|
}
|
|
4057
4057
|
var Sn = function() {
|
|
4058
4058
|
return Sn = Object.assign || function(e) {
|
|
@@ -4071,9 +4071,9 @@ var Sn = function() {
|
|
|
4071
4071
|
return r;
|
|
4072
4072
|
};
|
|
4073
4073
|
function zc(e) {
|
|
4074
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), u = ce(t), f = He(t), h = a || i,
|
|
4074
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), u = ce(t), f = He(t), h = a || i, m = Vt(t, r), v = h ? 0 : m, g = (h ? -m : 0) + 1, p = function() {
|
|
4075
4075
|
if (a)
|
|
4076
|
-
return
|
|
4076
|
+
return g + 6 * 7 - 1;
|
|
4077
4077
|
var y = No(t);
|
|
4078
4078
|
if (i) {
|
|
4079
4079
|
var j = /* @__PURE__ */ new Date();
|
|
@@ -4086,18 +4086,18 @@ function zc(e) {
|
|
|
4086
4086
|
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(y) {
|
|
4087
4087
|
var j = /* @__PURE__ */ new Date();
|
|
4088
4088
|
return j.setFullYear(u, f, y), Ht(j);
|
|
4089
|
-
}, dateType: "day", hover: n, end:
|
|
4089
|
+
}, dateType: "day", hover: n, end: p, renderTile: function(y) {
|
|
4090
4090
|
var j = y.date, w = ka(y, ["date"]);
|
|
4091
4091
|
return o.jsx(Uc, Sn({}, c, w, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
4092
|
-
}, offset: v, start:
|
|
4092
|
+
}, offset: v, start: g, value: s, valueType: l });
|
|
4093
4093
|
}
|
|
4094
4094
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
4095
4095
|
function Hc(e) {
|
|
4096
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), u = ot(c), f = ce(u), h = He(u),
|
|
4097
|
-
var
|
|
4098
|
-
|
|
4096
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), u = ot(c), f = ce(u), h = He(u), m = [], v = 1; v <= 7; v += 1) {
|
|
4097
|
+
var g = new Date(f, h, v - Vt(u, t)), p = i(s, g);
|
|
4098
|
+
m.push(o.jsx("div", { className: Tr(Qr, Sc(g) && "".concat(Qr, "--current"), Po(g, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": p, title: p, children: n(s, g).replace(".", "") }) }, v));
|
|
4099
4099
|
}
|
|
4100
|
-
return o.jsx(Bn, { className: Ao, count: 7, onFocus: l, onMouseOver: l, children:
|
|
4100
|
+
return o.jsx(Bn, { className: Ao, count: 7, onFocus: l, onMouseOver: l, children: m });
|
|
4101
4101
|
}
|
|
4102
4102
|
var Sr = function() {
|
|
4103
4103
|
return Sr = Object.assign || function(e) {
|
|
@@ -4135,9 +4135,9 @@ function qc(e) {
|
|
|
4135
4135
|
var u = No(t), f = Vt(t, r), h = u - (7 - f);
|
|
4136
4136
|
return 1 + Math.ceil(h / 7);
|
|
4137
4137
|
}(), l = function() {
|
|
4138
|
-
for (var u = ce(t), f = He(t), h = Pr(t),
|
|
4139
|
-
|
|
4140
|
-
return
|
|
4138
|
+
for (var u = ce(t), f = He(t), h = Pr(t), m = [], v = 0; v < s; v += 1)
|
|
4139
|
+
m.push(fn(new Date(u, f, h + v * 7), r));
|
|
4140
|
+
return m;
|
|
4141
4141
|
}(), c = l.map(function(u) {
|
|
4142
4142
|
return mc(u, r);
|
|
4143
4143
|
});
|
|
@@ -4175,23 +4175,23 @@ function Kc(e) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
function Jc(e) {
|
|
4177
4177
|
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday, u = e.onClickWeekNumber, f = e.showWeekNumbers, h = Xc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
4178
|
-
function
|
|
4178
|
+
function m() {
|
|
4179
4179
|
return o.jsx(Hc, { calendarType: s, formatShortWeekday: l, formatWeekday: c, locale: r, onMouseLeave: n });
|
|
4180
4180
|
}
|
|
4181
4181
|
function v() {
|
|
4182
4182
|
return f ? o.jsx(qc, { activeStartDate: t, calendarType: s, onClickWeekNumber: u, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
4183
4183
|
}
|
|
4184
|
-
function
|
|
4184
|
+
function g() {
|
|
4185
4185
|
return o.jsx(zc, Dn({ calendarType: s }, h));
|
|
4186
4186
|
}
|
|
4187
|
-
var
|
|
4188
|
-
return o.jsx("div", { className: Tr(
|
|
4187
|
+
var p = "react-calendar__month-view";
|
|
4188
|
+
return o.jsx("div", { className: Tr(p, f ? "".concat(p, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
4189
4189
|
display: "flex",
|
|
4190
4190
|
alignItems: "flex-end"
|
|
4191
4191
|
}, children: [v(), o.jsxs("div", { style: {
|
|
4192
4192
|
flexGrow: 1,
|
|
4193
4193
|
width: "100%"
|
|
4194
|
-
}, children: [
|
|
4194
|
+
}, children: [m(), g()] })] }) });
|
|
4195
4195
|
}
|
|
4196
4196
|
var vt = function() {
|
|
4197
4197
|
return vt = Object.assign || function(e) {
|
|
@@ -4266,8 +4266,8 @@ function Fo(e) {
|
|
|
4266
4266
|
return nt(l, c);
|
|
4267
4267
|
}
|
|
4268
4268
|
function nl(e) {
|
|
4269
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, u = e.value, f = e.view, h = zn(f, c, s),
|
|
4270
|
-
return
|
|
4269
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, u = e.value, f = e.view, h = zn(f, c, s), m = t || r;
|
|
4270
|
+
return m ? nt(h, m) : Fo({
|
|
4271
4271
|
maxDate: i,
|
|
4272
4272
|
maxDetail: s,
|
|
4273
4273
|
minDate: l,
|
|
@@ -4283,7 +4283,7 @@ function ur(e, t) {
|
|
|
4283
4283
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4284
4284
|
}
|
|
4285
4285
|
var al = ze(function(t, r) {
|
|
4286
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, u = t.defaultView, f = t.formatDay, h = t.formatLongDate,
|
|
4286
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, u = t.defaultView, f = t.formatDay, h = t.formatLongDate, m = t.formatMonth, v = t.formatMonthYear, g = t.formatShortWeekday, p = t.formatWeekday, y = t.formatYear, j = t.goToRangeStartOnSelect, w = j === void 0 ? !0 : j, N = t.inputRef, D = t.locale, S = t.maxDate, O = S === void 0 ? Zc : S, _ = t.maxDetail, z = _ === void 0 ? "month" : _, b = t.minDate, T = b === void 0 ? Un : b, U = t.minDetail, Y = U === void 0 ? "century" : U, L = t.navigationAriaLabel, te = t.navigationAriaLive, pe = t.navigationLabel, de = t.next2AriaLabel, xe = t.next2Label, Ee = t.nextAriaLabel, le = t.nextLabel, q = t.onActiveStartDateChange, fe = t.onChange, oe = t.onClickDay, C = t.onClickDecade, M = t.onClickMonth, $ = t.onClickWeekNumber, F = t.onClickYear, re = t.onDrillDown, ee = t.onDrillUp, ue = t.onViewChange, je = t.prev2AriaLabel, Se = t.prev2Label, Q = t.prevAriaLabel, we = t.prevLabel, K = t.returnValue, Ce = K === void 0 ? "start" : K, ve = t.selectRange, qe = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, Xe = t.showNavigation, Lr = Xe === void 0 ? !0 : Xe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Gt = t.showNeighboringMonth, Wr = Gt === void 0 ? !0 : Gt, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, st = t.value, Ct = t.view, Jt = V(l), Yr = Jt[0], ct = Jt[1], Qt = V(null), Br = Qt[0], Zt = Qt[1], er = V(Array.isArray(c) ? c.map(function(k) {
|
|
4287
4287
|
return k !== null ? Ft(k) : null;
|
|
4288
4288
|
}) : c != null ? Ft(c) : null), Ke = er[0], tr = er[1], Me = V(u), kt = Me[0], lt = Me[1], ge = n || Yr || nl({
|
|
4289
4289
|
activeStartDate: n,
|
|
@@ -4499,9 +4499,9 @@ var al = ze(function(t, r) {
|
|
|
4499
4499
|
case "decade":
|
|
4500
4500
|
return o.jsx(Mc, vt({ formatYear: y, showNeighboringDecade: Et }, Z));
|
|
4501
4501
|
case "year":
|
|
4502
|
-
return o.jsx(Yc, vt({ formatMonth:
|
|
4502
|
+
return o.jsx(Yc, vt({ formatMonth: m, formatMonthYear: v }, Z));
|
|
4503
4503
|
case "month":
|
|
4504
|
-
return o.jsx(Jc, vt({ calendarType: i, formatDay: f, formatLongDate: h, formatShortWeekday:
|
|
4504
|
+
return o.jsx(Jc, vt({ calendarType: i, formatDay: f, formatLongDate: h, formatShortWeekday: g, formatWeekday: p, onClickWeekNumber: $, onMouseLeave: ve ? x : void 0, showFixedNumberOfWeeks: typeof Nt < "u" ? Nt : qe, showNeighboringMonth: Wr, showWeekNumbers: qt }, Z));
|
|
4505
4505
|
default:
|
|
4506
4506
|
throw new Error("Invalid view: ".concat(ne, "."));
|
|
4507
4507
|
}
|
|
@@ -4519,20 +4519,20 @@ const Ul = ({
|
|
|
4519
4519
|
children: n
|
|
4520
4520
|
}) => {
|
|
4521
4521
|
const [a, i] = V(e ?? /* @__PURE__ */ new Date()), [s, l] = V(!1), c = se(null), u = A(
|
|
4522
|
-
(
|
|
4523
|
-
i(
|
|
4522
|
+
(p) => {
|
|
4523
|
+
i(p), t && t(p), l(!1);
|
|
4524
4524
|
},
|
|
4525
4525
|
[t]
|
|
4526
|
-
), f = () => l(!s), h = A((
|
|
4527
|
-
c.current && !c.current.contains(
|
|
4526
|
+
), f = () => l(!s), h = A((p) => {
|
|
4527
|
+
c.current && !c.current.contains(p.target) && l(!1);
|
|
4528
4528
|
}, []);
|
|
4529
4529
|
J(() => (s ? document.addEventListener("mousedown", h) : document.removeEventListener("mousedown", h), () => {
|
|
4530
4530
|
document.removeEventListener("mousedown", h);
|
|
4531
4531
|
}), [s, h]);
|
|
4532
|
-
const [
|
|
4533
|
-
activeStartDate:
|
|
4532
|
+
const [m, v] = V(), g = ({
|
|
4533
|
+
activeStartDate: p
|
|
4534
4534
|
}) => {
|
|
4535
|
-
v(
|
|
4535
|
+
v(p);
|
|
4536
4536
|
};
|
|
4537
4537
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
4538
4538
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
@@ -4561,14 +4561,14 @@ const Ul = ({
|
|
|
4561
4561
|
/* @__PURE__ */ o.jsx(
|
|
4562
4562
|
al,
|
|
4563
4563
|
{
|
|
4564
|
-
onActiveStartDateChange:
|
|
4564
|
+
onActiveStartDateChange: g,
|
|
4565
4565
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4566
4566
|
onChange: u,
|
|
4567
4567
|
value: a,
|
|
4568
|
-
tileClassName: ({ date:
|
|
4569
|
-
if (y === "month" &&
|
|
4570
|
-
const j =
|
|
4571
|
-
return
|
|
4568
|
+
tileClassName: ({ date: p, view: y }) => {
|
|
4569
|
+
if (y === "month" && m) {
|
|
4570
|
+
const j = m;
|
|
4571
|
+
return p.getMonth() !== (j == null ? void 0 : j.getMonth()) ? "out-of-month" : null;
|
|
4572
4572
|
}
|
|
4573
4573
|
return null;
|
|
4574
4574
|
}
|
|
@@ -4590,18 +4590,18 @@ const Ul = ({
|
|
|
4590
4590
|
const c = A(() => {
|
|
4591
4591
|
const h = l.current;
|
|
4592
4592
|
if (!h) return;
|
|
4593
|
-
let
|
|
4594
|
-
for (;
|
|
4595
|
-
const
|
|
4596
|
-
if (/(auto|scroll)/.test(
|
|
4597
|
-
const y =
|
|
4598
|
-
|
|
4593
|
+
let m = h.parentElement;
|
|
4594
|
+
for (; m; ) {
|
|
4595
|
+
const g = window.getComputedStyle(m);
|
|
4596
|
+
if (/(auto|scroll)/.test(g.overflow + g.overflowY) && m.scrollHeight > m.clientHeight) {
|
|
4597
|
+
const y = m.getBoundingClientRect(), w = h.getBoundingClientRect().top - y.top + m.scrollTop;
|
|
4598
|
+
m.scrollTo({
|
|
4599
4599
|
top: w,
|
|
4600
4600
|
behavior: "smooth"
|
|
4601
4601
|
});
|
|
4602
4602
|
return;
|
|
4603
4603
|
}
|
|
4604
|
-
|
|
4604
|
+
m = m.parentElement;
|
|
4605
4605
|
}
|
|
4606
4606
|
(h.querySelector(".expand-header") || h).scrollIntoView({ behavior: "smooth", block: "start" });
|
|
4607
4607
|
}, []);
|
|
@@ -4609,36 +4609,40 @@ const Ul = ({
|
|
|
4609
4609
|
if (i) {
|
|
4610
4610
|
const h = setTimeout(() => {
|
|
4611
4611
|
c();
|
|
4612
|
-
}, 100)
|
|
4613
|
-
|
|
4612
|
+
}, 100), m = setTimeout(() => {
|
|
4613
|
+
c();
|
|
4614
|
+
}, 350);
|
|
4615
|
+
return () => {
|
|
4616
|
+
clearTimeout(h), clearTimeout(m);
|
|
4617
|
+
};
|
|
4614
4618
|
}
|
|
4615
4619
|
}, [i, c]);
|
|
4616
4620
|
const u = A(
|
|
4617
4621
|
(h) => {
|
|
4618
|
-
const
|
|
4619
|
-
if (i && (
|
|
4622
|
+
const m = h.target;
|
|
4623
|
+
if (i && (m.tagName === "INPUT" || m.tagName === "TEXTAREA" || m.tagName === "SELECT")) {
|
|
4620
4624
|
const v = l.current;
|
|
4621
4625
|
if (!v) return;
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4626
|
+
const g = () => {
|
|
4627
|
+
let p = v.parentElement;
|
|
4628
|
+
for (; p; ) {
|
|
4629
|
+
const y = window.getComputedStyle(p);
|
|
4630
|
+
if (/(auto|scroll)/.test(y.overflow + y.overflowY) && p.scrollHeight > p.clientHeight) {
|
|
4631
|
+
const w = p.getBoundingClientRect(), D = v.getBoundingClientRect().top - w.top + p.scrollTop;
|
|
4632
|
+
if (p.scrollTop >= D - 10) {
|
|
4633
|
+
m.getBoundingClientRect().bottom > w.bottom && m.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
4634
|
+
return;
|
|
4635
|
+
}
|
|
4636
|
+
p.scrollTo({
|
|
4637
|
+
top: D,
|
|
4638
|
+
behavior: "smooth"
|
|
4639
|
+
});
|
|
4632
4640
|
return;
|
|
4633
4641
|
}
|
|
4634
|
-
|
|
4635
|
-
top: S,
|
|
4636
|
-
behavior: "smooth"
|
|
4637
|
-
});
|
|
4638
|
-
return;
|
|
4642
|
+
p = p.parentElement;
|
|
4639
4643
|
}
|
|
4640
|
-
|
|
4641
|
-
|
|
4644
|
+
};
|
|
4645
|
+
g(), setTimeout(g, 300);
|
|
4642
4646
|
}
|
|
4643
4647
|
},
|
|
4644
4648
|
[i]
|
|
@@ -4739,14 +4743,14 @@ const Ul = ({
|
|
|
4739
4743
|
rows: u,
|
|
4740
4744
|
required: f = !1
|
|
4741
4745
|
}) => {
|
|
4742
|
-
const [h,
|
|
4746
|
+
const [h, m] = V(r);
|
|
4743
4747
|
J(() => {
|
|
4744
|
-
|
|
4748
|
+
m(r);
|
|
4745
4749
|
}, [r]);
|
|
4746
4750
|
const v = A(
|
|
4747
|
-
(
|
|
4748
|
-
const
|
|
4749
|
-
p
|
|
4751
|
+
(g) => {
|
|
4752
|
+
const p = g.target.value;
|
|
4753
|
+
m(p), s && s(p, e);
|
|
4750
4754
|
},
|
|
4751
4755
|
[s, e]
|
|
4752
4756
|
);
|
|
@@ -4779,15 +4783,15 @@ const Ul = ({
|
|
|
4779
4783
|
disabledSubmit: c = !1,
|
|
4780
4784
|
className: u
|
|
4781
4785
|
}, f) => {
|
|
4782
|
-
const [h,
|
|
4786
|
+
const [h, m] = V(c), [v, g] = V(() => {
|
|
4783
4787
|
const b = {};
|
|
4784
4788
|
return e.forEach((T) => {
|
|
4785
4789
|
b[T.name] = T.value ?? "";
|
|
4786
4790
|
}), b;
|
|
4787
|
-
}),
|
|
4791
|
+
}), p = se({}), y = A(
|
|
4788
4792
|
(b, T) => {
|
|
4789
4793
|
const { name: U, type: Y, checked: L, value: te } = b.target, pe = Y === "checkbox" ? L : te;
|
|
4790
|
-
T.onChange && T.onChange(pe, U),
|
|
4794
|
+
T.onChange && T.onChange(pe, U), g((de) => {
|
|
4791
4795
|
const xe = { ...de, [U]: pe };
|
|
4792
4796
|
return s && s(xe), xe;
|
|
4793
4797
|
});
|
|
@@ -4795,7 +4799,7 @@ const Ul = ({
|
|
|
4795
4799
|
[s]
|
|
4796
4800
|
), j = A(
|
|
4797
4801
|
(b, T, U) => {
|
|
4798
|
-
U.onChange && U.onChange(T, b),
|
|
4802
|
+
U.onChange && U.onChange(T, b), g((Y) => {
|
|
4799
4803
|
const L = { ...Y, [b]: T };
|
|
4800
4804
|
return s && s(L), L;
|
|
4801
4805
|
});
|
|
@@ -4803,7 +4807,7 @@ const Ul = ({
|
|
|
4803
4807
|
[s]
|
|
4804
4808
|
), w = A(
|
|
4805
4809
|
(b, T, U) => {
|
|
4806
|
-
U.onChange && U.onChange(b, T),
|
|
4810
|
+
U.onChange && U.onChange(b, T), g((Y) => {
|
|
4807
4811
|
const L = { ...Y, [T]: b };
|
|
4808
4812
|
return s && s(L), L;
|
|
4809
4813
|
});
|
|
@@ -4815,25 +4819,25 @@ const Ul = ({
|
|
|
4815
4819
|
},
|
|
4816
4820
|
[r, v]
|
|
4817
4821
|
), D = () => {
|
|
4818
|
-
|
|
4822
|
+
g(() => {
|
|
4819
4823
|
const b = {};
|
|
4820
4824
|
return e.forEach((T) => {
|
|
4821
4825
|
b[T.name] = T.value ?? "";
|
|
4822
4826
|
}), b;
|
|
4823
4827
|
});
|
|
4824
4828
|
}, S = A((b) => {
|
|
4825
|
-
|
|
4829
|
+
g((T) => ({
|
|
4826
4830
|
...T,
|
|
4827
4831
|
[b]: ""
|
|
4828
4832
|
}));
|
|
4829
4833
|
}, []), O = () => {
|
|
4830
4834
|
const b = e.find((T) => T.focus);
|
|
4831
|
-
b &&
|
|
4835
|
+
b && p.current[b.name] && setTimeout(() => {
|
|
4832
4836
|
var T;
|
|
4833
|
-
(T =
|
|
4837
|
+
(T = p.current[b.name]) == null || T.select();
|
|
4834
4838
|
}, 500);
|
|
4835
4839
|
}, _ = () => v, z = (b) => {
|
|
4836
|
-
|
|
4840
|
+
g((T) => ({
|
|
4837
4841
|
...T,
|
|
4838
4842
|
...b
|
|
4839
4843
|
}));
|
|
@@ -4844,7 +4848,7 @@ const Ul = ({
|
|
|
4844
4848
|
focusInitialElement: O,
|
|
4845
4849
|
getValues: _,
|
|
4846
4850
|
updateFormValue: z,
|
|
4847
|
-
setBtnDisabledSubmit:
|
|
4851
|
+
setBtnDisabledSubmit: m
|
|
4848
4852
|
})), /* @__PURE__ */ o.jsxs(
|
|
4849
4853
|
"form",
|
|
4850
4854
|
{
|
|
@@ -4894,7 +4898,7 @@ const Ul = ({
|
|
|
4894
4898
|
wr,
|
|
4895
4899
|
{
|
|
4896
4900
|
id: b.id ?? b.name,
|
|
4897
|
-
ref: (L) =>
|
|
4901
|
+
ref: (L) => p.current[b.name] = L,
|
|
4898
4902
|
name: b.name,
|
|
4899
4903
|
type: b.type,
|
|
4900
4904
|
placeholder: b.placeholder ?? "",
|
|
@@ -4943,10 +4947,10 @@ const Ul = ({
|
|
|
4943
4947
|
autoComplete: u = "off",
|
|
4944
4948
|
tabIndex: f = 0,
|
|
4945
4949
|
inputMode: h = "numeric",
|
|
4946
|
-
pattern:
|
|
4950
|
+
pattern: m,
|
|
4947
4951
|
onChange: v,
|
|
4948
|
-
onBlur:
|
|
4949
|
-
onClick:
|
|
4952
|
+
onBlur: g,
|
|
4953
|
+
onClick: p,
|
|
4950
4954
|
onKeyDown: y,
|
|
4951
4955
|
onFocus: j
|
|
4952
4956
|
}, w) => {
|
|
@@ -4978,7 +4982,7 @@ const Ul = ({
|
|
|
4978
4982
|
required: s,
|
|
4979
4983
|
autoFocus: l,
|
|
4980
4984
|
autoComplete: u,
|
|
4981
|
-
pattern:
|
|
4985
|
+
pattern: m,
|
|
4982
4986
|
tabIndex: f,
|
|
4983
4987
|
inputMode: h,
|
|
4984
4988
|
spellCheck: "false",
|
|
@@ -4987,9 +4991,9 @@ const Ul = ({
|
|
|
4987
4991
|
onWheel: (S) => S.currentTarget.blur(),
|
|
4988
4992
|
onKeyDown: D,
|
|
4989
4993
|
onFocus: j,
|
|
4990
|
-
onBlur:
|
|
4994
|
+
onBlur: g,
|
|
4991
4995
|
onClick: (S) => {
|
|
4992
|
-
S.stopPropagation(),
|
|
4996
|
+
S.stopPropagation(), p == null || p(S);
|
|
4993
4997
|
}
|
|
4994
4998
|
}
|
|
4995
4999
|
) });
|
|
@@ -5061,12 +5065,12 @@ const Gl = ze(
|
|
|
5061
5065
|
showBackNavigation: l,
|
|
5062
5066
|
onClickBackNavigation: c
|
|
5063
5067
|
}) => {
|
|
5064
|
-
const u = se(null), [f, h] = V(!1),
|
|
5068
|
+
const u = se(null), [f, h] = V(!1), m = A(() => {
|
|
5065
5069
|
h(!f);
|
|
5066
5070
|
}, [f, h]);
|
|
5067
5071
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
5068
5072
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
5069
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(B, { size: _e.MEDIUM, classIcon: "bi-list" }) }),
|
|
5073
|
+
/* @__PURE__ */ o.jsx("span", { className: "header-menu-btn", onClick: r, children: /* @__PURE__ */ o.jsx(B, { size: _e.MEDIUM, classIcon: "bi-list" }) }),
|
|
5070
5074
|
l && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
5071
5075
|
B,
|
|
5072
5076
|
{
|
|
@@ -5085,7 +5089,7 @@ const Gl = ze(
|
|
|
5085
5089
|
] }),
|
|
5086
5090
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
5087
5091
|
e,
|
|
5088
|
-
/* @__PURE__ */ o.jsx("div", { ref: u, onClick:
|
|
5092
|
+
/* @__PURE__ */ o.jsx("div", { ref: u, onClick: m, children: /* @__PURE__ */ o.jsx(B, { size: _e.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
5089
5093
|
f && u.current && /* @__PURE__ */ o.jsx(
|
|
5090
5094
|
In,
|
|
5091
5095
|
{
|
|
@@ -5163,13 +5167,13 @@ const Gl = ze(
|
|
|
5163
5167
|
id: s
|
|
5164
5168
|
}, l) => {
|
|
5165
5169
|
const [c, u] = V(null), f = A(async () => {
|
|
5166
|
-
const h = new Blob([e], { type: "application/pdf" }),
|
|
5170
|
+
const h = new Blob([e], { type: "application/pdf" }), m = URL.createObjectURL(h);
|
|
5167
5171
|
if (!t) {
|
|
5168
|
-
const v = `${
|
|
5172
|
+
const v = `${m}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
5169
5173
|
u(v);
|
|
5170
5174
|
return;
|
|
5171
5175
|
}
|
|
5172
|
-
u(
|
|
5176
|
+
u(m);
|
|
5173
5177
|
}, [e, t, u]);
|
|
5174
5178
|
return J(() => {
|
|
5175
5179
|
f();
|
|
@@ -5211,8 +5215,8 @@ const Gl = ze(
|
|
|
5211
5215
|
(v) => {
|
|
5212
5216
|
if (v.stopPropagation(), n || a)
|
|
5213
5217
|
return;
|
|
5214
|
-
const
|
|
5215
|
-
u(Math.round(
|
|
5218
|
+
const g = l + s;
|
|
5219
|
+
u(Math.round(g * 100) / 100);
|
|
5216
5220
|
},
|
|
5217
5221
|
[l, u]
|
|
5218
5222
|
), h = A(
|
|
@@ -5221,15 +5225,15 @@ const Gl = ze(
|
|
|
5221
5225
|
return;
|
|
5222
5226
|
if (l === 0)
|
|
5223
5227
|
return l;
|
|
5224
|
-
const
|
|
5225
|
-
u(Math.round(
|
|
5228
|
+
const g = l - s;
|
|
5229
|
+
u(Math.round(g * 100) / 100);
|
|
5226
5230
|
},
|
|
5227
5231
|
[u, l]
|
|
5228
5232
|
);
|
|
5229
5233
|
J(() => {
|
|
5230
5234
|
t.quantity && c(t.quantity);
|
|
5231
5235
|
}, [t.quantity, c]);
|
|
5232
|
-
const
|
|
5236
|
+
const m = A(
|
|
5233
5237
|
(v) => {
|
|
5234
5238
|
v.stopPropagation(), r && r(t);
|
|
5235
5239
|
},
|
|
@@ -5244,7 +5248,7 @@ const Gl = ze(
|
|
|
5244
5248
|
children: /* @__PURE__ */ o.jsx(B, { size: _e.LARGE, classIcon: "bi bi-dash-square" })
|
|
5245
5249
|
}
|
|
5246
5250
|
),
|
|
5247
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (v) =>
|
|
5251
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (v) => m(v), className: "qte-label", children: l }),
|
|
5248
5252
|
/* @__PURE__ */ o.jsx(
|
|
5249
5253
|
"div",
|
|
5250
5254
|
{
|
|
@@ -5266,7 +5270,7 @@ const Gl = ze(
|
|
|
5266
5270
|
setIsVisible: l,
|
|
5267
5271
|
id: c
|
|
5268
5272
|
}, u) => {
|
|
5269
|
-
const [f, h] = V(n ?? !1),
|
|
5273
|
+
const [f, h] = V(n ?? !1), m = se(null), v = se(null), g = Ie(
|
|
5270
5274
|
() => [
|
|
5271
5275
|
{
|
|
5272
5276
|
value: "",
|
|
@@ -5285,7 +5289,7 @@ const Gl = ze(
|
|
|
5285
5289
|
J(() => {
|
|
5286
5290
|
n !== void 0 && h(n);
|
|
5287
5291
|
}, [n]);
|
|
5288
|
-
const
|
|
5292
|
+
const p = A(
|
|
5289
5293
|
(w) => {
|
|
5290
5294
|
l && l(w), h(w);
|
|
5291
5295
|
},
|
|
@@ -5293,12 +5297,12 @@ const Gl = ze(
|
|
|
5293
5297
|
), y = A(
|
|
5294
5298
|
(w) => {
|
|
5295
5299
|
if (!w || !w[t ?? "recherche"])
|
|
5296
|
-
return
|
|
5297
|
-
|
|
5300
|
+
return p(!1);
|
|
5301
|
+
p(!0), m.current && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
5298
5302
|
s && s(w);
|
|
5299
5303
|
}, i ?? 500);
|
|
5300
5304
|
},
|
|
5301
|
-
[
|
|
5305
|
+
[p, s, i]
|
|
5302
5306
|
), j = A(
|
|
5303
5307
|
(w) => {
|
|
5304
5308
|
console.log("Form Submitted: ", w);
|
|
@@ -5326,7 +5330,7 @@ const Gl = ze(
|
|
|
5326
5330
|
onSubmit: j,
|
|
5327
5331
|
onChange: y,
|
|
5328
5332
|
hideSubmit: !0,
|
|
5329
|
-
initialForm:
|
|
5333
|
+
initialForm: g
|
|
5330
5334
|
}
|
|
5331
5335
|
),
|
|
5332
5336
|
f && /* @__PURE__ */ o.jsxs("div", { className: "search-result", children: [
|
|
@@ -5334,7 +5338,7 @@ const Gl = ze(
|
|
|
5334
5338
|
"button",
|
|
5335
5339
|
{
|
|
5336
5340
|
className: "toggle-btn",
|
|
5337
|
-
onClick: () =>
|
|
5341
|
+
onClick: () => p(!1),
|
|
5338
5342
|
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-lg" })
|
|
5339
5343
|
}
|
|
5340
5344
|
) }),
|
|
@@ -5353,7 +5357,7 @@ const Gl = ze(
|
|
|
5353
5357
|
closeOnClickOutside: l = !0,
|
|
5354
5358
|
displayOverlay: c = !0
|
|
5355
5359
|
}) => {
|
|
5356
|
-
const [u, f] = V(e || !1), [h,
|
|
5360
|
+
const [u, f] = V(e || !1), [h, m] = V(0), [v, g] = V(!1), p = se(null), y = se(null), j = se(0), w = se(0), N = se(null);
|
|
5357
5361
|
J(() => (y.current || (y.current = document.createElement("div"), y.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(y.current)), () => {
|
|
5358
5362
|
y.current && y.current.parentNode && (document.body.removeChild(y.current), y.current = null);
|
|
5359
5363
|
}), [i]), J(() => {
|
|
@@ -5363,12 +5367,12 @@ const Gl = ze(
|
|
|
5363
5367
|
f(!1), n && n(!1);
|
|
5364
5368
|
}, [n]), S = A(
|
|
5365
5369
|
(T) => {
|
|
5366
|
-
l &&
|
|
5370
|
+
l && p.current && !p.current.contains(T.target) && D();
|
|
5367
5371
|
},
|
|
5368
5372
|
[D, l]
|
|
5369
5373
|
), O = A((T) => {
|
|
5370
5374
|
const U = T.touches[0];
|
|
5371
|
-
j.current = U.clientX, w.current = U.clientY, N.current = null,
|
|
5375
|
+
j.current = U.clientX, w.current = U.clientY, N.current = null, g(!1), m(0);
|
|
5372
5376
|
}, []), _ = A(
|
|
5373
5377
|
(T) => {
|
|
5374
5378
|
if (!u) return;
|
|
@@ -5378,12 +5382,12 @@ const Gl = ze(
|
|
|
5378
5382
|
return;
|
|
5379
5383
|
N.current = Math.abs(Y) > Math.abs(L) ? "x" : "y";
|
|
5380
5384
|
}
|
|
5381
|
-
N.current === "x" && (T.preventDefault(),
|
|
5385
|
+
N.current === "x" && (T.preventDefault(), g(!0), m(Math.max(0, Y)));
|
|
5382
5386
|
},
|
|
5383
5387
|
[u]
|
|
5384
5388
|
), z = A(
|
|
5385
5389
|
(T) => {
|
|
5386
|
-
u && (N.current === "x" && T.changedTouches[0].clientX - j.current > fl && D(),
|
|
5390
|
+
u && (N.current === "x" && T.changedTouches[0].clientX - j.current > fl && D(), g(!1), m(0), N.current = null);
|
|
5387
5391
|
},
|
|
5388
5392
|
[u, D]
|
|
5389
5393
|
), b = A(
|
|
@@ -5409,7 +5413,7 @@ const Gl = ze(
|
|
|
5409
5413
|
/* @__PURE__ */ o.jsxs(
|
|
5410
5414
|
"div",
|
|
5411
5415
|
{
|
|
5412
|
-
ref:
|
|
5416
|
+
ref: p,
|
|
5413
5417
|
style: {
|
|
5414
5418
|
...s ? { width: s } : {},
|
|
5415
5419
|
transform: h ? `translateX(${h}px)` : void 0,
|
|
@@ -5444,36 +5448,36 @@ const Gl = ze(
|
|
|
5444
5448
|
J(() => {
|
|
5445
5449
|
!l && (t < 0 || t >= e.length) && u(0);
|
|
5446
5450
|
}, [t, e.length, l]);
|
|
5447
|
-
const h = se([]),
|
|
5448
|
-
var
|
|
5449
|
-
(
|
|
5451
|
+
const h = se([]), m = (v) => {
|
|
5452
|
+
var g, p;
|
|
5453
|
+
(g = e[v]) != null && g.disabled || (l || u(v), n == null || n(v), (p = h.current[v]) == null || p.focus());
|
|
5450
5454
|
};
|
|
5451
5455
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5452
|
-
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((v,
|
|
5456
|
+
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((v, g) => /* @__PURE__ */ o.jsx(
|
|
5453
5457
|
"button",
|
|
5454
5458
|
{
|
|
5455
|
-
ref: (
|
|
5459
|
+
ref: (p) => h.current[g] = p,
|
|
5456
5460
|
role: "tab",
|
|
5457
5461
|
id: `tab-${v.key}`,
|
|
5458
|
-
"aria-selected": f ===
|
|
5462
|
+
"aria-selected": f === g,
|
|
5459
5463
|
"aria-controls": `panel-${v.key}`,
|
|
5460
|
-
tabIndex: f ===
|
|
5464
|
+
tabIndex: f === g ? 0 : -1,
|
|
5461
5465
|
disabled: v.disabled,
|
|
5462
|
-
onClick: () =>
|
|
5463
|
-
className: `${i} tab-button ${f ===
|
|
5466
|
+
onClick: () => m(g),
|
|
5467
|
+
className: `${i} tab-button ${f === g ? "tab-button--active" : ""} ${v.disabled ? "tab-button--disabled" : ""}`,
|
|
5464
5468
|
children: v.title
|
|
5465
5469
|
},
|
|
5466
5470
|
`tab-${v.key}`
|
|
5467
5471
|
)) }),
|
|
5468
|
-
e.map((v,
|
|
5472
|
+
e.map((v, g) => /* @__PURE__ */ o.jsx(
|
|
5469
5473
|
"div",
|
|
5470
5474
|
{
|
|
5471
5475
|
role: "tabpanel",
|
|
5472
5476
|
id: `panel-${v.key}`,
|
|
5473
5477
|
"aria-labelledby": `tab-${v.key}`,
|
|
5474
|
-
hidden: f !==
|
|
5478
|
+
hidden: f !== g,
|
|
5475
5479
|
className: `${s} mt-3`,
|
|
5476
|
-
children: f ===
|
|
5480
|
+
children: f === g && v.panel
|
|
5477
5481
|
},
|
|
5478
5482
|
`panel-${v.key}`
|
|
5479
5483
|
))
|
|
@@ -5483,8 +5487,8 @@ const Gl = ze(
|
|
|
5483
5487
|
const r = /* @__PURE__ */ new Set(), n = (u, f) => {
|
|
5484
5488
|
const h = typeof u == "function" ? u(t) : u;
|
|
5485
5489
|
if (!Object.is(h, t)) {
|
|
5486
|
-
const
|
|
5487
|
-
t = f ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((v) => v(t,
|
|
5490
|
+
const m = t;
|
|
5491
|
+
t = f ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((v) => v(t, m));
|
|
5488
5492
|
}
|
|
5489
5493
|
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (u) => (r.add(u), () => r.delete(u)) }, c = t = e(n, a, l);
|
|
5490
5494
|
return l;
|