kelt-ui-kit-react 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { Value } from 'react-calendar/dist/cjs/shared/types';
|
|
2
|
+
|
|
3
|
+
export type DatePickerProps = {
|
|
4
|
+
value?: Value;
|
|
5
|
+
onChange?: (date: Value) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const Datepicker: ({ value, onChange }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -26,12 +26,12 @@ function An() {
|
|
|
26
26
|
if (cr) return Be;
|
|
27
27
|
cr = 1;
|
|
28
28
|
var e = ie, 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 };
|
|
29
|
-
function c(u, l,
|
|
30
|
-
var y,
|
|
31
|
-
|
|
32
|
-
for (y in l) n.call(l, y) && !i.hasOwnProperty(y) && (
|
|
33
|
-
if (u && u.defaultProps) for (y in l = u.defaultProps, l)
|
|
34
|
-
return { $$typeof: t, type: u, key:
|
|
29
|
+
function c(u, l, m) {
|
|
30
|
+
var y, g = {}, p = null, d = null;
|
|
31
|
+
m !== void 0 && (p = "" + m), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (d = l.ref);
|
|
32
|
+
for (y in l) n.call(l, y) && !i.hasOwnProperty(y) && (g[y] = l[y]);
|
|
33
|
+
if (u && u.defaultProps) for (y in l = u.defaultProps, l) g[y] === void 0 && (g[y] = l[y]);
|
|
34
|
+
return { $$typeof: t, type: u, key: p, ref: d, props: g, _owner: a.current };
|
|
35
35
|
}
|
|
36
36
|
return Be.Fragment = r, Be.jsx = c, Be.jsxs = c, Be;
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ var Ye = {};
|
|
|
48
48
|
var lr;
|
|
49
49
|
function $n() {
|
|
50
50
|
return lr || (lr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
-
var e = ie, 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"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"),
|
|
51
|
+
var e = ie, 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"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), f = Symbol.iterator, x = "@@iterator";
|
|
52
52
|
function v(s) {
|
|
53
53
|
if (s === null || typeof s != "object")
|
|
54
54
|
return null;
|
|
@@ -76,7 +76,7 @@ function $n() {
|
|
|
76
76
|
var N = !1, T = !1, k = !1, E = !1, V = !1, X;
|
|
77
77
|
X = Symbol.for("react.module.reference");
|
|
78
78
|
function vt(s) {
|
|
79
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || V || s === a || s ===
|
|
79
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || V || s === a || s === m || s === y || E || s === d || N || T || k || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === g || s.$$typeof === c || s.$$typeof === u || s.$$typeof === l || // This needs to include all possible module reference object
|
|
80
80
|
// types supported by any Flight configuration anywhere since
|
|
81
81
|
// we don't know which Flight build this will end up being used
|
|
82
82
|
// with.
|
|
@@ -108,7 +108,7 @@ function $n() {
|
|
|
108
108
|
return "Profiler";
|
|
109
109
|
case a:
|
|
110
110
|
return "StrictMode";
|
|
111
|
-
case
|
|
111
|
+
case m:
|
|
112
112
|
return "Suspense";
|
|
113
113
|
case y:
|
|
114
114
|
return "SuspenseList";
|
|
@@ -123,10 +123,10 @@ function $n() {
|
|
|
123
123
|
return He(j._context) + ".Provider";
|
|
124
124
|
case l:
|
|
125
125
|
return yt(s, s.render, "ForwardRef");
|
|
126
|
-
case
|
|
126
|
+
case g:
|
|
127
127
|
var C = s.displayName || null;
|
|
128
128
|
return C !== null ? C : Q(s.type) || "Memo";
|
|
129
|
-
case
|
|
129
|
+
case p: {
|
|
130
130
|
var O = s, A = O._payload, P = O._init;
|
|
131
131
|
try {
|
|
132
132
|
return Q(P(A));
|
|
@@ -304,7 +304,7 @@ function $n() {
|
|
|
304
304
|
if (typeof s == "string")
|
|
305
305
|
return ee(s);
|
|
306
306
|
switch (s) {
|
|
307
|
-
case
|
|
307
|
+
case m:
|
|
308
308
|
return ee("Suspense");
|
|
309
309
|
case y:
|
|
310
310
|
return ee("SuspenseList");
|
|
@@ -313,9 +313,9 @@ function $n() {
|
|
|
313
313
|
switch (s.$$typeof) {
|
|
314
314
|
case l:
|
|
315
315
|
return an(s.render);
|
|
316
|
-
case
|
|
316
|
+
case g:
|
|
317
317
|
return Ke(s.type, h, j);
|
|
318
|
-
case
|
|
318
|
+
case p: {
|
|
319
319
|
var C = s, O = C._payload, A = C._init;
|
|
320
320
|
try {
|
|
321
321
|
return Ke(A(O), h, j);
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
553
553
|
j = h.propTypes;
|
|
554
554
|
else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here.
|
|
555
555
|
// Inner props are checked in the reconciler.
|
|
556
|
-
h.$$typeof ===
|
|
556
|
+
h.$$typeof === g))
|
|
557
557
|
j = h.propTypes;
|
|
558
558
|
else
|
|
559
559
|
return;
|
|
@@ -685,15 +685,15 @@ const uo = ({
|
|
|
685
685
|
positionicon: c = 1,
|
|
686
686
|
disabled: u = !1
|
|
687
687
|
}) => {
|
|
688
|
-
const l = (
|
|
689
|
-
|
|
688
|
+
const l = (m) => {
|
|
689
|
+
m.stopPropagation(), t && t(m);
|
|
690
690
|
};
|
|
691
691
|
return /* @__PURE__ */ o.jsxs(
|
|
692
692
|
"button",
|
|
693
693
|
{
|
|
694
694
|
disabled: u,
|
|
695
695
|
type: "submit",
|
|
696
|
-
onClick: (
|
|
696
|
+
onClick: (m) => l(m),
|
|
697
697
|
className: e,
|
|
698
698
|
children: [
|
|
699
699
|
r && /* @__PURE__ */ o.jsx(Ir, { ...r }),
|
|
@@ -914,11 +914,11 @@ function Qn(e) {
|
|
|
914
914
|
return Hn(st("", null, null, null, [""], e = Gn(e), 0, [0], e));
|
|
915
915
|
}
|
|
916
916
|
function st(e, t, r, n, a, i, c, u, l) {
|
|
917
|
-
for (var
|
|
917
|
+
for (var m = 0, y = 0, g = c, p = 0, d = 0, f = 0, x = 1, v = 1, b = 1, w = 0, S = "", N = a, T = i, k = n, E = S; v; )
|
|
918
918
|
switch (f = w, w = ne()) {
|
|
919
919
|
case 40:
|
|
920
|
-
if (f != 108 && B(E,
|
|
921
|
-
rt(E += R(Et(w), "&", "&\f"), "&\f", Mr(
|
|
920
|
+
if (f != 108 && B(E, g - 1) == 58) {
|
|
921
|
+
rt(E += R(Et(w), "&", "&\f"), "&\f", Mr(m ? u[m - 1] : 0)) != -1 && (b = -1);
|
|
922
922
|
break;
|
|
923
923
|
}
|
|
924
924
|
case 34:
|
|
@@ -946,7 +946,7 @@ function st(e, t, r, n, a, i, c, u, l) {
|
|
|
946
946
|
}
|
|
947
947
|
break;
|
|
948
948
|
case 123 * x:
|
|
949
|
-
u[
|
|
949
|
+
u[m++] = oe(E) * b;
|
|
950
950
|
case 125 * x:
|
|
951
951
|
case 59:
|
|
952
952
|
case 0:
|
|
@@ -955,30 +955,30 @@ function st(e, t, r, n, a, i, c, u, l) {
|
|
|
955
955
|
case 125:
|
|
956
956
|
v = 0;
|
|
957
957
|
case 59 + y:
|
|
958
|
-
b == -1 && (E = R(E, /\f/g, "")), d > 0 && oe(E) -
|
|
958
|
+
b == -1 && (E = R(E, /\f/g, "")), d > 0 && oe(E) - g && Ue(d > 32 ? fr(E + ";", n, r, g - 1, l) : fr(R(E, " ", "") + ";", n, r, g - 2, l), l);
|
|
959
959
|
break;
|
|
960
960
|
case 59:
|
|
961
961
|
E += ";";
|
|
962
962
|
default:
|
|
963
|
-
if (Ue(k = dr(E, t, r,
|
|
963
|
+
if (Ue(k = dr(E, t, r, m, y, a, u, S, N = [], T = [], g, i), i), w === 123)
|
|
964
964
|
if (y === 0)
|
|
965
|
-
st(E, t, k, k, N, i,
|
|
965
|
+
st(E, t, k, k, N, i, g, u, T);
|
|
966
966
|
else
|
|
967
|
-
switch (
|
|
967
|
+
switch (p === 99 && B(E, 3) === 110 ? 100 : p) {
|
|
968
968
|
case 100:
|
|
969
969
|
case 108:
|
|
970
970
|
case 109:
|
|
971
971
|
case 115:
|
|
972
|
-
st(e, k, k, n && Ue(dr(e, k, k, 0, 0, a, u, S, a, N = [],
|
|
972
|
+
st(e, k, k, n && Ue(dr(e, k, k, 0, 0, a, u, S, a, N = [], g, T), T), a, T, g, u, n ? N : T);
|
|
973
973
|
break;
|
|
974
974
|
default:
|
|
975
975
|
st(E, k, k, k, [""], T, 0, u, T);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
|
|
978
|
+
m = y = d = 0, x = b = 1, S = E = "", g = c;
|
|
979
979
|
break;
|
|
980
980
|
case 58:
|
|
981
|
-
|
|
981
|
+
g = 1 + oe(E), d = f;
|
|
982
982
|
default:
|
|
983
983
|
if (x < 1) {
|
|
984
984
|
if (w == 123)
|
|
@@ -991,10 +991,10 @@ function st(e, t, r, n, a, i, c, u, l) {
|
|
|
991
991
|
b = y > 0 ? 1 : (E += "\f", -1);
|
|
992
992
|
break;
|
|
993
993
|
case 44:
|
|
994
|
-
u[
|
|
994
|
+
u[m++] = (oe(E) - 1) * b, b = 1;
|
|
995
995
|
break;
|
|
996
996
|
case 64:
|
|
997
|
-
we() === 45 && (E += Et(ne())),
|
|
997
|
+
we() === 45 && (E += Et(ne())), p = we(), y = g = oe(S = E += Zn(nt())), w++;
|
|
998
998
|
break;
|
|
999
999
|
case 45:
|
|
1000
1000
|
f === 45 && oe(E) == 2 && (x = 0);
|
|
@@ -1002,11 +1002,11 @@ function st(e, t, r, n, a, i, c, u, l) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
return i;
|
|
1004
1004
|
}
|
|
1005
|
-
function dr(e, t, r, n, a, i, c, u, l,
|
|
1006
|
-
for (var
|
|
1007
|
-
for (var w = 0, S = Te(e,
|
|
1005
|
+
function dr(e, t, r, n, a, i, c, u, l, m, y, g) {
|
|
1006
|
+
for (var p = a - 1, d = a === 0 ? i : [""], f = Lr(d), x = 0, v = 0, b = 0; x < n; ++x)
|
|
1007
|
+
for (var w = 0, S = Te(e, p + 1, p = Mr(v = c[x])), N = e; w < f; ++w)
|
|
1008
1008
|
(N = Fr(v > 0 ? d[w] + " " + S : R(S, /&\f/g, d[w]))) && (l[b++] = N);
|
|
1009
|
-
return ht(e, t, r, a === 0 ? dt : u, l,
|
|
1009
|
+
return ht(e, t, r, a === 0 ? dt : u, l, m, y, g);
|
|
1010
1010
|
}
|
|
1011
1011
|
function es(e, t, r, n) {
|
|
1012
1012
|
return ht(e, t, r, $r, Wt(Un()), Te(e, 2, -2), 0, n);
|
|
@@ -1134,8 +1134,8 @@ function Wr(e, t, r) {
|
|
|
1134
1134
|
break;
|
|
1135
1135
|
case 5152:
|
|
1136
1136
|
case 5920:
|
|
1137
|
-
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c, u, l,
|
|
1138
|
-
return M + a + ":" + i +
|
|
1137
|
+
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c, u, l, m) {
|
|
1138
|
+
return M + a + ":" + i + m + (c ? M + a + "-span:" + (u ? l : +l - +i) + m : "") + e;
|
|
1139
1139
|
});
|
|
1140
1140
|
case 4949:
|
|
1141
1141
|
if (B(e, t + 6) === 121)
|
|
@@ -1332,9 +1332,9 @@ function Kr(e, t, r) {
|
|
|
1332
1332
|
for (var i = gr(e), c = gr(t), u = 0; u < a.length; ++u) {
|
|
1333
1333
|
var l = a[u];
|
|
1334
1334
|
if (!(l in ms || r && r[l] || c && l in c || i && l in i)) {
|
|
1335
|
-
var
|
|
1335
|
+
var m = xs(t, l);
|
|
1336
1336
|
try {
|
|
1337
|
-
vs(e, l,
|
|
1337
|
+
vs(e, l, m);
|
|
1338
1338
|
} catch {
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
@@ -1463,8 +1463,8 @@ var Ss = function() {
|
|
|
1463
1463
|
if (u) {
|
|
1464
1464
|
var l = u.match(Rs);
|
|
1465
1465
|
if (l) {
|
|
1466
|
-
var
|
|
1467
|
-
|
|
1466
|
+
var m = 0 | parseInt(l[1], 10), y = l[2];
|
|
1467
|
+
m !== 0 && (Cs(y, m), ks(e, y, l[3]), e.getTag().insertRules(m, a)), a.length = 0;
|
|
1468
1468
|
} else a.push(u);
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
@@ -1540,18 +1540,18 @@ var Jr = function(e) {
|
|
|
1540
1540
|
var a = this;
|
|
1541
1541
|
this.options = H(H({}, As), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && lt && wr && (wr = !1, br(this)), Yt(this, function() {
|
|
1542
1542
|
return function(i) {
|
|
1543
|
-
for (var c = i.getTag(), u = c.length, l = "",
|
|
1544
|
-
var
|
|
1543
|
+
for (var c = i.getTag(), u = c.length, l = "", m = function(g) {
|
|
1544
|
+
var p = function(b) {
|
|
1545
1545
|
return ut.get(b);
|
|
1546
|
-
}(
|
|
1547
|
-
if (
|
|
1548
|
-
var d = i.names.get(
|
|
1546
|
+
}(g);
|
|
1547
|
+
if (p === void 0) return "continue";
|
|
1548
|
+
var d = i.names.get(p), f = c.getGroup(g);
|
|
1549
1549
|
if (d === void 0 || !d.size || f.length === 0) return "continue";
|
|
1550
|
-
var x = "".concat(Se, ".g").concat(
|
|
1550
|
+
var x = "".concat(Se, ".g").concat(g, '[id="').concat(p, '"]'), v = "";
|
|
1551
1551
|
d !== void 0 && d.forEach(function(b) {
|
|
1552
1552
|
b.length > 0 && (v += "".concat(b, ","));
|
|
1553
1553
|
}), l += "".concat(f).concat(x, '{content:"').concat(v, '"}').concat(Vt);
|
|
1554
|
-
}, y = 0; y < u; y++)
|
|
1554
|
+
}, y = 0; y < u; y++) m(y);
|
|
1555
1555
|
return l;
|
|
1556
1556
|
}(a);
|
|
1557
1557
|
});
|
|
@@ -1596,24 +1596,24 @@ function Qr(e, t) {
|
|
|
1596
1596
|
});
|
|
1597
1597
|
}
|
|
1598
1598
|
function Ms(e) {
|
|
1599
|
-
var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i, u = a.plugins, l = u === void 0 ? gt : u,
|
|
1600
|
-
return f.startsWith(r) && f.endsWith(r) && f.replaceAll(r, "").length > 0 ? ".".concat(t) :
|
|
1599
|
+
var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i, u = a.plugins, l = u === void 0 ? gt : u, m = function(p, d, f) {
|
|
1600
|
+
return f.startsWith(r) && f.endsWith(r) && f.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
|
|
1601
1601
|
}, y = l.slice();
|
|
1602
|
-
y.push(function(
|
|
1603
|
-
|
|
1602
|
+
y.push(function(p) {
|
|
1603
|
+
p.type === dt && p.value.includes("&") && (p.props[0] = p.props[0].replace($s, r).replace(n, m));
|
|
1604
1604
|
}), c.prefix && y.push(ss), y.push(ts);
|
|
1605
|
-
var
|
|
1605
|
+
var g = function(p, d, f, x) {
|
|
1606
1606
|
d === void 0 && (d = ""), f === void 0 && (f = ""), x === void 0 && (x = "&"), t = x, r = d, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1607
|
-
var v =
|
|
1607
|
+
var v = p.replace(Ds, ""), b = Qn(f || d ? "".concat(f, " ").concat(d, " { ").concat(v, " }") : v);
|
|
1608
1608
|
c.namespace && (b = Qr(b, c.namespace));
|
|
1609
1609
|
var w = [];
|
|
1610
1610
|
return ct(b, rs(y.concat(ns(function(S) {
|
|
1611
1611
|
return w.push(S);
|
|
1612
1612
|
})))), w;
|
|
1613
1613
|
};
|
|
1614
|
-
return
|
|
1615
|
-
return d.name || Le(15), xe(
|
|
1616
|
-
}, Yr).toString() : "",
|
|
1614
|
+
return g.hash = l.length ? l.reduce(function(p, d) {
|
|
1615
|
+
return d.name || Le(15), xe(p, d.name);
|
|
1616
|
+
}, Yr).toString() : "", g;
|
|
1617
1617
|
}
|
|
1618
1618
|
var Fs = new Zr(), $t = Ms(), en = ie.createContext({ shouldForwardProp: void 0, styleSheet: Fs, stylis: $t });
|
|
1619
1619
|
en.Consumer;
|
|
@@ -1692,17 +1692,17 @@ var Ws = Ur(mt), Vs = function() {
|
|
|
1692
1692
|
a = be(a, c), this.staticRulesId = c;
|
|
1693
1693
|
}
|
|
1694
1694
|
else {
|
|
1695
|
-
for (var l = xe(this.baseHash, n.hash),
|
|
1696
|
-
var
|
|
1697
|
-
if (typeof
|
|
1698
|
-
else if (
|
|
1699
|
-
var
|
|
1700
|
-
l = xe(l,
|
|
1695
|
+
for (var l = xe(this.baseHash, n.hash), m = "", y = 0; y < this.rules.length; y++) {
|
|
1696
|
+
var g = this.rules[y];
|
|
1697
|
+
if (typeof g == "string") m += g, process.env.NODE_ENV !== "production" && (l = xe(l, g));
|
|
1698
|
+
else if (g) {
|
|
1699
|
+
var p = xr(je(g, t, r, n));
|
|
1700
|
+
l = xe(l, p + y), m += p;
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
if (
|
|
1703
|
+
if (m) {
|
|
1704
1704
|
var d = Tt(l >>> 0);
|
|
1705
|
-
r.hasNameForId(this.componentId, d) || r.insertRules(this.componentId, d, n(
|
|
1705
|
+
r.hasNameForId(this.componentId, d) || r.insertRules(this.componentId, d, n(m, ".".concat(d), void 0, this.componentId)), a = be(a, d);
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
1708
|
return a;
|
|
@@ -1711,14 +1711,14 @@ var Ws = Ur(mt), Vs = function() {
|
|
|
1711
1711
|
nn.Consumer;
|
|
1712
1712
|
var Rt = {}, Cr = /* @__PURE__ */ new Set();
|
|
1713
1713
|
function Bs(e, t, r) {
|
|
1714
|
-
var n = Bt(e), a = e, i = !Nt(e), c = t.attrs, u = c === void 0 ? gt : c, l = t.componentId,
|
|
1714
|
+
var n = Bt(e), a = e, i = !Nt(e), c = t.attrs, u = c === void 0 ? gt : c, l = t.componentId, m = l === void 0 ? function(N, T) {
|
|
1715
1715
|
var k = typeof N != "string" ? "sc" : pr(N);
|
|
1716
1716
|
Rt[k] = (Rt[k] || 0) + 1;
|
|
1717
1717
|
var E = "".concat(k, "-").concat(fs(mt + k + Rt[k]));
|
|
1718
1718
|
return T ? "".concat(T, "-").concat(E) : E;
|
|
1719
|
-
}(t.displayName, t.parentComponentId) : l, y = t.displayName,
|
|
1719
|
+
}(t.displayName, t.parentComponentId) : l, y = t.displayName, g = y === void 0 ? function(N) {
|
|
1720
1720
|
return Nt(N) ? "styled.".concat(N) : "Styled(".concat(qr(N), ")");
|
|
1721
|
-
}(e) : y,
|
|
1721
|
+
}(e) : y, p = t.displayName && t.componentId ? "".concat(pr(t.displayName), "-").concat(t.componentId) : t.componentId || m, d = n && a.attrs ? a.attrs.concat(u).filter(Boolean) : u, f = t.shouldForwardProp;
|
|
1722
1722
|
if (n && a.shouldForwardProp) {
|
|
1723
1723
|
var x = a.shouldForwardProp;
|
|
1724
1724
|
if (t.shouldForwardProp) {
|
|
@@ -1728,7 +1728,7 @@ function Bs(e, t, r) {
|
|
|
1728
1728
|
};
|
|
1729
1729
|
} else f = x;
|
|
1730
1730
|
}
|
|
1731
|
-
var b = new Vs(r,
|
|
1731
|
+
var b = new Vs(r, p, n ? a.componentStyle : void 0);
|
|
1732
1732
|
function w(N, T) {
|
|
1733
1733
|
return function(k, E, V) {
|
|
1734
1734
|
var X = k.attrs, vt = k.componentStyle, yt = k.defaultProps, He = k.foldedComponentIds, Q = k.styledComponentId, ce = k.target, ve = ie.useContext(nn), Xe = jr(), Ee = k.shouldForwardProp || Xe.shouldForwardProp;
|
|
@@ -1750,9 +1750,9 @@ function Bs(e, t, r) {
|
|
|
1750
1750
|
return Ce && (We += " " + Ce), K.className && (We += " " + K.className), fe[Nt(de) && !It.has(de) ? "class" : "className"] = We, V && (fe.ref = V), In(de, fe);
|
|
1751
1751
|
}(S, N, T);
|
|
1752
1752
|
}
|
|
1753
|
-
w.displayName =
|
|
1753
|
+
w.displayName = g;
|
|
1754
1754
|
var S = ie.forwardRef(w);
|
|
1755
|
-
return S.attrs = d, S.componentStyle = b, S.displayName =
|
|
1755
|
+
return S.attrs = d, S.componentStyle = b, S.displayName = g, S.shouldForwardProp = f, S.foldedComponentIds = n ? be(a.foldedComponentIds, a.styledComponentId) : "", S.styledComponentId = p, S.target = n ? a.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
|
|
1756
1756
|
return this._foldedDefaultProps;
|
|
1757
1757
|
}, set: function(N) {
|
|
1758
1758
|
this._foldedDefaultProps = n ? function(T) {
|
|
@@ -1760,7 +1760,7 @@ function Bs(e, t, r) {
|
|
|
1760
1760
|
for (var V = 0, X = k; V < X.length; V++) At(T, X[V], !0);
|
|
1761
1761
|
return T;
|
|
1762
1762
|
}({}, a.defaultProps, N) : N;
|
|
1763
|
-
} }), process.env.NODE_ENV !== "production" && (is(
|
|
1763
|
+
} }), process.env.NODE_ENV !== "production" && (is(g, p), S.warnTooManyClasses = /* @__PURE__ */ function(N, T) {
|
|
1764
1764
|
var k = {}, E = !1;
|
|
1765
1765
|
return function(V) {
|
|
1766
1766
|
if (!E && (k[V] = !0, Object.keys(k).length >= 200)) {
|
|
@@ -1777,7 +1777,7 @@ Example:
|
|
|
1777
1777
|
<Component />`), E = !0, k = {};
|
|
1778
1778
|
}
|
|
1779
1779
|
};
|
|
1780
|
-
}(
|
|
1780
|
+
}(g, p)), Yt(S, function() {
|
|
1781
1781
|
return ".".concat(S.styledComponentId);
|
|
1782
1782
|
}), i && Kr(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
|
|
1783
1783
|
}
|
|
@@ -1838,18 +1838,18 @@ const Ys = Ut.div`
|
|
|
1838
1838
|
show: a,
|
|
1839
1839
|
closeOverlay: i
|
|
1840
1840
|
}, c) => {
|
|
1841
|
-
const { activeOverlayId: u, setActiveOverlay: l } = Mn(), [
|
|
1841
|
+
const { activeOverlayId: u, setActiveOverlay: l } = Mn(), [m, y] = F(a || !1), [g, p] = F(
|
|
1842
1842
|
r ?? { top: 0, left: 0 }
|
|
1843
1843
|
), d = se(null), f = Tn();
|
|
1844
1844
|
Ft(c, () => ({
|
|
1845
|
-
setCoords:
|
|
1845
|
+
setCoords: p
|
|
1846
1846
|
})), Y(() => {
|
|
1847
1847
|
u !== f && y(!1);
|
|
1848
1848
|
}, [u, f]), Y(() => {
|
|
1849
1849
|
const b = () => {
|
|
1850
1850
|
var w;
|
|
1851
1851
|
if (!t && r)
|
|
1852
|
-
|
|
1852
|
+
p(r);
|
|
1853
1853
|
else if (e) {
|
|
1854
1854
|
const S = e.getBoundingClientRect(), N = (w = d.current) == null ? void 0 : w.getBoundingClientRect(), { innerWidth: T, innerHeight: k } = window;
|
|
1855
1855
|
if (N) {
|
|
@@ -1880,12 +1880,12 @@ const Ys = Ut.div`
|
|
|
1880
1880
|
left: S.right
|
|
1881
1881
|
})
|
|
1882
1882
|
};
|
|
1883
|
-
t && X[t] ? { top: E, left: V } = X[t]() : (V = S.right, E = S.bottom, S.right + N.width > T && (V = S.left - N.width), S.bottom + N.height > k && (E = S.top - N.height)),
|
|
1883
|
+
t && X[t] ? { top: E, left: V } = X[t]() : (V = S.right, E = S.bottom, S.right + N.width > T && (V = S.left - N.width), S.bottom + N.height > k && (E = S.top - N.height)), p({ top: E, left: V < 0 ? 0 : V });
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
};
|
|
1887
|
-
return
|
|
1888
|
-
}, [e,
|
|
1887
|
+
return m && (b(), window.addEventListener("resize", b)), () => window.removeEventListener("resize", b);
|
|
1888
|
+
}, [e, m, t]);
|
|
1889
1889
|
const x = () => {
|
|
1890
1890
|
y(!0), l(f);
|
|
1891
1891
|
}, v = $(
|
|
@@ -1898,16 +1898,16 @@ const Ys = Ut.div`
|
|
|
1898
1898
|
const b = (w) => {
|
|
1899
1899
|
d.current && !d.current.contains(w.target) && v(w);
|
|
1900
1900
|
};
|
|
1901
|
-
return
|
|
1901
|
+
return m && document.addEventListener("mousedown", b), () => {
|
|
1902
1902
|
document.removeEventListener("mousedown", b);
|
|
1903
1903
|
};
|
|
1904
|
-
}, [
|
|
1904
|
+
}, [m, v]), Y(() => {
|
|
1905
1905
|
a && x();
|
|
1906
|
-
}, [a]),
|
|
1907
|
-
/* @__PURE__ */ o.jsx(Ys, { ref: d, $top:
|
|
1906
|
+
}, [a]), m ? Lt.createPortal(
|
|
1907
|
+
/* @__PURE__ */ o.jsx(Ys, { ref: d, $top: g.top, $left: g.left, children: /* @__PURE__ */ o.jsxs(
|
|
1908
1908
|
"div",
|
|
1909
1909
|
{
|
|
1910
|
-
className: `overlayPanel ${
|
|
1910
|
+
className: `overlayPanel ${g.top > 0 || g.left > 0 ? "visible" : "hide"}`,
|
|
1911
1911
|
children: [
|
|
1912
1912
|
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(D, { classIcon: "bi-x-lg" }) }),
|
|
1913
1913
|
n
|
|
@@ -1927,12 +1927,12 @@ const Ys = Ut.div`
|
|
|
1927
1927
|
}) => {
|
|
1928
1928
|
const c = (d) => {
|
|
1929
1929
|
d.preventDefault(), t && t(d);
|
|
1930
|
-
}, u = se(null), [l,
|
|
1930
|
+
}, u = se(null), [l, m] = F(!1), y = $(
|
|
1931
1931
|
(d) => {
|
|
1932
|
-
d.stopPropagation(), n &&
|
|
1932
|
+
d.stopPropagation(), n && m(!l);
|
|
1933
1933
|
},
|
|
1934
|
-
[l,
|
|
1935
|
-
),
|
|
1934
|
+
[l, m]
|
|
1935
|
+
), g = Oe(() => n ? n.map((d, f) => ({
|
|
1936
1936
|
id: d.id ?? f,
|
|
1937
1937
|
icon: d.icon,
|
|
1938
1938
|
name: d.label,
|
|
@@ -1942,15 +1942,15 @@ const Ys = Ut.div`
|
|
|
1942
1942
|
classIcon: d.icon,
|
|
1943
1943
|
sizeIcon: ae.LARGE,
|
|
1944
1944
|
onClick: (x) => {
|
|
1945
|
-
x.stopPropagation(),
|
|
1945
|
+
x.stopPropagation(), p(), d.onClick && d.onClick(d);
|
|
1946
1946
|
},
|
|
1947
1947
|
title: d.label || ""
|
|
1948
1948
|
},
|
|
1949
1949
|
f
|
|
1950
1950
|
)
|
|
1951
|
-
})) : [], [n]),
|
|
1952
|
-
|
|
1953
|
-
}, [
|
|
1951
|
+
})) : [], [n]), p = $(() => {
|
|
1952
|
+
m(!1);
|
|
1953
|
+
}, [m]);
|
|
1954
1954
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1955
1955
|
/* @__PURE__ */ o.jsxs(
|
|
1956
1956
|
"button",
|
|
@@ -1978,9 +1978,9 @@ const Ys = Ut.div`
|
|
|
1978
1978
|
{
|
|
1979
1979
|
show: l,
|
|
1980
1980
|
position: a,
|
|
1981
|
-
closeOverlay:
|
|
1981
|
+
closeOverlay: m,
|
|
1982
1982
|
referenceElement: u.current,
|
|
1983
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Tr, { className: "card-action-menu", items:
|
|
1983
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Tr, { className: "card-action-menu", items: g }) })
|
|
1984
1984
|
}
|
|
1985
1985
|
)
|
|
1986
1986
|
] });
|
|
@@ -1994,18 +1994,18 @@ const Ys = Ut.div`
|
|
|
1994
1994
|
}) => {
|
|
1995
1995
|
const c = se(null), [u, l] = F(
|
|
1996
1996
|
a
|
|
1997
|
-
),
|
|
1997
|
+
), m = se(null), [y, g] = F(t ?? !1);
|
|
1998
1998
|
Y(() => {
|
|
1999
|
-
t &&
|
|
1999
|
+
t && g(t);
|
|
2000
2000
|
}, [t]);
|
|
2001
|
-
const
|
|
2001
|
+
const p = $(
|
|
2002
2002
|
(x, v) => {
|
|
2003
2003
|
e.length !== 0 && (x.preventDefault(), l("bottomRight"), i && i(v));
|
|
2004
2004
|
},
|
|
2005
2005
|
[l, i]
|
|
2006
2006
|
), d = $(() => {
|
|
2007
|
-
l(void 0),
|
|
2008
|
-
}, [
|
|
2007
|
+
l(void 0), g(!1), i && i(!1);
|
|
2008
|
+
}, [g, l, i]), f = Oe(() => e == null ? void 0 : e.filter((x) => x.type === "menu").map((x, v) => ({
|
|
2009
2009
|
id: v,
|
|
2010
2010
|
icon: x.icon,
|
|
2011
2011
|
name: x.label,
|
|
@@ -2027,9 +2027,9 @@ const Ys = Ut.div`
|
|
|
2027
2027
|
/* @__PURE__ */ o.jsxs(
|
|
2028
2028
|
"div",
|
|
2029
2029
|
{
|
|
2030
|
-
ref:
|
|
2030
|
+
ref: m,
|
|
2031
2031
|
className: `card-action ${e.filter((x) => x.type === "menu").length ? "visible" : "hidden"}`,
|
|
2032
|
-
onClick: (x) =>
|
|
2032
|
+
onClick: (x) => p(x, !y),
|
|
2033
2033
|
children: [
|
|
2034
2034
|
/* @__PURE__ */ o.jsx(
|
|
2035
2035
|
D,
|
|
@@ -2048,7 +2048,7 @@ const Ys = Ut.div`
|
|
|
2048
2048
|
]
|
|
2049
2049
|
}
|
|
2050
2050
|
),
|
|
2051
|
-
y &&
|
|
2051
|
+
y && m.current && /* @__PURE__ */ o.jsx(
|
|
2052
2052
|
qt,
|
|
2053
2053
|
{
|
|
2054
2054
|
position: u,
|
|
@@ -2056,7 +2056,7 @@ const Ys = Ut.div`
|
|
|
2056
2056
|
ref: c,
|
|
2057
2057
|
closeOverlay: d,
|
|
2058
2058
|
coordonnees: n,
|
|
2059
|
-
referenceElement:
|
|
2059
|
+
referenceElement: m.current,
|
|
2060
2060
|
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Tr, { className: "card-action-menu", items: f }) })
|
|
2061
2061
|
}
|
|
2062
2062
|
)
|
|
@@ -2071,20 +2071,20 @@ const Ys = Ut.div`
|
|
|
2071
2071
|
positionOverlay: c,
|
|
2072
2072
|
children: u
|
|
2073
2073
|
}) => {
|
|
2074
|
-
const [l,
|
|
2074
|
+
const [l, m] = F(!1), [y, g] = F(!1), [p, d] = F(), f = (v, b) => {
|
|
2075
2075
|
v.stopPropagation(), a && a(b);
|
|
2076
2076
|
}, x = $(
|
|
2077
2077
|
(v, b) => {
|
|
2078
2078
|
if (v.stopPropagation(), y)
|
|
2079
|
-
return d(void 0),
|
|
2080
|
-
v.target.closest(".qte") || v.target.closest(".card-action-menu button") || v.target.closest(".card-actions") || (
|
|
2079
|
+
return d(void 0), g(!1);
|
|
2080
|
+
v.target.closest(".qte") || v.target.closest(".card-action-menu button") || v.target.closest(".card-actions") || (m(!l), n && v.button !== 2 ? n(b) : (d({ top: v.clientY, left: v.clientX }), g(!0)));
|
|
2081
2081
|
},
|
|
2082
2082
|
[
|
|
2083
|
-
|
|
2083
|
+
m,
|
|
2084
2084
|
d,
|
|
2085
2085
|
n,
|
|
2086
2086
|
y,
|
|
2087
|
-
|
|
2087
|
+
g,
|
|
2088
2088
|
l
|
|
2089
2089
|
]
|
|
2090
2090
|
);
|
|
@@ -2118,10 +2118,10 @@ const Ys = Ut.div`
|
|
|
2118
2118
|
Us,
|
|
2119
2119
|
{
|
|
2120
2120
|
openActions: y,
|
|
2121
|
-
setOpenActions:
|
|
2121
|
+
setOpenActions: g,
|
|
2122
2122
|
actions: t,
|
|
2123
2123
|
item: e,
|
|
2124
|
-
positions:
|
|
2124
|
+
positions: p,
|
|
2125
2125
|
positionOverlay: c
|
|
2126
2126
|
}
|
|
2127
2127
|
)
|
|
@@ -2155,7 +2155,7 @@ const Ys = Ut.div`
|
|
|
2155
2155
|
};
|
|
2156
2156
|
return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2157
2157
|
}, [n]);
|
|
2158
|
-
const
|
|
2158
|
+
const m = $(
|
|
2159
2159
|
(f) => {
|
|
2160
2160
|
f.preventDefault(), i(
|
|
2161
2161
|
(x) => Math.min(x + r, c - u)
|
|
@@ -2167,9 +2167,9 @@ const Ys = Ut.div`
|
|
|
2167
2167
|
f.preventDefault(), i((x) => Math.max(x - r, 0));
|
|
2168
2168
|
},
|
|
2169
2169
|
[i]
|
|
2170
|
-
),
|
|
2170
|
+
), g = a + r >= c - u + 1, p = c <= u, d = a <= 0;
|
|
2171
2171
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2172
|
-
t && !
|
|
2172
|
+
t && !p && /* @__PURE__ */ o.jsx(
|
|
2173
2173
|
"div",
|
|
2174
2174
|
{
|
|
2175
2175
|
className: `carousel-control prev ${d && "disabled"}`,
|
|
@@ -2199,11 +2199,11 @@ const Ys = Ut.div`
|
|
|
2199
2199
|
))
|
|
2200
2200
|
}
|
|
2201
2201
|
) }),
|
|
2202
|
-
t && !
|
|
2202
|
+
t && !p && /* @__PURE__ */ o.jsx(
|
|
2203
2203
|
"div",
|
|
2204
2204
|
{
|
|
2205
|
-
className: `carousel-control next ${
|
|
2206
|
-
onClick:
|
|
2205
|
+
className: `carousel-control next ${g && "disabled"}`,
|
|
2206
|
+
onClick: m,
|
|
2207
2207
|
children: /* @__PURE__ */ o.jsx(D, { classIcon: "bi-chevron-right" })
|
|
2208
2208
|
}
|
|
2209
2209
|
)
|
|
@@ -2224,27 +2224,27 @@ const Ys = Ut.div`
|
|
|
2224
2224
|
Y(() => {
|
|
2225
2225
|
l(n);
|
|
2226
2226
|
}, [n]);
|
|
2227
|
-
const
|
|
2227
|
+
const m = Oe(() => {
|
|
2228
2228
|
const y = [];
|
|
2229
|
-
for (let
|
|
2230
|
-
const
|
|
2229
|
+
for (let g = 0; g < c; g++) {
|
|
2230
|
+
const p = [];
|
|
2231
2231
|
for (let d = 0; d < i; d++) {
|
|
2232
|
-
const f = d +
|
|
2232
|
+
const f = d + g * i, x = r == null ? void 0 : r.find(
|
|
2233
2233
|
(v) => v.position === f + 1
|
|
2234
2234
|
);
|
|
2235
|
-
x ?
|
|
2236
|
-
/* @__PURE__ */ o.jsx(qs, { onClick: a, cell: x }, `${
|
|
2237
|
-
) :
|
|
2238
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2235
|
+
x ? p.push(
|
|
2236
|
+
/* @__PURE__ */ o.jsx(qs, { onClick: a, cell: x }, `${g}-${d}`)
|
|
2237
|
+
) : p.push(
|
|
2238
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${g}-${d}`)
|
|
2239
2239
|
);
|
|
2240
2240
|
}
|
|
2241
2241
|
y.push(
|
|
2242
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
2242
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: p }, g)
|
|
2243
2243
|
);
|
|
2244
2244
|
}
|
|
2245
2245
|
return y;
|
|
2246
2246
|
}, [i, c, u]);
|
|
2247
|
-
return /* @__PURE__ */ o.jsx("div", { className: "damier", children:
|
|
2247
|
+
return /* @__PURE__ */ o.jsx("div", { className: "damier", children: m });
|
|
2248
2248
|
}, Gs = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2249
2249
|
e && !t && /* @__PURE__ */ o.jsxs("div", { className: "d-flex flex-column align-items-center", children: [
|
|
2250
2250
|
r && /* @__PURE__ */ o.jsx("span", { className: "mb-3", children: r }),
|
|
@@ -2268,9 +2268,9 @@ const Ys = Ut.div`
|
|
|
2268
2268
|
value: u,
|
|
2269
2269
|
placeholder: l
|
|
2270
2270
|
}) => {
|
|
2271
|
-
const
|
|
2272
|
-
const
|
|
2273
|
-
c && c(
|
|
2271
|
+
const m = (y) => {
|
|
2272
|
+
const g = y.target.value;
|
|
2273
|
+
c && c(g);
|
|
2274
2274
|
};
|
|
2275
2275
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
2276
2276
|
t && /* @__PURE__ */ o.jsx("label", { className: "select-container-label", children: t }),
|
|
@@ -2280,10 +2280,10 @@ const Ys = Ut.div`
|
|
|
2280
2280
|
disabled: a,
|
|
2281
2281
|
className: "select-container-select",
|
|
2282
2282
|
value: u ?? i ?? "",
|
|
2283
|
-
onChange:
|
|
2283
|
+
onChange: m,
|
|
2284
2284
|
children: [
|
|
2285
2285
|
l && !i && /* @__PURE__ */ o.jsx("option", { value: "", children: l }),
|
|
2286
|
-
r.map((y,
|
|
2286
|
+
r.map((y, g) => /* @__PURE__ */ o.jsx("option", { value: y.value, children: y.label }, g))
|
|
2287
2287
|
]
|
|
2288
2288
|
}
|
|
2289
2289
|
)
|
|
@@ -2299,28 +2299,28 @@ function vo(e) {
|
|
|
2299
2299
|
data: c = [],
|
|
2300
2300
|
actions: u = [],
|
|
2301
2301
|
columns: l = [],
|
|
2302
|
-
loading:
|
|
2302
|
+
loading: m,
|
|
2303
2303
|
onRowClick: y,
|
|
2304
|
-
onColumnClick:
|
|
2304
|
+
onColumnClick: g
|
|
2305
2305
|
} = e;
|
|
2306
|
-
return
|
|
2306
|
+
return m ? /* @__PURE__ */ o.jsx(Gs, { display: m }) : /* @__PURE__ */ o.jsxs("div", { children: [
|
|
2307
2307
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
2308
2308
|
i,
|
|
2309
2309
|
/* @__PURE__ */ o.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
2310
2310
|
/* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsxs("tr", { children: [
|
|
2311
|
-
l.map((
|
|
2311
|
+
l.map((p, d) => /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2312
2312
|
"th",
|
|
2313
2313
|
{
|
|
2314
2314
|
style: {
|
|
2315
|
-
minWidth:
|
|
2316
|
-
maxWidth:
|
|
2317
|
-
width:
|
|
2318
|
-
textAlign: "left"
|
|
2315
|
+
minWidth: p.minWidth,
|
|
2316
|
+
maxWidth: p.maxWidth,
|
|
2317
|
+
width: p.width,
|
|
2318
|
+
textAlign: p.align || "left"
|
|
2319
2319
|
},
|
|
2320
|
-
onClick: () =>
|
|
2321
|
-
children:
|
|
2320
|
+
onClick: () => g == null ? void 0 : g(p),
|
|
2321
|
+
children: p.label
|
|
2322
2322
|
},
|
|
2323
|
-
`colonne-${
|
|
2323
|
+
`colonne-${p.id}-${d}`
|
|
2324
2324
|
) })),
|
|
2325
2325
|
u.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2326
2326
|
"th",
|
|
@@ -2334,9 +2334,9 @@ function vo(e) {
|
|
|
2334
2334
|
)
|
|
2335
2335
|
] }) }),
|
|
2336
2336
|
/* @__PURE__ */ o.jsxs("tbody", { children: [
|
|
2337
|
-
c.map((
|
|
2337
|
+
c.map((p, d) => /* @__PURE__ */ o.jsxs("tr", { onClick: () => y == null ? void 0 : y(p), children: [
|
|
2338
2338
|
l.map((f, x) => {
|
|
2339
|
-
const v =
|
|
2339
|
+
const v = p[f.id];
|
|
2340
2340
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2341
2341
|
"td",
|
|
2342
2342
|
{
|
|
@@ -2352,7 +2352,7 @@ function vo(e) {
|
|
|
2352
2352
|
options: f.options ?? [],
|
|
2353
2353
|
value: v,
|
|
2354
2354
|
onChange: (b) => {
|
|
2355
|
-
f.onEdit && f.onEdit(b,
|
|
2355
|
+
f.onEdit && f.onEdit(b, p);
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
2358
|
) : /* @__PURE__ */ o.jsx(
|
|
@@ -2363,7 +2363,7 @@ function vo(e) {
|
|
|
2363
2363
|
step: "0.01",
|
|
2364
2364
|
style: { textAlign: f.align || "left" },
|
|
2365
2365
|
onChange: (b) => {
|
|
2366
|
-
f.onEdit && f.onEdit(b.target.value,
|
|
2366
|
+
f.onEdit && f.onEdit(b.target.value, p);
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
2369
|
) : f.format ? f.format(v) : v
|
|
@@ -2373,12 +2373,12 @@ function vo(e) {
|
|
|
2373
2373
|
}),
|
|
2374
2374
|
u.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: u.map((f, x) => {
|
|
2375
2375
|
let v = f.label;
|
|
2376
|
-
return (f.shouldDisplay ? f.shouldDisplay(
|
|
2376
|
+
return (f.shouldDisplay ? f.shouldDisplay(p) : !0) ? (f.labelButton && (v = f.labelButton ? f.labelButton(p) : f.label), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2377
2377
|
f.type === "button" && /* @__PURE__ */ o.jsx(
|
|
2378
2378
|
Ge,
|
|
2379
2379
|
{
|
|
2380
2380
|
title: v,
|
|
2381
|
-
onClick: () => f.onClick(
|
|
2381
|
+
onClick: () => f.onClick(p),
|
|
2382
2382
|
disabled: f.disabled,
|
|
2383
2383
|
className: `data-table-action button--tertiary mr-2 w-100 ${f.classIcon ? f.classIcon : ""}`
|
|
2384
2384
|
},
|
|
@@ -2388,7 +2388,7 @@ function vo(e) {
|
|
|
2388
2388
|
"div",
|
|
2389
2389
|
{
|
|
2390
2390
|
className: "mr-2 ",
|
|
2391
|
-
onClick: () => f.onClick(
|
|
2391
|
+
onClick: () => f.onClick(p),
|
|
2392
2392
|
children: /* @__PURE__ */ o.jsx(
|
|
2393
2393
|
D,
|
|
2394
2394
|
{
|
|
@@ -2515,7 +2515,7 @@ const Xs = ({
|
|
|
2515
2515
|
return e.forEach((b) => {
|
|
2516
2516
|
v[b.name] = b.value ?? "";
|
|
2517
2517
|
}), v;
|
|
2518
|
-
}), l = se({}),
|
|
2518
|
+
}), l = se({}), m = $(
|
|
2519
2519
|
(v, b) => {
|
|
2520
2520
|
const { name: w, value: S, type: N, checked: T } = v.target;
|
|
2521
2521
|
b.onChange && b.onChange(S, w), u((k) => {
|
|
@@ -2532,14 +2532,14 @@ const Xs = ({
|
|
|
2532
2532
|
v.preventDefault(), r && r(c);
|
|
2533
2533
|
},
|
|
2534
2534
|
[r, c]
|
|
2535
|
-
),
|
|
2535
|
+
), g = () => {
|
|
2536
2536
|
u(() => {
|
|
2537
2537
|
const v = {};
|
|
2538
2538
|
return e.forEach((b) => {
|
|
2539
2539
|
v[b.name] = b.value ?? "";
|
|
2540
2540
|
}), v;
|
|
2541
2541
|
});
|
|
2542
|
-
},
|
|
2542
|
+
}, p = $((v) => {
|
|
2543
2543
|
u((b) => ({
|
|
2544
2544
|
...b,
|
|
2545
2545
|
[v]: ""
|
|
@@ -2557,8 +2557,8 @@ const Xs = ({
|
|
|
2557
2557
|
}));
|
|
2558
2558
|
};
|
|
2559
2559
|
return Ft(i, () => ({
|
|
2560
|
-
resetForm:
|
|
2561
|
-
clearInput:
|
|
2560
|
+
resetForm: g,
|
|
2561
|
+
clearInput: p,
|
|
2562
2562
|
focusInitialElement: d,
|
|
2563
2563
|
getValues: f,
|
|
2564
2564
|
updateFormValue: x
|
|
@@ -2579,7 +2579,7 @@ const Xs = ({
|
|
|
2579
2579
|
required: v.required ?? !1,
|
|
2580
2580
|
value: c && c[v.name],
|
|
2581
2581
|
checked: v.type === "checkbox" ? !!c[v.name] : void 0,
|
|
2582
|
-
onChange: (w) =>
|
|
2582
|
+
onChange: (w) => m(w, v)
|
|
2583
2583
|
}
|
|
2584
2584
|
)
|
|
2585
2585
|
] }, b)),
|
|
@@ -2599,13 +2599,13 @@ const bo = ({
|
|
|
2599
2599
|
cols: u,
|
|
2600
2600
|
rows: l
|
|
2601
2601
|
}) => {
|
|
2602
|
-
const [
|
|
2602
|
+
const [m, y] = F(t);
|
|
2603
2603
|
Y(() => {
|
|
2604
2604
|
y(t);
|
|
2605
2605
|
}, [t]);
|
|
2606
|
-
const
|
|
2607
|
-
(
|
|
2608
|
-
const d =
|
|
2606
|
+
const g = $(
|
|
2607
|
+
(p) => {
|
|
2608
|
+
const d = p.target.value;
|
|
2609
2609
|
y(d), i && i(d, e);
|
|
2610
2610
|
},
|
|
2611
2611
|
[i, e]
|
|
@@ -2617,8 +2617,8 @@ const bo = ({
|
|
|
2617
2617
|
className: `form-control-textarea ${a ?? ""}`,
|
|
2618
2618
|
name: e,
|
|
2619
2619
|
disabled: r,
|
|
2620
|
-
value:
|
|
2621
|
-
onChange:
|
|
2620
|
+
value: m,
|
|
2621
|
+
onChange: g,
|
|
2622
2622
|
placeholder: c,
|
|
2623
2623
|
cols: u,
|
|
2624
2624
|
rows: l
|
|
@@ -2658,7 +2658,7 @@ const bo = ({
|
|
|
2658
2658
|
positionFixed: a,
|
|
2659
2659
|
onClickLogo: i
|
|
2660
2660
|
}) => {
|
|
2661
|
-
const c = se(null), [u, l] = F(!1),
|
|
2661
|
+
const c = se(null), [u, l] = F(!1), m = $(() => {
|
|
2662
2662
|
l(!u);
|
|
2663
2663
|
}, [u, l]);
|
|
2664
2664
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
@@ -2675,7 +2675,7 @@ const bo = ({
|
|
|
2675
2675
|
] }),
|
|
2676
2676
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
2677
2677
|
e,
|
|
2678
|
-
/* @__PURE__ */ o.jsx("div", { ref: c, onClick:
|
|
2678
|
+
/* @__PURE__ */ o.jsx("div", { ref: c, onClick: m, children: /* @__PURE__ */ o.jsx(D, { size: ae.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
2679
2679
|
u && c.current && /* @__PURE__ */ o.jsx(
|
|
2680
2680
|
qt,
|
|
2681
2681
|
{
|
|
@@ -2724,7 +2724,7 @@ const bo = ({
|
|
|
2724
2724
|
disabledMinus: i,
|
|
2725
2725
|
pas: c
|
|
2726
2726
|
}) => {
|
|
2727
|
-
const [u, l] = F(c),
|
|
2727
|
+
const [u, l] = F(c), m = $(
|
|
2728
2728
|
(d) => {
|
|
2729
2729
|
n || (l(d), e && e(t, d));
|
|
2730
2730
|
},
|
|
@@ -2734,24 +2734,24 @@ const bo = ({
|
|
|
2734
2734
|
if (d.stopPropagation(), n || a)
|
|
2735
2735
|
return;
|
|
2736
2736
|
const f = u + c;
|
|
2737
|
-
|
|
2737
|
+
m(Math.round(f * 100) / 100);
|
|
2738
2738
|
},
|
|
2739
|
-
[u,
|
|
2740
|
-
),
|
|
2739
|
+
[u, m]
|
|
2740
|
+
), g = $(
|
|
2741
2741
|
(d) => {
|
|
2742
2742
|
if (d.stopPropagation(), n || i)
|
|
2743
2743
|
return;
|
|
2744
2744
|
if (u === 0)
|
|
2745
2745
|
return u;
|
|
2746
2746
|
const f = u - c;
|
|
2747
|
-
|
|
2747
|
+
m(Math.round(f * 100) / 100);
|
|
2748
2748
|
},
|
|
2749
|
-
[
|
|
2749
|
+
[m, u]
|
|
2750
2750
|
);
|
|
2751
2751
|
Y(() => {
|
|
2752
2752
|
t.quantity && l(t.quantity);
|
|
2753
2753
|
}, [t.quantity, l]);
|
|
2754
|
-
const
|
|
2754
|
+
const p = $(
|
|
2755
2755
|
(d) => {
|
|
2756
2756
|
d.stopPropagation(), r && r(t);
|
|
2757
2757
|
},
|
|
@@ -2761,12 +2761,12 @@ const bo = ({
|
|
|
2761
2761
|
/* @__PURE__ */ o.jsx(
|
|
2762
2762
|
"div",
|
|
2763
2763
|
{
|
|
2764
|
-
onClick: (d) =>
|
|
2764
|
+
onClick: (d) => g(d),
|
|
2765
2765
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
2766
2766
|
children: /* @__PURE__ */ o.jsx(D, { size: ae.LARGE, classIcon: "bi bi-dash-square" })
|
|
2767
2767
|
}
|
|
2768
2768
|
),
|
|
2769
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (d) =>
|
|
2769
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (d) => p(d), className: "qte-label", children: u }),
|
|
2770
2770
|
/* @__PURE__ */ o.jsx(
|
|
2771
2771
|
"div",
|
|
2772
2772
|
{
|
|
@@ -2787,8 +2787,8 @@ const bo = ({
|
|
|
2787
2787
|
handleChange: c,
|
|
2788
2788
|
setIsVisible: u,
|
|
2789
2789
|
id: l
|
|
2790
|
-
},
|
|
2791
|
-
const [y,
|
|
2790
|
+
}, m) => {
|
|
2791
|
+
const [y, g] = F(n ?? !1), p = se(null), d = se(null), f = Oe(
|
|
2792
2792
|
() => [
|
|
2793
2793
|
{
|
|
2794
2794
|
value: "",
|
|
@@ -2805,18 +2805,18 @@ const bo = ({
|
|
|
2805
2805
|
[r, a]
|
|
2806
2806
|
);
|
|
2807
2807
|
Y(() => {
|
|
2808
|
-
n !== void 0 &&
|
|
2808
|
+
n !== void 0 && g(n);
|
|
2809
2809
|
}, [n]);
|
|
2810
2810
|
const x = $(
|
|
2811
2811
|
(w) => {
|
|
2812
|
-
u && u(w),
|
|
2812
|
+
u && u(w), g(w);
|
|
2813
2813
|
},
|
|
2814
2814
|
[u]
|
|
2815
2815
|
), v = $(
|
|
2816
2816
|
(w) => {
|
|
2817
2817
|
if (!w || !w[t ?? "recherche"])
|
|
2818
2818
|
return x(!1);
|
|
2819
|
-
x(!0),
|
|
2819
|
+
x(!0), p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
2820
2820
|
c && c(w);
|
|
2821
2821
|
}, i ?? 500);
|
|
2822
2822
|
},
|
|
@@ -2827,7 +2827,7 @@ const bo = ({
|
|
|
2827
2827
|
},
|
|
2828
2828
|
[]
|
|
2829
2829
|
);
|
|
2830
|
-
return Ft(
|
|
2830
|
+
return Ft(m, () => ({
|
|
2831
2831
|
clearInput: (w) => {
|
|
2832
2832
|
var S;
|
|
2833
2833
|
(S = d.current) == null || S.clearInput(w);
|
|
@@ -2875,9 +2875,9 @@ const bo = ({
|
|
|
2875
2875
|
closeOnClickOutside: u = !0,
|
|
2876
2876
|
displayOverlay: l = !0
|
|
2877
2877
|
}) => {
|
|
2878
|
-
const [
|
|
2879
|
-
Y(() => (
|
|
2880
|
-
|
|
2878
|
+
const [m, y] = F(e || !1), g = se(null), p = se(null);
|
|
2879
|
+
Y(() => (p.current || (p.current = document.createElement("div"), p.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(p.current)), () => {
|
|
2880
|
+
p.current && p.current.parentNode && (document.body.removeChild(p.current), p.current = null);
|
|
2881
2881
|
}), [i]), Y(() => {
|
|
2882
2882
|
y(e || !1);
|
|
2883
2883
|
}, [e]);
|
|
@@ -2885,21 +2885,21 @@ const bo = ({
|
|
|
2885
2885
|
y(!1), n && n(!1);
|
|
2886
2886
|
}, [n]), f = $(
|
|
2887
2887
|
(x) => {
|
|
2888
|
-
u &&
|
|
2888
|
+
u && g.current && !g.current.contains(x.target) && d();
|
|
2889
2889
|
},
|
|
2890
2890
|
[d, u]
|
|
2891
2891
|
);
|
|
2892
|
-
return Y(() => (
|
|
2892
|
+
return Y(() => (m ? document.addEventListener("mousedown", f) : document.removeEventListener("mousedown", f), () => {
|
|
2893
2893
|
document.removeEventListener("mousedown", f);
|
|
2894
|
-
}), [
|
|
2894
|
+
}), [m, f]), p.current ? Lt.createPortal(
|
|
2895
2895
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2896
|
-
|
|
2896
|
+
m && l && /* @__PURE__ */ o.jsx("div", { className: "overlay" }),
|
|
2897
2897
|
/* @__PURE__ */ o.jsxs(
|
|
2898
2898
|
"div",
|
|
2899
2899
|
{
|
|
2900
|
-
ref:
|
|
2900
|
+
ref: g,
|
|
2901
2901
|
style: c ? { width: c } : {},
|
|
2902
|
-
className: `sidebar ${
|
|
2902
|
+
className: `sidebar ${m ? "open" : "closed"} ${a ?? ""}`,
|
|
2903
2903
|
children: [
|
|
2904
2904
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
2905
2905
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
@@ -2910,17 +2910,17 @@ const bo = ({
|
|
|
2910
2910
|
}
|
|
2911
2911
|
)
|
|
2912
2912
|
] }),
|
|
2913
|
-
|
|
2913
|
+
p.current
|
|
2914
2914
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
2915
2915
|
}, No = (e) => /* @__PURE__ */ o.jsx(to, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), kr = (e) => {
|
|
2916
2916
|
let t;
|
|
2917
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
2918
|
-
const
|
|
2919
|
-
if (!Object.is(
|
|
2920
|
-
const
|
|
2921
|
-
t = y ?? (typeof
|
|
2917
|
+
const r = /* @__PURE__ */ new Set(), n = (m, y) => {
|
|
2918
|
+
const g = typeof m == "function" ? m(t) : m;
|
|
2919
|
+
if (!Object.is(g, t)) {
|
|
2920
|
+
const p = t;
|
|
2921
|
+
t = y ?? (typeof g != "object" || g === null) ? g : Object.assign({}, t, g), r.forEach((d) => d(t, p));
|
|
2922
2922
|
}
|
|
2923
|
-
}, a = () => t, u = { setState: n, getState: a, getInitialState: () => l, subscribe: (
|
|
2923
|
+
}, a = () => t, u = { setState: n, getState: a, getInitialState: () => l, subscribe: (m) => (r.add(m), () => r.delete(m)) }, l = t = e(n, a, u);
|
|
2924
2924
|
return u;
|
|
2925
2925
|
}, ro = (e) => e ? kr(e) : kr, no = (e) => e;
|
|
2926
2926
|
function so(e, t = no) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kelt-ui-kit-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@types/node": "^22.5.5",
|
|
10
10
|
"@vitejs/plugin-react": "^4.3.1",
|
|
11
11
|
"bootstrap-icons": "^1.11.3",
|
|
12
|
-
"react-
|
|
12
|
+
"react-date-picker": "^11.0.0",
|
|
13
13
|
"styled-components": "^6.1.13",
|
|
14
14
|
"vite": "^5.4.6",
|
|
15
15
|
"vite-plugin-dts": "^4.2.2",
|
|
@@ -1,25 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
import Calendar from "react-calendar";
|
|
3
|
+
import { Value } from "react-calendar/dist/cjs/shared/types";
|
|
4
|
+
import { Icon } from "../icon/Icon";
|
|
5
|
+
import { IconSizeEnum } from "../icon/iconSize.enum";
|
|
6
|
+
import "./datePicker.css"; // Assuming you have some styles for the DatePicker
|
|
7
|
+
export type DatePickerProps = {
|
|
8
|
+
value?: Value;
|
|
9
|
+
onChange?: (date: Value) => void;
|
|
10
|
+
};
|
|
11
|
+
export const Datepicker = ({ value, onChange }: DatePickerProps) => {
|
|
12
|
+
const [date, setDate] = useState<Value>(value ?? new Date());
|
|
13
|
+
const [showCalendar, setShowCalendar] = useState(false);
|
|
14
|
+
|
|
15
|
+
const calendarRef = useRef<HTMLDivElement>(null);
|
|
16
|
+
|
|
17
|
+
const handleChange = useCallback(
|
|
18
|
+
(val: Value) => {
|
|
19
|
+
setDate(val);
|
|
20
|
+
if (onChange) {
|
|
21
|
+
onChange(val);
|
|
22
|
+
}
|
|
23
|
+
setShowCalendar(false);
|
|
24
|
+
},
|
|
25
|
+
[onChange]
|
|
26
|
+
);
|
|
4
27
|
|
|
5
|
-
|
|
6
|
-
|
|
28
|
+
const toggleCalendar = () => setShowCalendar(!showCalendar);
|
|
29
|
+
|
|
30
|
+
const handleClickOutside = useCallback((event: MouseEvent) => {
|
|
31
|
+
if (
|
|
32
|
+
calendarRef.current &&
|
|
33
|
+
!calendarRef.current.contains(event.target as Node)
|
|
34
|
+
) {
|
|
35
|
+
setShowCalendar(false);
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (showCalendar) {
|
|
41
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
42
|
+
} else {
|
|
43
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Nettoyage
|
|
47
|
+
return () => {
|
|
48
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
49
|
+
};
|
|
50
|
+
}, [showCalendar, handleClickOutside]);
|
|
7
51
|
|
|
8
52
|
return (
|
|
9
53
|
<div>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
54
|
+
<div className="calendar" ref={calendarRef}>
|
|
55
|
+
<button className="calendar-button" onClick={toggleCalendar}>
|
|
56
|
+
<Icon
|
|
57
|
+
classIcon=" bi-calendar4-event"
|
|
58
|
+
size={IconSizeEnum.EXTRA_LARGE}
|
|
59
|
+
/>
|
|
60
|
+
</button>
|
|
61
|
+
{showCalendar && (
|
|
62
|
+
<div className="calendar-popup">
|
|
63
|
+
<Calendar onChange={handleChange} value={date} />
|
|
64
|
+
</div>
|
|
65
|
+
)}
|
|
66
|
+
</div>
|
|
23
67
|
</div>
|
|
24
68
|
);
|
|
25
69
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.calendar {
|
|
2
|
+
position: relative;
|
|
3
|
+
.calendar-button {
|
|
4
|
+
width: 40px;
|
|
5
|
+
max-width: 40px;
|
|
6
|
+
min-width: 40px;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
i {
|
|
9
|
+
color: #333;
|
|
10
|
+
font-size: 1.6rem;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.calendar-popup {
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 5;
|
|
16
|
+
.react-calendar {
|
|
17
|
+
border-color: #dedede;
|
|
18
|
+
border-style: solid;
|
|
19
|
+
border-width: 1px;
|
|
20
|
+
max-width: 300px;
|
|
21
|
+
font-size: 0.8rem;
|
|
22
|
+
button {
|
|
23
|
+
background-color: #fff;
|
|
24
|
+
color: #333;
|
|
25
|
+
min-width: auto;
|
|
26
|
+
width: auto;
|
|
27
|
+
font-size: 0.8rem;
|
|
28
|
+
padding: 0.5rem;
|
|
29
|
+
}
|
|
30
|
+
.react-calendar__month-view__weekdays__weekday {
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
.react-calendar__navigation {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.react-calendar__tile--active {
|
|
38
|
+
background-color: #007bff;
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
.react-calendar__tile--now {
|
|
42
|
+
background-color: #f0f0f0;
|
|
43
|
+
color: #000;
|
|
44
|
+
}
|
|
45
|
+
.react-calendar__tile--active:hover {
|
|
46
|
+
background-color: #0056b3;
|
|
47
|
+
color: #fff;
|
|
48
|
+
}
|
|
49
|
+
.react-calendar__tile--now:hover {
|
|
50
|
+
background-color: #e0e0e0;
|
|
51
|
+
color: #000;
|
|
52
|
+
}
|
|
53
|
+
.react-calendar__tile--disabled {
|
|
54
|
+
background-color: #f8f9fa;
|
|
55
|
+
color: #6c757d;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|