@grapadigital/shared-app-modules 0.0.79 → 0.0.80

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 (58) hide show
  1. package/package.json +9 -9
  2. package/dist/action.d.ts +0 -526
  3. package/dist/action.js +0 -1
  4. package/dist/assets/timeline.css +0 -1
  5. package/dist/chuncks/card.Bockr0Tv.js +0 -91
  6. package/dist/chuncks/shared-app-modules.provider.DRJ7n4Cj.js +0 -13
  7. package/dist/chuncks/timeline.DfIC0519.js +0 -10963
  8. package/dist/chuncks/use-shared-app-modules.hook.BneFRNyA.js +0 -25
  9. package/dist/client.d.ts +0 -73
  10. package/dist/client.js +0 -1
  11. package/dist/commission.d.ts +0 -18
  12. package/dist/commission.js +0 -1
  13. package/dist/components.d.ts +0 -661
  14. package/dist/components.js +0 -1089
  15. package/dist/constants.d.ts +0 -24
  16. package/dist/constants.js +0 -7
  17. package/dist/content.d.ts +0 -526
  18. package/dist/content.js +0 -1
  19. package/dist/contract.d.ts +0 -19
  20. package/dist/contract.js +0 -1
  21. package/dist/curation.d.ts +0 -117
  22. package/dist/curation.js +0 -1
  23. package/dist/dataservices.d.ts +0 -5
  24. package/dist/dataservices.js +0 -1
  25. package/dist/events.d.ts +0 -52
  26. package/dist/events.js +0 -16
  27. package/dist/hooks.d.ts +0 -15
  28. package/dist/hooks.js +0 -5
  29. package/dist/influencer.d.ts +0 -69
  30. package/dist/influencer.js +0 -1
  31. package/dist/invoice.d.ts +0 -526
  32. package/dist/invoice.js +0 -1
  33. package/dist/lib.d.ts +0 -1
  34. package/dist/lib.js +0 -1
  35. package/dist/log.d.ts +0 -20
  36. package/dist/log.js +0 -1
  37. package/dist/pages.d.ts +0 -14
  38. package/dist/pages.js +0 -53
  39. package/dist/payment.d.ts +0 -526
  40. package/dist/payment.js +0 -1
  41. package/dist/profile.d.ts +0 -69
  42. package/dist/profile.js +0 -1
  43. package/dist/project.d.ts +0 -42
  44. package/dist/project.js +0 -1
  45. package/dist/providers.d.ts +0 -16
  46. package/dist/providers.js +0 -4
  47. package/dist/recruitment.d.ts +0 -526
  48. package/dist/recruitment.js +0 -1
  49. package/dist/sale.d.ts +0 -526
  50. package/dist/sale.js +0 -1
  51. package/dist/shadcn.d.ts +0 -497
  52. package/dist/shadcn.js +0 -2489
  53. package/dist/supplier.d.ts +0 -38
  54. package/dist/supplier.js +0 -1
  55. package/dist/user.d.ts +0 -35
  56. package/dist/user.js +0 -1
  57. package/dist/utils.d.ts +0 -95
  58. package/dist/utils.js +0 -52
package/dist/shadcn.js DELETED
@@ -1,2489 +0,0 @@
1
- import { a as Xe, c as y, n as le, L as jt, S as Qe, o as Ht, p as $e, B as et, I as qt, T as Gt, q as $t } from "./chuncks/timeline.DfIC0519.js";
2
- import { av as Wr, ay as Nr, aw as Tr, ax as _r, aA as Er, aD as Pr, aE as Br, aF as Ir, aB as Fr, aC as Yr, r as Ar, C as zr, as as jr, i as Hr, k as qr, g as Gr, l as $r, h as Rr, au as Vr, at as Zr, E as Ur, F as Lr, G as Kr, J as Jr, K as Xr, M as Qr, N as es, O as ts, Q as ns, U as os, ai as as, am as rs, an as ss, ar as is, ap as ls, ao as ds, ak as us, aj as cs, aq as fs, al as hs, H as ms, d as ps, b as ys, P as gs, ad as bs, f as vs, e as ks, az as ws, s as Ms, w as Ds, t as Cs, y as Os, x as xs, D as Ss, A as Ws, z as Ns, v as Ts, u as _s, V as Es, X as Ps, Y as Bs, a0 as Is, _ as Fs, Z as Ys, $ as As, W as zs, a5 as js, a7 as Hs, ac as qs, ab as Gs, a8 as $s, a9 as Rs, a6 as Vs, aa as Zs, a1 as Us, a4 as Ls, a2 as Ks, a3 as Js, aG as Xs, aH as Qs, aI as ei, aJ as ti, aK as ni, aL as oi, aM as ai, aN as ri, ae as si, ag as ii, ah as li, af as di } from "./chuncks/timeline.DfIC0519.js";
3
- import * as pe from "react";
4
- import c, { useMemo as ie, createContext as Rt, useContext as Vt, useCallback as H, useRef as me, useLayoutEffect as Zt, useState as Ee, useEffect as Ut } from "react";
5
- import { jsx as N, jsxs as Lt } from "react/jsx-runtime";
6
- import { C as ci, e as fi, a as hi, f as mi, c as pi, b as yi, d as gi } from "./chuncks/card.Bockr0Tv.js";
7
- import { addDays as Kt, addMonths as Jt, addWeeks as Xt, addYears as Qt, differenceInCalendarDays as en, differenceInCalendarMonths as tn, eachMonthOfInterval as nn, eachYearOfInterval as on, endOfISOWeek as an, endOfMonth as rn, endOfWeek as sn, endOfYear as ln, format as dn, getISOWeek as un, getMonth as cn, getYear as fn, getWeek as hn, isAfter as mn, isBefore as pn, isDate as yn, isSameDay as gn, isSameMonth as bn, isSameYear as vn, max as kn, min as wn, setMonth as Mn, setYear as Dn, startOfDay as Cn, startOfISOWeek as On, startOfMonth as xn, startOfWeek as Sn, startOfYear as Wn } from "date-fns";
8
- function or(e) {
9
- const [t, o] = pe.useState(!1);
10
- return pe.useEffect(() => {
11
- function n(l) {
12
- o(l.matches);
13
- }
14
- const a = matchMedia(e);
15
- return a.addEventListener("change", n), o(a.matches), () => a.removeEventListener("change", n);
16
- }, [e]), t;
17
- }
18
- const Nn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Tn = Xe("chevron-right", Nn);
19
- const _n = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], En = Xe("chevron-left", _n);
20
- function ar({
21
- className: e,
22
- ...t
23
- }) {
24
- return /* @__PURE__ */ N(
25
- "div",
26
- {
27
- className: y("animate-pulse rounded-md bg-primary/10", e),
28
- ...t
29
- }
30
- );
31
- }
32
- function rr({ className: e, ...t }) {
33
- return /* @__PURE__ */ N(
34
- "fieldset",
35
- {
36
- "data-slot": "field-set",
37
- className: y(
38
- "flex flex-col gap-6",
39
- "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
40
- e
41
- ),
42
- ...t
43
- }
44
- );
45
- }
46
- function sr({
47
- className: e,
48
- variant: t = "legend",
49
- ...o
50
- }) {
51
- return /* @__PURE__ */ N(
52
- "legend",
53
- {
54
- "data-slot": "field-legend",
55
- "data-variant": t,
56
- className: y(
57
- "mb-3 font-medium",
58
- "data-[variant=legend]:text-base",
59
- "data-[variant=label]:text-sm",
60
- e
61
- ),
62
- ...o
63
- }
64
- );
65
- }
66
- function ir({ className: e, ...t }) {
67
- return /* @__PURE__ */ N(
68
- "div",
69
- {
70
- "data-slot": "field-group",
71
- className: y(
72
- "group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
73
- e
74
- ),
75
- ...t
76
- }
77
- );
78
- }
79
- const Pn = le(
80
- "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
81
- {
82
- variants: {
83
- orientation: {
84
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
85
- horizontal: [
86
- "flex-row items-center",
87
- "[&>[data-slot=field-label]]:flex-auto",
88
- "has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
89
- ],
90
- responsive: [
91
- "@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
92
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
93
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
94
- ]
95
- }
96
- },
97
- defaultVariants: {
98
- orientation: "vertical"
99
- }
100
- }
101
- );
102
- function lr({
103
- className: e,
104
- orientation: t = "vertical",
105
- ...o
106
- }) {
107
- return /* @__PURE__ */ N(
108
- "div",
109
- {
110
- role: "group",
111
- "data-slot": "field",
112
- "data-orientation": t,
113
- className: y(Pn({ orientation: t }), e),
114
- ...o
115
- }
116
- );
117
- }
118
- function dr({ className: e, ...t }) {
119
- return /* @__PURE__ */ N(
120
- "div",
121
- {
122
- "data-slot": "field-content",
123
- className: y(
124
- "group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
125
- e
126
- ),
127
- ...t
128
- }
129
- );
130
- }
131
- function ur({
132
- className: e,
133
- ...t
134
- }) {
135
- return /* @__PURE__ */ N(
136
- jt,
137
- {
138
- "data-slot": "field-label",
139
- className: y(
140
- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
141
- "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4",
142
- "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
143
- e
144
- ),
145
- ...t
146
- }
147
- );
148
- }
149
- function cr({ className: e, ...t }) {
150
- return /* @__PURE__ */ N(
151
- "div",
152
- {
153
- "data-slot": "field-label",
154
- className: y(
155
- "flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",
156
- e
157
- ),
158
- ...t
159
- }
160
- );
161
- }
162
- function fr({ className: e, ...t }) {
163
- return /* @__PURE__ */ N(
164
- "p",
165
- {
166
- "data-slot": "field-description",
167
- className: y(
168
- "text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
169
- "nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5",
170
- "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
171
- e
172
- ),
173
- ...t
174
- }
175
- );
176
- }
177
- function hr({
178
- children: e,
179
- className: t,
180
- ...o
181
- }) {
182
- return /* @__PURE__ */ Lt(
183
- "div",
184
- {
185
- "data-slot": "field-separator",
186
- "data-content": !!e,
187
- className: y(
188
- "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
189
- t
190
- ),
191
- ...o,
192
- children: [
193
- /* @__PURE__ */ N(Qe, { className: "absolute inset-0 top-1/2" }),
194
- e && /* @__PURE__ */ N(
195
- "span",
196
- {
197
- className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
198
- "data-slot": "field-separator-content",
199
- children: e
200
- }
201
- )
202
- ]
203
- }
204
- );
205
- }
206
- function mr({
207
- className: e,
208
- children: t,
209
- errors: o,
210
- ...n
211
- }) {
212
- const a = ie(() => t || (o ? o?.length === 1 && o[0]?.message ? o[0].message : /* @__PURE__ */ N("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: o.map(
213
- (l, r) => l?.message && /* @__PURE__ */ N("li", { children: l.message }, r)
214
- ) }) : null), [t, o]);
215
- return a ? /* @__PURE__ */ N(
216
- "div",
217
- {
218
- role: "alert",
219
- "data-slot": "field-error",
220
- className: y("text-destructive text-sm font-normal", e),
221
- ...n,
222
- children: a
223
- }
224
- ) : null;
225
- }
226
- function Bn(e, t, o = "long") {
227
- return new Intl.DateTimeFormat("en-US", {
228
- // Enforces engine to render the time. Without the option JavaScriptCore omits it.
229
- hour: "numeric",
230
- timeZone: e,
231
- timeZoneName: o
232
- }).format(t).split(/\s/g).slice(2).join(" ");
233
- }
234
- const In = {}, se = {};
235
- function ne(e, t) {
236
- try {
237
- const n = (In[e] ||= new Intl.DateTimeFormat("en-US", {
238
- timeZone: e,
239
- timeZoneName: "longOffset"
240
- }).format)(t).split("GMT")[1];
241
- return n in se ? se[n] : Re(n, n.split(":"));
242
- } catch {
243
- if (e in se) return se[e];
244
- const o = e?.match(Fn);
245
- return o ? Re(e, o.slice(1)) : NaN;
246
- }
247
- }
248
- const Fn = /([+-]\d\d):?(\d\d)?/;
249
- function Re(e, t) {
250
- const o = +(t[0] || 0), n = +(t[1] || 0), a = +(t[2] || 0) / 60;
251
- return se[e] = o * 60 + n > 0 ? o * 60 + n + a : o * 60 - n - a;
252
- }
253
- class U extends Date {
254
- //#region static
255
- constructor(...t) {
256
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ne(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), tt(this), Pe(this)) : this.setTime(Date.now());
257
- }
258
- static tz(t, ...o) {
259
- return o.length ? new U(...o, t) : new U(Date.now(), t);
260
- }
261
- //#endregion
262
- //#region time zone
263
- withTimeZone(t) {
264
- return new U(+this, t);
265
- }
266
- getTimezoneOffset() {
267
- const t = -ne(this.timeZone, this);
268
- return t > 0 ? Math.floor(t) : Math.ceil(t);
269
- }
270
- //#endregion
271
- //#region time
272
- setTime(t) {
273
- return Date.prototype.setTime.apply(this, arguments), Pe(this), +this;
274
- }
275
- //#endregion
276
- //#region date-fns integration
277
- [Symbol.for("constructDateFrom")](t) {
278
- return new U(+new Date(t), this.timeZone);
279
- }
280
- //#endregion
281
- }
282
- const Ve = /^(get|set)(?!UTC)/;
283
- Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
284
- if (!Ve.test(e)) return;
285
- const t = e.replace(Ve, "$1UTC");
286
- U.prototype[t] && (e.startsWith("get") ? U.prototype[e] = function() {
287
- return this.internal[t]();
288
- } : (U.prototype[e] = function() {
289
- return Date.prototype[t].apply(this.internal, arguments), Yn(this), +this;
290
- }, U.prototype[t] = function() {
291
- return Date.prototype[t].apply(this, arguments), Pe(this), +this;
292
- }));
293
- });
294
- function Pe(e) {
295
- e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ne(e.timeZone, e) * 60));
296
- }
297
- function Yn(e) {
298
- Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), tt(e);
299
- }
300
- function tt(e) {
301
- const t = ne(e.timeZone, e), o = t > 0 ? Math.floor(t) : Math.ceil(t), n = /* @__PURE__ */ new Date(+e);
302
- n.setUTCHours(n.getUTCHours() - 1);
303
- const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), l = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), r = a - l, s = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
304
- r && s && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + r);
305
- const i = a - o;
306
- i && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + i);
307
- const d = /* @__PURE__ */ new Date(+e);
308
- d.setUTCSeconds(0);
309
- const f = a > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, u = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
310
- (u || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + f));
311
- const h = ne(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, w = b !== o, O = W - i;
312
- if (w && O) {
313
- Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + O);
314
- const T = ne(e.timeZone, e), k = T > 0 ? Math.floor(T) : Math.ceil(T), D = b - k;
315
- D && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + D), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + D));
316
- }
317
- }
318
- class X extends U {
319
- //#region static
320
- static tz(t, ...o) {
321
- return o.length ? new X(...o, t) : new X(Date.now(), t);
322
- }
323
- //#endregion
324
- //#region representation
325
- toISOString() {
326
- const [t, o, n] = this.tzComponents(), a = `${t}${o}:${n}`;
327
- return this.internal.toISOString().slice(0, -1) + a;
328
- }
329
- toString() {
330
- return `${this.toDateString()} ${this.toTimeString()}`;
331
- }
332
- toDateString() {
333
- const [t, o, n, a] = this.internal.toUTCString().split(" ");
334
- return `${t?.slice(0, -1)} ${n} ${o} ${a}`;
335
- }
336
- toTimeString() {
337
- const t = this.internal.toUTCString().split(" ")[4], [o, n, a] = this.tzComponents();
338
- return `${t} GMT${o}${n}${a} (${Bn(this.timeZone, this)})`;
339
- }
340
- toLocaleString(t, o) {
341
- return Date.prototype.toLocaleString.call(this, t, {
342
- ...o,
343
- timeZone: o?.timeZone || this.timeZone
344
- });
345
- }
346
- toLocaleDateString(t, o) {
347
- return Date.prototype.toLocaleDateString.call(this, t, {
348
- ...o,
349
- timeZone: o?.timeZone || this.timeZone
350
- });
351
- }
352
- toLocaleTimeString(t, o) {
353
- return Date.prototype.toLocaleTimeString.call(this, t, {
354
- ...o,
355
- timeZone: o?.timeZone || this.timeZone
356
- });
357
- }
358
- //#endregion
359
- //#region private
360
- tzComponents() {
361
- const t = this.getTimezoneOffset(), o = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), a = String(Math.abs(t) % 60).padStart(2, "0");
362
- return [o, n, a];
363
- }
364
- //#endregion
365
- withTimeZone(t) {
366
- return new X(+this, t);
367
- }
368
- //#region date-fns integration
369
- [Symbol.for("constructDateFrom")](t) {
370
- return new X(+new Date(t), this.timeZone);
371
- }
372
- //#endregion
373
- }
374
- const An = {
375
- lessThanXSeconds: {
376
- one: "less than a second",
377
- other: "less than {{count}} seconds"
378
- },
379
- xSeconds: {
380
- one: "1 second",
381
- other: "{{count}} seconds"
382
- },
383
- halfAMinute: "half a minute",
384
- lessThanXMinutes: {
385
- one: "less than a minute",
386
- other: "less than {{count}} minutes"
387
- },
388
- xMinutes: {
389
- one: "1 minute",
390
- other: "{{count}} minutes"
391
- },
392
- aboutXHours: {
393
- one: "about 1 hour",
394
- other: "about {{count}} hours"
395
- },
396
- xHours: {
397
- one: "1 hour",
398
- other: "{{count}} hours"
399
- },
400
- xDays: {
401
- one: "1 day",
402
- other: "{{count}} days"
403
- },
404
- aboutXWeeks: {
405
- one: "about 1 week",
406
- other: "about {{count}} weeks"
407
- },
408
- xWeeks: {
409
- one: "1 week",
410
- other: "{{count}} weeks"
411
- },
412
- aboutXMonths: {
413
- one: "about 1 month",
414
- other: "about {{count}} months"
415
- },
416
- xMonths: {
417
- one: "1 month",
418
- other: "{{count}} months"
419
- },
420
- aboutXYears: {
421
- one: "about 1 year",
422
- other: "about {{count}} years"
423
- },
424
- xYears: {
425
- one: "1 year",
426
- other: "{{count}} years"
427
- },
428
- overXYears: {
429
- one: "over 1 year",
430
- other: "over {{count}} years"
431
- },
432
- almostXYears: {
433
- one: "almost 1 year",
434
- other: "almost {{count}} years"
435
- }
436
- }, zn = (e, t, o) => {
437
- let n;
438
- const a = An[e];
439
- return typeof a == "string" ? n = a : t === 1 ? n = a.one : n = a.other.replace("{{count}}", t.toString()), o?.addSuffix ? o.comparison && o.comparison > 0 ? "in " + n : n + " ago" : n;
440
- };
441
- function Se(e) {
442
- return (t = {}) => {
443
- const o = t.width ? String(t.width) : e.defaultWidth;
444
- return e.formats[o] || e.formats[e.defaultWidth];
445
- };
446
- }
447
- const jn = {
448
- full: "EEEE, MMMM do, y",
449
- long: "MMMM do, y",
450
- medium: "MMM d, y",
451
- short: "MM/dd/yyyy"
452
- }, Hn = {
453
- full: "h:mm:ss a zzzz",
454
- long: "h:mm:ss a z",
455
- medium: "h:mm:ss a",
456
- short: "h:mm a"
457
- }, qn = {
458
- full: "{{date}} 'at' {{time}}",
459
- long: "{{date}} 'at' {{time}}",
460
- medium: "{{date}}, {{time}}",
461
- short: "{{date}}, {{time}}"
462
- }, Gn = {
463
- date: Se({
464
- formats: jn,
465
- defaultWidth: "full"
466
- }),
467
- time: Se({
468
- formats: Hn,
469
- defaultWidth: "full"
470
- }),
471
- dateTime: Se({
472
- formats: qn,
473
- defaultWidth: "full"
474
- })
475
- }, $n = {
476
- lastWeek: "'last' eeee 'at' p",
477
- yesterday: "'yesterday at' p",
478
- today: "'today at' p",
479
- tomorrow: "'tomorrow at' p",
480
- nextWeek: "eeee 'at' p",
481
- other: "P"
482
- }, Rn = (e, t, o, n) => $n[e];
483
- function ae(e) {
484
- return (t, o) => {
485
- const n = o?.context ? String(o.context) : "standalone";
486
- let a;
487
- if (n === "formatting" && e.formattingValues) {
488
- const r = e.defaultFormattingWidth || e.defaultWidth, s = o?.width ? String(o.width) : r;
489
- a = e.formattingValues[s] || e.formattingValues[r];
490
- } else {
491
- const r = e.defaultWidth, s = o?.width ? String(o.width) : e.defaultWidth;
492
- a = e.values[s] || e.values[r];
493
- }
494
- const l = e.argumentCallback ? e.argumentCallback(t) : t;
495
- return a[l];
496
- };
497
- }
498
- const Vn = {
499
- narrow: ["B", "A"],
500
- abbreviated: ["BC", "AD"],
501
- wide: ["Before Christ", "Anno Domini"]
502
- }, Zn = {
503
- narrow: ["1", "2", "3", "4"],
504
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
505
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
506
- }, Un = {
507
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
508
- abbreviated: [
509
- "Jan",
510
- "Feb",
511
- "Mar",
512
- "Apr",
513
- "May",
514
- "Jun",
515
- "Jul",
516
- "Aug",
517
- "Sep",
518
- "Oct",
519
- "Nov",
520
- "Dec"
521
- ],
522
- wide: [
523
- "January",
524
- "February",
525
- "March",
526
- "April",
527
- "May",
528
- "June",
529
- "July",
530
- "August",
531
- "September",
532
- "October",
533
- "November",
534
- "December"
535
- ]
536
- }, Ln = {
537
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
538
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
539
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
540
- wide: [
541
- "Sunday",
542
- "Monday",
543
- "Tuesday",
544
- "Wednesday",
545
- "Thursday",
546
- "Friday",
547
- "Saturday"
548
- ]
549
- }, Kn = {
550
- narrow: {
551
- am: "a",
552
- pm: "p",
553
- midnight: "mi",
554
- noon: "n",
555
- morning: "morning",
556
- afternoon: "afternoon",
557
- evening: "evening",
558
- night: "night"
559
- },
560
- abbreviated: {
561
- am: "AM",
562
- pm: "PM",
563
- midnight: "midnight",
564
- noon: "noon",
565
- morning: "morning",
566
- afternoon: "afternoon",
567
- evening: "evening",
568
- night: "night"
569
- },
570
- wide: {
571
- am: "a.m.",
572
- pm: "p.m.",
573
- midnight: "midnight",
574
- noon: "noon",
575
- morning: "morning",
576
- afternoon: "afternoon",
577
- evening: "evening",
578
- night: "night"
579
- }
580
- }, Jn = {
581
- narrow: {
582
- am: "a",
583
- pm: "p",
584
- midnight: "mi",
585
- noon: "n",
586
- morning: "in the morning",
587
- afternoon: "in the afternoon",
588
- evening: "in the evening",
589
- night: "at night"
590
- },
591
- abbreviated: {
592
- am: "AM",
593
- pm: "PM",
594
- midnight: "midnight",
595
- noon: "noon",
596
- morning: "in the morning",
597
- afternoon: "in the afternoon",
598
- evening: "in the evening",
599
- night: "at night"
600
- },
601
- wide: {
602
- am: "a.m.",
603
- pm: "p.m.",
604
- midnight: "midnight",
605
- noon: "noon",
606
- morning: "in the morning",
607
- afternoon: "in the afternoon",
608
- evening: "in the evening",
609
- night: "at night"
610
- }
611
- }, Xn = (e, t) => {
612
- const o = Number(e), n = o % 100;
613
- if (n > 20 || n < 10)
614
- switch (n % 10) {
615
- case 1:
616
- return o + "st";
617
- case 2:
618
- return o + "nd";
619
- case 3:
620
- return o + "rd";
621
- }
622
- return o + "th";
623
- }, Qn = {
624
- ordinalNumber: Xn,
625
- era: ae({
626
- values: Vn,
627
- defaultWidth: "wide"
628
- }),
629
- quarter: ae({
630
- values: Zn,
631
- defaultWidth: "wide",
632
- argumentCallback: (e) => e - 1
633
- }),
634
- month: ae({
635
- values: Un,
636
- defaultWidth: "wide"
637
- }),
638
- day: ae({
639
- values: Ln,
640
- defaultWidth: "wide"
641
- }),
642
- dayPeriod: ae({
643
- values: Kn,
644
- defaultWidth: "wide",
645
- formattingValues: Jn,
646
- defaultFormattingWidth: "wide"
647
- })
648
- };
649
- function re(e) {
650
- return (t, o = {}) => {
651
- const n = o.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = t.match(a);
652
- if (!l)
653
- return null;
654
- const r = l[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(s) ? to(s, (u) => u.test(r)) : (
655
- // [TODO] -- I challenge you to fix the type
656
- eo(s, (u) => u.test(r))
657
- );
658
- let d;
659
- d = e.valueCallback ? e.valueCallback(i) : i, d = o.valueCallback ? (
660
- // [TODO] -- I challenge you to fix the type
661
- o.valueCallback(d)
662
- ) : d;
663
- const f = t.slice(r.length);
664
- return { value: d, rest: f };
665
- };
666
- }
667
- function eo(e, t) {
668
- for (const o in e)
669
- if (Object.prototype.hasOwnProperty.call(e, o) && t(e[o]))
670
- return o;
671
- }
672
- function to(e, t) {
673
- for (let o = 0; o < e.length; o++)
674
- if (t(e[o]))
675
- return o;
676
- }
677
- function no(e) {
678
- return (t, o = {}) => {
679
- const n = t.match(e.matchPattern);
680
- if (!n) return null;
681
- const a = n[0], l = t.match(e.parsePattern);
682
- if (!l) return null;
683
- let r = e.valueCallback ? e.valueCallback(l[0]) : l[0];
684
- r = o.valueCallback ? o.valueCallback(r) : r;
685
- const s = t.slice(a.length);
686
- return { value: r, rest: s };
687
- };
688
- }
689
- const oo = /^(\d+)(th|st|nd|rd)?/i, ao = /\d+/i, ro = {
690
- narrow: /^(b|a)/i,
691
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
692
- wide: /^(before christ|before common era|anno domini|common era)/i
693
- }, so = {
694
- any: [/^b/i, /^(a|c)/i]
695
- }, io = {
696
- narrow: /^[1234]/i,
697
- abbreviated: /^q[1234]/i,
698
- wide: /^[1234](th|st|nd|rd)? quarter/i
699
- }, lo = {
700
- any: [/1/i, /2/i, /3/i, /4/i]
701
- }, uo = {
702
- narrow: /^[jfmasond]/i,
703
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
704
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
705
- }, co = {
706
- narrow: [
707
- /^j/i,
708
- /^f/i,
709
- /^m/i,
710
- /^a/i,
711
- /^m/i,
712
- /^j/i,
713
- /^j/i,
714
- /^a/i,
715
- /^s/i,
716
- /^o/i,
717
- /^n/i,
718
- /^d/i
719
- ],
720
- any: [
721
- /^ja/i,
722
- /^f/i,
723
- /^mar/i,
724
- /^ap/i,
725
- /^may/i,
726
- /^jun/i,
727
- /^jul/i,
728
- /^au/i,
729
- /^s/i,
730
- /^o/i,
731
- /^n/i,
732
- /^d/i
733
- ]
734
- }, fo = {
735
- narrow: /^[smtwf]/i,
736
- short: /^(su|mo|tu|we|th|fr|sa)/i,
737
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
738
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
739
- }, ho = {
740
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
741
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
742
- }, mo = {
743
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
744
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
745
- }, po = {
746
- any: {
747
- am: /^a/i,
748
- pm: /^p/i,
749
- midnight: /^mi/i,
750
- noon: /^no/i,
751
- morning: /morning/i,
752
- afternoon: /afternoon/i,
753
- evening: /evening/i,
754
- night: /night/i
755
- }
756
- }, yo = {
757
- ordinalNumber: no({
758
- matchPattern: oo,
759
- parsePattern: ao,
760
- valueCallback: (e) => parseInt(e, 10)
761
- }),
762
- era: re({
763
- matchPatterns: ro,
764
- defaultMatchWidth: "wide",
765
- parsePatterns: so,
766
- defaultParseWidth: "any"
767
- }),
768
- quarter: re({
769
- matchPatterns: io,
770
- defaultMatchWidth: "wide",
771
- parsePatterns: lo,
772
- defaultParseWidth: "any",
773
- valueCallback: (e) => e + 1
774
- }),
775
- month: re({
776
- matchPatterns: uo,
777
- defaultMatchWidth: "wide",
778
- parsePatterns: co,
779
- defaultParseWidth: "any"
780
- }),
781
- day: re({
782
- matchPatterns: fo,
783
- defaultMatchWidth: "wide",
784
- parsePatterns: ho,
785
- defaultParseWidth: "any"
786
- }),
787
- dayPeriod: re({
788
- matchPatterns: mo,
789
- defaultMatchWidth: "any",
790
- parsePatterns: po,
791
- defaultParseWidth: "any"
792
- })
793
- }, nt = {
794
- code: "en-US",
795
- formatDistance: zn,
796
- formatLong: Gn,
797
- formatRelative: Rn,
798
- localize: Qn,
799
- match: yo,
800
- options: {
801
- weekStartsOn: 0,
802
- firstWeekContainsDate: 1
803
- }
804
- }, Ze = 5, go = 4;
805
- function bo(e, t) {
806
- const o = t.startOfMonth(e), n = o.getDay() > 0 ? o.getDay() : 7, a = t.addDays(e, -n + 1), l = t.addDays(a, Ze * 7 - 1);
807
- return t.getMonth(e) === t.getMonth(l) ? Ze : go;
808
- }
809
- function ot(e, t) {
810
- const o = t.startOfMonth(e), n = o.getDay();
811
- return n === 1 ? o : n === 0 ? t.addDays(o, -6) : t.addDays(o, -1 * (n - 1));
812
- }
813
- function vo(e, t) {
814
- const o = ot(e, t), n = bo(e, t);
815
- return t.addDays(o, n * 7 - 1);
816
- }
817
- class z {
818
- /**
819
- * Creates an instance of `DateLib`.
820
- *
821
- * @param options Configuration options for the date library.
822
- * @param overrides Custom overrides for the date library functions.
823
- */
824
- constructor(t, o) {
825
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? X.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, a, l) => this.overrides?.newDate ? this.overrides.newDate(n, a, l) : this.options.timeZone ? new X(n, a, l, this.options.timeZone) : new Date(n, a, l), this.addDays = (n, a) => this.overrides?.addDays ? this.overrides.addDays(n, a) : Kt(n, a), this.addMonths = (n, a) => this.overrides?.addMonths ? this.overrides.addMonths(n, a) : Jt(n, a), this.addWeeks = (n, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, a) : Xt(n, a), this.addYears = (n, a) => this.overrides?.addYears ? this.overrides.addYears(n, a) : Qt(n, a), this.differenceInCalendarDays = (n, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, a) : en(n, a), this.differenceInCalendarMonths = (n, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, a) : tn(n, a), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : nn(n), this.eachYearOfInterval = (n) => {
826
- const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : on(n), l = new Set(a.map((s) => this.getYear(s)));
827
- if (l.size === a.length)
828
- return a;
829
- const r = [];
830
- return l.forEach((s) => {
831
- r.push(new Date(s, 0, 1));
832
- }), r;
833
- }, this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : vo(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : an(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : rn(n), this.endOfWeek = (n, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, a) : sn(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : ln(n), this.format = (n, a, l) => {
834
- const r = this.overrides?.format ? this.overrides.format(n, a, this.options) : dn(n, a, this.options);
835
- return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(r) : r;
836
- }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : un(n), this.getMonth = (n, a) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : cn(n, this.options), this.getYear = (n, a) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : fn(n, this.options), this.getWeek = (n, a) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : hn(n, this.options), this.isAfter = (n, a) => this.overrides?.isAfter ? this.overrides.isAfter(n, a) : mn(n, a), this.isBefore = (n, a) => this.overrides?.isBefore ? this.overrides.isBefore(n, a) : pn(n, a), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : yn(n), this.isSameDay = (n, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, a) : gn(n, a), this.isSameMonth = (n, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, a) : bn(n, a), this.isSameYear = (n, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, a) : vn(n, a), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : kn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : wn(n), this.setMonth = (n, a) => this.overrides?.setMonth ? this.overrides.setMonth(n, a) : Mn(n, a), this.setYear = (n, a) => this.overrides?.setYear ? this.overrides.setYear(n, a) : Dn(n, a), this.startOfBroadcastWeek = (n, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : ot(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : Cn(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : On(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : xn(n), this.startOfWeek = (n, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : Sn(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Wn(n), this.options = { locale: nt, ...t }, this.overrides = o;
837
- }
838
- /**
839
- * Generates a mapping of Arabic digits (0-9) to the target numbering system
840
- * digits.
841
- *
842
- * @since 9.5.0
843
- * @returns A record mapping Arabic digits to the target numerals.
844
- */
845
- getDigitMap() {
846
- const { numerals: t = "latn" } = this.options, o = new Intl.NumberFormat("en-US", {
847
- numberingSystem: t
848
- }), n = {};
849
- for (let a = 0; a < 10; a++)
850
- n[a.toString()] = o.format(a);
851
- return n;
852
- }
853
- /**
854
- * Replaces Arabic digits in a string with the target numbering system digits.
855
- *
856
- * @since 9.5.0
857
- * @param input The string containing Arabic digits.
858
- * @returns The string with digits replaced.
859
- */
860
- replaceDigits(t) {
861
- const o = this.getDigitMap();
862
- return t.replace(/\d/g, (n) => o[n] || n);
863
- }
864
- /**
865
- * Formats a number using the configured numbering system.
866
- *
867
- * @since 9.5.0
868
- * @param value The number to format.
869
- * @returns The formatted number as a string.
870
- */
871
- formatNumber(t) {
872
- return this.replaceDigits(t.toString());
873
- }
874
- /**
875
- * Returns the preferred ordering for month and year labels for the current
876
- * locale.
877
- */
878
- getMonthYearOrder() {
879
- const t = this.options.locale?.code;
880
- return t && z.yearFirstLocales.has(t) ? "year-first" : "month-first";
881
- }
882
- /**
883
- * Formats the month/year pair respecting locale conventions.
884
- *
885
- * @since 9.11.0
886
- */
887
- formatMonthYear(t) {
888
- const { locale: o, timeZone: n, numerals: a } = this.options, l = o?.code;
889
- if (l && z.yearFirstLocales.has(l))
890
- try {
891
- return new Intl.DateTimeFormat(l, {
892
- month: "long",
893
- year: "numeric",
894
- timeZone: n,
895
- numberingSystem: a
896
- }).format(t);
897
- } catch {
898
- }
899
- const r = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
900
- return this.format(t, r);
901
- }
902
- }
903
- z.yearFirstLocales = /* @__PURE__ */ new Set([
904
- "eu",
905
- "hu",
906
- "ja",
907
- "ja-Hira",
908
- "ja-JP",
909
- "ko",
910
- "ko-KR",
911
- "lt",
912
- "lt-LT",
913
- "lv",
914
- "lv-LV",
915
- "mn",
916
- "mn-MN",
917
- "zh",
918
- "zh-CN",
919
- "zh-HK",
920
- "zh-TW"
921
- ]);
922
- const L = new z();
923
- class at {
924
- constructor(t, o, n = L) {
925
- this.date = t, this.displayMonth = o, this.outside = !!(o && !n.isSameMonth(t, o)), this.dateLib = n, this.isoDate = n.format(t, "yyyy-MM-dd"), this.displayMonthId = n.format(o, "yyyy-MM"), this.dateMonthId = n.format(t, "yyyy-MM");
926
- }
927
- /**
928
- * Checks if this day is equal to another `CalendarDay`, considering both the
929
- * date and the displayed month.
930
- *
931
- * @param day The `CalendarDay` to compare with.
932
- * @returns `true` if the days are equal, otherwise `false`.
933
- */
934
- isEqualTo(t) {
935
- return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
936
- }
937
- }
938
- class ko {
939
- constructor(t, o) {
940
- this.date = t, this.weeks = o;
941
- }
942
- }
943
- class wo {
944
- constructor(t, o) {
945
- this.days = o, this.weekNumber = t;
946
- }
947
- }
948
- function Mo(e) {
949
- return c.createElement("button", { ...e });
950
- }
951
- function Do(e) {
952
- return c.createElement("span", { ...e });
953
- }
954
- function Co(e) {
955
- const { size: t = 24, orientation: o = "left", className: n } = e;
956
- return (
957
- // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
958
- c.createElement(
959
- "svg",
960
- { className: n, width: t, height: t, viewBox: "0 0 24 24" },
961
- o === "up" && c.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
962
- o === "down" && c.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
963
- o === "left" && c.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
964
- o === "right" && c.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
965
- )
966
- );
967
- }
968
- function Oo(e) {
969
- const { day: t, modifiers: o, ...n } = e;
970
- return c.createElement("td", { ...n });
971
- }
972
- function xo(e) {
973
- const { day: t, modifiers: o, ...n } = e, a = c.useRef(null);
974
- return c.useEffect(() => {
975
- o.focused && a.current?.focus();
976
- }, [o.focused]), c.createElement("button", { ref: a, ...n });
977
- }
978
- var p;
979
- (function(e) {
980
- e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
981
- })(p || (p = {}));
982
- var B;
983
- (function(e) {
984
- e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
985
- })(B || (B = {}));
986
- var $;
987
- (function(e) {
988
- e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
989
- })($ || ($ = {}));
990
- var A;
991
- (function(e) {
992
- e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
993
- })(A || (A = {}));
994
- function So(e) {
995
- const { options: t, className: o, components: n, classNames: a, ...l } = e, r = [a[p.Dropdown], o].join(" "), s = t?.find(({ value: i }) => i === l.value);
996
- return c.createElement(
997
- "span",
998
- { "data-disabled": l.disabled, className: a[p.DropdownRoot] },
999
- c.createElement(n.Select, { className: r, ...l }, t?.map(({ value: i, label: d, disabled: f }) => c.createElement(n.Option, { key: i, value: i, disabled: f }, d))),
1000
- c.createElement(
1001
- "span",
1002
- { className: a[p.CaptionLabel], "aria-hidden": !0 },
1003
- s?.label,
1004
- c.createElement(n.Chevron, { orientation: "down", size: 18, className: a[p.Chevron] })
1005
- )
1006
- );
1007
- }
1008
- function Wo(e) {
1009
- return c.createElement("div", { ...e });
1010
- }
1011
- function No(e) {
1012
- return c.createElement("div", { ...e });
1013
- }
1014
- function To(e) {
1015
- const { calendarMonth: t, displayIndex: o, ...n } = e;
1016
- return c.createElement("div", { ...n }, e.children);
1017
- }
1018
- function _o(e) {
1019
- const { calendarMonth: t, displayIndex: o, ...n } = e;
1020
- return c.createElement("div", { ...n });
1021
- }
1022
- function Eo(e) {
1023
- return c.createElement("table", { ...e });
1024
- }
1025
- function Po(e) {
1026
- return c.createElement("div", { ...e });
1027
- }
1028
- const rt = Rt(void 0);
1029
- function de() {
1030
- const e = Vt(rt);
1031
- if (e === void 0)
1032
- throw new Error("useDayPicker() must be used within a custom component.");
1033
- return e;
1034
- }
1035
- function Bo(e) {
1036
- const { components: t } = de();
1037
- return c.createElement(t.Dropdown, { ...e });
1038
- }
1039
- function Io(e) {
1040
- const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: a, ...l } = e, { components: r, classNames: s, labels: { labelPrevious: i, labelNext: d } } = de(), f = H((h) => {
1041
- a && o?.(h);
1042
- }, [a, o]), u = H((h) => {
1043
- n && t?.(h);
1044
- }, [n, t]);
1045
- return c.createElement(
1046
- "nav",
1047
- { ...l },
1048
- c.createElement(
1049
- r.PreviousMonthButton,
1050
- { type: "button", className: s[p.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": i(n), onClick: u },
1051
- c.createElement(r.Chevron, { disabled: n ? void 0 : !0, className: s[p.Chevron], orientation: "left" })
1052
- ),
1053
- c.createElement(
1054
- r.NextMonthButton,
1055
- { type: "button", className: s[p.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": d(a), onClick: f },
1056
- c.createElement(r.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: s[p.Chevron] })
1057
- )
1058
- );
1059
- }
1060
- function Fo(e) {
1061
- const { components: t } = de();
1062
- return c.createElement(t.Button, { ...e });
1063
- }
1064
- function Yo(e) {
1065
- return c.createElement("option", { ...e });
1066
- }
1067
- function Ao(e) {
1068
- const { components: t } = de();
1069
- return c.createElement(t.Button, { ...e });
1070
- }
1071
- function zo(e) {
1072
- const { rootRef: t, ...o } = e;
1073
- return c.createElement("div", { ...o, ref: t });
1074
- }
1075
- function jo(e) {
1076
- return c.createElement("select", { ...e });
1077
- }
1078
- function Ho(e) {
1079
- const { week: t, ...o } = e;
1080
- return c.createElement("tr", { ...o });
1081
- }
1082
- function qo(e) {
1083
- return c.createElement("th", { ...e });
1084
- }
1085
- function Go(e) {
1086
- return c.createElement(
1087
- "thead",
1088
- { "aria-hidden": !0 },
1089
- c.createElement("tr", { ...e })
1090
- );
1091
- }
1092
- function $o(e) {
1093
- const { week: t, ...o } = e;
1094
- return c.createElement("th", { ...o });
1095
- }
1096
- function Ro(e) {
1097
- return c.createElement("th", { ...e });
1098
- }
1099
- function Vo(e) {
1100
- return c.createElement("tbody", { ...e });
1101
- }
1102
- function Zo(e) {
1103
- const { components: t } = de();
1104
- return c.createElement(t.Dropdown, { ...e });
1105
- }
1106
- const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1107
- __proto__: null,
1108
- Button: Mo,
1109
- CaptionLabel: Do,
1110
- Chevron: Co,
1111
- Day: Oo,
1112
- DayButton: xo,
1113
- Dropdown: So,
1114
- DropdownNav: Wo,
1115
- Footer: No,
1116
- Month: To,
1117
- MonthCaption: _o,
1118
- MonthGrid: Eo,
1119
- Months: Po,
1120
- MonthsDropdown: Bo,
1121
- Nav: Io,
1122
- NextMonthButton: Fo,
1123
- Option: Yo,
1124
- PreviousMonthButton: Ao,
1125
- Root: zo,
1126
- Select: jo,
1127
- Week: Ho,
1128
- WeekNumber: $o,
1129
- WeekNumberHeader: Ro,
1130
- Weekday: qo,
1131
- Weekdays: Go,
1132
- Weeks: Vo,
1133
- YearsDropdown: Zo
1134
- }, Symbol.toStringTag, { value: "Module" }));
1135
- function Q(e, t, o = !1, n = L) {
1136
- let { from: a, to: l } = e;
1137
- const { differenceInCalendarDays: r, isSameDay: s } = n;
1138
- return a && l ? (r(l, a) < 0 && ([a, l] = [l, a]), r(t, a) >= (o ? 1 : 0) && r(l, t) >= (o ? 1 : 0)) : !o && l ? s(l, t) : !o && a ? s(a, t) : !1;
1139
- }
1140
- function Be(e) {
1141
- return !!(e && typeof e == "object" && "before" in e && "after" in e);
1142
- }
1143
- function ye(e) {
1144
- return !!(e && typeof e == "object" && "from" in e);
1145
- }
1146
- function Ie(e) {
1147
- return !!(e && typeof e == "object" && "after" in e);
1148
- }
1149
- function Fe(e) {
1150
- return !!(e && typeof e == "object" && "before" in e);
1151
- }
1152
- function st(e) {
1153
- return !!(e && typeof e == "object" && "dayOfWeek" in e);
1154
- }
1155
- function it(e, t) {
1156
- return Array.isArray(e) && e.every(t.isDate);
1157
- }
1158
- function ee(e, t, o = L) {
1159
- const n = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: l, isAfter: r } = o;
1160
- return n.some((s) => {
1161
- if (typeof s == "boolean")
1162
- return s;
1163
- if (o.isDate(s))
1164
- return a(e, s);
1165
- if (it(s, o))
1166
- return s.includes(e);
1167
- if (ye(s))
1168
- return Q(s, e, !1, o);
1169
- if (st(s))
1170
- return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay();
1171
- if (Be(s)) {
1172
- const i = l(s.before, e), d = l(s.after, e), f = i > 0, u = d < 0;
1173
- return r(s.before, s.after) ? u && f : f || u;
1174
- }
1175
- return Ie(s) ? l(e, s.after) > 0 : Fe(s) ? l(s.before, e) > 0 : typeof s == "function" ? s(e) : !1;
1176
- });
1177
- }
1178
- function Lo(e, t, o, n, a) {
1179
- const { disabled: l, hidden: r, modifiers: s, showOutsideDays: i, broadcastCalendar: d, today: f = a.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: b, isBefore: C, endOfMonth: W, isAfter: w } = a, O = o && b(o), T = n && W(n), k = {
1180
- [B.focused]: [],
1181
- [B.outside]: [],
1182
- [B.disabled]: [],
1183
- [B.hidden]: [],
1184
- [B.today]: []
1185
- }, D = {};
1186
- for (const g of e) {
1187
- const { date: m, displayMonth: x } = g, P = !!(x && !h(m, x)), F = !!(O && C(m, O)), I = !!(T && w(m, T)), R = !!(l && ee(m, l, a)), te = !!(r && ee(m, r, a)) || F || I || // Broadcast calendar will show outside days as default
1188
- !d && !i && P || d && i === !1 && P, K = u(m, f);
1189
- P && k.outside.push(g), R && k.disabled.push(g), te && k.hidden.push(g), K && k.today.push(g), s && Object.keys(s).forEach((j) => {
1190
- const oe = s?.[j];
1191
- oe && ee(m, oe, a) && (D[j] ? D[j].push(g) : D[j] = [g]);
1192
- });
1193
- }
1194
- return (g) => {
1195
- const m = {
1196
- [B.focused]: !1,
1197
- [B.disabled]: !1,
1198
- [B.hidden]: !1,
1199
- [B.outside]: !1,
1200
- [B.today]: !1
1201
- }, x = {};
1202
- for (const P in k) {
1203
- const F = k[P];
1204
- m[P] = F.some((I) => I === g);
1205
- }
1206
- for (const P in D)
1207
- x[P] = D[P].some((F) => F === g);
1208
- return {
1209
- ...m,
1210
- // custom modifiers should override all the previous ones
1211
- ...x
1212
- };
1213
- };
1214
- }
1215
- function Ko(e, t, o = {}) {
1216
- return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [l]) => (o[l] ? a.push(o[l]) : t[B[l]] ? a.push(t[B[l]]) : t[$[l]] && a.push(t[$[l]]), a), [t[p.Day]]);
1217
- }
1218
- function Jo(e) {
1219
- return {
1220
- ...Uo,
1221
- ...e
1222
- };
1223
- }
1224
- function Xo(e) {
1225
- const t = {
1226
- "data-mode": e.mode ?? void 0,
1227
- "data-required": "required" in e ? e.required : void 0,
1228
- "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
1229
- "data-week-numbers": e.showWeekNumber || void 0,
1230
- "data-broadcast-calendar": e.broadcastCalendar || void 0,
1231
- "data-nav-layout": e.navLayout || void 0
1232
- };
1233
- return Object.entries(e).forEach(([o, n]) => {
1234
- o.startsWith("data-") && (t[o] = n);
1235
- }), t;
1236
- }
1237
- function Ye() {
1238
- const e = {};
1239
- for (const t in p)
1240
- e[p[t]] = `rdp-${p[t]}`;
1241
- for (const t in B)
1242
- e[B[t]] = `rdp-${B[t]}`;
1243
- for (const t in $)
1244
- e[$[t]] = `rdp-${$[t]}`;
1245
- for (const t in A)
1246
- e[A[t]] = `rdp-${A[t]}`;
1247
- return e;
1248
- }
1249
- function lt(e, t, o) {
1250
- return (o ?? new z(t)).formatMonthYear(e);
1251
- }
1252
- const Qo = lt;
1253
- function ea(e, t, o) {
1254
- return (o ?? new z(t)).format(e, "d");
1255
- }
1256
- function ta(e, t = L) {
1257
- return t.format(e, "LLLL");
1258
- }
1259
- function na(e, t, o) {
1260
- return (o ?? new z(t)).format(e, "cccccc");
1261
- }
1262
- function oa(e, t = L) {
1263
- return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
1264
- }
1265
- function aa() {
1266
- return "";
1267
- }
1268
- function dt(e, t = L) {
1269
- return t.format(e, "yyyy");
1270
- }
1271
- const ra = dt, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1272
- __proto__: null,
1273
- formatCaption: lt,
1274
- formatDay: ea,
1275
- formatMonthCaption: Qo,
1276
- formatMonthDropdown: ta,
1277
- formatWeekNumber: oa,
1278
- formatWeekNumberHeader: aa,
1279
- formatWeekdayName: na,
1280
- formatYearCaption: ra,
1281
- formatYearDropdown: dt
1282
- }, Symbol.toStringTag, { value: "Module" }));
1283
- function ia(e) {
1284
- return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
1285
- ...sa,
1286
- ...e
1287
- };
1288
- }
1289
- function la(e, t, o, n, a) {
1290
- const { startOfMonth: l, startOfYear: r, endOfYear: s, eachMonthOfInterval: i, getMonth: d } = a;
1291
- return i({
1292
- start: r(e),
1293
- end: s(e)
1294
- }).map((h) => {
1295
- const b = n.formatMonthDropdown(h, a), C = d(h), W = t && h < l(t) || o && h > l(o) || !1;
1296
- return { value: C, label: b, disabled: W };
1297
- });
1298
- }
1299
- function da(e, t = {}, o = {}) {
1300
- let n = { ...t?.[p.Day] };
1301
- return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
1302
- n = {
1303
- ...n,
1304
- ...o?.[a]
1305
- };
1306
- }), n;
1307
- }
1308
- function ua(e, t, o, n) {
1309
- const a = n ?? e.today(), l = o ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), r = [];
1310
- for (let s = 0; s < 7; s++) {
1311
- const i = e.addDays(l, s);
1312
- r.push(i);
1313
- }
1314
- return r;
1315
- }
1316
- function ca(e, t, o, n, a = !1) {
1317
- if (!e || !t)
1318
- return;
1319
- const { startOfYear: l, endOfYear: r, eachYearOfInterval: s, getYear: i } = n, d = l(e), f = r(t), u = s({ start: d, end: f });
1320
- return a && u.reverse(), u.map((h) => {
1321
- const b = o.formatYearDropdown(h, n);
1322
- return {
1323
- value: i(h),
1324
- label: b,
1325
- disabled: !1
1326
- };
1327
- });
1328
- }
1329
- function ut(e, t, o, n) {
1330
- let a = (n ?? new z(o)).format(e, "PPPP");
1331
- return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
1332
- }
1333
- const fa = ut;
1334
- function ct(e, t, o) {
1335
- return (o ?? new z(t)).formatMonthYear(e);
1336
- }
1337
- const ha = ct;
1338
- function ma(e, t, o, n) {
1339
- let a = (n ?? new z(o)).format(e, "PPPP");
1340
- return t?.today && (a = `Today, ${a}`), a;
1341
- }
1342
- function pa(e) {
1343
- return "Choose the Month";
1344
- }
1345
- function ya() {
1346
- return "";
1347
- }
1348
- function ga(e) {
1349
- return "Go to the Next Month";
1350
- }
1351
- function ba(e) {
1352
- return "Go to the Previous Month";
1353
- }
1354
- function va(e, t, o) {
1355
- return (o ?? new z(t)).format(e, "cccc");
1356
- }
1357
- function ka(e, t) {
1358
- return `Week ${e}`;
1359
- }
1360
- function wa(e) {
1361
- return "Week Number";
1362
- }
1363
- function Ma(e) {
1364
- return "Choose the Year";
1365
- }
1366
- const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1367
- __proto__: null,
1368
- labelCaption: ha,
1369
- labelDay: fa,
1370
- labelDayButton: ut,
1371
- labelGrid: ct,
1372
- labelGridcell: ma,
1373
- labelMonthDropdown: pa,
1374
- labelNav: ya,
1375
- labelNext: ga,
1376
- labelPrevious: ba,
1377
- labelWeekNumber: ka,
1378
- labelWeekNumberHeader: wa,
1379
- labelWeekday: va,
1380
- labelYearDropdown: Ma
1381
- }, Symbol.toStringTag, { value: "Module" })), ue = (e) => e instanceof HTMLElement ? e : null, We = (e) => [
1382
- ...e.querySelectorAll("[data-animated-month]") ?? []
1383
- ], Ca = (e) => ue(e.querySelector("[data-animated-month]")), Ne = (e) => ue(e.querySelector("[data-animated-caption]")), Te = (e) => ue(e.querySelector("[data-animated-weeks]")), Oa = (e) => ue(e.querySelector("[data-animated-nav]")), xa = (e) => ue(e.querySelector("[data-animated-weekdays]"));
1384
- function Sa(e, t, { classNames: o, months: n, focused: a, dateLib: l }) {
1385
- const r = me(null), s = me(n), i = me(!1);
1386
- Zt(() => {
1387
- const d = s.current;
1388
- if (s.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
1389
- !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
1390
- n.length === 0 || d.length === 0 || n.length !== d.length)
1391
- return;
1392
- const f = l.isSameMonth(n[0].date, d[0].date), u = l.isAfter(n[0].date, d[0].date), h = u ? o[A.caption_after_enter] : o[A.caption_before_enter], b = u ? o[A.weeks_after_enter] : o[A.weeks_before_enter], C = r.current, W = e.current.cloneNode(!0);
1393
- if (W instanceof HTMLElement ? (We(W).forEach((k) => {
1394
- if (!(k instanceof HTMLElement))
1395
- return;
1396
- const D = Ca(k);
1397
- D && k.contains(D) && k.removeChild(D);
1398
- const g = Ne(k);
1399
- g && g.classList.remove(h);
1400
- const m = Te(k);
1401
- m && m.classList.remove(b);
1402
- }), r.current = W) : r.current = null, i.current || f || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
1403
- a)
1404
- return;
1405
- const w = C instanceof HTMLElement ? We(C) : [], O = We(e.current);
1406
- if (O?.every((T) => T instanceof HTMLElement) && w && w.every((T) => T instanceof HTMLElement)) {
1407
- i.current = !0, e.current.style.isolation = "isolate";
1408
- const T = Oa(e.current);
1409
- T && (T.style.zIndex = "1"), O.forEach((k, D) => {
1410
- const g = w[D];
1411
- if (!g)
1412
- return;
1413
- k.style.position = "relative", k.style.overflow = "hidden";
1414
- const m = Ne(k);
1415
- m && m.classList.add(h);
1416
- const x = Te(k);
1417
- x && x.classList.add(b);
1418
- const P = () => {
1419
- i.current = !1, e.current && (e.current.style.isolation = ""), T && (T.style.zIndex = ""), m && m.classList.remove(h), x && x.classList.remove(b), k.style.position = "", k.style.overflow = "", k.contains(g) && k.removeChild(g);
1420
- };
1421
- g.style.pointerEvents = "none", g.style.position = "absolute", g.style.overflow = "hidden", g.setAttribute("aria-hidden", "true");
1422
- const F = xa(g);
1423
- F && (F.style.opacity = "0");
1424
- const I = Ne(g);
1425
- I && (I.classList.add(u ? o[A.caption_before_exit] : o[A.caption_after_exit]), I.addEventListener("animationend", P));
1426
- const R = Te(g);
1427
- R && R.classList.add(u ? o[A.weeks_before_exit] : o[A.weeks_after_exit]), k.insertBefore(g, k.firstChild);
1428
- });
1429
- }
1430
- });
1431
- }
1432
- function Wa(e, t, o, n) {
1433
- const a = e[0], l = e[e.length - 1], { ISOWeek: r, fixedWeeks: s, broadcastCalendar: i } = o ?? {}, { addDays: d, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: C, endOfWeek: W, isAfter: w, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: k } = n, D = i ? O(a, n) : r ? T(a) : k(a), g = i ? h(l) : r ? b(C(l)) : W(C(l)), m = t && (i ? h(t) : r ? b(t) : W(t)), x = m && w(g, m) ? m : g, P = f(x, D), F = u(l, a) + 1, I = [];
1434
- for (let K = 0; K <= P; K++) {
1435
- const j = d(D, K);
1436
- I.push(j);
1437
- }
1438
- const te = (i ? 35 : 42) * F;
1439
- if (s && I.length < te) {
1440
- const K = te - I.length;
1441
- for (let j = 0; j < K; j++) {
1442
- const oe = d(I[I.length - 1], 1);
1443
- I.push(oe);
1444
- }
1445
- }
1446
- return I;
1447
- }
1448
- function Na(e) {
1449
- const t = [];
1450
- return e.reduce((o, n) => {
1451
- const a = n.weeks.reduce((l, r) => l.concat(r.days.slice()), t.slice());
1452
- return o.concat(a.slice());
1453
- }, t.slice());
1454
- }
1455
- function Ta(e, t, o, n) {
1456
- const { numberOfMonths: a = 1 } = o, l = [];
1457
- for (let r = 0; r < a; r++) {
1458
- const s = n.addMonths(e, r);
1459
- if (t && s > t)
1460
- break;
1461
- l.push(s);
1462
- }
1463
- return l;
1464
- }
1465
- function Ue(e, t, o, n) {
1466
- const { month: a, defaultMonth: l, today: r = n.today(), numberOfMonths: s = 1 } = e;
1467
- let i = a || l || r;
1468
- const { differenceInCalendarMonths: d, addMonths: f, startOfMonth: u } = n;
1469
- if (o && d(o, i) < s - 1) {
1470
- const h = -1 * (s - 1);
1471
- i = f(o, h);
1472
- }
1473
- return t && d(i, t) < 0 && (i = t), u(i);
1474
- }
1475
- function _a(e, t, o, n) {
1476
- const { addDays: a, endOfBroadcastWeek: l, endOfISOWeek: r, endOfMonth: s, endOfWeek: i, getISOWeek: d, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: b } = n, C = e.reduce((W, w) => {
1477
- const O = o.broadcastCalendar ? u(w, n) : o.ISOWeek ? h(w) : b(w), T = o.broadcastCalendar ? l(w) : o.ISOWeek ? r(s(w)) : i(s(w)), k = t.filter((x) => x >= O && x <= T), D = o.broadcastCalendar ? 35 : 42;
1478
- if (o.fixedWeeks && k.length < D) {
1479
- const x = t.filter((P) => {
1480
- const F = D - k.length;
1481
- return P > T && P <= a(T, F);
1482
- });
1483
- k.push(...x);
1484
- }
1485
- const g = k.reduce((x, P) => {
1486
- const F = o.ISOWeek ? d(P) : f(P), I = x.find((te) => te.weekNumber === F), R = new at(P, w, n);
1487
- return I ? I.days.push(R) : x.push(new wo(F, [R])), x;
1488
- }, []), m = new ko(w, g);
1489
- return W.push(m), W;
1490
- }, []);
1491
- return o.reverseMonths ? C.reverse() : C;
1492
- }
1493
- function Ea(e, t) {
1494
- let { startMonth: o, endMonth: n } = e;
1495
- const { startOfYear: a, startOfDay: l, startOfMonth: r, endOfMonth: s, addYears: i, endOfYear: d, newDate: f, today: u } = t, { fromYear: h, toYear: b, fromMonth: C, toMonth: W } = e;
1496
- !o && C && (o = C), !o && h && (o = t.newDate(h, 0, 1)), !n && W && (n = W), !n && b && (n = f(b, 11, 31));
1497
- const w = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
1498
- return o ? o = r(o) : h ? o = f(h, 0, 1) : !o && w && (o = a(i(e.today ?? u(), -100))), n ? n = s(n) : b ? n = f(b, 11, 31) : !n && w && (n = d(e.today ?? u())), [
1499
- o && l(o),
1500
- n && l(n)
1501
- ];
1502
- }
1503
- function Pa(e, t, o, n) {
1504
- if (o.disableNavigation)
1505
- return;
1506
- const { pagedNavigation: a, numberOfMonths: l = 1 } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l : 1, f = r(e);
1507
- if (!t)
1508
- return s(f, d);
1509
- if (!(i(t, e) < l))
1510
- return s(f, d);
1511
- }
1512
- function Ba(e, t, o, n) {
1513
- if (o.disableNavigation)
1514
- return;
1515
- const { pagedNavigation: a, numberOfMonths: l } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l ?? 1 : 1, f = r(e);
1516
- if (!t)
1517
- return s(f, -d);
1518
- if (!(i(f, t) <= 0))
1519
- return s(f, -d);
1520
- }
1521
- function Ia(e) {
1522
- const t = [];
1523
- return e.reduce((o, n) => o.concat(n.weeks.slice()), t.slice());
1524
- }
1525
- function ge(e, t) {
1526
- const [o, n] = Ee(e);
1527
- return [t === void 0 ? o : t, n];
1528
- }
1529
- function Fa(e, t) {
1530
- const [o, n] = Ea(e, t), { startOfMonth: a, endOfMonth: l } = t, r = Ue(e, o, n, t), [s, i] = ge(
1531
- r,
1532
- // initialMonth is always computed from props.month if provided
1533
- e.month ? r : void 0
1534
- );
1535
- Ut(() => {
1536
- const D = Ue(e, o, n, t);
1537
- i(D);
1538
- }, [e.timeZone]);
1539
- const { months: d, weeks: f, days: u, previousMonth: h, nextMonth: b } = ie(() => {
1540
- const D = Ta(s, n, { numberOfMonths: e.numberOfMonths }, t), g = Wa(D, e.endMonth ? l(e.endMonth) : void 0, {
1541
- ISOWeek: e.ISOWeek,
1542
- fixedWeeks: e.fixedWeeks,
1543
- broadcastCalendar: e.broadcastCalendar
1544
- }, t), m = _a(D, g, {
1545
- broadcastCalendar: e.broadcastCalendar,
1546
- fixedWeeks: e.fixedWeeks,
1547
- ISOWeek: e.ISOWeek,
1548
- reverseMonths: e.reverseMonths
1549
- }, t), x = Ia(m), P = Na(m), F = Ba(s, o, e, t), I = Pa(s, n, e, t);
1550
- return {
1551
- months: m,
1552
- weeks: x,
1553
- days: P,
1554
- previousMonth: F,
1555
- nextMonth: I
1556
- };
1557
- }, [
1558
- t,
1559
- s.getTime(),
1560
- n?.getTime(),
1561
- o?.getTime(),
1562
- e.disableNavigation,
1563
- e.broadcastCalendar,
1564
- e.endMonth?.getTime(),
1565
- e.fixedWeeks,
1566
- e.ISOWeek,
1567
- e.numberOfMonths,
1568
- e.pagedNavigation,
1569
- e.reverseMonths
1570
- ]), { disableNavigation: C, onMonthChange: W } = e, w = (D) => f.some((g) => g.days.some((m) => m.isEqualTo(D))), O = (D) => {
1571
- if (C)
1572
- return;
1573
- let g = a(D);
1574
- o && g < a(o) && (g = a(o)), n && g > a(n) && (g = a(n)), i(g), W?.(g);
1575
- };
1576
- return {
1577
- months: d,
1578
- weeks: f,
1579
- days: u,
1580
- navStart: o,
1581
- navEnd: n,
1582
- previousMonth: h,
1583
- nextMonth: b,
1584
- goToMonth: O,
1585
- goToDay: (D) => {
1586
- w(D) || O(D.date);
1587
- }
1588
- };
1589
- }
1590
- var Z;
1591
- (function(e) {
1592
- e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
1593
- })(Z || (Z = {}));
1594
- function Le(e) {
1595
- return !e[B.disabled] && !e[B.hidden] && !e[B.outside];
1596
- }
1597
- function Ya(e, t, o, n) {
1598
- let a, l = -1;
1599
- for (const r of e) {
1600
- const s = t(r);
1601
- Le(s) && (s[B.focused] && l < Z.FocusedModifier ? (a = r, l = Z.FocusedModifier) : n?.isEqualTo(r) && l < Z.LastFocused ? (a = r, l = Z.LastFocused) : o(r.date) && l < Z.Selected ? (a = r, l = Z.Selected) : s[B.today] && l < Z.Today && (a = r, l = Z.Today));
1602
- }
1603
- return a || (a = e.find((r) => Le(t(r)))), a;
1604
- }
1605
- function Aa(e, t, o, n, a, l, r) {
1606
- const { ISOWeek: s, broadcastCalendar: i } = l, { addDays: d, addMonths: f, addWeeks: u, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: C, endOfWeek: W, max: w, min: O, startOfBroadcastWeek: T, startOfISOWeek: k, startOfWeek: D } = r;
1607
- let m = {
1608
- day: d,
1609
- week: u,
1610
- month: f,
1611
- year: h,
1612
- startOfWeek: (x) => i ? T(x, r) : s ? k(x) : D(x),
1613
- endOfWeek: (x) => i ? b(x) : s ? C(x) : W(x)
1614
- }[e](o, t === "after" ? 1 : -1);
1615
- return t === "before" && n ? m = w([n, m]) : t === "after" && a && (m = O([a, m])), m;
1616
- }
1617
- function ft(e, t, o, n, a, l, r, s = 0) {
1618
- if (s > 365)
1619
- return;
1620
- const i = Aa(e, t, o.date, n, a, l, r), d = !!(l.disabled && ee(i, l.disabled, r)), f = !!(l.hidden && ee(i, l.hidden, r)), u = i, h = new at(i, u, r);
1621
- return !d && !f ? h : ft(e, t, h, n, a, l, r, s + 1);
1622
- }
1623
- function za(e, t, o, n, a) {
1624
- const { autoFocus: l } = e, [r, s] = Ee(), i = Ya(t.days, o, n || (() => !1), r), [d, f] = Ee(l ? i : void 0);
1625
- return {
1626
- isFocusTarget: (W) => !!i?.isEqualTo(W),
1627
- setFocused: f,
1628
- focused: d,
1629
- blur: () => {
1630
- s(d), f(void 0);
1631
- },
1632
- moveFocus: (W, w) => {
1633
- if (!d)
1634
- return;
1635
- const O = ft(W, w, d, t.navStart, t.navEnd, e, a);
1636
- O && (e.disableNavigation && !t.days.some((k) => k.isEqualTo(O)) || (t.goToDay(O), f(O)));
1637
- }
1638
- };
1639
- }
1640
- function ja(e, t) {
1641
- const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t, d = (b) => s?.some((C) => i(C, b)) ?? !1, { min: f, max: u } = e;
1642
- return {
1643
- selected: s,
1644
- select: (b, C, W) => {
1645
- let w = [...s ?? []];
1646
- if (d(b)) {
1647
- if (s?.length === f || n && s?.length === 1)
1648
- return;
1649
- w = s?.filter((O) => !i(O, b));
1650
- } else
1651
- s?.length === u ? w = [b] : w = [...w, b];
1652
- return a || r(w), a?.(w, b, C, W), w;
1653
- },
1654
- isSelected: d
1655
- };
1656
- }
1657
- function Ha(e, t, o = 0, n = 0, a = !1, l = L) {
1658
- const { from: r, to: s } = t || {}, { isSameDay: i, isAfter: d, isBefore: f } = l;
1659
- let u;
1660
- if (!r && !s)
1661
- u = { from: e, to: o > 0 ? void 0 : e };
1662
- else if (r && !s)
1663
- i(r, e) ? o === 0 ? u = { from: r, to: e } : a ? u = { from: r, to: void 0 } : u = void 0 : f(e, r) ? u = { from: e, to: r } : u = { from: r, to: e };
1664
- else if (r && s)
1665
- if (i(r, e) && i(s, e))
1666
- a ? u = { from: r, to: s } : u = void 0;
1667
- else if (i(r, e))
1668
- u = { from: r, to: o > 0 ? void 0 : e };
1669
- else if (i(s, e))
1670
- u = { from: e, to: o > 0 ? void 0 : e };
1671
- else if (f(e, r))
1672
- u = { from: e, to: s };
1673
- else if (d(e, r))
1674
- u = { from: r, to: e };
1675
- else if (d(e, s))
1676
- u = { from: r, to: e };
1677
- else
1678
- throw new Error("Invalid range");
1679
- if (u?.from && u?.to) {
1680
- const h = l.differenceInCalendarDays(u.to, u.from);
1681
- n > 0 && h > n ? u = { from: e, to: void 0 } : o > 1 && h < o && (u = { from: e, to: void 0 });
1682
- }
1683
- return u;
1684
- }
1685
- function qa(e, t, o = L) {
1686
- const n = Array.isArray(t) ? t : [t];
1687
- let a = e.from;
1688
- const l = o.differenceInCalendarDays(e.to, e.from), r = Math.min(l, 6);
1689
- for (let s = 0; s <= r; s++) {
1690
- if (n.includes(a.getDay()))
1691
- return !0;
1692
- a = o.addDays(a, 1);
1693
- }
1694
- return !1;
1695
- }
1696
- function Ke(e, t, o = L) {
1697
- return Q(e, t.from, !1, o) || Q(e, t.to, !1, o) || Q(t, e.from, !1, o) || Q(t, e.to, !1, o);
1698
- }
1699
- function Ga(e, t, o = L) {
1700
- const n = Array.isArray(t) ? t : [t];
1701
- if (n.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : o.isDate(s) ? Q(e, s, !1, o) : it(s, o) ? s.some((i) => Q(e, i, !1, o)) : ye(s) ? s.from && s.to ? Ke(e, { from: s.from, to: s.to }, o) : !1 : st(s) ? qa(e, s.dayOfWeek, o) : Be(s) ? o.isAfter(s.before, s.after) ? Ke(e, {
1702
- from: o.addDays(s.after, 1),
1703
- to: o.addDays(s.before, -1)
1704
- }, o) : ee(e.from, s, o) || ee(e.to, s, o) : Ie(s) || Fe(s) ? ee(e.from, s, o) || ee(e.to, s, o) : !1))
1705
- return !0;
1706
- const r = n.filter((s) => typeof s == "function");
1707
- if (r.length) {
1708
- let s = e.from;
1709
- const i = o.differenceInCalendarDays(e.to, e.from);
1710
- for (let d = 0; d <= i; d++) {
1711
- if (r.some((f) => f(s)))
1712
- return !0;
1713
- s = o.addDays(s, 1);
1714
- }
1715
- }
1716
- return !1;
1717
- }
1718
- function $a(e, t) {
1719
- const { disabled: o, excludeDisabled: n, selected: a, required: l, onSelect: r } = e, [s, i] = ge(a, r ? a : void 0), d = r ? a : s;
1720
- return {
1721
- selected: d,
1722
- select: (h, b, C) => {
1723
- const { min: W, max: w } = e, O = h ? Ha(h, d, W, w, l, t) : void 0;
1724
- return n && o && O?.from && O.to && Ga({ from: O.from, to: O.to }, o, t) && (O.from = h, O.to = void 0), r || i(O), r?.(O, h, b, C), O;
1725
- },
1726
- isSelected: (h) => d && Q(d, h, !1, t)
1727
- };
1728
- }
1729
- function Ra(e, t) {
1730
- const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t;
1731
- return {
1732
- selected: s,
1733
- select: (u, h, b) => {
1734
- let C = u;
1735
- return !n && s && s && i(u, s) && (C = void 0), a || r(C), a?.(C, u, h, b), C;
1736
- },
1737
- isSelected: (u) => s ? i(s, u) : !1
1738
- };
1739
- }
1740
- function Va(e, t) {
1741
- const o = Ra(e, t), n = ja(e, t), a = $a(e, t);
1742
- switch (e.mode) {
1743
- case "single":
1744
- return o;
1745
- case "multiple":
1746
- return n;
1747
- case "range":
1748
- return a;
1749
- default:
1750
- return;
1751
- }
1752
- }
1753
- function Y(e, t) {
1754
- return e instanceof X && e.timeZone === t ? e : new X(e, t);
1755
- }
1756
- function Je(e, t) {
1757
- return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? Y(e, t) : Array.isArray(e) ? e.map((o) => o instanceof Date ? Y(o, t) : o) : ye(e) ? {
1758
- ...e,
1759
- from: e.from ? Y(e.from, t) : e.from,
1760
- to: e.to ? Y(e.to, t) : e.to
1761
- } : Be(e) ? {
1762
- before: Y(e.before, t),
1763
- after: Y(e.after, t)
1764
- } : Ie(e) ? {
1765
- after: Y(e.after, t)
1766
- } : Fe(e) ? {
1767
- before: Y(e.before, t)
1768
- } : e;
1769
- }
1770
- function _e(e, t) {
1771
- return e && (Array.isArray(e) ? e.map((o) => Je(o, t)) : Je(e, t));
1772
- }
1773
- function Za(e) {
1774
- let t = e;
1775
- const o = t.timeZone;
1776
- if (o && (t = {
1777
- ...e,
1778
- timeZone: o
1779
- }, t.today && (t.today = Y(t.today, o)), t.month && (t.month = Y(t.month, o)), t.defaultMonth && (t.defaultMonth = Y(t.defaultMonth, o)), t.startMonth && (t.startMonth = Y(t.startMonth, o)), t.endMonth && (t.endMonth = Y(t.endMonth, o)), t.mode === "single" && t.selected ? t.selected = Y(t.selected, o) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((M) => Y(M, o)) : t.mode === "range" && t.selected && (t.selected = {
1780
- from: t.selected.from ? Y(t.selected.from, o) : t.selected.from,
1781
- to: t.selected.to ? Y(t.selected.to, o) : t.selected.to
1782
- }), t.disabled !== void 0 && (t.disabled = _e(t.disabled, o)), t.hidden !== void 0 && (t.hidden = _e(t.hidden, o)), t.modifiers)) {
1783
- const M = {};
1784
- Object.keys(t.modifiers).forEach((E) => {
1785
- M[E] = _e(t.modifiers?.[E], o);
1786
- }), t.modifiers = M;
1787
- }
1788
- const { components: n, formatters: a, labels: l, dateLib: r, locale: s, classNames: i } = ie(() => {
1789
- const M = { ...nt, ...t.locale };
1790
- return {
1791
- dateLib: new z({
1792
- locale: M,
1793
- weekStartsOn: t.broadcastCalendar ? 1 : t.weekStartsOn,
1794
- firstWeekContainsDate: t.firstWeekContainsDate,
1795
- useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
1796
- useAdditionalDayOfYearTokens: t.useAdditionalDayOfYearTokens,
1797
- timeZone: t.timeZone,
1798
- numerals: t.numerals
1799
- }, t.dateLib),
1800
- components: Jo(t.components),
1801
- formatters: ia(t.formatters),
1802
- labels: { ...Da, ...t.labels },
1803
- locale: M,
1804
- classNames: { ...Ye(), ...t.classNames }
1805
- };
1806
- }, [
1807
- t.locale,
1808
- t.broadcastCalendar,
1809
- t.weekStartsOn,
1810
- t.firstWeekContainsDate,
1811
- t.useAdditionalWeekYearTokens,
1812
- t.useAdditionalDayOfYearTokens,
1813
- t.timeZone,
1814
- t.numerals,
1815
- t.dateLib,
1816
- t.components,
1817
- t.formatters,
1818
- t.labels,
1819
- t.classNames
1820
- ]);
1821
- t.today || (t = { ...t, today: r.today() });
1822
- const { captionLayout: d, mode: f, navLayout: u, numberOfMonths: h = 1, onDayBlur: b, onDayClick: C, onDayFocus: W, onDayKeyDown: w, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: k, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: x, formatDay: P, formatMonthDropdown: F, formatWeekNumber: I, formatWeekNumberHeader: R, formatWeekdayName: te, formatYearDropdown: K } = a, j = Fa(t, r), { days: oe, months: ce, navStart: be, navEnd: ve, previousMonth: q, nextMonth: G, goToMonth: J } = j, ke = Lo(oe, t, be, ve, r), { isSelected: we, select: Me, selected: fe } = Va(t, r) ?? {}, { blur: Ae, focused: ze, isFocusTarget: ht, moveFocus: je, setFocused: he } = za(t, j, ke, we ?? (() => !1), r), { labelDayButton: mt, labelGridcell: pt, labelGrid: yt, labelMonthDropdown: gt, labelNav: He, labelPrevious: bt, labelNext: vt, labelWeekday: kt, labelWeekNumber: wt, labelWeekNumberHeader: Mt, labelYearDropdown: Dt } = l, Ct = ie(() => ua(r, t.ISOWeek, t.broadcastCalendar, t.today), [r, t.ISOWeek, t.broadcastCalendar, t.today]), qe = f !== void 0 || C !== void 0, De = H(() => {
1823
- q && (J(q), D?.(q));
1824
- }, [q, J, D]), Ce = H(() => {
1825
- G && (J(G), k?.(G));
1826
- }, [J, G, k]), Ot = H((M, E) => (v) => {
1827
- v.preventDefault(), v.stopPropagation(), he(M), !E.disabled && (Me?.(M.date, E, v), C?.(M.date, E, v));
1828
- }, [Me, C, he]), xt = H((M, E) => (v) => {
1829
- he(M), W?.(M.date, E, v);
1830
- }, [W, he]), St = H((M, E) => (v) => {
1831
- Ae(), b?.(M.date, E, v);
1832
- }, [Ae, b]), Wt = H((M, E) => (v) => {
1833
- const _ = {
1834
- ArrowLeft: [
1835
- v.shiftKey ? "month" : "day",
1836
- t.dir === "rtl" ? "after" : "before"
1837
- ],
1838
- ArrowRight: [
1839
- v.shiftKey ? "month" : "day",
1840
- t.dir === "rtl" ? "before" : "after"
1841
- ],
1842
- ArrowDown: [v.shiftKey ? "year" : "week", "after"],
1843
- ArrowUp: [v.shiftKey ? "year" : "week", "before"],
1844
- PageUp: [v.shiftKey ? "year" : "month", "before"],
1845
- PageDown: [v.shiftKey ? "year" : "month", "after"],
1846
- Home: ["startOfWeek", "before"],
1847
- End: ["endOfWeek", "after"]
1848
- };
1849
- if (_[v.key]) {
1850
- v.preventDefault(), v.stopPropagation();
1851
- const [V, S] = _[v.key];
1852
- je(V, S);
1853
- }
1854
- w?.(M.date, E, v);
1855
- }, [je, w, t.dir]), Nt = H((M, E) => (v) => {
1856
- O?.(M.date, E, v);
1857
- }, [O]), Tt = H((M, E) => (v) => {
1858
- T?.(M.date, E, v);
1859
- }, [T]), _t = H((M) => (E) => {
1860
- const v = Number(E.target.value), _ = r.setMonth(r.startOfMonth(M), v);
1861
- J(_);
1862
- }, [r, J]), Et = H((M) => (E) => {
1863
- const v = Number(E.target.value), _ = r.setYear(r.startOfMonth(M), v);
1864
- J(_);
1865
- }, [r, J]), { className: Pt, style: Bt } = ie(() => ({
1866
- className: [i[p.Root], t.className].filter(Boolean).join(" "),
1867
- style: { ...m?.[p.Root], ...t.style }
1868
- }), [i, t.className, t.style, m]), It = Xo(t), Ge = me(null);
1869
- Sa(Ge, !!t.animate, {
1870
- classNames: i,
1871
- months: ce,
1872
- focused: ze,
1873
- dateLib: r
1874
- });
1875
- const Ft = {
1876
- dayPickerProps: t,
1877
- selected: fe,
1878
- select: Me,
1879
- isSelected: we,
1880
- months: ce,
1881
- nextMonth: G,
1882
- previousMonth: q,
1883
- goToMonth: J,
1884
- getModifiers: ke,
1885
- components: n,
1886
- classNames: i,
1887
- styles: m,
1888
- labels: l,
1889
- formatters: a
1890
- };
1891
- return c.createElement(
1892
- rt.Provider,
1893
- { value: Ft },
1894
- c.createElement(
1895
- n.Root,
1896
- { rootRef: t.animate ? Ge : void 0, className: Pt, style: Bt, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...It },
1897
- c.createElement(
1898
- n.Months,
1899
- { className: i[p.Months], style: m?.[p.Months] },
1900
- !t.hideNavigation && !u && c.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[p.Nav], style: m?.[p.Nav], "aria-label": He(), onPreviousClick: De, onNextClick: Ce, previousMonth: q, nextMonth: G }),
1901
- ce.map((M, E) => c.createElement(
1902
- n.Month,
1903
- {
1904
- "data-animated-month": t.animate ? "true" : void 0,
1905
- className: i[p.Month],
1906
- style: m?.[p.Month],
1907
- // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
1908
- key: E,
1909
- displayIndex: E,
1910
- calendarMonth: M
1911
- },
1912
- u === "around" && !t.hideNavigation && E === 0 && c.createElement(
1913
- n.PreviousMonthButton,
1914
- { type: "button", className: i[p.PreviousMonthButton], tabIndex: q ? void 0 : -1, "aria-disabled": q ? void 0 : !0, "aria-label": bt(q), onClick: De, "data-animated-button": t.animate ? "true" : void 0 },
1915
- c.createElement(n.Chevron, { disabled: q ? void 0 : !0, className: i[p.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
1916
- ),
1917
- c.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: i[p.MonthCaption], style: m?.[p.MonthCaption], calendarMonth: M, displayIndex: E }, d?.startsWith("dropdown") ? c.createElement(
1918
- n.DropdownNav,
1919
- { className: i[p.Dropdowns], style: m?.[p.Dropdowns] },
1920
- (() => {
1921
- const v = d === "dropdown" || d === "dropdown-months" ? c.createElement(n.MonthsDropdown, { key: "month", className: i[p.MonthsDropdown], "aria-label": gt(), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: _t(M.date), options: la(M.date, be, ve, a, r), style: m?.[p.Dropdown], value: r.getMonth(M.date) }) : c.createElement("span", { key: "month" }, F(M.date, r)), _ = d === "dropdown" || d === "dropdown-years" ? c.createElement(n.YearsDropdown, { key: "year", className: i[p.YearsDropdown], "aria-label": Dt(r.options), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: Et(M.date), options: ca(be, ve, a, r, !!t.reverseYears), style: m?.[p.Dropdown], value: r.getYear(M.date) }) : c.createElement("span", { key: "year" }, K(M.date, r));
1922
- return r.getMonthYearOrder() === "year-first" ? [_, v] : [v, _];
1923
- })(),
1924
- c.createElement("span", { role: "status", "aria-live": "polite", style: {
1925
- border: 0,
1926
- clip: "rect(0 0 0 0)",
1927
- height: "1px",
1928
- margin: "-1px",
1929
- overflow: "hidden",
1930
- padding: 0,
1931
- position: "absolute",
1932
- width: "1px",
1933
- whiteSpace: "nowrap",
1934
- wordWrap: "normal"
1935
- } }, x(M.date, r.options, r))
1936
- ) : c.createElement(n.CaptionLabel, { className: i[p.CaptionLabel], role: "status", "aria-live": "polite" }, x(M.date, r.options, r))),
1937
- u === "around" && !t.hideNavigation && E === h - 1 && c.createElement(
1938
- n.NextMonthButton,
1939
- { type: "button", className: i[p.NextMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": vt(G), onClick: Ce, "data-animated-button": t.animate ? "true" : void 0 },
1940
- c.createElement(n.Chevron, { disabled: G ? void 0 : !0, className: i[p.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
1941
- ),
1942
- E === h - 1 && u === "after" && !t.hideNavigation && c.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[p.Nav], style: m?.[p.Nav], "aria-label": He(), onPreviousClick: De, onNextClick: Ce, previousMonth: q, nextMonth: G }),
1943
- c.createElement(
1944
- n.MonthGrid,
1945
- { role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": yt(M.date, r.options, r) || void 0, className: i[p.MonthGrid], style: m?.[p.MonthGrid] },
1946
- !t.hideWeekdays && c.createElement(
1947
- n.Weekdays,
1948
- { "data-animated-weekdays": t.animate ? "true" : void 0, className: i[p.Weekdays], style: m?.[p.Weekdays] },
1949
- g && c.createElement(n.WeekNumberHeader, { "aria-label": Mt(r.options), className: i[p.WeekNumberHeader], style: m?.[p.WeekNumberHeader], scope: "col" }, R()),
1950
- Ct.map((v) => c.createElement(n.Weekday, { "aria-label": kt(v, r.options, r), className: i[p.Weekday], key: String(v), style: m?.[p.Weekday], scope: "col" }, te(v, r.options, r)))
1951
- ),
1952
- c.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: i[p.Weeks], style: m?.[p.Weeks] }, M.weeks.map((v) => c.createElement(
1953
- n.Week,
1954
- { className: i[p.Week], key: v.weekNumber, style: m?.[p.Week], week: v },
1955
- g && c.createElement(n.WeekNumber, { week: v, style: m?.[p.WeekNumber], "aria-label": wt(v.weekNumber, {
1956
- locale: s
1957
- }), className: i[p.WeekNumber], scope: "row", role: "rowheader" }, I(v.weekNumber, r)),
1958
- v.days.map((_) => {
1959
- const { date: V } = _, S = ke(_);
1960
- if (S[B.focused] = !S.hidden && !!ze?.isEqualTo(_), S[$.selected] = we?.(V) || S.selected, ye(fe)) {
1961
- const { from: Oe, to: xe } = fe;
1962
- S[$.range_start] = !!(Oe && xe && r.isSameDay(V, Oe)), S[$.range_end] = !!(Oe && xe && r.isSameDay(V, xe)), S[$.range_middle] = Q(fe, V, !0, r);
1963
- }
1964
- const Yt = da(S, m, t.modifiersStyles), At = Ko(S, i, t.modifiersClassNames), zt = !qe && !S.hidden ? pt(V, S, r.options, r) : void 0;
1965
- return c.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: S, className: At.join(" "), style: Yt, role: "gridcell", "aria-selected": S.selected || void 0, "aria-label": zt, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": S.selected || void 0, "data-disabled": S.disabled || void 0, "data-hidden": S.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": S.focused || void 0, "data-today": S.today || void 0 }, !S.hidden && qe ? c.createElement(n.DayButton, { className: i[p.DayButton], style: m?.[p.DayButton], type: "button", day: _, modifiers: S, disabled: !S.focused && S.disabled || void 0, "aria-disabled": S.focused && S.disabled || void 0, tabIndex: ht(_) ? 0 : -1, "aria-label": mt(V, S, r.options, r), onClick: Ot(_, S), onBlur: St(_, S), onFocus: xt(_, S), onKeyDown: Wt(_, S), onMouseEnter: Nt(_, S), onMouseLeave: Tt(_, S) }, P(V, r.options, r)) : !S.hidden && P(_.date, r.options, r));
1966
- })
1967
- )))
1968
- )
1969
- ))
1970
- ),
1971
- t.footer && c.createElement(n.Footer, { className: i[p.Footer], style: m?.[p.Footer], role: "status", "aria-live": "polite" }, t.footer)
1972
- )
1973
- );
1974
- }
1975
- function pr({
1976
- className: e,
1977
- classNames: t,
1978
- showOutsideDays: o = !0,
1979
- captionLayout: n = "label",
1980
- buttonVariant: a = "ghost",
1981
- formatters: l,
1982
- components: r,
1983
- ...s
1984
- }) {
1985
- const i = Ye();
1986
- return /* @__PURE__ */ N(
1987
- Za,
1988
- {
1989
- showOutsideDays: o,
1990
- className: y(
1991
- "bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
1992
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1993
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1994
- e
1995
- ),
1996
- captionLayout: n,
1997
- formatters: {
1998
- formatMonthDropdown: (d) => d.toLocaleString("default", { month: "short" }),
1999
- ...l
2000
- },
2001
- classNames: {
2002
- root: y("w-fit", i.root),
2003
- months: y(
2004
- "relative flex flex-col gap-4 md:flex-row",
2005
- i.months
2006
- ),
2007
- month: y("flex w-full flex-col gap-4", i.month),
2008
- nav: y(
2009
- "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
2010
- i.nav
2011
- ),
2012
- button_previous: y(
2013
- $e({ variant: a }),
2014
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
2015
- i.button_previous
2016
- ),
2017
- button_next: y(
2018
- $e({ variant: a }),
2019
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
2020
- i.button_next
2021
- ),
2022
- month_caption: y(
2023
- "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
2024
- i.month_caption
2025
- ),
2026
- dropdowns: y(
2027
- "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
2028
- i.dropdowns
2029
- ),
2030
- dropdown_root: y(
2031
- "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
2032
- i.dropdown_root
2033
- ),
2034
- dropdown: y(
2035
- "bg-popover absolute inset-0 opacity-0",
2036
- i.dropdown
2037
- ),
2038
- caption_label: y(
2039
- "select-none font-medium",
2040
- n === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
2041
- i.caption_label
2042
- ),
2043
- table: "w-full border-collapse",
2044
- weekdays: y("flex", i.weekdays),
2045
- weekday: y(
2046
- "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
2047
- i.weekday
2048
- ),
2049
- week: y("mt-2 flex w-full", i.week),
2050
- week_number_header: y(
2051
- "w-[--cell-size] select-none",
2052
- i.week_number_header
2053
- ),
2054
- week_number: y(
2055
- "text-muted-foreground select-none text-[0.8rem]",
2056
- i.week_number
2057
- ),
2058
- day: y(
2059
- "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
2060
- i.day
2061
- ),
2062
- range_start: y(
2063
- "bg-accent rounded-l-md",
2064
- i.range_start
2065
- ),
2066
- range_middle: y("rounded-none", i.range_middle),
2067
- range_end: y("bg-accent rounded-r-md", i.range_end),
2068
- today: y(
2069
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
2070
- i.today
2071
- ),
2072
- outside: y(
2073
- "text-muted-foreground aria-selected:text-muted-foreground",
2074
- i.outside
2075
- ),
2076
- disabled: y(
2077
- "text-muted-foreground opacity-50",
2078
- i.disabled
2079
- ),
2080
- hidden: y("invisible", i.hidden),
2081
- ...t
2082
- },
2083
- components: {
2084
- Root: ({ className: d, rootRef: f, ...u }) => /* @__PURE__ */ N(
2085
- "div",
2086
- {
2087
- "data-slot": "calendar",
2088
- ref: f,
2089
- className: y(d),
2090
- ...u
2091
- }
2092
- ),
2093
- Chevron: ({ className: d, orientation: f, ...u }) => f === "left" ? /* @__PURE__ */ N(En, { className: y("size-4", d), ...u }) : f === "right" ? /* @__PURE__ */ N(
2094
- Tn,
2095
- {
2096
- className: y("size-4", d),
2097
- ...u
2098
- }
2099
- ) : /* @__PURE__ */ N(Ht, { className: y("size-4", d), ...u }),
2100
- DayButton: Ua,
2101
- WeekNumber: ({ children: d, ...f }) => /* @__PURE__ */ N("td", { ...f, children: /* @__PURE__ */ N("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: d }) }),
2102
- ...r
2103
- },
2104
- ...s
2105
- }
2106
- );
2107
- }
2108
- function Ua({
2109
- className: e,
2110
- day: t,
2111
- modifiers: o,
2112
- ...n
2113
- }) {
2114
- const a = Ye(), l = pe.useRef(null);
2115
- return pe.useEffect(() => {
2116
- o.focused && l.current?.focus();
2117
- }, [o.focused]), /* @__PURE__ */ N(
2118
- et,
2119
- {
2120
- ref: l,
2121
- variant: "ghost",
2122
- size: "icon",
2123
- "data-day": t.date.toLocaleDateString(),
2124
- "data-selected-single": o.selected && !o.range_start && !o.range_end && !o.range_middle,
2125
- "data-range-start": o.range_start,
2126
- "data-range-end": o.range_end,
2127
- "data-range-middle": o.range_middle,
2128
- className: y(
2129
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
2130
- a.day,
2131
- e
2132
- ),
2133
- ...n
2134
- }
2135
- );
2136
- }
2137
- function yr({ className: e, ...t }) {
2138
- return /* @__PURE__ */ N(
2139
- "div",
2140
- {
2141
- "data-slot": "input-group",
2142
- role: "group",
2143
- className: y(
2144
- "group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]",
2145
- "h-9 has-[>textarea]:h-auto",
2146
- // Variants based on alignment.
2147
- "has-[>[data-align=inline-start]]:[&>input]:pl-2",
2148
- "has-[>[data-align=inline-end]]:[&>input]:pr-2",
2149
- "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
2150
- "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
2151
- // Focus state.
2152
- "has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1",
2153
- // Error state.
2154
- "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
2155
- e
2156
- ),
2157
- ...t
2158
- }
2159
- );
2160
- }
2161
- const La = le(
2162
- "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
2163
- {
2164
- variants: {
2165
- align: {
2166
- "inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
2167
- "inline-end": "order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]",
2168
- "block-start": "[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5",
2169
- "block-end": "[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"
2170
- }
2171
- },
2172
- defaultVariants: {
2173
- align: "inline-start"
2174
- }
2175
- }
2176
- );
2177
- function gr({
2178
- className: e,
2179
- align: t = "inline-start",
2180
- ...o
2181
- }) {
2182
- return /* @__PURE__ */ N(
2183
- "div",
2184
- {
2185
- role: "group",
2186
- "data-slot": "input-group-addon",
2187
- "data-align": t,
2188
- className: y(La({ align: t }), e),
2189
- onClick: (n) => {
2190
- n.target.closest("button") || n.currentTarget.parentElement?.querySelector("input")?.focus();
2191
- },
2192
- ...o
2193
- }
2194
- );
2195
- }
2196
- const Ka = le(
2197
- "flex items-center gap-2 text-sm shadow-none",
2198
- {
2199
- variants: {
2200
- size: {
2201
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
2202
- sm: "h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5",
2203
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
2204
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
2205
- }
2206
- },
2207
- defaultVariants: {
2208
- size: "xs"
2209
- }
2210
- }
2211
- );
2212
- function br({
2213
- className: e,
2214
- type: t = "button",
2215
- variant: o = "ghost",
2216
- size: n = "xs",
2217
- ...a
2218
- }) {
2219
- return /* @__PURE__ */ N(
2220
- et,
2221
- {
2222
- type: t,
2223
- "data-size": n,
2224
- variant: o,
2225
- className: y(Ka({ size: n }), e),
2226
- ...a
2227
- }
2228
- );
2229
- }
2230
- function vr({ className: e, ...t }) {
2231
- return /* @__PURE__ */ N(
2232
- "span",
2233
- {
2234
- className: y(
2235
- "text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
2236
- e
2237
- ),
2238
- ...t
2239
- }
2240
- );
2241
- }
2242
- function kr({
2243
- className: e,
2244
- ...t
2245
- }) {
2246
- return /* @__PURE__ */ N(
2247
- qt,
2248
- {
2249
- "data-slot": "input-group-control",
2250
- className: y(
2251
- "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
2252
- e
2253
- ),
2254
- ...t
2255
- }
2256
- );
2257
- }
2258
- function wr({
2259
- className: e,
2260
- ...t
2261
- }) {
2262
- return /* @__PURE__ */ N(
2263
- Gt,
2264
- {
2265
- "data-slot": "input-group-control",
2266
- className: y(
2267
- "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
2268
- e
2269
- ),
2270
- ...t
2271
- }
2272
- );
2273
- }
2274
- const Ja = le(
2275
- "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
2276
- {
2277
- variants: {
2278
- orientation: {
2279
- horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
2280
- vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
2281
- }
2282
- },
2283
- defaultVariants: {
2284
- orientation: "horizontal"
2285
- }
2286
- }
2287
- );
2288
- function Mr({
2289
- className: e,
2290
- orientation: t,
2291
- ...o
2292
- }) {
2293
- return /* @__PURE__ */ N(
2294
- "div",
2295
- {
2296
- role: "group",
2297
- "data-slot": "button-group",
2298
- "data-orientation": t,
2299
- className: y(Ja({ orientation: t }), e),
2300
- ...o
2301
- }
2302
- );
2303
- }
2304
- function Dr({
2305
- className: e,
2306
- asChild: t = !1,
2307
- ...o
2308
- }) {
2309
- return /* @__PURE__ */ N(
2310
- t ? $t : "div",
2311
- {
2312
- className: y(
2313
- "bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
2314
- e
2315
- ),
2316
- ...o
2317
- }
2318
- );
2319
- }
2320
- function Cr({
2321
- className: e,
2322
- orientation: t = "vertical",
2323
- ...o
2324
- }) {
2325
- return /* @__PURE__ */ N(
2326
- Qe,
2327
- {
2328
- "data-slot": "button-group-separator",
2329
- orientation: t,
2330
- className: y(
2331
- "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
2332
- e
2333
- ),
2334
- ...o
2335
- }
2336
- );
2337
- }
2338
- const Xa = le(
2339
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
2340
- {
2341
- variants: {
2342
- variant: {
2343
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
2344
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
2345
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
2346
- success: "border-transparent bg-green-500 text-destructive-foreground shadow hover:bg-green-500/80",
2347
- warning: "border-transparent bg-orange-500 text-destructive-foreground shadow hover:bg-orange-500/80",
2348
- outline: "text-foreground"
2349
- }
2350
- },
2351
- defaultVariants: {
2352
- variant: "default"
2353
- }
2354
- }
2355
- );
2356
- function Or({ className: e, variant: t, ...o }) {
2357
- return /* @__PURE__ */ N("div", { className: y(Xa({ variant: t }), e), ...o });
2358
- }
2359
- export {
2360
- Wr as Accordion,
2361
- Nr as AccordionContent,
2362
- Tr as AccordionItem,
2363
- _r as AccordionTrigger,
2364
- Or as Badge,
2365
- et as Button,
2366
- Mr as ButtonGroup,
2367
- Cr as ButtonGroupSeparator,
2368
- Dr as ButtonGroupText,
2369
- pr as Calendar,
2370
- Ua as CalendarDayButton,
2371
- ci as Card,
2372
- fi as CardAction,
2373
- hi as CardContent,
2374
- mi as CardDescription,
2375
- pi as CardFooter,
2376
- yi as CardHeader,
2377
- gi as CardTitle,
2378
- Er as ChartContainer,
2379
- Pr as ChartLegend,
2380
- Br as ChartLegendContent,
2381
- Ir as ChartStyle,
2382
- Fr as ChartTooltip,
2383
- Yr as ChartTooltipContent,
2384
- Ar as Checkbox,
2385
- zr as Command,
2386
- jr as CommandDialog,
2387
- Hr as CommandEmpty,
2388
- qr as CommandGroup,
2389
- Gr as CommandInput,
2390
- $r as CommandItem,
2391
- Rr as CommandList,
2392
- Vr as CommandSeparator,
2393
- Zr as CommandShortcut,
2394
- Ur as Dialog,
2395
- Lr as DialogClose,
2396
- Kr as DialogContent,
2397
- Jr as DialogDescription,
2398
- Xr as DialogFooter,
2399
- Qr as DialogHeader,
2400
- es as DialogOverlay,
2401
- ts as DialogPortal,
2402
- ns as DialogTitle,
2403
- os as DialogTrigger,
2404
- as as Drawer,
2405
- rs as DrawerClose,
2406
- ss as DrawerContent,
2407
- is as DrawerDescription,
2408
- ls as DrawerFooter,
2409
- ds as DrawerHeader,
2410
- us as DrawerOverlay,
2411
- cs as DrawerPortal,
2412
- fs as DrawerTitle,
2413
- hs as DrawerTrigger,
2414
- lr as Field,
2415
- dr as FieldContent,
2416
- fr as FieldDescription,
2417
- mr as FieldError,
2418
- ir as FieldGroup,
2419
- ur as FieldLabel,
2420
- sr as FieldLegend,
2421
- hr as FieldSeparator,
2422
- rr as FieldSet,
2423
- cr as FieldTitle,
2424
- ms as HoverCard,
2425
- ps as HoverCardContent,
2426
- ys as HoverCardTrigger,
2427
- qt as Input,
2428
- yr as InputGroup,
2429
- gr as InputGroupAddon,
2430
- br as InputGroupButton,
2431
- kr as InputGroupInput,
2432
- vr as InputGroupText,
2433
- wr as InputGroupTextarea,
2434
- jt as Label,
2435
- gs as Popover,
2436
- bs as PopoverAnchor,
2437
- vs as PopoverContent,
2438
- ks as PopoverTrigger,
2439
- ws as Progress,
2440
- Ms as Select,
2441
- Ds as SelectContent,
2442
- Cs as SelectGroup,
2443
- Os as SelectItem,
2444
- xs as SelectLabel,
2445
- Ss as SelectScrollDownButton,
2446
- Ws as SelectScrollUpButton,
2447
- Ns as SelectSeparator,
2448
- Ts as SelectTrigger,
2449
- _s as SelectValue,
2450
- Qe as Separator,
2451
- Es as Sheet,
2452
- Ps as SheetClose,
2453
- Bs as SheetContent,
2454
- Is as SheetDescription,
2455
- Fs as SheetFooter,
2456
- Ys as SheetHeader,
2457
- As as SheetTitle,
2458
- zs as SheetTrigger,
2459
- ar as Skeleton,
2460
- js as Table,
2461
- Hs as TableBody,
2462
- qs as TableCaption,
2463
- Gs as TableCell,
2464
- $s as TableFooter,
2465
- Rs as TableHead,
2466
- Vs as TableHeader,
2467
- Zs as TableRow,
2468
- Us as Tabs,
2469
- Ls as TabsContent,
2470
- Ks as TabsList,
2471
- Js as TabsTrigger,
2472
- Gt as Textarea,
2473
- Xs as Timeline,
2474
- Qs as TimelineContent,
2475
- ei as TimelineDate,
2476
- ti as TimelineHeader,
2477
- ni as TimelineIndicator,
2478
- oi as TimelineItem,
2479
- ai as TimelineSeparator,
2480
- ri as TimelineTitle,
2481
- si as Tooltip,
2482
- ii as TooltipContent,
2483
- li as TooltipProvider,
2484
- di as TooltipTrigger,
2485
- Xa as badgeVariants,
2486
- Ja as buttonGroupVariants,
2487
- y as cn,
2488
- or as useMediaQuery
2489
- };