@solostylist/ui-kit 1.0.113 → 1.0.115

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 (130) hide show
  1. package/dist/{Box-Deehc8LF.js → Box-D0kAx4PT.js} +5 -5
  2. package/dist/{ButtonBase-B-mcxJe8.js → ButtonBase-QnP537_L.js} +6 -5
  3. package/dist/{ChevronRight-BB4jrtLy.js → ChevronRight-SimL9kDt.js} +2 -2
  4. package/dist/{Close-DqRHeMAW.js → Close-BmQG3xZp.js} +2 -2
  5. package/dist/DefaultPropsProvider-CoEfFcSh.js +56 -0
  6. package/dist/{ExpandMore-CE1RzE_y.js → ExpandMore-CM0JYSoz.js} +2 -2
  7. package/dist/Favorite-BEKdrIQq.js +8 -0
  8. package/dist/GlobalStyles-CpyAg53D.js +59 -0
  9. package/dist/{Menu-HtTElywx.js → Menu-ClZKHyC1.js} +310 -327
  10. package/dist/{MenuItem-DzviefY7.js → MenuItem-DxJh8UvK.js} +6 -6
  11. package/dist/{Paper-pJ5bSU59.js → Paper-CpSojup3.js} +10 -10
  12. package/dist/{Select-C9Hk7BA8.js → Select-CmJydrV_.js} +376 -393
  13. package/dist/{Stack-TRopps6s.js → Stack-DKN2SxRo.js} +6 -6
  14. package/dist/{TransitionGroup--1HPPUFY.js → TransitionGroup-iVQWCEuB.js} +3 -3
  15. package/dist/{Typography-DGEEI1Q-.js → Typography-N0Mzi70r.js} +5 -5
  16. package/dist/assets/stripe-input.css +1 -1
  17. package/dist/{chunk-5P46WS5M-OG9gpzOE.js → chunk-6WTWBXEJ-CEca0jKr.js} +963 -922
  18. package/dist/{createSvgIcon-DCQI9UV5.js → createSvgIcon-L9c3q_HV.js} +104 -130
  19. package/dist/{createTheme-YLBX8GSj.js → createTheme-CSzTQZIR.js} +5 -4
  20. package/dist/defaultTheme-QdH8_nrP.js +5 -0
  21. package/dist/{extendSxProp-BNyKHzap.js → extendSxProp-BDhPgeA-.js} +1 -1
  22. package/dist/{index-B6k9mhKf.js → index--x2dvtup.js} +1 -1
  23. package/dist/index-C8hHiHry.js +33 -0
  24. package/dist/index-bBtpkEYO.js +44 -0
  25. package/dist/{jsx-runtime-DywqP_6a.js → jsx-runtime-OVHDjVDe.js} +2 -2
  26. package/dist/main.d.ts +4 -2
  27. package/dist/main.js +83 -79
  28. package/dist/{mergeSlotProps-N1VTlioP.js → mergeSlotProps-BqZn7QoU.js} +1 -1
  29. package/dist/s-accordion/s-accordion.js +10 -10
  30. package/dist/s-action-overlay/s-action-overlay.js +1 -1
  31. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  32. package/dist/s-avatar/s-avatar.js +1 -1
  33. package/dist/s-blur-text/s-blur-text.js +1 -1
  34. package/dist/s-button/s-button.js +1 -1
  35. package/dist/s-button-link/s-button-link.js +1 -1
  36. package/dist/s-carousel/s-carousel.js +46 -46
  37. package/dist/s-category-card/s-category-card.js +1 -1
  38. package/dist/s-chat-input/s-chat-input.js +3 -3
  39. package/dist/s-chat-message/s-chat-message.js +2 -2
  40. package/dist/s-checkbox/s-checkbox.js +1 -1
  41. package/dist/s-chip/s-chip.js +1 -1
  42. package/dist/s-chips/s-chips.js +1 -1
  43. package/dist/s-comment-message/s-comment-message.js +36 -37
  44. package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +2 -2
  45. package/dist/s-copyable-text/s-copyable-text.js +2 -2
  46. package/dist/s-countdown/s-count-down.js +1 -1
  47. package/dist/s-data-table/s-data-table.js +7 -7
  48. package/dist/s-date-picker/s-date-picker.js +49 -46
  49. package/dist/s-datetime-picker/s-datetime-picker.js +654 -651
  50. package/dist/s-dialog/s-dialog.js +2 -2
  51. package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
  52. package/dist/s-dialog-message/s-dialog-message.js +3 -3
  53. package/dist/s-empty/s-empty.js +1 -1
  54. package/dist/s-error/s-error.js +1 -1
  55. package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
  56. package/dist/s-file-icon/s-file-icon.js +2 -2
  57. package/dist/s-flex-box/s-flex-box.js +2 -2
  58. package/dist/s-form/s-form.js +1 -1
  59. package/dist/s-glow-button/s-glow-button.js +1 -1
  60. package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
  61. package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
  62. package/dist/s-icon-button/s-icon-button.js +1 -1
  63. package/dist/s-image-comparison/s-image-comparison.js +2 -2
  64. package/dist/s-image-modal/s-image-modal.js +3 -3
  65. package/dist/s-interactive-gallery/s-interactive-gallery.js +1 -1
  66. package/dist/s-label/s-label.js +2 -2
  67. package/dist/s-lazy-image/s-lazy-image.js +1 -1
  68. package/dist/s-localization-provider/s-localization-provider.js +378 -293
  69. package/dist/s-moving-border/s-moving-border.js +1 -1
  70. package/dist/s-multi-select/s-multi-select.js +4 -4
  71. package/dist/s-no-ssr/s-no-ssr.js +1 -1
  72. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +2 -2
  73. package/dist/s-pagination/s-pagination.js +1 -1
  74. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +1 -1
  75. package/dist/s-rating/s-rating.js +1 -1
  76. package/dist/s-review/s-review.js +2 -2
  77. package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
  78. package/dist/s-select/s-select.js +1 -1
  79. package/dist/s-skeleton/s-skeleton.js +1 -1
  80. package/dist/s-smart-text-field/s-smart-text-field.js +84 -84
  81. package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
  82. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +1 -1
  83. package/dist/s-stripe/s-stripe.js +1 -1
  84. package/dist/s-stripe/stripe-input.js +1 -1
  85. package/dist/s-tabs/s-tab-panel.js +1 -1
  86. package/dist/s-tabs/s-tab.js +1 -1
  87. package/dist/s-tabs/s-tabs.js +1 -1
  88. package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
  89. package/dist/s-text-editor/s-text-editor.js +2 -2
  90. package/dist/s-text-field/s-text-field.js +2 -2
  91. package/dist/s-text-shimmer/s-text-shimmer.js +8 -8
  92. package/dist/s-text-truncation/s-text-truncation.js +1 -1
  93. package/dist/s-theme-demo/index.d.ts +2 -0
  94. package/dist/s-theme-demo/index.js +4 -0
  95. package/dist/s-theme-demo/package.json +5 -0
  96. package/dist/s-theme-demo/s-theme-demo.d.ts +31 -0
  97. package/dist/s-theme-demo/s-theme-demo.js +417 -0
  98. package/dist/s-theme-provider/index.d.ts +2 -0
  99. package/dist/s-theme-provider/index.js +5 -2
  100. package/dist/s-theme-provider/s-theme-provider.d.ts +2 -2
  101. package/dist/s-theme-provider/s-theme-provider.js +13 -13
  102. package/dist/s-theme-provider/use-theme.d.ts +51 -0
  103. package/dist/s-theme-provider/use-theme.js +670 -0
  104. package/dist/s-theme-switch/index.d.ts +2 -0
  105. package/dist/s-theme-switch/index.js +4 -0
  106. package/dist/s-theme-switch/package.json +5 -0
  107. package/dist/s-theme-switch/s-theme-switch.d.ts +6 -0
  108. package/dist/s-theme-switch/s-theme-switch.js +43 -0
  109. package/dist/s-tip/s-tip.js +4 -4
  110. package/dist/s-typewriter-text/s-typewriter-text.js +1 -1
  111. package/dist/{styled-DOEEZAON.js → styled-B6SqfqyN.js} +3 -3
  112. package/dist/theme/components/avatar.js +2 -2
  113. package/dist/theme/components/chip.js +92 -30
  114. package/dist/theme/components/components.d.ts +2 -0
  115. package/dist/theme/components/tooltip.d.ts +2 -0
  116. package/dist/theme/components/tooltip.js +4 -2
  117. package/dist/theme/customizations/inputs.js +2 -2
  118. package/dist/theme/customizations/navigation.js +3 -2
  119. package/dist/theme/theme-primitives.d.ts +97 -0
  120. package/dist/theme/theme-primitives.js +290 -87
  121. package/dist/{useControlled-nm4pBabJ.js → useControlled-D1L5tREc.js} +11 -11
  122. package/dist/useId-CK6Kn3Tn.js +21 -0
  123. package/dist/{useMobilePicker-c5_EH1sg.js → useMobilePicker-BKb9wDk9.js} +4043 -3995
  124. package/dist/{useTheme-w9o5xUBz.js → useTheme-DQFlX-BU.js} +1 -1
  125. package/dist/{useThemeProps-CPsDWmFG.js → useThemeProps-DI2LSvKR.js} +1 -1
  126. package/dist/utils/dayjs.js +14 -14
  127. package/dist/{warning-KQY_8msi.js → warning-DRu3W3_g.js} +4 -4
  128. package/package.json +6 -6
  129. package/dist/defaultTheme-DXvvOU_p.js +0 -5
  130. package/dist/index-B3csTTDl.js +0 -95
@@ -1,261 +1,264 @@
1
- import { j as Mt } from "../jsx-runtime-DywqP_6a.js";
2
- import { w as yt, L as gt } from "../warning-KQY_8msi.js";
3
- import { a as Tt } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
4
- import c from "dayjs";
5
- import { g as F } from "../_commonjsHelpers-B4e78b8K.js";
6
- var I = { exports: {} }, Yt = I.exports, it;
7
- function Dt() {
8
- return it || (it = 1, function(p, L) {
9
- (function(l, t) {
10
- p.exports = t();
11
- })(Yt, function() {
12
- var l = "week", t = "year";
13
- return function(e, i, a) {
14
- var r = i.prototype;
15
- r.week = function(s) {
16
- if (s === void 0 && (s = null), s !== null) return this.add(7 * (s - this.week()), "day");
17
- var u = this.$locale().yearStart || 1;
1
+ var ye = Object.defineProperty;
2
+ var ge = (m, e, t) => e in m ? ye(m, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[e] = t;
3
+ var r = (m, e, t) => ge(m, typeof e != "symbol" ? e + "" : e, t);
4
+ import { j as Te } from "../jsx-runtime-OVHDjVDe.js";
5
+ import { w as Ye, L as De } from "../warning-DRu3W3_g.js";
6
+ import { a as we } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
7
+ import p from "dayjs";
8
+ import { g as H } from "../_commonjsHelpers-B4e78b8K.js";
9
+ var V = { exports: {} }, xe = V.exports, oe;
10
+ function Le() {
11
+ return oe || (oe = 1, (function(m, e) {
12
+ (function(t, n) {
13
+ m.exports = n();
14
+ })(xe, (function() {
15
+ var t = "week", n = "year";
16
+ return function(l, f, o) {
17
+ var a = f.prototype;
18
+ a.week = function(u) {
19
+ if (u === void 0 && (u = null), u !== null) return this.add(7 * (u - this.week()), "day");
20
+ var M = this.$locale().yearStart || 1;
18
21
  if (this.month() === 11 && this.date() > 25) {
19
- var h = a(this).startOf(t).add(1, t).date(u), m = a(this).endOf(l);
20
- if (h.isBefore(m)) return 1;
22
+ var d = o(this).startOf(n).add(1, n).date(M), y = o(this).endOf(t);
23
+ if (d.isBefore(y)) return 1;
21
24
  }
22
- var y = a(this).startOf(t).date(u).startOf(l).subtract(1, "millisecond"), P = this.diff(y, l, !0);
23
- return P < 0 ? a(this).startOf("week").week() : Math.ceil(P);
24
- }, r.weeks = function(s) {
25
- return s === void 0 && (s = null), this.week(s);
25
+ var T = o(this).startOf(n).date(M).startOf(t).subtract(1, "millisecond"), $ = this.diff(T, t, !0);
26
+ return $ < 0 ? o(this).startOf("week").week() : Math.ceil($);
27
+ }, a.weeks = function(u) {
28
+ return u === void 0 && (u = null), this.week(u);
26
29
  };
27
30
  };
28
- });
29
- }(I)), I.exports;
31
+ }));
32
+ })(V)), V.exports;
30
33
  }
31
- var wt = Dt();
32
- const xt = /* @__PURE__ */ F(wt);
33
- var V = { exports: {} }, Lt = V.exports, at;
34
- function Ot() {
35
- return at || (at = 1, function(p, L) {
36
- (function(l, t) {
37
- p.exports = t();
38
- })(Lt, function() {
39
- var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, e = /\d/, i = /\d\d/, a = /\d\d?/, r = /\d*[^-_:/,()\s\d]+/, s = {}, u = function(n) {
40
- return (n = +n) + (n > 68 ? 1900 : 2e3);
41
- }, h = function(n) {
42
- return function(o) {
43
- this[n] = +o;
34
+ var Oe = Le();
35
+ const ke = /* @__PURE__ */ H(Oe);
36
+ var Z = { exports: {} }, ze = Z.exports, ie;
37
+ function Se() {
38
+ return ie || (ie = 1, (function(m, e) {
39
+ (function(t, n) {
40
+ m.exports = n();
41
+ })(ze, (function() {
42
+ var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, f = /\d\d/, o = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, u = {}, M = function(s) {
43
+ return (s = +s) + (s > 68 ? 1900 : 2e3);
44
+ }, d = function(s) {
45
+ return function(i) {
46
+ this[s] = +i;
44
47
  };
45
- }, m = [/[+-]\d\d:?(\d\d)?|Z/, function(n) {
46
- (this.zone || (this.zone = {})).offset = function(o) {
47
- if (!o || o === "Z") return 0;
48
- var d = o.match(/([+-]|\d\d)/g), f = 60 * d[1] + (+d[2] || 0);
49
- return f === 0 ? 0 : d[0] === "+" ? -f : f;
50
- }(n);
51
- }], y = function(n) {
52
- var o = s[n];
53
- return o && (o.indexOf ? o : o.s.concat(o.f));
54
- }, P = function(n, o) {
55
- var d, f = s.meridiem;
56
- if (f) {
57
- for (var Y = 1; Y <= 24; Y += 1) if (n.indexOf(f(Y, 0, o)) > -1) {
58
- d = Y > 12;
48
+ }, y = [/[+-]\d\d:?(\d\d)?|Z/, function(s) {
49
+ (this.zone || (this.zone = {})).offset = (function(i) {
50
+ if (!i || i === "Z") return 0;
51
+ var h = i.match(/([+-]|\d\d)/g), c = 60 * h[1] + (+h[2] || 0);
52
+ return c === 0 ? 0 : h[0] === "+" ? -c : c;
53
+ })(s);
54
+ }], T = function(s) {
55
+ var i = u[s];
56
+ return i && (i.indexOf ? i : i.s.concat(i.f));
57
+ }, $ = function(s, i) {
58
+ var h, c = u.meridiem;
59
+ if (c) {
60
+ for (var w = 1; w <= 24; w += 1) if (s.indexOf(c(w, 0, i)) > -1) {
61
+ h = w > 12;
59
62
  break;
60
63
  }
61
- } else d = n === (o ? "pm" : "PM");
62
- return d;
63
- }, q = { A: [r, function(n) {
64
- this.afternoon = P(n, !1);
65
- }], a: [r, function(n) {
66
- this.afternoon = P(n, !0);
67
- }], Q: [e, function(n) {
68
- this.month = 3 * (n - 1) + 1;
69
- }], S: [e, function(n) {
70
- this.milliseconds = 100 * +n;
71
- }], SS: [i, function(n) {
72
- this.milliseconds = 10 * +n;
73
- }], SSS: [/\d{3}/, function(n) {
74
- this.milliseconds = +n;
75
- }], s: [a, h("seconds")], ss: [a, h("seconds")], m: [a, h("minutes")], mm: [a, h("minutes")], H: [a, h("hours")], h: [a, h("hours")], HH: [a, h("hours")], hh: [a, h("hours")], D: [a, h("day")], DD: [i, h("day")], Do: [r, function(n) {
76
- var o = s.ordinal, d = n.match(/\d+/);
77
- if (this.day = d[0], o) for (var f = 1; f <= 31; f += 1) o(f).replace(/\[|\]/g, "") === n && (this.day = f);
78
- }], w: [a, h("week")], ww: [i, h("week")], M: [a, h("month")], MM: [i, h("month")], MMM: [r, function(n) {
79
- var o = y("months"), d = (y("monthsShort") || o.map(function(f) {
80
- return f.slice(0, 3);
81
- })).indexOf(n) + 1;
82
- if (d < 1) throw new Error();
83
- this.month = d % 12 || d;
84
- }], MMMM: [r, function(n) {
85
- var o = y("months").indexOf(n) + 1;
86
- if (o < 1) throw new Error();
87
- this.month = o % 12 || o;
88
- }], Y: [/[+-]?\d+/, h("year")], YY: [i, function(n) {
89
- this.year = u(n);
90
- }], YYYY: [/\d{4}/, h("year")], Z: m, ZZ: m };
91
- function $(n) {
92
- var o, d;
93
- o = n, d = s && s.formats;
94
- for (var f = (n = o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(S, O, T) {
95
- var g = T && T.toUpperCase();
96
- return O || d[T] || l[T] || d[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(k, z, j) {
97
- return z || j.slice(1);
98
- });
99
- })).match(t), Y = f.length, D = 0; D < Y; D += 1) {
100
- var U = f[D], v = q[U], w = v && v[0], x = v && v[1];
101
- f[D] = x ? { regex: w, parser: x } : U.replace(/^\[|\]$/g, "");
64
+ } else h = s === (i ? "pm" : "PM");
65
+ return h;
66
+ }, _ = { A: [a, function(s) {
67
+ this.afternoon = $(s, !1);
68
+ }], a: [a, function(s) {
69
+ this.afternoon = $(s, !0);
70
+ }], Q: [l, function(s) {
71
+ this.month = 3 * (s - 1) + 1;
72
+ }], S: [l, function(s) {
73
+ this.milliseconds = 100 * +s;
74
+ }], SS: [f, function(s) {
75
+ this.milliseconds = 10 * +s;
76
+ }], SSS: [/\d{3}/, function(s) {
77
+ this.milliseconds = +s;
78
+ }], s: [o, d("seconds")], ss: [o, d("seconds")], m: [o, d("minutes")], mm: [o, d("minutes")], H: [o, d("hours")], h: [o, d("hours")], HH: [o, d("hours")], hh: [o, d("hours")], D: [o, d("day")], DD: [f, d("day")], Do: [a, function(s) {
79
+ var i = u.ordinal, h = s.match(/\d+/);
80
+ if (this.day = h[0], i) for (var c = 1; c <= 31; c += 1) i(c).replace(/\[|\]/g, "") === s && (this.day = c);
81
+ }], w: [o, d("week")], ww: [f, d("week")], M: [o, d("month")], MM: [f, d("month")], MMM: [a, function(s) {
82
+ var i = T("months"), h = (T("monthsShort") || i.map((function(c) {
83
+ return c.slice(0, 3);
84
+ }))).indexOf(s) + 1;
85
+ if (h < 1) throw new Error();
86
+ this.month = h % 12 || h;
87
+ }], MMMM: [a, function(s) {
88
+ var i = T("months").indexOf(s) + 1;
89
+ if (i < 1) throw new Error();
90
+ this.month = i % 12 || i;
91
+ }], Y: [/[+-]?\d+/, d("year")], YY: [f, function(s) {
92
+ this.year = M(s);
93
+ }], YYYY: [/\d{4}/, d("year")], Z: y, ZZ: y };
94
+ function A(s) {
95
+ var i, h;
96
+ i = s, h = u && u.formats;
97
+ for (var c = (s = i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(j, k, D) {
98
+ var Y = D && D.toUpperCase();
99
+ return k || h[D] || t[D] || h[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(z, S, C) {
100
+ return S || C.slice(1);
101
+ }));
102
+ }))).match(n), w = c.length, x = 0; x < w; x += 1) {
103
+ var F = c[x], v = _[F], L = v && v[0], O = v && v[1];
104
+ c[x] = O ? { regex: L, parser: O } : F.replace(/^\[|\]$/g, "");
102
105
  }
103
- return function(S) {
104
- for (var O = {}, T = 0, g = 0; T < Y; T += 1) {
105
- var k = f[T];
106
- if (typeof k == "string") g += k.length;
106
+ return function(j) {
107
+ for (var k = {}, D = 0, Y = 0; D < w; D += 1) {
108
+ var z = c[D];
109
+ if (typeof z == "string") Y += z.length;
107
110
  else {
108
- var z = k.regex, j = k.parser, H = S.slice(g), A = z.exec(H)[0];
109
- j.call(O, A), S = S.replace(A, "");
111
+ var S = z.regex, C = z.parser, W = j.slice(Y), U = S.exec(W)[0];
112
+ C.call(k, U), j = j.replace(U, "");
110
113
  }
111
114
  }
112
- return function(C) {
113
- var W = C.afternoon;
114
- if (W !== void 0) {
115
- var M = C.hours;
116
- W ? M < 12 && (C.hours += 12) : M === 12 && (C.hours = 0), delete C.afternoon;
115
+ return (function(P) {
116
+ var b = P.afternoon;
117
+ if (b !== void 0) {
118
+ var g = P.hours;
119
+ b ? g < 12 && (P.hours += 12) : g === 12 && (P.hours = 0), delete P.afternoon;
117
120
  }
118
- }(O), O;
121
+ })(k), k;
119
122
  };
120
123
  }
121
- return function(n, o, d) {
122
- d.p.customParseFormat = !0, n && n.parseTwoDigitYear && (u = n.parseTwoDigitYear);
123
- var f = o.prototype, Y = f.parse;
124
- f.parse = function(D) {
125
- var U = D.date, v = D.utc, w = D.args;
124
+ return function(s, i, h) {
125
+ h.p.customParseFormat = !0, s && s.parseTwoDigitYear && (M = s.parseTwoDigitYear);
126
+ var c = i.prototype, w = c.parse;
127
+ c.parse = function(x) {
128
+ var F = x.date, v = x.utc, L = x.args;
126
129
  this.$u = v;
127
- var x = w[1];
128
- if (typeof x == "string") {
129
- var S = w[2] === !0, O = w[3] === !0, T = S || O, g = w[2];
130
- O && (g = w[2]), s = this.$locale(), !S && g && (s = d.Ls[g]), this.$d = function(H, A, C, W) {
130
+ var O = L[1];
131
+ if (typeof O == "string") {
132
+ var j = L[2] === !0, k = L[3] === !0, D = j || k, Y = L[2];
133
+ k && (Y = L[2]), u = this.$locale(), !j && Y && (u = h.Ls[Y]), this.$d = (function(W, U, P, b) {
131
134
  try {
132
- if (["x", "X"].indexOf(A) > -1) return new Date((A === "X" ? 1e3 : 1) * H);
133
- var M = $(A)(H), _ = M.year, b = M.month, ft = M.day, ct = M.hours, lt = M.minutes, mt = M.seconds, pt = M.milliseconds, st = M.zone, nt = M.week, R = /* @__PURE__ */ new Date(), X = ft || (_ || b ? 1 : R.getDate()), Q = _ || R.getFullYear(), B = 0;
134
- _ && !b || (B = b > 0 ? b - 1 : R.getMonth());
135
- var E, J = ct || 0, K = lt || 0, tt = mt || 0, et = pt || 0;
136
- return st ? new Date(Date.UTC(Q, B, X, J, K, tt, et + 60 * st.offset * 1e3)) : C ? new Date(Date.UTC(Q, B, X, J, K, tt, et)) : (E = new Date(Q, B, X, J, K, tt, et), nt && (E = W(E).week(nt).toDate()), E);
135
+ if (["x", "X"].indexOf(U) > -1) return new Date((U === "X" ? 1e3 : 1) * W);
136
+ var g = A(U)(W), R = g.year, B = g.month, ce = g.day, le = g.hours, me = g.minutes, pe = g.seconds, Me = g.milliseconds, se = g.zone, ae = g.week, X = /* @__PURE__ */ new Date(), Q = ce || (R || B ? 1 : X.getDate()), J = R || X.getFullYear(), E = 0;
137
+ R && !B || (E = B > 0 ? B - 1 : X.getMonth());
138
+ var I, K = le || 0, ee = me || 0, te = pe || 0, re = Me || 0;
139
+ return se ? new Date(Date.UTC(J, E, Q, K, ee, te, re + 60 * se.offset * 1e3)) : P ? new Date(Date.UTC(J, E, Q, K, ee, te, re)) : (I = new Date(J, E, Q, K, ee, te, re), ae && (I = b(I).week(ae).toDate()), I);
137
140
  } catch {
138
141
  return /* @__PURE__ */ new Date("");
139
142
  }
140
- }(U, x, v, d), this.init(), g && g !== !0 && (this.$L = this.locale(g).$L), T && U != this.format(x) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
141
- } else if (x instanceof Array) for (var k = x.length, z = 1; z <= k; z += 1) {
142
- w[1] = x[z - 1];
143
- var j = d.apply(this, w);
144
- if (j.isValid()) {
145
- this.$d = j.$d, this.$L = j.$L, this.init();
143
+ })(F, O, v, h), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), D && F != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), u = {};
144
+ } else if (O instanceof Array) for (var z = O.length, S = 1; S <= z; S += 1) {
145
+ L[1] = O[S - 1];
146
+ var C = h.apply(this, L);
147
+ if (C.isValid()) {
148
+ this.$d = C.$d, this.$L = C.$L, this.init();
146
149
  break;
147
150
  }
148
- z === k && (this.$d = /* @__PURE__ */ new Date(""));
151
+ S === z && (this.$d = /* @__PURE__ */ new Date(""));
149
152
  }
150
- else Y.call(this, D);
153
+ else w.call(this, x);
151
154
  };
152
155
  };
153
- });
154
- }(V)), V.exports;
156
+ }));
157
+ })(Z)), Z.exports;
155
158
  }
156
- var kt = Ot();
157
- const zt = /* @__PURE__ */ F(kt);
158
- var Z = { exports: {} }, vt = Z.exports, ot;
159
- function St() {
160
- return ot || (ot = 1, function(p, L) {
161
- (function(l, t) {
162
- p.exports = t();
163
- })(vt, function() {
164
- var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
165
- return function(t, e, i) {
166
- var a = e.prototype, r = a.format;
167
- i.en.formats = l, a.format = function(s) {
168
- s === void 0 && (s = "YYYY-MM-DDTHH:mm:ssZ");
169
- var u = this.$locale().formats, h = function(m, y) {
170
- return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, q, $) {
171
- var n = $ && $.toUpperCase();
172
- return q || y[$] || l[$] || y[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, d, f) {
173
- return d || f.slice(1);
174
- });
175
- });
176
- }(s, u === void 0 ? {} : u);
177
- return r.call(this, h);
159
+ var ve = Se();
160
+ const je = /* @__PURE__ */ H(ve);
161
+ var G = { exports: {} }, Ce = G.exports, ue;
162
+ function Pe() {
163
+ return ue || (ue = 1, (function(m, e) {
164
+ (function(t, n) {
165
+ m.exports = n();
166
+ })(Ce, (function() {
167
+ var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
168
+ return function(n, l, f) {
169
+ var o = l.prototype, a = o.format;
170
+ f.en.formats = t, o.format = function(u) {
171
+ u === void 0 && (u = "YYYY-MM-DDTHH:mm:ssZ");
172
+ var M = this.$locale().formats, d = (function(y, T) {
173
+ return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function($, _, A) {
174
+ var s = A && A.toUpperCase();
175
+ return _ || T[A] || t[A] || T[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(i, h, c) {
176
+ return h || c.slice(1);
177
+ }));
178
+ }));
179
+ })(u, M === void 0 ? {} : M);
180
+ return a.call(this, d);
178
181
  };
179
182
  };
180
- });
181
- }(Z)), Z.exports;
183
+ }));
184
+ })(G)), G.exports;
182
185
  }
183
- var jt = St();
184
- const Ct = /* @__PURE__ */ F(jt);
185
- var G = { exports: {} }, Pt = G.exports, ht;
186
- function $t() {
187
- return ht || (ht = 1, function(p, L) {
188
- (function(l, t) {
189
- p.exports = t();
190
- })(Pt, function() {
191
- return function(l, t, e) {
192
- t.prototype.isBetween = function(i, a, r, s) {
193
- var u = e(i), h = e(a), m = (s = s || "()")[0] === "(", y = s[1] === ")";
194
- return (m ? this.isAfter(u, r) : !this.isBefore(u, r)) && (y ? this.isBefore(h, r) : !this.isAfter(h, r)) || (m ? this.isBefore(u, r) : !this.isAfter(u, r)) && (y ? this.isAfter(h, r) : !this.isBefore(h, r));
186
+ var $e = Pe();
187
+ const Ae = /* @__PURE__ */ H($e);
188
+ var N = { exports: {} }, Ue = N.exports, de;
189
+ function Fe() {
190
+ return de || (de = 1, (function(m, e) {
191
+ (function(t, n) {
192
+ m.exports = n();
193
+ })(Ue, (function() {
194
+ return function(t, n, l) {
195
+ n.prototype.isBetween = function(f, o, a, u) {
196
+ var M = l(f), d = l(o), y = (u = u || "()")[0] === "(", T = u[1] === ")";
197
+ return (y ? this.isAfter(M, a) : !this.isBefore(M, a)) && (T ? this.isBefore(d, a) : !this.isAfter(d, a)) || (y ? this.isBefore(M, a) : !this.isAfter(M, a)) && (T ? this.isAfter(d, a) : !this.isBefore(d, a));
195
198
  };
196
199
  };
197
- });
198
- }(G)), G.exports;
200
+ }));
201
+ })(N)), N.exports;
199
202
  }
200
- var At = $t();
201
- const Ut = /* @__PURE__ */ F(At);
202
- var N = { exports: {} }, Ft = N.exports, ut;
203
- function Ht() {
204
- return ut || (ut = 1, function(p, L) {
205
- (function(l, t) {
206
- p.exports = t();
207
- })(Ft, function() {
208
- return function(l, t) {
209
- var e = t.prototype, i = e.format;
210
- e.format = function(a) {
211
- var r = this, s = this.$locale();
212
- if (!this.isValid()) return i.bind(this)(a);
213
- var u = this.$utils(), h = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(m) {
214
- switch (m) {
203
+ var He = Fe();
204
+ const We = /* @__PURE__ */ H(He);
205
+ var q = { exports: {} }, be = q.exports, fe;
206
+ function Be() {
207
+ return fe || (fe = 1, (function(m, e) {
208
+ (function(t, n) {
209
+ m.exports = n();
210
+ })(be, (function() {
211
+ return function(t, n) {
212
+ var l = n.prototype, f = l.format;
213
+ l.format = function(o) {
214
+ var a = this, u = this.$locale();
215
+ if (!this.isValid()) return f.bind(this)(o);
216
+ var M = this.$utils(), d = (o || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(y) {
217
+ switch (y) {
215
218
  case "Q":
216
- return Math.ceil((r.$M + 1) / 3);
219
+ return Math.ceil((a.$M + 1) / 3);
217
220
  case "Do":
218
- return s.ordinal(r.$D);
221
+ return u.ordinal(a.$D);
219
222
  case "gggg":
220
- return r.weekYear();
223
+ return a.weekYear();
221
224
  case "GGGG":
222
- return r.isoWeekYear();
225
+ return a.isoWeekYear();
223
226
  case "wo":
224
- return s.ordinal(r.week(), "W");
227
+ return u.ordinal(a.week(), "W");
225
228
  case "w":
226
229
  case "ww":
227
- return u.s(r.week(), m === "w" ? 1 : 2, "0");
230
+ return M.s(a.week(), y === "w" ? 1 : 2, "0");
228
231
  case "W":
229
232
  case "WW":
230
- return u.s(r.isoWeek(), m === "W" ? 1 : 2, "0");
233
+ return M.s(a.isoWeek(), y === "W" ? 1 : 2, "0");
231
234
  case "k":
232
235
  case "kk":
233
- return u.s(String(r.$H === 0 ? 24 : r.$H), m === "k" ? 1 : 2, "0");
236
+ return M.s(String(a.$H === 0 ? 24 : a.$H), y === "k" ? 1 : 2, "0");
234
237
  case "X":
235
- return Math.floor(r.$d.getTime() / 1e3);
238
+ return Math.floor(a.$d.getTime() / 1e3);
236
239
  case "x":
237
- return r.$d.getTime();
240
+ return a.$d.getTime();
238
241
  case "z":
239
- return "[" + r.offsetName() + "]";
242
+ return "[" + a.offsetName() + "]";
240
243
  case "zzz":
241
- return "[" + r.offsetName("long") + "]";
244
+ return "[" + a.offsetName("long") + "]";
242
245
  default:
243
- return m;
246
+ return y;
244
247
  }
245
- });
246
- return i.bind(this)(h);
248
+ }));
249
+ return f.bind(this)(d);
247
250
  };
248
251
  };
249
- });
250
- }(N)), N.exports;
252
+ }));
253
+ })(q)), q.exports;
251
254
  }
252
- var Wt = Ht();
253
- const bt = /* @__PURE__ */ F(Wt);
254
- c.extend(Ct);
255
- c.extend(xt);
256
- c.extend(Ut);
257
- c.extend(bt);
258
- const Bt = {
255
+ var Ee = Be();
256
+ const Ie = /* @__PURE__ */ H(Ee);
257
+ p.extend(Ae);
258
+ p.extend(ke);
259
+ p.extend(We);
260
+ p.extend(Ie);
261
+ const Ve = {
259
262
  // Year
260
263
  YY: "year",
261
264
  YYYY: {
@@ -337,7 +340,7 @@ const Bt = {
337
340
  maxLength: 2
338
341
  },
339
342
  ss: "seconds"
340
- }, Et = {
343
+ }, Ze = {
341
344
  year: "YYYY",
342
345
  month: "MMMM",
343
346
  monthShort: "MMM",
@@ -359,123 +362,205 @@ const Bt = {
359
362
  fullTime24h: "HH:mm",
360
363
  keyboardDateTime12h: "L hh:mm A",
361
364
  keyboardDateTime24h: "L HH:mm"
362
- }, rt = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
363
- `), dt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
365
+ }, ne = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
366
+ `), he = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
364
367
  `);
365
- class It {
368
+ class Ge {
366
369
  constructor({
367
- locale: L,
368
- formats: l
370
+ locale: e,
371
+ formats: t
369
372
  } = {}) {
370
- this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = "dayjs", this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
373
+ r(this, "isMUIAdapter", !0);
374
+ r(this, "isTimezoneCompatible", !0);
375
+ r(this, "lib", "dayjs");
376
+ r(this, "escapedCharacters", {
371
377
  start: "[",
372
378
  end: "]"
373
- }, this.formatTokenMap = Bt, this.setLocaleToValue = (t) => {
374
- const e = this.getCurrentLocaleCode();
375
- return e === t.locale() ? t : t.locale(e);
376
- }, this.hasUTCPlugin = () => typeof c.utc < "u", this.hasTimezonePlugin = () => typeof c.tz < "u", this.isSame = (t, e, i) => {
377
- const a = this.setTimezone(e, this.getTimezone(t));
378
- return t.format(i) === a.format(i);
379
- }, this.cleanTimezone = (t) => {
380
- switch (t) {
379
+ });
380
+ r(this, "formatTokenMap", Ve);
381
+ r(this, "setLocaleToValue", (e) => {
382
+ const t = this.getCurrentLocaleCode();
383
+ return t === e.locale() ? e : e.locale(t);
384
+ });
385
+ r(this, "hasUTCPlugin", () => typeof p.utc < "u");
386
+ r(this, "hasTimezonePlugin", () => typeof p.tz < "u");
387
+ r(this, "isSame", (e, t, n) => {
388
+ const l = this.setTimezone(t, this.getTimezone(e));
389
+ return e.format(n) === l.format(n);
390
+ });
391
+ /**
392
+ * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
393
+ */
394
+ r(this, "cleanTimezone", (e) => {
395
+ switch (e) {
381
396
  case "default":
382
397
  return;
383
398
  case "system":
384
- return c.tz.guess();
399
+ return p.tz.guess();
385
400
  default:
386
- return t;
401
+ return e;
387
402
  }
388
- }, this.createSystemDate = (t) => {
389
- let e;
403
+ });
404
+ r(this, "createSystemDate", (e) => {
405
+ let t;
390
406
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
391
- const i = c.tz.guess();
392
- i === "UTC" ? e = c(t) : e = c.tz(t, i);
407
+ const n = p.tz.guess();
408
+ n === "UTC" ? t = p(e) : t = p.tz(e, n);
393
409
  } else
394
- e = c(t);
395
- return this.setLocaleToValue(e);
396
- }, this.createUTCDate = (t) => {
410
+ t = p(e);
411
+ return this.setLocaleToValue(t);
412
+ });
413
+ r(this, "createUTCDate", (e) => {
397
414
  if (!this.hasUTCPlugin())
398
- throw new Error(rt);
399
- return this.setLocaleToValue(c.utc(t));
400
- }, this.createTZDate = (t, e) => {
415
+ throw new Error(ne);
416
+ return this.setLocaleToValue(p.utc(e));
417
+ });
418
+ r(this, "createTZDate", (e, t) => {
401
419
  if (!this.hasUTCPlugin())
402
- throw new Error(rt);
420
+ throw new Error(ne);
403
421
  if (!this.hasTimezonePlugin())
404
- throw new Error(dt);
405
- const i = t !== void 0 && !t.endsWith("Z");
406
- return this.setLocaleToValue(c(t).tz(this.cleanTimezone(e), i));
407
- }, this.getLocaleFormats = () => {
408
- const t = c.Ls, e = this.locale || "en";
409
- let i = t[e];
410
- return i === void 0 && (process.env.NODE_ENV !== "production" && yt(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), i = t.en), i.formats;
411
- }, this.adjustOffset = (t) => {
422
+ throw new Error(he);
423
+ const n = e !== void 0 && !e.endsWith("Z");
424
+ return this.setLocaleToValue(p(e).tz(this.cleanTimezone(t), n));
425
+ });
426
+ r(this, "getLocaleFormats", () => {
427
+ const e = p.Ls, t = this.locale || "en";
428
+ let n = e[t];
429
+ return n === void 0 && (process.env.NODE_ENV !== "production" && Ye(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), n = e.en), n.formats;
430
+ });
431
+ /**
432
+ * If the new day does not have the same offset as the old one (when switching to summer day time for example),
433
+ * Then dayjs will not automatically adjust the offset (moment does).
434
+ * We have to parse again the value to make sure the `fixOffset` method is applied.
435
+ * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
436
+ */
437
+ r(this, "adjustOffset", (e) => {
412
438
  if (!this.hasTimezonePlugin())
413
- return t;
414
- const e = this.getTimezone(t);
415
- if (e !== "UTC") {
416
- const i = t.tz(this.cleanTimezone(e), !0);
417
- if (i.$offset === (t.$offset ?? 0))
418
- return t;
419
- t.$offset = i.$offset;
439
+ return e;
440
+ const t = this.getTimezone(e);
441
+ if (t !== "UTC") {
442
+ const n = e.tz(this.cleanTimezone(t), !0);
443
+ if (n.$offset === (e.$offset ?? 0))
444
+ return e;
445
+ e.$offset = n.$offset;
420
446
  }
421
- return t;
422
- }, this.date = (t, e = "default") => t === null ? null : e === "UTC" ? this.createUTCDate(t) : e === "system" || e === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(t) : this.createTZDate(t, e), this.getInvalidDate = () => c(/* @__PURE__ */ new Date("Invalid date")), this.getTimezone = (t) => {
423
- var e;
447
+ return e;
448
+ });
449
+ r(this, "date", (e, t = "default") => e === null ? null : t === "UTC" ? this.createUTCDate(e) : t === "system" || t === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, t));
450
+ r(this, "getInvalidDate", () => p(/* @__PURE__ */ new Date("Invalid date")));
451
+ r(this, "getTimezone", (e) => {
452
+ var t;
424
453
  if (this.hasTimezonePlugin()) {
425
- const i = (e = t.$x) == null ? void 0 : e.$timezone;
426
- if (i)
427
- return i;
454
+ const n = (t = e.$x) == null ? void 0 : t.$timezone;
455
+ if (n)
456
+ return n;
428
457
  }
429
- return this.hasUTCPlugin() && t.isUTC() ? "UTC" : "system";
430
- }, this.setTimezone = (t, e) => {
431
- if (this.getTimezone(t) === e)
432
- return t;
433
- if (e === "UTC") {
458
+ return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
459
+ });
460
+ r(this, "setTimezone", (e, t) => {
461
+ if (this.getTimezone(e) === t)
462
+ return e;
463
+ if (t === "UTC") {
434
464
  if (!this.hasUTCPlugin())
435
- throw new Error(rt);
436
- return t.utc();
465
+ throw new Error(ne);
466
+ return e.utc();
437
467
  }
438
- if (e === "system")
439
- return t.local();
468
+ if (t === "system")
469
+ return e.local();
440
470
  if (!this.hasTimezonePlugin()) {
441
- if (e === "default")
442
- return t;
443
- throw new Error(dt);
471
+ if (t === "default")
472
+ return e;
473
+ throw new Error(he);
444
474
  }
445
- return this.setLocaleToValue(c.tz(t, this.cleanTimezone(e)));
446
- }, this.toJsDate = (t) => t.toDate(), this.parse = (t, e) => t === "" ? null : c(t, e, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
447
- const e = this.getLocaleFormats(), i = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (r, s, u) => s || u.slice(1));
448
- return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, r, s) => {
449
- const u = s && s.toUpperCase();
450
- return r || e[s] || i(e[u]);
475
+ return this.setLocaleToValue(p.tz(e, this.cleanTimezone(t)));
476
+ });
477
+ r(this, "toJsDate", (e) => e.toDate());
478
+ r(this, "parse", (e, t) => e === "" ? null : p(e, t, this.locale, !0));
479
+ r(this, "getCurrentLocaleCode", () => this.locale || "en");
480
+ r(this, "is12HourCycleInCurrentLocale", () => /A|a/.test(this.getLocaleFormats().LT || ""));
481
+ r(this, "expandFormat", (e) => {
482
+ const t = this.getLocaleFormats(), n = (l) => l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (f, o, a) => o || a.slice(1));
483
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (l, f, o) => {
484
+ const a = o && o.toUpperCase();
485
+ return f || t[o] || n(t[a]);
451
486
  });
452
- }, this.isValid = (t) => t == null ? !1 : t.isValid(), this.format = (t, e) => this.formatByString(t, this.formats[e]), this.formatByString = (t, e) => this.setLocaleToValue(t).format(e), this.formatNumber = (t) => t, this.isEqual = (t, e) => t === null && e === null ? !0 : t === null || e === null ? !1 : t.toDate().getTime() === e.toDate().getTime(), this.isSameYear = (t, e) => this.isSame(t, e, "YYYY"), this.isSameMonth = (t, e) => this.isSame(t, e, "YYYY-MM"), this.isSameDay = (t, e) => this.isSame(t, e, "YYYY-MM-DD"), this.isSameHour = (t, e) => t.isSame(e, "hour"), this.isAfter = (t, e) => t > e, this.isAfterYear = (t, e) => this.hasUTCPlugin() ? !this.isSameYear(t, e) && t.utc() > e.utc() : t.isAfter(e, "year"), this.isAfterDay = (t, e) => this.hasUTCPlugin() ? !this.isSameDay(t, e) && t.utc() > e.utc() : t.isAfter(e, "day"), this.isBefore = (t, e) => t < e, this.isBeforeYear = (t, e) => this.hasUTCPlugin() ? !this.isSameYear(t, e) && t.utc() < e.utc() : t.isBefore(e, "year"), this.isBeforeDay = (t, e) => this.hasUTCPlugin() ? !this.isSameDay(t, e) && t.utc() < e.utc() : t.isBefore(e, "day"), this.isWithinRange = (t, [e, i]) => t >= e && t <= i, this.startOfYear = (t) => this.adjustOffset(t.startOf("year")), this.startOfMonth = (t) => this.adjustOffset(t.startOf("month")), this.startOfWeek = (t) => this.adjustOffset(this.setLocaleToValue(t).startOf("week")), this.startOfDay = (t) => this.adjustOffset(t.startOf("day")), this.endOfYear = (t) => this.adjustOffset(t.endOf("year")), this.endOfMonth = (t) => this.adjustOffset(t.endOf("month")), this.endOfWeek = (t) => this.adjustOffset(this.setLocaleToValue(t).endOf("week")), this.endOfDay = (t) => this.adjustOffset(t.endOf("day")), this.addYears = (t, e) => this.adjustOffset(t.add(e, "year")), this.addMonths = (t, e) => this.adjustOffset(t.add(e, "month")), this.addWeeks = (t, e) => this.adjustOffset(t.add(e, "week")), this.addDays = (t, e) => this.adjustOffset(t.add(e, "day")), this.addHours = (t, e) => this.adjustOffset(t.add(e, "hour")), this.addMinutes = (t, e) => this.adjustOffset(t.add(e, "minute")), this.addSeconds = (t, e) => this.adjustOffset(t.add(e, "second")), this.getYear = (t) => t.year(), this.getMonth = (t) => t.month(), this.getDate = (t) => t.date(), this.getHours = (t) => t.hour(), this.getMinutes = (t) => t.minute(), this.getSeconds = (t) => t.second(), this.getMilliseconds = (t) => t.millisecond(), this.setYear = (t, e) => this.adjustOffset(t.set("year", e)), this.setMonth = (t, e) => this.adjustOffset(t.set("month", e)), this.setDate = (t, e) => this.adjustOffset(t.set("date", e)), this.setHours = (t, e) => this.adjustOffset(t.set("hour", e)), this.setMinutes = (t, e) => this.adjustOffset(t.set("minute", e)), this.setSeconds = (t, e) => this.adjustOffset(t.set("second", e)), this.setMilliseconds = (t, e) => this.adjustOffset(t.set("millisecond", e)), this.getDaysInMonth = (t) => t.daysInMonth(), this.getWeekArray = (t) => {
453
- const e = this.startOfWeek(this.startOfMonth(t)), i = this.endOfWeek(this.endOfMonth(t));
454
- let a = 0, r = e;
455
- const s = [];
456
- for (; r < i; ) {
457
- const u = Math.floor(a / 7);
458
- s[u] = s[u] || [], s[u].push(r), r = this.addDays(r, 1), a += 1;
487
+ });
488
+ r(this, "isValid", (e) => e == null ? !1 : e.isValid());
489
+ r(this, "format", (e, t) => this.formatByString(e, this.formats[t]));
490
+ r(this, "formatByString", (e, t) => this.setLocaleToValue(e).format(t));
491
+ r(this, "formatNumber", (e) => e);
492
+ r(this, "isEqual", (e, t) => e === null && t === null ? !0 : e === null || t === null ? !1 : e.toDate().getTime() === t.toDate().getTime());
493
+ r(this, "isSameYear", (e, t) => this.isSame(e, t, "YYYY"));
494
+ r(this, "isSameMonth", (e, t) => this.isSame(e, t, "YYYY-MM"));
495
+ r(this, "isSameDay", (e, t) => this.isSame(e, t, "YYYY-MM-DD"));
496
+ r(this, "isSameHour", (e, t) => e.isSame(t, "hour"));
497
+ r(this, "isAfter", (e, t) => e > t);
498
+ r(this, "isAfterYear", (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() > t.utc() : e.isAfter(t, "year"));
499
+ r(this, "isAfterDay", (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() > t.utc() : e.isAfter(t, "day"));
500
+ r(this, "isBefore", (e, t) => e < t);
501
+ r(this, "isBeforeYear", (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() < t.utc() : e.isBefore(t, "year"));
502
+ r(this, "isBeforeDay", (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() < t.utc() : e.isBefore(t, "day"));
503
+ r(this, "isWithinRange", (e, [t, n]) => e >= t && e <= n);
504
+ r(this, "startOfYear", (e) => this.adjustOffset(e.startOf("year")));
505
+ r(this, "startOfMonth", (e) => this.adjustOffset(e.startOf("month")));
506
+ r(this, "startOfWeek", (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week")));
507
+ r(this, "startOfDay", (e) => this.adjustOffset(e.startOf("day")));
508
+ r(this, "endOfYear", (e) => this.adjustOffset(e.endOf("year")));
509
+ r(this, "endOfMonth", (e) => this.adjustOffset(e.endOf("month")));
510
+ r(this, "endOfWeek", (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week")));
511
+ r(this, "endOfDay", (e) => this.adjustOffset(e.endOf("day")));
512
+ r(this, "addYears", (e, t) => this.adjustOffset(e.add(t, "year")));
513
+ r(this, "addMonths", (e, t) => this.adjustOffset(e.add(t, "month")));
514
+ r(this, "addWeeks", (e, t) => this.adjustOffset(e.add(t, "week")));
515
+ r(this, "addDays", (e, t) => this.adjustOffset(e.add(t, "day")));
516
+ r(this, "addHours", (e, t) => this.adjustOffset(e.add(t, "hour")));
517
+ r(this, "addMinutes", (e, t) => this.adjustOffset(e.add(t, "minute")));
518
+ r(this, "addSeconds", (e, t) => this.adjustOffset(e.add(t, "second")));
519
+ r(this, "getYear", (e) => e.year());
520
+ r(this, "getMonth", (e) => e.month());
521
+ r(this, "getDate", (e) => e.date());
522
+ r(this, "getHours", (e) => e.hour());
523
+ r(this, "getMinutes", (e) => e.minute());
524
+ r(this, "getSeconds", (e) => e.second());
525
+ r(this, "getMilliseconds", (e) => e.millisecond());
526
+ r(this, "setYear", (e, t) => this.adjustOffset(e.set("year", t)));
527
+ r(this, "setMonth", (e, t) => this.adjustOffset(e.set("month", t)));
528
+ r(this, "setDate", (e, t) => this.adjustOffset(e.set("date", t)));
529
+ r(this, "setHours", (e, t) => this.adjustOffset(e.set("hour", t)));
530
+ r(this, "setMinutes", (e, t) => this.adjustOffset(e.set("minute", t)));
531
+ r(this, "setSeconds", (e, t) => this.adjustOffset(e.set("second", t)));
532
+ r(this, "setMilliseconds", (e, t) => this.adjustOffset(e.set("millisecond", t)));
533
+ r(this, "getDaysInMonth", (e) => e.daysInMonth());
534
+ r(this, "getWeekArray", (e) => {
535
+ const t = this.startOfWeek(this.startOfMonth(e)), n = this.endOfWeek(this.endOfMonth(e));
536
+ let l = 0, f = t;
537
+ const o = [];
538
+ for (; f < n; ) {
539
+ const a = Math.floor(l / 7);
540
+ o[a] = o[a] || [], o[a].push(f), f = this.addDays(f, 1), l += 1;
459
541
  }
460
- return s;
461
- }, this.getWeekNumber = (t) => t.week(), this.getYearRange = ([t, e]) => {
462
- const i = this.startOfYear(t), a = this.endOfYear(e), r = [];
463
- let s = i;
464
- for (; this.isBefore(s, a); )
465
- r.push(s), s = this.addYears(s, 1);
466
- return r;
467
- }, this.locale = L, this.formats = Tt({}, Et, l), c.extend(zt);
542
+ return o;
543
+ });
544
+ r(this, "getWeekNumber", (e) => e.week());
545
+ r(this, "getYearRange", ([e, t]) => {
546
+ const n = this.startOfYear(e), l = this.endOfYear(t), f = [];
547
+ let o = n;
548
+ for (; this.isBefore(o, l); )
549
+ f.push(o), o = this.addYears(o, 1);
550
+ return f;
551
+ });
552
+ this.locale = e, this.formats = we({}, Ze, t), p.extend(je);
468
553
  }
469
- getDayOfWeek(L) {
470
- return L.day() + 1;
554
+ getDayOfWeek(e) {
555
+ return e.day() + 1;
471
556
  }
472
557
  }
473
- function Rt({ children: p }) {
558
+ function Ke({ children: m }) {
474
559
  return (
475
560
  // Material-UI X LocalizationProvider with Day.js adapter
476
- /* @__PURE__ */ Mt.jsx(gt, { dateAdapter: It, children: p })
561
+ /* @__PURE__ */ Te.jsx(De, { dateAdapter: Ge, children: m })
477
562
  );
478
563
  }
479
564
  export {
480
- Rt as default
565
+ Ke as default
481
566
  };