kelt-ui-kit-react 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +793 -781
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/dataTable/DataTable.tsx +1 -1
- package/src/dataTable/dataTable.css +16 -13
- package/src/form/Form.view.tsx +12 -0
- package/src/select/Select.tsx +25 -4
- package/src/select/Select.view.tsx +1 -1
- package/src/select/select.css +14 -3
package/dist/index.js
CHANGED
|
@@ -29,13 +29,13 @@ var Vn;
|
|
|
29
29
|
function Mo() {
|
|
30
30
|
if (Vn) return Pt;
|
|
31
31
|
Vn = 1;
|
|
32
|
-
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,
|
|
32
|
+
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 };
|
|
33
33
|
function s(l, u, d) {
|
|
34
|
-
var
|
|
35
|
-
d !== void 0 && (g = "" + d), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (
|
|
36
|
-
for (
|
|
37
|
-
if (l && l.defaultProps) for (
|
|
38
|
-
return { $$typeof: t, type: l, key: g, ref:
|
|
34
|
+
var f, v = {}, g = null, h = null;
|
|
35
|
+
d !== void 0 && (g = "" + d), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (h = u.ref);
|
|
36
|
+
for (f in u) n.call(u, f) && !i.hasOwnProperty(f) && (v[f] = u[f]);
|
|
37
|
+
if (l && l.defaultProps) for (f in u = l.defaultProps, u) v[f] === void 0 && (v[f] = u[f]);
|
|
38
|
+
return { $$typeof: t, type: l, key: g, ref: h, props: v, _owner: a.current };
|
|
39
39
|
}
|
|
40
40
|
return Pt.Fragment = r, Pt.jsx = s, Pt.jsxs = s, Pt;
|
|
41
41
|
}
|
|
@@ -52,15 +52,15 @@ var Tt = {};
|
|
|
52
52
|
var Bn;
|
|
53
53
|
function Lo() {
|
|
54
54
|
return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
55
|
-
var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"),
|
|
55
|
+
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"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, m = "@@iterator";
|
|
56
56
|
function w(c) {
|
|
57
57
|
if (c === null || typeof c != "object")
|
|
58
58
|
return null;
|
|
59
|
-
var x = b && c[b] || c[
|
|
59
|
+
var x = b && c[b] || c[m];
|
|
60
60
|
return typeof x == "function" ? x : null;
|
|
61
61
|
}
|
|
62
62
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
63
|
-
function
|
|
63
|
+
function p(c) {
|
|
64
64
|
{
|
|
65
65
|
for (var x = arguments.length, S = new Array(x > 1 ? x - 1 : 0), E = 1; E < x; E++)
|
|
66
66
|
S[E - 1] = arguments[E];
|
|
@@ -80,7 +80,7 @@ function Lo() {
|
|
|
80
80
|
var O = !1, P = !1, N = !1, k = !1, $ = !1, X;
|
|
81
81
|
X = Symbol.for("react.module.reference");
|
|
82
82
|
function re(c) {
|
|
83
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c ===
|
|
83
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === i || $ || c === a || c === d || c === f || k || c === h || O || P || N || typeof c == "object" && c !== null && (c.$$typeof === g || c.$$typeof === v || c.$$typeof === s || c.$$typeof === l || c.$$typeof === u || // This needs to include all possible module reference object
|
|
84
84
|
// types supported by any Flight configuration anywhere since
|
|
85
85
|
// we don't know which Flight build this will end up being used
|
|
86
86
|
// with.
|
|
@@ -99,7 +99,7 @@ function Lo() {
|
|
|
99
99
|
function se(c) {
|
|
100
100
|
if (c == null)
|
|
101
101
|
return null;
|
|
102
|
-
if (typeof c.tag == "number" &&
|
|
102
|
+
if (typeof c.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
103
103
|
return c.displayName || c.name || null;
|
|
104
104
|
if (typeof c == "string")
|
|
105
105
|
return c;
|
|
@@ -108,13 +108,13 @@ function Lo() {
|
|
|
108
108
|
return "Fragment";
|
|
109
109
|
case r:
|
|
110
110
|
return "Portal";
|
|
111
|
-
case
|
|
111
|
+
case i:
|
|
112
112
|
return "Profiler";
|
|
113
113
|
case a:
|
|
114
114
|
return "StrictMode";
|
|
115
115
|
case d:
|
|
116
116
|
return "Suspense";
|
|
117
|
-
case
|
|
117
|
+
case f:
|
|
118
118
|
return "SuspenseList";
|
|
119
119
|
}
|
|
120
120
|
if (typeof c == "object")
|
|
@@ -200,7 +200,7 @@ function Lo() {
|
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
Se < 0 &&
|
|
203
|
+
Se < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
var de = y.ReactCurrentDispatcher, fe;
|
|
@@ -310,7 +310,7 @@ function Lo() {
|
|
|
310
310
|
switch (c) {
|
|
311
311
|
case d:
|
|
312
312
|
return ae("Suspense");
|
|
313
|
-
case
|
|
313
|
+
case f:
|
|
314
314
|
return ae("SuspenseList");
|
|
315
315
|
}
|
|
316
316
|
if (typeof c == "object")
|
|
@@ -352,7 +352,7 @@ function Lo() {
|
|
|
352
352
|
} catch (R) {
|
|
353
353
|
C = R;
|
|
354
354
|
}
|
|
355
|
-
C && !(C instanceof Error) && (Ue(I),
|
|
355
|
+
C && !(C instanceof Error) && (Ue(I), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", S, _, typeof C), Ue(null)), C instanceof Error && !(C.message in ze) && (ze[C.message] = !0, Ue(I), p("Failed %s type: %s", S, C.message), Ue(null));
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -378,7 +378,7 @@ function Lo() {
|
|
|
378
378
|
}
|
|
379
379
|
function Gt(c) {
|
|
380
380
|
if (Mr(c))
|
|
381
|
-
return
|
|
381
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(c)), Ut(c);
|
|
382
382
|
}
|
|
383
383
|
var qt = y.ReactCurrentOwner, Lr = {
|
|
384
384
|
key: !0,
|
|
@@ -408,7 +408,7 @@ function Lo() {
|
|
|
408
408
|
function Xt(c, x) {
|
|
409
409
|
{
|
|
410
410
|
var S = function() {
|
|
411
|
-
nt || (nt = !0,
|
|
411
|
+
nt || (nt = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
412
412
|
};
|
|
413
413
|
S.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
414
414
|
get: S,
|
|
@@ -419,7 +419,7 @@ function Lo() {
|
|
|
419
419
|
function Wr(c, x) {
|
|
420
420
|
{
|
|
421
421
|
var S = function() {
|
|
422
|
-
Ot || (Ot = !0,
|
|
422
|
+
Ot || (Ot = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
423
423
|
};
|
|
424
424
|
S.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
425
425
|
get: S,
|
|
@@ -525,7 +525,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
525
525
|
return;
|
|
526
526
|
qe[S] = !0;
|
|
527
527
|
var E = "";
|
|
528
|
-
c && c._owner && c._owner !== Ge.current && (E = " It was passed a child from " + se(c._owner.type) + "."), Re(c),
|
|
528
|
+
c && c._owner && c._owner !== Ge.current && (E = " It was passed a child from " + se(c._owner.type) + "."), Re(c), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, E), Re(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function Zt(c, x) {
|
|
@@ -567,9 +567,9 @@ Check the top-level render call using <` + S + ">.");
|
|
|
567
567
|
} else if (x.PropTypes !== void 0 && !Dt) {
|
|
568
568
|
Dt = !0;
|
|
569
569
|
var I = se(x);
|
|
570
|
-
|
|
570
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function er(c) {
|
|
@@ -577,11 +577,11 @@ Check the top-level render call using <` + S + ">.");
|
|
|
577
577
|
for (var x = Object.keys(c.props), S = 0; S < x.length; S++) {
|
|
578
578
|
var E = x[S];
|
|
579
579
|
if (E !== "children" && E !== "key") {
|
|
580
|
-
Re(c),
|
|
580
|
+
Re(c), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Re(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
c.ref !== null && (Re(c),
|
|
584
|
+
c.ref !== null && (Re(c), p("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
var _t = {};
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
594
594
|
var W = ue();
|
|
595
595
|
W ? C += W : C += oe();
|
|
596
596
|
var R;
|
|
597
|
-
c === null ? R = "null" : St(c) ? R = "array" : c !== void 0 && c.$$typeof === t ? (R = "<" + (se(c.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : R = typeof c,
|
|
597
|
+
c === null ? R = "null" : St(c) ? R = "array" : c !== void 0 && c.$$typeof === t ? (R = "<" + (se(c.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : R = typeof c, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, C);
|
|
598
598
|
}
|
|
599
599
|
var z = Jt(c, x, S, I, D);
|
|
600
600
|
if (z == null)
|
|
@@ -608,7 +608,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
608
608
|
Zt(he[Le], c);
|
|
609
609
|
Object.freeze && Object.freeze(he);
|
|
610
610
|
} else
|
|
611
|
-
|
|
611
|
+
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
612
612
|
else
|
|
613
613
|
Zt(he, c);
|
|
614
614
|
}
|
|
@@ -618,7 +618,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
618
618
|
}), Yr = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
619
619
|
if (!_t[He + Yr]) {
|
|
620
620
|
var ko = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
621
|
-
|
|
621
|
+
p(`A props object containing a "key" prop is being spread into JSX:
|
|
622
622
|
let props = %s;
|
|
623
623
|
<%s {...props} />
|
|
624
624
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -640,25 +640,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
640
640
|
}()), Tt;
|
|
641
641
|
}
|
|
642
642
|
process.env.NODE_ENV === "production" ? Jr.exports = Mo() : Jr.exports = Lo();
|
|
643
|
-
var
|
|
644
|
-
const
|
|
643
|
+
var o = Jr.exports;
|
|
644
|
+
const M = ({ classIcon: e, size: t }) => /* @__PURE__ */ o.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), _a = ({
|
|
645
645
|
className: e,
|
|
646
646
|
onClick: t,
|
|
647
647
|
title: r,
|
|
648
648
|
sizeIcon: n,
|
|
649
649
|
classIcon: a
|
|
650
650
|
}) => {
|
|
651
|
-
const
|
|
651
|
+
const i = A((s) => {
|
|
652
652
|
s.stopPropagation(), t && t(s);
|
|
653
653
|
}, []);
|
|
654
|
-
return /* @__PURE__ */
|
|
654
|
+
return /* @__PURE__ */ o.jsxs(
|
|
655
655
|
"div",
|
|
656
656
|
{
|
|
657
|
-
onClick:
|
|
657
|
+
onClick: i,
|
|
658
658
|
className: `badge ${e || ""}`,
|
|
659
659
|
children: [
|
|
660
|
-
a && /* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */
|
|
660
|
+
a && /* @__PURE__ */ o.jsx(M, { size: n, classIcon: a }),
|
|
661
|
+
/* @__PURE__ */ o.jsx("span", { children: r })
|
|
662
662
|
]
|
|
663
663
|
}
|
|
664
664
|
);
|
|
@@ -671,13 +671,13 @@ const Hc = ({
|
|
|
671
671
|
classIcon: n,
|
|
672
672
|
badge: a
|
|
673
673
|
}) => {
|
|
674
|
-
const
|
|
674
|
+
const i = (s) => {
|
|
675
675
|
t && t(s);
|
|
676
676
|
};
|
|
677
|
-
return /* @__PURE__ */
|
|
678
|
-
a && /* @__PURE__ */
|
|
679
|
-
n && /* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
677
|
+
return /* @__PURE__ */ o.jsxs("div", { className: `action ${e}`, onClick: i, children: [
|
|
678
|
+
a && /* @__PURE__ */ o.jsx(_a, { ...a }),
|
|
679
|
+
n && /* @__PURE__ */ o.jsx(M, { classIcon: n, size: we.LARGE }),
|
|
680
|
+
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
681
681
|
] });
|
|
682
682
|
}, Ft = ({
|
|
683
683
|
className: e,
|
|
@@ -685,14 +685,14 @@ const Hc = ({
|
|
|
685
685
|
badge: r,
|
|
686
686
|
title: n,
|
|
687
687
|
sizeIcon: a,
|
|
688
|
-
classIcon:
|
|
688
|
+
classIcon: i,
|
|
689
689
|
positionicon: s = 1,
|
|
690
690
|
disabled: l = !1
|
|
691
691
|
}) => {
|
|
692
692
|
const u = (d) => {
|
|
693
693
|
d.stopPropagation(), t && t(d);
|
|
694
694
|
};
|
|
695
|
-
return /* @__PURE__ */
|
|
695
|
+
return /* @__PURE__ */ o.jsxs(
|
|
696
696
|
"button",
|
|
697
697
|
{
|
|
698
698
|
disabled: l,
|
|
@@ -700,14 +700,14 @@ const Hc = ({
|
|
|
700
700
|
onClick: (d) => u(d),
|
|
701
701
|
className: e,
|
|
702
702
|
children: [
|
|
703
|
-
r && /* @__PURE__ */
|
|
704
|
-
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
|
|
703
|
+
r && /* @__PURE__ */ o.jsx(_a, { ...r }),
|
|
704
|
+
i && s == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(M, { size: a, classIcon: i }) }),
|
|
705
|
+
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
706
|
+
i && s == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(M, { classIcon: i }) })
|
|
707
707
|
]
|
|
708
708
|
}
|
|
709
709
|
);
|
|
710
|
-
}, Fo = (e) => /* @__PURE__ */
|
|
710
|
+
}, Fo = (e) => /* @__PURE__ */ o.jsx(
|
|
711
711
|
"div",
|
|
712
712
|
{
|
|
713
713
|
onClick: () => e.onChange(e.item),
|
|
@@ -715,10 +715,10 @@ const Hc = ({
|
|
|
715
715
|
children: e.item.children
|
|
716
716
|
}
|
|
717
717
|
), Ca = (e) => {
|
|
718
|
-
const [t, r] = F(null), n = A((
|
|
719
|
-
r(
|
|
720
|
-
}, []), a = (
|
|
721
|
-
/* @__PURE__ */
|
|
718
|
+
const [t, r] = F(null), n = A((i) => {
|
|
719
|
+
r(i);
|
|
720
|
+
}, []), a = (i) => /* @__PURE__ */ o.jsx("ul", { children: i.map((s) => /* @__PURE__ */ o.jsxs("li", { children: [
|
|
721
|
+
/* @__PURE__ */ o.jsx(
|
|
722
722
|
Fo,
|
|
723
723
|
{
|
|
724
724
|
item: s,
|
|
@@ -726,14 +726,14 @@ const Hc = ({
|
|
|
726
726
|
active: (t == null ? void 0 : t.id) === s.id
|
|
727
727
|
}
|
|
728
728
|
),
|
|
729
|
-
s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */
|
|
729
|
+
s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "ml-3 mt-1 submenu", children: a(s.subMenu) })
|
|
730
730
|
] }, s.id)) });
|
|
731
|
-
return /* @__PURE__ */
|
|
731
|
+
return /* @__PURE__ */ o.jsx("div", { className: `menu ${e.className || ""}`, children: a(e.items) });
|
|
732
732
|
}, ka = Po(void 0), Xc = ({
|
|
733
733
|
children: e
|
|
734
734
|
}) => {
|
|
735
735
|
const [t, r] = F(null);
|
|
736
|
-
return /* @__PURE__ */
|
|
736
|
+
return /* @__PURE__ */ o.jsx(ka.Provider, { value: { activeOverlayId: t, setActiveOverlay: r }, children: e });
|
|
737
737
|
}, Wo = () => {
|
|
738
738
|
const e = Da(ka);
|
|
739
739
|
if (!e)
|
|
@@ -744,15 +744,15 @@ var me = function() {
|
|
|
744
744
|
return me = Object.assign || function(t) {
|
|
745
745
|
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
|
746
746
|
r = arguments[n];
|
|
747
|
-
for (var
|
|
747
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
748
748
|
}
|
|
749
749
|
return t;
|
|
750
750
|
}, me.apply(this, arguments);
|
|
751
751
|
};
|
|
752
752
|
function dt(e, t, r) {
|
|
753
|
-
if (r || arguments.length === 2) for (var n = 0, a = t.length,
|
|
754
|
-
(
|
|
755
|
-
return e.concat(
|
|
753
|
+
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
754
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
755
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
756
756
|
}
|
|
757
757
|
function Yo(e) {
|
|
758
758
|
var t = /* @__PURE__ */ Object.create(null);
|
|
@@ -765,7 +765,7 @@ var Vo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
765
765
|
return Vo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
766
766
|
}
|
|
767
767
|
/* Z+1 */
|
|
768
|
-
), V = "-ms-", It = "-moz-",
|
|
768
|
+
), V = "-ms-", It = "-moz-", L = "-webkit-", Ea = "comm", jr = "rule", Sn = "decl", zo = "@import", Pa = "@keyframes", Uo = "@layer", Ta = Math.abs, On = String.fromCharCode, Qr = Object.assign;
|
|
769
769
|
function Go(e, t) {
|
|
770
770
|
return te(e, 0) ^ 45 ? (((t << 2 ^ te(e, 0)) << 2 ^ te(e, 1)) << 2 ^ te(e, 2)) << 2 ^ te(e, 3) : 0;
|
|
771
771
|
}
|
|
@@ -805,8 +805,8 @@ function zn(e, t) {
|
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
var Sr = 1, ht = 1, Ia = 0, je = 0, J = 0, gt = "";
|
|
808
|
-
function Or(e, t, r, n, a,
|
|
809
|
-
return { value: e, root: t, parent: r, type: n, props: a, children:
|
|
808
|
+
function Or(e, t, r, n, a, i, s, l) {
|
|
809
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Sr, column: ht, length: s, return: "", siblings: l };
|
|
810
810
|
}
|
|
811
811
|
function We(e, t) {
|
|
812
812
|
return Qr(Or("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -917,18 +917,18 @@ function ti(e) {
|
|
|
917
917
|
function ri(e) {
|
|
918
918
|
return Jo(ur("", null, null, null, [""], e = Ko(e), 0, [0], e));
|
|
919
919
|
}
|
|
920
|
-
function ur(e, t, r, n, a,
|
|
921
|
-
for (var d = 0,
|
|
922
|
-
switch (b =
|
|
920
|
+
function ur(e, t, r, n, a, i, s, l, u) {
|
|
921
|
+
for (var d = 0, f = 0, v = s, g = 0, h = 0, b = 0, m = 1, w = 1, y = 1, p = 0, j = "", O = a, P = i, N = n, k = j; w; )
|
|
922
|
+
switch (b = p, p = Oe()) {
|
|
923
923
|
case 40:
|
|
924
924
|
if (b != 108 && te(k, v - 1) == 58) {
|
|
925
|
-
cr(k += T(Vr(
|
|
925
|
+
cr(k += T(Vr(p), "&", "&\f"), "&\f", Ta(d ? l[d - 1] : 0)) != -1 && (y = -1);
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
case 34:
|
|
929
929
|
case 39:
|
|
930
930
|
case 91:
|
|
931
|
-
k += Vr(
|
|
931
|
+
k += Vr(p);
|
|
932
932
|
break;
|
|
933
933
|
case 9:
|
|
934
934
|
case 10:
|
|
@@ -949,24 +949,24 @@ function ur(e, t, r, n, a, o, s, l, u) {
|
|
|
949
949
|
k += "/";
|
|
950
950
|
}
|
|
951
951
|
break;
|
|
952
|
-
case 123 *
|
|
952
|
+
case 123 * m:
|
|
953
953
|
l[d++] = Pe(k) * y;
|
|
954
|
-
case 125 *
|
|
954
|
+
case 125 * m:
|
|
955
955
|
case 59:
|
|
956
956
|
case 0:
|
|
957
|
-
switch (
|
|
957
|
+
switch (p) {
|
|
958
958
|
case 0:
|
|
959
959
|
case 125:
|
|
960
960
|
w = 0;
|
|
961
|
-
case 59 +
|
|
962
|
-
y == -1 && (k = T(k, /\f/g, "")),
|
|
961
|
+
case 59 + f:
|
|
962
|
+
y == -1 && (k = T(k, /\f/g, "")), h > 0 && Pe(k) - v && At(h > 32 ? Gn(k + ";", n, r, v - 1, u) : Gn(T(k, " ", "") + ";", n, r, v - 2, u), u);
|
|
963
963
|
break;
|
|
964
964
|
case 59:
|
|
965
965
|
k += ";";
|
|
966
966
|
default:
|
|
967
|
-
if (At(N = Un(k, t, r, d,
|
|
968
|
-
if (
|
|
969
|
-
ur(k, t, N, N, O,
|
|
967
|
+
if (At(N = Un(k, t, r, d, f, a, l, j, O = [], P = [], v, i), i), p === 123)
|
|
968
|
+
if (f === 0)
|
|
969
|
+
ur(k, t, N, N, O, i, v, l, P);
|
|
970
970
|
else
|
|
971
971
|
switch (g === 99 && te(k, 3) === 110 ? 100 : g) {
|
|
972
972
|
case 100:
|
|
@@ -979,38 +979,38 @@ function ur(e, t, r, n, a, o, s, l, u) {
|
|
|
979
979
|
ur(k, N, N, N, [""], P, 0, l, P);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
d =
|
|
982
|
+
d = f = h = 0, m = y = 1, j = k = "", v = s;
|
|
983
983
|
break;
|
|
984
984
|
case 58:
|
|
985
|
-
v = 1 + Pe(k),
|
|
985
|
+
v = 1 + Pe(k), h = b;
|
|
986
986
|
default:
|
|
987
|
-
if (
|
|
988
|
-
if (
|
|
989
|
-
--
|
|
990
|
-
else if (
|
|
987
|
+
if (m < 1) {
|
|
988
|
+
if (p == 123)
|
|
989
|
+
--m;
|
|
990
|
+
else if (p == 125 && m++ == 0 && Xo() == 125)
|
|
991
991
|
continue;
|
|
992
992
|
}
|
|
993
|
-
switch (k += On(
|
|
993
|
+
switch (k += On(p), p * m) {
|
|
994
994
|
case 38:
|
|
995
|
-
y =
|
|
995
|
+
y = f > 0 ? 1 : (k += "\f", -1);
|
|
996
996
|
break;
|
|
997
997
|
case 44:
|
|
998
998
|
l[d++] = (Pe(k) - 1) * y, y = 1;
|
|
999
999
|
break;
|
|
1000
1000
|
case 64:
|
|
1001
|
-
Je() === 45 && (k += Vr(Oe())), g = Je(),
|
|
1001
|
+
Je() === 45 && (k += Vr(Oe())), g = Je(), f = v = Pe(j = k += ti(lr())), p++;
|
|
1002
1002
|
break;
|
|
1003
1003
|
case 45:
|
|
1004
|
-
b === 45 && Pe(k) == 2 && (
|
|
1004
|
+
b === 45 && Pe(k) == 2 && (m = 0);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
|
-
return
|
|
1007
|
+
return i;
|
|
1008
1008
|
}
|
|
1009
|
-
function Un(e, t, r, n, a,
|
|
1010
|
-
for (var g = a - 1,
|
|
1011
|
-
for (var
|
|
1012
|
-
(O = Aa(w > 0 ?
|
|
1013
|
-
return Or(e, t, r, a === 0 ? jr : l, u, d,
|
|
1009
|
+
function Un(e, t, r, n, a, i, s, l, u, d, f, v) {
|
|
1010
|
+
for (var g = a - 1, h = a === 0 ? i : [""], b = Ra(h), m = 0, w = 0, y = 0; m < n; ++m)
|
|
1011
|
+
for (var p = 0, j = ft(e, g + 1, g = Ta(w = s[m])), O = e; p < b; ++p)
|
|
1012
|
+
(O = Aa(w > 0 ? h[p] + " " + j : T(j, /&\f/g, h[p]))) && (u[y++] = O);
|
|
1013
|
+
return Or(e, t, r, a === 0 ? jr : l, u, d, f, v);
|
|
1014
1014
|
}
|
|
1015
1015
|
function ni(e, t, r, n) {
|
|
1016
1016
|
return Or(e, t, r, Ea, On(Ho()), ft(e, 2, -2), 0, n);
|
|
@@ -1021,7 +1021,7 @@ function Gn(e, t, r, n, a) {
|
|
|
1021
1021
|
function $a(e, t, r) {
|
|
1022
1022
|
switch (Go(e, t)) {
|
|
1023
1023
|
case 5103:
|
|
1024
|
-
return
|
|
1024
|
+
return L + "print-" + e + e;
|
|
1025
1025
|
case 5737:
|
|
1026
1026
|
case 4201:
|
|
1027
1027
|
case 3177:
|
|
@@ -1047,7 +1047,7 @@ function $a(e, t, r) {
|
|
|
1047
1047
|
case 5365:
|
|
1048
1048
|
case 5621:
|
|
1049
1049
|
case 3829:
|
|
1050
|
-
return
|
|
1050
|
+
return L + e + e;
|
|
1051
1051
|
case 4789:
|
|
1052
1052
|
return It + e + e;
|
|
1053
1053
|
case 5349:
|
|
@@ -1055,43 +1055,43 @@ function $a(e, t, r) {
|
|
|
1055
1055
|
case 4810:
|
|
1056
1056
|
case 6968:
|
|
1057
1057
|
case 2756:
|
|
1058
|
-
return
|
|
1058
|
+
return L + e + It + e + V + e + e;
|
|
1059
1059
|
case 5936:
|
|
1060
1060
|
switch (te(e, t + 11)) {
|
|
1061
1061
|
case 114:
|
|
1062
|
-
return
|
|
1062
|
+
return L + e + V + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1063
1063
|
case 108:
|
|
1064
|
-
return
|
|
1064
|
+
return L + e + V + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1065
1065
|
case 45:
|
|
1066
|
-
return
|
|
1066
|
+
return L + e + V + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1067
1067
|
}
|
|
1068
1068
|
case 6828:
|
|
1069
1069
|
case 4268:
|
|
1070
1070
|
case 2903:
|
|
1071
|
-
return
|
|
1071
|
+
return L + e + V + e + e;
|
|
1072
1072
|
case 6165:
|
|
1073
|
-
return
|
|
1073
|
+
return L + e + V + "flex-" + e + e;
|
|
1074
1074
|
case 5187:
|
|
1075
|
-
return
|
|
1075
|
+
return L + e + T(e, /(\w+).+(:[^]+)/, L + "box-$1$2" + V + "flex-$1$2") + e;
|
|
1076
1076
|
case 5443:
|
|
1077
|
-
return
|
|
1077
|
+
return L + e + V + "flex-item-" + T(e, /flex-|-self/g, "") + (Ie(e, /flex-|baseline/) ? "" : V + "grid-row-" + T(e, /flex-|-self/g, "")) + e;
|
|
1078
1078
|
case 4675:
|
|
1079
|
-
return
|
|
1079
|
+
return L + e + V + "flex-line-pack" + T(e, /align-content|flex-|-self/g, "") + e;
|
|
1080
1080
|
case 5548:
|
|
1081
|
-
return
|
|
1081
|
+
return L + e + V + T(e, "shrink", "negative") + e;
|
|
1082
1082
|
case 5292:
|
|
1083
|
-
return
|
|
1083
|
+
return L + e + V + T(e, "basis", "preferred-size") + e;
|
|
1084
1084
|
case 6060:
|
|
1085
|
-
return
|
|
1085
|
+
return L + "box-" + T(e, "-grow", "") + L + e + V + T(e, "grow", "positive") + e;
|
|
1086
1086
|
case 4554:
|
|
1087
|
-
return
|
|
1087
|
+
return L + T(e, /([^-])(transform)/g, "$1" + L + "$2") + e;
|
|
1088
1088
|
case 6187:
|
|
1089
|
-
return T(T(T(e, /(zoom-|grab)/,
|
|
1089
|
+
return T(T(T(e, /(zoom-|grab)/, L + "$1"), /(image-set)/, L + "$1"), e, "") + e;
|
|
1090
1090
|
case 5495:
|
|
1091
1091
|
case 3959:
|
|
1092
|
-
return T(e, /(image-set\([^]*)/,
|
|
1092
|
+
return T(e, /(image-set\([^]*)/, L + "$1$`$1");
|
|
1093
1093
|
case 4968:
|
|
1094
|
-
return T(T(e, /(.+:)(flex-)?(.*)/,
|
|
1094
|
+
return T(T(e, /(.+:)(flex-)?(.*)/, L + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + L + e + e;
|
|
1095
1095
|
case 4200:
|
|
1096
1096
|
if (!Ie(e, /flex-|baseline/)) return V + "grid-column-align" + ft(e, t) + e;
|
|
1097
1097
|
break;
|
|
@@ -1112,7 +1112,7 @@ function $a(e, t, r) {
|
|
|
1112
1112
|
case 3583:
|
|
1113
1113
|
case 4068:
|
|
1114
1114
|
case 2532:
|
|
1115
|
-
return T(e, /(.+)-inline(.+)/,
|
|
1115
|
+
return T(e, /(.+)-inline(.+)/, L + "$1$2") + e;
|
|
1116
1116
|
case 8116:
|
|
1117
1117
|
case 7059:
|
|
1118
1118
|
case 5753:
|
|
@@ -1131,24 +1131,24 @@ function $a(e, t, r) {
|
|
|
1131
1131
|
if (te(e, t + 4) !== 45)
|
|
1132
1132
|
break;
|
|
1133
1133
|
case 102:
|
|
1134
|
-
return T(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
1134
|
+
return T(e, /(.+:)(.+)-([^]+)/, "$1" + L + "$2-$3$1" + It + (te(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1135
1135
|
case 115:
|
|
1136
1136
|
return ~cr(e, "stretch", 0) ? $a(T(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1137
1137
|
}
|
|
1138
1138
|
break;
|
|
1139
1139
|
case 5152:
|
|
1140
1140
|
case 5920:
|
|
1141
|
-
return T(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a,
|
|
1142
|
-
return V + a + ":" +
|
|
1141
|
+
return T(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, l, u, d) {
|
|
1142
|
+
return V + a + ":" + i + d + (s ? V + a + "-span:" + (l ? u : +u - +i) + d : "") + e;
|
|
1143
1143
|
});
|
|
1144
1144
|
case 4949:
|
|
1145
1145
|
if (te(e, t + 6) === 121)
|
|
1146
|
-
return T(e, ":", ":" +
|
|
1146
|
+
return T(e, ":", ":" + L) + e;
|
|
1147
1147
|
break;
|
|
1148
1148
|
case 6444:
|
|
1149
1149
|
switch (te(e, te(e, 14) === 45 ? 18 : 11)) {
|
|
1150
1150
|
case 120:
|
|
1151
|
-
return T(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
|
1151
|
+
return T(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + L + (te(e, 14) === 45 ? "inline-" : "") + "box$3$1" + L + "$2$3$1" + V + "$2box$3") + e;
|
|
1152
1152
|
case 100:
|
|
1153
1153
|
return T(e, ":", ":" + V) + e;
|
|
1154
1154
|
}
|
|
@@ -1185,9 +1185,9 @@ function ai(e, t, r, n) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function oi(e) {
|
|
1187
1187
|
var t = Ra(e);
|
|
1188
|
-
return function(r, n, a,
|
|
1188
|
+
return function(r, n, a, i) {
|
|
1189
1189
|
for (var s = "", l = 0; l < t; l++)
|
|
1190
|
-
s += e[l](r, n, a,
|
|
1190
|
+
s += e[l](r, n, a, i) || "";
|
|
1191
1191
|
return s;
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
@@ -1203,7 +1203,7 @@ function si(e, t, r, n) {
|
|
|
1203
1203
|
e.return = $a(e.value, e.length, r);
|
|
1204
1204
|
return;
|
|
1205
1205
|
case Pa:
|
|
1206
|
-
return mr([We(e, { value: T(e.value, "@", "@" +
|
|
1206
|
+
return mr([We(e, { value: T(e.value, "@", "@" + L) })], n);
|
|
1207
1207
|
case jr:
|
|
1208
1208
|
if (e.length)
|
|
1209
1209
|
return qo(r = e.props, function(a) {
|
|
@@ -1213,7 +1213,7 @@ function si(e, t, r, n) {
|
|
|
1213
1213
|
ct(We(e, { props: [T(a, /:(read-\w+)/, ":" + It + "$1")] })), ct(We(e, { props: [a] })), Qr(e, { props: zn(r, n) });
|
|
1214
1214
|
break;
|
|
1215
1215
|
case "::placeholder":
|
|
1216
|
-
ct(We(e, { props: [T(a, /:(plac\w+)/, ":" +
|
|
1216
|
+
ct(We(e, { props: [T(a, /:(plac\w+)/, ":" + L + "input-$1")] })), ct(We(e, { props: [T(a, /:(plac\w+)/, ":" + It + "$1")] })), ct(We(e, { props: [T(a, /:(plac\w+)/, V + "input-$1")] })), ct(We(e, { props: [a] })), Qr(e, { props: zn(r, n) });
|
|
1217
1217
|
break;
|
|
1218
1218
|
}
|
|
1219
1219
|
return "";
|
|
@@ -1277,11 +1277,11 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
1277
1277
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1278
1278
|
`, a = console.error;
|
|
1279
1279
|
try {
|
|
1280
|
-
var
|
|
1280
|
+
var i = !0;
|
|
1281
1281
|
console.error = function(s) {
|
|
1282
1282
|
for (var l = [], u = 1; u < arguments.length; u++) l[u - 1] = arguments[u];
|
|
1283
|
-
qn.test(s) ? (
|
|
1284
|
-
}, pe(),
|
|
1283
|
+
qn.test(s) ? (i = !1, rr.delete(n)) : a.apply(void 0, dt([s], l, !1));
|
|
1284
|
+
}, pe(), i && !rr.has(n) && (console.warn(n), rr.add(n));
|
|
1285
1285
|
} catch (s) {
|
|
1286
1286
|
qn.test(s.message) && rr.delete(n);
|
|
1287
1287
|
} finally {
|
|
@@ -1333,9 +1333,9 @@ function Ua(e, t, r) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
var a = wi(t);
|
|
1335
1335
|
Jn && (a = a.concat(Jn(t)));
|
|
1336
|
-
for (var
|
|
1336
|
+
for (var i = Kn(e), s = Kn(t), l = 0; l < a.length; ++l) {
|
|
1337
1337
|
var u = a[l];
|
|
1338
|
-
if (!(u in yi || r && r[u] || s && u in s ||
|
|
1338
|
+
if (!(u in yi || r && r[u] || s && u in s || i && u in i)) {
|
|
1339
1339
|
var d = ji(t, u);
|
|
1340
1340
|
try {
|
|
1341
1341
|
xi(e, u, d);
|
|
@@ -1416,7 +1416,7 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
1416
1416
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1417
1417
|
function Di() {
|
|
1418
1418
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1419
|
-
for (var r = e[0], n = [], a = 1,
|
|
1419
|
+
for (var r = e[0], n = [], a = 1, i = e.length; a < i; a += 1) n.push(e[a]);
|
|
1420
1420
|
return n.forEach(function(s) {
|
|
1421
1421
|
r = r.replace(/%[a-z]/, s);
|
|
1422
1422
|
}), r;
|
|
@@ -1434,21 +1434,21 @@ var Ni = function() {
|
|
|
1434
1434
|
return r;
|
|
1435
1435
|
}, e.prototype.insertRules = function(t, r) {
|
|
1436
1436
|
if (t >= this.groupSizes.length) {
|
|
1437
|
-
for (var n = this.groupSizes, a = n.length,
|
|
1438
|
-
this.groupSizes = new Uint32Array(
|
|
1439
|
-
for (var s = a; s <
|
|
1437
|
+
for (var n = this.groupSizes, a = n.length, i = a; t >= i; ) if ((i <<= 1) < 0) throw yt(16, "".concat(t));
|
|
1438
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1439
|
+
for (var s = a; s < i; s++) this.groupSizes[s] = 0;
|
|
1440
1440
|
}
|
|
1441
1441
|
for (var l = this.indexOfGroup(t + 1), u = (s = 0, r.length); s < u; s++) this.tag.insertRule(l, r[s]) && (this.groupSizes[t]++, l++);
|
|
1442
1442
|
}, e.prototype.clearGroup = function(t) {
|
|
1443
1443
|
if (t < this.length) {
|
|
1444
1444
|
var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
|
|
1445
1445
|
this.groupSizes[t] = 0;
|
|
1446
|
-
for (var
|
|
1446
|
+
for (var i = n; i < a; i++) this.tag.deleteRule(n);
|
|
1447
1447
|
}
|
|
1448
1448
|
}, e.prototype.getGroup = function(t) {
|
|
1449
1449
|
var r = "";
|
|
1450
1450
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1451
|
-
for (var n = this.groupSizes[t], a = this.indexOfGroup(t),
|
|
1451
|
+
for (var n = this.groupSizes[t], a = this.indexOfGroup(t), i = a + n, s = a; s < i; s++) r += "".concat(this.tag.getRule(s)).concat(Dn);
|
|
1452
1452
|
return r;
|
|
1453
1453
|
}, e;
|
|
1454
1454
|
}(), _i = 1 << 30, dr = /* @__PURE__ */ new Map(), gr = /* @__PURE__ */ new Map(), fr = 1, ar = function(e) {
|
|
@@ -1460,15 +1460,15 @@ var Ni = function() {
|
|
|
1460
1460
|
}, Ci = function(e, t) {
|
|
1461
1461
|
fr = t + 1, dr.set(e, t), gr.set(t, e);
|
|
1462
1462
|
}, ki = "style[".concat(et, "][").concat(La, '="').concat(Nr, '"]'), Ei = new RegExp("^".concat(et, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Pi = function(e, t, r) {
|
|
1463
|
-
for (var n, a = r.split(","),
|
|
1463
|
+
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
1464
1464
|
}, Ti = function(e, t) {
|
|
1465
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Dn), a = [],
|
|
1466
|
-
var l = n[
|
|
1465
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Dn), a = [], i = 0, s = n.length; i < s; i++) {
|
|
1466
|
+
var l = n[i].trim();
|
|
1467
1467
|
if (l) {
|
|
1468
1468
|
var u = l.match(Ei);
|
|
1469
1469
|
if (u) {
|
|
1470
|
-
var d = 0 | parseInt(u[1], 10),
|
|
1471
|
-
d !== 0 && (Ci(
|
|
1470
|
+
var d = 0 | parseInt(u[1], 10), f = u[2];
|
|
1471
|
+
d !== 0 && (Ci(f, d), Pi(e, f, u[3]), e.getTag().insertRules(d, a)), a.length = 0;
|
|
1472
1472
|
} else a.push(l);
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
@@ -1485,15 +1485,15 @@ var Ga = function(e) {
|
|
|
1485
1485
|
var t = document.head, r = e || t, n = document.createElement("style"), a = function(l) {
|
|
1486
1486
|
var u = Array.from(l.querySelectorAll("style[".concat(et, "]")));
|
|
1487
1487
|
return u[u.length - 1];
|
|
1488
|
-
}(r),
|
|
1488
|
+
}(r), i = a !== void 0 ? a.nextSibling : null;
|
|
1489
1489
|
n.setAttribute(et, Ma), n.setAttribute(La, Nr);
|
|
1490
1490
|
var s = Ai();
|
|
1491
|
-
return s && n.setAttribute("nonce", s), r.insertBefore(n,
|
|
1491
|
+
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
1492
1492
|
}, Ri = function() {
|
|
1493
1493
|
function e(t) {
|
|
1494
1494
|
this.element = Ga(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1495
1495
|
if (r.sheet) return r.sheet;
|
|
1496
|
-
for (var n = document.styleSheets, a = 0,
|
|
1496
|
+
for (var n = document.styleSheets, a = 0, i = n.length; a < i; a++) {
|
|
1497
1497
|
var s = n[a];
|
|
1498
1498
|
if (s.ownerNode === r) return s;
|
|
1499
1499
|
}
|
|
@@ -1543,19 +1543,19 @@ var Ga = function(e) {
|
|
|
1543
1543
|
t === void 0 && (t = vt), r === void 0 && (r = {});
|
|
1544
1544
|
var a = this;
|
|
1545
1545
|
this.options = me(me({}, Mi), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && pr && ta && (ta = !1, ea(this)), _n(this, function() {
|
|
1546
|
-
return function(
|
|
1547
|
-
for (var s =
|
|
1546
|
+
return function(i) {
|
|
1547
|
+
for (var s = i.getTag(), l = s.length, u = "", d = function(v) {
|
|
1548
1548
|
var g = function(y) {
|
|
1549
1549
|
return gr.get(y);
|
|
1550
1550
|
}(v);
|
|
1551
1551
|
if (g === void 0) return "continue";
|
|
1552
|
-
var
|
|
1553
|
-
if (
|
|
1554
|
-
var
|
|
1555
|
-
|
|
1552
|
+
var h = i.names.get(g), b = s.getGroup(v);
|
|
1553
|
+
if (h === void 0 || !h.size || b.length === 0) return "continue";
|
|
1554
|
+
var m = "".concat(et, ".g").concat(v, '[id="').concat(g, '"]'), w = "";
|
|
1555
|
+
h !== void 0 && h.forEach(function(y) {
|
|
1556
1556
|
y.length > 0 && (w += "".concat(y, ","));
|
|
1557
|
-
}), u += "".concat(b).concat(
|
|
1558
|
-
},
|
|
1557
|
+
}), u += "".concat(b).concat(m, '{content:"').concat(w, '"}').concat(Dn);
|
|
1558
|
+
}, f = 0; f < l; f++) d(f);
|
|
1559
1559
|
return u;
|
|
1560
1560
|
}(a);
|
|
1561
1561
|
});
|
|
@@ -1600,23 +1600,23 @@ function Ha(e, t) {
|
|
|
1600
1600
|
});
|
|
1601
1601
|
}
|
|
1602
1602
|
function Wi(e) {
|
|
1603
|
-
var t, r, n, a = vt,
|
|
1603
|
+
var t, r, n, a = vt, i = a.options, s = i === void 0 ? vt : i, l = a.plugins, u = l === void 0 ? _r : l, d = function(g, h, b) {
|
|
1604
1604
|
return b.startsWith(r) && b.endsWith(r) && b.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1605
|
-
},
|
|
1606
|
-
|
|
1605
|
+
}, f = u.slice();
|
|
1606
|
+
f.push(function(g) {
|
|
1607
1607
|
g.type === jr && g.value.includes("&") && (g.props[0] = g.props[0].replace(Li, r).replace(n, d));
|
|
1608
|
-
}), s.prefix &&
|
|
1609
|
-
var v = function(g,
|
|
1610
|
-
|
|
1611
|
-
var w = g.replace(Fi, ""), y = ri(b ||
|
|
1608
|
+
}), s.prefix && f.push(si), f.push(ai);
|
|
1609
|
+
var v = function(g, h, b, m) {
|
|
1610
|
+
h === void 0 && (h = ""), b === void 0 && (b = ""), m === void 0 && (m = "&"), t = m, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1611
|
+
var w = g.replace(Fi, ""), y = ri(b || h ? "".concat(b, " ").concat(h, " { ").concat(w, " }") : w);
|
|
1612
1612
|
s.namespace && (y = Ha(y, s.namespace));
|
|
1613
|
-
var
|
|
1614
|
-
return mr(y, oi(
|
|
1615
|
-
return
|
|
1616
|
-
})))),
|
|
1613
|
+
var p = [];
|
|
1614
|
+
return mr(y, oi(f.concat(ii(function(j) {
|
|
1615
|
+
return p.push(j);
|
|
1616
|
+
})))), p;
|
|
1617
1617
|
};
|
|
1618
|
-
return v.hash = u.length ? u.reduce(function(g,
|
|
1619
|
-
return
|
|
1618
|
+
return v.hash = u.length ? u.reduce(function(g, h) {
|
|
1619
|
+
return h.name || yt(15), Xe(g, h.name);
|
|
1620
1620
|
}, Fa).toString() : "", v;
|
|
1621
1621
|
}
|
|
1622
1622
|
var Yi = new qa(), an = Wi(), Xa = Te.createContext({ shouldForwardProp: void 0, styleSheet: Yi, stylis: an });
|
|
@@ -1628,10 +1628,10 @@ function ra() {
|
|
|
1628
1628
|
var na = function() {
|
|
1629
1629
|
function e(t, r) {
|
|
1630
1630
|
var n = this;
|
|
1631
|
-
this.inject = function(a,
|
|
1632
|
-
|
|
1633
|
-
var s = n.name +
|
|
1634
|
-
a.hasNameForId(n.id, s) || a.insertRules(n.id, s,
|
|
1631
|
+
this.inject = function(a, i) {
|
|
1632
|
+
i === void 0 && (i = an);
|
|
1633
|
+
var s = n.name + i.hash;
|
|
1634
|
+
a.hasNameForId(n.id, s) || a.insertRules(n.id, s, i(n.rules, s, "@keyframes"));
|
|
1635
1635
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, _n(this, function() {
|
|
1636
1636
|
throw yt(12, String(n.name));
|
|
1637
1637
|
});
|
|
@@ -1655,8 +1655,8 @@ var Ka = function(e) {
|
|
|
1655
1655
|
}, Ja = function(e) {
|
|
1656
1656
|
var t, r, n = [];
|
|
1657
1657
|
for (var a in e) {
|
|
1658
|
-
var
|
|
1659
|
-
e.hasOwnProperty(a) && !Ka(
|
|
1658
|
+
var i = e[a];
|
|
1659
|
+
e.hasOwnProperty(a) && !Ka(i) && (Array.isArray(i) && i.isCss || mt(i) ? n.push("".concat(aa(a), ":"), i, ";") : pt(i) ? n.push.apply(n, dt(dt(["".concat(a, " {")], Ja(i), !1), ["}"], !1)) : n.push("".concat(aa(a), ": ").concat((t = a, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in ci || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1660
1660
|
}
|
|
1661
1661
|
return n;
|
|
1662
1662
|
};
|
|
@@ -1664,11 +1664,11 @@ function Qe(e, t, r, n) {
|
|
|
1664
1664
|
if (Ka(e)) return [];
|
|
1665
1665
|
if (Nn(e)) return [".".concat(e.styledComponentId)];
|
|
1666
1666
|
if (mt(e)) {
|
|
1667
|
-
if (!mt(
|
|
1667
|
+
if (!mt(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1668
1668
|
var a = e(t);
|
|
1669
1669
|
return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof na || pt(a) || a === null || console.error("".concat(Ya(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Qe(a, t, r, n);
|
|
1670
1670
|
}
|
|
1671
|
-
var
|
|
1671
|
+
var i;
|
|
1672
1672
|
return e instanceof na ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : pt(e) ? Ja(e) : Array.isArray(e) ? Array.prototype.concat.apply(_r, e.map(function(s) {
|
|
1673
1673
|
return Qe(s, t, r, n);
|
|
1674
1674
|
})) : [e.toString()];
|
|
@@ -1688,25 +1688,25 @@ var zi = Wa(Nr), Ui = function() {
|
|
|
1688
1688
|
var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1689
1689
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) a = Ke(a, this.staticRulesId);
|
|
1690
1690
|
else {
|
|
1691
|
-
var
|
|
1691
|
+
var i = Zn(Qe(this.rules, t, r, n)), s = rn(Xe(this.baseHash, i) >>> 0);
|
|
1692
1692
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
1693
|
-
var l = n(
|
|
1693
|
+
var l = n(i, ".".concat(s), void 0, this.componentId);
|
|
1694
1694
|
r.insertRules(this.componentId, s, l);
|
|
1695
1695
|
}
|
|
1696
1696
|
a = Ke(a, s), this.staticRulesId = s;
|
|
1697
1697
|
}
|
|
1698
1698
|
else {
|
|
1699
|
-
for (var u = Xe(this.baseHash, n.hash), d = "",
|
|
1700
|
-
var v = this.rules[
|
|
1699
|
+
for (var u = Xe(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1700
|
+
var v = this.rules[f];
|
|
1701
1701
|
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (u = Xe(u, v));
|
|
1702
1702
|
else if (v) {
|
|
1703
1703
|
var g = Zn(Qe(v, t, r, n));
|
|
1704
|
-
u = Xe(u, g +
|
|
1704
|
+
u = Xe(u, g + f), d += g;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
if (d) {
|
|
1708
|
-
var
|
|
1709
|
-
r.hasNameForId(this.componentId,
|
|
1708
|
+
var h = rn(u >>> 0);
|
|
1709
|
+
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), a = Ke(a, h);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
return a;
|
|
@@ -1715,25 +1715,25 @@ var zi = Wa(Nr), Ui = function() {
|
|
|
1715
1715
|
Qa.Consumer;
|
|
1716
1716
|
var Ur = {}, oa = /* @__PURE__ */ new Set();
|
|
1717
1717
|
function Gi(e, t, r) {
|
|
1718
|
-
var n = Nn(e), a = e,
|
|
1718
|
+
var n = Nn(e), a = e, i = !zr(e), s = t.attrs, l = s === void 0 ? _r : s, u = t.componentId, d = u === void 0 ? function(O, P) {
|
|
1719
1719
|
var N = typeof O != "string" ? "sc" : Hn(O);
|
|
1720
1720
|
Ur[N] = (Ur[N] || 0) + 1;
|
|
1721
1721
|
var k = "".concat(N, "-").concat(mi(Nr + N + Ur[N]));
|
|
1722
1722
|
return P ? "".concat(P, "-").concat(k) : k;
|
|
1723
|
-
}(t.displayName, t.parentComponentId) : u,
|
|
1723
|
+
}(t.displayName, t.parentComponentId) : u, f = t.displayName, v = f === void 0 ? function(O) {
|
|
1724
1724
|
return zr(O) ? "styled.".concat(O) : "Styled(".concat(Ya(O), ")");
|
|
1725
|
-
}(e) :
|
|
1725
|
+
}(e) : f, g = t.displayName && t.componentId ? "".concat(Hn(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, b = t.shouldForwardProp;
|
|
1726
1726
|
if (n && a.shouldForwardProp) {
|
|
1727
|
-
var
|
|
1727
|
+
var m = a.shouldForwardProp;
|
|
1728
1728
|
if (t.shouldForwardProp) {
|
|
1729
1729
|
var w = t.shouldForwardProp;
|
|
1730
1730
|
b = function(O, P) {
|
|
1731
|
-
return
|
|
1731
|
+
return m(O, P) && w(O, P);
|
|
1732
1732
|
};
|
|
1733
|
-
} else b =
|
|
1733
|
+
} else b = m;
|
|
1734
1734
|
}
|
|
1735
1735
|
var y = new Ui(r, g, n ? a.componentStyle : void 0);
|
|
1736
|
-
function
|
|
1736
|
+
function p(O, P) {
|
|
1737
1737
|
return function(N, k, $) {
|
|
1738
1738
|
var X = N.attrs, re = N.componentStyle, Me = N.defaultProps, ge = N.foldedComponentIds, se = N.styledComponentId, ce = N.target, Se = Te.useContext(Qa), Z = ra(), De = N.shouldForwardProp || Z.shouldForwardProp;
|
|
1739
1739
|
process.env.NODE_ENV !== "production" && Yn(se);
|
|
@@ -1754,9 +1754,9 @@ function Gi(e, t, r) {
|
|
|
1754
1754
|
return be && (Ne += " " + be), q.className && (Ne += " " + q.className), ne[zr(B) && !tn.has(B) ? "class" : "className"] = Ne, $ && (ne.ref = $), To(B, ne);
|
|
1755
1755
|
}(j, O, P);
|
|
1756
1756
|
}
|
|
1757
|
-
|
|
1758
|
-
var j = Te.forwardRef(
|
|
1759
|
-
return j.attrs =
|
|
1757
|
+
p.displayName = v;
|
|
1758
|
+
var j = Te.forwardRef(p);
|
|
1759
|
+
return j.attrs = h, j.componentStyle = y, j.displayName = v, j.shouldForwardProp = b, j.foldedComponentIds = n ? Ke(a.foldedComponentIds, a.styledComponentId) : "", j.styledComponentId = g, j.target = n ? a.target : e, Object.defineProperty(j, "defaultProps", { get: function() {
|
|
1760
1760
|
return this._foldedDefaultProps;
|
|
1761
1761
|
}, set: function(O) {
|
|
1762
1762
|
this._foldedDefaultProps = n ? function(P) {
|
|
@@ -1783,7 +1783,7 @@ Example:
|
|
|
1783
1783
|
};
|
|
1784
1784
|
}(v, g)), _n(j, function() {
|
|
1785
1785
|
return ".".concat(j.styledComponentId);
|
|
1786
|
-
}),
|
|
1786
|
+
}), i && Ua(j, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), j;
|
|
1787
1787
|
}
|
|
1788
1788
|
function ia(e, t) {
|
|
1789
1789
|
for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -1801,8 +1801,8 @@ function hr(e) {
|
|
|
1801
1801
|
function on(e, t, r) {
|
|
1802
1802
|
if (r === void 0 && (r = vt), !t) throw yt(1, t);
|
|
1803
1803
|
var n = function(a) {
|
|
1804
|
-
for (var
|
|
1805
|
-
return e(t, r, hr.apply(void 0, dt([a],
|
|
1804
|
+
for (var i = [], s = 1; s < arguments.length; s++) i[s - 1] = arguments[s];
|
|
1805
|
+
return e(t, r, hr.apply(void 0, dt([a], i, !1)));
|
|
1806
1806
|
};
|
|
1807
1807
|
return n.attrs = function(a) {
|
|
1808
1808
|
return on(e, t, me(me({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
|
|
@@ -1840,22 +1840,22 @@ const qi = Cn.div`
|
|
|
1840
1840
|
coordonnees: r,
|
|
1841
1841
|
children: n,
|
|
1842
1842
|
show: a,
|
|
1843
|
-
closeOverlay:
|
|
1843
|
+
closeOverlay: i
|
|
1844
1844
|
}, s) => {
|
|
1845
|
-
const { activeOverlayId: l, setActiveOverlay: u } = Wo(), [d,
|
|
1845
|
+
const { activeOverlayId: l, setActiveOverlay: u } = Wo(), [d, f] = F(a || !1), [v, g] = F(
|
|
1846
1846
|
r ?? { top: 0, left: 0 }
|
|
1847
|
-
),
|
|
1847
|
+
), h = pe(null), b = Ao();
|
|
1848
1848
|
wr(s, () => ({
|
|
1849
1849
|
setCoords: g
|
|
1850
1850
|
})), Q(() => {
|
|
1851
|
-
l !== b &&
|
|
1851
|
+
l !== b && f(!1);
|
|
1852
1852
|
}, [l, b]), Q(() => {
|
|
1853
1853
|
const y = () => {
|
|
1854
|
-
var
|
|
1854
|
+
var p;
|
|
1855
1855
|
if (!t && r)
|
|
1856
1856
|
g(r);
|
|
1857
1857
|
else if (e) {
|
|
1858
|
-
const j = e.getBoundingClientRect(), O = (
|
|
1858
|
+
const j = e.getBoundingClientRect(), O = (p = h.current) == null ? void 0 : p.getBoundingClientRect(), { innerWidth: P, innerHeight: N } = window;
|
|
1859
1859
|
if (O) {
|
|
1860
1860
|
let k, $;
|
|
1861
1861
|
const X = {
|
|
@@ -1890,30 +1890,30 @@ const qi = Cn.div`
|
|
|
1890
1890
|
};
|
|
1891
1891
|
return d && (y(), window.addEventListener("resize", y)), () => window.removeEventListener("resize", y);
|
|
1892
1892
|
}, [e, d, t]);
|
|
1893
|
-
const
|
|
1894
|
-
|
|
1893
|
+
const m = () => {
|
|
1894
|
+
f(!0), u(b);
|
|
1895
1895
|
}, w = A(
|
|
1896
1896
|
(y) => {
|
|
1897
|
-
y.stopPropagation(),
|
|
1897
|
+
y.stopPropagation(), f(!1), u(null), i && i(!1);
|
|
1898
1898
|
},
|
|
1899
|
-
[
|
|
1899
|
+
[i, u]
|
|
1900
1900
|
);
|
|
1901
1901
|
return Q(() => {
|
|
1902
|
-
const y = (
|
|
1903
|
-
|
|
1902
|
+
const y = (p) => {
|
|
1903
|
+
h.current && !h.current.contains(p.target) && w(p);
|
|
1904
1904
|
};
|
|
1905
1905
|
return d && document.addEventListener("mousedown", y), () => {
|
|
1906
1906
|
document.removeEventListener("mousedown", y);
|
|
1907
1907
|
};
|
|
1908
1908
|
}, [d, w]), Q(() => {
|
|
1909
|
-
a &&
|
|
1909
|
+
a && m();
|
|
1910
1910
|
}, [a]), d ? jn.createPortal(
|
|
1911
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ o.jsx(qi, { ref: h, $top: v.top, $left: v.left, children: /* @__PURE__ */ o.jsxs(
|
|
1912
1912
|
"div",
|
|
1913
1913
|
{
|
|
1914
1914
|
className: `overlayPanel ${v.top > 0 || v.left > 0 ? "visible" : "hide"}`,
|
|
1915
1915
|
children: [
|
|
1916
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: w, children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" }) }),
|
|
1917
1917
|
n
|
|
1918
1918
|
]
|
|
1919
1919
|
}
|
|
@@ -1927,64 +1927,64 @@ const qi = Cn.div`
|
|
|
1927
1927
|
title: r,
|
|
1928
1928
|
actions: n,
|
|
1929
1929
|
positionActions: a = "topRight",
|
|
1930
|
-
disabled:
|
|
1930
|
+
disabled: i = !1
|
|
1931
1931
|
}) => {
|
|
1932
|
-
const s = (
|
|
1933
|
-
|
|
1934
|
-
}, l = pe(null), [u, d] = F(!1),
|
|
1935
|
-
(
|
|
1936
|
-
|
|
1932
|
+
const s = (h) => {
|
|
1933
|
+
h.preventDefault(), t && t(h);
|
|
1934
|
+
}, l = pe(null), [u, d] = F(!1), f = A(
|
|
1935
|
+
(h) => {
|
|
1936
|
+
h.stopPropagation(), n && d(!u);
|
|
1937
1937
|
},
|
|
1938
1938
|
[u, d]
|
|
1939
|
-
), v = Ye(() => n ? n.map((
|
|
1940
|
-
id:
|
|
1941
|
-
icon:
|
|
1942
|
-
name:
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1939
|
+
), v = Ye(() => n ? n.map((h, b) => ({
|
|
1940
|
+
id: h.id ?? b,
|
|
1941
|
+
icon: h.icon,
|
|
1942
|
+
name: h.label,
|
|
1943
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1944
1944
|
Ft,
|
|
1945
1945
|
{
|
|
1946
|
-
classIcon:
|
|
1946
|
+
classIcon: h.icon,
|
|
1947
1947
|
sizeIcon: we.LARGE,
|
|
1948
|
-
onClick: (
|
|
1949
|
-
|
|
1948
|
+
onClick: (m) => {
|
|
1949
|
+
m.stopPropagation(), g(), h.onClick && h.onClick(h);
|
|
1950
1950
|
},
|
|
1951
|
-
title:
|
|
1951
|
+
title: h.label || ""
|
|
1952
1952
|
},
|
|
1953
1953
|
b
|
|
1954
1954
|
)
|
|
1955
1955
|
})) : [], [n]), g = A(() => {
|
|
1956
1956
|
d(!1);
|
|
1957
1957
|
}, [d]);
|
|
1958
|
-
return /* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1958
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1959
|
+
/* @__PURE__ */ o.jsxs(
|
|
1960
1960
|
"button",
|
|
1961
1961
|
{
|
|
1962
|
-
disabled:
|
|
1962
|
+
disabled: i,
|
|
1963
1963
|
type: "submit",
|
|
1964
|
-
onClick: (
|
|
1964
|
+
onClick: (h) => s(h),
|
|
1965
1965
|
className: ` ${e} button-actions`,
|
|
1966
1966
|
children: [
|
|
1967
|
-
/* @__PURE__ */
|
|
1968
|
-
/* @__PURE__ */
|
|
1967
|
+
/* @__PURE__ */ o.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
1968
|
+
/* @__PURE__ */ o.jsx(
|
|
1969
1969
|
"span",
|
|
1970
1970
|
{
|
|
1971
1971
|
className: "ml-2",
|
|
1972
1972
|
ref: l,
|
|
1973
|
-
onClick: (
|
|
1974
|
-
children: /* @__PURE__ */
|
|
1973
|
+
onClick: (h) => f(h),
|
|
1974
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-chevron-up" })
|
|
1975
1975
|
}
|
|
1976
1976
|
)
|
|
1977
1977
|
]
|
|
1978
1978
|
}
|
|
1979
1979
|
),
|
|
1980
|
-
n && u && l.current && /* @__PURE__ */
|
|
1980
|
+
n && u && l.current && /* @__PURE__ */ o.jsx(
|
|
1981
1981
|
kn,
|
|
1982
1982
|
{
|
|
1983
1983
|
show: u,
|
|
1984
1984
|
position: a,
|
|
1985
1985
|
closeOverlay: d,
|
|
1986
1986
|
referenceElement: l.current,
|
|
1987
|
-
children: /* @__PURE__ */
|
|
1987
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ca, { className: "card-action-menu", items: v }) })
|
|
1988
1988
|
}
|
|
1989
1989
|
)
|
|
1990
1990
|
] });
|
|
@@ -1994,35 +1994,35 @@ const qi = Cn.div`
|
|
|
1994
1994
|
item: r,
|
|
1995
1995
|
positions: n,
|
|
1996
1996
|
positionOverlay: a,
|
|
1997
|
-
setOpenActions:
|
|
1997
|
+
setOpenActions: i
|
|
1998
1998
|
}) => {
|
|
1999
1999
|
const s = pe(null), [l, u] = F(
|
|
2000
2000
|
a
|
|
2001
|
-
), d = pe(null), [
|
|
2001
|
+
), d = pe(null), [f, v] = F(t ?? !1);
|
|
2002
2002
|
Q(() => {
|
|
2003
2003
|
t && v(t);
|
|
2004
2004
|
}, [t]);
|
|
2005
2005
|
const g = A(
|
|
2006
|
-
(
|
|
2007
|
-
e.length !== 0 && (
|
|
2006
|
+
(m, w) => {
|
|
2007
|
+
e.length !== 0 && (m.preventDefault(), u("bottomRight"), i && i(w));
|
|
2008
2008
|
},
|
|
2009
|
-
[u,
|
|
2010
|
-
),
|
|
2011
|
-
u(void 0), v(!1),
|
|
2012
|
-
}, [v, u,
|
|
2013
|
-
let y =
|
|
2014
|
-
return
|
|
2009
|
+
[u, i]
|
|
2010
|
+
), h = A(() => {
|
|
2011
|
+
u(void 0), v(!1), i && i(!1);
|
|
2012
|
+
}, [v, u, i]), b = Ye(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m, w) => {
|
|
2013
|
+
let y = m.label || "";
|
|
2014
|
+
return m.setLabel && r && (y = m.setLabel(r)), {
|
|
2015
2015
|
id: w,
|
|
2016
|
-
icon:
|
|
2017
|
-
name:
|
|
2018
|
-
children: /* @__PURE__ */
|
|
2016
|
+
icon: m.icon,
|
|
2017
|
+
name: m.label,
|
|
2018
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2019
2019
|
Ft,
|
|
2020
2020
|
{
|
|
2021
|
-
classIcon:
|
|
2022
|
-
disabled: r &&
|
|
2021
|
+
classIcon: m.icon,
|
|
2022
|
+
disabled: r && m.disabled ? m.disabled(r) : !1,
|
|
2023
2023
|
sizeIcon: we.LARGE,
|
|
2024
|
-
onClick: (
|
|
2025
|
-
|
|
2024
|
+
onClick: (p) => {
|
|
2025
|
+
p.stopPropagation(), h(), m.onClick && r && m.onClick(r);
|
|
2026
2026
|
},
|
|
2027
2027
|
title: y
|
|
2028
2028
|
},
|
|
@@ -2030,23 +2030,23 @@ const qi = Cn.div`
|
|
|
2030
2030
|
)
|
|
2031
2031
|
};
|
|
2032
2032
|
}), [e]);
|
|
2033
|
-
return /* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "card-actions", children: [
|
|
2034
|
+
/* @__PURE__ */ o.jsxs(
|
|
2035
2035
|
"div",
|
|
2036
2036
|
{
|
|
2037
2037
|
ref: d,
|
|
2038
|
-
className: `card-action ${e.filter((
|
|
2039
|
-
onClick: (
|
|
2038
|
+
className: `card-action ${e.filter((m) => m.type === "menu").length ? "visible" : "hidden"}`,
|
|
2039
|
+
onClick: (m) => g(m, !f),
|
|
2040
2040
|
children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2042
|
-
|
|
2041
|
+
/* @__PURE__ */ o.jsx(
|
|
2042
|
+
M,
|
|
2043
2043
|
{
|
|
2044
2044
|
size: we.MEDIUM,
|
|
2045
2045
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2046
2046
|
}
|
|
2047
2047
|
),
|
|
2048
|
-
/* @__PURE__ */
|
|
2049
|
-
|
|
2048
|
+
/* @__PURE__ */ o.jsx(
|
|
2049
|
+
M,
|
|
2050
2050
|
{
|
|
2051
2051
|
size: we.MEDIUM,
|
|
2052
2052
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -2055,16 +2055,16 @@ const qi = Cn.div`
|
|
|
2055
2055
|
]
|
|
2056
2056
|
}
|
|
2057
2057
|
),
|
|
2058
|
-
|
|
2058
|
+
f && d.current && /* @__PURE__ */ o.jsx(
|
|
2059
2059
|
kn,
|
|
2060
2060
|
{
|
|
2061
2061
|
position: l,
|
|
2062
|
-
show:
|
|
2062
|
+
show: f,
|
|
2063
2063
|
ref: s,
|
|
2064
|
-
closeOverlay:
|
|
2064
|
+
closeOverlay: h,
|
|
2065
2065
|
coordonnees: n,
|
|
2066
2066
|
referenceElement: d.current,
|
|
2067
|
-
children: /* @__PURE__ */
|
|
2067
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ca, { className: "card-action-menu", items: b }) })
|
|
2068
2068
|
}
|
|
2069
2069
|
)
|
|
2070
2070
|
] });
|
|
@@ -2074,57 +2074,57 @@ const qi = Cn.div`
|
|
|
2074
2074
|
className: r,
|
|
2075
2075
|
handleClick: n,
|
|
2076
2076
|
onClose: a,
|
|
2077
|
-
customAction:
|
|
2077
|
+
customAction: i,
|
|
2078
2078
|
positionOverlay: s,
|
|
2079
2079
|
children: l
|
|
2080
2080
|
}) => {
|
|
2081
|
-
const [u, d] = F(!1), [
|
|
2081
|
+
const [u, d] = F(!1), [f, v] = F(!1), [g, h] = F(), b = (w, y) => {
|
|
2082
2082
|
w.stopPropagation(), a && a(y);
|
|
2083
|
-
},
|
|
2083
|
+
}, m = A(
|
|
2084
2084
|
(w, y) => {
|
|
2085
|
-
if (w.stopPropagation(),
|
|
2086
|
-
return
|
|
2087
|
-
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!u), n && w.button !== 2 ? n(y) : (
|
|
2085
|
+
if (w.stopPropagation(), f)
|
|
2086
|
+
return h(void 0), v(!1);
|
|
2087
|
+
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!u), n && w.button !== 2 ? n(y) : (h({ top: w.clientY, left: w.clientX }), v(!0)));
|
|
2088
2088
|
},
|
|
2089
2089
|
[
|
|
2090
2090
|
d,
|
|
2091
|
-
f,
|
|
2092
|
-
n,
|
|
2093
2091
|
h,
|
|
2092
|
+
n,
|
|
2093
|
+
f,
|
|
2094
2094
|
v,
|
|
2095
2095
|
u
|
|
2096
2096
|
]
|
|
2097
2097
|
);
|
|
2098
|
-
return /* @__PURE__ */
|
|
2098
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2099
2099
|
"div",
|
|
2100
2100
|
{
|
|
2101
2101
|
onContextMenu: (w) => w.preventDefault(),
|
|
2102
|
-
onMouseDown: (w) =>
|
|
2102
|
+
onMouseDown: (w) => m(w, e),
|
|
2103
2103
|
className: `card ${r ?? ""} ${u ? "card--active" : ""} `,
|
|
2104
2104
|
children: [
|
|
2105
2105
|
l,
|
|
2106
|
-
!l && /* @__PURE__ */
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
e.image && /* @__PURE__ */
|
|
2109
|
-
e.title && /* @__PURE__ */
|
|
2110
|
-
e.description && /* @__PURE__ */
|
|
2106
|
+
!l && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2107
|
+
/* @__PURE__ */ o.jsxs("div", { className: "card-text d-flex", children: [
|
|
2108
|
+
e.image && /* @__PURE__ */ o.jsx("div", { className: "card-img", children: /* @__PURE__ */ o.jsx("img", { src: e.image, alt: "card-image" }) }),
|
|
2109
|
+
e.title && /* @__PURE__ */ o.jsx("div", { className: "card-title", children: e.title }),
|
|
2110
|
+
e.description && /* @__PURE__ */ o.jsx("div", { className: "card-content", children: e.description })
|
|
2111
2111
|
] }),
|
|
2112
|
-
/* @__PURE__ */
|
|
2113
|
-
|
|
2114
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ o.jsxs("div", { className: "card-footer", children: [
|
|
2113
|
+
i && /* @__PURE__ */ o.jsx("div", { className: "card-custom-action", children: i }),
|
|
2114
|
+
/* @__PURE__ */ o.jsx("div", { className: "d-flex flex-1 align-items-center", children: e.prix && /* @__PURE__ */ o.jsx("div", { className: "card-prix", children: e.prix }) })
|
|
2115
2115
|
] }),
|
|
2116
|
-
a && /* @__PURE__ */
|
|
2116
|
+
a && /* @__PURE__ */ o.jsx(
|
|
2117
2117
|
"div",
|
|
2118
2118
|
{
|
|
2119
2119
|
className: "ml-2 cursor-pointer",
|
|
2120
2120
|
onClick: (w) => b(w, e),
|
|
2121
|
-
children: /* @__PURE__ */
|
|
2121
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-trash3" })
|
|
2122
2122
|
}
|
|
2123
2123
|
),
|
|
2124
|
-
t && /* @__PURE__ */
|
|
2124
|
+
t && /* @__PURE__ */ o.jsx(
|
|
2125
2125
|
Hi,
|
|
2126
2126
|
{
|
|
2127
|
-
openActions:
|
|
2127
|
+
openActions: f,
|
|
2128
2128
|
setOpenActions: v,
|
|
2129
2129
|
actions: t,
|
|
2130
2130
|
item: e,
|
|
@@ -2147,44 +2147,44 @@ const qi = Cn.div`
|
|
|
2147
2147
|
xl: 5
|
|
2148
2148
|
}
|
|
2149
2149
|
}) => {
|
|
2150
|
-
const [a,
|
|
2150
|
+
const [a, i] = F(0), s = e.length, [l, u] = F(1);
|
|
2151
2151
|
Q(() => {
|
|
2152
2152
|
const b = () => {
|
|
2153
|
-
const
|
|
2154
|
-
if (n.xl &&
|
|
2153
|
+
const m = window.innerWidth;
|
|
2154
|
+
if (n.xl && m >= 1200)
|
|
2155
2155
|
return u(n.xl);
|
|
2156
|
-
if (n.lg &&
|
|
2156
|
+
if (n.lg && m >= 992)
|
|
2157
2157
|
return u(n.lg);
|
|
2158
|
-
if (n.md &&
|
|
2158
|
+
if (n.md && m >= 768)
|
|
2159
2159
|
return u(n.md);
|
|
2160
|
-
if (n.sm &&
|
|
2160
|
+
if (n.sm && m >= 576)
|
|
2161
2161
|
return u(n.sm);
|
|
2162
2162
|
};
|
|
2163
2163
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
2164
2164
|
}, [n]);
|
|
2165
2165
|
const d = A(
|
|
2166
2166
|
(b) => {
|
|
2167
|
-
b.preventDefault(),
|
|
2168
|
-
(
|
|
2167
|
+
b.preventDefault(), i(
|
|
2168
|
+
(m) => Math.min(m + r, s - l)
|
|
2169
2169
|
);
|
|
2170
2170
|
},
|
|
2171
|
-
[
|
|
2172
|
-
),
|
|
2171
|
+
[i]
|
|
2172
|
+
), f = A(
|
|
2173
2173
|
(b) => {
|
|
2174
|
-
b.preventDefault(),
|
|
2174
|
+
b.preventDefault(), i((m) => Math.max(m - r, 0));
|
|
2175
2175
|
},
|
|
2176
|
-
[
|
|
2177
|
-
), v = a + r >= s - l + 1, g = s <= l,
|
|
2178
|
-
return /* @__PURE__ */
|
|
2179
|
-
t && !g && /* @__PURE__ */
|
|
2176
|
+
[i]
|
|
2177
|
+
), v = a + r >= s - l + 1, g = s <= l, h = a <= 0;
|
|
2178
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2179
|
+
t && !g && /* @__PURE__ */ o.jsx(
|
|
2180
2180
|
"div",
|
|
2181
2181
|
{
|
|
2182
|
-
className: `carousel-control prev ${
|
|
2183
|
-
onClick:
|
|
2184
|
-
children: /* @__PURE__ */
|
|
2182
|
+
className: `carousel-control prev ${h && "disabled"}`,
|
|
2183
|
+
onClick: f,
|
|
2184
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-chevron-left" })
|
|
2185
2185
|
}
|
|
2186
2186
|
),
|
|
2187
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ o.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ o.jsx(
|
|
2188
2188
|
"div",
|
|
2189
2189
|
{
|
|
2190
2190
|
className: "carousel-slides-wrapper",
|
|
@@ -2193,7 +2193,7 @@ const qi = Cn.div`
|
|
|
2193
2193
|
transform: `translateX(-${a * 100 / l}%)`,
|
|
2194
2194
|
transition: "transform 0.5s ease-in-out"
|
|
2195
2195
|
},
|
|
2196
|
-
children: Te.Children.map(e, (b) => /* @__PURE__ */
|
|
2196
|
+
children: Te.Children.map(e, (b) => /* @__PURE__ */ o.jsx(
|
|
2197
2197
|
"div",
|
|
2198
2198
|
{
|
|
2199
2199
|
className: "carousel-slide",
|
|
@@ -2206,12 +2206,12 @@ const qi = Cn.div`
|
|
|
2206
2206
|
))
|
|
2207
2207
|
}
|
|
2208
2208
|
) }),
|
|
2209
|
-
t && !g && /* @__PURE__ */
|
|
2209
|
+
t && !g && /* @__PURE__ */ o.jsx(
|
|
2210
2210
|
"div",
|
|
2211
2211
|
{
|
|
2212
2212
|
className: `carousel-control next ${v && "disabled"}`,
|
|
2213
2213
|
onClick: d,
|
|
2214
|
-
children: /* @__PURE__ */
|
|
2214
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-chevron-right" })
|
|
2215
2215
|
}
|
|
2216
2216
|
)
|
|
2217
2217
|
] });
|
|
@@ -2219,7 +2219,7 @@ const qi = Cn.div`
|
|
|
2219
2219
|
const r = () => {
|
|
2220
2220
|
t && t(e);
|
|
2221
2221
|
};
|
|
2222
|
-
return /* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ o.jsx("div", { className: "cell", onClick: r, children: e.child });
|
|
2223
2223
|
}, Zc = ({
|
|
2224
2224
|
cols: e,
|
|
2225
2225
|
rows: t,
|
|
@@ -2227,40 +2227,40 @@ const qi = Cn.div`
|
|
|
2227
2227
|
page: n = 1,
|
|
2228
2228
|
onClick: a
|
|
2229
2229
|
}) => {
|
|
2230
|
-
const
|
|
2230
|
+
const i = Ye(() => e ?? 9, [e]), s = Ye(() => t ?? 9, [t]), [l, u] = F(1);
|
|
2231
2231
|
Q(() => {
|
|
2232
2232
|
u(n);
|
|
2233
2233
|
}, [n]);
|
|
2234
2234
|
const d = Ye(() => {
|
|
2235
|
-
const
|
|
2235
|
+
const f = [];
|
|
2236
2236
|
for (let v = 0; v < s; v++) {
|
|
2237
2237
|
const g = [];
|
|
2238
|
-
for (let
|
|
2239
|
-
const b =
|
|
2238
|
+
for (let h = 0; h < i; h++) {
|
|
2239
|
+
const b = h + v * i, m = r == null ? void 0 : r.find(
|
|
2240
2240
|
(w) => w.position === b + 1
|
|
2241
2241
|
);
|
|
2242
|
-
|
|
2243
|
-
/* @__PURE__ */
|
|
2242
|
+
m ? g.push(
|
|
2243
|
+
/* @__PURE__ */ o.jsx(Xi, { onClick: a, cell: m }, `${v}-${h}`)
|
|
2244
2244
|
) : g.push(
|
|
2245
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${v}-${h}`)
|
|
2246
2246
|
);
|
|
2247
2247
|
}
|
|
2248
|
-
|
|
2249
|
-
/* @__PURE__ */
|
|
2248
|
+
f.push(
|
|
2249
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: g }, v)
|
|
2250
2250
|
);
|
|
2251
2251
|
}
|
|
2252
|
-
return
|
|
2253
|
-
}, [
|
|
2254
|
-
return /* @__PURE__ */
|
|
2255
|
-
}, ca = ({ display: e, full: t, message: r }) => /* @__PURE__ */
|
|
2256
|
-
e && !t && /* @__PURE__ */
|
|
2257
|
-
r && /* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2252
|
+
return f;
|
|
2253
|
+
}, [i, s, l]);
|
|
2254
|
+
return /* @__PURE__ */ o.jsx("div", { className: "damier", children: d });
|
|
2255
|
+
}, ca = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2256
|
+
e && !t && /* @__PURE__ */ o.jsxs("div", { className: "d-flex flex-column align-items-center", children: [
|
|
2257
|
+
r && /* @__PURE__ */ o.jsx("span", { className: "mb-3", children: r }),
|
|
2258
|
+
/* @__PURE__ */ o.jsx("div", { className: "position-relative", children: /* @__PURE__ */ o.jsx("span", { className: "loader" }) })
|
|
2259
2259
|
] }),
|
|
2260
2260
|
e && t && Na(
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
r && /* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
2261
|
+
/* @__PURE__ */ o.jsx("div", { className: "loader-overlay", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "d-flex flex-column align-items-center", children: [
|
|
2262
|
+
r && /* @__PURE__ */ o.jsx("span", { className: "mb-3", children: r }),
|
|
2263
|
+
/* @__PURE__ */ o.jsx("div", { className: "position-relative", children: /* @__PURE__ */ o.jsx("span", { className: "loader" }) })
|
|
2264
2264
|
] }) }) }),
|
|
2265
2265
|
document.body
|
|
2266
2266
|
)
|
|
@@ -2270,36 +2270,48 @@ const qi = Cn.div`
|
|
|
2270
2270
|
options: r,
|
|
2271
2271
|
className: n,
|
|
2272
2272
|
disabled: a,
|
|
2273
|
-
multiple:
|
|
2273
|
+
multiple: i = !1,
|
|
2274
2274
|
defaultValue: s,
|
|
2275
2275
|
onChange: l,
|
|
2276
2276
|
onChangeMultiple: u,
|
|
2277
2277
|
value: d,
|
|
2278
|
-
placeholder:
|
|
2278
|
+
placeholder: f
|
|
2279
2279
|
}) => {
|
|
2280
|
-
const v = pe({}), g = (
|
|
2281
|
-
let
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
(
|
|
2285
|
-
), u && u(
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2280
|
+
const v = pe({}), g = (b) => {
|
|
2281
|
+
let m;
|
|
2282
|
+
i ? (m = Array.from(
|
|
2283
|
+
b.target.selectedOptions,
|
|
2284
|
+
(w) => w.value
|
|
2285
|
+
), u && u(m)) : (m = b.target.value, l && l(m));
|
|
2286
|
+
}, h = A(() => {
|
|
2287
|
+
l && l("");
|
|
2288
|
+
}, [l]);
|
|
2289
|
+
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
2290
|
+
t && /* @__PURE__ */ o.jsx("label", { htmlFor: `select-${e}`, className: "select-container-label", children: t }),
|
|
2291
|
+
/* @__PURE__ */ o.jsxs(
|
|
2290
2292
|
"select",
|
|
2291
2293
|
{
|
|
2292
2294
|
disabled: a,
|
|
2295
|
+
id: `select-${e}`,
|
|
2293
2296
|
className: "select-container-select",
|
|
2294
|
-
value: d ?? s ?? (
|
|
2297
|
+
value: d ?? s ?? (i ? [] : ""),
|
|
2295
2298
|
onChange: g,
|
|
2296
|
-
multiple:
|
|
2297
|
-
ref: (
|
|
2299
|
+
multiple: i,
|
|
2300
|
+
ref: (b) => v.current[e ?? "select"] = b,
|
|
2298
2301
|
children: [
|
|
2299
|
-
|
|
2300
|
-
r.map((
|
|
2302
|
+
f && !s && !i && /* @__PURE__ */ o.jsx("option", { disabled: !0, hidden: !0, value: "", children: f }),
|
|
2303
|
+
r.map((b, m) => /* @__PURE__ */ o.jsx("option", { value: b.value, children: b.label }, m))
|
|
2301
2304
|
]
|
|
2302
2305
|
}
|
|
2306
|
+
),
|
|
2307
|
+
d !== "" && f && /* @__PURE__ */ o.jsx(
|
|
2308
|
+
"div",
|
|
2309
|
+
{
|
|
2310
|
+
className: "clear-btn",
|
|
2311
|
+
onClick: h,
|
|
2312
|
+
"aria-label": "Réinitialiser",
|
|
2313
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x" })
|
|
2314
|
+
}
|
|
2303
2315
|
)
|
|
2304
2316
|
] });
|
|
2305
2317
|
};
|
|
@@ -2309,19 +2321,19 @@ function el(e) {
|
|
|
2309
2321
|
name: r,
|
|
2310
2322
|
className: n,
|
|
2311
2323
|
children: a,
|
|
2312
|
-
element:
|
|
2324
|
+
element: i,
|
|
2313
2325
|
data: s = [],
|
|
2314
2326
|
actions: l = [],
|
|
2315
2327
|
columns: u = [],
|
|
2316
2328
|
loading: d,
|
|
2317
|
-
onRowClick:
|
|
2329
|
+
onRowClick: f,
|
|
2318
2330
|
onColumnClick: v,
|
|
2319
2331
|
onLoadMore: g,
|
|
2320
|
-
hasMore:
|
|
2332
|
+
hasMore: h
|
|
2321
2333
|
} = e, b = pe(null);
|
|
2322
2334
|
return Q(() => {
|
|
2323
|
-
if (!g || !
|
|
2324
|
-
const
|
|
2335
|
+
if (!g || !h) return;
|
|
2336
|
+
const m = new IntersectionObserver(
|
|
2325
2337
|
(w) => {
|
|
2326
2338
|
w[0].isIntersecting && g();
|
|
2327
2339
|
},
|
|
@@ -2331,29 +2343,29 @@ function el(e) {
|
|
|
2331
2343
|
threshold: 1
|
|
2332
2344
|
}
|
|
2333
2345
|
);
|
|
2334
|
-
return b.current &&
|
|
2335
|
-
b.current &&
|
|
2346
|
+
return b.current && m.observe(b.current), () => {
|
|
2347
|
+
b.current && m.unobserve(b.current);
|
|
2336
2348
|
};
|
|
2337
|
-
}, [g,
|
|
2338
|
-
r && /* @__PURE__ */
|
|
2339
|
-
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
u.map((
|
|
2349
|
+
}, [g, h]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2350
|
+
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
2351
|
+
i,
|
|
2352
|
+
/* @__PURE__ */ o.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
2353
|
+
/* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsxs("tr", { children: [
|
|
2354
|
+
u.map((m, w) => /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2343
2355
|
"th",
|
|
2344
2356
|
{
|
|
2345
2357
|
style: {
|
|
2346
|
-
minWidth:
|
|
2347
|
-
maxWidth:
|
|
2348
|
-
width:
|
|
2349
|
-
textAlign:
|
|
2358
|
+
minWidth: m.minWidth,
|
|
2359
|
+
maxWidth: m.maxWidth,
|
|
2360
|
+
width: m.width,
|
|
2361
|
+
textAlign: m.align || "left"
|
|
2350
2362
|
},
|
|
2351
|
-
onClick: () => v == null ? void 0 : v(
|
|
2352
|
-
children:
|
|
2363
|
+
onClick: () => v == null ? void 0 : v(m),
|
|
2364
|
+
children: m.label
|
|
2353
2365
|
},
|
|
2354
|
-
`colonne-${
|
|
2366
|
+
`colonne-${m.id}-${w}`
|
|
2355
2367
|
) })),
|
|
2356
|
-
l.length > 0 && /* @__PURE__ */
|
|
2368
|
+
l.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2357
2369
|
"th",
|
|
2358
2370
|
{
|
|
2359
2371
|
style: {
|
|
@@ -2364,19 +2376,19 @@ function el(e) {
|
|
|
2364
2376
|
"actions"
|
|
2365
2377
|
)
|
|
2366
2378
|
] }) }),
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
d ? /* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ o.jsxs("tbody", { children: [
|
|
2380
|
+
d ? /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
|
|
2369
2381
|
"td",
|
|
2370
2382
|
{
|
|
2371
2383
|
align: "center",
|
|
2372
2384
|
colSpan: u.length + (l.length > 0 ? 1 : 0),
|
|
2373
|
-
children: /* @__PURE__ */
|
|
2385
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(ca, { display: d }) })
|
|
2374
2386
|
}
|
|
2375
|
-
) }) : /* @__PURE__ */
|
|
2376
|
-
!d && s.map((
|
|
2377
|
-
u.map((y,
|
|
2378
|
-
const j =
|
|
2379
|
-
return /* @__PURE__ */
|
|
2387
|
+
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2388
|
+
!d && s.map((m, w) => /* @__PURE__ */ o.jsxs("tr", { onClick: () => f == null ? void 0 : f(m), children: [
|
|
2389
|
+
u.map((y, p) => {
|
|
2390
|
+
const j = m[y.id], O = y.onRowStyle ? y.onRowStyle(m) : {};
|
|
2391
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2380
2392
|
"td",
|
|
2381
2393
|
{
|
|
2382
2394
|
style: {
|
|
@@ -2386,16 +2398,16 @@ function el(e) {
|
|
|
2386
2398
|
width: y.width,
|
|
2387
2399
|
...O
|
|
2388
2400
|
},
|
|
2389
|
-
children: y.editable ? y.type === "select" ? /* @__PURE__ */
|
|
2401
|
+
children: y.editable ? y.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
2390
2402
|
eo,
|
|
2391
2403
|
{
|
|
2392
2404
|
options: y.options ?? [],
|
|
2393
2405
|
value: j,
|
|
2394
2406
|
onChange: (P) => {
|
|
2395
|
-
y.onEdit && y.onEdit(P,
|
|
2407
|
+
y.onEdit && y.onEdit(P, m);
|
|
2396
2408
|
}
|
|
2397
2409
|
}
|
|
2398
|
-
) : /* @__PURE__ */
|
|
2410
|
+
) : /* @__PURE__ */ o.jsx(
|
|
2399
2411
|
"input",
|
|
2400
2412
|
{
|
|
2401
2413
|
type: y.type,
|
|
@@ -2403,57 +2415,57 @@ function el(e) {
|
|
|
2403
2415
|
step: "0.01",
|
|
2404
2416
|
style: { textAlign: y.align || "left" },
|
|
2405
2417
|
onChange: (P) => {
|
|
2406
|
-
y.onEdit && y.onEdit(P.target.value,
|
|
2418
|
+
y.onEdit && y.onEdit(P.target.value, m);
|
|
2407
2419
|
}
|
|
2408
2420
|
}
|
|
2409
2421
|
) : y.format ? y.format(j) : j
|
|
2410
2422
|
},
|
|
2411
|
-
`row-${y.id}-${
|
|
2423
|
+
`row-${y.id}-${p}`
|
|
2412
2424
|
) });
|
|
2413
2425
|
}),
|
|
2414
|
-
l.length > 0 && /* @__PURE__ */
|
|
2426
|
+
l.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: l.map((y, p) => {
|
|
2415
2427
|
let j = y.label;
|
|
2416
|
-
return (y.shouldDisplay ? y.shouldDisplay(
|
|
2417
|
-
y.type === "button" && /* @__PURE__ */
|
|
2428
|
+
return (y.shouldDisplay ? y.shouldDisplay(m) : !0) ? (y.labelButton && (j = y.labelButton ? y.labelButton(m) : y.label), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2429
|
+
y.type === "button" && /* @__PURE__ */ o.jsx(
|
|
2418
2430
|
Ft,
|
|
2419
2431
|
{
|
|
2420
2432
|
title: j,
|
|
2421
|
-
onClick: () => y.onClick(
|
|
2433
|
+
onClick: () => y.onClick(m),
|
|
2422
2434
|
disabled: y.disabled,
|
|
2423
2435
|
className: `data-table-action button--tertiary mr-2 w-100 ${y.classIcon ? y.classIcon : ""}`
|
|
2424
2436
|
},
|
|
2425
|
-
`button-action-${y.id}-${
|
|
2437
|
+
`button-action-${y.id}-${p}`
|
|
2426
2438
|
),
|
|
2427
|
-
y.type === "icon" && /* @__PURE__ */
|
|
2439
|
+
y.type === "icon" && /* @__PURE__ */ o.jsx(
|
|
2428
2440
|
"div",
|
|
2429
2441
|
{
|
|
2430
2442
|
className: "mr-2 ",
|
|
2431
|
-
onClick: () => y.onClick(
|
|
2432
|
-
children: /* @__PURE__ */
|
|
2433
|
-
|
|
2443
|
+
onClick: () => y.onClick(m),
|
|
2444
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2445
|
+
M,
|
|
2434
2446
|
{
|
|
2435
2447
|
classIcon: y.classIcon ?? ""
|
|
2436
2448
|
},
|
|
2437
2449
|
y.id
|
|
2438
2450
|
)
|
|
2439
2451
|
},
|
|
2440
|
-
`icon-action-${y.id}-${
|
|
2452
|
+
`icon-action-${y.id}-${p}`
|
|
2441
2453
|
)
|
|
2442
2454
|
] })) : null;
|
|
2443
2455
|
}) }) })
|
|
2444
2456
|
] }, w)),
|
|
2445
|
-
!d && s.length === 0 && /* @__PURE__ */
|
|
2457
|
+
!d && s.length === 0 && /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
|
|
2446
2458
|
"td",
|
|
2447
2459
|
{
|
|
2448
2460
|
align: "center",
|
|
2449
2461
|
colSpan: u.length + (l.length > 0 ? 1 : 0),
|
|
2450
|
-
children: /* @__PURE__ */
|
|
2462
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: e.emptyMessage || "Aucune donnée disponible" })
|
|
2451
2463
|
}
|
|
2452
2464
|
) })
|
|
2453
2465
|
] })
|
|
2454
2466
|
] }),
|
|
2455
2467
|
a,
|
|
2456
|
-
|
|
2468
|
+
h && /* @__PURE__ */ o.jsx("div", { ref: b, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(ca, { display: !0 }) })
|
|
2457
2469
|
] });
|
|
2458
2470
|
}
|
|
2459
2471
|
function to(e) {
|
|
@@ -2472,8 +2484,8 @@ function Cr() {
|
|
|
2472
2484
|
const Ki = (e, t, r, n) => {
|
|
2473
2485
|
if (r === "length" || r === "prototype" || r === "arguments" || r === "caller")
|
|
2474
2486
|
return;
|
|
2475
|
-
const a = Object.getOwnPropertyDescriptor(e, r),
|
|
2476
|
-
!Ji(a,
|
|
2487
|
+
const a = Object.getOwnPropertyDescriptor(e, r), i = Object.getOwnPropertyDescriptor(t, r);
|
|
2488
|
+
!Ji(a, i) && n || Object.defineProperty(e, r, i);
|
|
2477
2489
|
}, Ji = function(e, t) {
|
|
2478
2490
|
return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
|
|
2479
2491
|
}, Qi = (e, t) => {
|
|
@@ -2497,25 +2509,25 @@ var as = ns, sn = { exports: {} }, os = () => {
|
|
|
2497
2509
|
};
|
|
2498
2510
|
(function(e, t) {
|
|
2499
2511
|
var r = tr && tr.__awaiter || function(s, l, u, d) {
|
|
2500
|
-
return new (u || (u = Promise))(function(
|
|
2501
|
-
function g(
|
|
2512
|
+
return new (u || (u = Promise))(function(f, v) {
|
|
2513
|
+
function g(m) {
|
|
2502
2514
|
try {
|
|
2503
|
-
b(d.next(
|
|
2515
|
+
b(d.next(m));
|
|
2504
2516
|
} catch (w) {
|
|
2505
2517
|
v(w);
|
|
2506
2518
|
}
|
|
2507
2519
|
}
|
|
2508
|
-
function
|
|
2520
|
+
function h(m) {
|
|
2509
2521
|
try {
|
|
2510
|
-
b(d.throw(
|
|
2522
|
+
b(d.throw(m));
|
|
2511
2523
|
} catch (w) {
|
|
2512
2524
|
v(w);
|
|
2513
2525
|
}
|
|
2514
2526
|
}
|
|
2515
|
-
function b(
|
|
2516
|
-
|
|
2517
|
-
w(
|
|
2518
|
-
}).then(g,
|
|
2527
|
+
function b(m) {
|
|
2528
|
+
m.done ? f(m.value) : new u(function(w) {
|
|
2529
|
+
w(m.value);
|
|
2530
|
+
}).then(g, h);
|
|
2519
2531
|
}
|
|
2520
2532
|
b((d = d.apply(s, l || [])).next());
|
|
2521
2533
|
});
|
|
@@ -2524,47 +2536,47 @@ var as = ns, sn = { exports: {} }, os = () => {
|
|
|
2524
2536
|
};
|
|
2525
2537
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
2526
2538
|
const a = n(os);
|
|
2527
|
-
function
|
|
2528
|
-
let u, d,
|
|
2539
|
+
function i(s, l = "maxAge") {
|
|
2540
|
+
let u, d, f;
|
|
2529
2541
|
const v = () => r(this, void 0, void 0, function* () {
|
|
2530
2542
|
if (u !== void 0)
|
|
2531
2543
|
return;
|
|
2532
|
-
const b = (
|
|
2533
|
-
|
|
2534
|
-
const w =
|
|
2544
|
+
const b = (m) => r(this, void 0, void 0, function* () {
|
|
2545
|
+
f = a.default();
|
|
2546
|
+
const w = m[1][l] - Date.now();
|
|
2535
2547
|
if (w <= 0) {
|
|
2536
|
-
s.delete(
|
|
2548
|
+
s.delete(m[0]), f.resolve();
|
|
2537
2549
|
return;
|
|
2538
2550
|
}
|
|
2539
|
-
return u =
|
|
2540
|
-
s.delete(
|
|
2541
|
-
}, w), typeof d.unref == "function" && d.unref(),
|
|
2551
|
+
return u = m[0], d = setTimeout(() => {
|
|
2552
|
+
s.delete(m[0]), f && f.resolve();
|
|
2553
|
+
}, w), typeof d.unref == "function" && d.unref(), f.promise;
|
|
2542
2554
|
});
|
|
2543
2555
|
try {
|
|
2544
|
-
for (const
|
|
2545
|
-
yield b(
|
|
2556
|
+
for (const m of s)
|
|
2557
|
+
yield b(m);
|
|
2546
2558
|
} catch {
|
|
2547
2559
|
}
|
|
2548
2560
|
u = void 0;
|
|
2549
2561
|
}), g = () => {
|
|
2550
|
-
u = void 0, d !== void 0 && (clearTimeout(d), d = void 0),
|
|
2551
|
-
},
|
|
2552
|
-
return s.set = (b,
|
|
2562
|
+
u = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
2563
|
+
}, h = s.set.bind(s);
|
|
2564
|
+
return s.set = (b, m) => {
|
|
2553
2565
|
s.has(b) && s.delete(b);
|
|
2554
|
-
const w =
|
|
2566
|
+
const w = h(b, m);
|
|
2555
2567
|
return u && u === b && g(), v(), w;
|
|
2556
2568
|
}, v(), s;
|
|
2557
2569
|
}
|
|
2558
|
-
t.default =
|
|
2570
|
+
t.default = i, e.exports = i, e.exports.default = i;
|
|
2559
2571
|
})(sn, sn.exports);
|
|
2560
2572
|
var is = sn.exports;
|
|
2561
2573
|
const ss = as, cs = is, Gr = /* @__PURE__ */ new WeakMap(), ro = /* @__PURE__ */ new WeakMap(), yr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
|
|
2562
2574
|
typeof n == "number" && cs(r);
|
|
2563
|
-
const a = function(...
|
|
2564
|
-
const s = t ? t(
|
|
2575
|
+
const a = function(...i) {
|
|
2576
|
+
const s = t ? t(i) : i[0], l = r.get(s);
|
|
2565
2577
|
if (l)
|
|
2566
2578
|
return l.data;
|
|
2567
|
-
const u = e.apply(this,
|
|
2579
|
+
const u = e.apply(this, i);
|
|
2568
2580
|
return r.set(s, {
|
|
2569
2581
|
data: u,
|
|
2570
2582
|
maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
|
|
@@ -2580,8 +2592,8 @@ yr.decorator = (e = {}) => (t, r, n) => {
|
|
|
2580
2592
|
throw new TypeError("The decorated value must be a function");
|
|
2581
2593
|
delete n.value, delete n.writable, n.get = function() {
|
|
2582
2594
|
if (!Gr.has(this)) {
|
|
2583
|
-
const
|
|
2584
|
-
return Gr.set(this,
|
|
2595
|
+
const i = yr(a, e);
|
|
2596
|
+
return Gr.set(this, i), i;
|
|
2585
2597
|
}
|
|
2586
2598
|
return Gr.get(this);
|
|
2587
2599
|
};
|
|
@@ -2623,20 +2635,20 @@ function cn(e) {
|
|
|
2623
2635
|
}
|
|
2624
2636
|
if (e.indexOf("-") === -1 || !fs(e))
|
|
2625
2637
|
return e;
|
|
2626
|
-
var a = e.split("-"),
|
|
2627
|
-
return "".concat(
|
|
2638
|
+
var a = e.split("-"), i = a[0], s = a[1], l = s === void 0 ? "" : s;
|
|
2639
|
+
return "".concat(i, "-").concat(l.toUpperCase());
|
|
2628
2640
|
}
|
|
2629
2641
|
function hs(e) {
|
|
2630
|
-
var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale,
|
|
2642
|
+
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 = [];
|
|
2631
2643
|
if (typeof navigator < "u") {
|
|
2632
|
-
for (var l = navigator.languages || [], u = [], d = 0,
|
|
2633
|
-
var v =
|
|
2644
|
+
for (var l = navigator.languages || [], u = [], d = 0, f = l; d < f.length; d++) {
|
|
2645
|
+
var v = f[d];
|
|
2634
2646
|
u = u.concat(la(v));
|
|
2635
2647
|
}
|
|
2636
|
-
var g = navigator.language,
|
|
2637
|
-
s = s.concat(u,
|
|
2648
|
+
var g = navigator.language, h = g && la(g);
|
|
2649
|
+
s = s.concat(u, h);
|
|
2638
2650
|
}
|
|
2639
|
-
return n && s.push(
|
|
2651
|
+
return n && s.push(i), s.filter(us).map(cn).filter(ds);
|
|
2640
2652
|
}
|
|
2641
2653
|
var vs = no(hs, { cacheKey: JSON.stringify });
|
|
2642
2654
|
function ms(e) {
|
|
@@ -2644,9 +2656,9 @@ function ms(e) {
|
|
|
2644
2656
|
}
|
|
2645
2657
|
var ao = no(ms, { cacheKey: JSON.stringify });
|
|
2646
2658
|
function $e(e, t, r) {
|
|
2647
|
-
return function(a,
|
|
2648
|
-
|
|
2649
|
-
var s = e(a) +
|
|
2659
|
+
return function(a, i) {
|
|
2660
|
+
i === void 0 && (i = r);
|
|
2661
|
+
var s = e(a) + i;
|
|
2650
2662
|
return t(s);
|
|
2651
2663
|
};
|
|
2652
2664
|
}
|
|
@@ -2698,8 +2710,8 @@ var uo = $e(U, xt, -1), Tn = $e(U, xt, 1), Pr = Wt(Tn), fo = $e(U, Pr, -1), ys =
|
|
|
2698
2710
|
function An(e, t) {
|
|
2699
2711
|
return function(n, a) {
|
|
2700
2712
|
a === void 0 && (a = t);
|
|
2701
|
-
var
|
|
2702
|
-
return l.setFullYear(
|
|
2713
|
+
var i = U(n), s = Ve(n) + a, l = /* @__PURE__ */ new Date();
|
|
2714
|
+
return l.setFullYear(i, s, 1), l.setHours(0, 0, 0, 0), e(l);
|
|
2703
2715
|
};
|
|
2704
2716
|
}
|
|
2705
2717
|
function tt(e) {
|
|
@@ -2710,8 +2722,8 @@ var ho = An(tt, -1), Rn = An(tt, 1), Vt = Wt(Rn), vo = An(Vt, -1), bs = Yt(tt, V
|
|
|
2710
2722
|
function xs(e, t) {
|
|
2711
2723
|
return function(n, a) {
|
|
2712
2724
|
a === void 0 && (a = t);
|
|
2713
|
-
var
|
|
2714
|
-
return u.setFullYear(
|
|
2725
|
+
var i = U(n), s = Ve(n), l = kr(n) + a, u = /* @__PURE__ */ new Date();
|
|
2726
|
+
return u.setFullYear(i, s, l), u.setHours(0, 0, 0, 0), e(u);
|
|
2715
2727
|
};
|
|
2716
2728
|
}
|
|
2717
2729
|
function Bt(e) {
|
|
@@ -2777,8 +2789,8 @@ function Os(e) {
|
|
|
2777
2789
|
return function(r, n) {
|
|
2778
2790
|
var a = r || ao();
|
|
2779
2791
|
qr.has(a) || qr.set(a, /* @__PURE__ */ new Map());
|
|
2780
|
-
var
|
|
2781
|
-
return
|
|
2792
|
+
var i = qr.get(a);
|
|
2793
|
+
return i.has(e) || i.set(e, new Intl.DateTimeFormat(a || void 0, e).format), i.get(e)(n);
|
|
2782
2794
|
};
|
|
2783
2795
|
}
|
|
2784
2796
|
function Ds(e) {
|
|
@@ -2828,9 +2840,9 @@ function ln(e, t) {
|
|
|
2828
2840
|
}
|
|
2829
2841
|
function Vs(e, t) {
|
|
2830
2842
|
t === void 0 && (t = ie.ISO_8601);
|
|
2831
|
-
var r = t === ie.GREGORY ? ie.GREGORY : ie.ISO_8601, n = ln(e, t), a = U(e) + 1,
|
|
2843
|
+
var r = t === ie.GREGORY ? ie.GREGORY : ie.ISO_8601, n = ln(e, t), a = U(e) + 1, i, s;
|
|
2832
2844
|
do
|
|
2833
|
-
|
|
2845
|
+
i = new Date(a, 0, r === ie.ISO_8601 ? 4 : 1), s = ln(i, t), a -= 1;
|
|
2834
2846
|
while (e < s);
|
|
2835
2847
|
return Math.round((n.getTime() - s.getTime()) / (864e5 * 7)) + 1;
|
|
2836
2848
|
}
|
|
@@ -2961,8 +2973,8 @@ function da(e, t) {
|
|
|
2961
2973
|
}
|
|
2962
2974
|
}
|
|
2963
2975
|
function Hs(e, t, r) {
|
|
2964
|
-
var n = [t, r].sort(function(a,
|
|
2965
|
-
return a.getTime() -
|
|
2976
|
+
var n = [t, r].sort(function(a, i) {
|
|
2977
|
+
return a.getTime() - i.getTime();
|
|
2966
2978
|
});
|
|
2967
2979
|
return [Ze(e, n[0]), yo(e, n[1])];
|
|
2968
2980
|
}
|
|
@@ -2996,7 +3008,7 @@ function wo(e, t) {
|
|
|
2996
3008
|
}
|
|
2997
3009
|
var Ee = "react-calendar__navigation";
|
|
2998
3010
|
function Js(e) {
|
|
2999
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? po : n,
|
|
3011
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? po : n, i = e.formatYear, s = i === void 0 ? Tr : i, l = e.locale, u = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, b = e.next2AriaLabel, m = b === void 0 ? "" : b, w = e.next2Label, y = w === void 0 ? "»" : w, p = e.nextAriaLabel, j = p === void 0 ? "" : p, O = e.nextLabel, P = O === void 0 ? "›" : O, N = e.prev2AriaLabel, k = N === void 0 ? "" : N, $ = e.prev2Label, X = $ === void 0 ? "«" : $, re = e.prevAriaLabel, Me = re === void 0 ? "" : re, ge = e.prevLabel, se = ge === void 0 ? "‹" : ge, ce = e.setActiveStartDate, Se = e.showDoubleView, Z = e.view, De = e.views, Ae = De.indexOf(Z) > 0, q = Z !== "century", B = Bs(Z, t), ne = q ? zs(Z, t) : void 0, G = go(Z, t), be = q ? Us(Z, t) : void 0, Ne = function() {
|
|
3000
3012
|
if (B.getFullYear() < 0)
|
|
3001
3013
|
return !0;
|
|
3002
3014
|
var H = Gs(Z, t);
|
|
@@ -3034,7 +3046,7 @@ function Js(e) {
|
|
|
3034
3046
|
throw new Error("Invalid view: ".concat(Z, "."));
|
|
3035
3047
|
}
|
|
3036
3048
|
}();
|
|
3037
|
-
return
|
|
3049
|
+
return h ? h({
|
|
3038
3050
|
date: H,
|
|
3039
3051
|
label: ke,
|
|
3040
3052
|
locale: l || ao() || void 0,
|
|
@@ -3043,9 +3055,9 @@ function Js(e) {
|
|
|
3043
3055
|
}
|
|
3044
3056
|
function wt() {
|
|
3045
3057
|
var H = "".concat(Ee, "__label");
|
|
3046
|
-
return
|
|
3058
|
+
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: H, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(H, "__labelText ").concat(H, "__labelText--from"), children: le(t) }), Se ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(H, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(H, "__labelText ").concat(H, "__labelText--to"), children: le(G) })] }) : null] });
|
|
3047
3059
|
}
|
|
3048
|
-
return
|
|
3060
|
+
return o.jsxs("div", { className: Ee, children: [X !== null && q ? o.jsx("button", { "aria-label": k, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev2-button"), disabled: _e, onClick: K, type: "button", children: X }) : null, se !== null && o.jsx("button", { "aria-label": Me, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev-button"), disabled: Ne, onClick: ae, type: "button", children: se }), wt(), P !== null && o.jsx("button", { "aria-label": j, className: "".concat(Ee, "__arrow ").concat(Ee, "__next-button"), disabled: de, onClick: xe, type: "button", children: P }), y !== null && q ? o.jsx("button", { "aria-label": m, className: "".concat(Ee, "__arrow ").concat(Ee, "__next2-button"), disabled: fe, onClick: Ce, type: "button", children: y }) : null] });
|
|
3049
3061
|
}
|
|
3050
3062
|
var lt = function() {
|
|
3051
3063
|
return lt = Object.assign || function(e) {
|
|
@@ -3067,9 +3079,9 @@ function fa(e) {
|
|
|
3067
3079
|
return "".concat(e, "%");
|
|
3068
3080
|
}
|
|
3069
3081
|
function Mn(e) {
|
|
3070
|
-
var t = e.children, r = e.className, n = e.count, a = e.direction,
|
|
3071
|
-
return
|
|
3072
|
-
var v =
|
|
3082
|
+
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, l = e.wrap, u = Qs(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3083
|
+
return o.jsx("div", lt({ className: r, style: lt({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, s) }, u, { children: Ro.map(t, function(d, f) {
|
|
3084
|
+
var v = i && f === 0 ? fa(100 * i / n) : null;
|
|
3073
3085
|
return Io(d, lt(lt({}, d.props), { style: {
|
|
3074
3086
|
flexBasis: fa(100 / n),
|
|
3075
3087
|
flexShrink: 0,
|
|
@@ -3097,8 +3109,8 @@ function ha(e, t, r) {
|
|
|
3097
3109
|
var n = jo(t, e), a = [];
|
|
3098
3110
|
if (n) {
|
|
3099
3111
|
a.push(r);
|
|
3100
|
-
var
|
|
3101
|
-
|
|
3112
|
+
var i = Lt(e[0], t), s = Lt(e[1], t);
|
|
3113
|
+
i && a.push("".concat(r, "Start")), s && a.push("".concat(r, "End")), i && s && a.push("".concat(r, "BothEnds"));
|
|
3102
3114
|
}
|
|
3103
3115
|
return a;
|
|
3104
3116
|
}
|
|
@@ -3108,68 +3120,68 @@ function tc(e) {
|
|
|
3108
3120
|
function rc(e) {
|
|
3109
3121
|
if (!e)
|
|
3110
3122
|
throw new Error("args is required");
|
|
3111
|
-
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile",
|
|
3123
|
+
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", i = [a];
|
|
3112
3124
|
if (!r)
|
|
3113
|
-
return
|
|
3125
|
+
return i;
|
|
3114
3126
|
var s = /* @__PURE__ */ new Date(), l = function() {
|
|
3115
3127
|
if (Array.isArray(r))
|
|
3116
3128
|
return r;
|
|
3117
|
-
var
|
|
3118
|
-
if (!
|
|
3129
|
+
var h = e.dateType;
|
|
3130
|
+
if (!h)
|
|
3119
3131
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
3120
|
-
return da(
|
|
3132
|
+
return da(h, r);
|
|
3121
3133
|
}();
|
|
3122
|
-
if (Lt(s, l) &&
|
|
3123
|
-
return
|
|
3134
|
+
if (Lt(s, l) && i.push("".concat(a, "--now")), !t || !tc(t))
|
|
3135
|
+
return i;
|
|
3124
3136
|
var u = function() {
|
|
3125
3137
|
if (Array.isArray(t))
|
|
3126
3138
|
return t;
|
|
3127
|
-
var
|
|
3128
|
-
if (!
|
|
3139
|
+
var h = e.valueType;
|
|
3140
|
+
if (!h)
|
|
3129
3141
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
3130
|
-
return da(
|
|
3142
|
+
return da(h, t);
|
|
3131
3143
|
}();
|
|
3132
|
-
ec(u, l) ?
|
|
3144
|
+
ec(u, l) ? i.push("".concat(a, "--active")) : jo(u, l) && i.push("".concat(a, "--hasActive"));
|
|
3133
3145
|
var d = ha(u, l, "".concat(a, "--range"));
|
|
3134
|
-
|
|
3135
|
-
var
|
|
3136
|
-
if (n &&
|
|
3146
|
+
i.push.apply(i, d);
|
|
3147
|
+
var f = Array.isArray(t) ? t : [t];
|
|
3148
|
+
if (n && f.length === 1) {
|
|
3137
3149
|
var v = n > u[0] ? [u[0], n] : [n, u[0]], g = ha(v, l, "".concat(a, "--hover"));
|
|
3138
|
-
|
|
3150
|
+
i.push.apply(i, g);
|
|
3139
3151
|
}
|
|
3140
|
-
return
|
|
3152
|
+
return i;
|
|
3141
3153
|
}
|
|
3142
3154
|
function Ar(e) {
|
|
3143
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform,
|
|
3155
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, u = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, b = e.valueType, m = [], w = f; w <= s; w += g) {
|
|
3144
3156
|
var y = a(w);
|
|
3145
|
-
|
|
3157
|
+
m.push(d({
|
|
3146
3158
|
classes: rc({
|
|
3147
3159
|
date: y,
|
|
3148
|
-
dateType:
|
|
3160
|
+
dateType: i,
|
|
3149
3161
|
hover: l,
|
|
3150
|
-
value:
|
|
3162
|
+
value: h,
|
|
3151
3163
|
valueType: b
|
|
3152
3164
|
}),
|
|
3153
3165
|
date: y
|
|
3154
3166
|
}));
|
|
3155
3167
|
}
|
|
3156
|
-
return
|
|
3168
|
+
return o.jsx(Mn, { className: t, count: n, offset: u, wrap: !0, children: m });
|
|
3157
3169
|
}
|
|
3158
3170
|
function Rr(e) {
|
|
3159
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date,
|
|
3171
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, u = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, b = e.tileClassName, m = e.tileContent, w = e.tileDisabled, y = e.view, p = Ye(function() {
|
|
3160
3172
|
var O = { activeStartDate: t, date: a, view: y };
|
|
3161
3173
|
return typeof b == "function" ? b(O) : b;
|
|
3162
3174
|
}, [t, a, b, y]), j = Ye(function() {
|
|
3163
3175
|
var O = { activeStartDate: t, date: a, view: y };
|
|
3164
|
-
return typeof
|
|
3165
|
-
}, [t, a,
|
|
3166
|
-
return
|
|
3176
|
+
return typeof m == "function" ? m(O) : m;
|
|
3177
|
+
}, [t, a, m, y]);
|
|
3178
|
+
return o.jsxs("button", { className: Cr(n, p), disabled: d && f(d) > a || l && u(l) < a || (w == null ? void 0 : w({ activeStartDate: t, date: a, view: y })), onClick: v ? function(O) {
|
|
3167
3179
|
return v(a, O);
|
|
3168
3180
|
} : void 0, onFocus: g ? function() {
|
|
3169
3181
|
return g(a);
|
|
3170
3182
|
} : void 0, onMouseOver: g ? function() {
|
|
3171
3183
|
return g(a);
|
|
3172
|
-
} : void 0, style:
|
|
3184
|
+
} : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, j] });
|
|
3173
3185
|
}
|
|
3174
3186
|
var un = function() {
|
|
3175
3187
|
return un = Object.assign || function(e) {
|
|
@@ -3188,8 +3200,8 @@ var un = function() {
|
|
|
3188
3200
|
return r;
|
|
3189
3201
|
}, va = "react-calendar__century-view__decades__decade";
|
|
3190
3202
|
function ac(e) {
|
|
3191
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear,
|
|
3192
|
-
return r && d.push.apply(d, r), d.push(va), bt(l).getFullYear() !== n && d.push("".concat(va, "--neighboringCentury")),
|
|
3203
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Tr : a, s = nc(e, ["classes", "currentCentury", "formatYear"]), l = s.date, u = s.locale, d = [];
|
|
3204
|
+
return r && d.push.apply(d, r), d.push(va), bt(l).getFullYear() !== n && d.push("".concat(va, "--neighboringCentury")), o.jsx(Rr, un({}, s, { classes: d, maxDateTransform: Er, minDateTransform: Be, view: "century", children: xo(u, i, l) }));
|
|
3193
3205
|
}
|
|
3194
3206
|
var dn = function() {
|
|
3195
3207
|
return dn = Object.assign || function(e) {
|
|
@@ -3208,11 +3220,11 @@ var dn = function() {
|
|
|
3208
3220
|
return r;
|
|
3209
3221
|
};
|
|
3210
3222
|
function oc(e) {
|
|
3211
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value,
|
|
3212
|
-
return
|
|
3213
|
-
var
|
|
3214
|
-
return
|
|
3215
|
-
}, start: l, step: 10, value: a, valueType:
|
|
3223
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = ma(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l = Ws(t), u = l + (n ? 119 : 99);
|
|
3224
|
+
return o.jsx(Ar, { className: "react-calendar__century-view__decades", dateTransform: Be, dateType: "decade", end: u, hover: r, renderTile: function(d) {
|
|
3225
|
+
var f = d.date, v = ma(d, ["date"]);
|
|
3226
|
+
return o.jsx(ac, dn({}, s, v, { activeStartDate: t, currentCentury: l, date: f }), f.getTime());
|
|
3227
|
+
}, start: l, step: 10, value: a, valueType: i });
|
|
3216
3228
|
}
|
|
3217
3229
|
var fn = function() {
|
|
3218
3230
|
return fn = Object.assign || function(e) {
|
|
@@ -3225,9 +3237,9 @@ var fn = function() {
|
|
|
3225
3237
|
};
|
|
3226
3238
|
function ic(e) {
|
|
3227
3239
|
function t() {
|
|
3228
|
-
return
|
|
3240
|
+
return o.jsx(oc, fn({}, e));
|
|
3229
3241
|
}
|
|
3230
|
-
return
|
|
3242
|
+
return o.jsx("div", { className: "react-calendar__century-view", children: t() });
|
|
3231
3243
|
}
|
|
3232
3244
|
var hn = function() {
|
|
3233
3245
|
return hn = Object.assign || function(e) {
|
|
@@ -3246,8 +3258,8 @@ var hn = function() {
|
|
|
3246
3258
|
return r;
|
|
3247
3259
|
}, pa = "react-calendar__decade-view__years__year";
|
|
3248
3260
|
function cc(e) {
|
|
3249
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear,
|
|
3250
|
-
return r && d.push.apply(d, r), d.push(pa), Be(l).getFullYear() !== n && d.push("".concat(pa, "--neighboringDecade")),
|
|
3261
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Tr : a, s = sc(e, ["classes", "currentDecade", "formatYear"]), l = s.date, u = s.locale, d = [];
|
|
3262
|
+
return r && d.push.apply(d, r), d.push(pa), Be(l).getFullYear() !== n && d.push("".concat(pa, "--neighboringDecade")), o.jsx(Rr, hn({}, s, { classes: d, maxDateTransform: Pr, minDateTransform: xt, view: "decade", children: i(u, l) }));
|
|
3251
3263
|
}
|
|
3252
3264
|
var vn = function() {
|
|
3253
3265
|
return vn = Object.assign || function(e) {
|
|
@@ -3266,11 +3278,11 @@ var vn = function() {
|
|
|
3266
3278
|
return r;
|
|
3267
3279
|
};
|
|
3268
3280
|
function lc(e) {
|
|
3269
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value,
|
|
3270
|
-
return
|
|
3271
|
-
var
|
|
3272
|
-
return
|
|
3273
|
-
}, start: l, value: a, valueType:
|
|
3281
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = ga(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l = Ys(t), u = l + (n ? 11 : 9);
|
|
3282
|
+
return o.jsx(Ar, { className: "react-calendar__decade-view__years", dateTransform: xt, dateType: "year", end: u, hover: r, renderTile: function(d) {
|
|
3283
|
+
var f = d.date, v = ga(d, ["date"]);
|
|
3284
|
+
return o.jsx(cc, vn({}, s, v, { activeStartDate: t, currentDecade: l, date: f }), f.getTime());
|
|
3285
|
+
}, start: l, value: a, valueType: i });
|
|
3274
3286
|
}
|
|
3275
3287
|
var mn = function() {
|
|
3276
3288
|
return mn = Object.assign || function(e) {
|
|
@@ -3283,9 +3295,9 @@ var mn = function() {
|
|
|
3283
3295
|
};
|
|
3284
3296
|
function uc(e) {
|
|
3285
3297
|
function t() {
|
|
3286
|
-
return
|
|
3298
|
+
return o.jsx(lc, mn({}, e));
|
|
3287
3299
|
}
|
|
3288
|
-
return
|
|
3300
|
+
return o.jsx("div", { className: "react-calendar__decade-view", children: t() });
|
|
3289
3301
|
}
|
|
3290
3302
|
var pn = function() {
|
|
3291
3303
|
return pn = Object.assign || function(e) {
|
|
@@ -3303,13 +3315,13 @@ var pn = function() {
|
|
|
3303
3315
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
3304
3316
|
return r;
|
|
3305
3317
|
}, ya = function(e, t, r) {
|
|
3306
|
-
if (r || arguments.length === 2) for (var n = 0, a = t.length,
|
|
3307
|
-
(
|
|
3308
|
-
return e.concat(
|
|
3318
|
+
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
3319
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
3320
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
3309
3321
|
}, fc = "react-calendar__year-view__months__month";
|
|
3310
3322
|
function hc(e) {
|
|
3311
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Is : n,
|
|
3312
|
-
return
|
|
3323
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Is : n, i = e.formatMonthYear, s = i === void 0 ? po : i, l = dc(e, ["classes", "formatMonth", "formatMonthYear"]), u = l.date, d = l.locale;
|
|
3324
|
+
return o.jsx(Rr, pn({}, l, { classes: ya(ya([], r, !0), [fc], !1), formatAbbr: s, maxDateTransform: Vt, minDateTransform: tt, view: "year", children: a(d, u) }));
|
|
3313
3325
|
}
|
|
3314
3326
|
var gn = function() {
|
|
3315
3327
|
return gn = Object.assign || function(e) {
|
|
@@ -3328,13 +3340,13 @@ var gn = function() {
|
|
|
3328
3340
|
return r;
|
|
3329
3341
|
};
|
|
3330
3342
|
function vc(e) {
|
|
3331
|
-
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType,
|
|
3332
|
-
return
|
|
3333
|
-
var
|
|
3334
|
-
return
|
|
3343
|
+
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = ba(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, l = 11, u = U(t);
|
|
3344
|
+
return o.jsx(Ar, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
3345
|
+
var f = /* @__PURE__ */ new Date();
|
|
3346
|
+
return f.setFullYear(u, d, 1), tt(f);
|
|
3335
3347
|
}, dateType: "month", end: l, hover: r, renderTile: function(d) {
|
|
3336
|
-
var
|
|
3337
|
-
return
|
|
3348
|
+
var f = d.date, v = ba(d, ["date"]);
|
|
3349
|
+
return o.jsx(hc, gn({}, i, v, { activeStartDate: t, date: f }), f.getTime());
|
|
3338
3350
|
}, start: s, value: n, valueType: a });
|
|
3339
3351
|
}
|
|
3340
3352
|
var yn = function() {
|
|
@@ -3348,9 +3360,9 @@ var yn = function() {
|
|
|
3348
3360
|
};
|
|
3349
3361
|
function mc(e) {
|
|
3350
3362
|
function t() {
|
|
3351
|
-
return
|
|
3363
|
+
return o.jsx(vc, yn({}, e));
|
|
3352
3364
|
}
|
|
3353
|
-
return
|
|
3365
|
+
return o.jsx("div", { className: "react-calendar__year-view", children: t() });
|
|
3354
3366
|
}
|
|
3355
3367
|
var bn = function() {
|
|
3356
3368
|
return bn = Object.assign || function(e) {
|
|
@@ -3369,8 +3381,8 @@ var bn = function() {
|
|
|
3369
3381
|
return r;
|
|
3370
3382
|
}, Hr = "react-calendar__month-view__days__day";
|
|
3371
3383
|
function gc(e) {
|
|
3372
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex,
|
|
3373
|
-
return n && g.push.apply(g, n), g.push(Hr), wo(
|
|
3384
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? As : i, l = e.formatLongDate, u = l === void 0 ? Rs : l, d = pc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, v = d.locale, g = [];
|
|
3385
|
+
return n && g.push.apply(g, n), g.push(Hr), wo(f, t) && g.push("".concat(Hr, "--weekend")), f.getMonth() !== a && g.push("".concat(Hr, "--neighboringMonth")), o.jsx(Rr, bn({}, d, { classes: g, formatAbbr: u, maxDateTransform: In, minDateTransform: Bt, view: "month", children: s(v, f) }));
|
|
3374
3386
|
}
|
|
3375
3387
|
var xn = function() {
|
|
3376
3388
|
return xn = Object.assign || function(e) {
|
|
@@ -3389,33 +3401,33 @@ var xn = function() {
|
|
|
3389
3401
|
return r;
|
|
3390
3402
|
};
|
|
3391
3403
|
function yc(e) {
|
|
3392
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks,
|
|
3404
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, u = xa(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = U(t), f = Ve(t), v = a || i, g = Mt(t, r), h = v ? 0 : g, b = (v ? -g : 0) + 1, m = function() {
|
|
3393
3405
|
if (a)
|
|
3394
3406
|
return b + 6 * 7 - 1;
|
|
3395
3407
|
var w = mo(t);
|
|
3396
|
-
if (
|
|
3408
|
+
if (i) {
|
|
3397
3409
|
var y = /* @__PURE__ */ new Date();
|
|
3398
|
-
y.setFullYear(d,
|
|
3399
|
-
var
|
|
3400
|
-
return w +
|
|
3410
|
+
y.setFullYear(d, f, w), y.setHours(0, 0, 0, 0);
|
|
3411
|
+
var p = 7 - Mt(y, r) - 1;
|
|
3412
|
+
return w + p;
|
|
3401
3413
|
}
|
|
3402
3414
|
return w;
|
|
3403
3415
|
}();
|
|
3404
|
-
return
|
|
3416
|
+
return o.jsx(Ar, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(w) {
|
|
3405
3417
|
var y = /* @__PURE__ */ new Date();
|
|
3406
|
-
return y.setFullYear(d,
|
|
3407
|
-
}, dateType: "day", hover: n, end:
|
|
3408
|
-
var y = w.date,
|
|
3409
|
-
return
|
|
3410
|
-
}, offset:
|
|
3418
|
+
return y.setFullYear(d, f, w), Bt(y);
|
|
3419
|
+
}, dateType: "day", hover: n, end: m, renderTile: function(w) {
|
|
3420
|
+
var y = w.date, p = xa(w, ["date"]);
|
|
3421
|
+
return o.jsx(gc, xn({}, u, p, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: y }), y.getTime());
|
|
3422
|
+
}, offset: h, start: b, value: s, valueType: l });
|
|
3411
3423
|
}
|
|
3412
3424
|
var So = "react-calendar__month-view__weekdays", Xr = "".concat(So, "__weekday");
|
|
3413
3425
|
function bc(e) {
|
|
3414
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? $s : r, a = e.formatWeekday,
|
|
3415
|
-
var b = new Date(
|
|
3416
|
-
g.push(
|
|
3426
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? $s : r, a = e.formatWeekday, i = a === void 0 ? Ms : a, s = e.locale, l = e.onMouseLeave, u = /* @__PURE__ */ new Date(), d = tt(u), f = U(d), v = Ve(d), g = [], h = 1; h <= 7; h += 1) {
|
|
3427
|
+
var b = new Date(f, v, h - Mt(d, t)), m = i(s, b);
|
|
3428
|
+
g.push(o.jsx("div", { className: Cr(Xr, Ks(b) && "".concat(Xr, "--current"), wo(b, t) && "".concat(Xr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, b).replace(".", "") }) }, h));
|
|
3417
3429
|
}
|
|
3418
|
-
return
|
|
3430
|
+
return o.jsx(Mn, { className: So, count: 7, onFocus: l, onMouseOver: l, children: g });
|
|
3419
3431
|
}
|
|
3420
3432
|
var br = function() {
|
|
3421
3433
|
return br = Object.assign || function(e) {
|
|
@@ -3434,36 +3446,36 @@ var br = function() {
|
|
|
3434
3446
|
return r;
|
|
3435
3447
|
}, ja = "react-calendar__tile";
|
|
3436
3448
|
function xc(e) {
|
|
3437
|
-
var t = e.onClickWeekNumber, r = e.weekNumber, n =
|
|
3449
|
+
var t = e.onClickWeekNumber, r = e.weekNumber, n = o.jsx("span", { children: r });
|
|
3438
3450
|
if (t) {
|
|
3439
|
-
var a = e.date,
|
|
3440
|
-
return
|
|
3441
|
-
return
|
|
3451
|
+
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, l = wa(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3452
|
+
return o.jsx("button", br({}, l, { className: ja, onClick: function(u) {
|
|
3453
|
+
return i(s, a, u);
|
|
3442
3454
|
}, type: "button", children: n }));
|
|
3443
3455
|
} else {
|
|
3444
3456
|
e.date, e.onClickWeekNumber, e.weekNumber;
|
|
3445
3457
|
var l = wa(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3446
|
-
return
|
|
3458
|
+
return o.jsx("div", br({}, l, { className: ja, children: n }));
|
|
3447
3459
|
}
|
|
3448
3460
|
}
|
|
3449
3461
|
function wc(e) {
|
|
3450
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave,
|
|
3451
|
-
if (
|
|
3462
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, i = e.showFixedNumberOfWeeks, s = function() {
|
|
3463
|
+
if (i)
|
|
3452
3464
|
return 6;
|
|
3453
|
-
var d = mo(t),
|
|
3465
|
+
var d = mo(t), f = Mt(t, r), v = d - (7 - f);
|
|
3454
3466
|
return 1 + Math.ceil(v / 7);
|
|
3455
3467
|
}(), l = function() {
|
|
3456
|
-
for (var d = U(t),
|
|
3457
|
-
g.push(ln(new Date(d,
|
|
3468
|
+
for (var d = U(t), f = Ve(t), v = kr(t), g = [], h = 0; h < s; h += 1)
|
|
3469
|
+
g.push(ln(new Date(d, f, v + h * 7), r));
|
|
3458
3470
|
return g;
|
|
3459
3471
|
}(), u = l.map(function(d) {
|
|
3460
3472
|
return Vs(d, r);
|
|
3461
3473
|
});
|
|
3462
|
-
return
|
|
3463
|
-
var v = l[
|
|
3474
|
+
return o.jsx(Mn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: u.map(function(d, f) {
|
|
3475
|
+
var v = l[f];
|
|
3464
3476
|
if (!v)
|
|
3465
3477
|
throw new Error("date is not defined");
|
|
3466
|
-
return
|
|
3478
|
+
return o.jsx(xc, { date: v, onClickWeekNumber: n, weekNumber: d }, d);
|
|
3467
3479
|
}) });
|
|
3468
3480
|
}
|
|
3469
3481
|
var wn = function() {
|
|
@@ -3485,28 +3497,28 @@ var wn = function() {
|
|
|
3485
3497
|
function Sc(e) {
|
|
3486
3498
|
if (e)
|
|
3487
3499
|
for (var t = 0, r = Object.entries(Ss); t < r.length; t++) {
|
|
3488
|
-
var n = r[t], a = n[0],
|
|
3489
|
-
if (
|
|
3500
|
+
var n = r[t], a = n[0], i = n[1];
|
|
3501
|
+
if (i.includes(e))
|
|
3490
3502
|
return a;
|
|
3491
3503
|
}
|
|
3492
3504
|
return ie.ISO_8601;
|
|
3493
3505
|
}
|
|
3494
3506
|
function Oc(e) {
|
|
3495
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks,
|
|
3507
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Sc(r) : i, l = e.formatShortWeekday, u = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, v = jc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
3496
3508
|
function g() {
|
|
3497
|
-
return
|
|
3509
|
+
return o.jsx(bc, { calendarType: s, formatShortWeekday: l, formatWeekday: u, locale: r, onMouseLeave: n });
|
|
3498
3510
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3511
|
+
function h() {
|
|
3512
|
+
return f ? o.jsx(wc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
3501
3513
|
}
|
|
3502
3514
|
function b() {
|
|
3503
|
-
return
|
|
3515
|
+
return o.jsx(yc, wn({ calendarType: s }, v));
|
|
3504
3516
|
}
|
|
3505
|
-
var
|
|
3506
|
-
return
|
|
3517
|
+
var m = "react-calendar__month-view";
|
|
3518
|
+
return o.jsx("div", { className: Cr(m, f ? "".concat(m, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
3507
3519
|
display: "flex",
|
|
3508
3520
|
alignItems: "flex-end"
|
|
3509
|
-
}, children: [
|
|
3521
|
+
}, children: [h(), o.jsxs("div", { style: {
|
|
3510
3522
|
flexGrow: 1,
|
|
3511
3523
|
width: "100%"
|
|
3512
3524
|
}, children: [g(), b()] })] }) });
|
|
@@ -3550,10 +3562,10 @@ function Cc(e, t) {
|
|
|
3550
3562
|
return n;
|
|
3551
3563
|
}
|
|
3552
3564
|
function No(e, t) {
|
|
3553
|
-
var r = e.value, n = e.minDate, a = e.maxDate,
|
|
3565
|
+
var r = e.value, n = e.minDate, a = e.maxDate, i = e.maxDetail, s = Cc(r, t);
|
|
3554
3566
|
if (!s)
|
|
3555
3567
|
return null;
|
|
3556
|
-
var l = Do(
|
|
3568
|
+
var l = Do(i), u = function() {
|
|
3557
3569
|
switch (t) {
|
|
3558
3570
|
case 0:
|
|
3559
3571
|
return Ze(l, s);
|
|
@@ -3575,8 +3587,8 @@ var Wn = function(e) {
|
|
|
3575
3587
|
});
|
|
3576
3588
|
};
|
|
3577
3589
|
function Co(e) {
|
|
3578
|
-
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail,
|
|
3579
|
-
value:
|
|
3590
|
+
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view, l = Fn(s, a, r), u = Wn({
|
|
3591
|
+
value: i,
|
|
3580
3592
|
minDate: n,
|
|
3581
3593
|
maxDate: t,
|
|
3582
3594
|
maxDetail: r
|
|
@@ -3584,14 +3596,14 @@ function Co(e) {
|
|
|
3584
3596
|
return Ze(l, u);
|
|
3585
3597
|
}
|
|
3586
3598
|
function Ec(e) {
|
|
3587
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView,
|
|
3599
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, u = e.minDetail, d = e.value, f = e.view, v = Fn(f, u, s), g = t || r;
|
|
3588
3600
|
return g ? Ze(v, g) : Co({
|
|
3589
|
-
maxDate:
|
|
3601
|
+
maxDate: i,
|
|
3590
3602
|
maxDetail: s,
|
|
3591
3603
|
minDate: l,
|
|
3592
3604
|
minDetail: u,
|
|
3593
3605
|
value: d || n,
|
|
3594
|
-
view:
|
|
3606
|
+
view: f || a
|
|
3595
3607
|
});
|
|
3596
3608
|
}
|
|
3597
3609
|
function Kr(e) {
|
|
@@ -3601,7 +3613,7 @@ function sr(e, t) {
|
|
|
3601
3613
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
3602
3614
|
}
|
|
3603
3615
|
var Pc = xr(function(t, r) {
|
|
3604
|
-
var n = t.activeStartDate, a = t.allowPartialRange,
|
|
3616
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, b = t.formatShortWeekday, m = t.formatWeekday, w = t.formatYear, y = t.goToRangeStartOnSelect, p = y === void 0 ? !0 : y, j = t.inputRef, O = t.locale, P = t.maxDate, N = P === void 0 ? Nc : P, k = t.maxDetail, $ = k === void 0 ? "month" : k, X = t.minDate, re = X === void 0 ? Ln : X, Me = t.minDetail, ge = Me === void 0 ? "century" : Me, se = t.navigationAriaLabel, ce = t.navigationAriaLive, Se = t.navigationLabel, Z = t.next2AriaLabel, De = t.next2Label, Ae = t.nextAriaLabel, q = t.nextLabel, B = t.onActiveStartDateChange, ne = t.onChange, G = t.onClickDay, be = t.onClickDecade, Ne = t.onClickMonth, _e = t.onClickWeekNumber, de = t.onClickYear, fe = t.onDrillDown, ae = t.onDrillUp, K = t.onViewChange, xe = t.prev2AriaLabel, Ce = t.prev2Label, le = t.prevAriaLabel, wt = t.prevLabel, H = t.returnValue, ke = H === void 0 ? "start" : H, ee = t.selectRange, ze = t.showDoubleView, jt = t.showFixedNumberOfWeeks, Ue = t.showNavigation, Ir = Ue === void 0 ? !0 : Ue, $r = t.showNeighboringCentury, St = t.showNeighboringDecade, zt = t.showNeighboringMonth, Mr = zt === void 0 ? !0 : zt, Ut = t.showWeekNumbers, Gt = t.tileClassName, qt = t.tileContent, Lr = t.tileDisabled, nt = t.value, Ot = t.view, Ht = F(l), Fr = Ht[0], at = Ht[1], Xt = F(null), Wr = Xt[0], Kt = Xt[1], Jt = F(Array.isArray(u) ? u.map(function(D) {
|
|
3605
3617
|
return D !== null ? Rt(D) : null;
|
|
3606
3618
|
}) : u != null ? Rt(u) : null), Ge = Jt[0], Qt = Jt[1], Re = F(d), Dt = Re[0], ot = Re[1], oe = n || Fr || Ec({
|
|
3607
3619
|
activeStartDate: n,
|
|
@@ -3734,7 +3746,7 @@ var Pc = xr(function(t, r) {
|
|
|
3734
3746
|
// Range selection turned off
|
|
3735
3747
|
!ee || // Range selection turned on, first value
|
|
3736
3748
|
W || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
3737
|
-
|
|
3749
|
+
p ? Co({
|
|
3738
3750
|
maxDate: N,
|
|
3739
3751
|
maxDetail: $,
|
|
3740
3752
|
minDate: re,
|
|
@@ -3766,7 +3778,7 @@ var Pc = xr(function(t, r) {
|
|
|
3766
3778
|
oe,
|
|
3767
3779
|
a,
|
|
3768
3780
|
_t,
|
|
3769
|
-
|
|
3781
|
+
p,
|
|
3770
3782
|
N,
|
|
3771
3783
|
$,
|
|
3772
3784
|
re,
|
|
@@ -3813,22 +3825,22 @@ var Pc = xr(function(t, r) {
|
|
|
3813
3825
|
};
|
|
3814
3826
|
switch (Y) {
|
|
3815
3827
|
case "century":
|
|
3816
|
-
return
|
|
3828
|
+
return o.jsx(ic, ut({ formatYear: w, showNeighboringCentury: $r }, W));
|
|
3817
3829
|
case "decade":
|
|
3818
|
-
return
|
|
3830
|
+
return o.jsx(uc, ut({ formatYear: w, showNeighboringDecade: St }, W));
|
|
3819
3831
|
case "year":
|
|
3820
|
-
return
|
|
3832
|
+
return o.jsx(mc, ut({ formatMonth: g, formatMonthYear: h }, W));
|
|
3821
3833
|
case "month":
|
|
3822
|
-
return
|
|
3834
|
+
return o.jsx(Oc, ut({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: b, formatWeekday: m, onClickWeekNumber: _e, onMouseLeave: ee ? x : void 0, showFixedNumberOfWeeks: typeof jt < "u" ? jt : ze, showNeighboringMonth: Mr, showWeekNumbers: Ut }, W));
|
|
3823
3835
|
default:
|
|
3824
3836
|
throw new Error("Invalid view: ".concat(Y, "."));
|
|
3825
3837
|
}
|
|
3826
3838
|
}
|
|
3827
3839
|
function E() {
|
|
3828
|
-
return Ir ?
|
|
3840
|
+
return Ir ? o.jsx(Js, { activeStartDate: oe, drillUp: kt, formatMonthYear: h, formatYear: w, locale: O, maxDate: N, minDate: re, navigationAriaLabel: se, navigationAriaLive: ce, navigationLabel: Se, next2AriaLabel: Z, next2Label: De, nextAriaLabel: Ae, nextLabel: q, prev2AriaLabel: xe, prev2Label: Ce, prevAriaLabel: le, prevLabel: wt, setActiveStartDate: it, showDoubleView: ze, view: Y, views: ye }) : null;
|
|
3829
3841
|
}
|
|
3830
3842
|
var I = Array.isArray(ue) ? ue : [ue];
|
|
3831
|
-
return
|
|
3843
|
+
return o.jsxs("div", { className: Cr(ir, ee && I.length === 1 && "".concat(ir, "--selectRange"), ze && "".concat(ir, "--doubleView"), s), ref: j, children: [E(), o.jsxs("div", { className: "".concat(ir, "__viewContainer"), onBlur: ee ? x : void 0, onMouseLeave: ee ? x : void 0, children: [S(), ze ? S(!0) : null] })] });
|
|
3832
3844
|
});
|
|
3833
3845
|
const tl = ({
|
|
3834
3846
|
value: e,
|
|
@@ -3836,39 +3848,39 @@ const tl = ({
|
|
|
3836
3848
|
maxDate: r,
|
|
3837
3849
|
children: n
|
|
3838
3850
|
}) => {
|
|
3839
|
-
const [a,
|
|
3840
|
-
(
|
|
3841
|
-
|
|
3851
|
+
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, l] = F(!1), u = pe(null), d = A(
|
|
3852
|
+
(m) => {
|
|
3853
|
+
i(m), t && t(m), l(!1);
|
|
3842
3854
|
},
|
|
3843
3855
|
[t]
|
|
3844
|
-
),
|
|
3845
|
-
u.current && !u.current.contains(
|
|
3856
|
+
), f = () => l(!s), v = A((m) => {
|
|
3857
|
+
u.current && !u.current.contains(m.target) && l(!1);
|
|
3846
3858
|
}, []);
|
|
3847
3859
|
Q(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
3848
3860
|
document.removeEventListener("mousedown", v);
|
|
3849
3861
|
}), [s, v]);
|
|
3850
|
-
const [g,
|
|
3851
|
-
activeStartDate:
|
|
3862
|
+
const [g, h] = F(), b = ({
|
|
3863
|
+
activeStartDate: m
|
|
3852
3864
|
}) => {
|
|
3853
|
-
|
|
3865
|
+
h(m);
|
|
3854
3866
|
};
|
|
3855
|
-
return /* @__PURE__ */
|
|
3856
|
-
n && /* @__PURE__ */
|
|
3857
|
-
!n && /* @__PURE__ */
|
|
3858
|
-
|
|
3867
|
+
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: u, children: [
|
|
3868
|
+
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
3869
|
+
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
3870
|
+
M,
|
|
3859
3871
|
{
|
|
3860
3872
|
classIcon: " bi-calendar4-event",
|
|
3861
3873
|
size: we.EXTRA_LARGE
|
|
3862
3874
|
}
|
|
3863
3875
|
) }),
|
|
3864
|
-
s && /* @__PURE__ */
|
|
3865
|
-
/* @__PURE__ */
|
|
3876
|
+
s && /* @__PURE__ */ o.jsxs("div", { className: "calendar-popup", children: [
|
|
3877
|
+
/* @__PURE__ */ o.jsx(
|
|
3866
3878
|
"div",
|
|
3867
3879
|
{
|
|
3868
3880
|
onClick: () => l(!1),
|
|
3869
3881
|
className: "calendar-popup-close",
|
|
3870
|
-
children: /* @__PURE__ */
|
|
3871
|
-
|
|
3882
|
+
children: /* @__PURE__ */ o.jsx(
|
|
3883
|
+
M,
|
|
3872
3884
|
{
|
|
3873
3885
|
classIcon: "bi-x-lg close-icon",
|
|
3874
3886
|
size: we.EXTRA_SMALL
|
|
@@ -3876,17 +3888,17 @@ const tl = ({
|
|
|
3876
3888
|
)
|
|
3877
3889
|
}
|
|
3878
3890
|
),
|
|
3879
|
-
/* @__PURE__ */
|
|
3891
|
+
/* @__PURE__ */ o.jsx(
|
|
3880
3892
|
Pc,
|
|
3881
3893
|
{
|
|
3882
3894
|
onActiveStartDateChange: b,
|
|
3883
3895
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
3884
3896
|
onChange: d,
|
|
3885
3897
|
value: a,
|
|
3886
|
-
tileClassName: ({ date:
|
|
3898
|
+
tileClassName: ({ date: m, view: w }) => {
|
|
3887
3899
|
if (w === "month" && g) {
|
|
3888
3900
|
const y = g;
|
|
3889
|
-
return
|
|
3901
|
+
return m.getMonth() !== (y == null ? void 0 : y.getMonth()) ? "out-of-month" : null;
|
|
3890
3902
|
}
|
|
3891
3903
|
return null;
|
|
3892
3904
|
}
|
|
@@ -3901,9 +3913,9 @@ const tl = ({
|
|
|
3901
3913
|
showArrow: n = !0,
|
|
3902
3914
|
onChange: a
|
|
3903
3915
|
}) => {
|
|
3904
|
-
const [
|
|
3916
|
+
const [i, s] = F(!1);
|
|
3905
3917
|
Q(() => {
|
|
3906
|
-
t && e && e.id === t.id ?
|
|
3918
|
+
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
3907
3919
|
}, [e, s, t]);
|
|
3908
3920
|
const l = A(
|
|
3909
3921
|
(u) => {
|
|
@@ -3911,23 +3923,23 @@ const tl = ({
|
|
|
3911
3923
|
},
|
|
3912
3924
|
[a, t]
|
|
3913
3925
|
);
|
|
3914
|
-
return /* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */ o.jsxs(
|
|
3915
3927
|
"div",
|
|
3916
3928
|
{
|
|
3917
3929
|
onClick: l,
|
|
3918
|
-
className: `expand ${
|
|
3930
|
+
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
3919
3931
|
children: [
|
|
3920
|
-
/* @__PURE__ */
|
|
3921
|
-
|
|
3922
|
-
!
|
|
3923
|
-
/* @__PURE__ */
|
|
3924
|
-
t.description && /* @__PURE__ */
|
|
3932
|
+
/* @__PURE__ */ o.jsx("div", { className: "expand-header", children: /* @__PURE__ */ o.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ o.jsxs("div", { className: "expand-header-content-default", children: [
|
|
3933
|
+
i && n && /* @__PURE__ */ o.jsx(M, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
3934
|
+
!i && n && /* @__PURE__ */ o.jsx(M, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
3935
|
+
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
3936
|
+
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
3925
3937
|
] }) }) }),
|
|
3926
|
-
/* @__PURE__ */
|
|
3927
|
-
/* @__PURE__ */
|
|
3938
|
+
/* @__PURE__ */ o.jsxs("div", { className: "expand-body", children: [
|
|
3939
|
+
/* @__PURE__ */ o.jsx("div", { children: t.headerContent }),
|
|
3928
3940
|
t.content
|
|
3929
3941
|
] }),
|
|
3930
|
-
t.footer && /* @__PURE__ */
|
|
3942
|
+
t.footer && /* @__PURE__ */ o.jsx("div", { className: "expand-footer", children: t.footer })
|
|
3931
3943
|
]
|
|
3932
3944
|
}
|
|
3933
3945
|
);
|
|
@@ -3940,7 +3952,7 @@ const tl = ({
|
|
|
3940
3952
|
);
|
|
3941
3953
|
return Q(() => {
|
|
3942
3954
|
r(e.currentItem);
|
|
3943
|
-
}, [e.currentItem, r, document.activeElement]), /* @__PURE__ */
|
|
3955
|
+
}, [e.currentItem, r, document.activeElement]), /* @__PURE__ */ o.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((a) => /* @__PURE__ */ o.jsx(
|
|
3944
3956
|
Tc,
|
|
3945
3957
|
{
|
|
3946
3958
|
item: a,
|
|
@@ -3957,31 +3969,31 @@ const tl = ({
|
|
|
3957
3969
|
title: n
|
|
3958
3970
|
}) => {
|
|
3959
3971
|
const a = A(
|
|
3960
|
-
(
|
|
3961
|
-
s != null && s.url ||
|
|
3972
|
+
(i, s) => {
|
|
3973
|
+
s != null && s.url || i.preventDefault(), t && t(s);
|
|
3962
3974
|
},
|
|
3963
3975
|
[t]
|
|
3964
3976
|
);
|
|
3965
|
-
return /* @__PURE__ */
|
|
3966
|
-
n && /* @__PURE__ */
|
|
3977
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "filArianes", children: [
|
|
3978
|
+
n && /* @__PURE__ */ o.jsxs("small", { className: "filAriane font-weight-bold text-uppercase", children: [
|
|
3967
3979
|
n,
|
|
3968
3980
|
" ",
|
|
3969
|
-
/* @__PURE__ */
|
|
3981
|
+
/* @__PURE__ */ o.jsx("i", { className: "filAriane-chevron bi bi-caret-right-fill" })
|
|
3970
3982
|
] }),
|
|
3971
|
-
e == null ? void 0 : e.map((
|
|
3983
|
+
e == null ? void 0 : e.map((i, s) => /* @__PURE__ */ o.jsxs(
|
|
3972
3984
|
"div",
|
|
3973
3985
|
{
|
|
3974
|
-
className: `filAriane ${
|
|
3986
|
+
className: `filAriane ${i.id === r && "filAriane--active"}`,
|
|
3975
3987
|
children: [
|
|
3976
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ o.jsx(
|
|
3977
3989
|
"a",
|
|
3978
3990
|
{
|
|
3979
|
-
href:
|
|
3980
|
-
onClick: (l) => a(l,
|
|
3981
|
-
children:
|
|
3991
|
+
href: i.url || "#",
|
|
3992
|
+
onClick: (l) => a(l, i),
|
|
3993
|
+
children: i.title
|
|
3982
3994
|
}
|
|
3983
3995
|
),
|
|
3984
|
-
!
|
|
3996
|
+
!i.isLast && /* @__PURE__ */ o.jsx("i", { className: "filAriane-chevron bi bi-caret-right-fill" })
|
|
3985
3997
|
]
|
|
3986
3998
|
},
|
|
3987
3999
|
s
|
|
@@ -3995,26 +4007,26 @@ const Ac = ({
|
|
|
3995
4007
|
type: r = $t.TEXT,
|
|
3996
4008
|
value: n,
|
|
3997
4009
|
onInvalid: a,
|
|
3998
|
-
placeholder:
|
|
4010
|
+
placeholder: i,
|
|
3999
4011
|
className: s,
|
|
4000
4012
|
inputMode: l,
|
|
4001
4013
|
minLength: u,
|
|
4002
4014
|
maxLength: d,
|
|
4003
|
-
autoFocus:
|
|
4015
|
+
autoFocus: f = !1,
|
|
4004
4016
|
disabled: v = !1,
|
|
4005
4017
|
required: g = !1,
|
|
4006
|
-
autoComplete:
|
|
4018
|
+
autoComplete: h = "off",
|
|
4007
4019
|
ref: b,
|
|
4008
|
-
tabIndex:
|
|
4020
|
+
tabIndex: m = 0,
|
|
4009
4021
|
step: w,
|
|
4010
4022
|
checked: y,
|
|
4011
|
-
onChange:
|
|
4023
|
+
onChange: p,
|
|
4012
4024
|
onBlur: j
|
|
4013
4025
|
}) => {
|
|
4014
4026
|
const [O, P] = F(!1);
|
|
4015
|
-
return /* @__PURE__ */
|
|
4016
|
-
/* @__PURE__ */
|
|
4017
|
-
/* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "input-container", children: [
|
|
4028
|
+
/* @__PURE__ */ o.jsx("input", { type: "text", style: { display: "none" } }),
|
|
4029
|
+
/* @__PURE__ */ o.jsx(
|
|
4018
4030
|
"input",
|
|
4019
4031
|
{
|
|
4020
4032
|
ref: b,
|
|
@@ -4024,28 +4036,28 @@ const Ac = ({
|
|
|
4024
4036
|
type: O ? $t.TEXT : r,
|
|
4025
4037
|
spellCheck: "false",
|
|
4026
4038
|
value: n,
|
|
4027
|
-
placeholder:
|
|
4039
|
+
placeholder: i,
|
|
4028
4040
|
disabled: v,
|
|
4029
4041
|
required: g,
|
|
4030
|
-
autoComplete:
|
|
4042
|
+
autoComplete: h === "off" ? "fake" : h,
|
|
4031
4043
|
step: w,
|
|
4032
|
-
tabIndex:
|
|
4033
|
-
autoFocus:
|
|
4044
|
+
tabIndex: m,
|
|
4045
|
+
autoFocus: f,
|
|
4034
4046
|
minLength: u,
|
|
4035
4047
|
maxLength: d,
|
|
4036
|
-
onChange:
|
|
4048
|
+
onChange: p,
|
|
4037
4049
|
checked: y,
|
|
4038
4050
|
onBlur: j,
|
|
4039
4051
|
className: `input-field ${s ?? ""}`,
|
|
4040
4052
|
onInvalid: a
|
|
4041
4053
|
}
|
|
4042
4054
|
),
|
|
4043
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ o.jsx(o.Fragment, { children: r === $t.PASSWORD && /* @__PURE__ */ o.jsx(
|
|
4044
4056
|
"div",
|
|
4045
4057
|
{
|
|
4046
4058
|
onClick: () => P(!O),
|
|
4047
4059
|
className: "input-password-icon",
|
|
4048
|
-
children: /* @__PURE__ */
|
|
4060
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: O ? "bi-eye-slash" : "bi-eye" })
|
|
4049
4061
|
}
|
|
4050
4062
|
) })
|
|
4051
4063
|
] });
|
|
@@ -4056,16 +4068,16 @@ const Ac = ({
|
|
|
4056
4068
|
onSubmit: r,
|
|
4057
4069
|
onChange: n,
|
|
4058
4070
|
hideSubmit: a,
|
|
4059
|
-
className:
|
|
4071
|
+
className: i
|
|
4060
4072
|
}, s) => {
|
|
4061
4073
|
const [l, u] = F(() => {
|
|
4062
|
-
const
|
|
4074
|
+
const p = {};
|
|
4063
4075
|
return e.forEach((j) => {
|
|
4064
|
-
|
|
4065
|
-
}),
|
|
4066
|
-
}), d = pe({}),
|
|
4067
|
-
(
|
|
4068
|
-
const { name: O, type: P, checked: N, value: k } =
|
|
4076
|
+
p[j.name] = j.value ?? "";
|
|
4077
|
+
}), p;
|
|
4078
|
+
}), d = pe({}), f = A(
|
|
4079
|
+
(p, j) => {
|
|
4080
|
+
const { name: O, type: P, checked: N, value: k } = p.target, $ = P === "checkbox" ? N : k;
|
|
4069
4081
|
j.onChange && j.onChange($, O), u((X) => {
|
|
4070
4082
|
const re = { ...X, [O]: $ };
|
|
4071
4083
|
return n && n(re), re;
|
|
@@ -4073,90 +4085,90 @@ const Ac = ({
|
|
|
4073
4085
|
},
|
|
4074
4086
|
[n]
|
|
4075
4087
|
), v = A(
|
|
4076
|
-
(
|
|
4077
|
-
O.onChange && O.onChange(
|
|
4078
|
-
const N = { ...P, [j]:
|
|
4088
|
+
(p, j, O) => {
|
|
4089
|
+
O.onChange && O.onChange(p, j), u((P) => {
|
|
4090
|
+
const N = { ...P, [j]: p };
|
|
4079
4091
|
return n && n(N), N;
|
|
4080
4092
|
});
|
|
4081
4093
|
},
|
|
4082
4094
|
[n]
|
|
4083
4095
|
), g = A(
|
|
4084
|
-
(
|
|
4085
|
-
|
|
4096
|
+
(p) => {
|
|
4097
|
+
p.preventDefault(), r && r(l);
|
|
4086
4098
|
},
|
|
4087
4099
|
[r, l]
|
|
4088
|
-
),
|
|
4100
|
+
), h = () => {
|
|
4089
4101
|
u(() => {
|
|
4090
|
-
const
|
|
4102
|
+
const p = {};
|
|
4091
4103
|
return e.forEach((j) => {
|
|
4092
|
-
|
|
4093
|
-
}),
|
|
4104
|
+
p[j.name] = j.value ?? "";
|
|
4105
|
+
}), p;
|
|
4094
4106
|
});
|
|
4095
|
-
}, b = A((
|
|
4107
|
+
}, b = A((p) => {
|
|
4096
4108
|
u((j) => ({
|
|
4097
4109
|
...j,
|
|
4098
|
-
[
|
|
4110
|
+
[p]: ""
|
|
4099
4111
|
}));
|
|
4100
|
-
}, []),
|
|
4101
|
-
const
|
|
4102
|
-
|
|
4112
|
+
}, []), m = () => {
|
|
4113
|
+
const p = e.find((j) => j.focus);
|
|
4114
|
+
p && d.current[p.name] && setTimeout(() => {
|
|
4103
4115
|
var j;
|
|
4104
|
-
(j = d.current[
|
|
4116
|
+
(j = d.current[p.name]) == null || j.select();
|
|
4105
4117
|
}, 500);
|
|
4106
|
-
}, w = () => l, y = (
|
|
4118
|
+
}, w = () => l, y = (p) => {
|
|
4107
4119
|
u((j) => ({
|
|
4108
4120
|
...j,
|
|
4109
|
-
...
|
|
4121
|
+
...p
|
|
4110
4122
|
}));
|
|
4111
4123
|
};
|
|
4112
4124
|
return wr(s, () => ({
|
|
4113
|
-
resetForm:
|
|
4125
|
+
resetForm: h,
|
|
4114
4126
|
clearInput: b,
|
|
4115
|
-
focusInitialElement:
|
|
4127
|
+
focusInitialElement: m,
|
|
4116
4128
|
getValues: w,
|
|
4117
4129
|
updateFormValue: y
|
|
4118
|
-
})), /* @__PURE__ */
|
|
4119
|
-
e.map((
|
|
4120
|
-
const O =
|
|
4121
|
-
return /* @__PURE__ */
|
|
4130
|
+
})), /* @__PURE__ */ o.jsxs("form", { onSubmit: g, className: i ?? "", children: [
|
|
4131
|
+
e.map((p, j) => {
|
|
4132
|
+
const O = p.onRequired ? p.onRequired(p.value) : p.required ?? !1, P = p.onDisabled ? p.onDisabled(p.value) : p.disabled ?? !1;
|
|
4133
|
+
return /* @__PURE__ */ o.jsxs(
|
|
4122
4134
|
"div",
|
|
4123
4135
|
{
|
|
4124
|
-
className: `d-flex flex-column ${
|
|
4136
|
+
className: `d-flex flex-column ${p.className ?? ""} form-group form-group-${p.type}`,
|
|
4125
4137
|
children: [
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4138
|
+
p.label && /* @__PURE__ */ o.jsx("label", { children: p.label }),
|
|
4139
|
+
p.icon && /* @__PURE__ */ o.jsx(M, { classIcon: p.icon }),
|
|
4140
|
+
p.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
4129
4141
|
eo,
|
|
4130
4142
|
{
|
|
4131
|
-
id:
|
|
4143
|
+
id: p.name,
|
|
4132
4144
|
label: void 0,
|
|
4133
|
-
options:
|
|
4145
|
+
options: p.options ?? [],
|
|
4134
4146
|
disabled: P,
|
|
4135
|
-
multiple:
|
|
4136
|
-
value: l[
|
|
4137
|
-
defaultValue:
|
|
4138
|
-
placeholder:
|
|
4139
|
-
onChangeMultiple: (N) => v(N,
|
|
4140
|
-
onChange: (N) => v(N,
|
|
4147
|
+
multiple: p.multiple,
|
|
4148
|
+
value: l[p.name],
|
|
4149
|
+
defaultValue: p.value,
|
|
4150
|
+
placeholder: p.placeholder,
|
|
4151
|
+
onChangeMultiple: (N) => v(N, p.name, p),
|
|
4152
|
+
onChange: (N) => v(N, p.name, p)
|
|
4141
4153
|
}
|
|
4142
|
-
) : /* @__PURE__ */
|
|
4154
|
+
) : /* @__PURE__ */ o.jsx(
|
|
4143
4155
|
Ac,
|
|
4144
4156
|
{
|
|
4145
|
-
id:
|
|
4146
|
-
ref: (N) => d.current[
|
|
4147
|
-
name:
|
|
4148
|
-
type:
|
|
4149
|
-
placeholder:
|
|
4150
|
-
autoComplete:
|
|
4157
|
+
id: p.name,
|
|
4158
|
+
ref: (N) => d.current[p.name] = N,
|
|
4159
|
+
name: p.name,
|
|
4160
|
+
type: p.type,
|
|
4161
|
+
placeholder: p.placeholder ?? "",
|
|
4162
|
+
autoComplete: p.autoComplete ?? "off",
|
|
4151
4163
|
tabIndex: 0,
|
|
4152
4164
|
disabled: P,
|
|
4153
|
-
autoFocus:
|
|
4165
|
+
autoFocus: p.focus ?? !1,
|
|
4154
4166
|
required: O,
|
|
4155
|
-
step:
|
|
4156
|
-
value: l[
|
|
4157
|
-
checked:
|
|
4158
|
-
onChange: (N) =>
|
|
4159
|
-
onInvalid:
|
|
4167
|
+
step: p.step ?? "0.01",
|
|
4168
|
+
value: l[p.name],
|
|
4169
|
+
checked: p.type === "checkbox" ? !!l[p.name] : void 0,
|
|
4170
|
+
onChange: (N) => f(N, p),
|
|
4171
|
+
onInvalid: p.onInvalid ? p.onInvalid : void 0
|
|
4160
4172
|
}
|
|
4161
4173
|
)
|
|
4162
4174
|
]
|
|
@@ -4164,7 +4176,7 @@ const Ac = ({
|
|
|
4164
4176
|
j
|
|
4165
4177
|
);
|
|
4166
4178
|
}),
|
|
4167
|
-
/* @__PURE__ */
|
|
4179
|
+
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: !a && /* @__PURE__ */ o.jsx(Ft, { title: t || "submit" }) })
|
|
4168
4180
|
] });
|
|
4169
4181
|
}
|
|
4170
4182
|
), al = ({
|
|
@@ -4173,23 +4185,23 @@ const Ac = ({
|
|
|
4173
4185
|
disabled: r,
|
|
4174
4186
|
width: n,
|
|
4175
4187
|
className: a,
|
|
4176
|
-
onChange:
|
|
4188
|
+
onChange: i,
|
|
4177
4189
|
placeholder: s,
|
|
4178
4190
|
cols: l,
|
|
4179
4191
|
rows: u
|
|
4180
4192
|
}) => {
|
|
4181
|
-
const [d,
|
|
4193
|
+
const [d, f] = F(t);
|
|
4182
4194
|
Q(() => {
|
|
4183
|
-
|
|
4195
|
+
f(t);
|
|
4184
4196
|
}, [t]);
|
|
4185
4197
|
const v = A(
|
|
4186
4198
|
(g) => {
|
|
4187
|
-
const
|
|
4188
|
-
h
|
|
4199
|
+
const h = g.target.value;
|
|
4200
|
+
f(h), i && i(h, e);
|
|
4189
4201
|
},
|
|
4190
|
-
[
|
|
4202
|
+
[i, e]
|
|
4191
4203
|
);
|
|
4192
|
-
return /* @__PURE__ */
|
|
4204
|
+
return /* @__PURE__ */ o.jsx(
|
|
4193
4205
|
"textarea",
|
|
4194
4206
|
{
|
|
4195
4207
|
style: { width: n },
|
|
@@ -4229,33 +4241,33 @@ const Ac = ({
|
|
|
4229
4241
|
max-width: ${Fe(e)};
|
|
4230
4242
|
}
|
|
4231
4243
|
`}
|
|
4232
|
-
`, $c = ({ xs: e, sm: t, md: r, lg: n, children: a }) => /* @__PURE__ */
|
|
4244
|
+
`, $c = ({ xs: e, sm: t, md: r, lg: n, children: a }) => /* @__PURE__ */ o.jsx(Ic, { $xs: e, $sm: t, $md: r, $lg: n, children: a }), Mc = ({ children: e }) => /* @__PURE__ */ o.jsx("div", { className: "container", children: e }), Lc = ({ children: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx("div", { className: `grid-row ${t ?? ""} ${r ? "scroll" : ""}`, children: e }), ol = ({ items: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx(Mc, { children: /* @__PURE__ */ o.jsx(Lc, { scroll: r, className: t, children: e.map((n, a) => /* @__PURE__ */ o.jsx($c, { ...n }, a)) }) }), il = ({
|
|
4233
4245
|
children: e,
|
|
4234
4246
|
logo: t,
|
|
4235
4247
|
onClickMenu: r,
|
|
4236
4248
|
userChildren: n,
|
|
4237
4249
|
positionFixed: a,
|
|
4238
|
-
onClickLogo:
|
|
4250
|
+
onClickLogo: i
|
|
4239
4251
|
}) => {
|
|
4240
4252
|
const s = pe(null), [l, u] = F(!1), d = A(() => {
|
|
4241
4253
|
u(!l);
|
|
4242
4254
|
}, [l, u]);
|
|
4243
|
-
return /* @__PURE__ */
|
|
4244
|
-
/* @__PURE__ */
|
|
4245
|
-
/* @__PURE__ */
|
|
4246
|
-
/* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4256
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4257
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(M, { size: we.MEDIUM, classIcon: "bi-list" }) }),
|
|
4258
|
+
/* @__PURE__ */ o.jsx(
|
|
4247
4259
|
"span",
|
|
4248
4260
|
{
|
|
4249
|
-
className: `header-logo ${
|
|
4250
|
-
onClick:
|
|
4251
|
-
children: t && /* @__PURE__ */
|
|
4261
|
+
className: `header-logo ${i && "cursor-pointer"} `,
|
|
4262
|
+
onClick: i,
|
|
4263
|
+
children: t && /* @__PURE__ */ o.jsx("img", { src: t, alt: "logo" })
|
|
4252
4264
|
}
|
|
4253
4265
|
)
|
|
4254
4266
|
] }),
|
|
4255
|
-
/* @__PURE__ */
|
|
4267
|
+
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4256
4268
|
e,
|
|
4257
|
-
/* @__PURE__ */
|
|
4258
|
-
l && s.current && /* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ o.jsx("div", { ref: s, onClick: d, children: /* @__PURE__ */ o.jsx(M, { size: we.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4270
|
+
l && s.current && /* @__PURE__ */ o.jsx(
|
|
4259
4271
|
kn,
|
|
4260
4272
|
{
|
|
4261
4273
|
position: "bottomRight",
|
|
@@ -4273,23 +4285,23 @@ const Ac = ({
|
|
|
4273
4285
|
children: r,
|
|
4274
4286
|
onSubmit: n,
|
|
4275
4287
|
titleButton: a,
|
|
4276
|
-
title:
|
|
4288
|
+
title: i,
|
|
4277
4289
|
styleContainer: s = {},
|
|
4278
4290
|
classNameContainer: l = ""
|
|
4279
4291
|
}) => e ? Na(
|
|
4280
|
-
/* @__PURE__ */
|
|
4292
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown: t, children: /* @__PURE__ */ o.jsxs(
|
|
4281
4293
|
"div",
|
|
4282
4294
|
{
|
|
4283
4295
|
className: `modal-container ${l}`,
|
|
4284
4296
|
style: s,
|
|
4285
4297
|
onMouseDown: (u) => u.stopPropagation(),
|
|
4286
4298
|
children: [
|
|
4287
|
-
/* @__PURE__ */
|
|
4288
|
-
|
|
4289
|
-
/* @__PURE__ */
|
|
4299
|
+
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4300
|
+
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4301
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" }) })
|
|
4290
4302
|
] }),
|
|
4291
|
-
/* @__PURE__ */
|
|
4292
|
-
n && /* @__PURE__ */
|
|
4303
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4304
|
+
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(Ft, { onClick: n, title: a ?? "" }) })
|
|
4293
4305
|
]
|
|
4294
4306
|
}
|
|
4295
4307
|
) }),
|
|
@@ -4300,25 +4312,25 @@ const Ac = ({
|
|
|
4300
4312
|
onClickQuantity: r,
|
|
4301
4313
|
disabled: n,
|
|
4302
4314
|
disabledPlus: a,
|
|
4303
|
-
disabledMinus:
|
|
4315
|
+
disabledMinus: i,
|
|
4304
4316
|
pas: s
|
|
4305
4317
|
}) => {
|
|
4306
4318
|
const [l, u] = F(s), d = A(
|
|
4307
|
-
(
|
|
4308
|
-
n || (u(
|
|
4319
|
+
(h) => {
|
|
4320
|
+
n || (u(h), e && e(t, h));
|
|
4309
4321
|
},
|
|
4310
4322
|
[u, e]
|
|
4311
|
-
),
|
|
4312
|
-
(
|
|
4313
|
-
if (
|
|
4323
|
+
), f = A(
|
|
4324
|
+
(h) => {
|
|
4325
|
+
if (h.stopPropagation(), n || a)
|
|
4314
4326
|
return;
|
|
4315
4327
|
const b = l + s;
|
|
4316
4328
|
d(Math.round(b * 100) / 100);
|
|
4317
4329
|
},
|
|
4318
4330
|
[l, d]
|
|
4319
4331
|
), v = A(
|
|
4320
|
-
(
|
|
4321
|
-
if (
|
|
4332
|
+
(h) => {
|
|
4333
|
+
if (h.stopPropagation(), n || i)
|
|
4322
4334
|
return;
|
|
4323
4335
|
if (l === 0)
|
|
4324
4336
|
return l;
|
|
@@ -4331,27 +4343,27 @@ const Ac = ({
|
|
|
4331
4343
|
t.quantity && u(t.quantity);
|
|
4332
4344
|
}, [t.quantity, u]);
|
|
4333
4345
|
const g = A(
|
|
4334
|
-
(
|
|
4335
|
-
|
|
4346
|
+
(h) => {
|
|
4347
|
+
h.stopPropagation(), r && r(t);
|
|
4336
4348
|
},
|
|
4337
4349
|
[r, t]
|
|
4338
4350
|
);
|
|
4339
|
-
return /* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
4351
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "qte ", children: [
|
|
4352
|
+
/* @__PURE__ */ o.jsx(
|
|
4341
4353
|
"div",
|
|
4342
4354
|
{
|
|
4343
|
-
onClick: (
|
|
4344
|
-
className: `qte-action qte-action--minus ${n ||
|
|
4345
|
-
children: /* @__PURE__ */
|
|
4355
|
+
onClick: (h) => v(h),
|
|
4356
|
+
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
4357
|
+
children: /* @__PURE__ */ o.jsx(M, { size: we.LARGE, classIcon: "bi bi-dash-square" })
|
|
4346
4358
|
}
|
|
4347
4359
|
),
|
|
4348
|
-
/* @__PURE__ */
|
|
4349
|
-
/* @__PURE__ */
|
|
4360
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children: l }),
|
|
4361
|
+
/* @__PURE__ */ o.jsx(
|
|
4350
4362
|
"div",
|
|
4351
4363
|
{
|
|
4352
|
-
onClick: (
|
|
4364
|
+
onClick: (h) => f(h),
|
|
4353
4365
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
4354
|
-
children: /* @__PURE__ */
|
|
4366
|
+
children: /* @__PURE__ */ o.jsx(M, { size: we.LARGE, classIcon: "bi bi-plus-square" })
|
|
4355
4367
|
}
|
|
4356
4368
|
)
|
|
4357
4369
|
] });
|
|
@@ -4362,12 +4374,12 @@ const Ac = ({
|
|
|
4362
4374
|
placeholder: r,
|
|
4363
4375
|
isVisible: n,
|
|
4364
4376
|
focus: a,
|
|
4365
|
-
debounceTime:
|
|
4377
|
+
debounceTime: i,
|
|
4366
4378
|
handleChange: s,
|
|
4367
4379
|
setIsVisible: l,
|
|
4368
4380
|
id: u
|
|
4369
4381
|
}, d) => {
|
|
4370
|
-
const [
|
|
4382
|
+
const [f, v] = F(n ?? !1), g = pe(null), h = pe(null), b = Ye(
|
|
4371
4383
|
() => [
|
|
4372
4384
|
{
|
|
4373
4385
|
value: "",
|
|
@@ -4386,60 +4398,60 @@ const Ac = ({
|
|
|
4386
4398
|
Q(() => {
|
|
4387
4399
|
n !== void 0 && v(n);
|
|
4388
4400
|
}, [n]);
|
|
4389
|
-
const
|
|
4390
|
-
(
|
|
4391
|
-
l && l(
|
|
4401
|
+
const m = A(
|
|
4402
|
+
(p) => {
|
|
4403
|
+
l && l(p), v(p);
|
|
4392
4404
|
},
|
|
4393
4405
|
[l]
|
|
4394
4406
|
), w = A(
|
|
4395
|
-
(
|
|
4396
|
-
if (!
|
|
4397
|
-
return
|
|
4398
|
-
|
|
4399
|
-
s && s(
|
|
4400
|
-
},
|
|
4407
|
+
(p) => {
|
|
4408
|
+
if (!p || !p[t ?? "recherche"])
|
|
4409
|
+
return m(!1);
|
|
4410
|
+
m(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
4411
|
+
s && s(p);
|
|
4412
|
+
}, i ?? 500);
|
|
4401
4413
|
},
|
|
4402
|
-
[
|
|
4414
|
+
[m, s, i]
|
|
4403
4415
|
), y = A(
|
|
4404
|
-
(
|
|
4405
|
-
console.log("Form Submitted: ",
|
|
4416
|
+
(p) => {
|
|
4417
|
+
console.log("Form Submitted: ", p);
|
|
4406
4418
|
},
|
|
4407
4419
|
[]
|
|
4408
4420
|
);
|
|
4409
4421
|
return wr(d, () => ({
|
|
4410
|
-
clearInput: (
|
|
4422
|
+
clearInput: (p) => {
|
|
4411
4423
|
var j;
|
|
4412
|
-
(j =
|
|
4424
|
+
(j = h.current) == null || j.clearInput(p);
|
|
4413
4425
|
},
|
|
4414
4426
|
resetForm: () => {
|
|
4415
|
-
var
|
|
4416
|
-
(
|
|
4427
|
+
var p;
|
|
4428
|
+
(p = h.current) == null || p.resetForm();
|
|
4417
4429
|
},
|
|
4418
4430
|
focusInitialElement: () => {
|
|
4419
|
-
var
|
|
4420
|
-
(
|
|
4431
|
+
var p;
|
|
4432
|
+
(p = h.current) == null || p.focusInitialElement();
|
|
4421
4433
|
}
|
|
4422
|
-
})), /* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4434
|
+
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
4435
|
+
/* @__PURE__ */ o.jsx(
|
|
4424
4436
|
Rc,
|
|
4425
4437
|
{
|
|
4426
|
-
ref:
|
|
4438
|
+
ref: h,
|
|
4427
4439
|
onSubmit: y,
|
|
4428
4440
|
onChange: w,
|
|
4429
4441
|
hideSubmit: !0,
|
|
4430
4442
|
initialForm: b
|
|
4431
4443
|
}
|
|
4432
4444
|
),
|
|
4433
|
-
|
|
4434
|
-
/* @__PURE__ */
|
|
4445
|
+
f && /* @__PURE__ */ o.jsxs("div", { className: "search-result", children: [
|
|
4446
|
+
/* @__PURE__ */ o.jsx("div", { className: "search-result-close", children: /* @__PURE__ */ o.jsx(
|
|
4435
4447
|
"button",
|
|
4436
4448
|
{
|
|
4437
4449
|
className: "toggle-btn",
|
|
4438
|
-
onClick: () =>
|
|
4439
|
-
children: /* @__PURE__ */
|
|
4450
|
+
onClick: () => m(!1),
|
|
4451
|
+
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" })
|
|
4440
4452
|
}
|
|
4441
4453
|
) }),
|
|
4442
|
-
/* @__PURE__ */
|
|
4454
|
+
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
4443
4455
|
] })
|
|
4444
4456
|
] });
|
|
4445
4457
|
}
|
|
@@ -4449,40 +4461,40 @@ const Ac = ({
|
|
|
4449
4461
|
title: r,
|
|
4450
4462
|
onClose: n,
|
|
4451
4463
|
className: a,
|
|
4452
|
-
id:
|
|
4464
|
+
id: i,
|
|
4453
4465
|
width: s,
|
|
4454
4466
|
closeOnClickOutside: l = !0,
|
|
4455
4467
|
displayOverlay: u = !0
|
|
4456
4468
|
}) => {
|
|
4457
|
-
const [d,
|
|
4458
|
-
Q(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${
|
|
4469
|
+
const [d, f] = F(e || !1), v = pe(null), g = pe(null);
|
|
4470
|
+
Q(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(g.current)), () => {
|
|
4459
4471
|
g.current && g.current.parentNode && (document.body.removeChild(g.current), g.current = null);
|
|
4460
|
-
}), [
|
|
4461
|
-
|
|
4472
|
+
}), [i]), Q(() => {
|
|
4473
|
+
f(e || !1);
|
|
4462
4474
|
}, [e]);
|
|
4463
|
-
const
|
|
4464
|
-
|
|
4475
|
+
const h = A(() => {
|
|
4476
|
+
f(!1), n && n(!1);
|
|
4465
4477
|
}, [n]), b = A(
|
|
4466
|
-
(
|
|
4467
|
-
l && v.current && !v.current.contains(
|
|
4478
|
+
(m) => {
|
|
4479
|
+
l && v.current && !v.current.contains(m.target) && h();
|
|
4468
4480
|
},
|
|
4469
|
-
[
|
|
4481
|
+
[h, l]
|
|
4470
4482
|
);
|
|
4471
4483
|
return Q(() => (d ? document.addEventListener("mousedown", b) : document.removeEventListener("mousedown", b), () => {
|
|
4472
4484
|
document.removeEventListener("mousedown", b);
|
|
4473
4485
|
}), [d, b]), g.current ? jn.createPortal(
|
|
4474
|
-
/* @__PURE__ */
|
|
4475
|
-
d && u && /* @__PURE__ */
|
|
4476
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
4487
|
+
d && u && /* @__PURE__ */ o.jsx("div", { className: "overlay" }),
|
|
4488
|
+
/* @__PURE__ */ o.jsxs(
|
|
4477
4489
|
"div",
|
|
4478
4490
|
{
|
|
4479
4491
|
ref: v,
|
|
4480
4492
|
style: s ? { width: s } : {},
|
|
4481
4493
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
4482
4494
|
children: [
|
|
4483
|
-
/* @__PURE__ */
|
|
4484
|
-
r && /* @__PURE__ */
|
|
4485
|
-
/* @__PURE__ */
|
|
4495
|
+
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
4496
|
+
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
4497
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: h, children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" }) })
|
|
4486
4498
|
] }),
|
|
4487
4499
|
t && t
|
|
4488
4500
|
]
|
|
@@ -4490,14 +4502,14 @@ const Ac = ({
|
|
|
4490
4502
|
)
|
|
4491
4503
|
] }),
|
|
4492
4504
|
g.current
|
|
4493
|
-
) : /* @__PURE__ */
|
|
4494
|
-
}, ul = (e) => /* @__PURE__ */
|
|
4505
|
+
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
4506
|
+
}, ul = (e) => /* @__PURE__ */ o.jsx(Fc, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), Sa = (e) => {
|
|
4495
4507
|
let t;
|
|
4496
|
-
const r = /* @__PURE__ */ new Set(), n = (d,
|
|
4508
|
+
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
4497
4509
|
const v = typeof d == "function" ? d(t) : d;
|
|
4498
4510
|
if (!Object.is(v, t)) {
|
|
4499
4511
|
const g = t;
|
|
4500
|
-
t =
|
|
4512
|
+
t = f ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), r.forEach((h) => h(t, g));
|
|
4501
4513
|
}
|
|
4502
4514
|
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => u, subscribe: (d) => (r.add(d), () => r.delete(d)) }, u = t = e(n, a, l);
|
|
4503
4515
|
return l;
|
|
@@ -4537,7 +4549,7 @@ const Oa = (e) => {
|
|
|
4537
4549
|
severity: r = "info",
|
|
4538
4550
|
visible: n,
|
|
4539
4551
|
children: a,
|
|
4540
|
-
duration:
|
|
4552
|
+
duration: i,
|
|
4541
4553
|
hideToast: s,
|
|
4542
4554
|
close: l
|
|
4543
4555
|
} = zc(), u = A(() => {
|
|
@@ -4545,24 +4557,24 @@ const Oa = (e) => {
|
|
|
4545
4557
|
}, [s]);
|
|
4546
4558
|
if (Q(() => {
|
|
4547
4559
|
if (!n) return;
|
|
4548
|
-
const
|
|
4560
|
+
const f = setTimeout(() => {
|
|
4549
4561
|
s();
|
|
4550
|
-
},
|
|
4551
|
-
return () => clearTimeout(
|
|
4552
|
-
}, [n,
|
|
4562
|
+
}, i);
|
|
4563
|
+
return () => clearTimeout(f);
|
|
4564
|
+
}, [n, i, s]), !n) return null;
|
|
4553
4565
|
const d = document.getElementById("toaster-root");
|
|
4554
4566
|
return d ? jn.createPortal(
|
|
4555
|
-
/* @__PURE__ */
|
|
4556
|
-
l && /* @__PURE__ */
|
|
4557
|
-
/* @__PURE__ */
|
|
4558
|
-
r === "info" && /* @__PURE__ */
|
|
4559
|
-
r === "success" && /* @__PURE__ */
|
|
4560
|
-
r === "error" && /* @__PURE__ */
|
|
4561
|
-
r === "warning" && /* @__PURE__ */
|
|
4567
|
+
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
4568
|
+
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: u, children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x" }) }),
|
|
4569
|
+
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
4570
|
+
r === "info" && /* @__PURE__ */ o.jsx(M, { classIcon: "bi-info-circle" }),
|
|
4571
|
+
r === "success" && /* @__PURE__ */ o.jsx(M, { classIcon: "bi-check-circle" }),
|
|
4572
|
+
r === "error" && /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-circle" }),
|
|
4573
|
+
r === "warning" && /* @__PURE__ */ o.jsx(M, { classIcon: "bi-exclamation-triangle" })
|
|
4562
4574
|
] }),
|
|
4563
|
-
/* @__PURE__ */
|
|
4564
|
-
/* @__PURE__ */
|
|
4565
|
-
t && /* @__PURE__ */
|
|
4575
|
+
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
4576
|
+
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
4577
|
+
t && /* @__PURE__ */ o.jsx("div", { className: "subtitle", children: t }),
|
|
4566
4578
|
a
|
|
4567
4579
|
] })
|
|
4568
4580
|
] }),
|
|
@@ -4584,7 +4596,7 @@ export {
|
|
|
4584
4596
|
nl as FilAriane,
|
|
4585
4597
|
ol as Grid,
|
|
4586
4598
|
il as Header,
|
|
4587
|
-
|
|
4599
|
+
M as Icon,
|
|
4588
4600
|
we as IconSizeEnum,
|
|
4589
4601
|
Ac as Input,
|
|
4590
4602
|
ca as Loader,
|