@televet/kibble-ui 5.0.4-beta.1 → 5.0.4-beta.2

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.
Files changed (27) hide show
  1. package/dist/chunks/{calendar.component-w4rJ7mNI.js → calendar.component-BI8rM2b7.js} +2 -2
  2. package/dist/chunks/{calendar.component-w4rJ7mNI.js.map → calendar.component-BI8rM2b7.js.map} +1 -1
  3. package/dist/chunks/{calendar.component-DxMzZla-.js → calendar.component-CsOKKu1B.js} +2 -2
  4. package/dist/chunks/{calendar.component-DxMzZla-.js.map → calendar.component-CsOKKu1B.js.map} +1 -1
  5. package/dist/chunks/{datePicker.component-C7QZhsm6.js → datePicker.component-CcSzO2cP.js} +2 -2
  6. package/dist/chunks/{datePicker.component-C7QZhsm6.js.map → datePicker.component-CcSzO2cP.js.map} +1 -1
  7. package/dist/chunks/{datePicker.component-DVOU1Sss.js → datePicker.component-DwOyIbZk.js} +2 -2
  8. package/dist/chunks/{datePicker.component-DVOU1Sss.js.map → datePicker.component-DwOyIbZk.js.map} +1 -1
  9. package/dist/chunks/{datePicker.provider-CS1aBg9h.js → datePicker.provider-B3423SaO.js} +172 -172
  10. package/dist/chunks/{datePicker.provider-CS1aBg9h.js.map → datePicker.provider-B3423SaO.js.map} +1 -1
  11. package/dist/chunks/{datePicker.provider-D9GNAT1f.js → datePicker.provider-Bi_9Q7nm.js} +3 -3
  12. package/dist/chunks/{datePicker.provider-D9GNAT1f.js.map → datePicker.provider-Bi_9Q7nm.js.map} +1 -1
  13. package/dist/chunks/{dateTimePicker.component-DJcUN8oo.js → dateTimePicker.component-COryQU_H.js} +2 -2
  14. package/dist/chunks/{dateTimePicker.component-DJcUN8oo.js.map → dateTimePicker.component-COryQU_H.js.map} +1 -1
  15. package/dist/chunks/{dateTimePicker.component-EkAaKua6.js → dateTimePicker.component-CTx_6MBi.js} +2 -2
  16. package/dist/chunks/{dateTimePicker.component-EkAaKua6.js.map → dateTimePicker.component-CTx_6MBi.js.map} +1 -1
  17. package/dist/cjs/components/Calendar/index.cjs +1 -1
  18. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  19. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  20. package/dist/cjs/components/index.cjs +1 -1
  21. package/dist/cjs/index.cjs +1 -1
  22. package/dist/esm/components/Calendar/index.js +1 -1
  23. package/dist/esm/components/DatePicker/index.js +2 -2
  24. package/dist/esm/components/DateTimePicker/index.js +1 -1
  25. package/dist/esm/components/index.js +4 -4
  26. package/dist/esm/index.js +4 -4
  27. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  import { j as N } from "./jsx-runtime-C5mzlN2N.js";
2
- import { useState as Ne, useEffect as Ee, useCallback as I, useMemo as $, createContext as Ht, useContext as Lt, useRef as Ce } from "react";
3
- import { W as Ae } from "./text.component-IjomJyJY.js";
2
+ import { useState as Ee, useEffect as Oe, useCallback as I, useMemo as $, createContext as Ht, useContext as Lt, useRef as Ce } from "react";
3
+ import { W as je } from "./text.component-IjomJyJY.js";
4
4
  import { B as It } from "./index-9BerxEcw.js";
5
- import { B as je } from "./button.component-BO6oee_V.js";
5
+ import { B as Ge } from "./button.component-BO6oee_V.js";
6
6
  import { d as qt } from "./config-Djkl1N81.js";
7
- import { f as Oe, t as re, c as fe, s as Wt } from "./format-CqTHHSak.js";
7
+ import { f as Be, t as re, c as fe, s as Wt } from "./format-CqTHHSak.js";
8
8
  import { i as Qt } from "./isToday-iCYsPDMT.js";
9
9
  import { u as At } from "./create-slot-recipe-context-D_FXDJGp.js";
10
- import { G as Ke, a as jt } from "./grid-item-BmCSQ38y.js";
10
+ import { G as Je, a as jt } from "./grid-item-BmCSQ38y.js";
11
11
  import { C as vt } from "./center-Dmlzv1BW.js";
12
12
  import { u as Gt } from "./popover-root-provider-DR0Iuda1.js";
13
13
  import { F as Xt } from "./flex-CX-8gE9T.js";
14
- import { M as Je } from "./menu.component-BuTY_3mt.js";
15
- import { i as Ge, a as _t, b as zt, e as Vt, c as $t } from "./isSymbol-BQN49XhJ.js";
14
+ import { M as Ze } from "./menu.component-BuTY_3mt.js";
15
+ import { i as Xe, a as _t, b as zt, e as Vt, c as $t } from "./isSymbol-BQN49XhJ.js";
16
16
  import { H as Kt } from "./h-stack-8q5nAOg0.js";
17
17
  import { m as Jt } from "./popover-pd70xkY_.js";
18
18
  var Pe = {
@@ -33,14 +33,14 @@ var Pe = {
33
33
  overXYears: { one: "over 1 year", other: "over {{count}} years" },
34
34
  almostXYears: { one: "almost 1 year", other: "almost {{count}} years" }
35
35
  };
36
- function Le(e) {
36
+ function Ie(e) {
37
37
  return function(t) {
38
38
  var n = t || {}, r = n.width ? String(n.width) : e.defaultWidth;
39
39
  return e.formats[r] || e.formats[e.defaultWidth];
40
40
  };
41
41
  }
42
42
  var Zt = {
43
- date: Le({
43
+ date: Ie({
44
44
  formats: {
45
45
  full: "EEEE, MMMM do, y",
46
46
  long: "MMMM do, y",
@@ -49,11 +49,11 @@ var Zt = {
49
49
  },
50
50
  defaultWidth: "full"
51
51
  }),
52
- time: Le({
52
+ time: Ie({
53
53
  formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" },
54
54
  defaultWidth: "full"
55
55
  }),
56
- dateTime: Le({
56
+ dateTime: Ie({
57
57
  formats: {
58
58
  full: "{{date}} 'at' {{time}}",
59
59
  long: "{{date}} 'at' {{time}}",
@@ -402,7 +402,7 @@ function nn(e, t) {
402
402
  for (var n in t = t || {}) t.hasOwnProperty(n) && (e[n] = t[n]);
403
403
  return e;
404
404
  }
405
- function Ze(e, t) {
405
+ function et(e, t) {
406
406
  switch (e) {
407
407
  case "P":
408
408
  return t.date({ width: "short" });
@@ -415,7 +415,7 @@ function Ze(e, t) {
415
415
  return t.date({ width: "full" });
416
416
  }
417
417
  }
418
- function et(e, t) {
418
+ function tt(e, t) {
419
419
  switch (e) {
420
420
  case "p":
421
421
  return t.time({ width: "short" });
@@ -429,10 +429,10 @@ function et(e, t) {
429
429
  }
430
430
  }
431
431
  var kt = {
432
- p: et,
432
+ p: tt,
433
433
  P: function(e, t) {
434
434
  var n, r = e.match(/(P+)(p+)?/), a = r[1], o = r[2];
435
- if (!o) return Ze(e, t);
435
+ if (!o) return et(e, t);
436
436
  switch (a) {
437
437
  case "P":
438
438
  n = t.dateTime({ width: "short" });
@@ -447,15 +447,15 @@ var kt = {
447
447
  default:
448
448
  n = t.dateTime({ width: "full" });
449
449
  }
450
- return n.replace("{{date}}", Ze(a, t)).replace("{{time}}", et(o, t));
450
+ return n.replace("{{date}}", et(a, t)).replace("{{time}}", tt(o, t));
451
451
  }
452
452
  };
453
- function tt(e) {
453
+ function nt(e) {
454
454
  return e.getTime() % 6e4;
455
455
  }
456
456
  function xt(e) {
457
457
  var t = new Date(e.getTime()), n = Math.ceil(t.getTimezoneOffset());
458
- return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + tt(t)) % 6e4 : tt(t));
458
+ return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + nt(t)) % 6e4 : nt(t));
459
459
  }
460
460
  var rn = ["D", "DD"], an = ["YY", "YYYY"];
461
461
  function Mt(e) {
@@ -464,7 +464,7 @@ function Mt(e) {
464
464
  function Ct(e) {
465
465
  return an.indexOf(e) !== -1;
466
466
  }
467
- function Be(e) {
467
+ function Re(e) {
468
468
  if (e === "YYYY")
469
469
  throw new RangeError(
470
470
  "Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr"
@@ -487,7 +487,7 @@ function de(e, t) {
487
487
  var s = v(e), u = s.getUTCDay(), l = (u < i ? 7 : 0) + u - i;
488
488
  return s.setUTCDate(s.getUTCDate() - l), s.setUTCHours(0, 0, 0, 0), s;
489
489
  }
490
- function Ve(e, t) {
490
+ function $e(e, t) {
491
491
  T(1, arguments);
492
492
  var n = v(e, t), r = n.getUTCFullYear(), a = t || {}, o = a.locale, i = o && o.options && o.options.firstWeekContainsDate, s = i == null ? 1 : C(i), u = a.firstWeekContainsDate == null ? s : C(a.firstWeekContainsDate);
493
493
  if (!(u >= 1 && u <= 7))
@@ -499,7 +499,7 @@ function Ve(e, t) {
499
499
  var g = de(d, t);
500
500
  return n.getTime() >= m.getTime() ? r + 1 : n.getTime() >= g.getTime() ? r : r - 1;
501
501
  }
502
- function Ie(e, t, n) {
502
+ function qe(e, t, n) {
503
503
  T(2, arguments);
504
504
  var r = n || {}, a = r.locale, o = a && a.options && a.options.weekStartsOn, i = o == null ? 0 : C(o), s = r.weekStartsOn == null ? i : C(r.weekStartsOn);
505
505
  if (!(s >= 0 && s <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
@@ -534,7 +534,7 @@ function Ut(e) {
534
534
  }
535
535
  function sn(e, t) {
536
536
  T(1, arguments);
537
- var n = t || {}, r = n.locale, a = r && r.options && r.options.firstWeekContainsDate, o = a == null ? 1 : C(a), i = n.firstWeekContainsDate == null ? o : C(n.firstWeekContainsDate), s = Ve(e, t), u = /* @__PURE__ */ new Date(0);
537
+ var n = t || {}, r = n.locale, a = r && r.options && r.options.firstWeekContainsDate, o = a == null ? 1 : C(a), i = n.firstWeekContainsDate == null ? o : C(n.firstWeekContainsDate), s = $e(e, t), u = /* @__PURE__ */ new Date(0);
538
538
  u.setUTCFullYear(s, 0, i), u.setUTCHours(0, 0, 0, 0);
539
539
  var l = de(u, t);
540
540
  return l;
@@ -544,7 +544,7 @@ function Pt(e, t) {
544
544
  var n = v(e), r = de(n, t).getTime() - sn(n, t).getTime();
545
545
  return Math.round(r / 6048e5) + 1;
546
546
  }
547
- var nt = /^(1[0-2]|0?\d)/, un = /^(3[0-1]|[0-2]?\d)/, cn = /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, rt = /^(5[0-3]|[0-4]?\d)/, dn = /^(2[0-3]|[0-1]?\d)/, ln = /^(2[0-4]|[0-1]?\d)/, fn = /^(1[0-1]|0?\d)/, hn = /^(1[0-2]|0?\d)/, mn = /^[0-5]?\d/, gn = /^[0-5]?\d/, wn = /^\d/, Dn = /^\d{1,2}/, yn = /^\d{1,3}/, bn = /^\d{1,4}/, vn = /^-?\d+/, pn = /^-?\d/, Tn = /^-?\d{1,2}/, kn = /^-?\d{1,3}/, xn = /^-?\d{1,4}/, at = /^([+-])(\d{2})(\d{2})?|Z/, ot = /^([+-])(\d{2})(\d{2})|Z/, it = /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, st = /^([+-])(\d{2}):(\d{2})|Z/, ut = /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;
547
+ var rt = /^(1[0-2]|0?\d)/, un = /^(3[0-1]|[0-2]?\d)/, cn = /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, at = /^(5[0-3]|[0-4]?\d)/, dn = /^(2[0-3]|[0-1]?\d)/, ln = /^(2[0-4]|[0-1]?\d)/, fn = /^(1[0-1]|0?\d)/, hn = /^(1[0-2]|0?\d)/, mn = /^[0-5]?\d/, gn = /^[0-5]?\d/, wn = /^\d/, Dn = /^\d{1,2}/, yn = /^\d{1,3}/, bn = /^\d{1,4}/, vn = /^-?\d+/, pn = /^-?\d/, Tn = /^-?\d{1,2}/, kn = /^-?\d{1,3}/, xn = /^-?\d{1,4}/, ot = /^([+-])(\d{2})(\d{2})?|Z/, it = /^([+-])(\d{2})(\d{2})|Z/, st = /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, ut = /^([+-])(\d{2}):(\d{2})|Z/, ct = /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;
548
548
  function P(e, t, n) {
549
549
  var r = t.match(e);
550
550
  if (!r) return null;
@@ -558,7 +558,7 @@ function Z(e, t) {
558
558
  rest: t.slice(n[0].length)
559
559
  } : null;
560
560
  }
561
- function ct(e, t) {
561
+ function dt(e, t) {
562
562
  return P(vn, e, t);
563
563
  }
564
564
  function E(e, t, n) {
@@ -575,7 +575,7 @@ function E(e, t, n) {
575
575
  return P(new RegExp("^\\d{1," + e + "}"), t, n);
576
576
  }
577
577
  }
578
- function dt(e, t, n) {
578
+ function lt(e, t, n) {
579
579
  switch (e) {
580
580
  case 1:
581
581
  return P(pn, t, n);
@@ -589,7 +589,7 @@ function dt(e, t, n) {
589
589
  return P(new RegExp("^-?\\d{1," + e + "}"), t, n);
590
590
  }
591
591
  }
592
- function qe(e) {
592
+ function We(e) {
593
593
  switch (e) {
594
594
  case "morning":
595
595
  return 4;
@@ -606,7 +606,7 @@ function qe(e) {
606
606
  return 0;
607
607
  }
608
608
  }
609
- function lt(e, t) {
609
+ function ft(e, t) {
610
610
  var n, r = t > 0, a = r ? t : 1 - t;
611
611
  if (a <= 50) n = e || 100;
612
612
  else {
@@ -616,7 +616,7 @@ function lt(e, t) {
616
616
  return r ? n : 1 - n;
617
617
  }
618
618
  var Mn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Cn = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
619
- function ft(e) {
619
+ function ht(e) {
620
620
  return e % 400 == 0 || e % 4 == 0 && e % 100 != 0;
621
621
  }
622
622
  var Sn = {
@@ -661,7 +661,7 @@ var Sn = {
661
661
  set: function(e, t, n, r) {
662
662
  var a = e.getUTCFullYear();
663
663
  if (n.isTwoDigitYear) {
664
- var o = lt(n.year, a);
664
+ var o = ft(n.year, a);
665
665
  return e.setUTCFullYear(o, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
666
666
  }
667
667
  var i = "era" in t && t.era !== 1 ? 1 - n.year : n.year;
@@ -688,9 +688,9 @@ var Sn = {
688
688
  return t.isTwoDigitYear || t.year > 0;
689
689
  },
690
690
  set: function(e, t, n, r) {
691
- var a = Ve(e, r);
691
+ var a = $e(e, r);
692
692
  if (n.isTwoDigitYear) {
693
- var o = lt(n.year, a);
693
+ var o = ft(n.year, a);
694
694
  return e.setUTCFullYear(o, 0, r.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), de(e, r);
695
695
  }
696
696
  var i = "era" in t && t.era !== 1 ? 1 - n.year : n.year;
@@ -701,7 +701,7 @@ var Sn = {
701
701
  R: {
702
702
  priority: 130,
703
703
  parse: function(e, t, n, r) {
704
- return dt(t === "R" ? 4 : t.length, e);
704
+ return lt(t === "R" ? 4 : t.length, e);
705
705
  },
706
706
  set: function(e, t, n, r) {
707
707
  var a = /* @__PURE__ */ new Date(0);
@@ -728,7 +728,7 @@ var Sn = {
728
728
  u: {
729
729
  priority: 130,
730
730
  parse: function(e, t, n, r) {
731
- return dt(t === "u" ? 4 : t.length, e);
731
+ return lt(t === "u" ? 4 : t.length, e);
732
732
  },
733
733
  set: function(e, t, n, r) {
734
734
  return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
@@ -795,7 +795,7 @@ var Sn = {
795
795
  };
796
796
  switch (t) {
797
797
  case "M":
798
- return P(nt, e, a);
798
+ return P(rt, e, a);
799
799
  case "MM":
800
800
  return E(2, e, a);
801
801
  case "Mo":
@@ -825,7 +825,7 @@ var Sn = {
825
825
  };
826
826
  switch (t) {
827
827
  case "L":
828
- return P(nt, e, a);
828
+ return P(rt, e, a);
829
829
  case "LL":
830
830
  return E(2, e, a);
831
831
  case "Lo":
@@ -852,7 +852,7 @@ var Sn = {
852
852
  parse: function(e, t, n, r) {
853
853
  switch (t) {
854
854
  case "w":
855
- return P(rt, e);
855
+ return P(at, e);
856
856
  case "wo":
857
857
  return n.ordinalNumber(e, { unit: "week" });
858
858
  default:
@@ -879,7 +879,7 @@ var Sn = {
879
879
  parse: function(e, t, n, r) {
880
880
  switch (t) {
881
881
  case "I":
882
- return P(rt, e);
882
+ return P(at, e);
883
883
  case "Io":
884
884
  return n.ordinalNumber(e, { unit: "week" });
885
885
  default:
@@ -914,7 +914,7 @@ var Sn = {
914
914
  }
915
915
  },
916
916
  validate: function(e, t, n) {
917
- var r = ft(e.getUTCFullYear()), a = e.getUTCMonth();
917
+ var r = ht(e.getUTCFullYear()), a = e.getUTCMonth();
918
918
  return r ? t >= 1 && t <= Cn[a] : t >= 1 && t <= Mn[a];
919
919
  },
920
920
  set: function(e, t, n, r) {
@@ -936,7 +936,7 @@ var Sn = {
936
936
  }
937
937
  },
938
938
  validate: function(e, t, n) {
939
- return ft(e.getUTCFullYear()) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
939
+ return ht(e.getUTCFullYear()) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
940
940
  },
941
941
  set: function(e, t, n, r) {
942
942
  return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
@@ -980,7 +980,7 @@ var Sn = {
980
980
  return t >= 0 && t <= 6;
981
981
  },
982
982
  set: function(e, t, n, r) {
983
- return (e = Ie(e, n, r)).setUTCHours(0, 0, 0, 0), e;
983
+ return (e = qe(e, n, r)).setUTCHours(0, 0, 0, 0), e;
984
984
  },
985
985
  incompatibleTokens: ["D", "i", "e", "c", "t", "T"]
986
986
  },
@@ -1012,7 +1012,7 @@ var Sn = {
1012
1012
  return t >= 0 && t <= 6;
1013
1013
  },
1014
1014
  set: function(e, t, n, r) {
1015
- return (e = Ie(e, n, r)).setUTCHours(0, 0, 0, 0), e;
1015
+ return (e = qe(e, n, r)).setUTCHours(0, 0, 0, 0), e;
1016
1016
  },
1017
1017
  incompatibleTokens: [
1018
1018
  "y",
@@ -1060,7 +1060,7 @@ var Sn = {
1060
1060
  return t >= 0 && t <= 6;
1061
1061
  },
1062
1062
  set: function(e, t, n, r) {
1063
- return (e = Ie(e, n, r)).setUTCHours(0, 0, 0, 0), e;
1063
+ return (e = qe(e, n, r)).setUTCHours(0, 0, 0, 0), e;
1064
1064
  },
1065
1065
  incompatibleTokens: [
1066
1066
  "y",
@@ -1149,7 +1149,7 @@ var Sn = {
1149
1149
  }
1150
1150
  },
1151
1151
  set: function(e, t, n, r) {
1152
- return e.setUTCHours(qe(n), 0, 0, 0), e;
1152
+ return e.setUTCHours(We(n), 0, 0, 0), e;
1153
1153
  },
1154
1154
  incompatibleTokens: ["b", "B", "H", "K", "k", "t", "T"]
1155
1155
  },
@@ -1169,7 +1169,7 @@ var Sn = {
1169
1169
  }
1170
1170
  },
1171
1171
  set: function(e, t, n, r) {
1172
- return e.setUTCHours(qe(n), 0, 0, 0), e;
1172
+ return e.setUTCHours(We(n), 0, 0, 0), e;
1173
1173
  },
1174
1174
  incompatibleTokens: ["a", "B", "H", "K", "k", "t", "T"]
1175
1175
  },
@@ -1189,7 +1189,7 @@ var Sn = {
1189
1189
  }
1190
1190
  },
1191
1191
  set: function(e, t, n, r) {
1192
- return e.setUTCHours(qe(n), 0, 0, 0), e;
1192
+ return e.setUTCHours(We(n), 0, 0, 0), e;
1193
1193
  },
1194
1194
  incompatibleTokens: ["a", "b", "t", "T"]
1195
1195
  },
@@ -1332,16 +1332,16 @@ var Sn = {
1332
1332
  parse: function(e, t, n, r) {
1333
1333
  switch (t) {
1334
1334
  case "X":
1335
- return Z(at, e);
1336
- case "XX":
1337
1335
  return Z(ot, e);
1338
- case "XXXX":
1336
+ case "XX":
1339
1337
  return Z(it, e);
1338
+ case "XXXX":
1339
+ return Z(st, e);
1340
1340
  case "XXXXX":
1341
- return Z(ut, e);
1341
+ return Z(ct, e);
1342
1342
  case "XXX":
1343
1343
  default:
1344
- return Z(st, e);
1344
+ return Z(ut, e);
1345
1345
  }
1346
1346
  },
1347
1347
  set: function(e, t, n, r) {
@@ -1354,16 +1354,16 @@ var Sn = {
1354
1354
  parse: function(e, t, n, r) {
1355
1355
  switch (t) {
1356
1356
  case "x":
1357
- return Z(at, e);
1358
- case "xx":
1359
1357
  return Z(ot, e);
1360
- case "xxxx":
1358
+ case "xx":
1361
1359
  return Z(it, e);
1360
+ case "xxxx":
1361
+ return Z(st, e);
1362
1362
  case "xxxxx":
1363
- return Z(ut, e);
1363
+ return Z(ct, e);
1364
1364
  case "xxx":
1365
1365
  default:
1366
- return Z(st, e);
1366
+ return Z(ut, e);
1367
1367
  }
1368
1368
  },
1369
1369
  set: function(e, t, n, r) {
@@ -1374,7 +1374,7 @@ var Sn = {
1374
1374
  t: {
1375
1375
  priority: 40,
1376
1376
  parse: function(e, t, n, r) {
1377
- return ct(e);
1377
+ return dt(e);
1378
1378
  },
1379
1379
  set: function(e, t, n, r) {
1380
1380
  return [new Date(1e3 * n), { timestampIsSet: !0 }];
@@ -1384,7 +1384,7 @@ var Sn = {
1384
1384
  T: {
1385
1385
  priority: 20,
1386
1386
  parse: function(e, t, n, r) {
1387
- return ct(e);
1387
+ return dt(e);
1388
1388
  },
1389
1389
  set: function(e, t, n, r) {
1390
1390
  return [new Date(n), { timestampIsSet: !0 }];
@@ -1408,21 +1408,21 @@ function ma(e, t, n, r) {
1408
1408
  }).join("").match(Un), p = [];
1409
1409
  for (y = 0; y < w.length; y++) {
1410
1410
  var b = w[y];
1411
- !i.useAdditionalWeekYearTokens && Ct(b) && Be(b), !i.useAdditionalDayOfYearTokens && Mt(b) && Be(b);
1411
+ !i.useAdditionalWeekYearTokens && Ct(b) && Re(b), !i.useAdditionalDayOfYearTokens && Mt(b) && Re(b);
1412
1412
  var F = b[0], B = Sn[F];
1413
1413
  if (B) {
1414
1414
  var A = B.incompatibleTokens;
1415
1415
  if (Array.isArray(A)) {
1416
- for (var S = void 0, O = 0; O < p.length; O++) {
1416
+ for (var U = void 0, O = 0; O < p.length; O++) {
1417
1417
  var z = p[O].token;
1418
1418
  if (A.indexOf(z) !== -1 || z === F) {
1419
- S = p[O];
1419
+ U = p[O];
1420
1420
  break;
1421
1421
  }
1422
1422
  }
1423
- if (S)
1423
+ if (U)
1424
1424
  throw new RangeError(
1425
- "The format string mustn't contain `".concat(S.fullToken, "` and `").concat(b, "` at the same time")
1425
+ "The format string mustn't contain `".concat(U.fullToken, "` and `").concat(b, "` at the same time")
1426
1426
  );
1427
1427
  } else if (B.incompatibleTokens === "*" && p.length)
1428
1428
  throw new RangeError(
@@ -1531,7 +1531,7 @@ var Hn = function(e, t) {
1531
1531
  return Hn(e, t);
1532
1532
  },
1533
1533
  Y: function(e, t, n, r) {
1534
- var a = Ve(e, r), o = a > 0 ? a : 1 - a;
1534
+ var a = $e(e, r), o = a > 0 ? a : 1 - a;
1535
1535
  return t === "YY" ? x(o % 100, 2) : t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : x(o, t.length);
1536
1536
  },
1537
1537
  R: function(e, t) {
@@ -1782,7 +1782,7 @@ var Hn = function(e, t) {
1782
1782
  if (a === 0) return "Z";
1783
1783
  switch (t) {
1784
1784
  case "X":
1785
- return mt(a);
1785
+ return gt(a);
1786
1786
  case "XXXX":
1787
1787
  case "XX":
1788
1788
  return ue(a);
@@ -1796,7 +1796,7 @@ var Hn = function(e, t) {
1796
1796
  var a = (r._originalDate || e).getTimezoneOffset();
1797
1797
  switch (t) {
1798
1798
  case "x":
1799
- return mt(a);
1799
+ return gt(a);
1800
1800
  case "xxxx":
1801
1801
  case "xx":
1802
1802
  return ue(a);
@@ -1812,7 +1812,7 @@ var Hn = function(e, t) {
1812
1812
  case "O":
1813
1813
  case "OO":
1814
1814
  case "OOO":
1815
- return "GMT" + ht(a, ":");
1815
+ return "GMT" + mt(a, ":");
1816
1816
  case "OOOO":
1817
1817
  default:
1818
1818
  return "GMT" + ue(a, ":");
@@ -1824,7 +1824,7 @@ var Hn = function(e, t) {
1824
1824
  case "z":
1825
1825
  case "zz":
1826
1826
  case "zzz":
1827
- return "GMT" + ht(a, ":");
1827
+ return "GMT" + mt(a, ":");
1828
1828
  case "zzzz":
1829
1829
  default:
1830
1830
  return "GMT" + ue(a, ":");
@@ -1838,13 +1838,13 @@ var Hn = function(e, t) {
1838
1838
  return x((r._originalDate || e).getTime(), t.length);
1839
1839
  }
1840
1840
  };
1841
- function ht(e, t) {
1841
+ function mt(e, t) {
1842
1842
  var n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), o = r % 60;
1843
1843
  if (o === 0) return n + String(a);
1844
1844
  var i = t;
1845
1845
  return n + String(a) + i + x(o, 2);
1846
1846
  }
1847
- function mt(e, t) {
1847
+ function gt(e, t) {
1848
1848
  return e % 60 == 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) : ue(e, t);
1849
1849
  }
1850
1850
  function ue(e, t) {
@@ -1872,7 +1872,7 @@ function ye(e, t, n) {
1872
1872
  if (p === "'") return rr(w);
1873
1873
  var b = Kn[p];
1874
1874
  if (b)
1875
- return !a.useAdditionalWeekYearTokens && Ct(w) && Be(w), !a.useAdditionalDayOfYearTokens && Mt(w) && Be(w), b(y, w, o.localize, k);
1875
+ return !a.useAdditionalWeekYearTokens && Ct(w) && Re(w), !a.useAdditionalDayOfYearTokens && Mt(w) && Re(w), b(y, w, o.localize, k);
1876
1876
  if (p.match(nr))
1877
1877
  throw new RangeError(
1878
1878
  "Format string contains an unescaped latin alphabet character `" + p + "`"
@@ -2007,17 +2007,17 @@ function ge(e, t) {
2007
2007
  if (!(a <= o)) throw new RangeError("Invalid interval");
2008
2008
  return r >= a && r <= o;
2009
2009
  }
2010
- function Xe(e) {
2010
+ function _e(e) {
2011
2011
  T(1, arguments);
2012
2012
  var t = v(e);
2013
2013
  return t.setHours(0, 0, 0, 0), t;
2014
2014
  }
2015
2015
  function V(e, t) {
2016
2016
  T(2, arguments);
2017
- var n = Xe(e), r = Xe(t);
2017
+ var n = _e(e), r = _e(t);
2018
2018
  return n.getTime() === r.getTime();
2019
2019
  }
2020
- function _e(e, t) {
2020
+ function ze(e, t) {
2021
2021
  T(2, arguments);
2022
2022
  var n = v(e), r = C(t);
2023
2023
  if (isNaN(r)) return /* @__PURE__ */ new Date(NaN);
@@ -2065,18 +2065,18 @@ function Se(e) {
2065
2065
  };
2066
2066
  }
2067
2067
  function Dr() {
2068
- return Se(Xe(Date.now()));
2068
+ return Se(_e(Date.now()));
2069
2069
  }
2070
2070
  function ke(e, t) {
2071
2071
  var n = t ? Se(t) : Dr(), r = n.date, a = [n];
2072
2072
  return e > 1 && (a = Array.from(Array(e - 1).keys()).reduce(function(o) {
2073
- return r = _e(o[o.length - 1].date, 1), o.concat([Se(r)]);
2073
+ return r = ze(o[o.length - 1].date, 1), o.concat([Se(r)]);
2074
2074
  }, a)), a;
2075
2075
  }
2076
2076
  function he(e, t, n, r) {
2077
2077
  var a = e[r ? n > 0 ? 0 : e.length - r : n > 0 ? e.length - 1 : 0].date;
2078
2078
  return Array.from(Array(t).keys()).reduce(function(o) {
2079
- return a = o.length === 0 ? _e(a, n) : _e(a, n >= 0 ? 1 : -1), n > 0 ? o.concat([Se(a)]) : [Se(a)].concat(o);
2079
+ return a = o.length === 0 ? ze(a, n) : ze(a, n >= 0 ? 1 : -1), n > 0 ? o.concat([Se(a)]) : [Se(a)].concat(o);
2080
2080
  }, []);
2081
2081
  }
2082
2082
  function ga(e, t, n) {
@@ -2093,10 +2093,10 @@ function xe(e) {
2093
2093
  function yr(e) {
2094
2094
  var t = e.startDate, n = e.endDate, r = e.focusedInput, a = e.minBookingDate, o = e.maxBookingDate, i = e.onDatesChange, s = e.initialVisibleMonth, u = e.exactMinBookingDays, l = u !== void 0 && u, m = e.minBookingDays, d = m === void 0 ? 1 : m, g = e.numberOfMonths, c = g === void 0 ? 2 : g, y = e.firstDayOfWeek, k = y === void 0 ? 1 : y, D = e.isDateBlocked, w = D === void 0 ? function() {
2095
2095
  return !1;
2096
- } : D, p = e.unavailableDates, b = p === void 0 ? [] : p, F = e.changeActiveMonthOnSelect, B = F === void 0 || F, A = Ne(function() {
2096
+ } : D, p = e.unavailableDates, b = p === void 0 ? [] : p, F = e.changeActiveMonthOnSelect, B = F === void 0 || F, A = Ee(function() {
2097
2097
  return ke(c, t || s || null);
2098
- }), S = A[0], O = A[1], z = Ne(null), q = z[0], j = z[1], G = Ne(t), M = G[0], H = G[1];
2099
- Ee(function() {
2098
+ }), U = A[0], O = A[1], z = Ee(null), q = z[0], j = z[1], G = Ee(t), M = G[0], H = G[1];
2099
+ Oe(function() {
2100
2100
  return typeof window < "u" && window.addEventListener && window.addEventListener("keydown", X), function() {
2101
2101
  window.removeEventListener && window.removeEventListener("keydown", X);
2102
2102
  };
@@ -2118,60 +2118,60 @@ function yr(e) {
2118
2118
  };
2119
2119
  function X(h) {
2120
2120
  if ((h.key === "ArrowRight" || h.key === "ArrowLeft" || h.key === "ArrowDown" || h.key === "ArrowUp") && !M) {
2121
- var Q = S[0];
2121
+ var Q = U[0];
2122
2122
  te(Q.date), O(ke(c, Q.date));
2123
2123
  }
2124
2124
  }
2125
2125
  var be = I(
2126
2126
  function() {
2127
- O(he(S, c, -1)), H(null);
2128
- },
2129
- [S, c]
2130
- ), Re = I(
2131
- function() {
2132
- O(he(S, c, -1, 1)), H(null);
2127
+ O(he(U, c, -1)), H(null);
2133
2128
  },
2134
- [S, c]
2129
+ [U, c]
2135
2130
  ), Ye = I(
2136
2131
  function() {
2137
- O(he(S, c, 1)), H(null);
2132
+ O(he(U, c, -1, 1)), H(null);
2138
2133
  },
2139
- [S, c]
2134
+ [U, c]
2140
2135
  ), Fe = I(
2141
2136
  function() {
2142
- O(he(S, c, 1, 1)), H(null);
2137
+ O(he(U, c, 1)), H(null);
2143
2138
  },
2144
- [S, c]
2139
+ [U, c]
2145
2140
  ), He = I(
2141
+ function() {
2142
+ O(he(U, c, 1, 1)), H(null);
2143
+ },
2144
+ [U, c]
2145
+ ), Le = I(
2146
2146
  function(h) {
2147
2147
  O(ke(c, h)), H(null);
2148
2148
  },
2149
2149
  [c]
2150
2150
  ), Ue = I(
2151
2151
  function(h) {
2152
- h === void 0 && (h = 1), O(he(S, c, -(12 * h - c + 1))), H(null);
2152
+ h === void 0 && (h = 1), O(he(U, c, -(12 * h - c + 1))), H(null);
2153
2153
  },
2154
- [S, c]
2154
+ [U, c]
2155
2155
  ), ne = I(
2156
2156
  function(h) {
2157
- h === void 0 && (h = 1), O(he(S, c, 12 * h - c + 1)), H(null);
2157
+ h === void 0 && (h = 1), O(he(U, c, 12 * h - c + 1)), H(null);
2158
2158
  },
2159
- [S, c]
2159
+ [U, c]
2160
2160
  );
2161
2161
  return {
2162
2162
  firstDayOfWeek: k,
2163
- activeMonths: S,
2163
+ activeMonths: U,
2164
2164
  isDateSelected: function(h) {
2165
2165
  return fr(h, t, n);
2166
2166
  },
2167
2167
  isDateHovered: function(h) {
2168
2168
  return function(Q) {
2169
- var ae = Q.date, f = Q.startDate, U = Q.endDate, R = Q.isDateBlocked, _ = Q.hoveredDate, K = Q.minBookingDays, se = Q.exactMinBookingDays;
2169
+ var ae = Q.date, f = Q.startDate, S = Q.endDate, R = Q.isDateBlocked, _ = Q.hoveredDate, K = Q.minBookingDays, se = Q.exactMinBookingDays;
2170
2170
  return _ && K > 1 && se && ge(ae, { start: _, end: Y(_, K - 1) }) ? !le({ start: _, end: Y(_, K - 1) }).some(function(J) {
2171
2171
  return R(J);
2172
- }) : f && !U && _ && ge(ae, { start: f, end: Y(f, K - 1) }) && V(f, _) && K > 1 ? !le({ start: f, end: Y(f, K - 1) }).some(function(J) {
2172
+ }) : f && !S && _ && ge(ae, { start: f, end: Y(f, K - 1) }) && V(f, _) && K > 1 ? !le({ start: f, end: Y(f, K - 1) }).some(function(J) {
2173
2173
  return R(J);
2174
- }) : !(!f || U || !_ || oe(_, f) || !ge(ae, { start: f, end: _ })) && !le({ start: f, end: _ }).some(function(J) {
2174
+ }) : !(!f || S || !_ || oe(_, f) || !ge(ae, { start: f, end: _ })) && !le({ start: f, end: _ }).some(function(J) {
2175
2175
  return R(J);
2176
2176
  });
2177
2177
  }({
@@ -2206,7 +2206,7 @@ function yr(e) {
2206
2206
  onDateHover: function(h) {
2207
2207
  if (h) {
2208
2208
  if (h) {
2209
- var Q = !L(h) || t && V(h, t), ae = !a || !oe(h, Y(a, -1)), f = !o || !Me(h, o), U = Y(h, d - 1), R = !a || !oe(U, a), _ = !o || !Me(U, o), K = l && d > 1 && ae && f && R && _, se = t && !n && !l && ae && f, J = !(d > 1 && t) || ge(h, { start: t, end: Y(t, d - 2) }), Ft = t && V(h, t) && J;
2209
+ var Q = !L(h) || t && V(h, t), ae = !a || !oe(h, Y(a, -1)), f = !o || !Me(h, o), S = Y(h, d - 1), R = !a || !oe(S, a), _ = !o || !Me(S, o), K = l && d > 1 && ae && f && R && _, se = t && !n && !l && ae && f, J = !(d > 1 && t) || ge(h, { start: t, end: Y(t, d - 2) }), Ft = t && V(h, t) && J;
2210
2210
  Q && (K || se || Ft) ? j(h) : q !== null && j(null);
2211
2211
  }
2212
2212
  } else j(null);
@@ -2224,10 +2224,10 @@ function yr(e) {
2224
2224
  },
2225
2225
  onDateFocus: te,
2226
2226
  goToPreviousMonths: be,
2227
- goToPreviousMonthsByOneMonth: Re,
2228
- goToNextMonths: Ye,
2229
- goToNextMonthsByOneMonth: Fe,
2230
- goToDate: He,
2227
+ goToPreviousMonthsByOneMonth: Ye,
2228
+ goToNextMonths: Fe,
2229
+ goToNextMonthsByOneMonth: He,
2230
+ goToDate: Le,
2231
2231
  goToPreviousYear: Ue,
2232
2232
  goToNextYear: ne
2233
2233
  };
@@ -2259,8 +2259,8 @@ function br(e) {
2259
2259
  };
2260
2260
  }
2261
2261
  var Ot = /* @__PURE__ */ ((e) => (e.ShortDate = "MM/dd/yyyy", e.LongDate = "MMM dd yyyy", e.DayOfWeekDayOfMonth = "eeee, MMMM do", e))(Ot || {}), ee = /* @__PURE__ */ ((e) => (e.StartDate = "startDate", e.EndDate = "endDate", e))(ee || {});
2262
- const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth(), pr = ie, Bt = $e - 100, Rt = $e + 5, ze = Ot.ShortDate, Tr = {
2263
- dateFormat: ze,
2262
+ const ie = /* @__PURE__ */ new Date(), Ke = ie.getFullYear(), vr = ie.getMonth(), pr = ie, Bt = Ke - 100, Rt = Ke + 5, Ve = Ot.ShortDate, Tr = {
2263
+ dateFormat: Ve,
2264
2264
  endDate: null,
2265
2265
  focusedInput: null,
2266
2266
  withDateRange: !1,
@@ -2319,7 +2319,7 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2319
2319
  goToDate: () => {
2320
2320
  throw new Error("goToDate(): boolean not implemented");
2321
2321
  }
2322
- }, Yt = Ht(Tr), De = () => Lt(Yt), kr = ["root"], gt = {
2322
+ }, Yt = Ht(Tr), De = () => Lt(Yt), kr = ["root"], wt = {
2323
2323
  bg: "background.secondary",
2324
2324
  borderColor: "border.focus",
2325
2325
  color: "text.contrast",
@@ -2358,11 +2358,11 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2358
2358
  }
2359
2359
  },
2360
2360
  selectedStart: {
2361
- root: gt
2361
+ root: wt
2362
2362
  },
2363
2363
  selectedRange: {
2364
2364
  root: {
2365
- ...gt,
2365
+ ...wt,
2366
2366
  borderRadius: "sm"
2367
2367
  }
2368
2368
  }
@@ -2452,7 +2452,7 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2452
2452
  return "disabled";
2453
2453
  if (!t || !n)
2454
2454
  return l ? "selectedRange" : "default";
2455
- const m = Oe(e, r), d = Oe(t, r), g = Oe(n, r), c = m === d, y = m === g;
2455
+ const m = Be(e, r), d = Be(t, r), g = Be(n, r), c = m === d, y = m === g;
2456
2456
  return c && y ? "selectedRange" : c ? "selectedStart" : y ? "selectedEnd" : l && !c && !y ? "inRange" : "default";
2457
2457
  }, Cr = ({
2458
2458
  dayLabel: e,
@@ -2471,7 +2471,7 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2471
2471
  onDateSelect: w,
2472
2472
  onDateFocus: p,
2473
2473
  onDateHover: b
2474
- } = De(), { disabledDate: F, isSelected: B, onClick: A, onKeyDown: S, onMouseEnter: O, tabIndex: z } = br({
2474
+ } = De(), { disabledDate: F, isSelected: B, onClick: A, onKeyDown: U, onMouseEnter: O, tabIndex: z } = br({
2475
2475
  date: t,
2476
2476
  focusedDate: d,
2477
2477
  isDateFocused: g,
@@ -2503,12 +2503,12 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2503
2503
  j !== "disabled" && (A(), n());
2504
2504
  };
2505
2505
  return /* @__PURE__ */ N.jsx(
2506
- je,
2506
+ Ge,
2507
2507
  {
2508
2508
  className: "DatePicker__Day",
2509
- "data-testid": `${a}-${Oe(t, "MM/dd/yyyy")}`,
2509
+ "data-testid": `${a}-${Be(t, "MM/dd/yyyy")}`,
2510
2510
  onClick: H,
2511
- onKeyDown: S,
2511
+ onKeyDown: U,
2512
2512
  onMouseEnter: O,
2513
2513
  tabIndex: z,
2514
2514
  ref: o,
@@ -2541,7 +2541,7 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2541
2541
  });
2542
2542
  return;
2543
2543
  }
2544
- const k = y === 0 ? null : d - 1, D = y === 6 ? null : d + 1, w = k !== null ? e[k] : null, p = w !== null && typeof w == "object" ? ce({ date: w.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", b = D !== null ? e[D] : null, F = b !== null && typeof b == "object" ? ce({ date: b.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", B = c === 0 ? null : d - 7, A = d + 7 >= e.length ? null : d + 7, S = B !== null && B >= 0 ? e[B] : null, O = S !== null && typeof S == "object" ? ce({ date: S.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", z = A !== null && A < e.length ? e[A] : null, q = z !== null && typeof z == "object" ? ce({ date: z.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", j = y === 0 || !me(p), G = y === 6 || !me(F), M = c === 0 || !me(O), H = A === null || !me(q);
2544
+ const k = y === 0 ? null : d - 1, D = y === 6 ? null : d + 1, w = k !== null ? e[k] : null, p = w !== null && typeof w == "object" ? ce({ date: w.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", b = D !== null ? e[D] : null, F = b !== null && typeof b == "object" ? ce({ date: b.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", B = c === 0 ? null : d - 7, A = d + 7 >= e.length ? null : d + 7, U = B !== null && B >= 0 ? e[B] : null, O = U !== null && typeof U == "object" ? ce({ date: U.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", z = A !== null && A < e.length ? e[A] : null, q = z !== null && typeof z == "object" ? ce({ date: z.date, startDate: t, endDate: n, dateFormat: r, isDateSelected: a, isDateBlocked: o }) : "default", j = y === 0 || !me(p), G = y === 6 || !me(F), M = c === 0 || !me(O), H = A === null || !me(q);
2545
2545
  u.push({
2546
2546
  roundTopLeft: M && j,
2547
2547
  roundTopRight: M && G,
@@ -2556,7 +2556,7 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2556
2556
  showMonthLabels: n,
2557
2557
  ["data-testid"]: r = "kibble-datepicker-month"
2558
2558
  }) => {
2559
- const a = Ce(null), { firstDayOfWeek: o, activeMonth: i } = De(), s = $(() => t?.year || i?.year || $e, [t, i]), u = $(
2559
+ const a = Ce(null), { firstDayOfWeek: o, activeMonth: i } = De(), s = $(() => t?.year || i?.year || Ke, [t, i]), u = $(
2560
2560
  () => t?.month !== void 0 ? t.month : i?.month !== void 0 ? i.month : vr,
2561
2561
  [t, i]
2562
2562
  ), { days: l, weekdayLabels: m, monthLabel: d } = lr({
@@ -2565,9 +2565,9 @@ const ie = /* @__PURE__ */ new Date(), $e = ie.getFullYear(), vr = ie.getMonth()
2565
2565
  firstDayOfWeek: o
2566
2566
  }), g = Sr(l);
2567
2567
  return /* @__PURE__ */ N.jsxs(It, { ref: a, className: "DatePicker__Month", "data-testid": r, px: 3, children: [
2568
- n && /* @__PURE__ */ N.jsx(Ae, { size: "sm", fontWeight: "semibold", textAlign: "center", children: d }),
2569
- /* @__PURE__ */ N.jsx(Ke, { templateColumns: "repeat(7, 1fr)", my: 2, children: m.map((c) => /* @__PURE__ */ N.jsx(jt, { children: /* @__PURE__ */ N.jsx(vt, { children: /* @__PURE__ */ N.jsx(Ae, { size: "xs", fontWeight: "semibold", children: c }) }) }, c)) }),
2570
- /* @__PURE__ */ N.jsx(Ke, { templateColumns: "repeat(7, 1fr)", children: l.map((c, y) => typeof c == "object" ? /* @__PURE__ */ N.jsx(
2568
+ n && /* @__PURE__ */ N.jsx(je, { size: "sm", fontWeight: "semibold", textAlign: "center", children: d }),
2569
+ /* @__PURE__ */ N.jsx(Je, { templateColumns: "repeat(7, 1fr)", my: 2, children: m.map((c) => /* @__PURE__ */ N.jsx(jt, { children: /* @__PURE__ */ N.jsx(vt, { children: /* @__PURE__ */ N.jsx(je, { size: "xs", fontWeight: "semibold", children: c }) }) }, c)) }),
2570
+ /* @__PURE__ */ N.jsx(Je, { templateColumns: "repeat(7, 1fr)", children: l.map((c, y) => typeof c == "object" ? /* @__PURE__ */ N.jsx(
2571
2571
  Cr,
2572
2572
  {
2573
2573
  date: c.date,
@@ -2603,7 +2603,7 @@ function Er(e, t, n, r) {
2603
2603
  return i;
2604
2604
  }
2605
2605
  function Or(e, t, n) {
2606
- if (!Ge(n))
2606
+ if (!Xe(n))
2607
2607
  return !1;
2608
2608
  var r = typeof t;
2609
2609
  return (r == "number" ? _t(n) && zt(t, n.length) : r == "string" && t in n) ? Vt(n[t], e) : !1;
@@ -2618,24 +2618,24 @@ var Yr = /^\s+/;
2618
2618
  function Fr(e) {
2619
2619
  return e && e.slice(0, Rr(e) + 1).replace(Yr, "");
2620
2620
  }
2621
- var wt = NaN, Hr = /^[-+]0x[0-9a-f]+$/i, Lr = /^0b[01]+$/i, Ir = /^0o[0-7]+$/i, qr = parseInt;
2621
+ var Dt = NaN, Hr = /^[-+]0x[0-9a-f]+$/i, Lr = /^0b[01]+$/i, Ir = /^0o[0-7]+$/i, qr = parseInt;
2622
2622
  function Wr(e) {
2623
2623
  if (typeof e == "number")
2624
2624
  return e;
2625
2625
  if ($t(e))
2626
- return wt;
2627
- if (Ge(e)) {
2626
+ return Dt;
2627
+ if (Xe(e)) {
2628
2628
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2629
- e = Ge(t) ? t + "" : t;
2629
+ e = Xe(t) ? t + "" : t;
2630
2630
  }
2631
2631
  if (typeof e != "string")
2632
2632
  return e === 0 ? e : +e;
2633
2633
  e = Fr(e);
2634
2634
  var n = Lr.test(e);
2635
- return n || Ir.test(e) ? qr(e.slice(2), n ? 2 : 8) : Hr.test(e) ? wt : +e;
2635
+ return n || Ir.test(e) ? qr(e.slice(2), n ? 2 : 8) : Hr.test(e) ? Dt : +e;
2636
2636
  }
2637
2637
  var Qr = 1 / 0, Ar = 17976931348623157e292;
2638
- function We(e) {
2638
+ function Qe(e) {
2639
2639
  if (!e)
2640
2640
  return e === 0 ? e : 0;
2641
2641
  if (e = Wr(e), e === Qr || e === -1 / 0) {
@@ -2646,7 +2646,7 @@ function We(e) {
2646
2646
  }
2647
2647
  function jr(e) {
2648
2648
  return function(t, n, r) {
2649
- return r && typeof r != "number" && Or(t, n, r) && (n = r = void 0), t = We(t), n === void 0 ? (n = t, t = 0) : n = We(n), r = r === void 0 ? t < n ? 1 : -1 : We(r), Er(t, n, r);
2649
+ return r && typeof r != "number" && Or(t, n, r) && (n = r = void 0), t = Qe(t), n === void 0 ? (n = t, t = 0) : n = Qe(n), r = r === void 0 ? t < n ? 1 : -1 : Qe(r), Er(t, n, r);
2650
2650
  };
2651
2651
  }
2652
2652
  var Gr = jr();
@@ -2660,11 +2660,11 @@ function _r(e, t, n) {
2660
2660
  const s = Xr(i);
2661
2661
  return r.setMonth(t, Math.min(o, s)), r;
2662
2662
  }
2663
- function Dt(e, t, n) {
2663
+ function yt(e, t, n) {
2664
2664
  let r = re(e, n?.in);
2665
2665
  return isNaN(+r) ? fe(e, NaN) : (t.year != null && r.setFullYear(t.year), t.month != null && (r = _r(r, t.month)), t.date != null && r.setDate(t.date), t.hours != null && r.setHours(t.hours), t.minutes != null && r.setMinutes(t.minutes), t.seconds != null && r.setSeconds(t.seconds), t.milliseconds != null && r.setMilliseconds(t.milliseconds), r);
2666
2666
  }
2667
- const Qe = [
2667
+ const Ae = [
2668
2668
  "January",
2669
2669
  "February",
2670
2670
  "March",
@@ -2684,7 +2684,7 @@ function Da({
2684
2684
  ["data-testid"]: n = "kibble-datepicker-header"
2685
2685
  }) {
2686
2686
  const r = Ce(null), a = Ce(null), { focusedDate: o, activeMonth: i, minYear: s, maxYear: u, goToDate: l, goToNextMonths: m, goToPreviousMonths: d } = De(), g = $(
2687
- () => Qe.map((w, p) => {
2687
+ () => Ae.map((w, p) => {
2688
2688
  const b = p === i?.month;
2689
2689
  return {
2690
2690
  label: w,
@@ -2706,12 +2706,12 @@ function Da({
2706
2706
  }),
2707
2707
  [i?.year, u, s]
2708
2708
  ), y = ({ item: w }) => l(
2709
- Dt(o || ie, {
2709
+ yt(o || ie, {
2710
2710
  month: Number(w.value),
2711
2711
  year: i?.year
2712
2712
  })
2713
2713
  ), k = ({ item: w }) => l(
2714
- Dt(o || ie, {
2714
+ yt(o || ie, {
2715
2715
  month: i?.month,
2716
2716
  year: Number(w.value)
2717
2717
  })
@@ -2722,16 +2722,16 @@ function Da({
2722
2722
  });
2723
2723
  };
2724
2724
  return /* @__PURE__ */ N.jsxs(Kt, { className: "DatePicker__Header", "data-testid": n, w: "100%", justify: "space-between", py: 2, px: 3, children: [
2725
- /* @__PURE__ */ N.jsx(je, { iconName: "chevronLeft", onClick: d, variant: "ghostNeutral", size: "sm" }),
2725
+ /* @__PURE__ */ N.jsx(Ge, { iconName: "chevronLeft", onClick: d, variant: "ghostNeutral", size: "sm" }),
2726
2726
  t ? /* @__PURE__ */ N.jsxs(vt, { gap: 2, h: "100%", children: [
2727
2727
  /* @__PURE__ */ N.jsx(
2728
- Je,
2728
+ Ze,
2729
2729
  {
2730
2730
  "data-testid": `${n}-month-menu`,
2731
2731
  buttonProps: {
2732
2732
  variant: "tertiary",
2733
2733
  ...e,
2734
- text: Qe[i?.month || 0],
2734
+ text: Ae[i?.month || 0],
2735
2735
  size: "sm"
2736
2736
  },
2737
2737
  listProps: {
@@ -2745,7 +2745,7 @@ function Da({
2745
2745
  }
2746
2746
  ),
2747
2747
  /* @__PURE__ */ N.jsx(
2748
- Je,
2748
+ Ze,
2749
2749
  {
2750
2750
  "data-testid": `${n}-year-menu`,
2751
2751
  buttonProps: {
@@ -2764,15 +2764,15 @@ function Da({
2764
2764
  }
2765
2765
  }
2766
2766
  )
2767
- ] }) : /* @__PURE__ */ N.jsxs(Ae, { fontWeight: "semibold", children: [
2768
- Qe[i?.month || 0],
2767
+ ] }) : /* @__PURE__ */ N.jsxs(je, { fontWeight: "semibold", children: [
2768
+ Ae[i?.month || 0],
2769
2769
  " ",
2770
2770
  i?.year
2771
2771
  ] }),
2772
- /* @__PURE__ */ N.jsx(je, { iconName: "chevronRight", onClick: m, variant: "ghostNeutral", size: "sm" })
2772
+ /* @__PURE__ */ N.jsx(Ge, { iconName: "chevronRight", onClick: m, variant: "ghostNeutral", size: "sm" })
2773
2773
  ] });
2774
2774
  }
2775
- function yt(e, t) {
2775
+ function Ne(e, t) {
2776
2776
  const n = re(e, t?.in);
2777
2777
  return n.setHours(23, 59, 59, 999), n;
2778
2778
  }
@@ -2811,7 +2811,7 @@ function bt(e, t) {
2811
2811
  }
2812
2812
  const ya = ({
2813
2813
  children: e,
2814
- dateFormat: t = ze,
2814
+ dateFormat: t = Ve,
2815
2815
  endDate: n,
2816
2816
  inputProps: r,
2817
2817
  maxDate: a,
@@ -2827,39 +2827,39 @@ const ya = ({
2827
2827
  sameWidth: y = !1,
2828
2828
  standalone: k = !1
2829
2829
  }) => {
2830
- const [D, w] = Ne({
2830
+ const [D, w] = Ee({
2831
2831
  startDate: g,
2832
2832
  endDate: n || g,
2833
2833
  focusedInput: k ? ee.StartDate : null
2834
2834
  }), p = Ce(l), b = I(
2835
2835
  (f) => {
2836
2836
  if (o && f)
2837
- return $r(f, { days: o });
2837
+ return Ne($r(f, { days: o }));
2838
2838
  if (a)
2839
- return a;
2839
+ return Ne(a);
2840
2840
  },
2841
2841
  [a, o]
2842
2842
  ), F = I(
2843
- (f, U) => {
2844
- if (!U)
2845
- return U;
2843
+ (f, S) => {
2844
+ if (!S)
2845
+ return S;
2846
2846
  const R = b(f);
2847
- return R && bt(U, R) ? null : U;
2847
+ return R && bt(S, R) ? null : S;
2848
2848
  },
2849
2849
  [b]
2850
2850
  ), B = I(
2851
- (f, U) => !f || !U ? { startDate: f, endDate: U } : bt(f, U) ? { startDate: f, endDate: yt(f) } : { startDate: f, endDate: U },
2851
+ (f, S) => !f || !S ? { startDate: f, endDate: S } : bt(f, S) ? { startDate: f, endDate: Ne(f) } : { startDate: f, endDate: S },
2852
2852
  []
2853
2853
  ), A = (f) => {
2854
2854
  if (!f)
2855
2855
  return;
2856
- f.endDate || (f.endDate = f.startDate), f.endDate = F(f.startDate, f.endDate), f.startDate = f.startDate ? Wt(f.startDate) : f.startDate, f.endDate = f.endDate ? yt(f.endDate) : f.endDate;
2857
- const U = B(f.startDate, f.endDate);
2858
- f.startDate = U.startDate, f.endDate = U.endDate, w({
2856
+ f.endDate || (f.endDate = f.startDate), f.endDate = F(f.startDate, f.endDate), f.startDate = f.startDate ? Wt(f.startDate) : f.startDate, f.endDate = f.endDate ? Ne(f.endDate) : f.endDate;
2857
+ const S = B(f.startDate, f.endDate);
2858
+ f.startDate = S.startDate, f.endDate = S.endDate, w({
2859
2859
  ...f,
2860
2860
  focusedInput: f.focusedInput || ee.StartDate
2861
2861
  }), (!c && m || k && m) && m(f);
2862
- }, S = I((f) => {
2862
+ }, U = I((f) => {
2863
2863
  w({
2864
2864
  startDate: f.startDate,
2865
2865
  endDate: f.endDate || null,
@@ -2873,9 +2873,9 @@ const ya = ({
2873
2873
  });
2874
2874
  }, []), z = I(
2875
2875
  (f) => {
2876
- f && w((U) => {
2877
- const R = { ...U }, K = (U.focusedInput === ee.EndDate ? U.endDate : U.startDate) || /* @__PURE__ */ new Date(), se = new Date(K);
2878
- se.setHours(f.getHours(), f.getMinutes(), 0, 0), U.focusedInput === ee.EndDate ? R.endDate = se : R.startDate = se, R.endDate = F(R.startDate, R.endDate);
2876
+ f && w((S) => {
2877
+ const R = { ...S }, K = (S.focusedInput === ee.EndDate ? S.endDate : S.startDate) || S.startDate || /* @__PURE__ */ new Date(), se = new Date(K);
2878
+ se.setHours(f.getHours(), f.getMinutes(), 0, 0), S.focusedInput === ee.EndDate ? R.endDate = se : R.startDate = se, R.endDate = F(R.startDate, R.endDate);
2879
2879
  const J = B(R.startDate, R.endDate);
2880
2880
  return R.startDate = J.startDate, R.endDate = J.endDate, R;
2881
2881
  });
@@ -2892,10 +2892,10 @@ const ya = ({
2892
2892
  isDateFocused: L,
2893
2893
  isDateHovered: X,
2894
2894
  isDateSelected: be,
2895
- isFirstOrLastSelectedDate: Re,
2896
- onDateFocus: Ye,
2897
- onDateHover: Fe,
2898
- onDateSelect: He
2895
+ isFirstOrLastSelectedDate: Ye,
2896
+ onDateFocus: Fe,
2897
+ onDateHover: He,
2898
+ onDateSelect: Le
2899
2899
  } = yr({
2900
2900
  endDate: D.endDate,
2901
2901
  focusedInput: D.focusedInput,
@@ -2915,7 +2915,7 @@ const ya = ({
2915
2915
  [M, D.endDate, D.startDate]
2916
2916
  ), ne = I(
2917
2917
  (f) => {
2918
- w((U) => ({ ...U, focusedInput: f })), Ue(f);
2918
+ w((S) => ({ ...S, focusedInput: f })), Ue(f);
2919
2919
  },
2920
2920
  [Ue]
2921
2921
  ), h = () => {
@@ -2925,14 +2925,14 @@ const ya = ({
2925
2925
  m({ startDate: D.startDate, endDate: D.endDate });
2926
2926
  }, 200);
2927
2927
  }, [c, m, ne, D.endDate, D.startDate]), ae = $(() => q[0], [q]);
2928
- return Ee(() => {
2928
+ return Oe(() => {
2929
2929
  k && !D.focusedInput && ne(ee.StartDate);
2930
- }, [k, D.focusedInput, ne]), Ee(() => {
2930
+ }, [k, D.focusedInput, ne]), Oe(() => {
2931
2931
  if (p.current !== l) {
2932
2932
  const f = q[0]?.date || G || D.startDate || ie;
2933
2933
  M(f), p.current = l;
2934
2934
  }
2935
- }, [l, q, G, M, D.startDate]), Ee(() => {
2935
+ }, [l, q, G, M, D.startDate]), Oe(() => {
2936
2936
  w((f) => ({
2937
2937
  ...f,
2938
2938
  startDate: g,
@@ -2944,7 +2944,7 @@ const ya = ({
2944
2944
  value: {
2945
2945
  activeMonth: ae,
2946
2946
  activeMonths: q,
2947
- dateFormat: t || ze,
2947
+ dateFormat: t || Ve,
2948
2948
  endDate: D.endDate || null,
2949
2949
  firstDayOfWeek: j,
2950
2950
  focusedDate: G || pr,
@@ -2958,17 +2958,17 @@ const ya = ({
2958
2958
  isDateHovered: X,
2959
2959
  withDateRange: c || !1,
2960
2960
  isDateSelected: be,
2961
- isFirstOrLastSelectedDate: Re,
2961
+ isFirstOrLastSelectedDate: Ye,
2962
2962
  maxDate: a,
2963
2963
  maxYear: i || Rt,
2964
2964
  minDate: s,
2965
2965
  minYear: u || Bt,
2966
2966
  onDateChange: m,
2967
- onDateFocus: Ye,
2968
- onDateHover: Fe,
2969
- onDateSelect: He,
2967
+ onDateFocus: Fe,
2968
+ onDateHover: He,
2969
+ onDateSelect: Le,
2970
2970
  onTimeChange: z,
2971
- onQuickOptionSelect: S,
2971
+ onQuickOptionSelect: U,
2972
2972
  startDate: D.startDate,
2973
2973
  onClose: Q,
2974
2974
  clearDates: O,
@@ -2999,11 +2999,11 @@ export {
2999
2999
  Da as b,
3000
3000
  wa as c,
3001
3001
  zr as d,
3002
- yt as e,
3002
+ Ne as e,
3003
3003
  Vr as f,
3004
3004
  bt as i,
3005
3005
  ie as t,
3006
3006
  De as u,
3007
3007
  ma as x
3008
3008
  };
3009
- //# sourceMappingURL=datePicker.provider-CS1aBg9h.js.map
3009
+ //# sourceMappingURL=datePicker.provider-B3423SaO.js.map