kelt-ui-kit-react 1.6.5 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,4 @@
1
1
  export declare function FormatDate(date: Date, format: string): string;
2
- export declare function localDateStringToUTC(dateStr: string): string;
2
+ export declare function LocalDateStringToUTC(dateStr: string): string;
3
+ export declare function localDateStartToUTC(dateStr: string): Date;
4
+ export declare function localDateEndToUTC(dateStr: string): Date;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { ImageExist } from './_core/hooks/imageExist';
5
5
  export { isValidEAN13 } from './_core/hooks/isEAN13';
6
6
  export { objectToQueryParams } from './_core/hooks/objectToQueryParams';
7
7
  export { useCurrency } from './_core/hooks/useCurrency';
8
- export { FormatDate } from './_core/hooks/useDateutils';
8
+ export { FormatDate, localDateEndToUTC, localDateStartToUTC, LocalDateStringToUTC, } from './_core/hooks/useDateutils';
9
9
  export { useIsMobile } from './_core/hooks/useIsMobile';
10
10
  export { useToken } from './_core/hooks/useToken';
11
11
  export { useValidate } from './_core/hooks/useValidate';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Le from "react";
2
- import Te, { createContext as Ta, useRef as se, useState as F, useEffect as q, useContext as On, useCallback as A, useDebugValue as Gn, createElement as Yo, forwardRef as Ue, useId as Bo, useImperativeHandle as Dr, useMemo as Me, Children as Uo, cloneElement as zo } from "react";
2
+ import Re, { createContext as Ra, useRef as se, useState as F, useEffect as q, useContext as On, useCallback as A, useDebugValue as Gn, createElement as Yo, forwardRef as Ue, useId as Bo, useImperativeHandle as Dr, useMemo as Me, Children as Uo, cloneElement as zo } from "react";
3
3
  import Nn, { createPortal as Aa } from "react-dom";
4
4
  var ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function Go(e) {
@@ -19,7 +19,7 @@ var Hn;
19
19
  function Ho() {
20
20
  if (Hn) return It;
21
21
  Hn = 1;
22
- var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ var e = Re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function s(l, c, d) {
24
24
  var f, v = {}, g = null, h = null;
25
25
  d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (h = c.ref);
@@ -42,7 +42,7 @@ var $t = {};
42
42
  var qn;
43
43
  function qo() {
44
44
  return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
45
- var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
45
+ var e = Re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
46
46
  function w(u) {
47
47
  if (u === null || typeof u != "object")
48
48
  return null;
@@ -52,14 +52,14 @@ function qo() {
52
52
  var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
53
  function b(u) {
54
54
  {
55
- for (var x = arguments.length, O = new Array(x > 1 ? x - 1 : 0), T = 1; T < x; T++)
56
- O[T - 1] = arguments[T];
55
+ for (var x = arguments.length, O = new Array(x > 1 ? x - 1 : 0), R = 1; R < x; R++)
56
+ O[R - 1] = arguments[R];
57
57
  D("error", u, O);
58
58
  }
59
59
  }
60
60
  function D(u, x, O) {
61
61
  {
62
- var T = j.ReactDebugCurrentFrame, B = T.getStackAddendum();
62
+ var R = j.ReactDebugCurrentFrame, B = R.getStackAddendum();
63
63
  B !== "" && (x += "%s", O = O.concat([B]));
64
64
  var N = O.map(function(k) {
65
65
  return String(k);
@@ -67,19 +67,19 @@ function qo() {
67
67
  N.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, N);
68
68
  }
69
69
  }
70
- var S = !1, R = !1, C = !1, P = !1, W = !1, y;
70
+ var S = !1, T = !1, C = !1, P = !1, W = !1, y;
71
71
  y = Symbol.for("react.module.reference");
72
72
  function E(u) {
73
- return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || P || u === h || S || R || C || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
73
+ return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || P || u === h || S || T || C || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
77
77
  u.$$typeof === y || u.getModuleId !== void 0));
78
78
  }
79
79
  function I(u, x, O) {
80
- var T = u.displayName;
81
- if (T)
82
- return T;
80
+ var R = u.displayName;
81
+ if (R)
82
+ return R;
83
83
  var B = x.displayName || x.name || "";
84
84
  return B !== "" ? O + "(" + B + ")" : O;
85
85
  }
@@ -118,8 +118,8 @@ function qo() {
118
118
  case c:
119
119
  return I(u, u.render, "ForwardRef");
120
120
  case v:
121
- var T = u.displayName || null;
122
- return T !== null ? T : L(u.type) || "Memo";
121
+ var R = u.displayName || null;
122
+ return R !== null ? R : L(u.type) || "Memo";
123
123
  case g: {
124
124
  var B = u, N = B._payload, k = B._init;
125
125
  try {
@@ -200,8 +200,8 @@ function qo() {
200
200
  try {
201
201
  throw Error();
202
202
  } catch (B) {
203
- var T = B.stack.trim().match(/\n( *(at )?)/);
204
- pe = T && T[1] || "";
203
+ var R = B.stack.trim().match(/\n( *(at )?)/);
204
+ pe = R && R[1] || "";
205
205
  }
206
206
  return `
207
207
  ` + pe + u;
@@ -220,7 +220,7 @@ function qo() {
220
220
  if (O !== void 0)
221
221
  return O;
222
222
  }
223
- var T;
223
+ var R;
224
224
  ne = !0;
225
225
  var B = Error.prepareStackTrace;
226
226
  Error.prepareStackTrace = void 0;
@@ -239,14 +239,14 @@ function qo() {
239
239
  try {
240
240
  Reflect.construct(k, []);
241
241
  } catch (ye) {
242
- T = ye;
242
+ R = ye;
243
243
  }
244
244
  Reflect.construct(u, [], k);
245
245
  } else {
246
246
  try {
247
247
  k.call();
248
248
  } catch (ye) {
249
- T = ye;
249
+ R = ye;
250
250
  }
251
251
  u.call(k.prototype);
252
252
  }
@@ -254,14 +254,14 @@ function qo() {
254
254
  try {
255
255
  throw Error();
256
256
  } catch (ye) {
257
- T = ye;
257
+ R = ye;
258
258
  }
259
259
  u();
260
260
  }
261
261
  } catch (ye) {
262
- if (ye && T && typeof ye.stack == "string") {
262
+ if (ye && R && typeof ye.stack == "string") {
263
263
  for (var _ = ye.stack.split(`
264
- `), z = T.stack.split(`
264
+ `), z = R.stack.split(`
265
265
  `), V = _.length - 1, J = z.length - 1; V >= 1 && J >= 0 && _[V] !== z[J]; )
266
266
  J--;
267
267
  for (; V >= 1 && J >= 0; V--, J--)
@@ -310,7 +310,7 @@ function qo() {
310
310
  case v:
311
311
  return Ce(u.type, x, O);
312
312
  case g: {
313
- var T = u, B = T._payload, N = T._init;
313
+ var R = u, B = R._payload, N = R._init;
314
314
  try {
315
315
  return Ce(N(B), x, O);
316
316
  } catch {
@@ -327,7 +327,7 @@ function qo() {
327
327
  } else
328
328
  Nt.setExtraStackFrame(null);
329
329
  }
330
- function Lr(u, x, O, T, B) {
330
+ function Lr(u, x, O, R, B) {
331
331
  {
332
332
  var N = Function.call.bind(oe);
333
333
  for (var k in u)
@@ -335,14 +335,14 @@ function qo() {
335
335
  var _ = void 0;
336
336
  try {
337
337
  if (typeof u[k] != "function") {
338
- var z = Error((T || "React class") + ": " + O + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ var z = Error((R || "React class") + ": " + O + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
339
  throw z.name = "Invariant Violation", z;
340
340
  }
341
- _ = u[k](x, k, T, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ _ = u[k](x, k, R, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
342
  } catch (V) {
343
343
  _ = V;
344
344
  }
345
- _ && !(_ instanceof Error) && (qe(B), b("%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).", T || "React class", O, k, typeof _), qe(null)), _ instanceof Error && !(_.message in He) && (He[_.message] = !0, qe(B), b("Failed %s type: %s", O, _.message), qe(null));
345
+ _ && !(_ instanceof Error) && (qe(B), b("%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).", R || "React class", O, k, typeof _), qe(null)), _ instanceof Error && !(_.message in He) && (He[_.message] = !0, qe(B), b("Failed %s type: %s", O, _.message), qe(null));
346
346
  }
347
347
  }
348
348
  }
@@ -417,7 +417,7 @@ function qo() {
417
417
  });
418
418
  }
419
419
  }
420
- var Zt = function(u, x, O, T, B, N, k) {
420
+ var Zt = function(u, x, O, R, B, N, k) {
421
421
  var _ = {
422
422
  // This tag allows us to uniquely identify this as a React Element
423
423
  $$typeof: t,
@@ -438,7 +438,7 @@ function qo() {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
- value: T
441
+ value: R
442
442
  }), Object.defineProperty(_, "_source", {
443
443
  configurable: !1,
444
444
  enumerable: !1,
@@ -446,7 +446,7 @@ function qo() {
446
446
  value: B
447
447
  }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
448
448
  };
449
- function er(u, x, O, T, B) {
449
+ function er(u, x, O, R, B) {
450
450
  {
451
451
  var N, k = {}, _ = null, z = null;
452
452
  O !== void 0 && (Xt(O), _ = "" + O), Yr(x) && (Xt(x.key), _ = "" + x.key), Jt(x) && (z = x.ref, st(x, B));
@@ -461,7 +461,7 @@ function qo() {
461
461
  var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
462
462
  _ && Qt(k, J), z && Br(k, J);
463
463
  }
464
- return Zt(u, _, z, B, T, Kt.current, k);
464
+ return Zt(u, _, z, B, R, Kt.current, k);
465
465
  }
466
466
  }
467
467
  var Xe = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
@@ -514,8 +514,8 @@ Check the top-level render call using <` + O + ">.");
514
514
  if (Ke[O])
515
515
  return;
516
516
  Ke[O] = !0;
517
- var T = "";
518
- u && u._owner && u._owner !== Xe.current && (T = " It was passed a child from " + L(u._owner.type) + "."), Ie(u), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, T), Ie(null);
517
+ var R = "";
518
+ u && u._owner && u._owner !== Xe.current && (R = " It was passed a child from " + L(u._owner.type) + "."), Ie(u), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, R), Ie(null);
519
519
  }
520
520
  }
521
521
  function rr(u, x) {
@@ -524,8 +524,8 @@ Check the top-level render call using <` + O + ">.");
524
524
  return;
525
525
  if (Et(u))
526
526
  for (var O = 0; O < u.length; O++) {
527
- var T = u[O];
528
- ct(T) && we(T, x);
527
+ var R = u[O];
528
+ ct(R) && we(R, x);
529
529
  }
530
530
  else if (ct(u))
531
531
  u._store && (u._store.validated = !0);
@@ -552,8 +552,8 @@ Check the top-level render call using <` + O + ">.");
552
552
  else
553
553
  return;
554
554
  if (O) {
555
- var T = L(x);
556
- Lr(O, u.props, "prop", T, u);
555
+ var R = L(x);
556
+ Lr(O, u.props, "prop", R, u);
557
557
  } else if (x.PropTypes !== void 0 && !_t) {
558
558
  _t = !0;
559
559
  var B = L(x);
@@ -565,9 +565,9 @@ Check the top-level render call using <` + O + ">.");
565
565
  function nr(u) {
566
566
  {
567
567
  for (var x = Object.keys(u.props), O = 0; O < x.length; O++) {
568
- var T = x[O];
569
- if (T !== "children" && T !== "key") {
570
- Ie(u), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), Ie(null);
568
+ var R = x[O];
569
+ if (R !== "children" && R !== "key") {
570
+ Ie(u), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), Ie(null);
571
571
  break;
572
572
  }
573
573
  }
@@ -575,7 +575,7 @@ Check the top-level render call using <` + O + ">.");
575
575
  }
576
576
  }
577
577
  var Pt = {};
578
- function lt(u, x, O, T, B, N) {
578
+ function lt(u, x, O, R, B, N) {
579
579
  {
580
580
  var k = E(u);
581
581
  if (!k) {
@@ -592,7 +592,7 @@ Check the top-level render call using <` + O + ">.");
592
592
  if (k) {
593
593
  var ge = x.children;
594
594
  if (ge !== void 0)
595
- if (T)
595
+ if (R)
596
596
  if (Et(ge)) {
597
597
  for (var We = 0; We < ge.length; We++)
598
598
  rr(ge[We], u);
@@ -622,11 +622,11 @@ React keys must be passed directly to JSX without using spread:
622
622
  function ut(u, x, O) {
623
623
  return lt(u, x, O, !0);
624
624
  }
625
- function Rt(u, x, O) {
625
+ function Tt(u, x, O) {
626
626
  return lt(u, x, O, !1);
627
627
  }
628
- var Tt = Rt, At = ut;
629
- $t.Fragment = n, $t.jsx = Tt, $t.jsxs = At;
628
+ var Rt = Tt, At = ut;
629
+ $t.Fragment = n, $t.jsx = Rt, $t.jsxs = At;
630
630
  }()), $t;
631
631
  }
632
632
  process.env.NODE_ENV === "production" ? en.exports = Ho() : en.exports = qo();
@@ -697,7 +697,7 @@ function ni() {
697
697
  }
698
698
  new Promise(() => {
699
699
  });
700
- const $a = Ta(1);
700
+ const $a = Ra(1);
701
701
  function bl({ children: e }) {
702
702
  const t = ni(), r = se(1), [n, a] = F(1);
703
703
  return q(() => {
@@ -768,7 +768,19 @@ function Nl(e, t) {
768
768
  const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], v = n[e.getMonth()];
769
769
  return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", l).replace("mm", c).replace("ss", d);
770
770
  }
771
- const El = (e = 768) => {
771
+ function El(e) {
772
+ const [t, r, n] = e.split("-").map(Number);
773
+ return new Date(t, r - 1, n, 0, 0, 0).toISOString();
774
+ }
775
+ function kl(e) {
776
+ const [t, r, n] = e.split("-").map(Number);
777
+ return new Date(t, r - 1, n, 0, 0, 0, 0);
778
+ }
779
+ function _l(e) {
780
+ const [t, r, n] = e.split("-").map(Number);
781
+ return new Date(t, r - 1, n, 23, 59, 59, 999);
782
+ }
783
+ const Cl = (e = 768) => {
772
784
  const [t, r] = F(
773
785
  typeof window < "u" ? window.innerWidth <= e : !1
774
786
  );
@@ -827,13 +839,13 @@ function ii(e, t) {
827
839
  throw new Mt(`Invalid token specified: invalid json for part #${r + 1} (${i.message})`);
828
840
  }
829
841
  }
830
- const kl = () => ({ getTokenValidate: A(() => {
842
+ const Pl = () => ({ getTokenValidate: A(() => {
831
843
  const t = localStorage.getItem("token");
832
844
  if (!t)
833
845
  return null;
834
846
  const r = ii(t), n = Date.now() / 1e3;
835
847
  return !r.exp || r.exp < n ? null : t;
836
- }, []) }), _l = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Cl = () => {
848
+ }, []) }), Tl = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Rl = () => {
837
849
  const e = se(null);
838
850
  return q(() => {
839
851
  if (!e.current) return;
@@ -883,7 +895,7 @@ const kl = () => ({ getTokenValidate: A(() => {
883
895
  );
884
896
  };
885
897
  var je = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e))(je || {});
886
- const Pl = ({
898
+ const Al = ({
887
899
  className: e,
888
900
  onClick: t,
889
901
  title: r,
@@ -950,7 +962,7 @@ const Pl = ({
950
962
  s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "ml-3 mt-1 submenu", children: a(s.subMenu) })
951
963
  ] }, s.id)) });
952
964
  return /* @__PURE__ */ o.jsx("div", { className: `menu ${e.className || ""}`, children: a(e.items) });
953
- }, Fa = Ta(void 0), Rl = ({
965
+ }, Fa = Ra(void 0), Il = ({
954
966
  children: e
955
967
  }) => {
956
968
  const [t, r] = F(null);
@@ -1008,7 +1020,7 @@ function ie(e, t) {
1008
1020
  function mt(e, t, r) {
1009
1021
  return e.slice(t, r);
1010
1022
  }
1011
- function Re(e) {
1023
+ function Te(e) {
1012
1024
  return e.length;
1013
1025
  }
1014
1026
  function Ua(e) {
@@ -1088,7 +1100,7 @@ function rn(e) {
1088
1100
  return 0;
1089
1101
  }
1090
1102
  function yi(e) {
1091
- return Nr = pt = 1, za = Re(wt = e), Oe = 0, [];
1103
+ return Nr = pt = 1, za = Te(wt = e), Oe = 0, [];
1092
1104
  }
1093
1105
  function bi(e) {
1094
1106
  return wt = "", e;
@@ -1139,7 +1151,7 @@ function Di(e) {
1139
1151
  return bi(hr("", null, null, null, [""], e = yi(e), 0, [0], e));
1140
1152
  }
1141
1153
  function hr(e, t, r, n, a, i, s, l, c) {
1142
- for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1, w = 1, j = 1, b = 0, D = "", S = a, R = i, C = n, P = D; w; )
1154
+ for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1, w = 1, j = 1, b = 0, D = "", S = a, T = i, C = n, P = D; w; )
1143
1155
  switch (p = b, b = Ne()) {
1144
1156
  case 40:
1145
1157
  if (p != 108 && ie(P, v - 1) == 58) {
@@ -1171,7 +1183,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
1171
1183
  }
1172
1184
  break;
1173
1185
  case 123 * m:
1174
- l[d++] = Re(P) * j;
1186
+ l[d++] = Te(P) * j;
1175
1187
  case 125 * m:
1176
1188
  case 59:
1177
1189
  case 0:
@@ -1180,30 +1192,30 @@ function hr(e, t, r, n, a, i, s, l, c) {
1180
1192
  case 125:
1181
1193
  w = 0;
1182
1194
  case 59 + f:
1183
- j == -1 && (P = $(P, /\f/g, "")), h > 0 && Re(P) - v && Lt(h > 32 ? ea(P + ";", n, r, v - 1, c) : ea($(P, " ", "") + ";", n, r, v - 2, c), c);
1195
+ j == -1 && (P = $(P, /\f/g, "")), h > 0 && Te(P) - v && Lt(h > 32 ? ea(P + ";", n, r, v - 1, c) : ea($(P, " ", "") + ";", n, r, v - 2, c), c);
1184
1196
  break;
1185
1197
  case 59:
1186
1198
  P += ";";
1187
1199
  default:
1188
- if (Lt(C = Zn(P, t, r, d, f, a, l, D, S = [], R = [], v, i), i), b === 123)
1200
+ if (Lt(C = Zn(P, t, r, d, f, a, l, D, S = [], T = [], v, i), i), b === 123)
1189
1201
  if (f === 0)
1190
- hr(P, t, C, C, S, i, v, l, R);
1202
+ hr(P, t, C, C, S, i, v, l, T);
1191
1203
  else
1192
1204
  switch (g === 99 && ie(P, 3) === 110 ? 100 : g) {
1193
1205
  case 100:
1194
1206
  case 108:
1195
1207
  case 109:
1196
1208
  case 115:
1197
- hr(e, C, C, n && Lt(Zn(e, C, C, 0, 0, a, l, D, a, S = [], v, R), R), a, R, v, l, n ? S : R);
1209
+ hr(e, C, C, n && Lt(Zn(e, C, C, 0, 0, a, l, D, a, S = [], v, T), T), a, T, v, l, n ? S : T);
1198
1210
  break;
1199
1211
  default:
1200
- hr(P, C, C, C, [""], R, 0, l, R);
1212
+ hr(P, C, C, C, [""], T, 0, l, T);
1201
1213
  }
1202
1214
  }
1203
1215
  d = f = h = 0, m = j = 1, D = P = "", v = s;
1204
1216
  break;
1205
1217
  case 58:
1206
- v = 1 + Re(P), h = p;
1218
+ v = 1 + Te(P), h = p;
1207
1219
  default:
1208
1220
  if (m < 1) {
1209
1221
  if (b == 123)
@@ -1216,13 +1228,13 @@ function hr(e, t, r, n, a, i, s, l, c) {
1216
1228
  j = f > 0 ? 1 : (P += "\f", -1);
1217
1229
  break;
1218
1230
  case 44:
1219
- l[d++] = (Re(P) - 1) * j, j = 1;
1231
+ l[d++] = (Te(P) - 1) * j, j = 1;
1220
1232
  break;
1221
1233
  case 64:
1222
- et() === 45 && (P += zr(Ne())), g = et(), f = v = Re(D = P += Si(fr())), b++;
1234
+ et() === 45 && (P += zr(Ne())), g = et(), f = v = Te(D = P += Si(fr())), b++;
1223
1235
  break;
1224
1236
  case 45:
1225
- p === 45 && Re(P) == 2 && (m = 0);
1237
+ p === 45 && Te(P) == 2 && (m = 0);
1226
1238
  }
1227
1239
  }
1228
1240
  return i;
@@ -1346,7 +1358,7 @@ function Ga(e, t, r) {
1346
1358
  case 5789:
1347
1359
  case 5021:
1348
1360
  case 4765:
1349
- if (Re(e) - 1 - t > 6)
1361
+ if (Te(e) - 1 - t > 6)
1350
1362
  switch (ie(e, t + 1)) {
1351
1363
  case 109:
1352
1364
  if (ie(e, t + 4) !== 45)
@@ -1400,9 +1412,9 @@ function Ni(e, t, r, n) {
1400
1412
  case Va:
1401
1413
  return e.return = e.value + "{" + yr(e.children, n) + "}";
1402
1414
  case Or:
1403
- if (!Re(e.value = e.props.join(","))) return "";
1415
+ if (!Te(e.value = e.props.join(","))) return "";
1404
1416
  }
1405
- return Re(r = yr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1417
+ return Te(r = yr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1406
1418
  }
1407
1419
  function Ei(e) {
1408
1420
  var t = Ua(e);
@@ -1490,7 +1502,7 @@ var Ci = {
1490
1502
  strokeOpacity: 1,
1491
1503
  strokeWidth: 1
1492
1504
  }, nt = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Ha = "active", qa = "data-styled-version", _r = "6.1.18", Cn = `/*!sc*/
1493
- `, br = typeof window < "u" && typeof document < "u", Pi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), ta = /invalid hook call/i, or = /* @__PURE__ */ new Set(), Ri = function(e, t) {
1505
+ `, br = typeof window < "u" && typeof document < "u", Pi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), ta = /invalid hook call/i, or = /* @__PURE__ */ new Set(), Ti = function(e, t) {
1494
1506
  if (process.env.NODE_ENV !== "production") {
1495
1507
  var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
1496
1508
  `) + `You may see this warning because you've called styled inside another component.
@@ -1510,7 +1522,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1510
1522
  }
1511
1523
  }
1512
1524
  }, Cr = Object.freeze([]), gt = Object.freeze({});
1513
- function Ti(e, t, r) {
1525
+ function Ri(e, t, r) {
1514
1526
  return r === void 0 && (r = gt), e.theme !== r.theme && e.theme || t || r.theme;
1515
1527
  }
1516
1528
  var an = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ai = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ii = /(^-|-$)/g;
@@ -1590,7 +1602,7 @@ function sn(e, t, r) {
1590
1602
  else if (bt(t)) for (var n in t) e[n] = sn(e[n], t[n]);
1591
1603
  return e;
1592
1604
  }
1593
- function Rn(e, t) {
1605
+ function Tn(e, t) {
1594
1606
  Object.defineProperty(e, "toString", { value: t });
1595
1607
  }
1596
1608
  var Gi = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
@@ -1763,7 +1775,7 @@ var ro = function(e) {
1763
1775
  function e(t, r, n) {
1764
1776
  t === void 0 && (t = gt), r === void 0 && (r = {});
1765
1777
  var a = this;
1766
- this.options = be(be({}, os), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Rn(this, function() {
1778
+ this.options = be(be({}, os), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Tn(this, function() {
1767
1779
  return function(i) {
1768
1780
  for (var s = i.getTag(), l = s.length, c = "", d = function(v) {
1769
1781
  var g = function(j) {
@@ -1840,9 +1852,9 @@ function cs(e) {
1840
1852
  return h.name || jt(15), Qe(g, h.name);
1841
1853
  }, Xa).toString() : "", v;
1842
1854
  }
1843
- var ls = new no(), cn = cs(), oo = Te.createContext({ shouldForwardProp: void 0, styleSheet: ls, stylis: cn });
1855
+ var ls = new no(), cn = cs(), oo = Re.createContext({ shouldForwardProp: void 0, styleSheet: ls, stylis: cn });
1844
1856
  oo.Consumer;
1845
- Te.createContext(void 0);
1857
+ Re.createContext(void 0);
1846
1858
  function ua() {
1847
1859
  return On(oo);
1848
1860
  }
@@ -1853,7 +1865,7 @@ var da = function() {
1853
1865
  i === void 0 && (i = cn);
1854
1866
  var s = n.name + i.hash;
1855
1867
  a.hasNameForId(n.id, s) || a.insertRules(n.id, s, i(n.rules, s, "@keyframes"));
1856
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Rn(this, function() {
1868
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Tn(this, function() {
1857
1869
  throw jt(12, String(n.name));
1858
1870
  });
1859
1871
  }
@@ -1932,15 +1944,15 @@ var fs = Ka(_r), hs = function() {
1932
1944
  }
1933
1945
  return a;
1934
1946
  }, e;
1935
- }(), co = Te.createContext(void 0);
1947
+ }(), co = Re.createContext(void 0);
1936
1948
  co.Consumer;
1937
1949
  var qr = {}, ha = /* @__PURE__ */ new Set();
1938
1950
  function vs(e, t, r) {
1939
- var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? Cr : s, c = t.componentId, d = c === void 0 ? function(S, R) {
1951
+ var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? Cr : s, c = t.componentId, d = c === void 0 ? function(S, T) {
1940
1952
  var C = typeof S != "string" ? "sc" : ra(S);
1941
1953
  qr[C] = (qr[C] || 0) + 1;
1942
1954
  var P = "".concat(C, "-").concat(Mi(_r + C + qr[C]));
1943
- return R ? "".concat(R, "-").concat(P) : P;
1955
+ return T ? "".concat(T, "-").concat(P) : P;
1944
1956
  }(t.displayName, t.parentComponentId) : c, f = t.displayName, v = f === void 0 ? function(S) {
1945
1957
  return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
1946
1958
  }(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, p = t.shouldForwardProp;
@@ -1948,17 +1960,17 @@ function vs(e, t, r) {
1948
1960
  var m = a.shouldForwardProp;
1949
1961
  if (t.shouldForwardProp) {
1950
1962
  var w = t.shouldForwardProp;
1951
- p = function(S, R) {
1952
- return m(S, R) && w(S, R);
1963
+ p = function(S, T) {
1964
+ return m(S, T) && w(S, T);
1953
1965
  };
1954
1966
  } else p = m;
1955
1967
  }
1956
1968
  var j = new hs(r, g, n ? a.componentStyle : void 0);
1957
- function b(S, R) {
1969
+ function b(S, T) {
1958
1970
  return function(C, P, W) {
1959
- var y = C.attrs, E = C.componentStyle, I = C.defaultProps, M = C.foldedComponentIds, L = C.styledComponentId, X = C.target, ve = Te.useContext(co), re = ua(), xe = C.shouldForwardProp || re.shouldForwardProp;
1971
+ var y = C.attrs, E = C.componentStyle, I = C.defaultProps, M = C.foldedComponentIds, L = C.styledComponentId, X = C.target, ve = Re.useContext(co), re = ua(), xe = C.shouldForwardProp || re.shouldForwardProp;
1960
1972
  process.env.NODE_ENV !== "production" && Gn(L);
1961
- var Ae = Ti(P, ve, I) || gt, ee = function(ke, me, pe) {
1973
+ var Ae = Ri(P, ve, I) || gt, ee = function(ke, me, pe) {
1962
1974
  for (var le, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
1963
1975
  var _e = yt(le = ke[De]) ? le(ne) : le;
1964
1976
  for (var fe in _e) ne[fe] = fe === "className" ? Ze(ne[fe], _e[fe]) : fe === "style" ? be(be({}, ne[fe]), _e[fe]) : _e[fe];
@@ -1973,23 +1985,23 @@ function vs(e, t, r) {
1973
1985
  process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Se);
1974
1986
  var Ee = Ze(M, L);
1975
1987
  return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), ce[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, W && (ce.ref = W), Yo(K, ce);
1976
- }(D, S, R);
1988
+ }(D, S, T);
1977
1989
  }
1978
1990
  b.displayName = v;
1979
- var D = Te.forwardRef(b);
1991
+ var D = Re.forwardRef(b);
1980
1992
  return D.attrs = h, D.componentStyle = j, D.displayName = v, D.shouldForwardProp = p, D.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = n ? a.target : e, Object.defineProperty(D, "defaultProps", { get: function() {
1981
1993
  return this._foldedDefaultProps;
1982
1994
  }, set: function(S) {
1983
- this._foldedDefaultProps = n ? function(R) {
1995
+ this._foldedDefaultProps = n ? function(T) {
1984
1996
  for (var C = [], P = 1; P < arguments.length; P++) C[P - 1] = arguments[P];
1985
- for (var W = 0, y = C; W < y.length; W++) sn(R, y[W], !0);
1986
- return R;
1997
+ for (var W = 0, y = C; W < y.length; W++) sn(T, y[W], !0);
1998
+ return T;
1987
1999
  }({}, a.defaultProps, S) : S;
1988
- } }), process.env.NODE_ENV !== "production" && (Ri(v, g), D.warnTooManyClasses = /* @__PURE__ */ function(S, R) {
2000
+ } }), process.env.NODE_ENV !== "production" && (Ti(v, g), D.warnTooManyClasses = /* @__PURE__ */ function(S, T) {
1989
2001
  var C = {}, P = !1;
1990
2002
  return function(W) {
1991
2003
  if (!P && (C[W] = !0, Object.keys(C).length >= 200)) {
1992
- var y = R ? ' with the id of "'.concat(R, '"') : "";
2004
+ var y = T ? ' with the id of "'.concat(T, '"') : "";
1993
2005
  console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(y, `.
1994
2006
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1995
2007
  Example:
@@ -2002,7 +2014,7 @@ Example:
2002
2014
  <Component />`), P = !0, C = {};
2003
2015
  }
2004
2016
  };
2005
- }(v, g)), Rn(D, function() {
2017
+ }(v, g)), Tn(D, function() {
2006
2018
  return ".".concat(D.styledComponentId);
2007
2019
  }), i && to(D, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), D;
2008
2020
  }
@@ -2033,9 +2045,9 @@ function ln(e, t, r) {
2033
2045
  }
2034
2046
  var lo = function(e) {
2035
2047
  return ln(vs, e);
2036
- }, Tn = lo;
2048
+ }, Rn = lo;
2037
2049
  an.forEach(function(e) {
2038
- Tn[e] = lo(e);
2050
+ Rn[e] = lo(e);
2039
2051
  });
2040
2052
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2041
2053
  Perhaps you're looking to import 'styled-components/native'?
@@ -2044,7 +2056,7 @@ var cr = "__sc-".concat(nt, "__");
2044
2056
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[cr] || (window[cr] = 0), window[cr] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2045
2057
 
2046
2058
  See https://s-c.sh/2BAXzed for more info.`), window[cr] += 1);
2047
- const ms = Tn.div`
2059
+ const ms = Rn.div`
2048
2060
  position: absolute;
2049
2061
  z-index: 5;
2050
2062
  top: ${({ $top: e }) => e}px;
@@ -2077,36 +2089,36 @@ const ms = Tn.div`
2077
2089
  if (!t && r)
2078
2090
  h(r);
2079
2091
  else if (e) {
2080
- const S = e.getBoundingClientRect(), R = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: C, innerHeight: P } = window;
2081
- if (R) {
2092
+ const S = e.getBoundingClientRect(), T = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: C, innerHeight: P } = window;
2093
+ if (T) {
2082
2094
  let W, y;
2083
2095
  const E = {
2084
2096
  topRight: () => ({
2085
- top: S.top - R.height,
2086
- left: S.right - R.width
2097
+ top: S.top - T.height,
2098
+ left: S.right - T.width
2087
2099
  }),
2088
2100
  topLeft: () => ({
2089
- top: S.top - R.height,
2101
+ top: S.top - T.height,
2090
2102
  left: S.left
2091
2103
  }),
2092
2104
  bottomRight: () => ({
2093
2105
  top: S.bottom,
2094
- left: S.right - R.width
2106
+ left: S.right - T.width
2095
2107
  }),
2096
2108
  bottomLeft: () => ({
2097
2109
  top: S.bottom,
2098
2110
  left: S.left
2099
2111
  }),
2100
2112
  left: () => ({
2101
- top: S.top + S.height / 2 - R.height / 2,
2102
- left: S.left - R.width
2113
+ top: S.top + S.height / 2 - T.height / 2,
2114
+ left: S.left - T.width
2103
2115
  }),
2104
2116
  right: () => ({
2105
- top: S.top + S.height / 2 - R.height / 2,
2117
+ top: S.top + S.height / 2 - T.height / 2,
2106
2118
  left: S.right
2107
2119
  })
2108
2120
  };
2109
- t && E[t] ? { top: W, left: y } = E[t]() : (y = S.right, W = S.bottom, S.right + R.width > C && (y = S.left - R.width), S.bottom + R.height > P && (W = S.top - R.height)), h({ top: W, left: y < 0 ? 0 : y });
2121
+ t && E[t] ? { top: W, left: y } = E[t]() : (y = S.right, W = S.bottom, S.right + T.width > C && (y = S.left - T.width), S.bottom + T.height > P && (W = S.top - T.height)), h({ top: W, left: y < 0 ? 0 : y });
2110
2122
  }
2111
2123
  }
2112
2124
  };
@@ -2151,7 +2163,7 @@ const ms = Tn.div`
2151
2163
  document.body
2152
2164
  ) : null;
2153
2165
  }
2154
- ), Tl = ({
2166
+ ), $l = ({
2155
2167
  className: e,
2156
2168
  onClick: t,
2157
2169
  title: r,
@@ -2220,7 +2232,7 @@ const ms = Tn.div`
2220
2232
  }
2221
2233
  )
2222
2234
  ] });
2223
- }, Al = ({
2235
+ }, Ml = ({
2224
2236
  onFileSelected: e,
2225
2237
  accept: t = "*",
2226
2238
  buttonText: r = "Choisir un fichier",
@@ -2342,7 +2354,7 @@ const ms = Tn.div`
2342
2354
  }
2343
2355
  )
2344
2356
  ] });
2345
- }, Il = ({
2357
+ }, Ll = ({
2346
2358
  item: e,
2347
2359
  actions: t,
2348
2360
  className: r,
@@ -2410,7 +2422,7 @@ const ms = Tn.div`
2410
2422
  ]
2411
2423
  }
2412
2424
  );
2413
- }, $l = ({
2425
+ }, Fl = ({
2414
2426
  children: e,
2415
2427
  showControls: t = !0,
2416
2428
  itemsToScroll: r = 1,
@@ -2467,7 +2479,7 @@ const ms = Tn.div`
2467
2479
  transform: `translateX(-${a * 100 / l}%)`,
2468
2480
  transition: "transform 0.5s ease-in-out"
2469
2481
  },
2470
- children: Te.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
2482
+ children: Re.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
2471
2483
  "div",
2472
2484
  {
2473
2485
  className: "carousel-slide",
@@ -2494,7 +2506,7 @@ const ms = Tn.div`
2494
2506
  t && t(e);
2495
2507
  };
2496
2508
  return /* @__PURE__ */ o.jsx("div", { className: "cell", onClick: r, children: e.child });
2497
- }, Ml = ({
2509
+ }, Wl = ({
2498
2510
  cols: e,
2499
2511
  rows: t,
2500
2512
  damierCells: r = [],
@@ -2551,14 +2563,14 @@ const wr = Ue(
2551
2563
  onBlur: b,
2552
2564
  onClick: D,
2553
2565
  handleKeyDown: S
2554
- }, R) => {
2566
+ }, T) => {
2555
2567
  const [C, P] = F(!1);
2556
2568
  return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
2557
2569
  /* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
2558
2570
  /* @__PURE__ */ o.jsx(
2559
2571
  "input",
2560
2572
  {
2561
- ref: R,
2573
+ ref: T,
2562
2574
  id: e,
2563
2575
  name: t,
2564
2576
  inputMode: l ?? (r === "number" ? "numeric" : "text"),
@@ -2756,7 +2768,7 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
2756
2768
  `row-${e.id}-${t}`
2757
2769
  );
2758
2770
  };
2759
- function Ll(e) {
2771
+ function Vl(e) {
2760
2772
  const {
2761
2773
  id: t,
2762
2774
  name: r,
@@ -2776,18 +2788,18 @@ function Ll(e) {
2776
2788
  hideToggleAll: w = !1,
2777
2789
  limitSelect: j = void 0,
2778
2790
  getRowId: b
2779
- } = e, D = se(null), [S, R] = F(
2791
+ } = e, D = se(null), [S, T] = F(
2780
2792
  /* @__PURE__ */ new Set()
2781
2793
  ), C = A(() => {
2782
2794
  if (S.size === s.length)
2783
- R(/* @__PURE__ */ new Set()), m == null || m([]);
2795
+ T(/* @__PURE__ */ new Set()), m == null || m([]);
2784
2796
  else {
2785
2797
  let y = s.map(
2786
2798
  (I) => b ? b(I) : I.id ?? I
2787
2799
  );
2788
2800
  j && y.length > j && (y = y.slice(0, j));
2789
2801
  const E = new Set(y);
2790
- R(E), m == null || m(
2802
+ T(E), m == null || m(
2791
2803
  s.filter(
2792
2804
  (I) => E.has(b ? b(I) : I.id ?? I)
2793
2805
  )
@@ -2809,7 +2821,7 @@ function Ll(e) {
2809
2821
  return;
2810
2822
  M.add(I);
2811
2823
  }
2812
- R(M);
2824
+ T(M);
2813
2825
  const L = s.filter(
2814
2826
  (X) => M.has(b ? b(X) : X.id ?? X)
2815
2827
  );
@@ -3025,8 +3037,8 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
3025
3037
  }
3026
3038
  t.default = i, e.exports = i, e.exports.default = i;
3027
3039
  })(un, un.exports);
3028
- var Rs = un.exports;
3029
- const Ts = Cs, As = Rs, Xr = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), jr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
3040
+ var Ts = un.exports;
3041
+ const Rs = Cs, As = Ts, Xr = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), jr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
3030
3042
  typeof n == "number" && As(r);
3031
3043
  const a = function(...i) {
3032
3044
  const s = t ? t(i) : i[0], l = r.get(s);
@@ -3038,7 +3050,7 @@ const Ts = Cs, As = Rs, Xr = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */
3038
3050
  maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
3039
3051
  }), c;
3040
3052
  };
3041
- return Ts(a, e, {
3053
+ return Rs(a, e, {
3042
3054
  ignoreNonConfigurable: !0
3043
3055
  }), ho.set(a, r), a;
3044
3056
  };
@@ -3143,7 +3155,7 @@ function ze(e) {
3143
3155
  return e.getMonth();
3144
3156
  throw new Error("Failed to get month from date: ".concat(e, "."));
3145
3157
  }
3146
- function Rr(e) {
3158
+ function Tr(e) {
3147
3159
  if (e instanceof Date)
3148
3160
  return e.getDate();
3149
3161
  throw new Error("Failed to get year from date: ".concat(e, "."));
@@ -3157,7 +3169,7 @@ function Ge(e) {
3157
3169
  var t = Q(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
3158
3170
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
3159
3171
  }
3160
- var yo = Fe(Q, Ge, -10), $n = Fe(Q, Ge, 10), Tr = Bt($n), bo = Fe(Q, Tr, -10), xo = Ut(Ge, Tr);
3172
+ var yo = Fe(Q, Ge, -10), $n = Fe(Q, Ge, 10), Rr = Bt($n), bo = Fe(Q, Rr, -10), xo = Ut(Ge, Rr);
3161
3173
  function Dt(e) {
3162
3174
  var t = Q(e), r = /* @__PURE__ */ new Date();
3163
3175
  return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
@@ -3178,17 +3190,17 @@ var So = Ln(at, -1), Fn = Ln(at, 1), zt = Bt(Fn), Do = Ln(zt, -1), zs = Ut(at, z
3178
3190
  function Gs(e, t) {
3179
3191
  return function(n, a) {
3180
3192
  a === void 0 && (a = t);
3181
- var i = Q(n), s = ze(n), l = Rr(n) + a, c = /* @__PURE__ */ new Date();
3193
+ var i = Q(n), s = ze(n), l = Tr(n) + a, c = /* @__PURE__ */ new Date();
3182
3194
  return c.setFullYear(i, s, l), c.setHours(0, 0, 0, 0), e(c);
3183
3195
  };
3184
3196
  }
3185
3197
  function Gt(e) {
3186
- var t = Q(e), r = ze(e), n = Rr(e), a = /* @__PURE__ */ new Date();
3198
+ var t = Q(e), r = ze(e), n = Tr(e), a = /* @__PURE__ */ new Date();
3187
3199
  return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
3188
3200
  }
3189
3201
  var Hs = Gs(Gt, 1), Wn = Bt(Hs), qs = Ut(Gt, Wn);
3190
3202
  function Oo(e) {
3191
- return Rr(zt(e));
3203
+ return Tr(zt(e));
3192
3204
  }
3193
3205
  var de = {
3194
3206
  GREGORY: "gregory",
@@ -3375,7 +3387,7 @@ function ko(e, t) {
3375
3387
  case "century":
3376
3388
  return In(t);
3377
3389
  case "decade":
3378
- return Tr(t);
3390
+ return Rr(t);
3379
3391
  case "year":
3380
3392
  return Ar(t);
3381
3393
  case "month":
@@ -3464,7 +3476,7 @@ function Po(e, t) {
3464
3476
  }
3465
3477
  var Pe = "react-calendar__navigation";
3466
3478
  function Sc(e) {
3467
- var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, w = e.next2Label, j = w === void 0 ? "»" : w, b = e.nextAriaLabel, D = b === void 0 ? "" : b, S = e.nextLabel, R = S === void 0 ? "›" : S, C = e.prev2AriaLabel, P = C === void 0 ? "" : C, W = e.prev2Label, y = W === void 0 ? "«" : W, E = e.prevAriaLabel, I = E === void 0 ? "" : E, M = e.prevLabel, L = M === void 0 ? "‹" : M, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ae = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), ce = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
3479
+ var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, w = e.next2Label, j = w === void 0 ? "»" : w, b = e.nextAriaLabel, D = b === void 0 ? "" : b, S = e.nextLabel, T = S === void 0 ? "›" : S, C = e.prev2AriaLabel, P = C === void 0 ? "" : C, W = e.prev2Label, y = W === void 0 ? "«" : W, E = e.prevAriaLabel, I = E === void 0 ? "" : E, M = e.prevLabel, L = M === void 0 ? "‹" : M, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ae = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), ce = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
3468
3480
  if (K.getFullYear() < 0)
3469
3481
  return !0;
3470
3482
  var te = yc(re, t);
@@ -3513,7 +3525,7 @@ function Sc(e) {
3513
3525
  var te = "".concat(Pe, "__label");
3514
3526
  return o.jsxs("button", { "aria-label": v, "aria-live": g, className: te, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children: fe(t) }), ve ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(te, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--to"), children: fe(Z) })] }) : null] });
3515
3527
  }
3516
- return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": P, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, L !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: le, type: "button", children: L }), Ot(), R !== null && o.jsx("button", { "aria-label": D, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: R }), j !== null && ee ? o.jsx("button", { "aria-label": m, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
3528
+ return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": P, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, L !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: le, type: "button", children: L }), Ot(), T !== null && o.jsx("button", { "aria-label": D, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: T }), j !== null && ee ? o.jsx("button", { "aria-label": m, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
3517
3529
  }
3518
3530
  var ft = function() {
3519
3531
  return ft = Object.assign || function(e) {
@@ -3558,11 +3570,11 @@ function Yt(e, t) {
3558
3570
  function Nc(e, t) {
3559
3571
  return e[0] <= t[0] && e[1] >= t[1];
3560
3572
  }
3561
- function Ro(e, t) {
3573
+ function To(e, t) {
3562
3574
  return Yt(e[0], t) || Yt(e[1], t);
3563
3575
  }
3564
3576
  function wa(e, t, r) {
3565
- var n = Ro(t, e), a = [];
3577
+ var n = To(t, e), a = [];
3566
3578
  if (n) {
3567
3579
  a.push(r);
3568
3580
  var i = Yt(e[0], t), s = Yt(e[1], t);
@@ -3597,7 +3609,7 @@ function kc(e) {
3597
3609
  throw new Error("valueType is required when value is not an array of two dates");
3598
3610
  return ba(h, t);
3599
3611
  }();
3600
- Nc(c, l) ? i.push("".concat(a, "--active")) : Ro(c, l) && i.push("".concat(a, "--hasActive"));
3612
+ Nc(c, l) ? i.push("".concat(a, "--active")) : To(c, l) && i.push("".concat(a, "--hasActive"));
3601
3613
  var d = wa(c, l, "".concat(a, "--range"));
3602
3614
  i.push.apply(i, d);
3603
3615
  var f = Array.isArray(t) ? t : [t];
@@ -3657,7 +3669,7 @@ var hn = function() {
3657
3669
  }, ja = "react-calendar__century-view__decades__decade";
3658
3670
  function Cc(e) {
3659
3671
  var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = _c(e, ["classes", "currentCentury", "formatYear"]), l = s.date, c = s.locale, d = [];
3660
- return r && d.push.apply(d, r), d.push(ja), St(l).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Tr, minDateTransform: Ge, view: "century", children: Co(c, i, l) }));
3672
+ return r && d.push.apply(d, r), d.push(ja), St(l).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ge, view: "century", children: Co(c, i, l) }));
3661
3673
  }
3662
3674
  var vn = function() {
3663
3675
  return vn = Object.assign || function(e) {
@@ -3691,7 +3703,7 @@ var mn = function() {
3691
3703
  return e;
3692
3704
  }, mn.apply(this, arguments);
3693
3705
  };
3694
- function Rc(e) {
3706
+ function Tc(e) {
3695
3707
  function t() {
3696
3708
  return o.jsx(Pc, mn({}, e));
3697
3709
  }
@@ -3705,7 +3717,7 @@ var pn = function() {
3705
3717
  }
3706
3718
  return e;
3707
3719
  }, pn.apply(this, arguments);
3708
- }, Tc = function(e, t) {
3720
+ }, Rc = function(e, t) {
3709
3721
  var r = {};
3710
3722
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3711
3723
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3714,7 +3726,7 @@ var pn = function() {
3714
3726
  return r;
3715
3727
  }, Da = "react-calendar__decade-view__years__year";
3716
3728
  function Ac(e) {
3717
- var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Tc(e, ["classes", "currentDecade", "formatYear"]), l = s.date, c = s.locale, d = [];
3729
+ var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Rc(e, ["classes", "currentDecade", "formatYear"]), l = s.date, c = s.locale, d = [];
3718
3730
  return r && d.push.apply(d, r), d.push(Da), Ge(l).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(Mr, pn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: Dt, view: "decade", children: i(c, l) }));
3719
3731
  }
3720
3732
  var gn = function() {
@@ -3877,13 +3889,13 @@ function Uc(e) {
3877
3889
  return o.jsx(Bc, Sn({}, c, b, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
3878
3890
  }, offset: h, start: p, value: s, valueType: l });
3879
3891
  }
3880
- var To = "react-calendar__month-view__weekdays", Qr = "".concat(To, "__weekday");
3892
+ var Ro = "react-calendar__month-view__weekdays", Qr = "".concat(Ro, "__weekday");
3881
3893
  function zc(e) {
3882
3894
  for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? cc : r, a = e.formatWeekday, i = a === void 0 ? lc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = at(c), f = Q(d), v = ze(d), g = [], h = 1; h <= 7; h += 1) {
3883
3895
  var p = new Date(f, v, h - Vt(d, t)), m = i(s, p);
3884
3896
  g.push(o.jsx("div", { className: Pr(Qr, jc(p) && "".concat(Qr, "--current"), Po(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, p).replace(".", "") }) }, h));
3885
3897
  }
3886
- return o.jsx(Yn, { className: To, count: 7, onFocus: l, onMouseOver: l, children: g });
3898
+ return o.jsx(Yn, { className: Ro, count: 7, onFocus: l, onMouseOver: l, children: g });
3887
3899
  }
3888
3900
  var Sr = function() {
3889
3901
  return Sr = Object.assign || function(e) {
@@ -3921,7 +3933,7 @@ function Hc(e) {
3921
3933
  var d = Oo(t), f = Vt(t, r), v = d - (7 - f);
3922
3934
  return 1 + Math.ceil(v / 7);
3923
3935
  }(), l = function() {
3924
- for (var d = Q(t), f = ze(t), v = Rr(t), g = [], h = 0; h < s; h += 1)
3936
+ for (var d = Q(t), f = ze(t), v = Tr(t), g = [], h = 0; h < s; h += 1)
3925
3937
  g.push(fn(new Date(d, f, v + h * 7), r));
3926
3938
  return g;
3927
3939
  }(), c = l.map(function(d) {
@@ -4069,7 +4081,7 @@ function ur(e, t) {
4069
4081
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
4070
4082
  }
4071
4083
  var nl = Ue(function(t, r) {
4072
- var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, b = j === void 0 ? !0 : j, D = t.inputRef, S = t.locale, R = t.maxDate, C = R === void 0 ? Qc : R, P = t.maxDetail, W = P === void 0 ? "month" : P, y = t.minDate, E = y === void 0 ? Bn : y, I = t.minDetail, M = I === void 0 ? "century" : I, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ae = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, oe = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(l), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(c) ? c.map(function(N) {
4084
+ var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, b = j === void 0 ? !0 : j, D = t.inputRef, S = t.locale, T = t.maxDate, C = T === void 0 ? Qc : T, P = t.maxDetail, W = P === void 0 ? "month" : P, y = t.minDate, E = y === void 0 ? Bn : y, I = t.minDetail, M = I === void 0 ? "century" : I, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ae = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, oe = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(l), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(c) ? c.map(function(N) {
4073
4085
  return N !== null ? Ft(N) : null;
4074
4086
  }) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], Ie = F(d), _t = Ie[0], ct = Ie[1], ue = n || Yr || rl({
4075
4087
  activeStartDate: n,
@@ -4133,7 +4145,7 @@ var nl = Ue(function(t, r) {
4133
4145
  }
4134
4146
  }();
4135
4147
  _ && _(N, k);
4136
- }, [Z, Se, Ee, me, G]), Rt = A(function(N, k) {
4148
+ }, [Z, Se, Ee, me, G]), Tt = A(function(N, k) {
4137
4149
  if (Ct) {
4138
4150
  ut(N, k);
4139
4151
  var _ = we[we.indexOf(G) + 1];
@@ -4158,7 +4170,7 @@ var nl = Ue(function(t, r) {
4158
4170
  he,
4159
4171
  G,
4160
4172
  we
4161
- ]), Tt = A(function() {
4173
+ ]), Rt = A(function() {
4162
4174
  if (nr) {
4163
4175
  var N = we[we.indexOf(G) - 1];
4164
4176
  if (!N)
@@ -4256,16 +4268,16 @@ var nl = Ue(function(t, r) {
4256
4268
  Dr(r, function() {
4257
4269
  return {
4258
4270
  activeStartDate: ue,
4259
- drillDown: Rt,
4260
- drillUp: Tt,
4271
+ drillDown: Tt,
4272
+ drillUp: Rt,
4261
4273
  onChange: At,
4262
4274
  setActiveStartDate: lt,
4263
4275
  value: he,
4264
4276
  view: G
4265
4277
  };
4266
- }, [ue, Rt, Tt, At, lt, he, G]);
4278
+ }, [ue, Tt, Rt, At, lt, he, G]);
4267
4279
  function O(N) {
4268
- var k = N ? Eo(G, ue) : rt(G, ue), _ = Ct ? Rt : At, z = {
4280
+ var k = N ? Eo(G, ue) : rt(G, ue), _ = Ct ? Tt : At, z = {
4269
4281
  activeStartDate: k,
4270
4282
  hover: rr,
4271
4283
  locale: S,
@@ -4281,7 +4293,7 @@ var nl = Ue(function(t, r) {
4281
4293
  };
4282
4294
  switch (G) {
4283
4295
  case "century":
4284
- return o.jsx(Rc, ht({ formatYear: w, showNeighboringCentury: Fr }, z));
4296
+ return o.jsx(Tc, ht({ formatYear: w, showNeighboringCentury: Fr }, z));
4285
4297
  case "decade":
4286
4298
  return o.jsx($c, ht({ formatYear: w, showNeighboringDecade: Et }, z));
4287
4299
  case "year":
@@ -4292,13 +4304,13 @@ var nl = Ue(function(t, r) {
4292
4304
  throw new Error("Invalid view: ".concat(G, "."));
4293
4305
  }
4294
4306
  }
4295
- function T() {
4296
- return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Tt, formatMonthYear: h, formatYear: w, locale: S, maxDate: C, minDate: E, navigationAriaLabel: L, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ae, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: G, views: we }) : null;
4307
+ function R() {
4308
+ return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Rt, formatMonthYear: h, formatYear: w, locale: S, maxDate: C, minDate: E, navigationAriaLabel: L, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ae, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: G, views: we }) : null;
4297
4309
  }
4298
4310
  var B = Array.isArray(he) ? he : [he];
4299
- return o.jsxs("div", { className: Pr(lr, oe && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: D, children: [T(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: oe ? x : void 0, onMouseLeave: oe ? x : void 0, children: [O(), He ? O(!0) : null] })] });
4311
+ return o.jsxs("div", { className: Pr(lr, oe && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: D, children: [R(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: oe ? x : void 0, onMouseLeave: oe ? x : void 0, children: [O(), He ? O(!0) : null] })] });
4300
4312
  });
4301
- const Fl = ({
4313
+ const Yl = ({
4302
4314
  value: e,
4303
4315
  onChange: t,
4304
4316
  maxDate: r,
@@ -4399,7 +4411,7 @@ const Fl = ({
4399
4411
  ]
4400
4412
  }
4401
4413
  );
4402
- }, Wl = (e) => {
4414
+ }, Bl = (e) => {
4403
4415
  const [t, r] = F(), n = A(
4404
4416
  (a) => {
4405
4417
  e.onChange && e.onChange(a), r(a);
@@ -4418,7 +4430,7 @@ const Fl = ({
4418
4430
  },
4419
4431
  a.id
4420
4432
  )) });
4421
- }, Vl = ({
4433
+ }, Ul = ({
4422
4434
  filArianes: e,
4423
4435
  onClick: t,
4424
4436
  currentFil: r,
@@ -4550,7 +4562,7 @@ const Fl = ({
4550
4562
  y[E.name] = E.value ?? "";
4551
4563
  }), y;
4552
4564
  });
4553
- }, R = A((y) => {
4565
+ }, T = A((y) => {
4554
4566
  p((E) => ({
4555
4567
  ...E,
4556
4568
  [y]: ""
@@ -4569,7 +4581,7 @@ const Fl = ({
4569
4581
  };
4570
4582
  return Dr(f, () => ({
4571
4583
  resetForm: S,
4572
- clearInput: R,
4584
+ clearInput: T,
4573
4585
  focusInitialElement: C,
4574
4586
  getValues: P,
4575
4587
  updateFormValue: W,
@@ -4722,7 +4734,7 @@ const Fl = ({
4722
4734
  }
4723
4735
  );
4724
4736
  Fo.displayName = "InputNumber";
4725
- const Yl = Ue(
4737
+ const zl = Ue(
4726
4738
  ({
4727
4739
  value: e = "",
4728
4740
  locale: t = "fr-FR",
@@ -4748,7 +4760,7 @@ const Yl = Ue(
4748
4760
  }
4749
4761
  );
4750
4762
  }
4751
- ), Ve = (e = 12) => `${e / 12 * 100}%`, sl = Tn.div`
4763
+ ), Ve = (e = 12) => `${e / 12 * 100}%`, sl = Rn.div`
4752
4764
  padding: 0 15px;
4753
4765
  flex: 0 0 ${({ $xs: e }) => Ve(e)};
4754
4766
  max-width: ${({ $xs: e }) => Ve(e)};
@@ -4774,7 +4786,7 @@ const Yl = Ue(
4774
4786
  max-width: ${Ve(e)};
4775
4787
  }
4776
4788
  `}
4777
- `, cl = ({ xs: e, sm: t, md: r, lg: n, children: a }) => /* @__PURE__ */ o.jsx(sl, { $xs: e, $sm: t, $md: r, $lg: n, children: a }), ll = ({ children: e }) => /* @__PURE__ */ o.jsx("div", { className: "container", children: e }), ul = ({ children: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx("div", { className: `grid-row ${t ?? ""} ${r ? "scroll" : ""}`, children: e }), Bl = ({ items: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx(ll, { children: /* @__PURE__ */ o.jsx(ul, { scroll: r, className: t, children: e.map((n, a) => /* @__PURE__ */ o.jsx(cl, { ...n }, a)) }) }), Ul = ({
4789
+ `, cl = ({ xs: e, sm: t, md: r, lg: n, children: a }) => /* @__PURE__ */ o.jsx(sl, { $xs: e, $sm: t, $md: r, $lg: n, children: a }), ll = ({ children: e }) => /* @__PURE__ */ o.jsx("div", { className: "container", children: e }), ul = ({ children: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx("div", { className: `grid-row ${t ?? ""} ${r ? "scroll" : ""}`, children: e }), Gl = ({ items: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx(ll, { children: /* @__PURE__ */ o.jsx(ul, { scroll: r, className: t, children: e.map((n, a) => /* @__PURE__ */ o.jsx(cl, { ...n }, a)) }) }), Hl = ({
4778
4790
  children: e,
4779
4791
  logo: t,
4780
4792
  onClickMenu: r,
@@ -4821,7 +4833,7 @@ const Yl = Ue(
4821
4833
  )
4822
4834
  ] })
4823
4835
  ] });
4824
- }, zl = ({ text: e, severity: t, className: r }) => {
4836
+ }, ql = ({ text: e, severity: t, className: r }) => {
4825
4837
  const n = Me(() => {
4826
4838
  switch (t) {
4827
4839
  case "info":
@@ -4840,7 +4852,7 @@ const Yl = Ue(
4840
4852
  /* @__PURE__ */ o.jsx(Y, { classIcon: n }),
4841
4853
  /* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
4842
4854
  ] });
4843
- }, Gl = ({
4855
+ }, Xl = ({
4844
4856
  isOpen: e,
4845
4857
  onClose: t,
4846
4858
  children: r,
@@ -4867,7 +4879,7 @@ const Yl = Ue(
4867
4879
  }
4868
4880
  ) }),
4869
4881
  document.body
4870
- ) : null, Hl = Ue(
4882
+ ) : null, Kl = Ue(
4871
4883
  ({
4872
4884
  arrayBuffer: e,
4873
4885
  displayToolBar: t = !1,
@@ -4908,7 +4920,7 @@ const Yl = Ue(
4908
4920
  }
4909
4921
  ) });
4910
4922
  }
4911
- ), ql = ({
4923
+ ), Jl = ({
4912
4924
  setQuantity: e,
4913
4925
  item: t,
4914
4926
  onClickQuantity: r,
@@ -4969,7 +4981,7 @@ const Yl = Ue(
4969
4981
  }
4970
4982
  )
4971
4983
  ] });
4972
- }, Xl = Ue(
4984
+ }, Ql = Ue(
4973
4985
  ({
4974
4986
  children: e,
4975
4987
  name: t,
@@ -5105,7 +5117,7 @@ const Yl = Ue(
5105
5117
  ] }),
5106
5118
  g.current
5107
5119
  ) : /* @__PURE__ */ o.jsx(o.Fragment, {});
5108
- }, Kl = (e) => /* @__PURE__ */ o.jsx(dl, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), Jl = ({
5120
+ }, Zl = (e) => /* @__PURE__ */ o.jsx(dl, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), eu = ({
5109
5121
  items: e,
5110
5122
  defaultIndex: t = 0,
5111
5123
  index: r,
@@ -5164,17 +5176,17 @@ const Yl = Ue(
5164
5176
  return l;
5165
5177
  }, fl = (e) => e ? Pa(e) : Pa, hl = (e) => e;
5166
5178
  function vl(e, t = hl) {
5167
- const r = Te.useSyncExternalStore(
5179
+ const r = Re.useSyncExternalStore(
5168
5180
  e.subscribe,
5169
5181
  () => t(e.getState()),
5170
5182
  () => t(e.getInitialState())
5171
5183
  );
5172
- return Te.useDebugValue(r), r;
5184
+ return Re.useDebugValue(r), r;
5173
5185
  }
5174
- const Ra = (e) => {
5186
+ const Ta = (e) => {
5175
5187
  const t = fl(e), r = (n) => vl(t, n);
5176
5188
  return Object.assign(r, t), r;
5177
- }, ml = (e) => e ? Ra(e) : Ra, pl = ml((e) => ({
5189
+ }, ml = (e) => e ? Ta(e) : Ta, pl = ml((e) => ({
5178
5190
  title: "",
5179
5191
  description: "",
5180
5192
  severity: "info",
@@ -5191,7 +5203,7 @@ const Ra = (e) => {
5191
5203
  children: r.children || null
5192
5204
  })),
5193
5205
  hideToast: () => e(() => ({ visible: !1 }))
5194
- })), Ql = () => {
5206
+ })), tu = () => {
5195
5207
  const {
5196
5208
  title: e,
5197
5209
  description: t,
@@ -5233,20 +5245,20 @@ const Ra = (e) => {
5233
5245
  export {
5234
5246
  Ma as Badge,
5235
5247
  xt as Button,
5236
- Pl as ButtonAction,
5237
- Tl as ButtonActions,
5238
- Al as ButtonFile,
5239
- Il as Card,
5240
- $l as Carousel,
5241
- Ml as Damier,
5242
- Ll as DataTable,
5243
- Fl as DatePicker,
5248
+ Al as ButtonAction,
5249
+ $l as ButtonActions,
5250
+ Ml as ButtonFile,
5251
+ Ll as Card,
5252
+ Fl as Carousel,
5253
+ Wl as Damier,
5254
+ Vl as DataTable,
5255
+ Yl as DatePicker,
5244
5256
  il as DynamicForm,
5245
- Wl as Expands,
5246
- Vl as FilAriane,
5257
+ Bl as Expands,
5258
+ Ul as FilAriane,
5247
5259
  Nl as FormatDate,
5248
- Bl as Grid,
5249
- Ul as Header,
5260
+ Gl as Grid,
5261
+ Hl as Header,
5250
5262
  bl as HistoryProvider,
5251
5263
  Y as Icon,
5252
5264
  je as IconSizeEnum,
@@ -5254,30 +5266,33 @@ export {
5254
5266
  jl as ImageExist,
5255
5267
  wr as Input,
5256
5268
  Fo as InputNumber,
5257
- Yl as InputPrice,
5269
+ zl as InputPrice,
5258
5270
  pa as Loader,
5271
+ El as LocalDateStringToUTC,
5259
5272
  La as Menus,
5260
- zl as Message,
5261
- Gl as Modal,
5273
+ ql as Message,
5274
+ Xl as Modal,
5262
5275
  An as OverlayPanel,
5263
- Rl as OverlayProvider,
5264
- Hl as PdfViewer,
5265
- ql as Quantity,
5266
- Xl as Search,
5276
+ Il as OverlayProvider,
5277
+ Kl as PdfViewer,
5278
+ Jl as Quantity,
5279
+ Ql as Search,
5267
5280
  uo as Select,
5268
5281
  dl as Sidebar,
5269
- Kl as SidebarData,
5270
- Jl as Tabs,
5282
+ Zl as SidebarData,
5283
+ eu as Tabs,
5271
5284
  ol as TextArea,
5272
- Ql as Toaster,
5285
+ tu as Toaster,
5273
5286
  Be as TypeInputEnum,
5274
- Cl as WidgetSupport,
5287
+ Rl as WidgetSupport,
5275
5288
  Sl as isValidEAN13,
5289
+ _l as localDateEndToUTC,
5290
+ kl as localDateStartToUTC,
5276
5291
  Dl as objectToQueryParams,
5277
5292
  Ol as useCurrency,
5278
5293
  xl as useHistoryDepth,
5279
- El as useIsMobile,
5294
+ Cl as useIsMobile,
5280
5295
  pl as useToasterStore,
5281
- kl as useToken,
5282
- _l as useValidate
5296
+ Pl as useToken,
5297
+ Tl as useValidate
5283
5298
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kelt-ui-kit-react",
3
3
  "type": "module",
4
- "version": "1.6.5",
4
+ "version": "1.6.7",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -45,7 +45,7 @@ export function FormatDate(date: Date, format: string): string {
45
45
  .replace("mm", minutes)
46
46
  .replace("ss", seconds);
47
47
  }
48
- export function localDateStringToUTC(dateStr: string): string {
48
+ export function LocalDateStringToUTC(dateStr: string): string {
49
49
  const [year, month, day] = dateStr.split("-").map(Number);
50
50
 
51
51
  // Crée une date en heure locale
@@ -54,3 +54,11 @@ export function localDateStringToUTC(dateStr: string): string {
54
54
  // Convertit en UTC ISO
55
55
  return localDate.toISOString();
56
56
  }
57
+ export function localDateStartToUTC(dateStr: string): Date {
58
+ const [y, m, d] = dateStr.split("-").map(Number);
59
+ return new Date(y, m - 1, d, 0, 0, 0, 0);
60
+ }
61
+ export function localDateEndToUTC(dateStr: string): Date {
62
+ const [y, m, d] = dateStr.split("-").map(Number);
63
+ return new Date(y, m - 1, d, 23, 59, 59, 999);
64
+ }
package/src/index.ts CHANGED
@@ -9,7 +9,12 @@ export { ImageExist } from "./_core/hooks/imageExist";
9
9
  export { isValidEAN13 } from "./_core/hooks/isEAN13";
10
10
  export { objectToQueryParams } from "./_core/hooks/objectToQueryParams";
11
11
  export { useCurrency } from "./_core/hooks/useCurrency";
12
- export { FormatDate } from "./_core/hooks/useDateutils";
12
+ export {
13
+ FormatDate,
14
+ localDateEndToUTC,
15
+ localDateStartToUTC,
16
+ LocalDateStringToUTC,
17
+ } from "./_core/hooks/useDateutils";
13
18
  export { useIsMobile } from "./_core/hooks/useIsMobile";
14
19
  export { useToken } from "./_core/hooks/useToken";
15
20
  export { useValidate } from "./_core/hooks/useValidate";