kelt-ui-kit-react 1.8.4 → 1.8.5
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
CHANGED
|
@@ -20,12 +20,12 @@ function qo() {
|
|
|
20
20
|
if (Hn) return It;
|
|
21
21
|
Hn = 1;
|
|
22
22
|
var e = Ae, 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
|
-
function s(
|
|
23
|
+
function s(c, l, d) {
|
|
24
24
|
var f, v = {}, g = null, h = null;
|
|
25
|
-
d !== void 0 && (g = "" + d),
|
|
26
|
-
for (f in
|
|
27
|
-
if (
|
|
28
|
-
return { $$typeof: t, type:
|
|
25
|
+
d !== void 0 && (g = "" + d), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (h = l.ref);
|
|
26
|
+
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (v[f] = l[f]);
|
|
27
|
+
if (c && c.defaultProps) for (f in l = c.defaultProps, l) v[f] === void 0 && (v[f] = l[f]);
|
|
28
|
+
return { $$typeof: t, type: c, key: g, ref: h, props: v, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = r, It.jsx = s, It.jsxs = s, It;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ var $t = {};
|
|
|
42
42
|
var qn;
|
|
43
43
|
function Xo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = Ae, 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"),
|
|
45
|
+
var e = Ae, 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"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
|
|
46
46
|
function b(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
@@ -70,7 +70,7 @@ function Xo() {
|
|
|
70
70
|
var S = !1, D = !1, E = !1, C = !1, W = !1, y;
|
|
71
71
|
y = Symbol.for("react.module.reference");
|
|
72
72
|
function O(u) {
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || C || u === h || S || D || E || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof ===
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || C || u === h || S || D || E || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === c || u.$$typeof === l || // 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.
|
|
@@ -109,13 +109,13 @@ function Xo() {
|
|
|
109
109
|
}
|
|
110
110
|
if (typeof u == "object")
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
|
-
case
|
|
112
|
+
case c:
|
|
113
113
|
var w = u;
|
|
114
114
|
return $(w) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
116
|
var N = u;
|
|
117
117
|
return $(N._context) + ".Provider";
|
|
118
|
-
case
|
|
118
|
+
case l:
|
|
119
119
|
return A(u, u.render, "ForwardRef");
|
|
120
120
|
case v:
|
|
121
121
|
var I = u.displayName || null;
|
|
@@ -305,7 +305,7 @@ function Xo() {
|
|
|
305
305
|
}
|
|
306
306
|
if (typeof u == "object")
|
|
307
307
|
switch (u.$$typeof) {
|
|
308
|
-
case
|
|
308
|
+
case l:
|
|
309
309
|
return Ot(u.render);
|
|
310
310
|
case v:
|
|
311
311
|
return Ce(u.type, w, N);
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
545
545
|
var N;
|
|
546
546
|
if (typeof w == "function")
|
|
547
547
|
N = w.propTypes;
|
|
548
|
-
else if (typeof w == "object" && (w.$$typeof ===
|
|
548
|
+
else if (typeof w == "object" && (w.$$typeof === l || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
w.$$typeof === v))
|
|
551
551
|
N = w.propTypes;
|
|
@@ -722,15 +722,15 @@ const Sl = ({ imageUrl: e }) => {
|
|
|
722
722
|
}, Dl = ({ imageUrl: e }) => /* @__PURE__ */ o.jsx("img", { src: e, alt: "" }), Ol = (e) => {
|
|
723
723
|
if (!/^\d{13}$/.test(e)) return !1;
|
|
724
724
|
const t = e.split("").map(Number), r = t.pop(), a = (10 - t.reduce(
|
|
725
|
-
(i, s,
|
|
725
|
+
(i, s, c) => i + s * (c % 2 === 0 ? 1 : 3),
|
|
726
726
|
0
|
|
727
727
|
) % 10) % 10;
|
|
728
728
|
return r === a;
|
|
729
729
|
}, Nl = (e, t = "") => {
|
|
730
730
|
const r = new URLSearchParams(), n = (a, i) => {
|
|
731
|
-
Object.entries(a).forEach(([s,
|
|
732
|
-
const
|
|
733
|
-
|
|
731
|
+
Object.entries(a).forEach(([s, c]) => {
|
|
732
|
+
const l = i ? `${i}[${s}]` : s;
|
|
733
|
+
c != null && (typeof c == "object" && !Array.isArray(c) ? n(c, l) : Array.isArray(c) ? c.forEach((d) => r.append(l, String(d))) : r.append(l, String(c)));
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
return n(e, t), r.toString();
|
|
@@ -765,8 +765,8 @@ function kl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"),
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH",
|
|
768
|
+
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), c = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], v = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", c).replace("mm", l).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
function _l(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
@@ -918,8 +918,8 @@ const $l = ({
|
|
|
918
918
|
sizeIcon: a,
|
|
919
919
|
id: i,
|
|
920
920
|
classIcon: s,
|
|
921
|
-
positionicon:
|
|
922
|
-
disabled:
|
|
921
|
+
positionicon: c = 1,
|
|
922
|
+
disabled: l = !1
|
|
923
923
|
}) => {
|
|
924
924
|
const d = (f) => {
|
|
925
925
|
f.stopPropagation(), t && t(f);
|
|
@@ -928,15 +928,15 @@ const $l = ({
|
|
|
928
928
|
"button",
|
|
929
929
|
{
|
|
930
930
|
id: i ?? "",
|
|
931
|
-
disabled:
|
|
931
|
+
disabled: l,
|
|
932
932
|
type: "submit",
|
|
933
933
|
onClick: (f) => d(f),
|
|
934
934
|
className: e,
|
|
935
935
|
children: [
|
|
936
936
|
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
937
|
-
s &&
|
|
937
|
+
s && c == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(Y, { size: a, classIcon: s }) }),
|
|
938
938
|
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
939
|
-
s &&
|
|
939
|
+
s && c == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(Y, { classIcon: s }) })
|
|
940
940
|
]
|
|
941
941
|
}
|
|
942
942
|
);
|
|
@@ -1038,8 +1038,8 @@ function Qn(e, t) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
var Nr = 1, pt = 1, Ga = 0, Oe = 0, oe = 0, wt = "";
|
|
1041
|
-
function Er(e, t, r, n, a, i, s,
|
|
1042
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Nr, column: pt, length: s, return: "", siblings:
|
|
1041
|
+
function Er(e, t, r, n, a, i, s, c) {
|
|
1042
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Nr, column: pt, length: s, return: "", siblings: c };
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ye(e, t) {
|
|
1045
1045
|
return tn(Er("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -1150,12 +1150,12 @@ function Di(e) {
|
|
|
1150
1150
|
function Oi(e) {
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
|
-
function hr(e, t, r, n, a, i, s,
|
|
1153
|
+
function hr(e, t, r, n, a, i, s, c, l) {
|
|
1154
1154
|
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1, b = 1, j = 1, x = 0, _ = "", S = a, D = i, E = n, C = _; b; )
|
|
1155
1155
|
switch (p = x, x = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
1157
|
if (p != 108 && se(C, v - 1) == 58) {
|
|
1158
|
-
dr(C += M(zr(x), "&", "&\f"), "&\f", Ba(d ?
|
|
1158
|
+
dr(C += M(zr(x), "&", "&\f"), "&\f", Ba(d ? c[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
@@ -1176,14 +1176,14 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1176
1176
|
switch (et()) {
|
|
1177
1177
|
case 42:
|
|
1178
1178
|
case 47:
|
|
1179
|
-
Lt(Ni(Si(Ne(), fr()), t, r,
|
|
1179
|
+
Lt(Ni(Si(Ne(), fr()), t, r, l), l);
|
|
1180
1180
|
break;
|
|
1181
1181
|
default:
|
|
1182
1182
|
C += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
1185
|
case 123 * m:
|
|
1186
|
-
|
|
1186
|
+
c[d++] = Te(C) * j;
|
|
1187
1187
|
case 125 * m:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
@@ -1192,24 +1192,24 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1192
1192
|
case 125:
|
|
1193
1193
|
b = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
j == -1 && (C = M(C, /\f/g, "")), h > 0 && Te(C) - v && Lt(h > 32 ? ea(C + ";", n, r, v - 1,
|
|
1195
|
+
j == -1 && (C = M(C, /\f/g, "")), h > 0 && Te(C) - v && Lt(h > 32 ? ea(C + ";", n, r, v - 1, l) : ea(M(C, " ", "") + ";", n, r, v - 2, l), l);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
1198
|
C += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Lt(E = Zn(C, t, r, d, f, a,
|
|
1200
|
+
if (Lt(E = Zn(C, t, r, d, f, a, c, _, S = [], D = [], v, i), i), x === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(C, t, E, E, S, i, v,
|
|
1202
|
+
hr(C, t, E, E, S, i, v, c, D);
|
|
1203
1203
|
else
|
|
1204
1204
|
switch (g === 99 && se(C, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a,
|
|
1209
|
+
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a, c, _, a, S = [], v, D), D), a, D, v, c, n ? S : D);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(C, E, E, E, [""], D, 0,
|
|
1212
|
+
hr(C, E, E, E, [""], D, 0, c, D);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
d = f = h = 0, m = j = 1, _ = C = "", v = s;
|
|
@@ -1228,7 +1228,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1228
1228
|
j = f > 0 ? 1 : (C += "\f", -1);
|
|
1229
1229
|
break;
|
|
1230
1230
|
case 44:
|
|
1231
|
-
|
|
1231
|
+
c[d++] = (Te(C) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
1234
|
et() === 45 && (C += zr(Ne())), g = et(), f = v = Te(_ = C += Di(fr())), x++;
|
|
@@ -1239,11 +1239,11 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
|
-
function Zn(e, t, r, n, a, i, s,
|
|
1242
|
+
function Zn(e, t, r, n, a, i, s, c, l, d, f, v) {
|
|
1243
1243
|
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0, b = 0, j = 0; m < n; ++m)
|
|
1244
1244
|
for (var x = 0, _ = mt(e, g + 1, g = Ba(b = s[m])), S = e; x < p; ++x)
|
|
1245
|
-
(S = Ua(b > 0 ? h[x] + " " + _ : M(_, /&\f/g, h[x]))) && (
|
|
1246
|
-
return Er(e, t, r, a === 0 ? Or :
|
|
1245
|
+
(S = Ua(b > 0 ? h[x] + " " + _ : M(_, /&\f/g, h[x]))) && (l[j++] = S);
|
|
1246
|
+
return Er(e, t, r, a === 0 ? Or : c, l, d, f, v);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
1249
1249
|
return Er(e, t, r, Va, _n(gi()), mt(e, 2, -2), 0, n);
|
|
@@ -1371,8 +1371,8 @@ function Ha(e, t, r) {
|
|
|
1371
1371
|
break;
|
|
1372
1372
|
case 5152:
|
|
1373
1373
|
case 5920:
|
|
1374
|
-
return M(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s,
|
|
1375
|
-
return H + a + ":" + i + d + (s ? H + a + "-span:" + (
|
|
1374
|
+
return M(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, c, l, d) {
|
|
1375
|
+
return H + a + ":" + i + d + (s ? H + a + "-span:" + (c ? l : +l - +i) + d : "") + e;
|
|
1376
1376
|
});
|
|
1377
1377
|
case 4949:
|
|
1378
1378
|
if (se(e, t + 6) === 121)
|
|
@@ -1419,8 +1419,8 @@ function Ei(e, t, r, n) {
|
|
|
1419
1419
|
function ki(e) {
|
|
1420
1420
|
var t = za(e);
|
|
1421
1421
|
return function(r, n, a, i) {
|
|
1422
|
-
for (var s = "",
|
|
1423
|
-
s += e[
|
|
1422
|
+
for (var s = "", c = 0; c < t; c++)
|
|
1423
|
+
s += e[c](r, n, a, i) || "";
|
|
1424
1424
|
return s;
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
@@ -1512,8 +1512,8 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1512
1512
|
try {
|
|
1513
1513
|
var i = !0;
|
|
1514
1514
|
console.error = function(s) {
|
|
1515
|
-
for (var
|
|
1516
|
-
ta.test(s) ? (i = !1, or.delete(n)) : a.apply(void 0, vt([s],
|
|
1515
|
+
for (var c = [], l = 1; l < arguments.length; l++) c[l - 1] = arguments[l];
|
|
1516
|
+
ta.test(s) ? (i = !1, or.delete(n)) : a.apply(void 0, vt([s], c, !1));
|
|
1517
1517
|
}, re(), i && !or.has(n) && (console.warn(n), or.add(n));
|
|
1518
1518
|
} catch (s) {
|
|
1519
1519
|
ta.test(s.message) && or.delete(n);
|
|
@@ -1566,12 +1566,12 @@ function ro(e, t, r) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
var a = Ui(t);
|
|
1568
1568
|
oa && (a = a.concat(oa(t)));
|
|
1569
|
-
for (var i = aa(e), s = aa(t),
|
|
1570
|
-
var
|
|
1571
|
-
if (!(
|
|
1572
|
-
var d = zi(t,
|
|
1569
|
+
for (var i = aa(e), s = aa(t), c = 0; c < a.length; ++c) {
|
|
1570
|
+
var l = a[c];
|
|
1571
|
+
if (!(l in Vi || r && r[l] || s && l in s || i && l in i)) {
|
|
1572
|
+
var d = zi(t, l);
|
|
1573
1573
|
try {
|
|
1574
|
-
Bi(e,
|
|
1574
|
+
Bi(e, l, d);
|
|
1575
1575
|
} catch {
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
@@ -1671,7 +1671,7 @@ var Xi = function() {
|
|
|
1671
1671
|
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1672
1672
|
for (var s = a; s < i; s++) this.groupSizes[s] = 0;
|
|
1673
1673
|
}
|
|
1674
|
-
for (var
|
|
1674
|
+
for (var c = this.indexOfGroup(t + 1), l = (s = 0, r.length); s < l; s++) this.tag.insertRule(c, r[s]) && (this.groupSizes[t]++, c++);
|
|
1675
1675
|
}, e.prototype.clearGroup = function(t) {
|
|
1676
1676
|
if (t < this.length) {
|
|
1677
1677
|
var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
|
|
@@ -1696,13 +1696,13 @@ var Xi = function() {
|
|
|
1696
1696
|
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
1697
1697
|
}, ts = function(e, t) {
|
|
1698
1698
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Cn), a = [], i = 0, s = n.length; i < s; i++) {
|
|
1699
|
-
var
|
|
1700
|
-
if (
|
|
1701
|
-
var
|
|
1702
|
-
if (
|
|
1703
|
-
var d = 0 | parseInt(
|
|
1704
|
-
d !== 0 && (Ji(f, d), es(e, f,
|
|
1705
|
-
} else a.push(
|
|
1699
|
+
var c = n[i].trim();
|
|
1700
|
+
if (c) {
|
|
1701
|
+
var l = c.match(Zi);
|
|
1702
|
+
if (l) {
|
|
1703
|
+
var d = 0 | parseInt(l[1], 10), f = l[2];
|
|
1704
|
+
d !== 0 && (Ji(f, d), es(e, f, l[3]), e.getTag().insertRules(d, a)), a.length = 0;
|
|
1705
|
+
} else a.push(c);
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
1708
|
}, ca = function(e) {
|
|
@@ -1715,9 +1715,9 @@ function rs() {
|
|
|
1715
1715
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1716
1716
|
}
|
|
1717
1717
|
var no = function(e) {
|
|
1718
|
-
var t = document.head, r = e || t, n = document.createElement("style"), a = function(
|
|
1719
|
-
var
|
|
1720
|
-
return
|
|
1718
|
+
var t = document.head, r = e || t, n = document.createElement("style"), a = function(c) {
|
|
1719
|
+
var l = Array.from(c.querySelectorAll("style[".concat(nt, "]")));
|
|
1720
|
+
return l[l.length - 1];
|
|
1721
1721
|
}(r), i = a !== void 0 ? a.nextSibling : null;
|
|
1722
1722
|
n.setAttribute(nt, qa), n.setAttribute(Xa, _r);
|
|
1723
1723
|
var s = rs();
|
|
@@ -1777,7 +1777,7 @@ var no = function(e) {
|
|
|
1777
1777
|
var a = this;
|
|
1778
1778
|
this.options = be(be({}, is), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Tn(this, function() {
|
|
1779
1779
|
return function(i) {
|
|
1780
|
-
for (var s = i.getTag(),
|
|
1780
|
+
for (var s = i.getTag(), c = s.length, l = "", d = function(v) {
|
|
1781
1781
|
var g = function(j) {
|
|
1782
1782
|
return xr.get(j);
|
|
1783
1783
|
}(v);
|
|
@@ -1787,9 +1787,9 @@ var no = function(e) {
|
|
|
1787
1787
|
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'), b = "";
|
|
1788
1788
|
h !== void 0 && h.forEach(function(j) {
|
|
1789
1789
|
j.length > 0 && (b += "".concat(j, ","));
|
|
1790
|
-
}),
|
|
1791
|
-
}, f = 0; f <
|
|
1792
|
-
return
|
|
1790
|
+
}), l += "".concat(p).concat(m, '{content:"').concat(b, '"}').concat(Cn);
|
|
1791
|
+
}, f = 0; f < c; f++) d(f);
|
|
1792
|
+
return l;
|
|
1793
1793
|
}(a);
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
@@ -1833,9 +1833,9 @@ function oo(e, t) {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
1835
|
function ls(e) {
|
|
1836
|
-
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i,
|
|
1836
|
+
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i, c = a.plugins, l = c === void 0 ? Cr : c, d = function(g, h, p) {
|
|
1837
1837
|
return p.startsWith(r) && p.endsWith(r) && p.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1838
|
-
}, f =
|
|
1838
|
+
}, f = l.slice();
|
|
1839
1839
|
f.push(function(g) {
|
|
1840
1840
|
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(ss, r).replace(n, d));
|
|
1841
1841
|
}), s.prefix && f.push(Ci), f.push(Ei);
|
|
@@ -1848,7 +1848,7 @@ function ls(e) {
|
|
|
1848
1848
|
return x.push(_);
|
|
1849
1849
|
})))), x;
|
|
1850
1850
|
};
|
|
1851
|
-
return v.hash =
|
|
1851
|
+
return v.hash = l.length ? l.reduce(function(g, h) {
|
|
1852
1852
|
return h.name || jt(15), Qe(g, h.name);
|
|
1853
1853
|
}, Ka).toString() : "", v;
|
|
1854
1854
|
}
|
|
@@ -1923,22 +1923,22 @@ var hs = Ja(_r), vs = function() {
|
|
|
1923
1923
|
else {
|
|
1924
1924
|
var i = sa(tt(this.rules, t, r, n)), s = on(Qe(this.baseHash, i) >>> 0);
|
|
1925
1925
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
1926
|
-
var
|
|
1927
|
-
r.insertRules(this.componentId, s,
|
|
1926
|
+
var c = n(i, ".".concat(s), void 0, this.componentId);
|
|
1927
|
+
r.insertRules(this.componentId, s, c);
|
|
1928
1928
|
}
|
|
1929
1929
|
a = Ze(a, s), this.staticRulesId = s;
|
|
1930
1930
|
}
|
|
1931
1931
|
else {
|
|
1932
|
-
for (var
|
|
1932
|
+
for (var l = Qe(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1933
1933
|
var v = this.rules[f];
|
|
1934
|
-
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (
|
|
1934
|
+
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (l = Qe(l, v));
|
|
1935
1935
|
else if (v) {
|
|
1936
1936
|
var g = sa(tt(v, t, r, n));
|
|
1937
|
-
|
|
1937
|
+
l = Qe(l, g + f), d += g;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
if (d) {
|
|
1941
|
-
var h = on(
|
|
1941
|
+
var h = on(l >>> 0);
|
|
1942
1942
|
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), a = Ze(a, h);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
@@ -1948,14 +1948,14 @@ var hs = Ja(_r), vs = function() {
|
|
|
1948
1948
|
lo.Consumer;
|
|
1949
1949
|
var qr = {}, ha = /* @__PURE__ */ new Set();
|
|
1950
1950
|
function ms(e, t, r) {
|
|
1951
|
-
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs,
|
|
1951
|
+
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, c = s === void 0 ? Cr : s, l = t.componentId, d = l === void 0 ? function(S, D) {
|
|
1952
1952
|
var E = typeof S != "string" ? "sc" : ra(S);
|
|
1953
1953
|
qr[E] = (qr[E] || 0) + 1;
|
|
1954
1954
|
var C = "".concat(E, "-").concat(Li(_r + E + qr[E]));
|
|
1955
1955
|
return D ? "".concat(D, "-").concat(C) : C;
|
|
1956
|
-
}(t.displayName, t.parentComponentId) :
|
|
1956
|
+
}(t.displayName, t.parentComponentId) : l, f = t.displayName, v = f === void 0 ? function(S) {
|
|
1957
1957
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Qa(S), ")");
|
|
1958
|
-
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(
|
|
1958
|
+
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(c).filter(Boolean) : c, p = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
1960
|
var m = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
@@ -2075,15 +2075,15 @@ const ps = Rn.div`
|
|
|
2075
2075
|
show: a,
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
|
-
},
|
|
2079
|
-
const { activeOverlayId:
|
|
2078
|
+
}, c) => {
|
|
2079
|
+
const { activeOverlayId: l, setActiveOverlay: d } = li(), [f, v] = F(a || !1), [g, h] = F(
|
|
2080
2080
|
r ?? { top: 0, left: 0 }
|
|
2081
2081
|
), p = re(null), m = Uo();
|
|
2082
|
-
Dr(
|
|
2082
|
+
Dr(c, () => ({
|
|
2083
2083
|
setCoords: h
|
|
2084
2084
|
})), q(() => {
|
|
2085
|
-
|
|
2086
|
-
}, [
|
|
2085
|
+
l !== m && v(!1);
|
|
2086
|
+
}, [l, m]), q(() => {
|
|
2087
2087
|
const x = () => {
|
|
2088
2088
|
var _;
|
|
2089
2089
|
if (!t && r)
|
|
@@ -2172,9 +2172,9 @@ const ps = Rn.div`
|
|
|
2172
2172
|
disabled: i = !1,
|
|
2173
2173
|
id: s
|
|
2174
2174
|
}) => {
|
|
2175
|
-
const
|
|
2175
|
+
const c = (p) => {
|
|
2176
2176
|
p.preventDefault(), t && t(p);
|
|
2177
|
-
},
|
|
2177
|
+
}, l = re(null), [d, f] = F(!1), v = R(
|
|
2178
2178
|
(p) => {
|
|
2179
2179
|
p.stopPropagation(), n && f(!d);
|
|
2180
2180
|
},
|
|
@@ -2205,7 +2205,7 @@ const ps = Rn.div`
|
|
|
2205
2205
|
id: s ?? "",
|
|
2206
2206
|
disabled: i,
|
|
2207
2207
|
type: "submit",
|
|
2208
|
-
onClick: (p) =>
|
|
2208
|
+
onClick: (p) => c(p),
|
|
2209
2209
|
className: ` ${e} button-actions`,
|
|
2210
2210
|
children: [
|
|
2211
2211
|
/* @__PURE__ */ o.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
@@ -2213,7 +2213,7 @@ const ps = Rn.div`
|
|
|
2213
2213
|
"span",
|
|
2214
2214
|
{
|
|
2215
2215
|
className: "ml-2",
|
|
2216
|
-
ref:
|
|
2216
|
+
ref: l,
|
|
2217
2217
|
onClick: (p) => v(p),
|
|
2218
2218
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-up" })
|
|
2219
2219
|
}
|
|
@@ -2221,13 +2221,13 @@ const ps = Rn.div`
|
|
|
2221
2221
|
]
|
|
2222
2222
|
}
|
|
2223
2223
|
),
|
|
2224
|
-
n && d &&
|
|
2224
|
+
n && d && l.current && /* @__PURE__ */ o.jsx(
|
|
2225
2225
|
An,
|
|
2226
2226
|
{
|
|
2227
2227
|
show: d,
|
|
2228
2228
|
position: a,
|
|
2229
2229
|
closeOverlay: f,
|
|
2230
|
-
referenceElement:
|
|
2230
|
+
referenceElement: l.current,
|
|
2231
2231
|
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items: g }) })
|
|
2232
2232
|
}
|
|
2233
2233
|
)
|
|
@@ -2239,9 +2239,9 @@ const ps = Rn.div`
|
|
|
2239
2239
|
buttonClassName: n,
|
|
2240
2240
|
containerClassName: a
|
|
2241
2241
|
}) => {
|
|
2242
|
-
const i = re(null), s = (
|
|
2242
|
+
const i = re(null), s = (l) => {
|
|
2243
2243
|
var f;
|
|
2244
|
-
const d = (f =
|
|
2244
|
+
const d = (f = l.target.files) == null ? void 0 : f[0];
|
|
2245
2245
|
if (d && e) {
|
|
2246
2246
|
const v = new FileReader();
|
|
2247
2247
|
v.onload = (g) => {
|
|
@@ -2250,9 +2250,9 @@ const ps = Rn.div`
|
|
|
2250
2250
|
e(d, h);
|
|
2251
2251
|
}, v.readAsArrayBuffer(d);
|
|
2252
2252
|
}
|
|
2253
|
-
},
|
|
2254
|
-
var
|
|
2255
|
-
(
|
|
2253
|
+
}, c = () => {
|
|
2254
|
+
var l;
|
|
2255
|
+
(l = i.current) == null || l.click();
|
|
2256
2256
|
};
|
|
2257
2257
|
return /* @__PURE__ */ o.jsxs("div", { className: a, children: [
|
|
2258
2258
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2268,7 +2268,7 @@ const ps = Rn.div`
|
|
|
2268
2268
|
/* @__PURE__ */ o.jsx(
|
|
2269
2269
|
xt,
|
|
2270
2270
|
{
|
|
2271
|
-
onClick:
|
|
2271
|
+
onClick: c,
|
|
2272
2272
|
className: n || "bg-green-500 hover:bg-green-600 text-white font-medium py-3 px-6 rounded-lg transition-colors duration-200",
|
|
2273
2273
|
title: r || "Choisir un fichier"
|
|
2274
2274
|
}
|
|
@@ -2282,7 +2282,7 @@ const ps = Rn.div`
|
|
|
2282
2282
|
positionOverlay: a,
|
|
2283
2283
|
setOpenActions: i
|
|
2284
2284
|
}) => {
|
|
2285
|
-
const s = re(null), [
|
|
2285
|
+
const s = re(null), [c, l] = F(
|
|
2286
2286
|
a
|
|
2287
2287
|
), d = re(null), [f, v] = F(t ?? !1);
|
|
2288
2288
|
q(() => {
|
|
@@ -2290,12 +2290,12 @@ const ps = Rn.div`
|
|
|
2290
2290
|
}, [t]);
|
|
2291
2291
|
const g = R(
|
|
2292
2292
|
(m, b) => {
|
|
2293
|
-
e.length !== 0 && (m.preventDefault(),
|
|
2293
|
+
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(b));
|
|
2294
2294
|
},
|
|
2295
|
-
[
|
|
2295
|
+
[l, i]
|
|
2296
2296
|
), h = R(() => {
|
|
2297
|
-
|
|
2298
|
-
}, [v,
|
|
2297
|
+
l(void 0), v(!1), i && i(!1);
|
|
2298
|
+
}, [v, l, i]), p = Re(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m, b) => {
|
|
2299
2299
|
let j = m.label || "";
|
|
2300
2300
|
return m.setLabel && r && (j = m.setLabel(r)), {
|
|
2301
2301
|
id: b,
|
|
@@ -2344,7 +2344,7 @@ const ps = Rn.div`
|
|
|
2344
2344
|
f && d.current && /* @__PURE__ */ o.jsx(
|
|
2345
2345
|
An,
|
|
2346
2346
|
{
|
|
2347
|
-
position:
|
|
2347
|
+
position: c,
|
|
2348
2348
|
show: f,
|
|
2349
2349
|
ref: s,
|
|
2350
2350
|
closeOverlay: h,
|
|
@@ -2362,15 +2362,15 @@ const ps = Rn.div`
|
|
|
2362
2362
|
onClose: a,
|
|
2363
2363
|
customAction: i,
|
|
2364
2364
|
positionOverlay: s,
|
|
2365
|
-
children:
|
|
2365
|
+
children: c
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const [
|
|
2367
|
+
const [l, d] = F(!1), [f, v] = F(!1), [g, h] = F(), p = (b, j) => {
|
|
2368
2368
|
b.stopPropagation(), a && a(j);
|
|
2369
2369
|
}, m = R(
|
|
2370
2370
|
(b, j) => {
|
|
2371
2371
|
if (b.stopPropagation(), f)
|
|
2372
2372
|
return h(void 0), v(!1);
|
|
2373
|
-
b.target.closest(".qte") || b.target.closest(".card-action-menu button") || b.target.closest(".card-actions") || (d(!
|
|
2373
|
+
b.target.closest(".qte") || b.target.closest(".card-action-menu button") || b.target.closest(".card-actions") || (d(!l), n && b.button !== 2 ? n(j) : (h({ top: b.clientY, left: b.clientX }), v(!0)));
|
|
2374
2374
|
},
|
|
2375
2375
|
[
|
|
2376
2376
|
d,
|
|
@@ -2378,7 +2378,7 @@ const ps = Rn.div`
|
|
|
2378
2378
|
n,
|
|
2379
2379
|
f,
|
|
2380
2380
|
v,
|
|
2381
|
-
|
|
2381
|
+
l
|
|
2382
2382
|
]
|
|
2383
2383
|
);
|
|
2384
2384
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -2386,10 +2386,10 @@ const ps = Rn.div`
|
|
|
2386
2386
|
{
|
|
2387
2387
|
onContextMenu: (b) => b.preventDefault(),
|
|
2388
2388
|
onMouseDown: (b) => m(b, e),
|
|
2389
|
-
className: `card ${r ?? ""} ${
|
|
2389
|
+
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
2390
2390
|
children: [
|
|
2391
|
-
|
|
2392
|
-
!
|
|
2391
|
+
c,
|
|
2392
|
+
!c && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2393
2393
|
/* @__PURE__ */ o.jsxs("div", { className: "card-text d-flex", children: [
|
|
2394
2394
|
e.image && /* @__PURE__ */ o.jsx("div", { className: "card-img", children: /* @__PURE__ */ o.jsx("img", { src: e.image, alt: "card-image" }) }),
|
|
2395
2395
|
e.title && /* @__PURE__ */ o.jsx("div", { className: "card-title", children: e.title }),
|
|
@@ -2433,25 +2433,25 @@ const ps = Rn.div`
|
|
|
2433
2433
|
xl: 5
|
|
2434
2434
|
}
|
|
2435
2435
|
}) => {
|
|
2436
|
-
const [a, i] = F(0), s = e.length, [
|
|
2436
|
+
const [a, i] = F(0), s = e.length, [c, l] = F(1);
|
|
2437
2437
|
q(() => {
|
|
2438
2438
|
const p = () => {
|
|
2439
2439
|
const m = window.innerWidth;
|
|
2440
2440
|
if (n.xl && m >= 1200)
|
|
2441
|
-
return
|
|
2441
|
+
return l(n.xl);
|
|
2442
2442
|
if (n.lg && m >= 992)
|
|
2443
|
-
return
|
|
2443
|
+
return l(n.lg);
|
|
2444
2444
|
if (n.md && m >= 768)
|
|
2445
|
-
return
|
|
2445
|
+
return l(n.md);
|
|
2446
2446
|
if (n.sm && m >= 576)
|
|
2447
|
-
return
|
|
2447
|
+
return l(n.sm);
|
|
2448
2448
|
};
|
|
2449
2449
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
2450
2450
|
}, [n]);
|
|
2451
2451
|
const d = R(
|
|
2452
2452
|
(p) => {
|
|
2453
2453
|
p.preventDefault(), i(
|
|
2454
|
-
(m) => Math.min(m + r, s -
|
|
2454
|
+
(m) => Math.min(m + r, s - c)
|
|
2455
2455
|
);
|
|
2456
2456
|
},
|
|
2457
2457
|
[i]
|
|
@@ -2460,7 +2460,7 @@ const ps = Rn.div`
|
|
|
2460
2460
|
p.preventDefault(), i((m) => Math.max(m - r, 0));
|
|
2461
2461
|
},
|
|
2462
2462
|
[i]
|
|
2463
|
-
), v = a + r >= s -
|
|
2463
|
+
), v = a + r >= s - c + 1, g = s <= c, h = a <= 0;
|
|
2464
2464
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2465
2465
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2466
2466
|
"div",
|
|
@@ -2476,7 +2476,7 @@ const ps = Rn.div`
|
|
|
2476
2476
|
className: "carousel-slides-wrapper",
|
|
2477
2477
|
style: {
|
|
2478
2478
|
display: "flex",
|
|
2479
|
-
transform: `translateX(-${a * 100 /
|
|
2479
|
+
transform: `translateX(-${a * 100 / c}%)`,
|
|
2480
2480
|
transition: "transform 0.5s ease-in-out"
|
|
2481
2481
|
},
|
|
2482
2482
|
children: Ae.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
|
|
@@ -2484,7 +2484,7 @@ const ps = Rn.div`
|
|
|
2484
2484
|
{
|
|
2485
2485
|
className: "carousel-slide",
|
|
2486
2486
|
style: {
|
|
2487
|
-
minWidth: `${100 /
|
|
2487
|
+
minWidth: `${100 / c}%`,
|
|
2488
2488
|
boxSizing: "border-box"
|
|
2489
2489
|
},
|
|
2490
2490
|
children: p
|
|
@@ -2513,9 +2513,9 @@ const ps = Rn.div`
|
|
|
2513
2513
|
page: n = 1,
|
|
2514
2514
|
onClick: a
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [
|
|
2516
|
+
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] = F(1);
|
|
2517
2517
|
q(() => {
|
|
2518
|
-
|
|
2518
|
+
l(n);
|
|
2519
2519
|
}, [n]);
|
|
2520
2520
|
const d = Re(() => {
|
|
2521
2521
|
const v = [];
|
|
@@ -2536,7 +2536,7 @@ const ps = Rn.div`
|
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
2538
2538
|
return v;
|
|
2539
|
-
}, [i, s,
|
|
2539
|
+
}, [i, s, c]), f = Re(
|
|
2540
2540
|
() => ({ "--rows": String(s) }),
|
|
2541
2541
|
[s]
|
|
2542
2542
|
);
|
|
@@ -2552,8 +2552,8 @@ const wr = Ue(
|
|
|
2552
2552
|
onInvalid: a,
|
|
2553
2553
|
placeholder: i,
|
|
2554
2554
|
className: s,
|
|
2555
|
-
inputMode:
|
|
2556
|
-
minLength:
|
|
2555
|
+
inputMode: c,
|
|
2556
|
+
minLength: l,
|
|
2557
2557
|
maxLength: d,
|
|
2558
2558
|
autoFocus: f = !1,
|
|
2559
2559
|
disabled: v = !1,
|
|
@@ -2576,7 +2576,7 @@ const wr = Ue(
|
|
|
2576
2576
|
ref: D,
|
|
2577
2577
|
id: e,
|
|
2578
2578
|
name: t,
|
|
2579
|
-
inputMode:
|
|
2579
|
+
inputMode: c ?? (r === "number" ? "numeric" : "text"),
|
|
2580
2580
|
type: E ? Be.TEXT : r,
|
|
2581
2581
|
spellCheck: "false",
|
|
2582
2582
|
value: n,
|
|
@@ -2587,7 +2587,7 @@ const wr = Ue(
|
|
|
2587
2587
|
step: m,
|
|
2588
2588
|
tabIndex: p,
|
|
2589
2589
|
autoFocus: f,
|
|
2590
|
-
minLength:
|
|
2590
|
+
minLength: l,
|
|
2591
2591
|
maxLength: d,
|
|
2592
2592
|
onChange: j,
|
|
2593
2593
|
checked: b,
|
|
@@ -2687,8 +2687,8 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2687
2687
|
disabled: a,
|
|
2688
2688
|
multiple: i = !1,
|
|
2689
2689
|
required: s = !1,
|
|
2690
|
-
defaultValue:
|
|
2691
|
-
name:
|
|
2690
|
+
defaultValue: c,
|
|
2691
|
+
name: l,
|
|
2692
2692
|
onChange: d,
|
|
2693
2693
|
onChangeMultiple: f,
|
|
2694
2694
|
value: v,
|
|
@@ -2710,16 +2710,16 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2710
2710
|
{
|
|
2711
2711
|
defaultValue: "",
|
|
2712
2712
|
required: s,
|
|
2713
|
-
name:
|
|
2713
|
+
name: l,
|
|
2714
2714
|
disabled: a,
|
|
2715
2715
|
id: `select-${e}`,
|
|
2716
2716
|
className: "select-container-select",
|
|
2717
|
-
value: v ??
|
|
2717
|
+
value: v ?? c ?? (i ? [] : ""),
|
|
2718
2718
|
onChange: p,
|
|
2719
2719
|
multiple: i,
|
|
2720
2720
|
ref: (b) => h.current[e ?? "select"] = b,
|
|
2721
2721
|
children: [
|
|
2722
|
-
g && !
|
|
2722
|
+
g && !c && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2723
2723
|
r.map((b, j) => /* @__PURE__ */ o.jsx("option", { value: b.value, children: b.label }, j))
|
|
2724
2724
|
]
|
|
2725
2725
|
}
|
|
@@ -2735,10 +2735,12 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2735
2735
|
)
|
|
2736
2736
|
] });
|
|
2737
2737
|
}, js = ({ column: e, idx: t, row: r }) => {
|
|
2738
|
-
|
|
2738
|
+
var s;
|
|
2739
|
+
const n = r[e.id], a = e.onRowStyle ? e.onRowStyle(r) : {}, i = ((s = e.onDisable) == null ? void 0 : s.call(e, r)) ?? !1;
|
|
2739
2740
|
return /* @__PURE__ */ o.jsx(
|
|
2740
2741
|
"td",
|
|
2741
2742
|
{
|
|
2743
|
+
className: `${i ? "disabled" : ""}`,
|
|
2742
2744
|
style: {
|
|
2743
2745
|
minWidth: e.minWidth,
|
|
2744
2746
|
textAlign: e.align || "left",
|
|
@@ -2751,8 +2753,8 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2751
2753
|
{
|
|
2752
2754
|
options: e.options ?? [],
|
|
2753
2755
|
value: n,
|
|
2754
|
-
onChange: (
|
|
2755
|
-
e.onEdit && e.onEdit(
|
|
2756
|
+
onChange: (c) => {
|
|
2757
|
+
e.onEdit && e.onEdit(c, r);
|
|
2756
2758
|
}
|
|
2757
2759
|
}
|
|
2758
2760
|
) : /* @__PURE__ */ o.jsx(
|
|
@@ -2762,8 +2764,8 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2762
2764
|
value: n,
|
|
2763
2765
|
step: "0.01",
|
|
2764
2766
|
style: { textAlign: e.align || "left" },
|
|
2765
|
-
onChange: (
|
|
2766
|
-
e.onEdit && e.onEdit(
|
|
2767
|
+
onChange: (c) => {
|
|
2768
|
+
e.onEdit && e.onEdit(c.target.value, r);
|
|
2767
2769
|
}
|
|
2768
2770
|
}
|
|
2769
2771
|
) : e.format ? e.format(n) : n
|
|
@@ -2779,8 +2781,8 @@ function Bl(e) {
|
|
|
2779
2781
|
children: a,
|
|
2780
2782
|
element: i,
|
|
2781
2783
|
data: s = [],
|
|
2782
|
-
actions:
|
|
2783
|
-
columns:
|
|
2784
|
+
actions: c = [],
|
|
2785
|
+
columns: l = [],
|
|
2784
2786
|
loading: d,
|
|
2785
2787
|
onRowClick: f,
|
|
2786
2788
|
onColumnClick: v,
|
|
@@ -2869,7 +2871,7 @@ function Bl(e) {
|
|
|
2869
2871
|
)
|
|
2870
2872
|
}
|
|
2871
2873
|
),
|
|
2872
|
-
|
|
2874
|
+
l.map((y, O) => /* @__PURE__ */ o.jsx(
|
|
2873
2875
|
xs,
|
|
2874
2876
|
{
|
|
2875
2877
|
column: y,
|
|
@@ -2878,7 +2880,7 @@ function Bl(e) {
|
|
|
2878
2880
|
},
|
|
2879
2881
|
O
|
|
2880
2882
|
)),
|
|
2881
|
-
|
|
2883
|
+
c.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2882
2884
|
"th",
|
|
2883
2885
|
{
|
|
2884
2886
|
style: {
|
|
@@ -2894,7 +2896,7 @@ function Bl(e) {
|
|
|
2894
2896
|
"td",
|
|
2895
2897
|
{
|
|
2896
2898
|
align: "center",
|
|
2897
|
-
colSpan:
|
|
2899
|
+
colSpan: l.length + (c.length > 0 ? 1 : 0),
|
|
2898
2900
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
2899
2901
|
}
|
|
2900
2902
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
@@ -2914,8 +2916,8 @@ function Bl(e) {
|
|
|
2914
2916
|
onChange: (A) => W(A, y)
|
|
2915
2917
|
}
|
|
2916
2918
|
) }),
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
+
l.map((A, $) => /* @__PURE__ */ o.jsx(js, { column: A, idx: $, row: y }, $)),
|
|
2920
|
+
c.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: c.map((A, $) => /* @__PURE__ */ o.jsx(
|
|
2919
2921
|
bs,
|
|
2920
2922
|
{
|
|
2921
2923
|
action: A,
|
|
@@ -2928,8 +2930,8 @@ function Bl(e) {
|
|
|
2928
2930
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
2929
2931
|
ws,
|
|
2930
2932
|
{
|
|
2931
|
-
columns:
|
|
2932
|
-
actions:
|
|
2933
|
+
columns: l,
|
|
2934
|
+
actions: c,
|
|
2933
2935
|
emptyMessage: h
|
|
2934
2936
|
}
|
|
2935
2937
|
)
|
|
@@ -2979,8 +2981,8 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
2979
2981
|
}), e;
|
|
2980
2982
|
};
|
|
2981
2983
|
(function(e, t) {
|
|
2982
|
-
var r = ar && ar.__awaiter || function(s,
|
|
2983
|
-
return new (
|
|
2984
|
+
var r = ar && ar.__awaiter || function(s, c, l, d) {
|
|
2985
|
+
return new (l || (l = Promise))(function(f, v) {
|
|
2984
2986
|
function g(m) {
|
|
2985
2987
|
try {
|
|
2986
2988
|
p(d.next(m));
|
|
@@ -2996,30 +2998,30 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
2996
2998
|
}
|
|
2997
2999
|
}
|
|
2998
3000
|
function p(m) {
|
|
2999
|
-
m.done ? f(m.value) : new
|
|
3001
|
+
m.done ? f(m.value) : new l(function(b) {
|
|
3000
3002
|
b(m.value);
|
|
3001
3003
|
}).then(g, h);
|
|
3002
3004
|
}
|
|
3003
|
-
p((d = d.apply(s,
|
|
3005
|
+
p((d = d.apply(s, c || [])).next());
|
|
3004
3006
|
});
|
|
3005
3007
|
}, n = ar && ar.__importDefault || function(s) {
|
|
3006
3008
|
return s && s.__esModule ? s : { default: s };
|
|
3007
3009
|
};
|
|
3008
3010
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
3009
3011
|
const a = n(Ts);
|
|
3010
|
-
function i(s,
|
|
3011
|
-
let
|
|
3012
|
+
function i(s, c = "maxAge") {
|
|
3013
|
+
let l, d, f;
|
|
3012
3014
|
const v = () => r(this, void 0, void 0, function* () {
|
|
3013
|
-
if (
|
|
3015
|
+
if (l !== void 0)
|
|
3014
3016
|
return;
|
|
3015
3017
|
const p = (m) => r(this, void 0, void 0, function* () {
|
|
3016
3018
|
f = a.default();
|
|
3017
|
-
const b = m[1][
|
|
3019
|
+
const b = m[1][c] - Date.now();
|
|
3018
3020
|
if (b <= 0) {
|
|
3019
3021
|
s.delete(m[0]), f.resolve();
|
|
3020
3022
|
return;
|
|
3021
3023
|
}
|
|
3022
|
-
return
|
|
3024
|
+
return l = m[0], d = setTimeout(() => {
|
|
3023
3025
|
s.delete(m[0]), f && f.resolve();
|
|
3024
3026
|
}, b), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3025
3027
|
});
|
|
@@ -3028,14 +3030,14 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3028
3030
|
yield p(m);
|
|
3029
3031
|
} catch {
|
|
3030
3032
|
}
|
|
3031
|
-
|
|
3033
|
+
l = void 0;
|
|
3032
3034
|
}), g = () => {
|
|
3033
|
-
|
|
3035
|
+
l = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3034
3036
|
}, h = s.set.bind(s);
|
|
3035
3037
|
return s.set = (p, m) => {
|
|
3036
3038
|
s.has(p) && s.delete(p);
|
|
3037
3039
|
const b = h(p, m);
|
|
3038
|
-
return
|
|
3040
|
+
return l && l === p && g(), v(), b;
|
|
3039
3041
|
}, v(), s;
|
|
3040
3042
|
}
|
|
3041
3043
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3044,14 +3046,14 @@ var Rs = un.exports;
|
|
|
3044
3046
|
const As = Ps, Is = Rs, Xr = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), jr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
|
|
3045
3047
|
typeof n == "number" && Is(r);
|
|
3046
3048
|
const a = function(...i) {
|
|
3047
|
-
const s = t ? t(i) : i[0],
|
|
3048
|
-
if (
|
|
3049
|
-
return
|
|
3050
|
-
const
|
|
3049
|
+
const s = t ? t(i) : i[0], c = r.get(s);
|
|
3050
|
+
if (c)
|
|
3051
|
+
return c.data;
|
|
3052
|
+
const l = e.apply(this, i);
|
|
3051
3053
|
return r.set(s, {
|
|
3052
|
-
data:
|
|
3054
|
+
data: l,
|
|
3053
3055
|
maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
|
|
3054
|
-
}),
|
|
3056
|
+
}), l;
|
|
3055
3057
|
};
|
|
3056
3058
|
return As(a, e, {
|
|
3057
3059
|
ignoreNonConfigurable: !0
|
|
@@ -3106,18 +3108,18 @@ function dn(e) {
|
|
|
3106
3108
|
}
|
|
3107
3109
|
if (e.indexOf("-") === -1 || !Fs(e))
|
|
3108
3110
|
return e;
|
|
3109
|
-
var a = e.split("-"), i = a[0], s = a[1],
|
|
3110
|
-
return "".concat(i, "-").concat(
|
|
3111
|
+
var a = e.split("-"), i = a[0], s = a[1], c = s === void 0 ? "" : s;
|
|
3112
|
+
return "".concat(i, "-").concat(c.toUpperCase());
|
|
3111
3113
|
}
|
|
3112
3114
|
function Ws(e) {
|
|
3113
3115
|
var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, i = a === void 0 ? "en-US" : a, s = [];
|
|
3114
3116
|
if (typeof navigator < "u") {
|
|
3115
|
-
for (var
|
|
3117
|
+
for (var c = navigator.languages || [], l = [], d = 0, f = c; d < f.length; d++) {
|
|
3116
3118
|
var v = f[d];
|
|
3117
|
-
|
|
3119
|
+
l = l.concat(ga(v));
|
|
3118
3120
|
}
|
|
3119
3121
|
var g = navigator.language, h = g && ga(g);
|
|
3120
|
-
s = s.concat(
|
|
3122
|
+
s = s.concat(l, h);
|
|
3121
3123
|
}
|
|
3122
3124
|
return n && s.push(i), s.filter(Ms).map(dn).filter(Ls);
|
|
3123
3125
|
}
|
|
@@ -3181,8 +3183,8 @@ var jo = Fe(Q, Dt, -1), Mn = Fe(Q, Dt, 1), Ar = Bt(Mn), So = Fe(Q, Ar, -1), zs =
|
|
|
3181
3183
|
function Ln(e, t) {
|
|
3182
3184
|
return function(n, a) {
|
|
3183
3185
|
a === void 0 && (a = t);
|
|
3184
|
-
var i = Q(n), s = ze(n) + a,
|
|
3185
|
-
return
|
|
3186
|
+
var i = Q(n), s = ze(n) + a, c = /* @__PURE__ */ new Date();
|
|
3187
|
+
return c.setFullYear(i, s, 1), c.setHours(0, 0, 0, 0), e(c);
|
|
3186
3188
|
};
|
|
3187
3189
|
}
|
|
3188
3190
|
function at(e) {
|
|
@@ -3193,8 +3195,8 @@ var Do = Ln(at, -1), Fn = Ln(at, 1), zt = Bt(Fn), Oo = Ln(zt, -1), Gs = Ut(at, z
|
|
|
3193
3195
|
function Hs(e, t) {
|
|
3194
3196
|
return function(n, a) {
|
|
3195
3197
|
a === void 0 && (a = t);
|
|
3196
|
-
var i = Q(n), s = ze(n),
|
|
3197
|
-
return
|
|
3198
|
+
var i = Q(n), s = ze(n), c = Tr(n) + a, l = /* @__PURE__ */ new Date();
|
|
3199
|
+
return l.setFullYear(i, s, c), l.setHours(0, 0, 0, 0), e(l);
|
|
3198
3200
|
};
|
|
3199
3201
|
}
|
|
3200
3202
|
function Gt(e) {
|
|
@@ -3479,7 +3481,7 @@ function To(e, t) {
|
|
|
3479
3481
|
}
|
|
3480
3482
|
var Pe = "react-calendar__navigation";
|
|
3481
3483
|
function Dc(e) {
|
|
3482
|
-
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,
|
|
3484
|
+
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, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, b = e.next2Label, j = b === void 0 ? "»" : b, x = e.nextAriaLabel, _ = x === void 0 ? "" : x, S = e.nextLabel, D = S === void 0 ? "›" : S, E = e.prev2AriaLabel, C = E === void 0 ? "" : E, W = e.prev2Label, y = W === void 0 ? "«" : W, O = e.prevAriaLabel, A = O === void 0 ? "" : O, $ = e.prevLabel, L = $ === void 0 ? "‹" : $, X = e.setActiveStartDate, ve = e.showDoubleView, ne = e.view, xe = e.views, Ie = xe.indexOf(ne) > 0, ee = ne !== "century", K = pc(ne, t), ce = ee ? gc(ne, t) : void 0, Z = ko(ne, t), Se = ee ? yc(ne, t) : void 0, Ee = function() {
|
|
3483
3485
|
if (K.getFullYear() < 0)
|
|
3484
3486
|
return !0;
|
|
3485
3487
|
var te = bc(ne, t);
|
|
@@ -3489,7 +3491,7 @@ function Dc(e) {
|
|
|
3489
3491
|
return !0;
|
|
3490
3492
|
var te = xc(ne, t);
|
|
3491
3493
|
return d && d >= te;
|
|
3492
|
-
}(), me =
|
|
3494
|
+
}(), me = l && l < Z, pe = ee && l && l < Se;
|
|
3493
3495
|
function le() {
|
|
3494
3496
|
X(K, "prev");
|
|
3495
3497
|
}
|
|
@@ -3506,13 +3508,13 @@ function Dc(e) {
|
|
|
3506
3508
|
var Ce = function() {
|
|
3507
3509
|
switch (ne) {
|
|
3508
3510
|
case "century":
|
|
3509
|
-
return jc(
|
|
3511
|
+
return jc(c, s, te);
|
|
3510
3512
|
case "decade":
|
|
3511
|
-
return Po(
|
|
3513
|
+
return Po(c, s, te);
|
|
3512
3514
|
case "year":
|
|
3513
|
-
return s(
|
|
3515
|
+
return s(c, te);
|
|
3514
3516
|
case "month":
|
|
3515
|
-
return a(
|
|
3517
|
+
return a(c, te);
|
|
3516
3518
|
default:
|
|
3517
3519
|
throw new Error("Invalid view: ".concat(ne, "."));
|
|
3518
3520
|
}
|
|
@@ -3520,7 +3522,7 @@ function Dc(e) {
|
|
|
3520
3522
|
return h ? h({
|
|
3521
3523
|
date: te,
|
|
3522
3524
|
label: Ce,
|
|
3523
|
-
locale:
|
|
3525
|
+
locale: c || po() || void 0,
|
|
3524
3526
|
view: ne
|
|
3525
3527
|
}) : Ce;
|
|
3526
3528
|
}
|
|
@@ -3550,8 +3552,8 @@ function xa(e) {
|
|
|
3550
3552
|
return "".concat(e, "%");
|
|
3551
3553
|
}
|
|
3552
3554
|
function Yn(e) {
|
|
3553
|
-
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style,
|
|
3554
|
-
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap:
|
|
3555
|
+
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, c = e.wrap, l = Oc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3556
|
+
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap: c ? "wrap" : "nowrap" }, s) }, l, { children: zo.map(t, function(d, f) {
|
|
3555
3557
|
var v = i && f === 0 ? xa(100 * i / n) : null;
|
|
3556
3558
|
return Go(d, ft(ft({}, d.props), { style: {
|
|
3557
3559
|
flexBasis: xa(100 / n),
|
|
@@ -3594,7 +3596,7 @@ function _c(e) {
|
|
|
3594
3596
|
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", i = [a];
|
|
3595
3597
|
if (!r)
|
|
3596
3598
|
return i;
|
|
3597
|
-
var s = /* @__PURE__ */ new Date(),
|
|
3599
|
+
var s = /* @__PURE__ */ new Date(), c = function() {
|
|
3598
3600
|
if (Array.isArray(r))
|
|
3599
3601
|
return r;
|
|
3600
3602
|
var h = e.dateType;
|
|
@@ -3602,9 +3604,9 @@ function _c(e) {
|
|
|
3602
3604
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
3603
3605
|
return ba(h, r);
|
|
3604
3606
|
}();
|
|
3605
|
-
if (Yt(s,
|
|
3607
|
+
if (Yt(s, c) && i.push("".concat(a, "--now")), !t || !kc(t))
|
|
3606
3608
|
return i;
|
|
3607
|
-
var
|
|
3609
|
+
var l = function() {
|
|
3608
3610
|
if (Array.isArray(t))
|
|
3609
3611
|
return t;
|
|
3610
3612
|
var h = e.valueType;
|
|
@@ -3612,41 +3614,41 @@ function _c(e) {
|
|
|
3612
3614
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
3613
3615
|
return ba(h, t);
|
|
3614
3616
|
}();
|
|
3615
|
-
Ec(
|
|
3616
|
-
var d = wa(
|
|
3617
|
+
Ec(l, c) ? i.push("".concat(a, "--active")) : Ro(l, c) && i.push("".concat(a, "--hasActive"));
|
|
3618
|
+
var d = wa(l, c, "".concat(a, "--range"));
|
|
3617
3619
|
i.push.apply(i, d);
|
|
3618
3620
|
var f = Array.isArray(t) ? t : [t];
|
|
3619
3621
|
if (n && f.length === 1) {
|
|
3620
|
-
var v = n >
|
|
3622
|
+
var v = n > l[0] ? [l[0], n] : [n, l[0]], g = wa(v, c, "".concat(a, "--hover"));
|
|
3621
3623
|
i.push.apply(i, g);
|
|
3622
3624
|
}
|
|
3623
3625
|
return i;
|
|
3624
3626
|
}
|
|
3625
3627
|
function $r(e) {
|
|
3626
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end,
|
|
3628
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, c = e.hover, l = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, p = e.valueType, m = [], b = f; b <= s; b += g) {
|
|
3627
3629
|
var j = a(b);
|
|
3628
3630
|
m.push(d({
|
|
3629
3631
|
classes: _c({
|
|
3630
3632
|
date: j,
|
|
3631
3633
|
dateType: i,
|
|
3632
|
-
hover:
|
|
3634
|
+
hover: c,
|
|
3633
3635
|
value: h,
|
|
3634
3636
|
valueType: p
|
|
3635
3637
|
}),
|
|
3636
3638
|
date: j
|
|
3637
3639
|
}));
|
|
3638
3640
|
}
|
|
3639
|
-
return o.jsx(Yn, { className: t, count: n, offset:
|
|
3641
|
+
return o.jsx(Yn, { className: t, count: n, offset: l, wrap: !0, children: m });
|
|
3640
3642
|
}
|
|
3641
3643
|
function Mr(e) {
|
|
3642
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale,
|
|
3644
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, c = e.maxDate, l = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, m = e.tileContent, b = e.tileDisabled, j = e.view, x = Re(function() {
|
|
3643
3645
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3644
3646
|
return typeof p == "function" ? p(S) : p;
|
|
3645
3647
|
}, [t, a, p, j]), _ = Re(function() {
|
|
3646
3648
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3647
3649
|
return typeof m == "function" ? m(S) : m;
|
|
3648
3650
|
}, [t, a, m, j]);
|
|
3649
|
-
return o.jsxs("button", { className: Pr(n, x), disabled: d && f(d) > a ||
|
|
3651
|
+
return o.jsxs("button", { className: Pr(n, x), disabled: d && f(d) > a || c && l(c) < a || (b == null ? void 0 : b({ activeStartDate: t, date: a, view: j })), onClick: v ? function(S) {
|
|
3650
3652
|
return v(a, S);
|
|
3651
3653
|
} : void 0, onFocus: g ? function() {
|
|
3652
3654
|
return g(a);
|
|
@@ -3671,8 +3673,8 @@ var hn = function() {
|
|
|
3671
3673
|
return r;
|
|
3672
3674
|
}, ja = "react-calendar__century-view__decades__decade";
|
|
3673
3675
|
function Pc(e) {
|
|
3674
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = Cc(e, ["classes", "currentCentury", "formatYear"]),
|
|
3675
|
-
return r && d.push.apply(d, r), d.push(ja), St(
|
|
3676
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = Cc(e, ["classes", "currentCentury", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3677
|
+
return r && d.push.apply(d, r), d.push(ja), St(c).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ge, view: "century", children: Po(l, i, c) }));
|
|
3676
3678
|
}
|
|
3677
3679
|
var vn = function() {
|
|
3678
3680
|
return vn = Object.assign || function(e) {
|
|
@@ -3691,11 +3693,11 @@ var vn = function() {
|
|
|
3691
3693
|
return r;
|
|
3692
3694
|
};
|
|
3693
3695
|
function Tc(e) {
|
|
3694
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]),
|
|
3695
|
-
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end:
|
|
3696
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), c = hc(t), l = c + (n ? 119 : 99);
|
|
3697
|
+
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: l, hover: r, renderTile: function(d) {
|
|
3696
3698
|
var f = d.date, v = Sa(d, ["date"]);
|
|
3697
|
-
return o.jsx(Pc, vn({}, s, v, { activeStartDate: t, currentCentury:
|
|
3698
|
-
}, start:
|
|
3699
|
+
return o.jsx(Pc, vn({}, s, v, { activeStartDate: t, currentCentury: c, date: f }), f.getTime());
|
|
3700
|
+
}, start: c, step: 10, value: a, valueType: i });
|
|
3699
3701
|
}
|
|
3700
3702
|
var mn = function() {
|
|
3701
3703
|
return mn = Object.assign || function(e) {
|
|
@@ -3729,8 +3731,8 @@ var pn = function() {
|
|
|
3729
3731
|
return r;
|
|
3730
3732
|
}, Da = "react-calendar__decade-view__years__year";
|
|
3731
3733
|
function Ic(e) {
|
|
3732
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Ac(e, ["classes", "currentDecade", "formatYear"]),
|
|
3733
|
-
return r && d.push.apply(d, r), d.push(Da), Ge(
|
|
3734
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Ac(e, ["classes", "currentDecade", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3735
|
+
return r && d.push.apply(d, r), d.push(Da), Ge(c).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(Mr, pn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: Dt, view: "decade", children: i(l, c) }));
|
|
3734
3736
|
}
|
|
3735
3737
|
var gn = function() {
|
|
3736
3738
|
return gn = Object.assign || function(e) {
|
|
@@ -3749,11 +3751,11 @@ var gn = function() {
|
|
|
3749
3751
|
return r;
|
|
3750
3752
|
};
|
|
3751
3753
|
function $c(e) {
|
|
3752
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]),
|
|
3753
|
-
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end:
|
|
3754
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), c = vc(t), l = c + (n ? 11 : 9);
|
|
3755
|
+
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end: l, hover: r, renderTile: function(d) {
|
|
3754
3756
|
var f = d.date, v = Oa(d, ["date"]);
|
|
3755
|
-
return o.jsx(Ic, gn({}, s, v, { activeStartDate: t, currentDecade:
|
|
3756
|
-
}, start:
|
|
3757
|
+
return o.jsx(Ic, gn({}, s, v, { activeStartDate: t, currentDecade: c, date: f }), f.getTime());
|
|
3758
|
+
}, start: c, value: a, valueType: i });
|
|
3757
3759
|
}
|
|
3758
3760
|
var yn = function() {
|
|
3759
3761
|
return yn = Object.assign || function(e) {
|
|
@@ -3791,8 +3793,8 @@ var bn = function() {
|
|
|
3791
3793
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3792
3794
|
}, Fc = "react-calendar__year-view__months__month";
|
|
3793
3795
|
function Wc(e) {
|
|
3794
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i,
|
|
3795
|
-
return o.jsx(Mr, bn({},
|
|
3796
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, c = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), l = c.date, d = c.locale;
|
|
3797
|
+
return o.jsx(Mr, bn({}, c, { classes: Na(Na([], r, !0), [Fc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: at, view: "year", children: a(d, l) }));
|
|
3796
3798
|
}
|
|
3797
3799
|
var xn = function() {
|
|
3798
3800
|
return xn = Object.assign || function(e) {
|
|
@@ -3811,11 +3813,11 @@ var xn = function() {
|
|
|
3811
3813
|
return r;
|
|
3812
3814
|
};
|
|
3813
3815
|
function Vc(e) {
|
|
3814
|
-
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0,
|
|
3816
|
+
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, c = 11, l = Q(t);
|
|
3815
3817
|
return o.jsx($r, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
3816
3818
|
var f = /* @__PURE__ */ new Date();
|
|
3817
|
-
return f.setFullYear(
|
|
3818
|
-
}, dateType: "month", end:
|
|
3819
|
+
return f.setFullYear(l, d, 1), at(f);
|
|
3820
|
+
}, dateType: "month", end: c, hover: r, renderTile: function(d) {
|
|
3819
3821
|
var f = d.date, v = Ea(d, ["date"]);
|
|
3820
3822
|
return o.jsx(Wc, xn({}, i, v, { activeStartDate: t, date: f }), f.getTime());
|
|
3821
3823
|
}, start: s, value: n, valueType: a });
|
|
@@ -3852,8 +3854,8 @@ var jn = function() {
|
|
|
3852
3854
|
return r;
|
|
3853
3855
|
}, Jr = "react-calendar__month-view__days__day";
|
|
3854
3856
|
function Uc(e) {
|
|
3855
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i,
|
|
3856
|
-
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr:
|
|
3857
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, c = e.formatLongDate, l = c === void 0 ? sc : c, d = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, v = d.locale, g = [];
|
|
3858
|
+
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: l, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(v, f) }));
|
|
3857
3859
|
}
|
|
3858
3860
|
var Sn = function() {
|
|
3859
3861
|
return Sn = Object.assign || function(e) {
|
|
@@ -3872,7 +3874,7 @@ var Sn = function() {
|
|
|
3872
3874
|
return r;
|
|
3873
3875
|
};
|
|
3874
3876
|
function zc(e) {
|
|
3875
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value,
|
|
3877
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, c = e.valueType, l = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Q(t), f = ze(t), v = a || i, g = Vt(t, r), h = v ? 0 : g, p = (v ? -g : 0) + 1, m = function() {
|
|
3876
3878
|
if (a)
|
|
3877
3879
|
return p + 6 * 7 - 1;
|
|
3878
3880
|
var b = No(t);
|
|
@@ -3889,16 +3891,16 @@ function zc(e) {
|
|
|
3889
3891
|
return j.setFullYear(d, f, b), Gt(j);
|
|
3890
3892
|
}, dateType: "day", hover: n, end: m, renderTile: function(b) {
|
|
3891
3893
|
var j = b.date, x = ka(b, ["date"]);
|
|
3892
|
-
return o.jsx(Uc, Sn({},
|
|
3893
|
-
}, offset: h, start: p, value: s, valueType:
|
|
3894
|
+
return o.jsx(Uc, Sn({}, l, x, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
3895
|
+
}, offset: h, start: p, value: s, valueType: c });
|
|
3894
3896
|
}
|
|
3895
3897
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
3896
3898
|
function Gc(e) {
|
|
3897
|
-
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,
|
|
3899
|
+
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, c = e.onMouseLeave, l = /* @__PURE__ */ new Date(), d = at(l), f = Q(d), v = ze(d), g = [], h = 1; h <= 7; h += 1) {
|
|
3898
3900
|
var p = new Date(f, v, h - Vt(d, t)), m = i(s, p);
|
|
3899
3901
|
g.push(o.jsx("div", { className: Pr(Qr, Sc(p) && "".concat(Qr, "--current"), To(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, p).replace(".", "") }) }, h));
|
|
3900
3902
|
}
|
|
3901
|
-
return o.jsx(Yn, { className: Ao, count: 7, onFocus:
|
|
3903
|
+
return o.jsx(Yn, { className: Ao, count: 7, onFocus: c, onMouseOver: c, children: g });
|
|
3902
3904
|
}
|
|
3903
3905
|
var Sr = function() {
|
|
3904
3906
|
return Sr = Object.assign || function(e) {
|
|
@@ -3919,14 +3921,14 @@ var Sr = function() {
|
|
|
3919
3921
|
function Hc(e) {
|
|
3920
3922
|
var t = e.onClickWeekNumber, r = e.weekNumber, n = o.jsx("span", { children: r });
|
|
3921
3923
|
if (t) {
|
|
3922
|
-
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber,
|
|
3923
|
-
return o.jsx("button", Sr({},
|
|
3924
|
-
return i(s, a,
|
|
3924
|
+
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, c = _a(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3925
|
+
return o.jsx("button", Sr({}, c, { className: Ca, onClick: function(l) {
|
|
3926
|
+
return i(s, a, l);
|
|
3925
3927
|
}, type: "button", children: n }));
|
|
3926
3928
|
} else {
|
|
3927
3929
|
e.date, e.onClickWeekNumber, e.weekNumber;
|
|
3928
|
-
var
|
|
3929
|
-
return o.jsx("div", Sr({},
|
|
3930
|
+
var c = _a(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3931
|
+
return o.jsx("div", Sr({}, c, { className: Ca, children: n }));
|
|
3930
3932
|
}
|
|
3931
3933
|
}
|
|
3932
3934
|
function qc(e) {
|
|
@@ -3935,15 +3937,15 @@ function qc(e) {
|
|
|
3935
3937
|
return 6;
|
|
3936
3938
|
var d = No(t), f = Vt(t, r), v = d - (7 - f);
|
|
3937
3939
|
return 1 + Math.ceil(v / 7);
|
|
3938
|
-
}(),
|
|
3940
|
+
}(), c = function() {
|
|
3939
3941
|
for (var d = Q(t), f = ze(t), v = Tr(t), g = [], h = 0; h < s; h += 1)
|
|
3940
3942
|
g.push(fn(new Date(d, f, v + h * 7), r));
|
|
3941
3943
|
return g;
|
|
3942
|
-
}(),
|
|
3944
|
+
}(), l = c.map(function(d) {
|
|
3943
3945
|
return mc(d, r);
|
|
3944
3946
|
});
|
|
3945
|
-
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children:
|
|
3946
|
-
var v =
|
|
3947
|
+
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: l.map(function(d, f) {
|
|
3948
|
+
var v = c[f];
|
|
3947
3949
|
if (!v)
|
|
3948
3950
|
throw new Error("date is not defined");
|
|
3949
3951
|
return o.jsx(Hc, { date: v, onClickWeekNumber: n, weekNumber: d }, d);
|
|
@@ -3975,9 +3977,9 @@ function Kc(e) {
|
|
|
3975
3977
|
return de.ISO_8601;
|
|
3976
3978
|
}
|
|
3977
3979
|
function Jc(e) {
|
|
3978
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i,
|
|
3980
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i, c = e.formatShortWeekday, l = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, v = Xc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
3979
3981
|
function g() {
|
|
3980
|
-
return o.jsx(Gc, { calendarType: s, formatShortWeekday:
|
|
3982
|
+
return o.jsx(Gc, { calendarType: s, formatShortWeekday: c, formatWeekday: l, locale: r, onMouseLeave: n });
|
|
3981
3983
|
}
|
|
3982
3984
|
function h() {
|
|
3983
3985
|
return f ? o.jsx(qc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
@@ -4036,17 +4038,17 @@ function Mo(e, t) {
|
|
|
4036
4038
|
var r = e.value, n = e.minDate, a = e.maxDate, i = e.maxDetail, s = tl(r, t);
|
|
4037
4039
|
if (!s)
|
|
4038
4040
|
return null;
|
|
4039
|
-
var
|
|
4041
|
+
var c = $o(i), l = function() {
|
|
4040
4042
|
switch (t) {
|
|
4041
4043
|
case 0:
|
|
4042
|
-
return rt(
|
|
4044
|
+
return rt(c, s);
|
|
4043
4045
|
case 1:
|
|
4044
|
-
return _o(
|
|
4046
|
+
return _o(c, s);
|
|
4045
4047
|
default:
|
|
4046
4048
|
throw new Error("Invalid index value: ".concat(t));
|
|
4047
4049
|
}
|
|
4048
4050
|
}();
|
|
4049
|
-
return Nc(
|
|
4051
|
+
return Nc(l, n, a);
|
|
4050
4052
|
}
|
|
4051
4053
|
var zn = function(e) {
|
|
4052
4054
|
return Mo(e, 0);
|
|
@@ -4058,21 +4060,21 @@ var zn = function(e) {
|
|
|
4058
4060
|
});
|
|
4059
4061
|
};
|
|
4060
4062
|
function Fo(e) {
|
|
4061
|
-
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view,
|
|
4063
|
+
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view, c = Un(s, a, r), l = zn({
|
|
4062
4064
|
value: i,
|
|
4063
4065
|
minDate: n,
|
|
4064
4066
|
maxDate: t,
|
|
4065
4067
|
maxDetail: r
|
|
4066
4068
|
}) || /* @__PURE__ */ new Date();
|
|
4067
|
-
return rt(
|
|
4069
|
+
return rt(c, l);
|
|
4068
4070
|
}
|
|
4069
4071
|
function nl(e) {
|
|
4070
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail,
|
|
4072
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, c = e.minDate, l = e.minDetail, d = e.value, f = e.view, v = Un(f, l, s), g = t || r;
|
|
4071
4073
|
return g ? rt(v, g) : Fo({
|
|
4072
4074
|
maxDate: i,
|
|
4073
4075
|
maxDetail: s,
|
|
4074
|
-
minDate:
|
|
4075
|
-
minDetail:
|
|
4076
|
+
minDate: c,
|
|
4077
|
+
minDetail: l,
|
|
4076
4078
|
value: d || n,
|
|
4077
4079
|
view: f || a
|
|
4078
4080
|
});
|
|
@@ -4084,12 +4086,12 @@ function ur(e, t) {
|
|
|
4084
4086
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4085
4087
|
}
|
|
4086
4088
|
var al = Ue(function(t, r) {
|
|
4087
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className,
|
|
4089
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, c = t.defaultActiveStartDate, l = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, b = t.formatYear, j = t.goToRangeStartOnSelect, x = j === void 0 ? !0 : j, _ = t.inputRef, S = t.locale, D = t.maxDate, E = D === void 0 ? Zc : D, C = t.maxDetail, W = C === void 0 ? "month" : C, y = t.minDate, O = y === void 0 ? Bn : y, A = t.minDetail, $ = A === void 0 ? "century" : A, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, ne = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ae = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, ie = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(c), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(l) ? l.map(function(k) {
|
|
4088
4090
|
return k !== null ? Ft(k) : null;
|
|
4089
|
-
}) :
|
|
4091
|
+
}) : l != null ? Ft(l) : null), Xe = er[0], tr = er[1], $e = F(d), _t = $e[0], ct = $e[1], ue = n || Yr || nl({
|
|
4090
4092
|
activeStartDate: n,
|
|
4091
|
-
defaultActiveStartDate:
|
|
4092
|
-
defaultValue:
|
|
4093
|
+
defaultActiveStartDate: c,
|
|
4094
|
+
defaultValue: l,
|
|
4093
4095
|
defaultView: d,
|
|
4094
4096
|
maxDate: E,
|
|
4095
4097
|
maxDetail: W,
|
|
@@ -4319,13 +4321,13 @@ const Ul = ({
|
|
|
4319
4321
|
maxDate: r,
|
|
4320
4322
|
children: n
|
|
4321
4323
|
}) => {
|
|
4322
|
-
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s,
|
|
4324
|
+
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, c] = F(!1), l = re(null), d = R(
|
|
4323
4325
|
(m) => {
|
|
4324
|
-
i(m), t && t(m),
|
|
4326
|
+
i(m), t && t(m), c(!1);
|
|
4325
4327
|
},
|
|
4326
4328
|
[t]
|
|
4327
|
-
), f = () =>
|
|
4328
|
-
|
|
4329
|
+
), f = () => c(!s), v = R((m) => {
|
|
4330
|
+
l.current && !l.current.contains(m.target) && c(!1);
|
|
4329
4331
|
}, []);
|
|
4330
4332
|
q(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
4331
4333
|
document.removeEventListener("mousedown", v);
|
|
@@ -4335,7 +4337,7 @@ const Ul = ({
|
|
|
4335
4337
|
}) => {
|
|
4336
4338
|
h(m);
|
|
4337
4339
|
};
|
|
4338
|
-
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref:
|
|
4340
|
+
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: l, children: [
|
|
4339
4341
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4340
4342
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4341
4343
|
Y,
|
|
@@ -4348,7 +4350,7 @@ const Ul = ({
|
|
|
4348
4350
|
/* @__PURE__ */ o.jsx(
|
|
4349
4351
|
"div",
|
|
4350
4352
|
{
|
|
4351
|
-
onClick: () =>
|
|
4353
|
+
onClick: () => c(!1),
|
|
4352
4354
|
className: "calendar-popup-close",
|
|
4353
4355
|
children: /* @__PURE__ */ o.jsx(
|
|
4354
4356
|
Y,
|
|
@@ -4388,16 +4390,16 @@ const Ul = ({
|
|
|
4388
4390
|
q(() => {
|
|
4389
4391
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4390
4392
|
}, [e, s, t]);
|
|
4391
|
-
const
|
|
4392
|
-
(
|
|
4393
|
-
|
|
4393
|
+
const c = R(
|
|
4394
|
+
(l) => {
|
|
4395
|
+
l.stopPropagation(), a && a(t);
|
|
4394
4396
|
},
|
|
4395
4397
|
[a, t]
|
|
4396
4398
|
);
|
|
4397
4399
|
return /* @__PURE__ */ o.jsxs(
|
|
4398
4400
|
"div",
|
|
4399
4401
|
{
|
|
4400
|
-
onClick:
|
|
4402
|
+
onClick: c,
|
|
4401
4403
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4402
4404
|
children: [
|
|
4403
4405
|
/* @__PURE__ */ o.jsx("div", { className: "expand-header", children: /* @__PURE__ */ o.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ o.jsxs("div", { className: "expand-header-content-default", children: [
|
|
@@ -4460,7 +4462,7 @@ const Ul = ({
|
|
|
4460
4462
|
"a",
|
|
4461
4463
|
{
|
|
4462
4464
|
href: i.url || "#",
|
|
4463
|
-
onClick: (
|
|
4465
|
+
onClick: (c) => a(c, i),
|
|
4464
4466
|
children: i.title
|
|
4465
4467
|
}
|
|
4466
4468
|
),
|
|
@@ -4478,8 +4480,8 @@ const Ul = ({
|
|
|
4478
4480
|
width: a,
|
|
4479
4481
|
className: i,
|
|
4480
4482
|
onChange: s,
|
|
4481
|
-
placeholder:
|
|
4482
|
-
cols:
|
|
4483
|
+
placeholder: c,
|
|
4484
|
+
cols: l,
|
|
4483
4485
|
rows: d,
|
|
4484
4486
|
required: f = !1
|
|
4485
4487
|
}) => {
|
|
@@ -4504,8 +4506,8 @@ const Ul = ({
|
|
|
4504
4506
|
disabled: n,
|
|
4505
4507
|
value: v,
|
|
4506
4508
|
onChange: h,
|
|
4507
|
-
placeholder:
|
|
4508
|
-
cols:
|
|
4509
|
+
placeholder: c,
|
|
4510
|
+
cols: l,
|
|
4509
4511
|
rows: d,
|
|
4510
4512
|
required: f
|
|
4511
4513
|
}
|
|
@@ -4519,11 +4521,11 @@ const Ul = ({
|
|
|
4519
4521
|
children: a,
|
|
4520
4522
|
autoComplete: i,
|
|
4521
4523
|
onChange: s,
|
|
4522
|
-
hideSubmit:
|
|
4523
|
-
disabledSubmit:
|
|
4524
|
+
hideSubmit: c,
|
|
4525
|
+
disabledSubmit: l = !1,
|
|
4524
4526
|
className: d
|
|
4525
4527
|
}, f) => {
|
|
4526
|
-
const [v, g] = F(
|
|
4528
|
+
const [v, g] = F(l), [h, p] = F(() => {
|
|
4527
4529
|
const y = {};
|
|
4528
4530
|
return e.forEach((O) => {
|
|
4529
4531
|
y[O.name] = O.value ?? "";
|
|
@@ -4661,7 +4663,7 @@ const Ul = ({
|
|
|
4661
4663
|
}),
|
|
4662
4664
|
a
|
|
4663
4665
|
] }),
|
|
4664
|
-
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end form-footer", children: !
|
|
4666
|
+
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end form-footer", children: !c && /* @__PURE__ */ o.jsx(
|
|
4665
4667
|
xt,
|
|
4666
4668
|
{
|
|
4667
4669
|
id: `button-${n}`,
|
|
@@ -4682,8 +4684,8 @@ const Ul = ({
|
|
|
4682
4684
|
className: a,
|
|
4683
4685
|
disabled: i = !1,
|
|
4684
4686
|
required: s = !1,
|
|
4685
|
-
autoFocus:
|
|
4686
|
-
maxLength:
|
|
4687
|
+
autoFocus: c = !1,
|
|
4688
|
+
maxLength: l = 10,
|
|
4687
4689
|
autoComplete: d = "off",
|
|
4688
4690
|
tabIndex: f = 0,
|
|
4689
4691
|
inputMode: v = "numeric",
|
|
@@ -4697,9 +4699,9 @@ const Ul = ({
|
|
|
4697
4699
|
const _ = R(
|
|
4698
4700
|
(D) => {
|
|
4699
4701
|
let E = D.target.value.replace(",", ".");
|
|
4700
|
-
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" ||
|
|
4702
|
+
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" || l && E.length > l || h == null || h(D, E);
|
|
4701
4703
|
},
|
|
4702
|
-
[h,
|
|
4704
|
+
[h, l]
|
|
4703
4705
|
), S = (D) => {
|
|
4704
4706
|
if (b && b(D), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4705
4707
|
D.key
|
|
@@ -4720,7 +4722,7 @@ const Ul = ({
|
|
|
4720
4722
|
placeholder: n,
|
|
4721
4723
|
disabled: i,
|
|
4722
4724
|
required: s,
|
|
4723
|
-
autoFocus:
|
|
4725
|
+
autoFocus: c,
|
|
4724
4726
|
autoComplete: d,
|
|
4725
4727
|
pattern: g,
|
|
4726
4728
|
tabIndex: f,
|
|
@@ -4749,10 +4751,10 @@ const Hl = Ue(
|
|
|
4749
4751
|
onChange: a,
|
|
4750
4752
|
...i
|
|
4751
4753
|
}, s) => {
|
|
4752
|
-
const
|
|
4754
|
+
const c = R(() => {
|
|
4753
4755
|
if (a) {
|
|
4754
|
-
let
|
|
4755
|
-
a(parseFloat(
|
|
4756
|
+
let l = e.replace(",", ".");
|
|
4757
|
+
a(parseFloat(l || "0").toFixed(2));
|
|
4756
4758
|
}
|
|
4757
4759
|
}, [a, e]);
|
|
4758
4760
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -4763,8 +4765,8 @@ const Hl = Ue(
|
|
|
4763
4765
|
pattern: "[0-9]*[.,]?[0-9]*",
|
|
4764
4766
|
inputMode: "decimal",
|
|
4765
4767
|
value: e ?? "",
|
|
4766
|
-
onChange: (
|
|
4767
|
-
onBlur:
|
|
4768
|
+
onChange: (l) => a == null ? void 0 : a(l.target.value),
|
|
4769
|
+
onBlur: c
|
|
4768
4770
|
}
|
|
4769
4771
|
);
|
|
4770
4772
|
}
|
|
@@ -4802,15 +4804,15 @@ const Hl = Ue(
|
|
|
4802
4804
|
positionFixed: a,
|
|
4803
4805
|
onClickLogo: i,
|
|
4804
4806
|
showBackNavigation: s,
|
|
4805
|
-
onClickBackNavigation:
|
|
4807
|
+
onClickBackNavigation: c
|
|
4806
4808
|
}) => {
|
|
4807
|
-
const
|
|
4809
|
+
const l = re(null), [d, f] = F(!1), v = R(() => {
|
|
4808
4810
|
f(!d);
|
|
4809
4811
|
}, [d, f]);
|
|
4810
4812
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4811
4813
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4812
4814
|
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(Y, { size: je.MEDIUM, classIcon: "bi-list" }) }),
|
|
4813
|
-
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick:
|
|
4815
|
+
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
4814
4816
|
Y,
|
|
4815
4817
|
{
|
|
4816
4818
|
size: je.EXTRA_SMALL,
|
|
@@ -4828,14 +4830,14 @@ const Hl = Ue(
|
|
|
4828
4830
|
] }),
|
|
4829
4831
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4830
4832
|
e,
|
|
4831
|
-
/* @__PURE__ */ o.jsx("div", { ref:
|
|
4832
|
-
d &&
|
|
4833
|
+
/* @__PURE__ */ o.jsx("div", { ref: l, onClick: v, children: /* @__PURE__ */ o.jsx(Y, { size: je.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4834
|
+
d && l.current && /* @__PURE__ */ o.jsx(
|
|
4833
4835
|
An,
|
|
4834
4836
|
{
|
|
4835
4837
|
position: "bottomRight",
|
|
4836
4838
|
show: d,
|
|
4837
4839
|
closeOverlay: f,
|
|
4838
|
-
referenceElement:
|
|
4840
|
+
referenceElement: l.current,
|
|
4839
4841
|
children: n
|
|
4840
4842
|
}
|
|
4841
4843
|
)
|
|
@@ -4868,18 +4870,18 @@ const Hl = Ue(
|
|
|
4868
4870
|
titleButton: a,
|
|
4869
4871
|
title: i,
|
|
4870
4872
|
styleContainer: s = {},
|
|
4871
|
-
classNameContainer:
|
|
4872
|
-
closeOnOverlayClick:
|
|
4873
|
+
classNameContainer: c = "",
|
|
4874
|
+
closeOnOverlayClick: l = !0
|
|
4873
4875
|
}) => {
|
|
4874
4876
|
if (!e) return null;
|
|
4875
4877
|
const d = () => {
|
|
4876
|
-
|
|
4878
|
+
l && t();
|
|
4877
4879
|
};
|
|
4878
4880
|
return Ia(
|
|
4879
4881
|
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown: d, children: /* @__PURE__ */ o.jsxs(
|
|
4880
4882
|
"div",
|
|
4881
4883
|
{
|
|
4882
|
-
className: `modal-container ${
|
|
4884
|
+
className: `modal-container ${c}`,
|
|
4883
4885
|
style: s,
|
|
4884
4886
|
onMouseDown: (f) => f.stopPropagation(),
|
|
4885
4887
|
children: [
|
|
@@ -4903,8 +4905,8 @@ const Hl = Ue(
|
|
|
4903
4905
|
className: a,
|
|
4904
4906
|
title: i,
|
|
4905
4907
|
id: s
|
|
4906
|
-
},
|
|
4907
|
-
const [
|
|
4908
|
+
}, c) => {
|
|
4909
|
+
const [l, d] = F(null), f = R(async () => {
|
|
4908
4910
|
const v = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(v);
|
|
4909
4911
|
if (!t) {
|
|
4910
4912
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
@@ -4916,13 +4918,13 @@ const Hl = Ue(
|
|
|
4916
4918
|
return q(() => {
|
|
4917
4919
|
f();
|
|
4918
4920
|
}, [e, f]), q(() => () => {
|
|
4919
|
-
|
|
4920
|
-
}, [
|
|
4921
|
+
l && URL.revokeObjectURL(l);
|
|
4922
|
+
}, [l]), /* @__PURE__ */ o.jsx(o.Fragment, { children: l && /* @__PURE__ */ o.jsx(
|
|
4921
4923
|
"iframe",
|
|
4922
4924
|
{
|
|
4923
|
-
ref:
|
|
4925
|
+
ref: c,
|
|
4924
4926
|
className: a,
|
|
4925
|
-
src:
|
|
4927
|
+
src: l,
|
|
4926
4928
|
width: n,
|
|
4927
4929
|
height: r,
|
|
4928
4930
|
title: i,
|
|
@@ -4944,33 +4946,33 @@ const Hl = Ue(
|
|
|
4944
4946
|
disabledMinus: i,
|
|
4945
4947
|
pas: s
|
|
4946
4948
|
}) => {
|
|
4947
|
-
const [
|
|
4949
|
+
const [c, l] = F(s), d = R(
|
|
4948
4950
|
(h) => {
|
|
4949
|
-
n || (
|
|
4951
|
+
n || (l(h), e && e(t, h));
|
|
4950
4952
|
},
|
|
4951
|
-
[
|
|
4953
|
+
[l, e]
|
|
4952
4954
|
), f = R(
|
|
4953
4955
|
(h) => {
|
|
4954
4956
|
if (h.stopPropagation(), n || a)
|
|
4955
4957
|
return;
|
|
4956
|
-
const p =
|
|
4958
|
+
const p = c + s;
|
|
4957
4959
|
d(Math.round(p * 100) / 100);
|
|
4958
4960
|
},
|
|
4959
|
-
[
|
|
4961
|
+
[c, d]
|
|
4960
4962
|
), v = R(
|
|
4961
4963
|
(h) => {
|
|
4962
4964
|
if (h.stopPropagation(), n || i)
|
|
4963
4965
|
return;
|
|
4964
|
-
if (
|
|
4965
|
-
return
|
|
4966
|
-
const p =
|
|
4966
|
+
if (c === 0)
|
|
4967
|
+
return c;
|
|
4968
|
+
const p = c - s;
|
|
4967
4969
|
d(Math.round(p * 100) / 100);
|
|
4968
4970
|
},
|
|
4969
|
-
[d,
|
|
4971
|
+
[d, c]
|
|
4970
4972
|
);
|
|
4971
4973
|
q(() => {
|
|
4972
|
-
t.quantity &&
|
|
4973
|
-
}, [t.quantity,
|
|
4974
|
+
t.quantity && l(t.quantity);
|
|
4975
|
+
}, [t.quantity, l]);
|
|
4974
4976
|
const g = R(
|
|
4975
4977
|
(h) => {
|
|
4976
4978
|
h.stopPropagation(), r && r(t);
|
|
@@ -4986,7 +4988,7 @@ const Hl = Ue(
|
|
|
4986
4988
|
children: /* @__PURE__ */ o.jsx(Y, { size: je.LARGE, classIcon: "bi bi-dash-square" })
|
|
4987
4989
|
}
|
|
4988
4990
|
),
|
|
4989
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children:
|
|
4991
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children: c }),
|
|
4990
4992
|
/* @__PURE__ */ o.jsx(
|
|
4991
4993
|
"div",
|
|
4992
4994
|
{
|
|
@@ -5005,14 +5007,14 @@ const Hl = Ue(
|
|
|
5005
5007
|
focus: a,
|
|
5006
5008
|
debounceTime: i,
|
|
5007
5009
|
handleChange: s,
|
|
5008
|
-
setIsVisible:
|
|
5009
|
-
id:
|
|
5010
|
+
setIsVisible: c,
|
|
5011
|
+
id: l
|
|
5010
5012
|
}, d) => {
|
|
5011
5013
|
const [f, v] = F(n ?? !1), g = re(null), h = re(null), p = Re(
|
|
5012
5014
|
() => [
|
|
5013
5015
|
{
|
|
5014
5016
|
value: "",
|
|
5015
|
-
id:
|
|
5017
|
+
id: l,
|
|
5016
5018
|
name: t ?? "recherche",
|
|
5017
5019
|
placeholder: r ?? "Recherche",
|
|
5018
5020
|
type: Be.TEXT,
|
|
@@ -5029,9 +5031,9 @@ const Hl = Ue(
|
|
|
5029
5031
|
}, [n]);
|
|
5030
5032
|
const m = R(
|
|
5031
5033
|
(x) => {
|
|
5032
|
-
|
|
5034
|
+
c && c(x), v(x);
|
|
5033
5035
|
},
|
|
5034
|
-
[
|
|
5036
|
+
[c]
|
|
5035
5037
|
), b = R(
|
|
5036
5038
|
(x) => {
|
|
5037
5039
|
if (!x || !x[t ?? "recherche"])
|
|
@@ -5092,8 +5094,8 @@ const Hl = Ue(
|
|
|
5092
5094
|
className: a,
|
|
5093
5095
|
id: i,
|
|
5094
5096
|
width: s,
|
|
5095
|
-
closeOnClickOutside:
|
|
5096
|
-
displayOverlay:
|
|
5097
|
+
closeOnClickOutside: c = !0,
|
|
5098
|
+
displayOverlay: l = !0
|
|
5097
5099
|
}) => {
|
|
5098
5100
|
const [d, f] = F(e || !1), [v, g] = F(0), [h, p] = F(!1), m = re(null), b = re(null), j = re(0), x = re(0), _ = re(null);
|
|
5099
5101
|
q(() => (b.current || (b.current = document.createElement("div"), b.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(b.current)), () => {
|
|
@@ -5105,9 +5107,9 @@ const Hl = Ue(
|
|
|
5105
5107
|
f(!1), n && n(!1);
|
|
5106
5108
|
}, [n]), D = R(
|
|
5107
5109
|
(O) => {
|
|
5108
|
-
|
|
5110
|
+
c && m.current && !m.current.contains(O.target) && S();
|
|
5109
5111
|
},
|
|
5110
|
-
[S,
|
|
5112
|
+
[S, c]
|
|
5111
5113
|
), E = R((O) => {
|
|
5112
5114
|
const A = O.touches[0];
|
|
5113
5115
|
j.current = A.clientX, x.current = A.clientY, _.current = null, p(!1), g(0);
|
|
@@ -5140,7 +5142,7 @@ const Hl = Ue(
|
|
|
5140
5142
|
document.removeEventListener("mousedown", D), document.removeEventListener("touchstart", D);
|
|
5141
5143
|
}), [d, D]), b.current ? Nn.createPortal(
|
|
5142
5144
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5143
|
-
d &&
|
|
5145
|
+
d && l && /* @__PURE__ */ o.jsx(
|
|
5144
5146
|
"div",
|
|
5145
5147
|
{
|
|
5146
5148
|
className: "overlay",
|
|
@@ -5182,13 +5184,13 @@ const Hl = Ue(
|
|
|
5182
5184
|
tabClassName: i = "",
|
|
5183
5185
|
panelClassName: s = ""
|
|
5184
5186
|
}) => {
|
|
5185
|
-
const
|
|
5187
|
+
const c = typeof r == "number", [l, d] = F(t), f = c ? r : l;
|
|
5186
5188
|
q(() => {
|
|
5187
|
-
!
|
|
5188
|
-
}, [t, e.length,
|
|
5189
|
+
!c && (t < 0 || t >= e.length) && d(0);
|
|
5190
|
+
}, [t, e.length, c]);
|
|
5189
5191
|
const v = re([]), g = (h) => {
|
|
5190
5192
|
var p, m;
|
|
5191
|
-
(p = e[h]) != null && p.disabled || (
|
|
5193
|
+
(p = e[h]) != null && p.disabled || (c || d(h), n == null || n(h), (m = v.current[h]) == null || m.focus());
|
|
5192
5194
|
};
|
|
5193
5195
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5194
5196
|
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((h, p) => /* @__PURE__ */ o.jsx(
|
|
@@ -5228,8 +5230,8 @@ const Hl = Ue(
|
|
|
5228
5230
|
const g = t;
|
|
5229
5231
|
t = f ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), r.forEach((h) => h(t, g));
|
|
5230
5232
|
}
|
|
5231
|
-
}, a = () => t,
|
|
5232
|
-
return
|
|
5233
|
+
}, a = () => t, c = { setState: n, getState: a, getInitialState: () => l, subscribe: (d) => (r.add(d), () => r.delete(d)) }, l = t = e(n, a, c);
|
|
5234
|
+
return c;
|
|
5233
5235
|
}, vl = (e) => e ? Ta(e) : Ta, ml = (e) => e;
|
|
5234
5236
|
function pl(e, t = ml) {
|
|
5235
5237
|
const r = Ae.useSyncExternalStore(
|
|
@@ -5268,8 +5270,8 @@ const Ra = (e) => {
|
|
|
5268
5270
|
children: a,
|
|
5269
5271
|
duration: i,
|
|
5270
5272
|
hideToast: s,
|
|
5271
|
-
close:
|
|
5272
|
-
} = yl(),
|
|
5273
|
+
close: c
|
|
5274
|
+
} = yl(), l = R(() => {
|
|
5273
5275
|
s();
|
|
5274
5276
|
}, [s]);
|
|
5275
5277
|
if (q(() => {
|
|
@@ -5282,7 +5284,7 @@ const Ra = (e) => {
|
|
|
5282
5284
|
const d = document.getElementById("toaster-root");
|
|
5283
5285
|
return d ? Nn.createPortal(
|
|
5284
5286
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5285
|
-
|
|
5287
|
+
c && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: l, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x" }) }),
|
|
5286
5288
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5287
5289
|
r === "info" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-info-circle" }),
|
|
5288
5290
|
r === "success" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-check-circle" }),
|