@grapadigital/shared-app-modules 0.0.107 → 0.0.108

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