kelt-ui-kit-react 1.6.6 → 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
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, LocalDateStringToUTC } 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(() => {
@@ -772,7 +772,15 @@ function El(e) {
772
772
  const [t, r, n] = e.split("-").map(Number);
773
773
  return new Date(t, r - 1, n, 0, 0, 0).toISOString();
774
774
  }
775
- const kl = (e = 768) => {
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) => {
776
784
  const [t, r] = F(
777
785
  typeof window < "u" ? window.innerWidth <= e : !1
778
786
  );
@@ -831,13 +839,13 @@ function ii(e, t) {
831
839
  throw new Mt(`Invalid token specified: invalid json for part #${r + 1} (${i.message})`);
832
840
  }
833
841
  }
834
- const _l = () => ({ getTokenValidate: A(() => {
842
+ const Pl = () => ({ getTokenValidate: A(() => {
835
843
  const t = localStorage.getItem("token");
836
844
  if (!t)
837
845
  return null;
838
846
  const r = ii(t), n = Date.now() / 1e3;
839
847
  return !r.exp || r.exp < n ? null : t;
840
- }, []) }), Cl = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Pl = () => {
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 = () => {
841
849
  const e = se(null);
842
850
  return q(() => {
843
851
  if (!e.current) return;
@@ -887,7 +895,7 @@ const _l = () => ({ getTokenValidate: A(() => {
887
895
  );
888
896
  };
889
897
  var je = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e))(je || {});
890
- const Rl = ({
898
+ const Al = ({
891
899
  className: e,
892
900
  onClick: t,
893
901
  title: r,
@@ -954,7 +962,7 @@ const Rl = ({
954
962
  s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "ml-3 mt-1 submenu", children: a(s.subMenu) })
955
963
  ] }, s.id)) });
956
964
  return /* @__PURE__ */ o.jsx("div", { className: `menu ${e.className || ""}`, children: a(e.items) });
957
- }, Fa = Ta(void 0), Tl = ({
965
+ }, Fa = Ra(void 0), Il = ({
958
966
  children: e
959
967
  }) => {
960
968
  const [t, r] = F(null);
@@ -1012,7 +1020,7 @@ function ie(e, t) {
1012
1020
  function mt(e, t, r) {
1013
1021
  return e.slice(t, r);
1014
1022
  }
1015
- function Re(e) {
1023
+ function Te(e) {
1016
1024
  return e.length;
1017
1025
  }
1018
1026
  function Ua(e) {
@@ -1092,7 +1100,7 @@ function rn(e) {
1092
1100
  return 0;
1093
1101
  }
1094
1102
  function yi(e) {
1095
- return Nr = pt = 1, za = Re(wt = e), Oe = 0, [];
1103
+ return Nr = pt = 1, za = Te(wt = e), Oe = 0, [];
1096
1104
  }
1097
1105
  function bi(e) {
1098
1106
  return wt = "", e;
@@ -1143,7 +1151,7 @@ function Di(e) {
1143
1151
  return bi(hr("", null, null, null, [""], e = yi(e), 0, [0], e));
1144
1152
  }
1145
1153
  function hr(e, t, r, n, a, i, s, l, c) {
1146
- 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; )
1147
1155
  switch (p = b, b = Ne()) {
1148
1156
  case 40:
1149
1157
  if (p != 108 && ie(P, v - 1) == 58) {
@@ -1175,7 +1183,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
1175
1183
  }
1176
1184
  break;
1177
1185
  case 123 * m:
1178
- l[d++] = Re(P) * j;
1186
+ l[d++] = Te(P) * j;
1179
1187
  case 125 * m:
1180
1188
  case 59:
1181
1189
  case 0:
@@ -1184,30 +1192,30 @@ function hr(e, t, r, n, a, i, s, l, c) {
1184
1192
  case 125:
1185
1193
  w = 0;
1186
1194
  case 59 + f:
1187
- 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);
1188
1196
  break;
1189
1197
  case 59:
1190
1198
  P += ";";
1191
1199
  default:
1192
- 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)
1193
1201
  if (f === 0)
1194
- hr(P, t, C, C, S, i, v, l, R);
1202
+ hr(P, t, C, C, S, i, v, l, T);
1195
1203
  else
1196
1204
  switch (g === 99 && ie(P, 3) === 110 ? 100 : g) {
1197
1205
  case 100:
1198
1206
  case 108:
1199
1207
  case 109:
1200
1208
  case 115:
1201
- 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);
1202
1210
  break;
1203
1211
  default:
1204
- hr(P, C, C, C, [""], R, 0, l, R);
1212
+ hr(P, C, C, C, [""], T, 0, l, T);
1205
1213
  }
1206
1214
  }
1207
1215
  d = f = h = 0, m = j = 1, D = P = "", v = s;
1208
1216
  break;
1209
1217
  case 58:
1210
- v = 1 + Re(P), h = p;
1218
+ v = 1 + Te(P), h = p;
1211
1219
  default:
1212
1220
  if (m < 1) {
1213
1221
  if (b == 123)
@@ -1220,13 +1228,13 @@ function hr(e, t, r, n, a, i, s, l, c) {
1220
1228
  j = f > 0 ? 1 : (P += "\f", -1);
1221
1229
  break;
1222
1230
  case 44:
1223
- l[d++] = (Re(P) - 1) * j, j = 1;
1231
+ l[d++] = (Te(P) - 1) * j, j = 1;
1224
1232
  break;
1225
1233
  case 64:
1226
- 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++;
1227
1235
  break;
1228
1236
  case 45:
1229
- p === 45 && Re(P) == 2 && (m = 0);
1237
+ p === 45 && Te(P) == 2 && (m = 0);
1230
1238
  }
1231
1239
  }
1232
1240
  return i;
@@ -1350,7 +1358,7 @@ function Ga(e, t, r) {
1350
1358
  case 5789:
1351
1359
  case 5021:
1352
1360
  case 4765:
1353
- if (Re(e) - 1 - t > 6)
1361
+ if (Te(e) - 1 - t > 6)
1354
1362
  switch (ie(e, t + 1)) {
1355
1363
  case 109:
1356
1364
  if (ie(e, t + 4) !== 45)
@@ -1404,9 +1412,9 @@ function Ni(e, t, r, n) {
1404
1412
  case Va:
1405
1413
  return e.return = e.value + "{" + yr(e.children, n) + "}";
1406
1414
  case Or:
1407
- if (!Re(e.value = e.props.join(","))) return "";
1415
+ if (!Te(e.value = e.props.join(","))) return "";
1408
1416
  }
1409
- 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 + "}" : "";
1410
1418
  }
1411
1419
  function Ei(e) {
1412
1420
  var t = Ua(e);
@@ -1494,7 +1502,7 @@ var Ci = {
1494
1502
  strokeOpacity: 1,
1495
1503
  strokeWidth: 1
1496
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*/
1497
- `, 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) {
1498
1506
  if (process.env.NODE_ENV !== "production") {
1499
1507
  var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
1500
1508
  `) + `You may see this warning because you've called styled inside another component.
@@ -1514,7 +1522,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1514
1522
  }
1515
1523
  }
1516
1524
  }, Cr = Object.freeze([]), gt = Object.freeze({});
1517
- function Ti(e, t, r) {
1525
+ function Ri(e, t, r) {
1518
1526
  return r === void 0 && (r = gt), e.theme !== r.theme && e.theme || t || r.theme;
1519
1527
  }
1520
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;
@@ -1594,7 +1602,7 @@ function sn(e, t, r) {
1594
1602
  else if (bt(t)) for (var n in t) e[n] = sn(e[n], t[n]);
1595
1603
  return e;
1596
1604
  }
1597
- function Rn(e, t) {
1605
+ function Tn(e, t) {
1598
1606
  Object.defineProperty(e, "toString", { value: t });
1599
1607
  }
1600
1608
  var Gi = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
@@ -1767,7 +1775,7 @@ var ro = function(e) {
1767
1775
  function e(t, r, n) {
1768
1776
  t === void 0 && (t = gt), r === void 0 && (r = {});
1769
1777
  var a = this;
1770
- 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() {
1771
1779
  return function(i) {
1772
1780
  for (var s = i.getTag(), l = s.length, c = "", d = function(v) {
1773
1781
  var g = function(j) {
@@ -1844,9 +1852,9 @@ function cs(e) {
1844
1852
  return h.name || jt(15), Qe(g, h.name);
1845
1853
  }, Xa).toString() : "", v;
1846
1854
  }
1847
- 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 });
1848
1856
  oo.Consumer;
1849
- Te.createContext(void 0);
1857
+ Re.createContext(void 0);
1850
1858
  function ua() {
1851
1859
  return On(oo);
1852
1860
  }
@@ -1857,7 +1865,7 @@ var da = function() {
1857
1865
  i === void 0 && (i = cn);
1858
1866
  var s = n.name + i.hash;
1859
1867
  a.hasNameForId(n.id, s) || a.insertRules(n.id, s, i(n.rules, s, "@keyframes"));
1860
- }, 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() {
1861
1869
  throw jt(12, String(n.name));
1862
1870
  });
1863
1871
  }
@@ -1936,15 +1944,15 @@ var fs = Ka(_r), hs = function() {
1936
1944
  }
1937
1945
  return a;
1938
1946
  }, e;
1939
- }(), co = Te.createContext(void 0);
1947
+ }(), co = Re.createContext(void 0);
1940
1948
  co.Consumer;
1941
1949
  var qr = {}, ha = /* @__PURE__ */ new Set();
1942
1950
  function vs(e, t, r) {
1943
- 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) {
1944
1952
  var C = typeof S != "string" ? "sc" : ra(S);
1945
1953
  qr[C] = (qr[C] || 0) + 1;
1946
1954
  var P = "".concat(C, "-").concat(Mi(_r + C + qr[C]));
1947
- return R ? "".concat(R, "-").concat(P) : P;
1955
+ return T ? "".concat(T, "-").concat(P) : P;
1948
1956
  }(t.displayName, t.parentComponentId) : c, f = t.displayName, v = f === void 0 ? function(S) {
1949
1957
  return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
1950
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;
@@ -1952,17 +1960,17 @@ function vs(e, t, r) {
1952
1960
  var m = a.shouldForwardProp;
1953
1961
  if (t.shouldForwardProp) {
1954
1962
  var w = t.shouldForwardProp;
1955
- p = function(S, R) {
1956
- return m(S, R) && w(S, R);
1963
+ p = function(S, T) {
1964
+ return m(S, T) && w(S, T);
1957
1965
  };
1958
1966
  } else p = m;
1959
1967
  }
1960
1968
  var j = new hs(r, g, n ? a.componentStyle : void 0);
1961
- function b(S, R) {
1969
+ function b(S, T) {
1962
1970
  return function(C, P, W) {
1963
- 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;
1964
1972
  process.env.NODE_ENV !== "production" && Gn(L);
1965
- 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) {
1966
1974
  for (var le, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
1967
1975
  var _e = yt(le = ke[De]) ? le(ne) : le;
1968
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];
@@ -1977,23 +1985,23 @@ function vs(e, t, r) {
1977
1985
  process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Se);
1978
1986
  var Ee = Ze(M, L);
1979
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);
1980
- }(D, S, R);
1988
+ }(D, S, T);
1981
1989
  }
1982
1990
  b.displayName = v;
1983
- var D = Te.forwardRef(b);
1991
+ var D = Re.forwardRef(b);
1984
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() {
1985
1993
  return this._foldedDefaultProps;
1986
1994
  }, set: function(S) {
1987
- this._foldedDefaultProps = n ? function(R) {
1995
+ this._foldedDefaultProps = n ? function(T) {
1988
1996
  for (var C = [], P = 1; P < arguments.length; P++) C[P - 1] = arguments[P];
1989
- for (var W = 0, y = C; W < y.length; W++) sn(R, y[W], !0);
1990
- return R;
1997
+ for (var W = 0, y = C; W < y.length; W++) sn(T, y[W], !0);
1998
+ return T;
1991
1999
  }({}, a.defaultProps, S) : S;
1992
- } }), 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) {
1993
2001
  var C = {}, P = !1;
1994
2002
  return function(W) {
1995
2003
  if (!P && (C[W] = !0, Object.keys(C).length >= 200)) {
1996
- var y = R ? ' with the id of "'.concat(R, '"') : "";
2004
+ var y = T ? ' with the id of "'.concat(T, '"') : "";
1997
2005
  console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(y, `.
1998
2006
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1999
2007
  Example:
@@ -2006,7 +2014,7 @@ Example:
2006
2014
  <Component />`), P = !0, C = {};
2007
2015
  }
2008
2016
  };
2009
- }(v, g)), Rn(D, function() {
2017
+ }(v, g)), Tn(D, function() {
2010
2018
  return ".".concat(D.styledComponentId);
2011
2019
  }), i && to(D, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), D;
2012
2020
  }
@@ -2037,9 +2045,9 @@ function ln(e, t, r) {
2037
2045
  }
2038
2046
  var lo = function(e) {
2039
2047
  return ln(vs, e);
2040
- }, Tn = lo;
2048
+ }, Rn = lo;
2041
2049
  an.forEach(function(e) {
2042
- Tn[e] = lo(e);
2050
+ Rn[e] = lo(e);
2043
2051
  });
2044
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.
2045
2053
  Perhaps you're looking to import 'styled-components/native'?
@@ -2048,7 +2056,7 @@ var cr = "__sc-".concat(nt, "__");
2048
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.
2049
2057
 
2050
2058
  See https://s-c.sh/2BAXzed for more info.`), window[cr] += 1);
2051
- const ms = Tn.div`
2059
+ const ms = Rn.div`
2052
2060
  position: absolute;
2053
2061
  z-index: 5;
2054
2062
  top: ${({ $top: e }) => e}px;
@@ -2081,36 +2089,36 @@ const ms = Tn.div`
2081
2089
  if (!t && r)
2082
2090
  h(r);
2083
2091
  else if (e) {
2084
- const S = e.getBoundingClientRect(), R = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: C, innerHeight: P } = window;
2085
- if (R) {
2092
+ const S = e.getBoundingClientRect(), T = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: C, innerHeight: P } = window;
2093
+ if (T) {
2086
2094
  let W, y;
2087
2095
  const E = {
2088
2096
  topRight: () => ({
2089
- top: S.top - R.height,
2090
- left: S.right - R.width
2097
+ top: S.top - T.height,
2098
+ left: S.right - T.width
2091
2099
  }),
2092
2100
  topLeft: () => ({
2093
- top: S.top - R.height,
2101
+ top: S.top - T.height,
2094
2102
  left: S.left
2095
2103
  }),
2096
2104
  bottomRight: () => ({
2097
2105
  top: S.bottom,
2098
- left: S.right - R.width
2106
+ left: S.right - T.width
2099
2107
  }),
2100
2108
  bottomLeft: () => ({
2101
2109
  top: S.bottom,
2102
2110
  left: S.left
2103
2111
  }),
2104
2112
  left: () => ({
2105
- top: S.top + S.height / 2 - R.height / 2,
2106
- left: S.left - R.width
2113
+ top: S.top + S.height / 2 - T.height / 2,
2114
+ left: S.left - T.width
2107
2115
  }),
2108
2116
  right: () => ({
2109
- top: S.top + S.height / 2 - R.height / 2,
2117
+ top: S.top + S.height / 2 - T.height / 2,
2110
2118
  left: S.right
2111
2119
  })
2112
2120
  };
2113
- 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 });
2114
2122
  }
2115
2123
  }
2116
2124
  };
@@ -2155,7 +2163,7 @@ const ms = Tn.div`
2155
2163
  document.body
2156
2164
  ) : null;
2157
2165
  }
2158
- ), Al = ({
2166
+ ), $l = ({
2159
2167
  className: e,
2160
2168
  onClick: t,
2161
2169
  title: r,
@@ -2224,7 +2232,7 @@ const ms = Tn.div`
2224
2232
  }
2225
2233
  )
2226
2234
  ] });
2227
- }, Il = ({
2235
+ }, Ml = ({
2228
2236
  onFileSelected: e,
2229
2237
  accept: t = "*",
2230
2238
  buttonText: r = "Choisir un fichier",
@@ -2346,7 +2354,7 @@ const ms = Tn.div`
2346
2354
  }
2347
2355
  )
2348
2356
  ] });
2349
- }, $l = ({
2357
+ }, Ll = ({
2350
2358
  item: e,
2351
2359
  actions: t,
2352
2360
  className: r,
@@ -2414,7 +2422,7 @@ const ms = Tn.div`
2414
2422
  ]
2415
2423
  }
2416
2424
  );
2417
- }, Ml = ({
2425
+ }, Fl = ({
2418
2426
  children: e,
2419
2427
  showControls: t = !0,
2420
2428
  itemsToScroll: r = 1,
@@ -2471,7 +2479,7 @@ const ms = Tn.div`
2471
2479
  transform: `translateX(-${a * 100 / l}%)`,
2472
2480
  transition: "transform 0.5s ease-in-out"
2473
2481
  },
2474
- children: Te.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
2482
+ children: Re.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
2475
2483
  "div",
2476
2484
  {
2477
2485
  className: "carousel-slide",
@@ -2498,7 +2506,7 @@ const ms = Tn.div`
2498
2506
  t && t(e);
2499
2507
  };
2500
2508
  return /* @__PURE__ */ o.jsx("div", { className: "cell", onClick: r, children: e.child });
2501
- }, Ll = ({
2509
+ }, Wl = ({
2502
2510
  cols: e,
2503
2511
  rows: t,
2504
2512
  damierCells: r = [],
@@ -2555,14 +2563,14 @@ const wr = Ue(
2555
2563
  onBlur: b,
2556
2564
  onClick: D,
2557
2565
  handleKeyDown: S
2558
- }, R) => {
2566
+ }, T) => {
2559
2567
  const [C, P] = F(!1);
2560
2568
  return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
2561
2569
  /* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
2562
2570
  /* @__PURE__ */ o.jsx(
2563
2571
  "input",
2564
2572
  {
2565
- ref: R,
2573
+ ref: T,
2566
2574
  id: e,
2567
2575
  name: t,
2568
2576
  inputMode: l ?? (r === "number" ? "numeric" : "text"),
@@ -2760,7 +2768,7 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
2760
2768
  `row-${e.id}-${t}`
2761
2769
  );
2762
2770
  };
2763
- function Fl(e) {
2771
+ function Vl(e) {
2764
2772
  const {
2765
2773
  id: t,
2766
2774
  name: r,
@@ -2780,18 +2788,18 @@ function Fl(e) {
2780
2788
  hideToggleAll: w = !1,
2781
2789
  limitSelect: j = void 0,
2782
2790
  getRowId: b
2783
- } = e, D = se(null), [S, R] = F(
2791
+ } = e, D = se(null), [S, T] = F(
2784
2792
  /* @__PURE__ */ new Set()
2785
2793
  ), C = A(() => {
2786
2794
  if (S.size === s.length)
2787
- R(/* @__PURE__ */ new Set()), m == null || m([]);
2795
+ T(/* @__PURE__ */ new Set()), m == null || m([]);
2788
2796
  else {
2789
2797
  let y = s.map(
2790
2798
  (I) => b ? b(I) : I.id ?? I
2791
2799
  );
2792
2800
  j && y.length > j && (y = y.slice(0, j));
2793
2801
  const E = new Set(y);
2794
- R(E), m == null || m(
2802
+ T(E), m == null || m(
2795
2803
  s.filter(
2796
2804
  (I) => E.has(b ? b(I) : I.id ?? I)
2797
2805
  )
@@ -2813,7 +2821,7 @@ function Fl(e) {
2813
2821
  return;
2814
2822
  M.add(I);
2815
2823
  }
2816
- R(M);
2824
+ T(M);
2817
2825
  const L = s.filter(
2818
2826
  (X) => M.has(b ? b(X) : X.id ?? X)
2819
2827
  );
@@ -3029,8 +3037,8 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
3029
3037
  }
3030
3038
  t.default = i, e.exports = i, e.exports.default = i;
3031
3039
  })(un, un.exports);
3032
- var Rs = un.exports;
3033
- 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 } = {}) => {
3034
3042
  typeof n == "number" && As(r);
3035
3043
  const a = function(...i) {
3036
3044
  const s = t ? t(i) : i[0], l = r.get(s);
@@ -3042,7 +3050,7 @@ const Ts = Cs, As = Rs, Xr = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */
3042
3050
  maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
3043
3051
  }), c;
3044
3052
  };
3045
- return Ts(a, e, {
3053
+ return Rs(a, e, {
3046
3054
  ignoreNonConfigurable: !0
3047
3055
  }), ho.set(a, r), a;
3048
3056
  };
@@ -3147,7 +3155,7 @@ function ze(e) {
3147
3155
  return e.getMonth();
3148
3156
  throw new Error("Failed to get month from date: ".concat(e, "."));
3149
3157
  }
3150
- function Rr(e) {
3158
+ function Tr(e) {
3151
3159
  if (e instanceof Date)
3152
3160
  return e.getDate();
3153
3161
  throw new Error("Failed to get year from date: ".concat(e, "."));
@@ -3161,7 +3169,7 @@ function Ge(e) {
3161
3169
  var t = Q(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
3162
3170
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
3163
3171
  }
3164
- 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);
3165
3173
  function Dt(e) {
3166
3174
  var t = Q(e), r = /* @__PURE__ */ new Date();
3167
3175
  return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
@@ -3182,17 +3190,17 @@ var So = Ln(at, -1), Fn = Ln(at, 1), zt = Bt(Fn), Do = Ln(zt, -1), zs = Ut(at, z
3182
3190
  function Gs(e, t) {
3183
3191
  return function(n, a) {
3184
3192
  a === void 0 && (a = t);
3185
- 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();
3186
3194
  return c.setFullYear(i, s, l), c.setHours(0, 0, 0, 0), e(c);
3187
3195
  };
3188
3196
  }
3189
3197
  function Gt(e) {
3190
- 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();
3191
3199
  return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
3192
3200
  }
3193
3201
  var Hs = Gs(Gt, 1), Wn = Bt(Hs), qs = Ut(Gt, Wn);
3194
3202
  function Oo(e) {
3195
- return Rr(zt(e));
3203
+ return Tr(zt(e));
3196
3204
  }
3197
3205
  var de = {
3198
3206
  GREGORY: "gregory",
@@ -3379,7 +3387,7 @@ function ko(e, t) {
3379
3387
  case "century":
3380
3388
  return In(t);
3381
3389
  case "decade":
3382
- return Tr(t);
3390
+ return Rr(t);
3383
3391
  case "year":
3384
3392
  return Ar(t);
3385
3393
  case "month":
@@ -3468,7 +3476,7 @@ function Po(e, t) {
3468
3476
  }
3469
3477
  var Pe = "react-calendar__navigation";
3470
3478
  function Sc(e) {
3471
- 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() {
3472
3480
  if (K.getFullYear() < 0)
3473
3481
  return !0;
3474
3482
  var te = yc(re, t);
@@ -3517,7 +3525,7 @@ function Sc(e) {
3517
3525
  var te = "".concat(Pe, "__label");
3518
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] });
3519
3527
  }
3520
- 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] });
3521
3529
  }
3522
3530
  var ft = function() {
3523
3531
  return ft = Object.assign || function(e) {
@@ -3562,11 +3570,11 @@ function Yt(e, t) {
3562
3570
  function Nc(e, t) {
3563
3571
  return e[0] <= t[0] && e[1] >= t[1];
3564
3572
  }
3565
- function Ro(e, t) {
3573
+ function To(e, t) {
3566
3574
  return Yt(e[0], t) || Yt(e[1], t);
3567
3575
  }
3568
3576
  function wa(e, t, r) {
3569
- var n = Ro(t, e), a = [];
3577
+ var n = To(t, e), a = [];
3570
3578
  if (n) {
3571
3579
  a.push(r);
3572
3580
  var i = Yt(e[0], t), s = Yt(e[1], t);
@@ -3601,7 +3609,7 @@ function kc(e) {
3601
3609
  throw new Error("valueType is required when value is not an array of two dates");
3602
3610
  return ba(h, t);
3603
3611
  }();
3604
- 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"));
3605
3613
  var d = wa(c, l, "".concat(a, "--range"));
3606
3614
  i.push.apply(i, d);
3607
3615
  var f = Array.isArray(t) ? t : [t];
@@ -3661,7 +3669,7 @@ var hn = function() {
3661
3669
  }, ja = "react-calendar__century-view__decades__decade";
3662
3670
  function Cc(e) {
3663
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 = [];
3664
- 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) }));
3665
3673
  }
3666
3674
  var vn = function() {
3667
3675
  return vn = Object.assign || function(e) {
@@ -3695,7 +3703,7 @@ var mn = function() {
3695
3703
  return e;
3696
3704
  }, mn.apply(this, arguments);
3697
3705
  };
3698
- function Rc(e) {
3706
+ function Tc(e) {
3699
3707
  function t() {
3700
3708
  return o.jsx(Pc, mn({}, e));
3701
3709
  }
@@ -3709,7 +3717,7 @@ var pn = function() {
3709
3717
  }
3710
3718
  return e;
3711
3719
  }, pn.apply(this, arguments);
3712
- }, Tc = function(e, t) {
3720
+ }, Rc = function(e, t) {
3713
3721
  var r = {};
3714
3722
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3715
3723
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3718,7 +3726,7 @@ var pn = function() {
3718
3726
  return r;
3719
3727
  }, Da = "react-calendar__decade-view__years__year";
3720
3728
  function Ac(e) {
3721
- 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 = [];
3722
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) }));
3723
3731
  }
3724
3732
  var gn = function() {
@@ -3881,13 +3889,13 @@ function Uc(e) {
3881
3889
  return o.jsx(Bc, Sn({}, c, b, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
3882
3890
  }, offset: h, start: p, value: s, valueType: l });
3883
3891
  }
3884
- var To = "react-calendar__month-view__weekdays", Qr = "".concat(To, "__weekday");
3892
+ var Ro = "react-calendar__month-view__weekdays", Qr = "".concat(Ro, "__weekday");
3885
3893
  function zc(e) {
3886
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) {
3887
3895
  var p = new Date(f, v, h - Vt(d, t)), m = i(s, p);
3888
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));
3889
3897
  }
3890
- 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 });
3891
3899
  }
3892
3900
  var Sr = function() {
3893
3901
  return Sr = Object.assign || function(e) {
@@ -3925,7 +3933,7 @@ function Hc(e) {
3925
3933
  var d = Oo(t), f = Vt(t, r), v = d - (7 - f);
3926
3934
  return 1 + Math.ceil(v / 7);
3927
3935
  }(), l = function() {
3928
- 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)
3929
3937
  g.push(fn(new Date(d, f, v + h * 7), r));
3930
3938
  return g;
3931
3939
  }(), c = l.map(function(d) {
@@ -4073,7 +4081,7 @@ function ur(e, t) {
4073
4081
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
4074
4082
  }
4075
4083
  var nl = Ue(function(t, r) {
4076
- 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) {
4077
4085
  return N !== null ? Ft(N) : null;
4078
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({
4079
4087
  activeStartDate: n,
@@ -4137,7 +4145,7 @@ var nl = Ue(function(t, r) {
4137
4145
  }
4138
4146
  }();
4139
4147
  _ && _(N, k);
4140
- }, [Z, Se, Ee, me, G]), Rt = A(function(N, k) {
4148
+ }, [Z, Se, Ee, me, G]), Tt = A(function(N, k) {
4141
4149
  if (Ct) {
4142
4150
  ut(N, k);
4143
4151
  var _ = we[we.indexOf(G) + 1];
@@ -4162,7 +4170,7 @@ var nl = Ue(function(t, r) {
4162
4170
  he,
4163
4171
  G,
4164
4172
  we
4165
- ]), Tt = A(function() {
4173
+ ]), Rt = A(function() {
4166
4174
  if (nr) {
4167
4175
  var N = we[we.indexOf(G) - 1];
4168
4176
  if (!N)
@@ -4260,16 +4268,16 @@ var nl = Ue(function(t, r) {
4260
4268
  Dr(r, function() {
4261
4269
  return {
4262
4270
  activeStartDate: ue,
4263
- drillDown: Rt,
4264
- drillUp: Tt,
4271
+ drillDown: Tt,
4272
+ drillUp: Rt,
4265
4273
  onChange: At,
4266
4274
  setActiveStartDate: lt,
4267
4275
  value: he,
4268
4276
  view: G
4269
4277
  };
4270
- }, [ue, Rt, Tt, At, lt, he, G]);
4278
+ }, [ue, Tt, Rt, At, lt, he, G]);
4271
4279
  function O(N) {
4272
- 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 = {
4273
4281
  activeStartDate: k,
4274
4282
  hover: rr,
4275
4283
  locale: S,
@@ -4285,7 +4293,7 @@ var nl = Ue(function(t, r) {
4285
4293
  };
4286
4294
  switch (G) {
4287
4295
  case "century":
4288
- return o.jsx(Rc, ht({ formatYear: w, showNeighboringCentury: Fr }, z));
4296
+ return o.jsx(Tc, ht({ formatYear: w, showNeighboringCentury: Fr }, z));
4289
4297
  case "decade":
4290
4298
  return o.jsx($c, ht({ formatYear: w, showNeighboringDecade: Et }, z));
4291
4299
  case "year":
@@ -4296,13 +4304,13 @@ var nl = Ue(function(t, r) {
4296
4304
  throw new Error("Invalid view: ".concat(G, "."));
4297
4305
  }
4298
4306
  }
4299
- function T() {
4300
- 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;
4301
4309
  }
4302
4310
  var B = Array.isArray(he) ? he : [he];
4303
- 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] })] });
4304
4312
  });
4305
- const Wl = ({
4313
+ const Yl = ({
4306
4314
  value: e,
4307
4315
  onChange: t,
4308
4316
  maxDate: r,
@@ -4403,7 +4411,7 @@ const Wl = ({
4403
4411
  ]
4404
4412
  }
4405
4413
  );
4406
- }, Vl = (e) => {
4414
+ }, Bl = (e) => {
4407
4415
  const [t, r] = F(), n = A(
4408
4416
  (a) => {
4409
4417
  e.onChange && e.onChange(a), r(a);
@@ -4422,7 +4430,7 @@ const Wl = ({
4422
4430
  },
4423
4431
  a.id
4424
4432
  )) });
4425
- }, Yl = ({
4433
+ }, Ul = ({
4426
4434
  filArianes: e,
4427
4435
  onClick: t,
4428
4436
  currentFil: r,
@@ -4554,7 +4562,7 @@ const Wl = ({
4554
4562
  y[E.name] = E.value ?? "";
4555
4563
  }), y;
4556
4564
  });
4557
- }, R = A((y) => {
4565
+ }, T = A((y) => {
4558
4566
  p((E) => ({
4559
4567
  ...E,
4560
4568
  [y]: ""
@@ -4573,7 +4581,7 @@ const Wl = ({
4573
4581
  };
4574
4582
  return Dr(f, () => ({
4575
4583
  resetForm: S,
4576
- clearInput: R,
4584
+ clearInput: T,
4577
4585
  focusInitialElement: C,
4578
4586
  getValues: P,
4579
4587
  updateFormValue: W,
@@ -4726,7 +4734,7 @@ const Wl = ({
4726
4734
  }
4727
4735
  );
4728
4736
  Fo.displayName = "InputNumber";
4729
- const Bl = Ue(
4737
+ const zl = Ue(
4730
4738
  ({
4731
4739
  value: e = "",
4732
4740
  locale: t = "fr-FR",
@@ -4752,7 +4760,7 @@ const Bl = Ue(
4752
4760
  }
4753
4761
  );
4754
4762
  }
4755
- ), Ve = (e = 12) => `${e / 12 * 100}%`, sl = Tn.div`
4763
+ ), Ve = (e = 12) => `${e / 12 * 100}%`, sl = Rn.div`
4756
4764
  padding: 0 15px;
4757
4765
  flex: 0 0 ${({ $xs: e }) => Ve(e)};
4758
4766
  max-width: ${({ $xs: e }) => Ve(e)};
@@ -4778,7 +4786,7 @@ const Bl = Ue(
4778
4786
  max-width: ${Ve(e)};
4779
4787
  }
4780
4788
  `}
4781
- `, 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 }), Ul = ({ 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)) }) }), zl = ({
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 = ({
4782
4790
  children: e,
4783
4791
  logo: t,
4784
4792
  onClickMenu: r,
@@ -4825,7 +4833,7 @@ const Bl = Ue(
4825
4833
  )
4826
4834
  ] })
4827
4835
  ] });
4828
- }, Gl = ({ text: e, severity: t, className: r }) => {
4836
+ }, ql = ({ text: e, severity: t, className: r }) => {
4829
4837
  const n = Me(() => {
4830
4838
  switch (t) {
4831
4839
  case "info":
@@ -4844,7 +4852,7 @@ const Bl = Ue(
4844
4852
  /* @__PURE__ */ o.jsx(Y, { classIcon: n }),
4845
4853
  /* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
4846
4854
  ] });
4847
- }, Hl = ({
4855
+ }, Xl = ({
4848
4856
  isOpen: e,
4849
4857
  onClose: t,
4850
4858
  children: r,
@@ -4871,7 +4879,7 @@ const Bl = Ue(
4871
4879
  }
4872
4880
  ) }),
4873
4881
  document.body
4874
- ) : null, ql = Ue(
4882
+ ) : null, Kl = Ue(
4875
4883
  ({
4876
4884
  arrayBuffer: e,
4877
4885
  displayToolBar: t = !1,
@@ -4912,7 +4920,7 @@ const Bl = Ue(
4912
4920
  }
4913
4921
  ) });
4914
4922
  }
4915
- ), Xl = ({
4923
+ ), Jl = ({
4916
4924
  setQuantity: e,
4917
4925
  item: t,
4918
4926
  onClickQuantity: r,
@@ -4973,7 +4981,7 @@ const Bl = Ue(
4973
4981
  }
4974
4982
  )
4975
4983
  ] });
4976
- }, Kl = Ue(
4984
+ }, Ql = Ue(
4977
4985
  ({
4978
4986
  children: e,
4979
4987
  name: t,
@@ -5109,7 +5117,7 @@ const Bl = Ue(
5109
5117
  ] }),
5110
5118
  g.current
5111
5119
  ) : /* @__PURE__ */ o.jsx(o.Fragment, {});
5112
- }, Jl = (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 }) }), Ql = ({
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 = ({
5113
5121
  items: e,
5114
5122
  defaultIndex: t = 0,
5115
5123
  index: r,
@@ -5168,17 +5176,17 @@ const Bl = Ue(
5168
5176
  return l;
5169
5177
  }, fl = (e) => e ? Pa(e) : Pa, hl = (e) => e;
5170
5178
  function vl(e, t = hl) {
5171
- const r = Te.useSyncExternalStore(
5179
+ const r = Re.useSyncExternalStore(
5172
5180
  e.subscribe,
5173
5181
  () => t(e.getState()),
5174
5182
  () => t(e.getInitialState())
5175
5183
  );
5176
- return Te.useDebugValue(r), r;
5184
+ return Re.useDebugValue(r), r;
5177
5185
  }
5178
- const Ra = (e) => {
5186
+ const Ta = (e) => {
5179
5187
  const t = fl(e), r = (n) => vl(t, n);
5180
5188
  return Object.assign(r, t), r;
5181
- }, ml = (e) => e ? Ra(e) : Ra, pl = ml((e) => ({
5189
+ }, ml = (e) => e ? Ta(e) : Ta, pl = ml((e) => ({
5182
5190
  title: "",
5183
5191
  description: "",
5184
5192
  severity: "info",
@@ -5195,7 +5203,7 @@ const Ra = (e) => {
5195
5203
  children: r.children || null
5196
5204
  })),
5197
5205
  hideToast: () => e(() => ({ visible: !1 }))
5198
- })), Zl = () => {
5206
+ })), tu = () => {
5199
5207
  const {
5200
5208
  title: e,
5201
5209
  description: t,
@@ -5237,20 +5245,20 @@ const Ra = (e) => {
5237
5245
  export {
5238
5246
  Ma as Badge,
5239
5247
  xt as Button,
5240
- Rl as ButtonAction,
5241
- Al as ButtonActions,
5242
- Il as ButtonFile,
5243
- $l as Card,
5244
- Ml as Carousel,
5245
- Ll as Damier,
5246
- Fl as DataTable,
5247
- Wl 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,
5248
5256
  il as DynamicForm,
5249
- Vl as Expands,
5250
- Yl as FilAriane,
5257
+ Bl as Expands,
5258
+ Ul as FilAriane,
5251
5259
  Nl as FormatDate,
5252
- Ul as Grid,
5253
- zl as Header,
5260
+ Gl as Grid,
5261
+ Hl as Header,
5254
5262
  bl as HistoryProvider,
5255
5263
  Y as Icon,
5256
5264
  je as IconSizeEnum,
@@ -5258,31 +5266,33 @@ export {
5258
5266
  jl as ImageExist,
5259
5267
  wr as Input,
5260
5268
  Fo as InputNumber,
5261
- Bl as InputPrice,
5269
+ zl as InputPrice,
5262
5270
  pa as Loader,
5263
5271
  El as LocalDateStringToUTC,
5264
5272
  La as Menus,
5265
- Gl as Message,
5266
- Hl as Modal,
5273
+ ql as Message,
5274
+ Xl as Modal,
5267
5275
  An as OverlayPanel,
5268
- Tl as OverlayProvider,
5269
- ql as PdfViewer,
5270
- Xl as Quantity,
5271
- Kl as Search,
5276
+ Il as OverlayProvider,
5277
+ Kl as PdfViewer,
5278
+ Jl as Quantity,
5279
+ Ql as Search,
5272
5280
  uo as Select,
5273
5281
  dl as Sidebar,
5274
- Jl as SidebarData,
5275
- Ql as Tabs,
5282
+ Zl as SidebarData,
5283
+ eu as Tabs,
5276
5284
  ol as TextArea,
5277
- Zl as Toaster,
5285
+ tu as Toaster,
5278
5286
  Be as TypeInputEnum,
5279
- Pl as WidgetSupport,
5287
+ Rl as WidgetSupport,
5280
5288
  Sl as isValidEAN13,
5289
+ _l as localDateEndToUTC,
5290
+ kl as localDateStartToUTC,
5281
5291
  Dl as objectToQueryParams,
5282
5292
  Ol as useCurrency,
5283
5293
  xl as useHistoryDepth,
5284
- kl as useIsMobile,
5294
+ Cl as useIsMobile,
5285
5295
  pl as useToasterStore,
5286
- _l as useToken,
5287
- Cl as useValidate
5296
+ Pl as useToken,
5297
+ Tl as useValidate
5288
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.6",
4
+ "version": "1.6.7",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -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, LocalDateStringToUTC } 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";