@cgi-learning-hub/ui 0.0.1-dev.1709719281 → 0.0.1-dev.1709720061

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 (82) hide show
  1. package/dist/{Box-CXP-5h9P.js → Box-DbTiG4H5.js} +3 -3
  2. package/dist/{ButtonBase-DpD6huF3.js → ButtonBase-Cj0VAGSo.js} +3 -3
  3. package/dist/{CircularProgress-C07SUcYf.js → CircularProgress-BqQQW0l9.js} +3 -3
  4. package/dist/{DefaultButton-_mrCx6TQ.js → DefaultButton-DdQUbrXq.js} +6 -6
  5. package/dist/{IconButton-BUJX1Kz7.js → IconButton-BO0e0bGH.js} +4 -4
  6. package/dist/{InputBase-U35goXkW.js → InputBase-D-C0U1Q3.js} +3 -3
  7. package/dist/LocalizationProvider-BqhYrFIl.js +573 -0
  8. package/dist/LocalizationProvider-CAosaaEW.cjs +5 -0
  9. package/dist/{SearchInput-lqqR8CpF.js → SearchInput-Ef9mtSE4.js} +5 -5
  10. package/dist/{Tabs-D8c80LIh.js → Tabs-DlViPyxj.js} +7 -7
  11. package/dist/{TextInput-Cg3iPUXm.js → TextInput-BzLHXWGA.js} +158 -158
  12. package/dist/{TextInput-Bnnhldff.cjs → TextInput-qJONVcHy.cjs} +1 -1
  13. package/dist/{TimePicker-w1u-gt1V.cjs → TimePicker-BhAd6Y8r.cjs} +1 -1
  14. package/dist/{TimePicker-C2DgLcWo.js → TimePicker-R9IvHk5c.js} +15 -15
  15. package/dist/{Typography-CMZpK-6k.js → Typography-gyI1N9sP.js} +2 -2
  16. package/dist/components/Dropzone/Dropzone.es.js +5 -5
  17. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  18. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +3 -2
  19. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  20. package/dist/components/LocalizationProvider/index.es.js +1 -1
  21. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  22. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
  23. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  24. package/dist/components/buttons/IconButton.stories.es.js +2 -2
  25. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
  26. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  27. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  28. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  29. package/dist/components/buttons/index.es.js +1 -1
  30. package/dist/components/index.cjs.js +1 -1
  31. package/dist/components/index.d.ts +0 -1
  32. package/dist/components/index.es.js +22 -22
  33. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -0
  34. package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +5 -0
  35. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +43 -0
  36. package/dist/components/inputs/PasswordInput/PasswordInput.stories.cjs.js +1 -0
  37. package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +16 -0
  38. package/dist/components/inputs/PasswordInput/index.cjs.js +1 -0
  39. package/dist/components/inputs/PasswordInput/index.d.ts +2 -0
  40. package/dist/components/inputs/PasswordInput/index.es.js +4 -0
  41. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  42. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  43. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  44. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  45. package/dist/components/inputs/TextInput/TextInput.d.ts +1 -0
  46. package/dist/components/inputs/TextInput/TextInput.es.js +3 -4
  47. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  48. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  49. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  50. package/dist/components/inputs/TextInput/index.es.js +1 -1
  51. package/dist/components/inputs/index.cjs.js +1 -1
  52. package/dist/components/inputs/index.d.ts +1 -0
  53. package/dist/components/inputs/index.es.js +6 -4
  54. package/dist/components/lists/FileList/FileList.es.js +1 -1
  55. package/dist/components/lists/FileList/FileListItem.es.js +5 -5
  56. package/dist/components/lists/TabList.stories.es.js +3 -3
  57. package/dist/{createSvgIcon-C2SxpGh8.js → createSvgIcon-D51qQ1iy.js} +2 -2
  58. package/dist/{createSvgIcon-CQqNddEV.js → createSvgIcon-RcVfBE0a.js} +6 -6
  59. package/dist/fr-BmGEYD_b.js +335 -0
  60. package/dist/fr-D4QyQkl7.cjs +1 -0
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.es.js +20 -20
  63. package/dist/{refType-ONErEPrN.js → refType-CRZJc9ll.js} +1 -1
  64. package/dist/{styled-CennO0rX.js → styled-Cu97anhh.js} +1 -1
  65. package/dist/{useSlotProps-BojAgRB1.js → useSlotProps-BE7y-efU.js} +2 -2
  66. package/dist/{useTheme-Dnkg8lL1.js → useTheme-zz1qDqSf.js} +1 -1
  67. package/dist/{useThemeProps-HgPikzOW.js → useThemeProps-HPaoKsTZ.js} +5 -5
  68. package/package.json +1 -1
  69. package/dist/LocalizationProvider-CEOwVRxT.js +0 -903
  70. package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
  71. package/dist/components/feedback/Alert/Alert.cjs.js +0 -1
  72. package/dist/components/feedback/Alert/Alert.d.ts +0 -7
  73. package/dist/components/feedback/Alert/Alert.es.js +0 -32
  74. package/dist/components/feedback/Alert/Alert.stories.cjs.js +0 -1
  75. package/dist/components/feedback/Alert/Alert.stories.es.js +0 -17
  76. package/dist/components/feedback/Alert/index.cjs.js +0 -1
  77. package/dist/components/feedback/Alert/index.d.ts +0 -2
  78. package/dist/components/feedback/Alert/index.es.js +0 -4
  79. package/dist/components/feedback/index.cjs.js +0 -1
  80. package/dist/components/feedback/index.d.ts +0 -1
  81. package/dist/components/feedback/index.es.js +0 -4
  82. /package/dist/components/{feedback/Alert/Alert.stories.d.ts → inputs/PasswordInput/PasswordInput.stories.d.ts} +0 -0
@@ -1,903 +0,0 @@
1
- import { jsx as ht } from "react/jsx-runtime";
2
- import { m as Q, n as tt, _ as dt, e as yt, b as pt, P as D } from "./useThemeProps-HgPikzOW.js";
3
- import * as K from "react";
4
- var nt = { exports: {} }, ot;
5
- function at() {
6
- return ot || (ot = 1, function(L, x) {
7
- (function(M, f) {
8
- L.exports = f();
9
- })(Q, function() {
10
- var M = 1e3, f = 6e4, $ = 36e5, t = "millisecond", e = "second", i = "minute", l = "hour", d = "day", y = "week", g = "month", O = "quarter", j = "year", U = "date", o = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(u) {
11
- var s = ["th", "st", "nd", "rd"], r = u % 100;
12
- return "[" + u + (s[(r - 20) % 10] || s[r] || s[0]) + "]";
13
- } }, H = function(u, s, r) {
14
- var a = String(u);
15
- return !a || a.length >= s ? u : "" + Array(s + 1 - a.length).join(r) + u;
16
- }, N = { s: H, z: function(u) {
17
- var s = -u.utcOffset(), r = Math.abs(s), a = Math.floor(r / 60), n = r % 60;
18
- return (s <= 0 ? "+" : "-") + H(a, 2, "0") + ":" + H(n, 2, "0");
19
- }, m: function u(s, r) {
20
- if (s.date() < r.date())
21
- return -u(r, s);
22
- var a = 12 * (r.year() - s.year()) + (r.month() - s.month()), n = s.clone().add(a, g), h = r - n < 0, c = s.clone().add(a + (h ? -1 : 1), g);
23
- return +(-(a + (r - n) / (h ? n - c : c - n)) || 0);
24
- }, a: function(u) {
25
- return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
26
- }, p: function(u) {
27
- return { M: g, y: j, w: y, d, D: U, h: l, m: i, s: e, ms: t, Q: O }[u] || String(u || "").toLowerCase().replace(/s$/, "");
28
- }, u: function(u) {
29
- return u === void 0;
30
- } }, B = "en", z = {};
31
- z[B] = _;
32
- var F = "$isDayjsObject", I = function(u) {
33
- return u instanceof A || !(!u || !u[F]);
34
- }, E = function u(s, r, a) {
35
- var n;
36
- if (!s)
37
- return B;
38
- if (typeof s == "string") {
39
- var h = s.toLowerCase();
40
- z[h] && (n = h), r && (z[h] = r, n = h);
41
- var c = s.split("-");
42
- if (!n && c.length > 1)
43
- return u(c[0]);
44
- } else {
45
- var T = s.name;
46
- z[T] = s, n = T;
47
- }
48
- return !a && n && (B = n), n || !a && B;
49
- }, Y = function(u, s) {
50
- if (I(u))
51
- return u.clone();
52
- var r = typeof s == "object" ? s : {};
53
- return r.date = u, r.args = arguments, new A(r);
54
- }, m = N;
55
- m.l = E, m.i = I, m.w = function(u, s) {
56
- return Y(u, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
57
- };
58
- var A = function() {
59
- function u(r) {
60
- this.$L = E(r.locale, null, !0), this.parse(r), this.$x = this.$x || r.x || {}, this[F] = !0;
61
- }
62
- var s = u.prototype;
63
- return s.parse = function(r) {
64
- this.$d = function(a) {
65
- var n = a.date, h = a.utc;
66
- if (n === null)
67
- return /* @__PURE__ */ new Date(NaN);
68
- if (m.u(n))
69
- return /* @__PURE__ */ new Date();
70
- if (n instanceof Date)
71
- return new Date(n);
72
- if (typeof n == "string" && !/Z$/i.test(n)) {
73
- var c = n.match(p);
74
- if (c) {
75
- var T = c[2] - 1 || 0, v = (c[7] || "0").substring(0, 3);
76
- return h ? new Date(Date.UTC(c[1], T, c[3] || 1, c[4] || 0, c[5] || 0, c[6] || 0, v)) : new Date(c[1], T, c[3] || 1, c[4] || 0, c[5] || 0, c[6] || 0, v);
77
- }
78
- }
79
- return new Date(n);
80
- }(r), this.init();
81
- }, s.init = function() {
82
- var r = this.$d;
83
- this.$y = r.getFullYear(), this.$M = r.getMonth(), this.$D = r.getDate(), this.$W = r.getDay(), this.$H = r.getHours(), this.$m = r.getMinutes(), this.$s = r.getSeconds(), this.$ms = r.getMilliseconds();
84
- }, s.$utils = function() {
85
- return m;
86
- }, s.isValid = function() {
87
- return this.$d.toString() !== o;
88
- }, s.isSame = function(r, a) {
89
- var n = Y(r);
90
- return this.startOf(a) <= n && n <= this.endOf(a);
91
- }, s.isAfter = function(r, a) {
92
- return Y(r) < this.startOf(a);
93
- }, s.isBefore = function(r, a) {
94
- return this.endOf(a) < Y(r);
95
- }, s.$g = function(r, a, n) {
96
- return m.u(r) ? this[a] : this.set(n, r);
97
- }, s.unix = function() {
98
- return Math.floor(this.valueOf() / 1e3);
99
- }, s.valueOf = function() {
100
- return this.$d.getTime();
101
- }, s.startOf = function(r, a) {
102
- var n = this, h = !!m.u(a) || a, c = m.p(r), T = function(J, k) {
103
- var W = m.w(n.$u ? Date.UTC(n.$y, k, J) : new Date(n.$y, k, J), n);
104
- return h ? W : W.endOf(d);
105
- }, v = function(J, k) {
106
- return m.w(n.toDate()[J].apply(n.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), n);
107
- }, S = this.$W, b = this.$M, P = this.$D, R = "set" + (this.$u ? "UTC" : "");
108
- switch (c) {
109
- case j:
110
- return h ? T(1, 0) : T(31, 11);
111
- case g:
112
- return h ? T(1, b) : T(0, b + 1);
113
- case y:
114
- var V = this.$locale().weekStart || 0, q = (S < V ? S + 7 : S) - V;
115
- return T(h ? P - q : P + (6 - q), b);
116
- case d:
117
- case U:
118
- return v(R + "Hours", 0);
119
- case l:
120
- return v(R + "Minutes", 1);
121
- case i:
122
- return v(R + "Seconds", 2);
123
- case e:
124
- return v(R + "Milliseconds", 3);
125
- default:
126
- return this.clone();
127
- }
128
- }, s.endOf = function(r) {
129
- return this.startOf(r, !1);
130
- }, s.$set = function(r, a) {
131
- var n, h = m.p(r), c = "set" + (this.$u ? "UTC" : ""), T = (n = {}, n[d] = c + "Date", n[U] = c + "Date", n[g] = c + "Month", n[j] = c + "FullYear", n[l] = c + "Hours", n[i] = c + "Minutes", n[e] = c + "Seconds", n[t] = c + "Milliseconds", n)[h], v = h === d ? this.$D + (a - this.$W) : a;
132
- if (h === g || h === j) {
133
- var S = this.clone().set(U, 1);
134
- S.$d[T](v), S.init(), this.$d = S.set(U, Math.min(this.$D, S.daysInMonth())).$d;
135
- } else
136
- T && this.$d[T](v);
137
- return this.init(), this;
138
- }, s.set = function(r, a) {
139
- return this.clone().$set(r, a);
140
- }, s.get = function(r) {
141
- return this[m.p(r)]();
142
- }, s.add = function(r, a) {
143
- var n, h = this;
144
- r = Number(r);
145
- var c = m.p(a), T = function(b) {
146
- var P = Y(h);
147
- return m.w(P.date(P.date() + Math.round(b * r)), h);
148
- };
149
- if (c === g)
150
- return this.set(g, this.$M + r);
151
- if (c === j)
152
- return this.set(j, this.$y + r);
153
- if (c === d)
154
- return T(1);
155
- if (c === y)
156
- return T(7);
157
- var v = (n = {}, n[i] = f, n[l] = $, n[e] = M, n)[c] || 1, S = this.$d.getTime() + r * v;
158
- return m.w(S, this);
159
- }, s.subtract = function(r, a) {
160
- return this.add(-1 * r, a);
161
- }, s.format = function(r) {
162
- var a = this, n = this.$locale();
163
- if (!this.isValid())
164
- return n.invalidDate || o;
165
- var h = r || "YYYY-MM-DDTHH:mm:ssZ", c = m.z(this), T = this.$H, v = this.$m, S = this.$M, b = n.weekdays, P = n.months, R = n.meridiem, V = function(k, W, G, X) {
166
- return k && (k[W] || k(a, h)) || G[W].slice(0, X);
167
- }, q = function(k) {
168
- return m.s(T % 12 || 12, k, "0");
169
- }, J = R || function(k, W, G) {
170
- var X = k < 12 ? "AM" : "PM";
171
- return G ? X.toLowerCase() : X;
172
- };
173
- return h.replace(w, function(k, W) {
174
- return W || function(G) {
175
- switch (G) {
176
- case "YY":
177
- return String(a.$y).slice(-2);
178
- case "YYYY":
179
- return m.s(a.$y, 4, "0");
180
- case "M":
181
- return S + 1;
182
- case "MM":
183
- return m.s(S + 1, 2, "0");
184
- case "MMM":
185
- return V(n.monthsShort, S, P, 3);
186
- case "MMMM":
187
- return V(P, S);
188
- case "D":
189
- return a.$D;
190
- case "DD":
191
- return m.s(a.$D, 2, "0");
192
- case "d":
193
- return String(a.$W);
194
- case "dd":
195
- return V(n.weekdaysMin, a.$W, b, 2);
196
- case "ddd":
197
- return V(n.weekdaysShort, a.$W, b, 3);
198
- case "dddd":
199
- return b[a.$W];
200
- case "H":
201
- return String(T);
202
- case "HH":
203
- return m.s(T, 2, "0");
204
- case "h":
205
- return q(1);
206
- case "hh":
207
- return q(2);
208
- case "a":
209
- return J(T, v, !0);
210
- case "A":
211
- return J(T, v, !1);
212
- case "m":
213
- return String(v);
214
- case "mm":
215
- return m.s(v, 2, "0");
216
- case "s":
217
- return String(a.$s);
218
- case "ss":
219
- return m.s(a.$s, 2, "0");
220
- case "SSS":
221
- return m.s(a.$ms, 3, "0");
222
- case "Z":
223
- return c;
224
- }
225
- return null;
226
- }(k) || c.replace(":", "");
227
- });
228
- }, s.utcOffset = function() {
229
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
230
- }, s.diff = function(r, a, n) {
231
- var h, c = this, T = m.p(a), v = Y(r), S = (v.utcOffset() - this.utcOffset()) * f, b = this - v, P = function() {
232
- return m.m(c, v);
233
- };
234
- switch (T) {
235
- case j:
236
- h = P() / 12;
237
- break;
238
- case g:
239
- h = P();
240
- break;
241
- case O:
242
- h = P() / 3;
243
- break;
244
- case y:
245
- h = (b - S) / 6048e5;
246
- break;
247
- case d:
248
- h = (b - S) / 864e5;
249
- break;
250
- case l:
251
- h = b / $;
252
- break;
253
- case i:
254
- h = b / f;
255
- break;
256
- case e:
257
- h = b / M;
258
- break;
259
- default:
260
- h = b;
261
- }
262
- return n ? h : m.a(h);
263
- }, s.daysInMonth = function() {
264
- return this.endOf(g).$D;
265
- }, s.$locale = function() {
266
- return z[this.$L];
267
- }, s.locale = function(r, a) {
268
- if (!r)
269
- return this.$L;
270
- var n = this.clone(), h = E(r, a, !0);
271
- return h && (n.$L = h), n;
272
- }, s.clone = function() {
273
- return m.w(this.$d, this);
274
- }, s.toDate = function() {
275
- return new Date(this.valueOf());
276
- }, s.toJSON = function() {
277
- return this.isValid() ? this.toISOString() : null;
278
- }, s.toISOString = function() {
279
- return this.$d.toISOString();
280
- }, s.toString = function() {
281
- return this.$d.toUTCString();
282
- }, u;
283
- }(), Z = A.prototype;
284
- return Y.prototype = Z, [["$ms", t], ["$s", e], ["$m", i], ["$H", l], ["$W", d], ["$M", g], ["$y", j], ["$D", U]].forEach(function(u) {
285
- Z[u[1]] = function(s) {
286
- return this.$g(s, u[0], u[1]);
287
- };
288
- }), Y.extend = function(u, s) {
289
- return u.$i || (u(s, A, Y), u.$i = !0), Y;
290
- }, Y.locale = E, Y.isDayjs = I, Y.unix = function(u) {
291
- return Y(1e3 * u);
292
- }, Y.en = z[B], Y.Ls = z, Y.p = {}, Y;
293
- });
294
- }(nt)), nt.exports;
295
- }
296
- var gt = at();
297
- const C = /* @__PURE__ */ tt(gt);
298
- var ct = { exports: {} };
299
- (function(L, x) {
300
- (function(M, f) {
301
- L.exports = f();
302
- })(Q, function() {
303
- var M = "week", f = "year";
304
- return function($, t, e) {
305
- var i = t.prototype;
306
- i.week = function(l) {
307
- if (l === void 0 && (l = null), l !== null)
308
- return this.add(7 * (l - this.week()), "day");
309
- var d = this.$locale().yearStart || 1;
310
- if (this.month() === 11 && this.date() > 25) {
311
- var y = e(this).startOf(f).add(1, f).date(d), g = e(this).endOf(M);
312
- if (y.isBefore(g))
313
- return 1;
314
- }
315
- var O = e(this).startOf(f).date(d).startOf(M).subtract(1, "millisecond"), j = this.diff(O, M, !0);
316
- return j < 0 ? e(this).startOf("week").week() : Math.ceil(j);
317
- }, i.weeks = function(l) {
318
- return l === void 0 && (l = null), this.week(l);
319
- };
320
- };
321
- });
322
- })(ct);
323
- var Dt = ct.exports;
324
- const Tt = /* @__PURE__ */ tt(Dt);
325
- var ft = { exports: {} };
326
- (function(L, x) {
327
- (function(M, f) {
328
- L.exports = f();
329
- })(Q, function() {
330
- var M = { 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" }, f = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, $ = /\d\d/, t = /\d\d?/, e = /\d*[^-_:/,()\s\d]+/, i = {}, l = function(o) {
331
- return (o = +o) + (o > 68 ? 1900 : 2e3);
332
- }, d = function(o) {
333
- return function(p) {
334
- this[o] = +p;
335
- };
336
- }, y = [/[+-]\d\d:?(\d\d)?|Z/, function(o) {
337
- (this.zone || (this.zone = {})).offset = function(p) {
338
- if (!p || p === "Z")
339
- return 0;
340
- var w = p.match(/([+-]|\d\d)/g), _ = 60 * w[1] + (+w[2] || 0);
341
- return _ === 0 ? 0 : w[0] === "+" ? -_ : _;
342
- }(o);
343
- }], g = function(o) {
344
- var p = i[o];
345
- return p && (p.indexOf ? p : p.s.concat(p.f));
346
- }, O = function(o, p) {
347
- var w, _ = i.meridiem;
348
- if (_) {
349
- for (var H = 1; H <= 24; H += 1)
350
- if (o.indexOf(_(H, 0, p)) > -1) {
351
- w = H > 12;
352
- break;
353
- }
354
- } else
355
- w = o === (p ? "pm" : "PM");
356
- return w;
357
- }, j = { A: [e, function(o) {
358
- this.afternoon = O(o, !1);
359
- }], a: [e, function(o) {
360
- this.afternoon = O(o, !0);
361
- }], S: [/\d/, function(o) {
362
- this.milliseconds = 100 * +o;
363
- }], SS: [$, function(o) {
364
- this.milliseconds = 10 * +o;
365
- }], SSS: [/\d{3}/, function(o) {
366
- this.milliseconds = +o;
367
- }], s: [t, d("seconds")], ss: [t, d("seconds")], m: [t, d("minutes")], mm: [t, d("minutes")], H: [t, d("hours")], h: [t, d("hours")], HH: [t, d("hours")], hh: [t, d("hours")], D: [t, d("day")], DD: [$, d("day")], Do: [e, function(o) {
368
- var p = i.ordinal, w = o.match(/\d+/);
369
- if (this.day = w[0], p)
370
- for (var _ = 1; _ <= 31; _ += 1)
371
- p(_).replace(/\[|\]/g, "") === o && (this.day = _);
372
- }], M: [t, d("month")], MM: [$, d("month")], MMM: [e, function(o) {
373
- var p = g("months"), w = (g("monthsShort") || p.map(function(_) {
374
- return _.slice(0, 3);
375
- })).indexOf(o) + 1;
376
- if (w < 1)
377
- throw new Error();
378
- this.month = w % 12 || w;
379
- }], MMMM: [e, function(o) {
380
- var p = g("months").indexOf(o) + 1;
381
- if (p < 1)
382
- throw new Error();
383
- this.month = p % 12 || p;
384
- }], Y: [/[+-]?\d+/, d("year")], YY: [$, function(o) {
385
- this.year = l(o);
386
- }], YYYY: [/\d{4}/, d("year")], Z: y, ZZ: y };
387
- function U(o) {
388
- var p, w;
389
- p = o, w = i && i.formats;
390
- for (var _ = (o = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(E, Y, m) {
391
- var A = m && m.toUpperCase();
392
- return Y || w[m] || M[m] || w[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(Z, u, s) {
393
- return u || s.slice(1);
394
- });
395
- })).match(f), H = _.length, N = 0; N < H; N += 1) {
396
- var B = _[N], z = j[B], F = z && z[0], I = z && z[1];
397
- _[N] = I ? { regex: F, parser: I } : B.replace(/^\[|\]$/g, "");
398
- }
399
- return function(E) {
400
- for (var Y = {}, m = 0, A = 0; m < H; m += 1) {
401
- var Z = _[m];
402
- if (typeof Z == "string")
403
- A += Z.length;
404
- else {
405
- var u = Z.regex, s = Z.parser, r = E.slice(A), a = u.exec(r)[0];
406
- s.call(Y, a), E = E.replace(a, "");
407
- }
408
- }
409
- return function(n) {
410
- var h = n.afternoon;
411
- if (h !== void 0) {
412
- var c = n.hours;
413
- h ? c < 12 && (n.hours += 12) : c === 12 && (n.hours = 0), delete n.afternoon;
414
- }
415
- }(Y), Y;
416
- };
417
- }
418
- return function(o, p, w) {
419
- w.p.customParseFormat = !0, o && o.parseTwoDigitYear && (l = o.parseTwoDigitYear);
420
- var _ = p.prototype, H = _.parse;
421
- _.parse = function(N) {
422
- var B = N.date, z = N.utc, F = N.args;
423
- this.$u = z;
424
- var I = F[1];
425
- if (typeof I == "string") {
426
- var E = F[2] === !0, Y = F[3] === !0, m = E || Y, A = F[2];
427
- Y && (A = F[2]), i = this.$locale(), !E && A && (i = w.Ls[A]), this.$d = function(r, a, n) {
428
- try {
429
- if (["x", "X"].indexOf(a) > -1)
430
- return new Date((a === "X" ? 1e3 : 1) * r);
431
- var h = U(a)(r), c = h.year, T = h.month, v = h.day, S = h.hours, b = h.minutes, P = h.seconds, R = h.milliseconds, V = h.zone, q = /* @__PURE__ */ new Date(), J = v || (c || T ? 1 : q.getDate()), k = c || q.getFullYear(), W = 0;
432
- c && !T || (W = T > 0 ? T - 1 : q.getMonth());
433
- var G = S || 0, X = b || 0, et = P || 0, rt = R || 0;
434
- return V ? new Date(Date.UTC(k, W, J, G, X, et, rt + 60 * V.offset * 1e3)) : n ? new Date(Date.UTC(k, W, J, G, X, et, rt)) : new Date(k, W, J, G, X, et, rt);
435
- } catch {
436
- return /* @__PURE__ */ new Date("");
437
- }
438
- }(B, I, z), this.init(), A && A !== !0 && (this.$L = this.locale(A).$L), m && B != this.format(I) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
439
- } else if (I instanceof Array)
440
- for (var Z = I.length, u = 1; u <= Z; u += 1) {
441
- F[1] = I[u - 1];
442
- var s = w.apply(this, F);
443
- if (s.isValid()) {
444
- this.$d = s.$d, this.$L = s.$L, this.init();
445
- break;
446
- }
447
- u === Z && (this.$d = /* @__PURE__ */ new Date(""));
448
- }
449
- else
450
- H.call(this, N);
451
- };
452
- };
453
- });
454
- })(ft);
455
- var _t = ft.exports;
456
- const Yt = /* @__PURE__ */ tt(_t);
457
- var lt = { exports: {} };
458
- (function(L, x) {
459
- (function(M, f) {
460
- L.exports = f();
461
- })(Q, function() {
462
- var M = { 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" };
463
- return function(f, $, t) {
464
- var e = $.prototype, i = e.format;
465
- t.en.formats = M, e.format = function(l) {
466
- l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
467
- var d = this.$locale().formats, y = function(g, O) {
468
- return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(j, U, o) {
469
- var p = o && o.toUpperCase();
470
- return U || O[o] || M[o] || O[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(w, _, H) {
471
- return _ || H.slice(1);
472
- });
473
- });
474
- }(l, d === void 0 ? {} : d);
475
- return i.call(this, y);
476
- };
477
- };
478
- });
479
- })(lt);
480
- var Lt = lt.exports;
481
- const wt = /* @__PURE__ */ tt(Lt);
482
- var mt = { exports: {} };
483
- (function(L, x) {
484
- (function(M, f) {
485
- L.exports = f();
486
- })(Q, function() {
487
- return function(M, f, $) {
488
- f.prototype.isBetween = function(t, e, i, l) {
489
- var d = $(t), y = $(e), g = (l = l || "()")[0] === "(", O = l[1] === ")";
490
- return (g ? this.isAfter(d, i) : !this.isBefore(d, i)) && (O ? this.isBefore(y, i) : !this.isAfter(y, i)) || (g ? this.isBefore(d, i) : !this.isAfter(d, i)) && (O ? this.isAfter(y, i) : !this.isBefore(y, i));
491
- };
492
- };
493
- });
494
- })(mt);
495
- var $t = mt.exports;
496
- const vt = /* @__PURE__ */ tt($t), xt = (L, x = "warning") => {
497
- let M = !1;
498
- const f = Array.isArray(L) ? L.join(`
499
- `) : L;
500
- return () => {
501
- M || (M = !0, x === "error" ? console.error(f) : console.warn(f));
502
- };
503
- };
504
- C.extend(Yt);
505
- C.extend(wt);
506
- C.extend(vt);
507
- const Ot = xt(["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"]), St = {
508
- // Year
509
- YY: "year",
510
- YYYY: {
511
- sectionType: "year",
512
- contentType: "digit",
513
- maxLength: 4
514
- },
515
- // Month
516
- M: {
517
- sectionType: "month",
518
- contentType: "digit",
519
- maxLength: 2
520
- },
521
- MM: "month",
522
- MMM: {
523
- sectionType: "month",
524
- contentType: "letter"
525
- },
526
- MMMM: {
527
- sectionType: "month",
528
- contentType: "letter"
529
- },
530
- // Day of the month
531
- D: {
532
- sectionType: "day",
533
- contentType: "digit",
534
- maxLength: 2
535
- },
536
- DD: "day",
537
- Do: {
538
- sectionType: "day",
539
- contentType: "digit-with-letter"
540
- },
541
- // Day of the week
542
- d: {
543
- sectionType: "weekDay",
544
- contentType: "digit",
545
- maxLength: 2
546
- },
547
- dd: {
548
- sectionType: "weekDay",
549
- contentType: "letter"
550
- },
551
- ddd: {
552
- sectionType: "weekDay",
553
- contentType: "letter"
554
- },
555
- dddd: {
556
- sectionType: "weekDay",
557
- contentType: "letter"
558
- },
559
- // Meridiem
560
- A: "meridiem",
561
- a: "meridiem",
562
- // Hours
563
- H: {
564
- sectionType: "hours",
565
- contentType: "digit",
566
- maxLength: 2
567
- },
568
- HH: "hours",
569
- h: {
570
- sectionType: "hours",
571
- contentType: "digit",
572
- maxLength: 2
573
- },
574
- hh: "hours",
575
- // Minutes
576
- m: {
577
- sectionType: "minutes",
578
- contentType: "digit",
579
- maxLength: 2
580
- },
581
- mm: "minutes",
582
- // Seconds
583
- s: {
584
- sectionType: "seconds",
585
- contentType: "digit",
586
- maxLength: 2
587
- },
588
- ss: "seconds"
589
- }, bt = {
590
- year: "YYYY",
591
- month: "MMMM",
592
- monthShort: "MMM",
593
- dayOfMonth: "D",
594
- weekday: "dddd",
595
- weekdayShort: "dd",
596
- hours24h: "HH",
597
- hours12h: "hh",
598
- meridiem: "A",
599
- minutes: "mm",
600
- seconds: "ss",
601
- fullDate: "ll",
602
- fullDateWithWeekday: "dddd, LL",
603
- keyboardDate: "L",
604
- shortDate: "MMM D",
605
- normalDate: "D MMMM",
606
- normalDateWithWeekday: "ddd, MMM D",
607
- monthAndYear: "MMMM YYYY",
608
- monthAndDate: "MMMM D",
609
- fullTime: "LT",
610
- fullTime12h: "hh:mm A",
611
- fullTime24h: "HH:mm",
612
- fullDateTime: "lll",
613
- fullDateTime12h: "ll hh:mm A",
614
- fullDateTime24h: "ll HH:mm",
615
- keyboardDateTime: "L LT",
616
- keyboardDateTime12h: "L hh:mm A",
617
- keyboardDateTime24h: "L HH:mm"
618
- }, st = ["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(`
619
- `), ut = ["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(`
620
- `), kt = (L, x) => x ? (...M) => L(...M).locale(x) : L;
621
- class jt {
622
- constructor({
623
- locale: x,
624
- formats: M,
625
- instance: f
626
- } = {}) {
627
- var $;
628
- this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = "dayjs", this.rawDayJsInstance = void 0, this.dayjs = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
629
- start: "[",
630
- end: "]"
631
- }, this.formatTokenMap = St, this.setLocaleToValue = (t) => {
632
- const e = this.getCurrentLocaleCode();
633
- return e === t.locale() ? t : t.locale(e);
634
- }, this.hasUTCPlugin = () => typeof C.utc < "u", this.hasTimezonePlugin = () => typeof C.tz < "u", this.isSame = (t, e, i) => {
635
- const l = this.setTimezone(e, this.getTimezone(t));
636
- return t.format(i) === l.format(i);
637
- }, this.cleanTimezone = (t) => {
638
- switch (t) {
639
- case "default":
640
- return;
641
- case "system":
642
- return C.tz.guess();
643
- default:
644
- return t;
645
- }
646
- }, this.createSystemDate = (t) => {
647
- if (this.rawDayJsInstance)
648
- return this.rawDayJsInstance(t);
649
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
650
- const e = C.tz.guess();
651
- return e !== "UTC" ? C.tz(t, e) : C(t);
652
- }
653
- return C(t);
654
- }, this.createUTCDate = (t) => {
655
- if (!this.hasUTCPlugin())
656
- throw new Error(st);
657
- return C.utc(t);
658
- }, this.createTZDate = (t, e) => {
659
- if (!this.hasUTCPlugin())
660
- throw new Error(st);
661
- if (!this.hasTimezonePlugin())
662
- throw new Error(ut);
663
- const i = t !== void 0 && !t.endsWith("Z");
664
- return C(t).tz(this.cleanTimezone(e), i);
665
- }, this.getLocaleFormats = () => {
666
- const t = C.Ls, e = this.locale || "en";
667
- let i = t[e];
668
- return i === void 0 && (Ot(), i = t.en), i.formats;
669
- }, this.adjustOffset = (t) => {
670
- if (!this.hasTimezonePlugin())
671
- return t;
672
- const e = this.getTimezone(t);
673
- if (e !== "UTC") {
674
- var i, l;
675
- const d = t.tz(this.cleanTimezone(e), !0);
676
- return ((i = d.$offset) != null ? i : 0) === ((l = t.$offset) != null ? l : 0) ? t : d;
677
- }
678
- return t;
679
- }, this.date = (t) => t === null ? null : this.dayjs(t), this.dateWithTimezone = (t, e) => {
680
- if (t === null)
681
- return null;
682
- let i;
683
- return e === "UTC" ? i = this.createUTCDate(t) : e === "system" || e === "default" && !this.hasTimezonePlugin() ? i = this.createSystemDate(t) : i = this.createTZDate(t, e), this.locale === void 0 ? i : i.locale(this.locale);
684
- }, this.getTimezone = (t) => {
685
- if (this.hasTimezonePlugin()) {
686
- var e;
687
- const i = (e = t.$x) == null ? void 0 : e.$timezone;
688
- if (i)
689
- return i;
690
- }
691
- return this.hasUTCPlugin() && t.isUTC() ? "UTC" : "system";
692
- }, this.setTimezone = (t, e) => {
693
- if (this.getTimezone(t) === e)
694
- return t;
695
- if (e === "UTC") {
696
- if (!this.hasUTCPlugin())
697
- throw new Error(st);
698
- return t.utc();
699
- }
700
- if (e === "system")
701
- return t.local();
702
- if (!this.hasTimezonePlugin()) {
703
- if (e === "default")
704
- return t;
705
- throw new Error(ut);
706
- }
707
- return C.tz(t, this.cleanTimezone(e));
708
- }, this.toJsDate = (t) => t.toDate(), this.parseISO = (t) => this.dayjs(t), this.toISO = (t) => t.toISOString(), this.parse = (t, e) => t === "" ? null : this.dayjs(t, e, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
709
- const e = this.getLocaleFormats(), i = (l) => l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (d, y, g) => y || g.slice(1));
710
- return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (l, d, y) => {
711
- const g = y && y.toUpperCase();
712
- return d || e[y] || i(e[g]);
713
- });
714
- }, this.getFormatHelperText = (t) => this.expandFormat(t).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (t) => t === null, this.isValid = (t) => this.dayjs(t).isValid(), this.format = (t, e) => this.formatByString(t, this.formats[e]), this.formatByString = (t, e) => this.dayjs(t).format(e), this.formatNumber = (t) => t, this.getDiff = (t, e, i) => t.diff(e, i), this.isEqual = (t, e) => t === null && e === null ? !0 : this.dayjs(t).toDate().getTime() === this.dayjs(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(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(t.endOf("week")), this.endOfDay = (t) => this.adjustOffset(t.endOf("day")), this.addYears = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "year") : t.add(e, "year")), this.addMonths = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "month") : t.add(e, "month")), this.addWeeks = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "week") : t.add(e, "week")), this.addDays = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "day") : t.add(e, "day")), this.addHours = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "hour") : t.add(e, "hour")), this.addMinutes = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "minute") : t.add(e, "minute")), this.addSeconds = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "second") : 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.getNextMonth = (t) => this.addMonths(t, 1), this.getPreviousMonth = (t) => this.addMonths(t, -1), this.getMonthArray = (t) => {
715
- const i = [t.startOf("year")];
716
- for (; i.length < 12; ) {
717
- const l = i[i.length - 1];
718
- i.push(this.addMonths(l, 1));
719
- }
720
- return i;
721
- }, this.mergeDateAndTime = (t, e) => t.hour(e.hour()).minute(e.minute()).second(e.second()), this.getWeekdays = () => {
722
- const t = this.dayjs().startOf("week");
723
- return [0, 1, 2, 3, 4, 5, 6].map((e) => this.formatByString(this.addDays(t, e), "dd"));
724
- }, this.getWeekArray = (t) => {
725
- const e = this.setLocaleToValue(t), i = e.startOf("month").startOf("week"), l = e.endOf("month").endOf("week");
726
- let d = 0, y = i;
727
- const g = [];
728
- for (; y < l; ) {
729
- const O = Math.floor(d / 7);
730
- g[O] = g[O] || [], g[O].push(y), y = this.addDays(y, 1), d += 1;
731
- }
732
- return g;
733
- }, this.getWeekNumber = (t) => t.week(), this.getYearRange = (t, e) => {
734
- const i = t.startOf("year"), l = e.endOf("year"), d = [];
735
- let y = i;
736
- for (; y < l; )
737
- d.push(y), y = this.addYears(y, 1);
738
- return d;
739
- }, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = f, this.dayjs = kt(($ = this.rawDayJsInstance) != null ? $ : C, x), this.locale = x, this.formats = dt({}, bt, M), C.extend(Tt);
740
- }
741
- }
742
- const At = ["localeText"], it = /* @__PURE__ */ K.createContext(null);
743
- process.env.NODE_ENV !== "production" && (it.displayName = "MuiPickersAdapterContext");
744
- const Mt = function(x) {
745
- var M;
746
- const {
747
- localeText: f
748
- } = x, $ = yt(x, At), {
749
- utils: t,
750
- localeText: e
751
- } = (M = K.useContext(it)) != null ? M : {
752
- utils: void 0,
753
- localeText: void 0
754
- }, i = pt({
755
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
756
- // We will then merge this theme value with our value manually
757
- props: $,
758
- name: "MuiLocalizationProvider"
759
- }), {
760
- children: l,
761
- dateAdapter: d,
762
- dateFormats: y,
763
- dateLibInstance: g,
764
- adapterLocale: O,
765
- localeText: j
766
- } = i, U = K.useMemo(() => dt({}, j, e, f), [j, e, f]), o = K.useMemo(() => {
767
- if (!d)
768
- return t || null;
769
- const _ = new d({
770
- locale: O,
771
- formats: y,
772
- instance: g
773
- });
774
- if (!_.isMUIAdapter)
775
- throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
776
- `));
777
- return _;
778
- }, [d, O, y, g, t]), p = K.useMemo(() => o ? {
779
- minDate: o.date("1900-01-01T00:00:00.000"),
780
- maxDate: o.date("2099-12-31T00:00:00.000")
781
- } : null, [o]), w = K.useMemo(() => ({
782
- utils: o,
783
- defaultDates: p,
784
- localeText: U
785
- }), [p, o, U]);
786
- return /* @__PURE__ */ ht(it.Provider, {
787
- value: w,
788
- children: l
789
- });
790
- };
791
- process.env.NODE_ENV !== "production" && (Mt.propTypes = {
792
- // ----------------------------- Warning --------------------------------
793
- // | These PropTypes are generated from the TypeScript type definitions |
794
- // | To update them edit the TypeScript types and run "yarn proptypes" |
795
- // ----------------------------------------------------------------------
796
- /**
797
- * Locale for the date library you are using
798
- */
799
- adapterLocale: D.any,
800
- children: D.node,
801
- /**
802
- * Date library adapter class function.
803
- * @see See the localization provider {@link https://mui.com/x/react-date-pickers/getting-started/#setup-your-date-library-adapter date adapter setup section} for more details.
804
- */
805
- dateAdapter: D.func,
806
- /**
807
- * Formats that are used for any child pickers
808
- */
809
- dateFormats: D.shape({
810
- dayOfMonth: D.string,
811
- fullDate: D.string,
812
- fullDateTime: D.string,
813
- fullDateTime12h: D.string,
814
- fullDateTime24h: D.string,
815
- fullDateWithWeekday: D.string,
816
- fullTime: D.string,
817
- fullTime12h: D.string,
818
- fullTime24h: D.string,
819
- hours12h: D.string,
820
- hours24h: D.string,
821
- keyboardDate: D.string,
822
- keyboardDateTime: D.string,
823
- keyboardDateTime12h: D.string,
824
- keyboardDateTime24h: D.string,
825
- meridiem: D.string,
826
- minutes: D.string,
827
- month: D.string,
828
- monthAndDate: D.string,
829
- monthAndYear: D.string,
830
- monthShort: D.string,
831
- normalDate: D.string,
832
- normalDateWithWeekday: D.string,
833
- seconds: D.string,
834
- shortDate: D.string,
835
- weekday: D.string,
836
- weekdayShort: D.string,
837
- year: D.string
838
- }),
839
- /**
840
- * Date library instance you are using, if it has some global overrides
841
- * ```jsx
842
- * dateLibInstance={momentTimeZone}
843
- * ```
844
- */
845
- dateLibInstance: D.any,
846
- /**
847
- * Locale for components texts
848
- */
849
- localeText: D.object
850
- });
851
- var Ct = { exports: {} };
852
- (function(L, x) {
853
- (function(M, f) {
854
- L.exports = f();
855
- })(Q, function() {
856
- return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
857
- var f = ["th", "st", "nd", "rd"], $ = M % 100;
858
- return "[" + M + (f[($ - 20) % 10] || f[$] || f[0]) + "]";
859
- } };
860
- });
861
- })(Ct);
862
- var Ht = { exports: {} };
863
- (function(L, x) {
864
- (function(M, f) {
865
- L.exports = f(at());
866
- })(Q, function(M) {
867
- function f(e) {
868
- return e && typeof e == "object" && "default" in e ? e : { default: e };
869
- }
870
- var $ = f(M), t = { name: "es", monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), weekStart: 1, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, ordinal: function(e) {
871
- return e + "º";
872
- } };
873
- return $.default.locale(t, null, !0), t;
874
- });
875
- })(Ht);
876
- var zt = { exports: {} };
877
- (function(L, x) {
878
- (function(M, f) {
879
- L.exports = f(at());
880
- })(Q, function(M) {
881
- function f(e) {
882
- return e && typeof e == "object" && "default" in e ? e : { default: e };
883
- }
884
- var $ = f(M), t = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(e) {
885
- return "" + e + (e === 1 ? "er" : "");
886
- } };
887
- return $.default.locale(t, null, !0), t;
888
- });
889
- })(zt);
890
- const Wt = ({ adapterLocale: L = "fr", ...x }) => /* @__PURE__ */ ht(
891
- Mt,
892
- {
893
- dateAdapter: jt,
894
- adapterLocale: L,
895
- ...x
896
- }
897
- );
898
- export {
899
- Wt as L,
900
- it as M,
901
- Mt as a,
902
- xt as b
903
- };