kelt-ui-kit-react 1.6.0 → 1.6.1
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 +371 -348
- package/dist/pdfViewer/PdfViewer.d.ts +7 -1
- package/package.json +1 -1
- package/src/pdfViewer/PdfViewer.tsx +30 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Te, { createContext as Ta, useRef as de, useState as F, useEffect as q, useContext as On, useCallback as A, useDebugValue as Gn, createElement as Yo, forwardRef as nt, useId as Bo, useImperativeHandle as Dr, useMemo as
|
|
1
|
+
import * as Me from "react";
|
|
2
|
+
import Te, { createContext as Ta, useRef as de, useState as F, useEffect as q, useContext as On, useCallback as A, useDebugValue as Gn, createElement as Yo, forwardRef as nt, useId as Bo, useImperativeHandle as Dr, useMemo as Le, Children as Uo, cloneElement as zo } from "react";
|
|
3
3
|
import Nn, { createPortal as Aa } from "react-dom";
|
|
4
4
|
var ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Go(e) {
|
|
@@ -21,11 +21,11 @@ function Ho() {
|
|
|
21
21
|
Hn = 1;
|
|
22
22
|
var e = Te, 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(c, l, d) {
|
|
24
|
-
var f,
|
|
25
|
-
d !== void 0 && (g = "" + d), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (
|
|
26
|
-
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (
|
|
27
|
-
if (c && c.defaultProps) for (f in l = c.defaultProps, l)
|
|
28
|
-
return { $$typeof: t, type: c, key: g, ref:
|
|
24
|
+
var f, h = {}, g = null, v = null;
|
|
25
|
+
d !== void 0 && (g = "" + d), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (v = l.ref);
|
|
26
|
+
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (h[f] = l[f]);
|
|
27
|
+
if (c && c.defaultProps) for (f in l = c.defaultProps, l) h[f] === void 0 && (h[f] = l[f]);
|
|
28
|
+
return { $$typeof: t, type: c, key: g, ref: v, props: h, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return At.Fragment = r, At.jsx = s, At.jsxs = s, At;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ var It = {};
|
|
|
42
42
|
var qn;
|
|
43
43
|
function qo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = Te, 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"),
|
|
45
|
+
var e = Te, 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"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
|
|
46
46
|
function w(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
@@ -70,7 +70,7 @@ function qo() {
|
|
|
70
70
|
var S = !1, R = !1, C = !1, P = !1, W = !1, y;
|
|
71
71
|
y = Symbol.for("react.module.reference");
|
|
72
72
|
function E(u) {
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || P || u ===
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || P || u === v || S || R || C || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || 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.
|
|
@@ -83,10 +83,10 @@ function qo() {
|
|
|
83
83
|
var B = x.displayName || x.name || "";
|
|
84
84
|
return B !== "" ? O + "(" + B + ")" : O;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function L(u) {
|
|
87
87
|
return u.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function M(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
92
|
if (typeof u.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
@@ -111,19 +111,19 @@ function qo() {
|
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case c:
|
|
113
113
|
var x = u;
|
|
114
|
-
return
|
|
114
|
+
return L(x) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
116
|
var O = u;
|
|
117
|
-
return
|
|
117
|
+
return L(O._context) + ".Provider";
|
|
118
118
|
case l:
|
|
119
119
|
return I(u, u.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case h:
|
|
121
121
|
var T = u.displayName || null;
|
|
122
|
-
return T !== null ? T :
|
|
122
|
+
return T !== null ? T : M(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
124
|
var B = u, N = B._payload, k = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return M(k(N));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -307,7 +307,7 @@ function qo() {
|
|
|
307
307
|
switch (u.$$typeof) {
|
|
308
308
|
case l:
|
|
309
309
|
return Dt(u.render);
|
|
310
|
-
case
|
|
310
|
+
case h:
|
|
311
311
|
return Ce(u.type, x, O);
|
|
312
312
|
case g: {
|
|
313
313
|
var T = u, B = T._payload, N = T._init;
|
|
@@ -327,7 +327,7 @@ function qo() {
|
|
|
327
327
|
} else
|
|
328
328
|
Ot.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Mr(u, x, O, T, B) {
|
|
331
331
|
{
|
|
332
332
|
var N = Function.call.bind(oe);
|
|
333
333
|
for (var k in u)
|
|
@@ -480,7 +480,7 @@ function qo() {
|
|
|
480
480
|
function le() {
|
|
481
481
|
{
|
|
482
482
|
if (qe.current) {
|
|
483
|
-
var u =
|
|
483
|
+
var u = M(qe.current.type);
|
|
484
484
|
if (u)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -515,7 +515,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
515
515
|
return;
|
|
516
516
|
Xe[O] = !0;
|
|
517
517
|
var T = "";
|
|
518
|
-
u && u._owner && u._owner !== qe.current && (T = " It was passed a child from " +
|
|
518
|
+
u && u._owner && u._owner !== qe.current && (T = " It was passed a child from " + M(u._owner.type) + "."), Ie(u), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, T), Ie(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function rr(u, x) {
|
|
@@ -547,16 +547,16 @@ Check the top-level render call using <` + O + ">.");
|
|
|
547
547
|
O = x.propTypes;
|
|
548
548
|
else if (typeof x == "object" && (x.$$typeof === l || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
x.$$typeof ===
|
|
550
|
+
x.$$typeof === h))
|
|
551
551
|
O = x.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (O) {
|
|
555
|
-
var T =
|
|
556
|
-
|
|
555
|
+
var T = M(x);
|
|
556
|
+
Mr(O, u.props, "prop", T, u);
|
|
557
557
|
} else if (x.PropTypes !== void 0 && !kt) {
|
|
558
558
|
kt = !0;
|
|
559
|
-
var B =
|
|
559
|
+
var B = M(x);
|
|
560
560
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -584,7 +584,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
584
584
|
var z = he();
|
|
585
585
|
z ? _ += z : _ += le();
|
|
586
586
|
var V;
|
|
587
|
-
u === null ? V = "null" : Nt(u) ? V = "array" : u !== void 0 && u.$$typeof === t ? (V = "<" + (
|
|
587
|
+
u === null ? V = "null" : Nt(u) ? V = "array" : u !== void 0 && u.$$typeof === t ? (V = "<" + (M(u.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : V = typeof u, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, _);
|
|
588
588
|
}
|
|
589
589
|
var J = er(u, x, O, B, N);
|
|
590
590
|
if (J == null)
|
|
@@ -603,7 +603,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
603
603
|
rr(ge, u);
|
|
604
604
|
}
|
|
605
605
|
if (oe.call(x, "key")) {
|
|
606
|
-
var Ke =
|
|
606
|
+
var Ke = M(u), ye = Object.keys(x).filter(function(Vo) {
|
|
607
607
|
return Vo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Ct[Ke + Ur]) {
|
|
@@ -666,26 +666,26 @@ new Set(Xo);
|
|
|
666
666
|
*
|
|
667
667
|
* @license MIT
|
|
668
668
|
*/
|
|
669
|
-
const Ko = /* @__PURE__ */
|
|
669
|
+
const Ko = /* @__PURE__ */ Me.createContext(null);
|
|
670
670
|
process.env.NODE_ENV !== "production" && (Ko.displayName = "DataRouter");
|
|
671
|
-
const Jo = /* @__PURE__ */
|
|
671
|
+
const Jo = /* @__PURE__ */ Me.createContext(null);
|
|
672
672
|
process.env.NODE_ENV !== "production" && (Jo.displayName = "DataRouterState");
|
|
673
|
-
const Qo = /* @__PURE__ */
|
|
673
|
+
const Qo = /* @__PURE__ */ Me.createContext(null);
|
|
674
674
|
process.env.NODE_ENV !== "production" && (Qo.displayName = "Await");
|
|
675
|
-
const Zo = /* @__PURE__ */
|
|
675
|
+
const Zo = /* @__PURE__ */ Me.createContext(null);
|
|
676
676
|
process.env.NODE_ENV !== "production" && (Zo.displayName = "Navigation");
|
|
677
|
-
const En = /* @__PURE__ */
|
|
677
|
+
const En = /* @__PURE__ */ Me.createContext(null);
|
|
678
678
|
process.env.NODE_ENV !== "production" && (En.displayName = "Location");
|
|
679
|
-
const ei = /* @__PURE__ */
|
|
679
|
+
const ei = /* @__PURE__ */ Me.createContext({
|
|
680
680
|
outlet: null,
|
|
681
681
|
matches: [],
|
|
682
682
|
isDataRoute: !1
|
|
683
683
|
});
|
|
684
684
|
process.env.NODE_ENV !== "production" && (ei.displayName = "Route");
|
|
685
|
-
const ti = /* @__PURE__ */
|
|
685
|
+
const ti = /* @__PURE__ */ Me.createContext(null);
|
|
686
686
|
process.env.NODE_ENV !== "production" && (ti.displayName = "RouteError");
|
|
687
687
|
function ri() {
|
|
688
|
-
return
|
|
688
|
+
return Me.useContext(En) != null;
|
|
689
689
|
}
|
|
690
690
|
function ni() {
|
|
691
691
|
return ri() || (process.env.NODE_ENV !== "production" ? Kn(
|
|
@@ -693,7 +693,7 @@ function ni() {
|
|
|
693
693
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
694
694
|
// router loaded. We can help them understand how to avoid that.
|
|
695
695
|
"useLocation() may be used only in the context of a <Router> component."
|
|
696
|
-
) : Kn()),
|
|
696
|
+
) : Kn()), Me.useContext(En).location;
|
|
697
697
|
}
|
|
698
698
|
new Promise(() => {
|
|
699
699
|
});
|
|
@@ -765,8 +765,8 @@ function Nl(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"), 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()],
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM",
|
|
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()], h = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", h).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", c).replace("mm", l).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
const El = (e = 768) => {
|
|
772
772
|
const [t, r] = F(
|
|
@@ -860,7 +860,7 @@ const kl = () => ({ getTokenValidate: A(() => {
|
|
|
860
860
|
(r = e == null ? void 0 : e.current) == null || r.removeChild(t);
|
|
861
861
|
};
|
|
862
862
|
}, []), /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { ref: e }) });
|
|
863
|
-
}, Y = ({ classIcon: e, size: t }) => /* @__PURE__ */ o.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }),
|
|
863
|
+
}, Y = ({ classIcon: e, size: t }) => /* @__PURE__ */ o.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), La = ({
|
|
864
864
|
className: e,
|
|
865
865
|
onClick: t,
|
|
866
866
|
title: r,
|
|
@@ -894,7 +894,7 @@ const Pl = ({
|
|
|
894
894
|
t && t(s);
|
|
895
895
|
};
|
|
896
896
|
return /* @__PURE__ */ o.jsxs("div", { className: `action ${e}`, onClick: i, children: [
|
|
897
|
-
a && /* @__PURE__ */ o.jsx(
|
|
897
|
+
a && /* @__PURE__ */ o.jsx(La, { ...a }),
|
|
898
898
|
n && /* @__PURE__ */ o.jsx(Y, { classIcon: n, size: je.LARGE }),
|
|
899
899
|
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
900
900
|
] });
|
|
@@ -921,7 +921,7 @@ const Pl = ({
|
|
|
921
921
|
onClick: (f) => d(f),
|
|
922
922
|
className: e,
|
|
923
923
|
children: [
|
|
924
|
-
r && /* @__PURE__ */ o.jsx(
|
|
924
|
+
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
925
925
|
s && c == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(Y, { size: a, classIcon: s }) }),
|
|
926
926
|
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
927
927
|
s && c == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(Y, { classIcon: s }) })
|
|
@@ -935,7 +935,7 @@ const Pl = ({
|
|
|
935
935
|
className: e.active ? "expand expand--active" : "expand",
|
|
936
936
|
children: e.item.children
|
|
937
937
|
}
|
|
938
|
-
),
|
|
938
|
+
), Ma = (e) => {
|
|
939
939
|
const [t, r] = F(null), n = A((i) => {
|
|
940
940
|
r(i);
|
|
941
941
|
}, []), a = (i) => /* @__PURE__ */ o.jsx("ul", { children: i.map((s) => /* @__PURE__ */ o.jsxs("li", { children: [
|
|
@@ -1014,7 +1014,7 @@ function Re(e) {
|
|
|
1014
1014
|
function Ua(e) {
|
|
1015
1015
|
return e.length;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Lt(e, t) {
|
|
1018
1018
|
return t.push(e), e;
|
|
1019
1019
|
}
|
|
1020
1020
|
function mi(e, t) {
|
|
@@ -1035,7 +1035,7 @@ function Ye(e, t) {
|
|
|
1035
1035
|
function dt(e) {
|
|
1036
1036
|
for (; e.root; )
|
|
1037
1037
|
e = Ye(e.root, { children: [e] });
|
|
1038
|
-
|
|
1038
|
+
Lt(e, e.siblings);
|
|
1039
1039
|
}
|
|
1040
1040
|
function pi() {
|
|
1041
1041
|
return ae;
|
|
@@ -1139,10 +1139,10 @@ function Di(e) {
|
|
|
1139
1139
|
return bi(hr("", null, null, null, [""], e = yi(e), 0, [0], e));
|
|
1140
1140
|
}
|
|
1141
1141
|
function hr(e, t, r, n, a, i, s, c, l) {
|
|
1142
|
-
for (var d = 0, f = 0,
|
|
1142
|
+
for (var d = 0, f = 0, h = s, g = 0, v = 0, p = 0, m = 1, w = 1, j = 1, b = 0, D = "", S = a, R = i, C = n, P = D; w; )
|
|
1143
1143
|
switch (p = b, b = Ne()) {
|
|
1144
1144
|
case 40:
|
|
1145
|
-
if (p != 108 && ie(P,
|
|
1145
|
+
if (p != 108 && ie(P, h - 1) == 58) {
|
|
1146
1146
|
dr(P += $(zr(b), "&", "&\f"), "&\f", Ya(d ? c[d - 1] : 0)) != -1 && (j = -1);
|
|
1147
1147
|
break;
|
|
1148
1148
|
}
|
|
@@ -1164,7 +1164,7 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1164
1164
|
switch (Ze()) {
|
|
1165
1165
|
case 42:
|
|
1166
1166
|
case 47:
|
|
1167
|
-
|
|
1167
|
+
Lt(Oi(ji(Ne(), fr()), t, r, l), l);
|
|
1168
1168
|
break;
|
|
1169
1169
|
default:
|
|
1170
1170
|
P += "/";
|
|
@@ -1180,30 +1180,30 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1180
1180
|
case 125:
|
|
1181
1181
|
w = 0;
|
|
1182
1182
|
case 59 + f:
|
|
1183
|
-
j == -1 && (P = $(P, /\f/g, "")),
|
|
1183
|
+
j == -1 && (P = $(P, /\f/g, "")), v > 0 && Re(P) - h && Lt(v > 32 ? ea(P + ";", n, r, h - 1, l) : ea($(P, " ", "") + ";", n, r, h - 2, l), l);
|
|
1184
1184
|
break;
|
|
1185
1185
|
case 59:
|
|
1186
1186
|
P += ";";
|
|
1187
1187
|
default:
|
|
1188
|
-
if (
|
|
1188
|
+
if (Lt(C = Zn(P, t, r, d, f, a, c, D, S = [], R = [], h, i), i), b === 123)
|
|
1189
1189
|
if (f === 0)
|
|
1190
|
-
hr(P, t, C, C, S, i,
|
|
1190
|
+
hr(P, t, C, C, S, i, h, c, R);
|
|
1191
1191
|
else
|
|
1192
1192
|
switch (g === 99 && ie(P, 3) === 110 ? 100 : g) {
|
|
1193
1193
|
case 100:
|
|
1194
1194
|
case 108:
|
|
1195
1195
|
case 109:
|
|
1196
1196
|
case 115:
|
|
1197
|
-
hr(e, C, C, n &&
|
|
1197
|
+
hr(e, C, C, n && Lt(Zn(e, C, C, 0, 0, a, c, D, a, S = [], h, R), R), a, R, h, c, n ? S : R);
|
|
1198
1198
|
break;
|
|
1199
1199
|
default:
|
|
1200
1200
|
hr(P, C, C, C, [""], R, 0, c, R);
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
d = f =
|
|
1203
|
+
d = f = v = 0, m = j = 1, D = P = "", h = s;
|
|
1204
1204
|
break;
|
|
1205
1205
|
case 58:
|
|
1206
|
-
|
|
1206
|
+
h = 1 + Re(P), v = p;
|
|
1207
1207
|
default:
|
|
1208
1208
|
if (m < 1) {
|
|
1209
1209
|
if (b == 123)
|
|
@@ -1219,7 +1219,7 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1219
1219
|
c[d++] = (Re(P) - 1) * j, j = 1;
|
|
1220
1220
|
break;
|
|
1221
1221
|
case 64:
|
|
1222
|
-
Ze() === 45 && (P += zr(Ne())), g = Ze(), f =
|
|
1222
|
+
Ze() === 45 && (P += zr(Ne())), g = Ze(), f = h = Re(D = P += Si(fr())), b++;
|
|
1223
1223
|
break;
|
|
1224
1224
|
case 45:
|
|
1225
1225
|
p === 45 && Re(P) == 2 && (m = 0);
|
|
@@ -1227,11 +1227,11 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return i;
|
|
1229
1229
|
}
|
|
1230
|
-
function Zn(e, t, r, n, a, i, s, c, l, d, f,
|
|
1231
|
-
for (var g = a - 1,
|
|
1230
|
+
function Zn(e, t, r, n, a, i, s, c, l, d, f, h) {
|
|
1231
|
+
for (var g = a - 1, v = a === 0 ? i : [""], p = Ua(v), m = 0, w = 0, j = 0; m < n; ++m)
|
|
1232
1232
|
for (var b = 0, D = mt(e, g + 1, g = Ya(w = s[m])), S = e; b < p; ++b)
|
|
1233
|
-
(S = Ba(w > 0 ?
|
|
1234
|
-
return Er(e, t, r, a === 0 ? Or : c, l, d, f,
|
|
1233
|
+
(S = Ba(w > 0 ? v[b] + " " + D : $(D, /&\f/g, v[b]))) && (l[j++] = S);
|
|
1234
|
+
return Er(e, t, r, a === 0 ? Or : c, l, d, f, h);
|
|
1235
1235
|
}
|
|
1236
1236
|
function Oi(e, t, r, n) {
|
|
1237
1237
|
return Er(e, t, r, Wa, _n(pi()), mt(e, 2, -2), 0, n);
|
|
@@ -1531,7 +1531,7 @@ var Gr, Xa = 5381, Je = function(e, t) {
|
|
|
1531
1531
|
}, Ka = function(e) {
|
|
1532
1532
|
return Je(Xa, e);
|
|
1533
1533
|
};
|
|
1534
|
-
function
|
|
1534
|
+
function Li(e) {
|
|
1535
1535
|
return on(Ka(e) >>> 0);
|
|
1536
1536
|
}
|
|
1537
1537
|
function Ja(e) {
|
|
@@ -1540,7 +1540,7 @@ function Ja(e) {
|
|
|
1540
1540
|
function Hr(e) {
|
|
1541
1541
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1542
1542
|
}
|
|
1543
|
-
var Qa = typeof Symbol == "function" && Symbol.for, Za = Qa ? Symbol.for("react.memo") : 60115,
|
|
1543
|
+
var Qa = typeof Symbol == "function" && Symbol.for, Za = Qa ? Symbol.for("react.memo") : 60115, Mi = Qa ? Symbol.for("react.forward_ref") : 60112, Fi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Wi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, eo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Vi = ((Gr = {})[Mi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Gr[Za] = eo, Gr);
|
|
1544
1544
|
function aa(e) {
|
|
1545
1545
|
return ("type" in (t = e) && t.type.$$typeof) === Za ? eo : "$$typeof" in e ? Vi[e.$$typeof] : Fi;
|
|
1546
1546
|
var t;
|
|
@@ -1765,15 +1765,15 @@ var ro = function(e) {
|
|
|
1765
1765
|
var a = this;
|
|
1766
1766
|
this.options = be(be({}, os), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Rn(this, function() {
|
|
1767
1767
|
return function(i) {
|
|
1768
|
-
for (var s = i.getTag(), c = s.length, l = "", d = function(
|
|
1768
|
+
for (var s = i.getTag(), c = s.length, l = "", d = function(h) {
|
|
1769
1769
|
var g = function(j) {
|
|
1770
1770
|
return xr.get(j);
|
|
1771
|
-
}(
|
|
1771
|
+
}(h);
|
|
1772
1772
|
if (g === void 0) return "continue";
|
|
1773
|
-
var
|
|
1774
|
-
if (
|
|
1775
|
-
var m = "".concat(rt, ".g").concat(
|
|
1776
|
-
|
|
1773
|
+
var v = i.names.get(g), p = s.getGroup(h);
|
|
1774
|
+
if (v === void 0 || !v.size || p.length === 0) return "continue";
|
|
1775
|
+
var m = "".concat(rt, ".g").concat(h, '[id="').concat(g, '"]'), w = "";
|
|
1776
|
+
v !== void 0 && v.forEach(function(j) {
|
|
1777
1777
|
j.length > 0 && (w += "".concat(j, ","));
|
|
1778
1778
|
}), l += "".concat(p).concat(m, '{content:"').concat(w, '"}').concat(Cn);
|
|
1779
1779
|
}, f = 0; f < c; f++) d(f);
|
|
@@ -1821,24 +1821,24 @@ function ao(e, t) {
|
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
1823
|
function cs(e) {
|
|
1824
|
-
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,
|
|
1824
|
+
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, v, p) {
|
|
1825
1825
|
return p.startsWith(r) && p.endsWith(r) && p.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1826
1826
|
}, f = l.slice();
|
|
1827
1827
|
f.push(function(g) {
|
|
1828
1828
|
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(is, r).replace(n, d));
|
|
1829
1829
|
}), s.prefix && f.push(_i), f.push(Ni);
|
|
1830
|
-
var
|
|
1831
|
-
|
|
1832
|
-
var w = g.replace(ss, ""), j = Di(p ||
|
|
1830
|
+
var h = function(g, v, p, m) {
|
|
1831
|
+
v === void 0 && (v = ""), p === void 0 && (p = ""), m === void 0 && (m = "&"), t = m, r = v, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1832
|
+
var w = g.replace(ss, ""), j = Di(p || v ? "".concat(p, " ").concat(v, " { ").concat(w, " }") : w);
|
|
1833
1833
|
s.namespace && (j = ao(j, s.namespace));
|
|
1834
1834
|
var b = [];
|
|
1835
1835
|
return yr(j, Ei(f.concat(ki(function(D) {
|
|
1836
1836
|
return b.push(D);
|
|
1837
1837
|
})))), b;
|
|
1838
1838
|
};
|
|
1839
|
-
return
|
|
1840
|
-
return
|
|
1841
|
-
}, Xa).toString() : "",
|
|
1839
|
+
return h.hash = l.length ? l.reduce(function(g, v) {
|
|
1840
|
+
return v.name || wt(15), Je(g, v.name);
|
|
1841
|
+
}, Xa).toString() : "", h;
|
|
1842
1842
|
}
|
|
1843
1843
|
var ls = new no(), cn = cs(), oo = Te.createContext({ shouldForwardProp: void 0, styleSheet: ls, stylis: cn });
|
|
1844
1844
|
oo.Consumer;
|
|
@@ -1918,16 +1918,16 @@ var fs = Ka(_r), hs = function() {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
else {
|
|
1920
1920
|
for (var l = Je(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1921
|
-
var
|
|
1922
|
-
if (typeof
|
|
1923
|
-
else if (
|
|
1924
|
-
var g = sa(et(
|
|
1921
|
+
var h = this.rules[f];
|
|
1922
|
+
if (typeof h == "string") d += h, process.env.NODE_ENV !== "production" && (l = Je(l, h));
|
|
1923
|
+
else if (h) {
|
|
1924
|
+
var g = sa(et(h, t, r, n));
|
|
1925
1925
|
l = Je(l, g + f), d += g;
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
if (d) {
|
|
1929
|
-
var
|
|
1930
|
-
r.hasNameForId(this.componentId,
|
|
1929
|
+
var v = on(l >>> 0);
|
|
1930
|
+
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, n(d, ".".concat(v), void 0, this.componentId)), a = Qe(a, v);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
return a;
|
|
@@ -1939,11 +1939,11 @@ function vs(e, t, r) {
|
|
|
1939
1939
|
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, R) {
|
|
1940
1940
|
var C = typeof S != "string" ? "sc" : ra(S);
|
|
1941
1941
|
qr[C] = (qr[C] || 0) + 1;
|
|
1942
|
-
var P = "".concat(C, "-").concat(
|
|
1942
|
+
var P = "".concat(C, "-").concat(Li(_r + C + qr[C]));
|
|
1943
1943
|
return R ? "".concat(R, "-").concat(P) : P;
|
|
1944
|
-
}(t.displayName, t.parentComponentId) : l, f = t.displayName,
|
|
1944
|
+
}(t.displayName, t.parentComponentId) : l, f = t.displayName, h = f === void 0 ? function(S) {
|
|
1945
1945
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
|
|
1946
|
-
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d,
|
|
1946
|
+
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = n && a.attrs ? a.attrs.concat(c).filter(Boolean) : c, p = t.shouldForwardProp;
|
|
1947
1947
|
if (n && a.shouldForwardProp) {
|
|
1948
1948
|
var m = a.shouldForwardProp;
|
|
1949
1949
|
if (t.shouldForwardProp) {
|
|
@@ -1956,8 +1956,8 @@ function vs(e, t, r) {
|
|
|
1956
1956
|
var j = new hs(r, g, n ? a.componentStyle : void 0);
|
|
1957
1957
|
function b(S, R) {
|
|
1958
1958
|
return function(C, P, W) {
|
|
1959
|
-
var y = C.attrs, E = C.componentStyle, I = C.defaultProps,
|
|
1960
|
-
process.env.NODE_ENV !== "production" && Gn(
|
|
1959
|
+
var y = C.attrs, E = C.componentStyle, I = C.defaultProps, L = C.foldedComponentIds, M = C.styledComponentId, X = C.target, ve = Te.useContext(co), re = ua(), xe = C.shouldForwardProp || re.shouldForwardProp;
|
|
1960
|
+
process.env.NODE_ENV !== "production" && Gn(M);
|
|
1961
1961
|
var Ae = Ti(P, ve, I) || gt, ee = function(ke, me, pe) {
|
|
1962
1962
|
for (var ce, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1963
1963
|
var _e = yt(ce = ke[De]) ? ce(ne) : ce;
|
|
@@ -1971,13 +1971,13 @@ function vs(e, t, r) {
|
|
|
1971
1971
|
return process.env.NODE_ENV !== "production" && Gn(ce), ce;
|
|
1972
1972
|
}(E, ee);
|
|
1973
1973
|
process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Se);
|
|
1974
|
-
var Ee = Qe(
|
|
1974
|
+
var Ee = Qe(L, M);
|
|
1975
1975
|
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), se[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, W && (se.ref = W), Yo(K, se);
|
|
1976
1976
|
}(D, S, R);
|
|
1977
1977
|
}
|
|
1978
|
-
b.displayName =
|
|
1978
|
+
b.displayName = h;
|
|
1979
1979
|
var D = Te.forwardRef(b);
|
|
1980
|
-
return D.attrs =
|
|
1980
|
+
return D.attrs = v, D.componentStyle = j, D.displayName = h, D.shouldForwardProp = p, D.foldedComponentIds = n ? Qe(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = n ? a.target : e, Object.defineProperty(D, "defaultProps", { get: function() {
|
|
1981
1981
|
return this._foldedDefaultProps;
|
|
1982
1982
|
}, set: function(S) {
|
|
1983
1983
|
this._foldedDefaultProps = n ? function(R) {
|
|
@@ -1985,7 +1985,7 @@ function vs(e, t, r) {
|
|
|
1985
1985
|
for (var W = 0, y = C; W < y.length; W++) sn(R, y[W], !0);
|
|
1986
1986
|
return R;
|
|
1987
1987
|
}({}, a.defaultProps, S) : S;
|
|
1988
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(
|
|
1988
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(h, g), D.warnTooManyClasses = /* @__PURE__ */ function(S, R) {
|
|
1989
1989
|
var C = {}, P = !1;
|
|
1990
1990
|
return function(W) {
|
|
1991
1991
|
if (!P && (C[W] = !0, Object.keys(C).length >= 200)) {
|
|
@@ -2002,7 +2002,7 @@ Example:
|
|
|
2002
2002
|
<Component />`), P = !0, C = {};
|
|
2003
2003
|
}
|
|
2004
2004
|
};
|
|
2005
|
-
}(
|
|
2005
|
+
}(h, g)), Rn(D, function() {
|
|
2006
2006
|
return ".".concat(D.styledComponentId);
|
|
2007
2007
|
}), i && to(D, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), D;
|
|
2008
2008
|
}
|
|
@@ -2064,18 +2064,18 @@ const ms = Tn.div`
|
|
|
2064
2064
|
id: i,
|
|
2065
2065
|
closeOverlay: s
|
|
2066
2066
|
}, c) => {
|
|
2067
|
-
const { activeOverlayId: l, setActiveOverlay: d } = ci(), [f,
|
|
2067
|
+
const { activeOverlayId: l, setActiveOverlay: d } = ci(), [f, h] = F(a || !1), [g, v] = F(
|
|
2068
2068
|
r ?? { top: 0, left: 0 }
|
|
2069
2069
|
), p = de(null), m = Bo();
|
|
2070
2070
|
Dr(c, () => ({
|
|
2071
|
-
setCoords:
|
|
2071
|
+
setCoords: v
|
|
2072
2072
|
})), q(() => {
|
|
2073
|
-
l !== m &&
|
|
2073
|
+
l !== m && h(!1);
|
|
2074
2074
|
}, [l, m]), q(() => {
|
|
2075
2075
|
const b = () => {
|
|
2076
2076
|
var D;
|
|
2077
2077
|
if (!t && r)
|
|
2078
|
-
|
|
2078
|
+
v(r);
|
|
2079
2079
|
else if (e) {
|
|
2080
2080
|
const S = e.getBoundingClientRect(), R = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: C, innerHeight: P } = window;
|
|
2081
2081
|
if (R) {
|
|
@@ -2106,17 +2106,17 @@ const ms = Tn.div`
|
|
|
2106
2106
|
left: S.right
|
|
2107
2107
|
})
|
|
2108
2108
|
};
|
|
2109
|
-
t && E[t] ? { top: W, left: y } = E[t]() : (y = S.right, W = S.bottom, S.right + R.width > C && (y = S.left - R.width), S.bottom + R.height > P && (W = S.top - R.height)),
|
|
2109
|
+
t && E[t] ? { top: W, left: y } = E[t]() : (y = S.right, W = S.bottom, S.right + R.width > C && (y = S.left - R.width), S.bottom + R.height > P && (W = S.top - R.height)), v({ top: W, left: y < 0 ? 0 : y });
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
};
|
|
2113
2113
|
return f && (b(), window.addEventListener("resize", b)), () => window.removeEventListener("resize", b);
|
|
2114
2114
|
}, [e, f, t]);
|
|
2115
2115
|
const w = () => {
|
|
2116
|
-
|
|
2116
|
+
h(!0), d(m);
|
|
2117
2117
|
}, j = A(
|
|
2118
2118
|
(b) => {
|
|
2119
|
-
b.stopPropagation(),
|
|
2119
|
+
b.stopPropagation(), h(!1), d(null), s && s(!1);
|
|
2120
2120
|
},
|
|
2121
2121
|
[s, d]
|
|
2122
2122
|
);
|
|
@@ -2162,12 +2162,12 @@ const ms = Tn.div`
|
|
|
2162
2162
|
}) => {
|
|
2163
2163
|
const c = (p) => {
|
|
2164
2164
|
p.preventDefault(), t && t(p);
|
|
2165
|
-
}, l = de(null), [d, f] = F(!1),
|
|
2165
|
+
}, l = de(null), [d, f] = F(!1), h = A(
|
|
2166
2166
|
(p) => {
|
|
2167
2167
|
p.stopPropagation(), n && f(!d);
|
|
2168
2168
|
},
|
|
2169
2169
|
[d, f]
|
|
2170
|
-
), g =
|
|
2170
|
+
), g = Le(() => n ? n.map((p, m) => ({
|
|
2171
2171
|
id: p.id ?? m,
|
|
2172
2172
|
icon: p.icon,
|
|
2173
2173
|
name: p.label,
|
|
@@ -2177,13 +2177,13 @@ const ms = Tn.div`
|
|
|
2177
2177
|
classIcon: p.icon,
|
|
2178
2178
|
sizeIcon: je.LARGE,
|
|
2179
2179
|
onClick: (w) => {
|
|
2180
|
-
w.stopPropagation(),
|
|
2180
|
+
w.stopPropagation(), v(), p.onClick && p.onClick(p);
|
|
2181
2181
|
},
|
|
2182
2182
|
title: p.label || ""
|
|
2183
2183
|
},
|
|
2184
2184
|
m
|
|
2185
2185
|
)
|
|
2186
|
-
})) : [], [n]),
|
|
2186
|
+
})) : [], [n]), v = A(() => {
|
|
2187
2187
|
f(!1);
|
|
2188
2188
|
}, [f]);
|
|
2189
2189
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -2202,7 +2202,7 @@ const ms = Tn.div`
|
|
|
2202
2202
|
{
|
|
2203
2203
|
className: "ml-2",
|
|
2204
2204
|
ref: l,
|
|
2205
|
-
onClick: (p) =>
|
|
2205
|
+
onClick: (p) => h(p),
|
|
2206
2206
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-up" })
|
|
2207
2207
|
}
|
|
2208
2208
|
)
|
|
@@ -2216,7 +2216,7 @@ const ms = Tn.div`
|
|
|
2216
2216
|
position: a,
|
|
2217
2217
|
closeOverlay: f,
|
|
2218
2218
|
referenceElement: l.current,
|
|
2219
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
|
|
2219
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ma, { className: "card-action-menu", items: g }) })
|
|
2220
2220
|
}
|
|
2221
2221
|
)
|
|
2222
2222
|
] });
|
|
@@ -2230,18 +2230,18 @@ const ms = Tn.div`
|
|
|
2230
2230
|
}) => {
|
|
2231
2231
|
const s = de(null), [c, l] = F(
|
|
2232
2232
|
a
|
|
2233
|
-
), d = de(null), [f,
|
|
2233
|
+
), d = de(null), [f, h] = F(t ?? !1);
|
|
2234
2234
|
q(() => {
|
|
2235
|
-
t &&
|
|
2235
|
+
t && h(t);
|
|
2236
2236
|
}, [t]);
|
|
2237
2237
|
const g = A(
|
|
2238
2238
|
(m, w) => {
|
|
2239
2239
|
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(w));
|
|
2240
2240
|
},
|
|
2241
2241
|
[l, i]
|
|
2242
|
-
),
|
|
2243
|
-
l(void 0),
|
|
2244
|
-
}, [
|
|
2242
|
+
), v = A(() => {
|
|
2243
|
+
l(void 0), h(!1), i && i(!1);
|
|
2244
|
+
}, [h, l, i]), p = Le(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m, w) => {
|
|
2245
2245
|
let j = m.label || "";
|
|
2246
2246
|
return m.setLabel && r && (j = m.setLabel(r)), {
|
|
2247
2247
|
id: w,
|
|
@@ -2254,7 +2254,7 @@ const ms = Tn.div`
|
|
|
2254
2254
|
disabled: r && m.disabled ? m.disabled(r) : !1,
|
|
2255
2255
|
sizeIcon: je.LARGE,
|
|
2256
2256
|
onClick: (b) => {
|
|
2257
|
-
b.stopPropagation(),
|
|
2257
|
+
b.stopPropagation(), v(), m.onClick && r && m.onClick(r);
|
|
2258
2258
|
},
|
|
2259
2259
|
title: j
|
|
2260
2260
|
},
|
|
@@ -2293,10 +2293,10 @@ const ms = Tn.div`
|
|
|
2293
2293
|
position: c,
|
|
2294
2294
|
show: f,
|
|
2295
2295
|
ref: s,
|
|
2296
|
-
closeOverlay:
|
|
2296
|
+
closeOverlay: v,
|
|
2297
2297
|
coordonnees: n,
|
|
2298
2298
|
referenceElement: d.current,
|
|
2299
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
|
|
2299
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ma, { className: "card-action-menu", items: p }) })
|
|
2300
2300
|
}
|
|
2301
2301
|
)
|
|
2302
2302
|
] });
|
|
@@ -2310,20 +2310,20 @@ const ms = Tn.div`
|
|
|
2310
2310
|
positionOverlay: s,
|
|
2311
2311
|
children: c
|
|
2312
2312
|
}) => {
|
|
2313
|
-
const [l, d] = F(!1), [f,
|
|
2313
|
+
const [l, d] = F(!1), [f, h] = F(!1), [g, v] = F(), p = (w, j) => {
|
|
2314
2314
|
w.stopPropagation(), a && a(j);
|
|
2315
2315
|
}, m = A(
|
|
2316
2316
|
(w, j) => {
|
|
2317
2317
|
if (w.stopPropagation(), f)
|
|
2318
|
-
return
|
|
2319
|
-
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!l), n && w.button !== 2 ? n(j) : (
|
|
2318
|
+
return v(void 0), h(!1);
|
|
2319
|
+
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!l), n && w.button !== 2 ? n(j) : (v({ top: w.clientY, left: w.clientX }), h(!0)));
|
|
2320
2320
|
},
|
|
2321
2321
|
[
|
|
2322
2322
|
d,
|
|
2323
|
-
|
|
2323
|
+
v,
|
|
2324
2324
|
n,
|
|
2325
2325
|
f,
|
|
2326
|
-
|
|
2326
|
+
h,
|
|
2327
2327
|
l
|
|
2328
2328
|
]
|
|
2329
2329
|
);
|
|
@@ -2357,7 +2357,7 @@ const ms = Tn.div`
|
|
|
2357
2357
|
ps,
|
|
2358
2358
|
{
|
|
2359
2359
|
openActions: f,
|
|
2360
|
-
setOpenActions:
|
|
2360
|
+
setOpenActions: h,
|
|
2361
2361
|
actions: t,
|
|
2362
2362
|
item: e,
|
|
2363
2363
|
positions: g,
|
|
@@ -2406,12 +2406,12 @@ const ms = Tn.div`
|
|
|
2406
2406
|
p.preventDefault(), i((m) => Math.max(m - r, 0));
|
|
2407
2407
|
},
|
|
2408
2408
|
[i]
|
|
2409
|
-
),
|
|
2409
|
+
), h = a + r >= s - c + 1, g = s <= c, v = a <= 0;
|
|
2410
2410
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2411
2411
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2412
2412
|
"div",
|
|
2413
2413
|
{
|
|
2414
|
-
className: `carousel-control prev ${
|
|
2414
|
+
className: `carousel-control prev ${v && "disabled"}`,
|
|
2415
2415
|
onClick: f,
|
|
2416
2416
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-left" })
|
|
2417
2417
|
}
|
|
@@ -2441,7 +2441,7 @@ const ms = Tn.div`
|
|
|
2441
2441
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2442
2442
|
"div",
|
|
2443
2443
|
{
|
|
2444
|
-
className: `carousel-control next ${
|
|
2444
|
+
className: `carousel-control next ${h && "disabled"}`,
|
|
2445
2445
|
onClick: d,
|
|
2446
2446
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-right" })
|
|
2447
2447
|
}
|
|
@@ -2459,26 +2459,26 @@ const ms = Tn.div`
|
|
|
2459
2459
|
page: n = 1,
|
|
2460
2460
|
onClick: a
|
|
2461
2461
|
}) => {
|
|
2462
|
-
const i =
|
|
2462
|
+
const i = Le(() => e ?? 9, [e]), s = Le(() => t ?? 9, [t]), [c, l] = F(1);
|
|
2463
2463
|
q(() => {
|
|
2464
2464
|
l(n);
|
|
2465
2465
|
}, [n]);
|
|
2466
|
-
const d =
|
|
2466
|
+
const d = Le(() => {
|
|
2467
2467
|
const f = [];
|
|
2468
|
-
for (let
|
|
2468
|
+
for (let h = 0; h < s; h++) {
|
|
2469
2469
|
const g = [];
|
|
2470
|
-
for (let
|
|
2471
|
-
const p =
|
|
2470
|
+
for (let v = 0; v < i; v++) {
|
|
2471
|
+
const p = v + h * i, m = r == null ? void 0 : r.find(
|
|
2472
2472
|
(w) => w.position === p + 1
|
|
2473
2473
|
);
|
|
2474
2474
|
m ? g.push(
|
|
2475
|
-
/* @__PURE__ */ o.jsx(gs, { onClick: a, cell: m }, `${
|
|
2475
|
+
/* @__PURE__ */ o.jsx(gs, { onClick: a, cell: m }, `${h}-${v}`)
|
|
2476
2476
|
) : g.push(
|
|
2477
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2477
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${h}-${v}`)
|
|
2478
2478
|
);
|
|
2479
2479
|
}
|
|
2480
2480
|
f.push(
|
|
2481
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children: g },
|
|
2481
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: g }, h)
|
|
2482
2482
|
);
|
|
2483
2483
|
}
|
|
2484
2484
|
return f;
|
|
@@ -2499,9 +2499,9 @@ const wr = nt(
|
|
|
2499
2499
|
minLength: l,
|
|
2500
2500
|
maxLength: d,
|
|
2501
2501
|
autoFocus: f = !1,
|
|
2502
|
-
disabled:
|
|
2502
|
+
disabled: h = !1,
|
|
2503
2503
|
required: g = !1,
|
|
2504
|
-
autoComplete:
|
|
2504
|
+
autoComplete: v,
|
|
2505
2505
|
tabIndex: p = 0,
|
|
2506
2506
|
step: m,
|
|
2507
2507
|
checked: w,
|
|
@@ -2524,9 +2524,9 @@ const wr = nt(
|
|
|
2524
2524
|
spellCheck: "false",
|
|
2525
2525
|
value: n,
|
|
2526
2526
|
placeholder: i,
|
|
2527
|
-
disabled:
|
|
2527
|
+
disabled: h,
|
|
2528
2528
|
required: g,
|
|
2529
|
-
autoComplete:
|
|
2529
|
+
autoComplete: v ?? "new-password",
|
|
2530
2530
|
step: m,
|
|
2531
2531
|
tabIndex: p,
|
|
2532
2532
|
autoFocus: f,
|
|
@@ -2634,10 +2634,10 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2634
2634
|
name: l,
|
|
2635
2635
|
onChange: d,
|
|
2636
2636
|
onChangeMultiple: f,
|
|
2637
|
-
value:
|
|
2637
|
+
value: h,
|
|
2638
2638
|
placeholder: g
|
|
2639
2639
|
}) => {
|
|
2640
|
-
const
|
|
2640
|
+
const v = de({}), p = (w) => {
|
|
2641
2641
|
let j;
|
|
2642
2642
|
i ? (j = Array.from(
|
|
2643
2643
|
w.target.selectedOptions,
|
|
@@ -2657,17 +2657,17 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2657
2657
|
disabled: a,
|
|
2658
2658
|
id: `select-${e}`,
|
|
2659
2659
|
className: "select-container-select",
|
|
2660
|
-
value:
|
|
2660
|
+
value: h ?? c ?? (i ? [] : ""),
|
|
2661
2661
|
onChange: p,
|
|
2662
2662
|
multiple: i,
|
|
2663
|
-
ref: (w) =>
|
|
2663
|
+
ref: (w) => v.current[e ?? "select"] = w,
|
|
2664
2664
|
children: [
|
|
2665
2665
|
g && !c && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2666
2666
|
r.map((w, j) => /* @__PURE__ */ o.jsx("option", { value: w.value, children: w.label }, j))
|
|
2667
2667
|
]
|
|
2668
2668
|
}
|
|
2669
2669
|
),
|
|
2670
|
-
|
|
2670
|
+
h !== "" && g && /* @__PURE__ */ o.jsx(
|
|
2671
2671
|
"div",
|
|
2672
2672
|
{
|
|
2673
2673
|
className: "clear-btn",
|
|
@@ -2714,7 +2714,7 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2714
2714
|
`row-${e.id}-${t}`
|
|
2715
2715
|
);
|
|
2716
2716
|
};
|
|
2717
|
-
function
|
|
2717
|
+
function Ll(e) {
|
|
2718
2718
|
const {
|
|
2719
2719
|
id: t,
|
|
2720
2720
|
name: r,
|
|
@@ -2726,9 +2726,9 @@ function Ml(e) {
|
|
|
2726
2726
|
columns: l = [],
|
|
2727
2727
|
loading: d,
|
|
2728
2728
|
onRowClick: f,
|
|
2729
|
-
onColumnClick:
|
|
2729
|
+
onColumnClick: h,
|
|
2730
2730
|
onLoadMore: g,
|
|
2731
|
-
emptyMessage:
|
|
2731
|
+
emptyMessage: v,
|
|
2732
2732
|
hasMore: p,
|
|
2733
2733
|
onSelectionChange: m,
|
|
2734
2734
|
hideToggleAll: w = !1,
|
|
@@ -2759,19 +2759,19 @@ function Ml(e) {
|
|
|
2759
2759
|
), W = A(
|
|
2760
2760
|
(y, E) => {
|
|
2761
2761
|
y.stopPropagation();
|
|
2762
|
-
const I = b ? b(E) : E.id ?? E,
|
|
2763
|
-
if (
|
|
2764
|
-
|
|
2762
|
+
const I = b ? b(E) : E.id ?? E, L = new Set(S);
|
|
2763
|
+
if (L.has(I))
|
|
2764
|
+
L.delete(I);
|
|
2765
2765
|
else {
|
|
2766
|
-
if (j &&
|
|
2766
|
+
if (j && L.size >= j)
|
|
2767
2767
|
return;
|
|
2768
|
-
|
|
2768
|
+
L.add(I);
|
|
2769
2769
|
}
|
|
2770
|
-
R(
|
|
2771
|
-
const
|
|
2772
|
-
(X) =>
|
|
2770
|
+
R(L);
|
|
2771
|
+
const M = s.filter(
|
|
2772
|
+
(X) => L.has(b ? b(X) : X.id ?? X)
|
|
2773
2773
|
);
|
|
2774
|
-
m == null || m(
|
|
2774
|
+
m == null || m(M);
|
|
2775
2775
|
},
|
|
2776
2776
|
[s, b, j, m, S]
|
|
2777
2777
|
);
|
|
@@ -2817,7 +2817,7 @@ function Ml(e) {
|
|
|
2817
2817
|
{
|
|
2818
2818
|
column: y,
|
|
2819
2819
|
idx: E,
|
|
2820
|
-
onColumnClick:
|
|
2820
|
+
onColumnClick: h
|
|
2821
2821
|
},
|
|
2822
2822
|
E
|
|
2823
2823
|
)),
|
|
@@ -2857,15 +2857,15 @@ function Ml(e) {
|
|
|
2857
2857
|
onChange: (I) => W(I, y)
|
|
2858
2858
|
}
|
|
2859
2859
|
) }),
|
|
2860
|
-
l.map((I,
|
|
2861
|
-
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((I,
|
|
2860
|
+
l.map((I, L) => /* @__PURE__ */ o.jsx(ws, { column: I, idx: L, row: y }, L)),
|
|
2861
|
+
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((I, L) => /* @__PURE__ */ o.jsx(
|
|
2862
2862
|
ys,
|
|
2863
2863
|
{
|
|
2864
2864
|
action: I,
|
|
2865
2865
|
row: y,
|
|
2866
|
-
index:
|
|
2866
|
+
index: L
|
|
2867
2867
|
},
|
|
2868
|
-
|
|
2868
|
+
L
|
|
2869
2869
|
)) }) })
|
|
2870
2870
|
] }, E)),
|
|
2871
2871
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
@@ -2873,7 +2873,7 @@ function Ml(e) {
|
|
|
2873
2873
|
{
|
|
2874
2874
|
columns: l,
|
|
2875
2875
|
actions: c,
|
|
2876
|
-
emptyMessage:
|
|
2876
|
+
emptyMessage: v
|
|
2877
2877
|
}
|
|
2878
2878
|
)
|
|
2879
2879
|
] })
|
|
@@ -2923,25 +2923,25 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
|
|
|
2923
2923
|
};
|
|
2924
2924
|
(function(e, t) {
|
|
2925
2925
|
var r = ar && ar.__awaiter || function(s, c, l, d) {
|
|
2926
|
-
return new (l || (l = Promise))(function(f,
|
|
2926
|
+
return new (l || (l = Promise))(function(f, h) {
|
|
2927
2927
|
function g(m) {
|
|
2928
2928
|
try {
|
|
2929
2929
|
p(d.next(m));
|
|
2930
2930
|
} catch (w) {
|
|
2931
|
-
|
|
2931
|
+
h(w);
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function v(m) {
|
|
2935
2935
|
try {
|
|
2936
2936
|
p(d.throw(m));
|
|
2937
2937
|
} catch (w) {
|
|
2938
|
-
|
|
2938
|
+
h(w);
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
2941
|
function p(m) {
|
|
2942
2942
|
m.done ? f(m.value) : new l(function(w) {
|
|
2943
2943
|
w(m.value);
|
|
2944
|
-
}).then(g,
|
|
2944
|
+
}).then(g, v);
|
|
2945
2945
|
}
|
|
2946
2946
|
p((d = d.apply(s, c || [])).next());
|
|
2947
2947
|
});
|
|
@@ -2952,7 +2952,7 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
|
|
|
2952
2952
|
const a = n(Ps);
|
|
2953
2953
|
function i(s, c = "maxAge") {
|
|
2954
2954
|
let l, d, f;
|
|
2955
|
-
const
|
|
2955
|
+
const h = () => r(this, void 0, void 0, function* () {
|
|
2956
2956
|
if (l !== void 0)
|
|
2957
2957
|
return;
|
|
2958
2958
|
const p = (m) => r(this, void 0, void 0, function* () {
|
|
@@ -2974,12 +2974,12 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
|
|
|
2974
2974
|
l = void 0;
|
|
2975
2975
|
}), g = () => {
|
|
2976
2976
|
l = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
2977
|
-
},
|
|
2977
|
+
}, v = s.set.bind(s);
|
|
2978
2978
|
return s.set = (p, m) => {
|
|
2979
2979
|
s.has(p) && s.delete(p);
|
|
2980
|
-
const w =
|
|
2981
|
-
return l && l === p && g(),
|
|
2982
|
-
},
|
|
2980
|
+
const w = v(p, m);
|
|
2981
|
+
return l && l === p && g(), h(), w;
|
|
2982
|
+
}, h(), s;
|
|
2983
2983
|
}
|
|
2984
2984
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
2985
2985
|
})(un, un.exports);
|
|
@@ -3025,10 +3025,10 @@ const vo = /* @__PURE__ */ Go(Is);
|
|
|
3025
3025
|
function $s(e) {
|
|
3026
3026
|
return typeof e == "string";
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3028
|
+
function Ls(e, t, r) {
|
|
3029
3029
|
return r.indexOf(e) === t;
|
|
3030
3030
|
}
|
|
3031
|
-
function
|
|
3031
|
+
function Ms(e) {
|
|
3032
3032
|
return e.toLowerCase() === e;
|
|
3033
3033
|
}
|
|
3034
3034
|
function ga(e) {
|
|
@@ -3047,7 +3047,7 @@ function dn(e) {
|
|
|
3047
3047
|
var n = e.split("@")[0], r = n === void 0 ? "" : n;
|
|
3048
3048
|
return dn(r);
|
|
3049
3049
|
}
|
|
3050
|
-
if (e.indexOf("-") === -1 || !
|
|
3050
|
+
if (e.indexOf("-") === -1 || !Ms(e))
|
|
3051
3051
|
return e;
|
|
3052
3052
|
var a = e.split("-"), i = a[0], s = a[1], c = s === void 0 ? "" : s;
|
|
3053
3053
|
return "".concat(i, "-").concat(c.toUpperCase());
|
|
@@ -3056,13 +3056,13 @@ function Fs(e) {
|
|
|
3056
3056
|
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 = [];
|
|
3057
3057
|
if (typeof navigator < "u") {
|
|
3058
3058
|
for (var c = navigator.languages || [], l = [], d = 0, f = c; d < f.length; d++) {
|
|
3059
|
-
var
|
|
3060
|
-
l = l.concat(ga(
|
|
3059
|
+
var h = f[d];
|
|
3060
|
+
l = l.concat(ga(h));
|
|
3061
3061
|
}
|
|
3062
|
-
var g = navigator.language,
|
|
3063
|
-
s = s.concat(l,
|
|
3062
|
+
var g = navigator.language, v = g && ga(g);
|
|
3063
|
+
s = s.concat(l, v);
|
|
3064
3064
|
}
|
|
3065
|
-
return n && s.push(i), s.filter($s).map(dn).filter(
|
|
3065
|
+
return n && s.push(i), s.filter($s).map(dn).filter(Ls);
|
|
3066
3066
|
}
|
|
3067
3067
|
var Ws = vo(Fs, { cacheKey: JSON.stringify });
|
|
3068
3068
|
function Vs(e) {
|
|
@@ -3120,8 +3120,8 @@ function St(e) {
|
|
|
3120
3120
|
var t = Q(e), r = /* @__PURE__ */ new Date();
|
|
3121
3121
|
return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3122
3122
|
}
|
|
3123
|
-
var wo = Fe(Q, St, -1),
|
|
3124
|
-
function
|
|
3123
|
+
var wo = Fe(Q, St, -1), Ln = Fe(Q, St, 1), Ar = Bt(Ln), jo = Fe(Q, Ar, -1), Us = Ut(St, Ar);
|
|
3124
|
+
function Mn(e, t) {
|
|
3125
3125
|
return function(n, a) {
|
|
3126
3126
|
a === void 0 && (a = t);
|
|
3127
3127
|
var i = Q(n), s = Ue(n) + a, c = /* @__PURE__ */ new Date();
|
|
@@ -3132,7 +3132,7 @@ function at(e) {
|
|
|
3132
3132
|
var t = Q(e), r = Ue(e), n = /* @__PURE__ */ new Date();
|
|
3133
3133
|
return n.setFullYear(t, r, 1), n.setHours(0, 0, 0, 0), n;
|
|
3134
3134
|
}
|
|
3135
|
-
var So =
|
|
3135
|
+
var So = Mn(at, -1), Fn = Mn(at, 1), zt = Bt(Fn), Do = Mn(zt, -1), zs = Ut(at, zt);
|
|
3136
3136
|
function Gs(e, t) {
|
|
3137
3137
|
return function(n, a) {
|
|
3138
3138
|
a === void 0 && (a = t);
|
|
@@ -3297,7 +3297,7 @@ function Eo(e, t) {
|
|
|
3297
3297
|
case "decade":
|
|
3298
3298
|
return $n(t);
|
|
3299
3299
|
case "year":
|
|
3300
|
-
return
|
|
3300
|
+
return Ln(t);
|
|
3301
3301
|
case "month":
|
|
3302
3302
|
return Fn(t);
|
|
3303
3303
|
default:
|
|
@@ -3321,7 +3321,7 @@ function gc(e, t) {
|
|
|
3321
3321
|
case "decade":
|
|
3322
3322
|
return $n(t, 100);
|
|
3323
3323
|
case "year":
|
|
3324
|
-
return
|
|
3324
|
+
return Ln(t, 10);
|
|
3325
3325
|
case "month":
|
|
3326
3326
|
return Fn(t, 12);
|
|
3327
3327
|
default:
|
|
@@ -3422,7 +3422,7 @@ function Po(e, t) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
var Pe = "react-calendar__navigation";
|
|
3424
3424
|
function Sc(e) {
|
|
3425
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel,
|
|
3425
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f, g = e.navigationAriaLive, v = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, w = e.next2Label, j = w === void 0 ? "»" : w, b = e.nextAriaLabel, D = b === void 0 ? "" : b, S = e.nextLabel, R = S === void 0 ? "›" : S, C = e.prev2AriaLabel, P = C === void 0 ? "" : C, W = e.prev2Label, y = W === void 0 ? "«" : W, E = e.prevAriaLabel, I = E === void 0 ? "" : E, L = e.prevLabel, M = L === void 0 ? "‹" : L, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ae = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), se = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
|
|
3426
3426
|
if (K.getFullYear() < 0)
|
|
3427
3427
|
return !0;
|
|
3428
3428
|
var te = yc(re, t);
|
|
@@ -3460,7 +3460,7 @@ function Sc(e) {
|
|
|
3460
3460
|
throw new Error("Invalid view: ".concat(re, "."));
|
|
3461
3461
|
}
|
|
3462
3462
|
}();
|
|
3463
|
-
return
|
|
3463
|
+
return v ? v({
|
|
3464
3464
|
date: te,
|
|
3465
3465
|
label: Ce,
|
|
3466
3466
|
locale: c || mo() || void 0,
|
|
@@ -3469,9 +3469,9 @@ function Sc(e) {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
function Dt() {
|
|
3471
3471
|
var te = "".concat(Pe, "__label");
|
|
3472
|
-
return o.jsxs("button", { "aria-label":
|
|
3472
|
+
return o.jsxs("button", { "aria-label": h, "aria-live": g, className: te, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children: fe(t) }), ve ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(te, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--to"), children: fe(Z) })] }) : null] });
|
|
3473
3473
|
}
|
|
3474
|
-
return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": P, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null,
|
|
3474
|
+
return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": P, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, M !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: ce, type: "button", children: M }), Dt(), R !== null && o.jsx("button", { "aria-label": D, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: R }), j !== null && ee ? o.jsx("button", { "aria-label": m, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
|
|
3475
3475
|
}
|
|
3476
3476
|
var ft = function() {
|
|
3477
3477
|
return ft = Object.assign || function(e) {
|
|
@@ -3495,14 +3495,14 @@ function xa(e) {
|
|
|
3495
3495
|
function Yn(e) {
|
|
3496
3496
|
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, c = e.wrap, l = Dc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3497
3497
|
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap: c ? "wrap" : "nowrap" }, s) }, l, { children: Uo.map(t, function(d, f) {
|
|
3498
|
-
var
|
|
3498
|
+
var h = i && f === 0 ? xa(100 * i / n) : null;
|
|
3499
3499
|
return zo(d, ft(ft({}, d.props), { style: {
|
|
3500
3500
|
flexBasis: xa(100 / n),
|
|
3501
3501
|
flexShrink: 0,
|
|
3502
3502
|
flexGrow: 0,
|
|
3503
3503
|
overflow: "hidden",
|
|
3504
|
-
marginLeft:
|
|
3505
|
-
marginInlineStart:
|
|
3504
|
+
marginLeft: h,
|
|
3505
|
+
marginInlineStart: h,
|
|
3506
3506
|
marginInlineEnd: 0
|
|
3507
3507
|
} }));
|
|
3508
3508
|
}) }));
|
|
@@ -3540,40 +3540,40 @@ function kc(e) {
|
|
|
3540
3540
|
var s = /* @__PURE__ */ new Date(), c = function() {
|
|
3541
3541
|
if (Array.isArray(r))
|
|
3542
3542
|
return r;
|
|
3543
|
-
var
|
|
3544
|
-
if (!
|
|
3543
|
+
var v = e.dateType;
|
|
3544
|
+
if (!v)
|
|
3545
3545
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
3546
|
-
return ba(
|
|
3546
|
+
return ba(v, r);
|
|
3547
3547
|
}();
|
|
3548
3548
|
if (Vt(s, c) && i.push("".concat(a, "--now")), !t || !Ec(t))
|
|
3549
3549
|
return i;
|
|
3550
3550
|
var l = function() {
|
|
3551
3551
|
if (Array.isArray(t))
|
|
3552
3552
|
return t;
|
|
3553
|
-
var
|
|
3554
|
-
if (!
|
|
3553
|
+
var v = e.valueType;
|
|
3554
|
+
if (!v)
|
|
3555
3555
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
3556
|
-
return ba(
|
|
3556
|
+
return ba(v, t);
|
|
3557
3557
|
}();
|
|
3558
3558
|
Nc(l, c) ? i.push("".concat(a, "--active")) : Ro(l, c) && i.push("".concat(a, "--hasActive"));
|
|
3559
3559
|
var d = wa(l, c, "".concat(a, "--range"));
|
|
3560
3560
|
i.push.apply(i, d);
|
|
3561
3561
|
var f = Array.isArray(t) ? t : [t];
|
|
3562
3562
|
if (n && f.length === 1) {
|
|
3563
|
-
var
|
|
3563
|
+
var h = n > l[0] ? [l[0], n] : [n, l[0]], g = wa(h, c, "".concat(a, "--hover"));
|
|
3564
3564
|
i.push.apply(i, g);
|
|
3565
3565
|
}
|
|
3566
3566
|
return i;
|
|
3567
3567
|
}
|
|
3568
3568
|
function $r(e) {
|
|
3569
|
-
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,
|
|
3569
|
+
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, h = e.step, g = h === void 0 ? 1 : h, v = e.value, p = e.valueType, m = [], w = f; w <= s; w += g) {
|
|
3570
3570
|
var j = a(w);
|
|
3571
3571
|
m.push(d({
|
|
3572
3572
|
classes: kc({
|
|
3573
3573
|
date: j,
|
|
3574
3574
|
dateType: i,
|
|
3575
3575
|
hover: c,
|
|
3576
|
-
value:
|
|
3576
|
+
value: v,
|
|
3577
3577
|
valueType: p
|
|
3578
3578
|
}),
|
|
3579
3579
|
date: j
|
|
@@ -3581,21 +3581,21 @@ function $r(e) {
|
|
|
3581
3581
|
}
|
|
3582
3582
|
return o.jsx(Yn, { className: t, count: n, offset: l, wrap: !0, children: m });
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3585
|
-
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,
|
|
3584
|
+
function Lr(e) {
|
|
3585
|
+
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, h = e.onClick, g = e.onMouseOver, v = e.style, p = e.tileClassName, m = e.tileContent, w = e.tileDisabled, j = e.view, b = Le(function() {
|
|
3586
3586
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3587
3587
|
return typeof p == "function" ? p(S) : p;
|
|
3588
|
-
}, [t, a, p, j]), D =
|
|
3588
|
+
}, [t, a, p, j]), D = Le(function() {
|
|
3589
3589
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3590
3590
|
return typeof m == "function" ? m(S) : m;
|
|
3591
3591
|
}, [t, a, m, j]);
|
|
3592
|
-
return o.jsxs("button", { className: Pr(n, b), disabled: d && f(d) > a || c && l(c) < a || (w == null ? void 0 : w({ activeStartDate: t, date: a, view: j })), onClick:
|
|
3593
|
-
return
|
|
3592
|
+
return o.jsxs("button", { className: Pr(n, b), disabled: d && f(d) > a || c && l(c) < a || (w == null ? void 0 : w({ activeStartDate: t, date: a, view: j })), onClick: h ? function(S) {
|
|
3593
|
+
return h(a, S);
|
|
3594
3594
|
} : void 0, onFocus: g ? function() {
|
|
3595
3595
|
return g(a);
|
|
3596
3596
|
} : void 0, onMouseOver: g ? function() {
|
|
3597
3597
|
return g(a);
|
|
3598
|
-
} : void 0, style:
|
|
3598
|
+
} : void 0, style: v, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, D] });
|
|
3599
3599
|
}
|
|
3600
3600
|
var hn = function() {
|
|
3601
3601
|
return hn = Object.assign || function(e) {
|
|
@@ -3615,7 +3615,7 @@ var hn = function() {
|
|
|
3615
3615
|
}, ja = "react-calendar__century-view__decades__decade";
|
|
3616
3616
|
function Cc(e) {
|
|
3617
3617
|
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = _c(e, ["classes", "currentCentury", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3618
|
-
return r && d.push.apply(d, r), d.push(ja), jt(c).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(
|
|
3618
|
+
return r && d.push.apply(d, r), d.push(ja), jt(c).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Lr, hn({}, s, { classes: d, maxDateTransform: Tr, minDateTransform: ze, view: "century", children: Co(l, i, c) }));
|
|
3619
3619
|
}
|
|
3620
3620
|
var vn = function() {
|
|
3621
3621
|
return vn = Object.assign || function(e) {
|
|
@@ -3636,8 +3636,8 @@ var vn = function() {
|
|
|
3636
3636
|
function Pc(e) {
|
|
3637
3637
|
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 = fc(t), l = c + (n ? 119 : 99);
|
|
3638
3638
|
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: ze, dateType: "decade", end: l, hover: r, renderTile: function(d) {
|
|
3639
|
-
var f = d.date,
|
|
3640
|
-
return o.jsx(Cc, vn({}, s,
|
|
3639
|
+
var f = d.date, h = Sa(d, ["date"]);
|
|
3640
|
+
return o.jsx(Cc, vn({}, s, h, { activeStartDate: t, currentCentury: c, date: f }), f.getTime());
|
|
3641
3641
|
}, start: c, step: 10, value: a, valueType: i });
|
|
3642
3642
|
}
|
|
3643
3643
|
var mn = function() {
|
|
@@ -3673,7 +3673,7 @@ var pn = function() {
|
|
|
3673
3673
|
}, Da = "react-calendar__decade-view__years__year";
|
|
3674
3674
|
function Ac(e) {
|
|
3675
3675
|
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Tc(e, ["classes", "currentDecade", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3676
|
-
return r && d.push.apply(d, r), d.push(Da), ze(c).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(
|
|
3676
|
+
return r && d.push.apply(d, r), d.push(Da), ze(c).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(Lr, pn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: St, view: "decade", children: i(l, c) }));
|
|
3677
3677
|
}
|
|
3678
3678
|
var gn = function() {
|
|
3679
3679
|
return gn = Object.assign || function(e) {
|
|
@@ -3694,8 +3694,8 @@ var gn = function() {
|
|
|
3694
3694
|
function Ic(e) {
|
|
3695
3695
|
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 = hc(t), l = c + (n ? 11 : 9);
|
|
3696
3696
|
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: St, dateType: "year", end: l, hover: r, renderTile: function(d) {
|
|
3697
|
-
var f = d.date,
|
|
3698
|
-
return o.jsx(Ac, gn({}, s,
|
|
3697
|
+
var f = d.date, h = Oa(d, ["date"]);
|
|
3698
|
+
return o.jsx(Ac, gn({}, s, h, { activeStartDate: t, currentDecade: c, date: f }), f.getTime());
|
|
3699
3699
|
}, start: c, value: a, valueType: i });
|
|
3700
3700
|
}
|
|
3701
3701
|
var yn = function() {
|
|
@@ -3721,7 +3721,7 @@ var bn = function() {
|
|
|
3721
3721
|
}
|
|
3722
3722
|
return e;
|
|
3723
3723
|
}, bn.apply(this, arguments);
|
|
3724
|
-
},
|
|
3724
|
+
}, Lc = function(e, t) {
|
|
3725
3725
|
var r = {};
|
|
3726
3726
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3727
3727
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3732,10 +3732,10 @@ var bn = function() {
|
|
|
3732
3732
|
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
3733
3733
|
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
3734
3734
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3735
|
-
},
|
|
3735
|
+
}, Mc = "react-calendar__year-view__months__month";
|
|
3736
3736
|
function Fc(e) {
|
|
3737
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? sc : n, i = e.formatMonthYear, s = i === void 0 ? No : i, c =
|
|
3738
|
-
return o.jsx(
|
|
3737
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? sc : n, i = e.formatMonthYear, s = i === void 0 ? No : i, c = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), l = c.date, d = c.locale;
|
|
3738
|
+
return o.jsx(Lr, bn({}, c, { classes: Na(Na([], r, !0), [Mc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: at, view: "year", children: a(d, l) }));
|
|
3739
3739
|
}
|
|
3740
3740
|
var xn = function() {
|
|
3741
3741
|
return xn = Object.assign || function(e) {
|
|
@@ -3759,8 +3759,8 @@ function Wc(e) {
|
|
|
3759
3759
|
var f = /* @__PURE__ */ new Date();
|
|
3760
3760
|
return f.setFullYear(l, d, 1), at(f);
|
|
3761
3761
|
}, dateType: "month", end: c, hover: r, renderTile: function(d) {
|
|
3762
|
-
var f = d.date,
|
|
3763
|
-
return o.jsx(Fc, xn({}, i,
|
|
3762
|
+
var f = d.date, h = Ea(d, ["date"]);
|
|
3763
|
+
return o.jsx(Fc, xn({}, i, h, { activeStartDate: t, date: f }), f.getTime());
|
|
3764
3764
|
}, start: s, value: n, valueType: a });
|
|
3765
3765
|
}
|
|
3766
3766
|
var wn = function() {
|
|
@@ -3795,8 +3795,8 @@ var jn = function() {
|
|
|
3795
3795
|
return r;
|
|
3796
3796
|
}, Jr = "react-calendar__month-view__days__day";
|
|
3797
3797
|
function Bc(e) {
|
|
3798
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? oc : i, c = e.formatLongDate, l = c === void 0 ? ic : c, d = Yc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date,
|
|
3799
|
-
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(
|
|
3798
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? oc : i, c = e.formatLongDate, l = c === void 0 ? ic : c, d = Yc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, h = d.locale, g = [];
|
|
3799
|
+
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Lr, jn({}, d, { classes: g, formatAbbr: l, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(h, f) }));
|
|
3800
3800
|
}
|
|
3801
3801
|
var Sn = function() {
|
|
3802
3802
|
return Sn = Object.assign || function(e) {
|
|
@@ -3815,7 +3815,7 @@ var Sn = function() {
|
|
|
3815
3815
|
return r;
|
|
3816
3816
|
};
|
|
3817
3817
|
function Uc(e) {
|
|
3818
|
-
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 = Ue(t),
|
|
3818
|
+
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 = Ue(t), h = a || i, g = Wt(t, r), v = h ? 0 : g, p = (h ? -g : 0) + 1, m = function() {
|
|
3819
3819
|
if (a)
|
|
3820
3820
|
return p + 6 * 7 - 1;
|
|
3821
3821
|
var w = Oo(t);
|
|
@@ -3833,13 +3833,13 @@ function Uc(e) {
|
|
|
3833
3833
|
}, dateType: "day", hover: n, end: m, renderTile: function(w) {
|
|
3834
3834
|
var j = w.date, b = ka(w, ["date"]);
|
|
3835
3835
|
return o.jsx(Bc, Sn({}, l, b, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
3836
|
-
}, offset:
|
|
3836
|
+
}, offset: v, start: p, value: s, valueType: c });
|
|
3837
3837
|
}
|
|
3838
3838
|
var To = "react-calendar__month-view__weekdays", Qr = "".concat(To, "__weekday");
|
|
3839
3839
|
function zc(e) {
|
|
3840
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? cc : r, a = e.formatWeekday, i = a === void 0 ? lc : a, s = e.locale, c = e.onMouseLeave, l = /* @__PURE__ */ new Date(), d = at(l), f = Q(d),
|
|
3841
|
-
var p = new Date(f,
|
|
3842
|
-
g.push(o.jsx("div", { className: Pr(Qr, jc(p) && "".concat(Qr, "--current"), Po(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, p).replace(".", "") }) },
|
|
3840
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? cc : r, a = e.formatWeekday, i = a === void 0 ? lc : a, s = e.locale, c = e.onMouseLeave, l = /* @__PURE__ */ new Date(), d = at(l), f = Q(d), h = Ue(d), g = [], v = 1; v <= 7; v += 1) {
|
|
3841
|
+
var p = new Date(f, h, v - Wt(d, t)), m = i(s, p);
|
|
3842
|
+
g.push(o.jsx("div", { className: Pr(Qr, jc(p) && "".concat(Qr, "--current"), Po(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, p).replace(".", "") }) }, v));
|
|
3843
3843
|
}
|
|
3844
3844
|
return o.jsx(Yn, { className: To, count: 7, onFocus: c, onMouseOver: c, children: g });
|
|
3845
3845
|
}
|
|
@@ -3876,20 +3876,20 @@ function Hc(e) {
|
|
|
3876
3876
|
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, i = e.showFixedNumberOfWeeks, s = function() {
|
|
3877
3877
|
if (i)
|
|
3878
3878
|
return 6;
|
|
3879
|
-
var d = Oo(t), f = Wt(t, r),
|
|
3880
|
-
return 1 + Math.ceil(
|
|
3879
|
+
var d = Oo(t), f = Wt(t, r), h = d - (7 - f);
|
|
3880
|
+
return 1 + Math.ceil(h / 7);
|
|
3881
3881
|
}(), c = function() {
|
|
3882
|
-
for (var d = Q(t), f = Ue(t),
|
|
3883
|
-
g.push(fn(new Date(d, f,
|
|
3882
|
+
for (var d = Q(t), f = Ue(t), h = Rr(t), g = [], v = 0; v < s; v += 1)
|
|
3883
|
+
g.push(fn(new Date(d, f, h + v * 7), r));
|
|
3884
3884
|
return g;
|
|
3885
3885
|
}(), l = c.map(function(d) {
|
|
3886
3886
|
return vc(d, r);
|
|
3887
3887
|
});
|
|
3888
3888
|
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) {
|
|
3889
|
-
var
|
|
3890
|
-
if (!
|
|
3889
|
+
var h = c[f];
|
|
3890
|
+
if (!h)
|
|
3891
3891
|
throw new Error("date is not defined");
|
|
3892
|
-
return o.jsx(Gc, { date:
|
|
3892
|
+
return o.jsx(Gc, { date: h, onClickWeekNumber: n, weekNumber: d }, d);
|
|
3893
3893
|
}) });
|
|
3894
3894
|
}
|
|
3895
3895
|
var Dn = function() {
|
|
@@ -3918,21 +3918,21 @@ function Xc(e) {
|
|
|
3918
3918
|
return ue.ISO_8601;
|
|
3919
3919
|
}
|
|
3920
3920
|
function Kc(e) {
|
|
3921
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Xc(r) : i, c = e.formatShortWeekday, l = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers,
|
|
3921
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Xc(r) : i, c = e.formatShortWeekday, l = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, h = qc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
3922
3922
|
function g() {
|
|
3923
3923
|
return o.jsx(zc, { calendarType: s, formatShortWeekday: c, formatWeekday: l, locale: r, onMouseLeave: n });
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function v() {
|
|
3926
3926
|
return f ? o.jsx(Hc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
3927
3927
|
}
|
|
3928
3928
|
function p() {
|
|
3929
|
-
return o.jsx(Uc, Dn({ calendarType: s },
|
|
3929
|
+
return o.jsx(Uc, Dn({ calendarType: s }, h));
|
|
3930
3930
|
}
|
|
3931
3931
|
var m = "react-calendar__month-view";
|
|
3932
3932
|
return o.jsx("div", { className: Pr(m, f ? "".concat(m, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
3933
3933
|
display: "flex",
|
|
3934
3934
|
alignItems: "flex-end"
|
|
3935
|
-
}, children: [
|
|
3935
|
+
}, children: [v(), o.jsxs("div", { style: {
|
|
3936
3936
|
flexGrow: 1,
|
|
3937
3937
|
width: "100%"
|
|
3938
3938
|
}, children: [g(), p()] })] }) });
|
|
@@ -3949,7 +3949,7 @@ var ht = function() {
|
|
|
3949
3949
|
Bn.setFullYear(1, 0, 1);
|
|
3950
3950
|
Bn.setHours(0, 0, 0, 0);
|
|
3951
3951
|
var Qc = /* @__PURE__ */ new Date(864e13);
|
|
3952
|
-
function
|
|
3952
|
+
function Mt(e) {
|
|
3953
3953
|
return e instanceof Date ? e : new Date(e);
|
|
3954
3954
|
}
|
|
3955
3955
|
function Ao(e, t) {
|
|
@@ -3970,7 +3970,7 @@ function el(e, t) {
|
|
|
3970
3970
|
var r = Array.isArray(e) ? e[t] : e;
|
|
3971
3971
|
if (!r)
|
|
3972
3972
|
return null;
|
|
3973
|
-
var n =
|
|
3973
|
+
var n = Mt(r);
|
|
3974
3974
|
if (Number.isNaN(n.getTime()))
|
|
3975
3975
|
throw new Error("Invalid date: ".concat(e));
|
|
3976
3976
|
return n;
|
|
@@ -3993,14 +3993,14 @@ function $o(e, t) {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
var zn = function(e) {
|
|
3995
3995
|
return $o(e, 0);
|
|
3996
|
-
},
|
|
3996
|
+
}, Lo = function(e) {
|
|
3997
3997
|
return $o(e, 1);
|
|
3998
3998
|
}, tl = function(e) {
|
|
3999
|
-
return [zn,
|
|
3999
|
+
return [zn, Lo].map(function(t) {
|
|
4000
4000
|
return t(e);
|
|
4001
4001
|
});
|
|
4002
4002
|
};
|
|
4003
|
-
function
|
|
4003
|
+
function Mo(e) {
|
|
4004
4004
|
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({
|
|
4005
4005
|
value: i,
|
|
4006
4006
|
minDate: n,
|
|
@@ -4010,8 +4010,8 @@ function Lo(e) {
|
|
|
4010
4010
|
return tt(c, l);
|
|
4011
4011
|
}
|
|
4012
4012
|
function rl(e) {
|
|
4013
|
-
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,
|
|
4014
|
-
return g ? tt(
|
|
4013
|
+
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, h = Un(f, l, s), g = t || r;
|
|
4014
|
+
return g ? tt(h, g) : Mo({
|
|
4015
4015
|
maxDate: i,
|
|
4016
4016
|
maxDetail: s,
|
|
4017
4017
|
minDate: c,
|
|
@@ -4027,9 +4027,9 @@ function ur(e, t) {
|
|
|
4027
4027
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4028
4028
|
}
|
|
4029
4029
|
var nl = nt(function(t, r) {
|
|
4030
|
-
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,
|
|
4031
|
-
return N !== null ?
|
|
4032
|
-
}) : l != null ?
|
|
4030
|
+
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, h = t.formatLongDate, g = t.formatMonth, v = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, b = j === void 0 ? !0 : j, D = t.inputRef, S = t.locale, R = t.maxDate, C = R === void 0 ? Qc : R, P = t.maxDetail, W = P === void 0 ? "month" : P, y = t.minDate, E = y === void 0 ? Bn : y, I = t.minDetail, L = I === void 0 ? "century" : I, M = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ae = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, se = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, ce = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Dt = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, oe = t.selectRange, Ge = t.showDoubleView, Ot = t.showFixedNumberOfWeeks, He = t.showNavigation, Mr = He === void 0 ? !0 : He, Fr = t.showNeighboringCentury, Nt = 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, Et = 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(N) {
|
|
4031
|
+
return N !== null ? Mt(N) : null;
|
|
4032
|
+
}) : l != null ? Mt(l) : null), qe = er[0], tr = er[1], Ie = F(d), kt = Ie[0], ct = Ie[1], le = n || Yr || rl({
|
|
4033
4033
|
activeStartDate: n,
|
|
4034
4034
|
defaultActiveStartDate: c,
|
|
4035
4035
|
defaultValue: l,
|
|
@@ -4037,7 +4037,7 @@ var nl = nt(function(t, r) {
|
|
|
4037
4037
|
maxDate: C,
|
|
4038
4038
|
maxDetail: W,
|
|
4039
4039
|
minDate: E,
|
|
4040
|
-
minDetail:
|
|
4040
|
+
minDetail: L,
|
|
4041
4041
|
value: it,
|
|
4042
4042
|
view: Et
|
|
4043
4043
|
}), he = function() {
|
|
@@ -4045,15 +4045,15 @@ var nl = nt(function(t, r) {
|
|
|
4045
4045
|
return oe && Zr(qe) ? qe : it !== void 0 ? it : qe;
|
|
4046
4046
|
}();
|
|
4047
4047
|
return N ? Array.isArray(N) ? N.map(function(k) {
|
|
4048
|
-
return k !== null ?
|
|
4049
|
-
}) : N !== null ?
|
|
4050
|
-
}(), Xe = Io(W), G = Un(Et || kt,
|
|
4048
|
+
return k !== null ? Mt(k) : null;
|
|
4049
|
+
}) : N !== null ? Mt(N) : null : null;
|
|
4050
|
+
}(), Xe = Io(W), G = Un(Et || kt, L, W), we = Ao(L, W), rr = oe ? Br : null, _t = we.indexOf(G) < we.length - 1, nr = we.indexOf(G) > 0, Ct = A(function(N) {
|
|
4051
4051
|
var k = function() {
|
|
4052
4052
|
switch (Ce) {
|
|
4053
4053
|
case "start":
|
|
4054
4054
|
return zn;
|
|
4055
4055
|
case "end":
|
|
4056
|
-
return
|
|
4056
|
+
return Lo;
|
|
4057
4057
|
case "range":
|
|
4058
4058
|
return tl;
|
|
4059
4059
|
default:
|
|
@@ -4160,11 +4160,11 @@ var nl = nt(function(t, r) {
|
|
|
4160
4160
|
// Range selection turned off
|
|
4161
4161
|
!oe || // Range selection turned on, first value
|
|
4162
4162
|
z || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4163
|
-
b ?
|
|
4163
|
+
b ? Mo({
|
|
4164
4164
|
maxDate: C,
|
|
4165
4165
|
maxDetail: W,
|
|
4166
4166
|
minDate: E,
|
|
4167
|
-
minDetail:
|
|
4167
|
+
minDetail: L,
|
|
4168
4168
|
value: V,
|
|
4169
4169
|
view: G
|
|
4170
4170
|
}) : null
|
|
@@ -4196,7 +4196,7 @@ var nl = nt(function(t, r) {
|
|
|
4196
4196
|
C,
|
|
4197
4197
|
W,
|
|
4198
4198
|
E,
|
|
4199
|
-
|
|
4199
|
+
L,
|
|
4200
4200
|
K,
|
|
4201
4201
|
se,
|
|
4202
4202
|
ut,
|
|
@@ -4243,20 +4243,20 @@ var nl = nt(function(t, r) {
|
|
|
4243
4243
|
case "decade":
|
|
4244
4244
|
return o.jsx($c, ht({ formatYear: w, showNeighboringDecade: Nt }, z));
|
|
4245
4245
|
case "year":
|
|
4246
|
-
return o.jsx(Vc, ht({ formatMonth: g, formatMonthYear:
|
|
4246
|
+
return o.jsx(Vc, ht({ formatMonth: g, formatMonthYear: v }, z));
|
|
4247
4247
|
case "month":
|
|
4248
|
-
return o.jsx(Kc, ht({ calendarType: i, formatDay: f, formatLongDate:
|
|
4248
|
+
return o.jsx(Kc, ht({ calendarType: i, formatDay: f, formatLongDate: h, formatShortWeekday: p, formatWeekday: m, onClickWeekNumber: ke, onMouseLeave: oe ? x : void 0, showFixedNumberOfWeeks: typeof Ot < "u" ? Ot : Ge, showNeighboringMonth: Wr, showWeekNumbers: qt }, z));
|
|
4249
4249
|
default:
|
|
4250
4250
|
throw new Error("Invalid view: ".concat(G, "."));
|
|
4251
4251
|
}
|
|
4252
4252
|
}
|
|
4253
4253
|
function T() {
|
|
4254
|
-
return
|
|
4254
|
+
return Mr ? o.jsx(Sc, { activeStartDate: le, drillUp: Rt, formatMonthYear: v, formatYear: w, locale: S, maxDate: C, minDate: E, navigationAriaLabel: M, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ae, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Dt, setActiveStartDate: lt, showDoubleView: Ge, view: G, views: we }) : null;
|
|
4255
4255
|
}
|
|
4256
4256
|
var B = Array.isArray(he) ? he : [he];
|
|
4257
4257
|
return o.jsxs("div", { className: Pr(lr, oe && B.length === 1 && "".concat(lr, "--selectRange"), Ge && "".concat(lr, "--doubleView"), s), ref: D, children: [T(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: oe ? x : void 0, onMouseLeave: oe ? x : void 0, children: [O(), Ge ? O(!0) : null] })] });
|
|
4258
4258
|
});
|
|
4259
|
-
const
|
|
4259
|
+
const Ml = ({
|
|
4260
4260
|
value: e,
|
|
4261
4261
|
onChange: t,
|
|
4262
4262
|
maxDate: r,
|
|
@@ -4267,16 +4267,16 @@ const Ll = ({
|
|
|
4267
4267
|
i(m), t && t(m), c(!1);
|
|
4268
4268
|
},
|
|
4269
4269
|
[t]
|
|
4270
|
-
), f = () => c(!s),
|
|
4270
|
+
), f = () => c(!s), h = A((m) => {
|
|
4271
4271
|
l.current && !l.current.contains(m.target) && c(!1);
|
|
4272
4272
|
}, []);
|
|
4273
|
-
q(() => (s ? document.addEventListener("mousedown",
|
|
4274
|
-
document.removeEventListener("mousedown",
|
|
4275
|
-
}), [s,
|
|
4276
|
-
const [g,
|
|
4273
|
+
q(() => (s ? document.addEventListener("mousedown", h) : document.removeEventListener("mousedown", h), () => {
|
|
4274
|
+
document.removeEventListener("mousedown", h);
|
|
4275
|
+
}), [s, h]);
|
|
4276
|
+
const [g, v] = F(), p = ({
|
|
4277
4277
|
activeStartDate: m
|
|
4278
4278
|
}) => {
|
|
4279
|
-
|
|
4279
|
+
v(m);
|
|
4280
4280
|
};
|
|
4281
4281
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: l, children: [
|
|
4282
4282
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
@@ -4426,11 +4426,11 @@ const Ll = ({
|
|
|
4426
4426
|
rows: d,
|
|
4427
4427
|
required: f = !1
|
|
4428
4428
|
}) => {
|
|
4429
|
-
const [
|
|
4429
|
+
const [h, g] = F(r);
|
|
4430
4430
|
q(() => {
|
|
4431
4431
|
g(r);
|
|
4432
4432
|
}, [r]);
|
|
4433
|
-
const
|
|
4433
|
+
const v = A(
|
|
4434
4434
|
(p) => {
|
|
4435
4435
|
const m = p.target.value;
|
|
4436
4436
|
g(m), s && s(m, e);
|
|
@@ -4445,8 +4445,8 @@ const Ll = ({
|
|
|
4445
4445
|
className: `form-control-textarea ${i ?? ""}`,
|
|
4446
4446
|
name: e,
|
|
4447
4447
|
disabled: n,
|
|
4448
|
-
value:
|
|
4449
|
-
onChange:
|
|
4448
|
+
value: h,
|
|
4449
|
+
onChange: v,
|
|
4450
4450
|
placeholder: c,
|
|
4451
4451
|
cols: l,
|
|
4452
4452
|
rows: d,
|
|
@@ -4466,14 +4466,14 @@ const Ll = ({
|
|
|
4466
4466
|
disabledSubmit: l = !1,
|
|
4467
4467
|
className: d
|
|
4468
4468
|
}, f) => {
|
|
4469
|
-
const [
|
|
4469
|
+
const [h, g] = F(l), [v, p] = F(() => {
|
|
4470
4470
|
const y = {};
|
|
4471
4471
|
return e.forEach((E) => {
|
|
4472
4472
|
y[E.name] = E.value ?? "";
|
|
4473
4473
|
}), y;
|
|
4474
4474
|
}), m = de({}), w = A(
|
|
4475
4475
|
(y, E) => {
|
|
4476
|
-
const { name: I, type:
|
|
4476
|
+
const { name: I, type: L, checked: M, value: X } = y.target, ve = L === "checkbox" ? M : X;
|
|
4477
4477
|
E.onChange && E.onChange(ve, I), p((re) => {
|
|
4478
4478
|
const xe = { ...re, [I]: ve };
|
|
4479
4479
|
return s && s(xe), xe;
|
|
@@ -4482,25 +4482,25 @@ const Ll = ({
|
|
|
4482
4482
|
[s]
|
|
4483
4483
|
), j = A(
|
|
4484
4484
|
(y, E, I) => {
|
|
4485
|
-
I.onChange && I.onChange(E, y), p((
|
|
4486
|
-
const
|
|
4487
|
-
return s && s(
|
|
4485
|
+
I.onChange && I.onChange(E, y), p((L) => {
|
|
4486
|
+
const M = { ...L, [y]: E };
|
|
4487
|
+
return s && s(M), M;
|
|
4488
4488
|
});
|
|
4489
4489
|
},
|
|
4490
4490
|
[s]
|
|
4491
4491
|
), b = A(
|
|
4492
4492
|
(y, E, I) => {
|
|
4493
|
-
I.onChange && I.onChange(y, E), p((
|
|
4494
|
-
const
|
|
4495
|
-
return s && s(
|
|
4493
|
+
I.onChange && I.onChange(y, E), p((L) => {
|
|
4494
|
+
const M = { ...L, [E]: y };
|
|
4495
|
+
return s && s(M), M;
|
|
4496
4496
|
});
|
|
4497
4497
|
},
|
|
4498
4498
|
[s]
|
|
4499
4499
|
), D = A(
|
|
4500
4500
|
(y) => {
|
|
4501
|
-
y.preventDefault(), r && r(
|
|
4501
|
+
y.preventDefault(), r && r(v);
|
|
4502
4502
|
},
|
|
4503
|
-
[r,
|
|
4503
|
+
[r, v]
|
|
4504
4504
|
), S = () => {
|
|
4505
4505
|
p(() => {
|
|
4506
4506
|
const y = {};
|
|
@@ -4519,7 +4519,7 @@ const Ll = ({
|
|
|
4519
4519
|
var E;
|
|
4520
4520
|
(E = m.current[y.name]) == null || E.select();
|
|
4521
4521
|
}, 500);
|
|
4522
|
-
}, P = () =>
|
|
4522
|
+
}, P = () => v, W = (y) => {
|
|
4523
4523
|
p((E) => ({
|
|
4524
4524
|
...E,
|
|
4525
4525
|
...y
|
|
@@ -4541,7 +4541,7 @@ const Ll = ({
|
|
|
4541
4541
|
children: [
|
|
4542
4542
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4543
4543
|
e.map((y, E) => {
|
|
4544
|
-
const I = y.onRequired ? y.onRequired(y.value) : y.required ?? !1,
|
|
4544
|
+
const I = y.onRequired ? y.onRequired(y.value) : y.required ?? !1, L = y.onDisabled ? y.onDisabled(y.value) : y.disabled ?? !1;
|
|
4545
4545
|
return /* @__PURE__ */ o.jsxs(
|
|
4546
4546
|
"div",
|
|
4547
4547
|
{
|
|
@@ -4556,14 +4556,14 @@ const Ll = ({
|
|
|
4556
4556
|
label: void 0,
|
|
4557
4557
|
name: y.name,
|
|
4558
4558
|
options: y.options ?? [],
|
|
4559
|
-
disabled:
|
|
4559
|
+
disabled: L,
|
|
4560
4560
|
multiple: y.multiple,
|
|
4561
|
-
value:
|
|
4561
|
+
value: v[y.name],
|
|
4562
4562
|
required: I,
|
|
4563
4563
|
defaultValue: y.value,
|
|
4564
4564
|
placeholder: y.placeholder,
|
|
4565
|
-
onChangeMultiple: (
|
|
4566
|
-
onChange: (
|
|
4565
|
+
onChangeMultiple: (M) => b(M, y.name, y),
|
|
4566
|
+
onChange: (M) => b(M, y.name, y)
|
|
4567
4567
|
}
|
|
4568
4568
|
) : y.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
4569
4569
|
ol,
|
|
@@ -4572,28 +4572,28 @@ const Ll = ({
|
|
|
4572
4572
|
name: y.name,
|
|
4573
4573
|
className: "textarea-input",
|
|
4574
4574
|
placeholder: y.placeholder ?? "",
|
|
4575
|
-
disabled:
|
|
4575
|
+
disabled: L,
|
|
4576
4576
|
required: I,
|
|
4577
|
-
value:
|
|
4578
|
-
onChange: (
|
|
4577
|
+
value: v[y.name],
|
|
4578
|
+
onChange: (M, X) => j(X, M, y)
|
|
4579
4579
|
}
|
|
4580
4580
|
) : /* @__PURE__ */ o.jsx(
|
|
4581
4581
|
wr,
|
|
4582
4582
|
{
|
|
4583
4583
|
id: y.id ?? y.name,
|
|
4584
|
-
ref: (
|
|
4584
|
+
ref: (M) => m.current[y.name] = M,
|
|
4585
4585
|
name: y.name,
|
|
4586
4586
|
type: y.type,
|
|
4587
4587
|
placeholder: y.placeholder ?? "",
|
|
4588
4588
|
autoComplete: y.autoComplete,
|
|
4589
4589
|
tabIndex: 0,
|
|
4590
|
-
disabled:
|
|
4590
|
+
disabled: L,
|
|
4591
4591
|
autoFocus: y.focus ?? !1,
|
|
4592
4592
|
required: I,
|
|
4593
4593
|
step: y.step ?? "0.01",
|
|
4594
|
-
value:
|
|
4595
|
-
checked: y.type === "checkbox" ? !!
|
|
4596
|
-
onChange: (
|
|
4594
|
+
value: v[y.name],
|
|
4595
|
+
checked: y.type === "checkbox" ? !!v[y.name] : void 0,
|
|
4596
|
+
onChange: (M) => w(M, y),
|
|
4597
4597
|
onInvalid: y.onInvalid ? y.onInvalid : void 0
|
|
4598
4598
|
}
|
|
4599
4599
|
)
|
|
@@ -4608,7 +4608,7 @@ const Ll = ({
|
|
|
4608
4608
|
Yt,
|
|
4609
4609
|
{
|
|
4610
4610
|
id: `button-${n}`,
|
|
4611
|
-
disabled:
|
|
4611
|
+
disabled: h,
|
|
4612
4612
|
title: t || "submit"
|
|
4613
4613
|
}
|
|
4614
4614
|
) })
|
|
@@ -4629,18 +4629,18 @@ const Ll = ({
|
|
|
4629
4629
|
maxLength: l = 10,
|
|
4630
4630
|
autoComplete: d = "off",
|
|
4631
4631
|
tabIndex: f = 0,
|
|
4632
|
-
onChange:
|
|
4632
|
+
onChange: h,
|
|
4633
4633
|
onBlur: g,
|
|
4634
|
-
onClick:
|
|
4634
|
+
onClick: v,
|
|
4635
4635
|
onKeyDown: p,
|
|
4636
4636
|
onFocus: m
|
|
4637
4637
|
}, w) => {
|
|
4638
4638
|
const j = A(
|
|
4639
4639
|
(D) => {
|
|
4640
4640
|
let S = D.target.value.replace(",", ".");
|
|
4641
|
-
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || l && S.length > l ||
|
|
4641
|
+
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || l && S.length > l || h == null || h(D, S);
|
|
4642
4642
|
},
|
|
4643
|
-
[
|
|
4643
|
+
[h, l]
|
|
4644
4644
|
), b = (D) => {
|
|
4645
4645
|
if (p && p(D), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4646
4646
|
D.key
|
|
@@ -4673,7 +4673,7 @@ const Ll = ({
|
|
|
4673
4673
|
onFocus: m,
|
|
4674
4674
|
onBlur: g,
|
|
4675
4675
|
onClick: (D) => {
|
|
4676
|
-
D.stopPropagation(),
|
|
4676
|
+
D.stopPropagation(), v == null || v(D);
|
|
4677
4677
|
}
|
|
4678
4678
|
}
|
|
4679
4679
|
) });
|
|
@@ -4742,7 +4742,7 @@ const Vl = nt(
|
|
|
4742
4742
|
showBackNavigation: s,
|
|
4743
4743
|
onClickBackNavigation: c
|
|
4744
4744
|
}) => {
|
|
4745
|
-
const l = de(null), [d, f] = F(!1),
|
|
4745
|
+
const l = de(null), [d, f] = F(!1), h = A(() => {
|
|
4746
4746
|
f(!d);
|
|
4747
4747
|
}, [d, f]);
|
|
4748
4748
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
@@ -4766,7 +4766,7 @@ const Vl = nt(
|
|
|
4766
4766
|
] }),
|
|
4767
4767
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4768
4768
|
e,
|
|
4769
|
-
/* @__PURE__ */ o.jsx("div", { ref: l, onClick:
|
|
4769
|
+
/* @__PURE__ */ o.jsx("div", { ref: l, onClick: h, children: /* @__PURE__ */ o.jsx(Y, { size: je.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4770
4770
|
d && l.current && /* @__PURE__ */ o.jsx(
|
|
4771
4771
|
An,
|
|
4772
4772
|
{
|
|
@@ -4780,7 +4780,7 @@ const Vl = nt(
|
|
|
4780
4780
|
] })
|
|
4781
4781
|
] });
|
|
4782
4782
|
}, Ul = ({ text: e, severity: t, className: r }) => {
|
|
4783
|
-
const n =
|
|
4783
|
+
const n = Le(() => {
|
|
4784
4784
|
switch (t) {
|
|
4785
4785
|
case "info":
|
|
4786
4786
|
return "bi-info-circle";
|
|
@@ -4825,16 +4825,39 @@ const Vl = nt(
|
|
|
4825
4825
|
}
|
|
4826
4826
|
) }),
|
|
4827
4827
|
document.body
|
|
4828
|
-
) : null, Gl = ({
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4828
|
+
) : null, Gl = ({
|
|
4829
|
+
arrayBuffer: e,
|
|
4830
|
+
displayToolBar: t = !1,
|
|
4831
|
+
height: r = "600px",
|
|
4832
|
+
width: n = "100%",
|
|
4833
|
+
className: a,
|
|
4834
|
+
title: i,
|
|
4835
|
+
id: s
|
|
4836
|
+
}) => {
|
|
4837
|
+
const [c, l] = F(null), d = async () => {
|
|
4838
|
+
const f = new Blob([e], { type: "application/pdf" });
|
|
4839
|
+
if (!t) {
|
|
4840
|
+
const g = URL.createObjectURL(f) + "#toolbar=0&navpanes=0";
|
|
4841
|
+
return l(g);
|
|
4842
|
+
}
|
|
4843
|
+
const h = URL.createObjectURL(f);
|
|
4844
|
+
l(h);
|
|
4832
4845
|
};
|
|
4833
4846
|
return q(() => {
|
|
4834
|
-
|
|
4835
|
-
}, [e]), q(() => () => {
|
|
4836
|
-
|
|
4837
|
-
}, [
|
|
4847
|
+
d();
|
|
4848
|
+
}, [e, d]), q(() => () => {
|
|
4849
|
+
c && URL.revokeObjectURL(c);
|
|
4850
|
+
}, [c]), /* @__PURE__ */ o.jsx(o.Fragment, { children: c && /* @__PURE__ */ o.jsx(
|
|
4851
|
+
"iframe",
|
|
4852
|
+
{
|
|
4853
|
+
className: a,
|
|
4854
|
+
src: c,
|
|
4855
|
+
width: n,
|
|
4856
|
+
height: r,
|
|
4857
|
+
title: i,
|
|
4858
|
+
id: s
|
|
4859
|
+
}
|
|
4860
|
+
) });
|
|
4838
4861
|
}, Hl = ({
|
|
4839
4862
|
setQuantity: e,
|
|
4840
4863
|
item: t,
|
|
@@ -4845,21 +4868,21 @@ const Vl = nt(
|
|
|
4845
4868
|
pas: s
|
|
4846
4869
|
}) => {
|
|
4847
4870
|
const [c, l] = F(s), d = A(
|
|
4848
|
-
(
|
|
4849
|
-
n || (l(
|
|
4871
|
+
(v) => {
|
|
4872
|
+
n || (l(v), e && e(t, v));
|
|
4850
4873
|
},
|
|
4851
4874
|
[l, e]
|
|
4852
4875
|
), f = A(
|
|
4853
|
-
(
|
|
4854
|
-
if (
|
|
4876
|
+
(v) => {
|
|
4877
|
+
if (v.stopPropagation(), n || a)
|
|
4855
4878
|
return;
|
|
4856
4879
|
const p = c + s;
|
|
4857
4880
|
d(Math.round(p * 100) / 100);
|
|
4858
4881
|
},
|
|
4859
4882
|
[c, d]
|
|
4860
|
-
),
|
|
4861
|
-
(
|
|
4862
|
-
if (
|
|
4883
|
+
), h = A(
|
|
4884
|
+
(v) => {
|
|
4885
|
+
if (v.stopPropagation(), n || i)
|
|
4863
4886
|
return;
|
|
4864
4887
|
if (c === 0)
|
|
4865
4888
|
return c;
|
|
@@ -4872,8 +4895,8 @@ const Vl = nt(
|
|
|
4872
4895
|
t.quantity && l(t.quantity);
|
|
4873
4896
|
}, [t.quantity, l]);
|
|
4874
4897
|
const g = A(
|
|
4875
|
-
(
|
|
4876
|
-
|
|
4898
|
+
(v) => {
|
|
4899
|
+
v.stopPropagation(), r && r(t);
|
|
4877
4900
|
},
|
|
4878
4901
|
[r, t]
|
|
4879
4902
|
);
|
|
@@ -4881,16 +4904,16 @@ const Vl = nt(
|
|
|
4881
4904
|
/* @__PURE__ */ o.jsx(
|
|
4882
4905
|
"div",
|
|
4883
4906
|
{
|
|
4884
|
-
onClick: (
|
|
4907
|
+
onClick: (v) => h(v),
|
|
4885
4908
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
4886
4909
|
children: /* @__PURE__ */ o.jsx(Y, { size: je.LARGE, classIcon: "bi bi-dash-square" })
|
|
4887
4910
|
}
|
|
4888
4911
|
),
|
|
4889
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (
|
|
4912
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (v) => g(v), className: "qte-label", children: c }),
|
|
4890
4913
|
/* @__PURE__ */ o.jsx(
|
|
4891
4914
|
"div",
|
|
4892
4915
|
{
|
|
4893
|
-
onClick: (
|
|
4916
|
+
onClick: (v) => f(v),
|
|
4894
4917
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
4895
4918
|
children: /* @__PURE__ */ o.jsx(Y, { size: je.LARGE, classIcon: "bi bi-plus-square" })
|
|
4896
4919
|
}
|
|
@@ -4908,7 +4931,7 @@ const Vl = nt(
|
|
|
4908
4931
|
setIsVisible: c,
|
|
4909
4932
|
id: l
|
|
4910
4933
|
}, d) => {
|
|
4911
|
-
const [f,
|
|
4934
|
+
const [f, h] = F(n ?? !1), g = de(null), v = de(null), p = Le(
|
|
4912
4935
|
() => [
|
|
4913
4936
|
{
|
|
4914
4937
|
value: "",
|
|
@@ -4925,11 +4948,11 @@ const Vl = nt(
|
|
|
4925
4948
|
[r, a]
|
|
4926
4949
|
);
|
|
4927
4950
|
q(() => {
|
|
4928
|
-
n !== void 0 &&
|
|
4951
|
+
n !== void 0 && h(n);
|
|
4929
4952
|
}, [n]);
|
|
4930
4953
|
const m = A(
|
|
4931
4954
|
(b) => {
|
|
4932
|
-
c && c(b),
|
|
4955
|
+
c && c(b), h(b);
|
|
4933
4956
|
},
|
|
4934
4957
|
[c]
|
|
4935
4958
|
), w = A(
|
|
@@ -4950,21 +4973,21 @@ const Vl = nt(
|
|
|
4950
4973
|
return Dr(d, () => ({
|
|
4951
4974
|
clearInput: (b) => {
|
|
4952
4975
|
var D;
|
|
4953
|
-
(D =
|
|
4976
|
+
(D = v.current) == null || D.clearInput(b);
|
|
4954
4977
|
},
|
|
4955
4978
|
resetForm: () => {
|
|
4956
4979
|
var b;
|
|
4957
|
-
(b =
|
|
4980
|
+
(b = v.current) == null || b.resetForm();
|
|
4958
4981
|
},
|
|
4959
4982
|
focusInitialElement: () => {
|
|
4960
4983
|
var b;
|
|
4961
|
-
(b =
|
|
4984
|
+
(b = v.current) == null || b.focusInitialElement();
|
|
4962
4985
|
}
|
|
4963
4986
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
4964
4987
|
/* @__PURE__ */ o.jsx(
|
|
4965
4988
|
il,
|
|
4966
4989
|
{
|
|
4967
|
-
ref:
|
|
4990
|
+
ref: v,
|
|
4968
4991
|
onSubmit: j,
|
|
4969
4992
|
onChange: w,
|
|
4970
4993
|
hideSubmit: !0,
|
|
@@ -4995,19 +5018,19 @@ const Vl = nt(
|
|
|
4995
5018
|
closeOnClickOutside: c = !0,
|
|
4996
5019
|
displayOverlay: l = !0
|
|
4997
5020
|
}) => {
|
|
4998
|
-
const [d, f] = F(e || !1),
|
|
5021
|
+
const [d, f] = F(e || !1), h = de(null), g = de(null);
|
|
4999
5022
|
q(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(g.current)), () => {
|
|
5000
5023
|
g.current && g.current.parentNode && (document.body.removeChild(g.current), g.current = null);
|
|
5001
5024
|
}), [i]), q(() => {
|
|
5002
5025
|
f(e || !1);
|
|
5003
5026
|
}, [e]);
|
|
5004
|
-
const
|
|
5027
|
+
const v = A(() => {
|
|
5005
5028
|
f(!1), n && n(!1);
|
|
5006
5029
|
}, [n]), p = A(
|
|
5007
5030
|
(m) => {
|
|
5008
|
-
c &&
|
|
5031
|
+
c && h.current && !h.current.contains(m.target) && v();
|
|
5009
5032
|
},
|
|
5010
|
-
[
|
|
5033
|
+
[v, c]
|
|
5011
5034
|
);
|
|
5012
5035
|
return q(() => (d ? document.addEventListener("mousedown", p) : document.removeEventListener("mousedown", p), () => {
|
|
5013
5036
|
document.removeEventListener("mousedown", p);
|
|
@@ -5017,13 +5040,13 @@ const Vl = nt(
|
|
|
5017
5040
|
/* @__PURE__ */ o.jsxs(
|
|
5018
5041
|
"div",
|
|
5019
5042
|
{
|
|
5020
|
-
ref:
|
|
5043
|
+
ref: h,
|
|
5021
5044
|
style: s ? { width: s } : {},
|
|
5022
5045
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5023
5046
|
children: [
|
|
5024
5047
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5025
5048
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5026
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
5049
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" }) })
|
|
5027
5050
|
] }),
|
|
5028
5051
|
t && t
|
|
5029
5052
|
]
|
|
@@ -5045,47 +5068,47 @@ const Vl = nt(
|
|
|
5045
5068
|
q(() => {
|
|
5046
5069
|
!c && (t < 0 || t >= e.length) && d(0);
|
|
5047
5070
|
}, [t, e.length, c]);
|
|
5048
|
-
const
|
|
5071
|
+
const h = de([]), g = (v) => {
|
|
5049
5072
|
var p, m;
|
|
5050
|
-
(p = e[
|
|
5073
|
+
(p = e[v]) != null && p.disabled || (c || d(v), n == null || n(v), (m = h.current[v]) == null || m.focus());
|
|
5051
5074
|
};
|
|
5052
5075
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5053
|
-
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((
|
|
5076
|
+
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((v, p) => /* @__PURE__ */ o.jsx(
|
|
5054
5077
|
"button",
|
|
5055
5078
|
{
|
|
5056
|
-
ref: (m) =>
|
|
5079
|
+
ref: (m) => h.current[p] = m,
|
|
5057
5080
|
role: "tab",
|
|
5058
|
-
id: `tab-${
|
|
5081
|
+
id: `tab-${v.key}`,
|
|
5059
5082
|
"aria-selected": f === p,
|
|
5060
|
-
"aria-controls": `panel-${
|
|
5083
|
+
"aria-controls": `panel-${v.key}`,
|
|
5061
5084
|
tabIndex: f === p ? 0 : -1,
|
|
5062
|
-
disabled:
|
|
5085
|
+
disabled: v.disabled,
|
|
5063
5086
|
onClick: () => g(p),
|
|
5064
|
-
className: `${i} tab-button ${f === p ? "tab-button--active" : ""} ${
|
|
5065
|
-
children:
|
|
5087
|
+
className: `${i} tab-button ${f === p ? "tab-button--active" : ""} ${v.disabled ? "tab-button--disabled" : ""}`,
|
|
5088
|
+
children: v.title
|
|
5066
5089
|
},
|
|
5067
|
-
`tab-${
|
|
5090
|
+
`tab-${v.key}`
|
|
5068
5091
|
)) }),
|
|
5069
|
-
e.map((
|
|
5092
|
+
e.map((v, p) => /* @__PURE__ */ o.jsx(
|
|
5070
5093
|
"div",
|
|
5071
5094
|
{
|
|
5072
5095
|
role: "tabpanel",
|
|
5073
|
-
id: `panel-${
|
|
5074
|
-
"aria-labelledby": `tab-${
|
|
5096
|
+
id: `panel-${v.key}`,
|
|
5097
|
+
"aria-labelledby": `tab-${v.key}`,
|
|
5075
5098
|
hidden: f !== p,
|
|
5076
5099
|
className: `${s} mt-3`,
|
|
5077
|
-
children: f === p &&
|
|
5100
|
+
children: f === p && v.panel
|
|
5078
5101
|
},
|
|
5079
|
-
`panel-${
|
|
5102
|
+
`panel-${v.key}`
|
|
5080
5103
|
))
|
|
5081
5104
|
] });
|
|
5082
5105
|
}, Pa = (e) => {
|
|
5083
5106
|
let t;
|
|
5084
5107
|
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
5085
|
-
const
|
|
5086
|
-
if (!Object.is(
|
|
5108
|
+
const h = typeof d == "function" ? d(t) : d;
|
|
5109
|
+
if (!Object.is(h, t)) {
|
|
5087
5110
|
const g = t;
|
|
5088
|
-
t = f ?? (typeof
|
|
5111
|
+
t = f ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((v) => v(t, g));
|
|
5089
5112
|
}
|
|
5090
5113
|
}, a = () => t, c = { setState: n, getState: a, getInitialState: () => l, subscribe: (d) => (r.add(d), () => r.delete(d)) }, l = t = e(n, a, c);
|
|
5091
5114
|
return c;
|
|
@@ -5158,15 +5181,15 @@ const Ra = (e) => {
|
|
|
5158
5181
|
) : null;
|
|
5159
5182
|
};
|
|
5160
5183
|
export {
|
|
5161
|
-
|
|
5184
|
+
La as Badge,
|
|
5162
5185
|
Yt as Button,
|
|
5163
5186
|
Pl as ButtonAction,
|
|
5164
5187
|
Tl as ButtonActions,
|
|
5165
5188
|
Al as Card,
|
|
5166
5189
|
Il as Carousel,
|
|
5167
5190
|
$l as Damier,
|
|
5168
|
-
|
|
5169
|
-
|
|
5191
|
+
Ll as DataTable,
|
|
5192
|
+
Ml as DatePicker,
|
|
5170
5193
|
il as DynamicForm,
|
|
5171
5194
|
Fl as Expands,
|
|
5172
5195
|
Wl as FilAriane,
|
|
@@ -5182,7 +5205,7 @@ export {
|
|
|
5182
5205
|
Fo as InputNumber,
|
|
5183
5206
|
Vl as InputPrice,
|
|
5184
5207
|
pa as Loader,
|
|
5185
|
-
|
|
5208
|
+
Ma as Menus,
|
|
5186
5209
|
Ul as Message,
|
|
5187
5210
|
zl as Modal,
|
|
5188
5211
|
An as OverlayPanel,
|