@solostylist/ui-kit 1.0.175 → 1.0.176

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 (203) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.js +84 -92
  79. package/dist/s-chat-message/s-chat-message.js +111 -120
  80. package/dist/s-checkbox/s-checkbox.js +12 -20
  81. package/dist/s-chip/package.json +5 -5
  82. package/dist/s-chip/s-chip.js +7 -15
  83. package/dist/s-chips/s-chips.js +47 -56
  84. package/dist/s-code-block/package.json +5 -5
  85. package/dist/s-code-block/s-code-block.js +35 -43
  86. package/dist/s-comment-message/package.json +5 -5
  87. package/dist/s-comment-message/s-comment-message.js +90 -94
  88. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  89. package/dist/s-countdown/s-count-box.js +42 -50
  90. package/dist/s-countdown/s-count-down.js +79 -107
  91. package/dist/s-data-table/s-data-table.js +374 -384
  92. package/dist/s-date-picker/s-date-picker.js +164 -164
  93. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  94. package/dist/s-dialog/s-dialog.js +24 -32
  95. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  96. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  97. package/dist/s-empty/s-empty.js +6 -14
  98. package/dist/s-error/s-error.js +9 -17
  99. package/dist/s-error-layout/s-error-layout.js +38 -47
  100. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  101. package/dist/s-file-icon/s-file-icon.js +9 -13
  102. package/dist/s-flex-box/s-flex-box.js +6 -14
  103. package/dist/s-form/s-form.js +11 -19
  104. package/dist/s-gallery/index.js +3 -33
  105. package/dist/s-gallery/s-gallery.js +91 -114
  106. package/dist/s-glow-button/s-glow-button.js +22 -26
  107. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  108. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  109. package/dist/s-icon-button/s-icon-button.js +6 -14
  110. package/dist/s-image-comparison/package.json +5 -5
  111. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  112. package/dist/s-image-modal/package.json +5 -5
  113. package/dist/s-image-modal/s-image-modal.js +137 -150
  114. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  115. package/dist/s-label/s-label.js +12 -20
  116. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  117. package/dist/s-lazy-image/index.js +2 -10
  118. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  119. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  120. package/dist/s-moving-border/s-moving-border.js +52 -67
  121. package/dist/s-multi-select/s-multi-select.js +43 -51
  122. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  123. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  124. package/dist/s-pagination/s-pagination.js +13 -17
  125. package/dist/s-pixel-reveal/package.json +5 -5
  126. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  127. package/dist/s-radial-pulse-animate/package.json +5 -5
  128. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  129. package/dist/s-rating/package.json +5 -5
  130. package/dist/s-rating/s-rating.js +7 -15
  131. package/dist/s-review/package.json +5 -5
  132. package/dist/s-review/s-review.js +101 -106
  133. package/dist/s-scroll-reveal/package.json +5 -5
  134. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  135. package/dist/s-scroll-to-top/package.json +5 -5
  136. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  137. package/dist/s-scroll-velocity/package.json +5 -5
  138. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  139. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  140. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  141. package/dist/s-select/s-select.js +67 -75
  142. package/dist/s-select-list/s-select-list.js +28 -32
  143. package/dist/s-skeleton/s-skeleton.js +20 -28
  144. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  145. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  146. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  147. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  148. package/dist/s-stripe/s-stripe-number.js +8 -12
  149. package/dist/s-stripe/s-stripe.d.ts +2 -2
  150. package/dist/s-stripe/s-stripe.js +17 -26
  151. package/dist/s-stripe/stripe-input.js +25 -29
  152. package/dist/s-tabs/package.json +3 -3
  153. package/dist/s-tabs/s-tab-panel.js +17 -25
  154. package/dist/s-tabs/s-tab.js +5 -9
  155. package/dist/s-tabs/s-tabs.js +19 -27
  156. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  157. package/dist/s-text-editor/s-text-editor.js +33 -45
  158. package/dist/s-text-field/s-text-field.js +31 -40
  159. package/dist/s-text-shimmer/package.json +4 -4
  160. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  161. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  162. package/dist/s-theme-demo/package.json +5 -5
  163. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  164. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  165. package/dist/s-theme-switch/package.json +4 -4
  166. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  167. package/dist/s-tip/s-tip.js +14 -22
  168. package/dist/s-two-pane-layout/index.js +2 -10
  169. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  170. package/dist/s-typewriter-text/package.json +5 -5
  171. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  172. package/dist/s-zoom-image/index.js +2 -10
  173. package/dist/s-zoom-image/package.json +5 -5
  174. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  175. package/dist/styled-B0KflPi-.js +203 -0
  176. package/dist/theme/components/alert.d.ts +484 -264
  177. package/dist/theme/components/avatar.js +2 -2
  178. package/dist/theme/components/button.d.ts +726 -396
  179. package/dist/theme/components/chip.js +2 -2
  180. package/dist/theme/components/icon-button.d.ts +726 -396
  181. package/dist/theme/customizations/data-display.js +1 -1
  182. package/dist/theme/customizations/inputs.js +2 -2
  183. package/dist/theme/customizations/navigation.js +2 -2
  184. package/dist/theme/theme-primitives.d.ts +8 -246
  185. package/dist/theme/theme-primitives.js +76 -87
  186. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  187. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  188. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  189. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  190. package/dist/utils/dayjs.js +7 -7
  191. package/dist/utils/logger.js +29 -32
  192. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  193. package/package.json +240 -81
  194. package/README.md +0 -13
  195. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  196. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  197. package/dist/Paper-hkbPWyBT.js +0 -553
  198. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  199. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  200. package/dist/extendSxProp-BKWjdW12.js +0 -37
  201. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  202. package/dist/resolveProps-61uUKnlS.js +0 -52
  203. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,264 +1,261 @@
1
- var ge = Object.defineProperty;
2
- var Te = (m, e, t) => e in m ? ge(m, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[e] = t;
3
- var r = (m, e, t) => Te(m, typeof e != "symbol" ? e + "" : e, t);
4
- import { j as Ye } from "../jsx-runtime-OVHDjVDe.js";
5
- import { w as De, L as we } from "../warning-BCwEnWrE.js";
6
- import { a as Le } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
7
- import p from "dayjs";
8
- import { g as _ } from "../_commonjsHelpers-B4e78b8K.js";
9
- var I = { exports: {} }, xe = I.exports, ie;
10
- function Oe() {
11
- return ie || (ie = 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, c, o) {
17
- var a = c.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 y = this.$locale().yearStart || 1;
1
+ import { j as Me } from "../jsx-runtime-tc70JA_2.js";
2
+ import { w as ye, L as ge } from "../warning-DnPRVtW6.js";
3
+ import { a as Te } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
4
+ import l from "dayjs";
5
+ import { g as F } from "../_commonjsHelpers-ByX85dGu.js";
6
+ var I = { exports: {} }, Ye = I.exports, ae;
7
+ function De() {
8
+ return ae || (ae = 1, (function(M, e) {
9
+ (function(t, r) {
10
+ M.exports = r();
11
+ })(Ye, (function() {
12
+ var t = "week", r = "year";
13
+ return function(c, d, a) {
14
+ var s = d.prototype;
15
+ s.week = function(i) {
16
+ if (i === void 0 && (i = null), i !== null) return this.add(7 * (i - this.week()), "day");
17
+ var m = this.$locale().yearStart || 1;
21
18
  if (this.month() === 11 && this.date() > 25) {
22
- var d = o(this).startOf(n).add(1, n).date(y), M = o(this).endOf(t);
23
- if (d.isBefore(M)) return 1;
19
+ var u = a(this).startOf(r).add(1, r).date(m), p = a(this).endOf(t);
20
+ if (u.isBefore(p)) return 1;
24
21
  }
25
- var T = o(this).startOf(n).date(y).startOf(t).subtract(1, "millisecond"), U = this.diff(T, t, !0);
26
- return U < 0 ? o(this).startOf("week").week() : Math.ceil(U);
27
- }, a.weeks = function(u) {
28
- return u === void 0 && (u = null), this.week(u);
22
+ var g = a(this).startOf(r).date(m).startOf(t).subtract(1, "millisecond"), C = this.diff(g, t, !0);
23
+ return C < 0 ? a(this).startOf("week").week() : Math.ceil(C);
24
+ }, s.weeks = function(i) {
25
+ return i === void 0 && (i = null), this.week(i);
29
26
  };
30
27
  };
31
28
  }));
32
29
  })(I)), I.exports;
33
30
  }
34
- var ke = Oe();
35
- const ze = /* @__PURE__ */ _(ke);
36
- var N = { exports: {} }, ve = N.exports, ue;
37
- function Se() {
38
- return ue || (ue = 1, (function(m, e) {
39
- (function(t, n) {
40
- m.exports = n();
41
- })(ve, (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/, c = /\d\d/, o = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, u = {}, y = function(s) {
43
- return (s = +s) + (s > 68 ? 1900 : 2e3);
44
- }, d = function(s) {
45
- return function(i) {
46
- this[s] = +i;
31
+ var we = De();
32
+ const xe = /* @__PURE__ */ F(we);
33
+ var V = { exports: {} }, Le = V.exports, oe;
34
+ function Oe() {
35
+ return oe || (oe = 1, (function(M, e) {
36
+ (function(t, r) {
37
+ M.exports = r();
38
+ })(Le, (function() {
39
+ 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, c = /\d/, d = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, i = {}, m = function(n) {
40
+ return (n = +n) + (n > 68 ? 1900 : 2e3);
41
+ }, u = function(n) {
42
+ return function(o) {
43
+ this[n] = +o;
47
44
  };
48
- }, M = [/[+-]\d\d:?(\d\d)?|Z/, function(s) {
49
- (this.zone || (this.zone = {})).offset = (function(i) {
50
- if (!i || i === "Z") return 0;
51
- var f = i.match(/([+-]|\d\d)/g), h = 60 * f[1] + (+f[2] || 0);
45
+ }, p = [/[+-]\d\d:?(\d\d)?|Z/, function(n) {
46
+ (this.zone || (this.zone = {})).offset = (function(o) {
47
+ if (!o || o === "Z") return 0;
48
+ var f = o.match(/([+-]|\d\d)/g), h = 60 * f[1] + (+f[2] || 0);
52
49
  return h === 0 ? 0 : f[0] === "+" ? -h : h;
53
- })(s);
54
- }], T = function(s) {
55
- var i = u[s];
56
- return i && (i.indexOf ? i : i.s.concat(i.f));
57
- }, U = function(s, i) {
58
- var f, h = u.meridiem;
50
+ })(n);
51
+ }], g = function(n) {
52
+ var o = i[n];
53
+ return o && (o.indexOf ? o : o.s.concat(o.f));
54
+ }, C = function(n, o) {
55
+ var f, h = i.meridiem;
59
56
  if (h) {
60
- for (var w = 1; w <= 24; w += 1) if (s.indexOf(h(w, 0, i)) > -1) {
61
- f = w > 12;
57
+ for (var D = 1; D <= 24; D += 1) if (n.indexOf(h(D, 0, o)) > -1) {
58
+ f = D > 12;
62
59
  break;
63
60
  }
64
- } else f = s === (i ? "pm" : "PM");
61
+ } else f = n === (o ? "pm" : "PM");
65
62
  return f;
66
- }, G = { A: [a, function(s) {
67
- this.afternoon = U(s, !1);
68
- }], a: [a, function(s) {
69
- this.afternoon = U(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: [c, 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: [c, d("day")], Do: [a, function(s) {
79
- var i = u.ordinal, f = s.match(/\d+/);
80
- if (this.day = f[0], i) for (var h = 1; h <= 31; h += 1) i(h).replace(/\[|\]/g, "") === s && (this.day = h);
81
- }], w: [o, d("week")], ww: [c, d("week")], M: [o, d("month")], MM: [c, d("month")], MMM: [a, function(s) {
82
- var i = T("months"), f = (T("monthsShort") || i.map((function(h) {
63
+ }, q = { A: [s, function(n) {
64
+ this.afternoon = C(n, !1);
65
+ }], a: [s, function(n) {
66
+ this.afternoon = C(n, !0);
67
+ }], Q: [c, function(n) {
68
+ this.month = 3 * (n - 1) + 1;
69
+ }], S: [c, function(n) {
70
+ this.milliseconds = 100 * +n;
71
+ }], SS: [d, function(n) {
72
+ this.milliseconds = 10 * +n;
73
+ }], SSS: [/\d{3}/, function(n) {
74
+ this.milliseconds = +n;
75
+ }], s: [a, u("seconds")], ss: [a, u("seconds")], m: [a, u("minutes")], mm: [a, u("minutes")], H: [a, u("hours")], h: [a, u("hours")], HH: [a, u("hours")], hh: [a, u("hours")], D: [a, u("day")], DD: [d, u("day")], Do: [s, function(n) {
76
+ var o = i.ordinal, f = n.match(/\d+/);
77
+ if (this.day = f[0], o) for (var h = 1; h <= 31; h += 1) o(h).replace(/\[|\]/g, "") === n && (this.day = h);
78
+ }], w: [a, u("week")], ww: [d, u("week")], M: [a, u("month")], MM: [d, u("month")], MMM: [s, function(n) {
79
+ var o = g("months"), f = (g("monthsShort") || o.map((function(h) {
83
80
  return h.slice(0, 3);
84
- }))).indexOf(s) + 1;
81
+ }))).indexOf(n) + 1;
85
82
  if (f < 1) throw new Error();
86
83
  this.month = f % 12 || f;
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: [c, function(s) {
92
- this.year = y(s);
93
- }], YYYY: [/\d{4}/, d("year")], Z: M, ZZ: M };
94
- function $(s) {
95
- var i, f;
96
- i = s, f = u && u.formats;
97
- for (var h = (s = i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(C, k, D) {
98
- var Y = D && D.toUpperCase();
99
- return k || f[D] || t[D] || f[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(z, v, j) {
100
- return v || j.slice(1);
84
+ }], MMMM: [s, function(n) {
85
+ var o = g("months").indexOf(n) + 1;
86
+ if (o < 1) throw new Error();
87
+ this.month = o % 12 || o;
88
+ }], Y: [/[+-]?\d+/, u("year")], YY: [d, function(n) {
89
+ this.year = m(n);
90
+ }], YYYY: [/\d{4}/, u("year")], Z: p, ZZ: p };
91
+ function P(n) {
92
+ var o, f;
93
+ o = n, f = i && i.formats;
94
+ for (var h = (n = o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, O, Y) {
95
+ var T = Y && Y.toUpperCase();
96
+ return O || f[Y] || t[Y] || f[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(k, z, j) {
97
+ return z || j.slice(1);
101
98
  }));
102
- }))).match(n), w = h.length, L = 0; L < w; L += 1) {
103
- var F = h[L], S = G[F], x = S && S[0], O = S && S[1];
104
- h[L] = O ? { regex: x, parser: O } : F.replace(/^\[|\]$/g, "");
99
+ }))).match(r), D = h.length, w = 0; w < D; w += 1) {
100
+ var U = h[w], S = q[U], x = S && S[0], L = S && S[1];
101
+ h[w] = L ? { regex: x, parser: L } : U.replace(/^\[|\]$/g, "");
105
102
  }
106
- return function(C) {
107
- for (var k = {}, D = 0, Y = 0; D < w; D += 1) {
108
- var z = h[D];
109
- if (typeof z == "string") Y += z.length;
103
+ return function(v) {
104
+ for (var O = {}, Y = 0, T = 0; Y < D; Y += 1) {
105
+ var k = h[Y];
106
+ if (typeof k == "string") T += k.length;
110
107
  else {
111
- var v = z.regex, j = z.parser, H = C.slice(Y), A = v.exec(H)[0];
112
- j.call(k, A), C = C.replace(A, "");
108
+ var z = k.regex, j = k.parser, H = v.slice(T), A = z.exec(H)[0];
109
+ j.call(O, A), v = v.replace(A, "");
113
110
  }
114
111
  }
115
- return (function(P) {
116
- var W = P.afternoon;
112
+ return (function($) {
113
+ var W = $.afternoon;
117
114
  if (W !== void 0) {
118
- var g = P.hours;
119
- W ? g < 12 && (P.hours += 12) : g === 12 && (P.hours = 0), delete P.afternoon;
115
+ var y = $.hours;
116
+ W ? y < 12 && ($.hours += 12) : y === 12 && ($.hours = 0), delete $.afternoon;
120
117
  }
121
- })(k), k;
118
+ })(O), O;
122
119
  };
123
120
  }
124
- return function(s, i, f) {
125
- f.p.customParseFormat = !0, s && s.parseTwoDigitYear && (y = s.parseTwoDigitYear);
126
- var h = i.prototype, w = h.parse;
127
- h.parse = function(L) {
128
- var F = L.date, S = L.utc, x = L.args;
121
+ return function(n, o, f) {
122
+ f.p.customParseFormat = !0, n && n.parseTwoDigitYear && (m = n.parseTwoDigitYear);
123
+ var h = o.prototype, D = h.parse;
124
+ h.parse = function(w) {
125
+ var U = w.date, S = w.utc, x = w.args;
129
126
  this.$u = S;
130
- var O = x[1];
131
- if (typeof O == "string") {
132
- var C = x[2] === !0, k = x[3] === !0, D = C || k, Y = x[2];
133
- k && (Y = x[2]), u = this.$locale(), !C && Y && (u = f.Ls[Y]), this.$d = (function(H, A, P, W) {
127
+ var L = x[1];
128
+ if (typeof L == "string") {
129
+ var v = x[2] === !0, O = x[3] === !0, Y = v || O, T = x[2];
130
+ O && (T = x[2]), i = this.$locale(), !v && T && (i = f.Ls[T]), this.$d = (function(H, A, $, W) {
134
131
  try {
135
132
  if (["x", "X"].indexOf(A) > -1) return new Date((A === "X" ? 1e3 : 1) * H);
136
- var g = $(A)(H), R = g.year, b = g.month, le = g.day, me = g.hours, pe = g.minutes, ye = g.seconds, Me = g.milliseconds, ae = g.zone, oe = g.week, X = /* @__PURE__ */ new Date(), Q = le || (R || b ? 1 : X.getDate()), J = R || X.getFullYear(), B = 0;
137
- R && !b || (B = b > 0 ? b - 1 : X.getMonth());
138
- var E, K = me || 0, ee = pe || 0, te = ye || 0, re = Me || 0;
139
- return ae ? new Date(Date.UTC(J, B, Q, K, ee, te, re + 60 * ae.offset * 1e3)) : P ? new Date(Date.UTC(J, B, Q, K, ee, te, re)) : (E = new Date(J, B, Q, K, ee, te, re), oe && (E = W(E).week(oe).toDate()), E);
133
+ var y = P(A)(H), _ = y.year, b = y.month, he = y.day, ce = y.hours, le = y.minutes, me = y.seconds, pe = y.milliseconds, ne = y.zone, se = y.week, R = /* @__PURE__ */ new Date(), X = he || (_ || b ? 1 : R.getDate()), Q = _ || R.getFullYear(), B = 0;
134
+ _ && !b || (B = b > 0 ? b - 1 : R.getMonth());
135
+ var E, J = ce || 0, K = le || 0, ee = me || 0, te = pe || 0;
136
+ return ne ? new Date(Date.UTC(Q, B, X, J, K, ee, te + 60 * ne.offset * 1e3)) : $ ? new Date(Date.UTC(Q, B, X, J, K, ee, te)) : (E = new Date(Q, B, X, J, K, ee, te), se && (E = W(E).week(se).toDate()), E);
140
137
  } catch {
141
138
  return /* @__PURE__ */ new Date("");
142
139
  }
143
- })(F, O, S, f), 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, v = 1; v <= z; v += 1) {
145
- x[1] = O[v - 1];
140
+ })(U, L, S, f), this.init(), T && T !== !0 && (this.$L = this.locale(T).$L), Y && U != this.format(L) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
141
+ } else if (L instanceof Array) for (var k = L.length, z = 1; z <= k; z += 1) {
142
+ x[1] = L[z - 1];
146
143
  var j = f.apply(this, x);
147
144
  if (j.isValid()) {
148
145
  this.$d = j.$d, this.$L = j.$L, this.init();
149
146
  break;
150
147
  }
151
- v === z && (this.$d = /* @__PURE__ */ new Date(""));
148
+ z === k && (this.$d = /* @__PURE__ */ new Date(""));
152
149
  }
153
- else w.call(this, L);
150
+ else D.call(this, w);
154
151
  };
155
152
  };
156
153
  }));
157
- })(N)), N.exports;
154
+ })(V)), V.exports;
158
155
  }
159
- var Ce = Se();
160
- const je = /* @__PURE__ */ _(Ce);
161
- var V = { exports: {} }, Pe = V.exports, de;
162
- function Ue() {
163
- return de || (de = 1, (function(m, e) {
164
- (function(t, n) {
165
- m.exports = n();
166
- })(Pe, (function() {
156
+ var ke = Oe();
157
+ const ze = /* @__PURE__ */ F(ke);
158
+ var N = { exports: {} }, Se = N.exports, ie;
159
+ function ve() {
160
+ return ie || (ie = 1, (function(M, e) {
161
+ (function(t, r) {
162
+ M.exports = r();
163
+ })(Se, (function() {
167
164
  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, c) {
169
- var o = l.prototype, a = o.format;
170
- c.en.formats = t, o.format = function(u) {
171
- u === void 0 && (u = "YYYY-MM-DDTHH:mm:ssZ");
172
- var y = this.$locale().formats, d = (function(M, T) {
173
- return M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(U, G, $) {
174
- var s = $ && $.toUpperCase();
175
- return G || T[$] || t[$] || T[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(i, f, h) {
165
+ return function(r, c, d) {
166
+ var a = c.prototype, s = a.format;
167
+ d.en.formats = t, a.format = function(i) {
168
+ i === void 0 && (i = "YYYY-MM-DDTHH:mm:ssZ");
169
+ var m = this.$locale().formats, u = (function(p, g) {
170
+ return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(C, q, P) {
171
+ var n = P && P.toUpperCase();
172
+ return q || g[P] || t[P] || g[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(o, f, h) {
176
173
  return f || h.slice(1);
177
174
  }));
178
175
  }));
179
- })(u, y === void 0 ? {} : y);
180
- return a.call(this, d);
176
+ })(i, m === void 0 ? {} : m);
177
+ return s.call(this, u);
181
178
  };
182
179
  };
183
180
  }));
184
- })(V)), V.exports;
181
+ })(N)), N.exports;
185
182
  }
186
- var $e = Ue();
187
- const Ae = /* @__PURE__ */ _($e);
188
- var q = { exports: {} }, Fe = q.exports, ce;
189
- function _e() {
190
- return ce || (ce = 1, (function(m, e) {
191
- (function(t, n) {
192
- m.exports = n();
193
- })(Fe, (function() {
194
- return function(t, n, l) {
195
- n.prototype.isBetween = function(c, o, a, u) {
196
- var y = l(c), d = l(o), M = (u = u || "()")[0] === "(", T = u[1] === ")";
197
- return (M ? this.isAfter(y, a) : !this.isBefore(y, a)) && (T ? this.isBefore(d, a) : !this.isAfter(d, a)) || (M ? this.isBefore(y, a) : !this.isAfter(y, a)) && (T ? this.isAfter(d, a) : !this.isBefore(d, a));
183
+ var je = ve();
184
+ const $e = /* @__PURE__ */ F(je);
185
+ var Z = { exports: {} }, Ce = Z.exports, ue;
186
+ function Pe() {
187
+ return ue || (ue = 1, (function(M, e) {
188
+ (function(t, r) {
189
+ M.exports = r();
190
+ })(Ce, (function() {
191
+ return function(t, r, c) {
192
+ r.prototype.isBetween = function(d, a, s, i) {
193
+ var m = c(d), u = c(a), p = (i = i || "()")[0] === "(", g = i[1] === ")";
194
+ return (p ? this.isAfter(m, s) : !this.isBefore(m, s)) && (g ? this.isBefore(u, s) : !this.isAfter(u, s)) || (p ? this.isBefore(m, s) : !this.isAfter(m, s)) && (g ? this.isAfter(u, s) : !this.isBefore(u, s));
198
195
  };
199
196
  };
200
197
  }));
201
- })(q)), q.exports;
198
+ })(Z)), Z.exports;
202
199
  }
203
- var He = _e();
204
- const We = /* @__PURE__ */ _(He);
205
- var Z = { exports: {} }, be = Z.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, c = l.format;
213
- l.format = function(o) {
214
- var a = this, u = this.$locale();
215
- if (!this.isValid()) return c.bind(this)(o);
216
- var y = 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(M) {
217
- switch (M) {
200
+ var Ae = Pe();
201
+ const Ue = /* @__PURE__ */ F(Ae);
202
+ var G = { exports: {} }, Fe = G.exports, de;
203
+ function He() {
204
+ return de || (de = 1, (function(M, e) {
205
+ (function(t, r) {
206
+ M.exports = r();
207
+ })(Fe, (function() {
208
+ return function(t, r) {
209
+ var c = r.prototype, d = c.format;
210
+ c.format = function(a) {
211
+ var s = this, i = this.$locale();
212
+ if (!this.isValid()) return d.bind(this)(a);
213
+ var m = this.$utils(), u = (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(p) {
214
+ switch (p) {
218
215
  case "Q":
219
- return Math.ceil((a.$M + 1) / 3);
216
+ return Math.ceil((s.$M + 1) / 3);
220
217
  case "Do":
221
- return u.ordinal(a.$D);
218
+ return i.ordinal(s.$D);
222
219
  case "gggg":
223
- return a.weekYear();
220
+ return s.weekYear();
224
221
  case "GGGG":
225
- return a.isoWeekYear();
222
+ return s.isoWeekYear();
226
223
  case "wo":
227
- return u.ordinal(a.week(), "W");
224
+ return i.ordinal(s.week(), "W");
228
225
  case "w":
229
226
  case "ww":
230
- return y.s(a.week(), M === "w" ? 1 : 2, "0");
227
+ return m.s(s.week(), p === "w" ? 1 : 2, "0");
231
228
  case "W":
232
229
  case "WW":
233
- return y.s(a.isoWeek(), M === "W" ? 1 : 2, "0");
230
+ return m.s(s.isoWeek(), p === "W" ? 1 : 2, "0");
234
231
  case "k":
235
232
  case "kk":
236
- return y.s(String(a.$H === 0 ? 24 : a.$H), M === "k" ? 1 : 2, "0");
233
+ return m.s(String(s.$H === 0 ? 24 : s.$H), p === "k" ? 1 : 2, "0");
237
234
  case "X":
238
- return Math.floor(a.$d.getTime() / 1e3);
235
+ return Math.floor(s.$d.getTime() / 1e3);
239
236
  case "x":
240
- return a.$d.getTime();
237
+ return s.$d.getTime();
241
238
  case "z":
242
- return "[" + a.offsetName() + "]";
239
+ return "[" + s.offsetName() + "]";
243
240
  case "zzz":
244
- return "[" + a.offsetName("long") + "]";
241
+ return "[" + s.offsetName("long") + "]";
245
242
  default:
246
- return M;
243
+ return p;
247
244
  }
248
245
  }));
249
- return c.bind(this)(d);
246
+ return d.bind(this)(u);
250
247
  };
251
248
  };
252
249
  }));
253
- })(Z)), Z.exports;
250
+ })(G)), G.exports;
254
251
  }
255
- var Ee = Be();
256
- const Ie = /* @__PURE__ */ _(Ee);
257
- p.extend(Ae);
258
- p.extend(ze);
259
- p.extend(We);
260
- p.extend(Ie);
261
- const Ne = {
252
+ var We = He();
253
+ const be = /* @__PURE__ */ F(We);
254
+ l.extend($e);
255
+ l.extend(xe);
256
+ l.extend(Ue);
257
+ l.extend(be);
258
+ const Be = {
262
259
  // Year
263
260
  YY: "year",
264
261
  YYYY: {
@@ -340,7 +337,7 @@ const Ne = {
340
337
  maxLength: 2
341
338
  },
342
339
  ss: "seconds"
343
- }, Ve = {
340
+ }, Ee = {
344
341
  year: "YYYY",
345
342
  month: "MMMM",
346
343
  monthShort: "MMM",
@@ -362,213 +359,204 @@ const Ne = {
362
359
  fullTime24h: "HH:mm",
363
360
  keyboardDateTime12h: "L hh:mm A",
364
361
  keyboardDateTime24h: "L HH:mm"
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(`
362
+ }, re = ["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
+ `), fe = ["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(`
367
364
  `);
368
- class qe {
365
+ class Ie {
366
+ isMUIAdapter = !0;
367
+ isTimezoneCompatible = !0;
368
+ lib = "dayjs";
369
+ escapedCharacters = {
370
+ start: "[",
371
+ end: "]"
372
+ };
373
+ formatTokenMap = Be;
369
374
  constructor({
370
375
  locale: e,
371
376
  formats: t
372
377
  } = {}) {
373
- r(this, "isMUIAdapter", !0);
374
- r(this, "isTimezoneCompatible", !0);
375
- r(this, "lib", "dayjs");
376
- r(this, "escapedCharacters", {
377
- start: "[",
378
- end: "]"
379
- });
380
- r(this, "formatTokenMap", Ne);
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) {
396
- case "default":
397
- return;
398
- case "system":
399
- return p.tz.guess();
400
- default:
401
- return e;
402
- }
403
- });
404
- r(this, "createSystemDate", (e) => {
405
- let t;
406
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
407
- const n = p.tz.guess();
408
- n === "UTC" ? t = p(e) : t = p.tz(e, n);
409
- } else
410
- t = p(e);
411
- return this.setLocaleToValue(t);
412
- });
413
- r(this, "createUTCDate", (e) => {
414
- if (!this.hasUTCPlugin())
415
- throw new Error(ne);
416
- return this.setLocaleToValue(p.utc(e));
417
- });
418
- r(this, "createTZDate", (e, t) => {
419
- if (!this.hasUTCPlugin())
420
- throw new Error(ne);
421
- if (!this.hasTimezonePlugin())
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" && De(["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) => {
438
- if (!this.hasTimezonePlugin())
378
+ this.locale = e, this.formats = Te({}, Ee, t), l.extend(ze);
379
+ }
380
+ setLocaleToValue = (e) => {
381
+ const t = this.getCurrentLocaleCode();
382
+ return t === e.locale() ? e : e.locale(t);
383
+ };
384
+ hasUTCPlugin = () => typeof l.utc < "u";
385
+ hasTimezonePlugin = () => typeof l.tz < "u";
386
+ isSame = (e, t, r) => {
387
+ const c = this.setTimezone(t, this.getTimezone(e));
388
+ return e.format(r) === c.format(r);
389
+ };
390
+ /**
391
+ * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
392
+ */
393
+ cleanTimezone = (e) => {
394
+ switch (e) {
395
+ case "default":
396
+ return;
397
+ case "system":
398
+ return l.tz.guess();
399
+ default:
439
400
  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;
446
- }
401
+ }
402
+ };
403
+ createSystemDate = (e) => {
404
+ let t;
405
+ if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
406
+ const r = l.tz.guess();
407
+ r === "UTC" ? t = l(e) : t = l.tz(e, r);
408
+ } else
409
+ t = l(e);
410
+ return this.setLocaleToValue(t);
411
+ };
412
+ createUTCDate = (e) => {
413
+ if (!this.hasUTCPlugin())
414
+ throw new Error(re);
415
+ return this.setLocaleToValue(l.utc(e));
416
+ };
417
+ createTZDate = (e, t) => {
418
+ if (!this.hasUTCPlugin())
419
+ throw new Error(re);
420
+ if (!this.hasTimezonePlugin())
421
+ throw new Error(fe);
422
+ const r = e !== void 0 && !e.endsWith("Z");
423
+ return this.setLocaleToValue(l(e).tz(this.cleanTimezone(t), r));
424
+ };
425
+ getLocaleFormats = () => {
426
+ const e = l.Ls, t = this.locale || "en";
427
+ let r = e[t];
428
+ return r === 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."]), r = e.en), r.formats;
429
+ };
430
+ /**
431
+ * If the new day does not have the same offset as the old one (when switching to summer day time for example),
432
+ * Then dayjs will not automatically adjust the offset (moment does).
433
+ * We have to parse again the value to make sure the `fixOffset` method is applied.
434
+ * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
435
+ */
436
+ adjustOffset = (e) => {
437
+ if (!this.hasTimezonePlugin())
447
438
  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;
453
- if (this.hasTimezonePlugin()) {
454
- const n = (t = e.$x) == null ? void 0 : t.$timezone;
455
- if (n)
456
- return n;
457
- }
458
- return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
459
- });
460
- r(this, "setTimezone", (e, t) => {
461
- if (this.getTimezone(e) === t)
439
+ const t = this.getTimezone(e);
440
+ if (t !== "UTC") {
441
+ const r = e.tz(this.cleanTimezone(t), !0);
442
+ if (r.$offset === (e.$offset ?? 0))
462
443
  return e;
463
- if (t === "UTC") {
464
- if (!this.hasUTCPlugin())
465
- throw new Error(ne);
466
- return e.utc();
467
- }
468
- if (t === "system")
469
- return e.local();
470
- if (!this.hasTimezonePlugin()) {
471
- if (t === "default")
472
- return e;
473
- throw new Error(he);
474
- }
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, (c, o, a) => o || a.slice(1));
483
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (l, c, o) => {
484
- const a = o && o.toUpperCase();
485
- return c || t[o] || n(t[a]);
486
- });
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, c = t;
537
- const o = [];
538
- for (; c < n; ) {
539
- const a = Math.floor(l / 7);
540
- o[a] = o[a] || [], o[a].push(c), c = this.addDays(c, 1), l += 1;
541
- }
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), c = [];
547
- let o = n;
548
- for (; this.isBefore(o, l); )
549
- c.push(o), o = this.addYears(o, 1);
550
- return c;
444
+ e.$offset = r.$offset;
445
+ }
446
+ return e;
447
+ };
448
+ 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);
449
+ getInvalidDate = () => l(/* @__PURE__ */ new Date("Invalid date"));
450
+ getTimezone = (e) => {
451
+ if (this.hasTimezonePlugin()) {
452
+ const t = e.$x?.$timezone;
453
+ if (t)
454
+ return t;
455
+ }
456
+ return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
457
+ };
458
+ setTimezone = (e, t) => {
459
+ if (this.getTimezone(e) === t)
460
+ return e;
461
+ if (t === "UTC") {
462
+ if (!this.hasUTCPlugin())
463
+ throw new Error(re);
464
+ return e.utc();
465
+ }
466
+ if (t === "system")
467
+ return e.local();
468
+ if (!this.hasTimezonePlugin()) {
469
+ if (t === "default")
470
+ return e;
471
+ throw new Error(fe);
472
+ }
473
+ return this.setLocaleToValue(l.tz(e, this.cleanTimezone(t)));
474
+ };
475
+ toJsDate = (e) => e.toDate();
476
+ parse = (e, t) => e === "" ? null : l(e, t, this.locale, !0);
477
+ getCurrentLocaleCode = () => this.locale || "en";
478
+ is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
479
+ expandFormat = (e) => {
480
+ const t = this.getLocaleFormats(), r = (c) => c.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (d, a, s) => a || s.slice(1));
481
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (c, d, a) => {
482
+ const s = a && a.toUpperCase();
483
+ return d || t[a] || r(t[s]);
551
484
  });
552
- this.locale = e, this.formats = Le({}, Ve, t), p.extend(je);
553
- }
485
+ };
486
+ isValid = (e) => e == null ? !1 : e.isValid();
487
+ format = (e, t) => this.formatByString(e, this.formats[t]);
488
+ formatByString = (e, t) => this.setLocaleToValue(e).format(t);
489
+ formatNumber = (e) => e;
490
+ isEqual = (e, t) => e === null && t === null ? !0 : e === null || t === null ? !1 : e.toDate().getTime() === t.toDate().getTime();
491
+ isSameYear = (e, t) => this.isSame(e, t, "YYYY");
492
+ isSameMonth = (e, t) => this.isSame(e, t, "YYYY-MM");
493
+ isSameDay = (e, t) => this.isSame(e, t, "YYYY-MM-DD");
494
+ isSameHour = (e, t) => e.isSame(t, "hour");
495
+ isAfter = (e, t) => e > t;
496
+ isAfterYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() > t.utc() : e.isAfter(t, "year");
497
+ isAfterDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() > t.utc() : e.isAfter(t, "day");
498
+ isBefore = (e, t) => e < t;
499
+ isBeforeYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() < t.utc() : e.isBefore(t, "year");
500
+ isBeforeDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() < t.utc() : e.isBefore(t, "day");
501
+ isWithinRange = (e, [t, r]) => e >= t && e <= r;
502
+ startOfYear = (e) => this.adjustOffset(e.startOf("year"));
503
+ startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
504
+ startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
505
+ startOfDay = (e) => this.adjustOffset(e.startOf("day"));
506
+ endOfYear = (e) => this.adjustOffset(e.endOf("year"));
507
+ endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
508
+ endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
509
+ endOfDay = (e) => this.adjustOffset(e.endOf("day"));
510
+ addYears = (e, t) => this.adjustOffset(e.add(t, "year"));
511
+ addMonths = (e, t) => this.adjustOffset(e.add(t, "month"));
512
+ addWeeks = (e, t) => this.adjustOffset(e.add(t, "week"));
513
+ addDays = (e, t) => this.adjustOffset(e.add(t, "day"));
514
+ addHours = (e, t) => this.adjustOffset(e.add(t, "hour"));
515
+ addMinutes = (e, t) => this.adjustOffset(e.add(t, "minute"));
516
+ addSeconds = (e, t) => this.adjustOffset(e.add(t, "second"));
517
+ getYear = (e) => e.year();
518
+ getMonth = (e) => e.month();
519
+ getDate = (e) => e.date();
520
+ getHours = (e) => e.hour();
521
+ getMinutes = (e) => e.minute();
522
+ getSeconds = (e) => e.second();
523
+ getMilliseconds = (e) => e.millisecond();
524
+ setYear = (e, t) => this.adjustOffset(e.set("year", t));
525
+ setMonth = (e, t) => this.adjustOffset(e.set("month", t));
526
+ setDate = (e, t) => this.adjustOffset(e.set("date", t));
527
+ setHours = (e, t) => this.adjustOffset(e.set("hour", t));
528
+ setMinutes = (e, t) => this.adjustOffset(e.set("minute", t));
529
+ setSeconds = (e, t) => this.adjustOffset(e.set("second", t));
530
+ setMilliseconds = (e, t) => this.adjustOffset(e.set("millisecond", t));
531
+ getDaysInMonth = (e) => e.daysInMonth();
532
+ getWeekArray = (e) => {
533
+ const t = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
534
+ let c = 0, d = t;
535
+ const a = [];
536
+ for (; d < r; ) {
537
+ const s = Math.floor(c / 7);
538
+ a[s] = a[s] || [], a[s].push(d), d = this.addDays(d, 1), c += 1;
539
+ }
540
+ return a;
541
+ };
542
+ getWeekNumber = (e) => e.week();
554
543
  getDayOfWeek(e) {
555
544
  return e.day() + 1;
556
545
  }
546
+ getYearRange = ([e, t]) => {
547
+ const r = this.startOfYear(e), c = this.endOfYear(t), d = [];
548
+ let a = r;
549
+ for (; this.isBefore(a, c); )
550
+ d.push(a), a = this.addYears(a, 1);
551
+ return d;
552
+ };
557
553
  }
558
- const se = ({ children: m }) => (
554
+ const Ve = ({ children: M }) => (
559
555
  // Material-UI X LocalizationProvider with Day.js adapter
560
- /* @__PURE__ */ Ye.jsx(we, { dateAdapter: qe, children: m })
556
+ /* @__PURE__ */ Me.jsx(ge, { dateAdapter: Ie, children: M })
561
557
  );
562
- se.displayName = "SLocalizationProvider";
563
- try {
564
- se.displayName = "SLocalizationProvider", se.__docgenInfo = { description: "Localization provider for Material-UI date picker components.", displayName: "SLocalizationProvider", props: { children: { defaultValue: null, description: "Child components that will have access to date localization", name: "children", required: !0, type: { name: "ReactNode" } } } };
565
- } catch {
566
- }
567
- try {
568
- slocalizationprovider.displayName = "slocalizationprovider", slocalizationprovider.__docgenInfo = { description: "Localization provider for Material-UI date picker components.", displayName: "slocalizationprovider", props: { children: { defaultValue: null, description: "Child components that will have access to date localization", name: "children", required: !0, type: { name: "ReactNode" } } } };
569
- } catch {
570
- }
558
+ Ve.displayName = "SLocalizationProvider";
571
559
  export {
572
- se as SLocalizationProvider,
573
- se as default
560
+ Ve as SLocalizationProvider,
561
+ Ve as default
574
562
  };