@clubmed/trident-ui 2.0.0-beta.69 → 2.0.0-beta.70
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/chunks/Birthdate.js +27 -0
- package/chunks/Birthdate.js.map +1 -0
- package/chunks/CriteriaParticipants.js +415 -0
- package/chunks/CriteriaParticipants.js.map +1 -0
- package/chunks/Datepicker.js +261 -286
- package/chunks/Datepicker.js.map +1 -1
- package/chunks/Day.js +48 -1170
- package/chunks/Day.js.map +1 -1
- package/chunks/addYears.js +18 -0
- package/chunks/addYears.js.map +1 -0
- package/chunks/endOfMonth.js +17 -0
- package/chunks/endOfMonth.js.map +1 -0
- package/chunks/format.js +1113 -0
- package/chunks/format.js.map +1 -0
- package/chunks/isAfter.js +9 -0
- package/chunks/isAfter.js.map +1 -0
- package/chunks/isBefore.js +15 -0
- package/chunks/isBefore.js.map +1 -0
- package/chunks/normalizeDates.js +10 -0
- package/chunks/normalizeDates.js.map +1 -0
- package/chunks/subYears.js +9 -0
- package/chunks/subYears.js.map +1 -0
- package/examples/criteria-dates-demo.d.ts +1 -0
- package/examples/criteria-dates-demo.js +41 -0
- package/examples/criteria-dates-demo.js.map +1 -0
- package/examples/criteria-participants-demo.d.ts +1 -0
- package/examples/criteria-participants-demo.js +77 -0
- package/examples/criteria-participants-demo.js.map +1 -0
- package/examples/criteria-participants-flow1-demo.d.ts +1 -0
- package/examples/criteria-participants-flow1-demo.js +53 -0
- package/examples/criteria-participants-flow1-demo.js.map +1 -0
- package/examples/criteria-participants-flow2-demo.d.ts +1 -0
- package/examples/criteria-participants-flow2-demo.js +61 -0
- package/examples/criteria-participants-flow2-demo.js.map +1 -0
- package/examples/criteria-participants-flow3-demo.d.ts +1 -0
- package/examples/criteria-participants-flow3-demo.js +72 -0
- package/examples/criteria-participants-flow3-demo.js.map +1 -0
- package/examples/criteria-transport-demo.d.ts +1 -0
- package/examples/criteria-transport-demo.js +66 -0
- package/examples/criteria-transport-demo.js.map +1 -0
- package/examples/datepicker-demo.js +4 -4
- package/examples/datepicker-disabled-days-demo.js +4 -4
- package/examples/datepicker-duration-tooltip-demo.js +4 -4
- package/examples/datepicker-no-prices-demo.js +4 -4
- package/examples/datepicker-preselected-demo.js +4 -4
- package/examples/toggle-small-demo.d.ts +1 -0
- package/examples/toggle-small-demo.js +33 -0
- package/examples/toggle-small-demo.js.map +1 -0
- package/package.json +1 -1
- package/ui/ChatWindow.js +2 -2
- package/ui/ChatWindow.js.map +1 -1
- package/ui/Datepicker.js +0 -1
- package/ui/Toggle.d.ts +1 -0
- package/ui/Toggle.js +10 -10
- package/ui/Toggle.js.map +1 -1
- package/ui/criteria/Birthdate.d.ts +13 -0
- package/ui/criteria/Birthdate.js +2 -0
- package/ui/criteria/CriteriaDates.d.ts +32 -0
- package/ui/criteria/CriteriaDates.js +76 -0
- package/ui/criteria/CriteriaDates.js.map +1 -0
- package/ui/criteria/CriteriaParticipants.d.ts +106 -0
- package/ui/criteria/CriteriaParticipants.js +2 -0
- package/ui/criteria/CriteriaSection.d.ts +6 -0
- package/ui/criteria/CriteriaSection.js +15 -0
- package/ui/criteria/CriteriaSection.js.map +1 -0
- package/ui/criteria/CriteriaTransport.d.ts +37 -0
- package/ui/criteria/CriteriaTransport.js +116 -0
- package/ui/criteria/CriteriaTransport.js.map +1 -0
- package/ui/forms/NumberField.d.ts +1 -0
- package/ui/forms/NumberField.js +13 -13
- package/ui/forms/NumberField.js.map +1 -1
package/chunks/Datepicker.js
CHANGED
|
@@ -1,78 +1,58 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as e } from "./chunk.js";
|
|
3
3
|
import { Button as t } from "../ui/buttons/Button.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
4
|
+
import { useDevice as n } from "../ui/contexts/devices/Device.js";
|
|
5
|
+
import { a as r, i, r as a } from "./addLeadingZeros.js";
|
|
6
|
+
import { n as o, t as s } from "./addYears.js";
|
|
7
|
+
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./format.js";
|
|
8
|
+
import { t as _ } from "./normalizeDates.js";
|
|
9
|
+
import { n as v, t as y } from "./isBefore.js";
|
|
10
|
+
import { n as b, t as x } from "./endOfMonth.js";
|
|
11
|
+
import { t as S } from "./formatISO.js";
|
|
12
|
+
import { t as C } from "./isAfter.js";
|
|
13
|
+
import { i as w, r as T, t as E } from "./Day.js";
|
|
14
|
+
import D, { useCallback as O, useEffect as ee, useLayoutEffect as te, useMemo as k, useRef as ne, useState as A } from "react";
|
|
15
|
+
import { jsx as j, jsxs as re } from "react/jsx-runtime";
|
|
10
16
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js
|
|
11
|
-
function
|
|
12
|
-
let a =
|
|
13
|
-
return isNaN(t) ? n
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js
|
|
17
|
-
function te(e, t, i) {
|
|
18
|
-
let a = r(e, i?.in);
|
|
19
|
-
if (isNaN(t)) return n(i?.in || e, NaN);
|
|
20
|
-
if (!t) return a;
|
|
21
|
-
let o = a.getDate(), s = n(i?.in || e, a.getTime());
|
|
22
|
-
return s.setMonth(a.getMonth() + t + 1, 0), o >= s.getDate() ? s : (a.setFullYear(s.getFullYear(), s.getMonth(), o), a);
|
|
17
|
+
function ie(e, t, n) {
|
|
18
|
+
let a = i(e, n?.in);
|
|
19
|
+
return isNaN(t) ? r(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
|
|
23
20
|
}
|
|
24
21
|
//#endregion
|
|
25
22
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js
|
|
31
|
-
function re(e, t, n) {
|
|
32
|
-
return te(e, t * 12, n);
|
|
23
|
+
function ae(e, t, n) {
|
|
24
|
+
return ie(e, t * 7, n);
|
|
33
25
|
}
|
|
34
26
|
//#endregion
|
|
35
27
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/max.js
|
|
36
|
-
function
|
|
37
|
-
let
|
|
28
|
+
function oe(e, t) {
|
|
29
|
+
let n, a = t?.in;
|
|
38
30
|
return e.forEach((e) => {
|
|
39
|
-
!a && typeof e == "object" && (a =
|
|
40
|
-
let t =
|
|
41
|
-
(!
|
|
42
|
-
}),
|
|
31
|
+
!a && typeof e == "object" && (a = r.bind(null, e));
|
|
32
|
+
let t = i(e, a);
|
|
33
|
+
(!n || n < t || isNaN(+t)) && (n = t);
|
|
34
|
+
}), r(a, n || NaN);
|
|
43
35
|
}
|
|
44
36
|
//#endregion
|
|
45
37
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/min.js
|
|
46
|
-
function
|
|
47
|
-
let
|
|
38
|
+
function se(e, t) {
|
|
39
|
+
let n, a = t?.in;
|
|
48
40
|
return e.forEach((e) => {
|
|
49
|
-
!a && typeof e == "object" && (a =
|
|
50
|
-
let t =
|
|
51
|
-
(!
|
|
52
|
-
}),
|
|
41
|
+
!a && typeof e == "object" && (a = r.bind(null, e));
|
|
42
|
+
let t = i(e, a);
|
|
43
|
+
(!n || n > t || isNaN(+t)) && (n = t);
|
|
44
|
+
}), r(a, n || NaN);
|
|
53
45
|
}
|
|
54
46
|
//#endregion
|
|
55
47
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js
|
|
56
|
-
function
|
|
57
|
-
let [r, i] =
|
|
58
|
-
return +
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js
|
|
62
|
-
function j(e, t, n) {
|
|
63
|
-
let [r, i] = h(n?.in, e, t), a = r.getFullYear() - i.getFullYear(), o = r.getMonth() - i.getMonth();
|
|
64
|
-
return a * 12 + o;
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js
|
|
68
|
-
function se(e, t) {
|
|
69
|
-
let n = r(e, t?.in), i = n.getMonth();
|
|
70
|
-
return n.setFullYear(n.getFullYear(), i + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
48
|
+
function M(e, t, n) {
|
|
49
|
+
let [r, i] = _(n?.in, e, t);
|
|
50
|
+
return +v(r) == +v(i);
|
|
71
51
|
}
|
|
72
52
|
//#endregion
|
|
73
53
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js
|
|
74
|
-
function
|
|
75
|
-
let [n, r] =
|
|
54
|
+
function N(e, t) {
|
|
55
|
+
let [n, r] = _(e, t.start, t.end);
|
|
76
56
|
return {
|
|
77
57
|
start: n,
|
|
78
58
|
end: r
|
|
@@ -80,50 +60,50 @@ function M(e, t) {
|
|
|
80
60
|
}
|
|
81
61
|
//#endregion
|
|
82
62
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMonthOfInterval.js
|
|
83
|
-
function
|
|
84
|
-
let { start:
|
|
63
|
+
function P(e, t) {
|
|
64
|
+
let { start: n, end: i } = N(t?.in, e), a = +n > +i, o = a ? +n : +i, s = a ? i : n;
|
|
85
65
|
s.setHours(0, 0, 0, 0), s.setDate(1);
|
|
86
66
|
let c = t?.step ?? 1;
|
|
87
67
|
if (!c) return [];
|
|
88
68
|
c < 0 && (c = -c, a = !a);
|
|
89
69
|
let l = [];
|
|
90
|
-
for (; +s <= o;) l.push(n
|
|
70
|
+
for (; +s <= o;) l.push(r(n, s)), s.setMonth(s.getMonth() + c);
|
|
91
71
|
return a ? l.reverse() : l;
|
|
92
72
|
}
|
|
93
73
|
//#endregion
|
|
94
74
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js
|
|
95
|
-
function
|
|
96
|
-
let n =
|
|
75
|
+
function ce(e, t) {
|
|
76
|
+
let n = i(e, t?.in);
|
|
97
77
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
98
78
|
}
|
|
99
79
|
//#endregion
|
|
100
80
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js
|
|
101
|
-
function
|
|
102
|
-
let n =
|
|
103
|
-
return n.setFullYear(
|
|
81
|
+
function le(e, t) {
|
|
82
|
+
let n = i(e, t?.in), r = n.getFullYear();
|
|
83
|
+
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
104
84
|
}
|
|
105
85
|
//#endregion
|
|
106
86
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachYearOfInterval.js
|
|
107
|
-
function
|
|
108
|
-
let { start:
|
|
87
|
+
function ue(e, t) {
|
|
88
|
+
let { start: n, end: i } = N(t?.in, e), a = +n > +i, o = a ? +n : +i, s = a ? i : n;
|
|
109
89
|
s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
|
|
110
90
|
let c = t?.step ?? 1;
|
|
111
91
|
if (!c) return [];
|
|
112
92
|
c < 0 && (c = -c, a = !a);
|
|
113
93
|
let l = [];
|
|
114
|
-
for (; +s <= o;) l.push(n
|
|
94
|
+
for (; +s <= o;) l.push(r(n, s)), s.setFullYear(s.getFullYear() + c);
|
|
115
95
|
return a ? l.reverse() : l;
|
|
116
96
|
}
|
|
117
97
|
//#endregion
|
|
118
98
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js
|
|
119
|
-
function
|
|
120
|
-
let n =
|
|
99
|
+
function F(e, t) {
|
|
100
|
+
let n = d(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = i(e, t?.in), o = a.getDay(), s = (o < r ? -7 : 0) + 6 - (o - r);
|
|
121
101
|
return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
|
|
122
102
|
}
|
|
123
103
|
//#endregion
|
|
124
104
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeek.js
|
|
125
105
|
function de(e, t) {
|
|
126
|
-
return
|
|
106
|
+
return F(e, {
|
|
127
107
|
...t,
|
|
128
108
|
weekStartsOn: 1
|
|
129
109
|
});
|
|
@@ -131,49 +111,44 @@ function de(e, t) {
|
|
|
131
111
|
//#endregion
|
|
132
112
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js
|
|
133
113
|
function fe(e, t) {
|
|
134
|
-
let
|
|
114
|
+
let n = i(e, t?.in), a = n.getFullYear(), o = n.getMonth(), s = r(n, 0);
|
|
135
115
|
return s.setFullYear(a, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
136
116
|
}
|
|
137
117
|
//#endregion
|
|
138
118
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js
|
|
139
119
|
function pe(e, t) {
|
|
140
|
-
return
|
|
120
|
+
return i(e, t?.in).getMonth();
|
|
141
121
|
}
|
|
142
122
|
//#endregion
|
|
143
123
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js
|
|
144
124
|
function me(e, t) {
|
|
145
|
-
return
|
|
146
|
-
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js
|
|
149
|
-
function F(e, t) {
|
|
150
|
-
return +r(e) > +r(t);
|
|
125
|
+
return i(e, t?.in).getFullYear();
|
|
151
126
|
}
|
|
152
127
|
//#endregion
|
|
153
128
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js
|
|
154
129
|
function I(e, t, n) {
|
|
155
|
-
let [r, i] =
|
|
130
|
+
let [r, i] = _(n?.in, e, t);
|
|
156
131
|
return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
|
|
157
132
|
}
|
|
158
133
|
//#endregion
|
|
159
134
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js
|
|
160
135
|
function he(e, t, n) {
|
|
161
|
-
let [r, i] =
|
|
136
|
+
let [r, i] = _(n?.in, e, t);
|
|
162
137
|
return r.getFullYear() === i.getFullYear();
|
|
163
138
|
}
|
|
164
139
|
//#endregion
|
|
165
140
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js
|
|
166
|
-
function ge(e, t,
|
|
167
|
-
let a =
|
|
141
|
+
function ge(e, t, n) {
|
|
142
|
+
let a = i(e, n?.in), o = a.getFullYear(), s = a.getDate(), c = r(n?.in || e, 0);
|
|
168
143
|
c.setFullYear(o, t, 15), c.setHours(0, 0, 0, 0);
|
|
169
144
|
let l = fe(c);
|
|
170
145
|
return a.setMonth(t, Math.min(s, l)), a;
|
|
171
146
|
}
|
|
172
147
|
//#endregion
|
|
173
148
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js
|
|
174
|
-
function _e(e, t,
|
|
175
|
-
let a =
|
|
176
|
-
return isNaN(+a) ? n
|
|
149
|
+
function _e(e, t, n) {
|
|
150
|
+
let a = i(e, n?.in);
|
|
151
|
+
return isNaN(+a) ? r(n?.in || e, NaN) : (a.setFullYear(t), a);
|
|
177
152
|
}
|
|
178
153
|
//#endregion
|
|
179
154
|
//#region ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzName/index.js
|
|
@@ -336,12 +311,12 @@ function ke(e, t) {
|
|
|
336
311
|
//#endregion
|
|
337
312
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/locale/en-US.js
|
|
338
313
|
var Ae = {
|
|
339
|
-
...
|
|
314
|
+
...u,
|
|
340
315
|
labels: {
|
|
341
316
|
labelDayButton: (e, t, n, r) => {
|
|
342
317
|
let i;
|
|
343
|
-
i = r && typeof r.format == "function" ? r.format.bind(r) : (e, t) =>
|
|
344
|
-
locale:
|
|
318
|
+
i = r && typeof r.format == "function" ? r.format.bind(r) : (e, t) => g(e, t, {
|
|
319
|
+
locale: u,
|
|
345
320
|
...n
|
|
346
321
|
});
|
|
347
322
|
let a = i(e, "PPPP");
|
|
@@ -354,15 +329,15 @@ var Ae = {
|
|
|
354
329
|
labelYearDropdown: "Choose the Year",
|
|
355
330
|
labelGrid: (e, t, n) => {
|
|
356
331
|
let r;
|
|
357
|
-
return r = n && typeof n.format == "function" ? n.format.bind(n) : (e, n) =>
|
|
358
|
-
locale:
|
|
332
|
+
return r = n && typeof n.format == "function" ? n.format.bind(n) : (e, n) => g(e, n, {
|
|
333
|
+
locale: u,
|
|
359
334
|
...t
|
|
360
335
|
}), r(e, "LLLL yyyy");
|
|
361
336
|
},
|
|
362
337
|
labelGridcell: (e, t, n, r) => {
|
|
363
338
|
let i;
|
|
364
|
-
i = r && typeof r.format == "function" ? r.format.bind(r) : (e, t) =>
|
|
365
|
-
locale:
|
|
339
|
+
i = r && typeof r.format == "function" ? r.format.bind(r) : (e, t) => g(e, t, {
|
|
340
|
+
locale: u,
|
|
366
341
|
...n
|
|
367
342
|
});
|
|
368
343
|
let a = i(e, "PPPP");
|
|
@@ -372,25 +347,25 @@ var Ae = {
|
|
|
372
347
|
labelWeekNumberHeader: "Week Number",
|
|
373
348
|
labelWeekday: (e, t, n) => {
|
|
374
349
|
let r;
|
|
375
|
-
return r = n && typeof n.format == "function" ? n.format.bind(n) : (e, n) =>
|
|
376
|
-
locale:
|
|
350
|
+
return r = n && typeof n.format == "function" ? n.format.bind(n) : (e, n) => g(e, n, {
|
|
351
|
+
locale: u,
|
|
377
352
|
...t
|
|
378
353
|
}), r(e, "cccc");
|
|
379
354
|
}
|
|
380
355
|
}
|
|
381
356
|
}, H = class e {
|
|
382
357
|
constructor(e, t) {
|
|
383
|
-
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? V.tz(this.options.timeZone) : new this.Date(), this.newDate = (e, t, n) => this.overrides?.newDate ? this.overrides.newDate(e, t, n) : this.options.timeZone ? new V(e, t, n, this.options.timeZone) : new Date(e, t, n), this.addDays = (e, t) => this.overrides?.addDays ? this.overrides.addDays(e, t) :
|
|
384
|
-
let t = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) :
|
|
358
|
+
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? V.tz(this.options.timeZone) : new this.Date(), this.newDate = (e, t, n) => this.overrides?.newDate ? this.overrides.newDate(e, t, n) : this.options.timeZone ? new V(e, t, n, this.options.timeZone) : new Date(e, t, n), this.addDays = (e, t) => this.overrides?.addDays ? this.overrides.addDays(e, t) : ie(e, t), this.addMonths = (e, t) => this.overrides?.addMonths ? this.overrides.addMonths(e, t) : o(e, t), this.addWeeks = (e, t) => this.overrides?.addWeeks ? this.overrides.addWeeks(e, t) : ae(e, t), this.addYears = (e, t) => this.overrides?.addYears ? this.overrides.addYears(e, t) : s(e, t), this.differenceInCalendarDays = (e, t) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(e, t) : p(e, t), this.differenceInCalendarMonths = (e, t) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(e, t) : b(e, t), this.eachMonthOfInterval = (e) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(e) : P(e), this.eachYearOfInterval = (e) => {
|
|
359
|
+
let t = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) : ue(e), n = new Set(t.map((e) => this.getYear(e)));
|
|
385
360
|
if (n.size === t.length) return t;
|
|
386
361
|
let r = [];
|
|
387
362
|
return n.forEach((e) => {
|
|
388
363
|
r.push(new Date(e, 0, 1));
|
|
389
364
|
}), r;
|
|
390
|
-
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) : ke(e, this), this.endOfISOWeek = (e) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(e) : de(e), this.endOfMonth = (e) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(e) :
|
|
391
|
-
let r = this.overrides?.format ? this.overrides.format(e, t, this.options) :
|
|
365
|
+
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) : ke(e, this), this.endOfISOWeek = (e) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(e) : de(e), this.endOfMonth = (e) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(e) : x(e), this.endOfWeek = (e, t) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(e, t) : F(e, this.options), this.endOfYear = (e) => this.overrides?.endOfYear ? this.overrides.endOfYear(e) : le(e), this.format = (e, t, n) => {
|
|
366
|
+
let r = this.overrides?.format ? this.overrides.format(e, t, this.options) : g(e, t, this.options);
|
|
392
367
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(r) : r;
|
|
393
|
-
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) :
|
|
368
|
+
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) : m(e), this.getMonth = (e, t) => this.overrides?.getMonth ? this.overrides.getMonth(e, this.options) : pe(e, this.options), this.getYear = (e, t) => this.overrides?.getYear ? this.overrides.getYear(e, this.options) : me(e, this.options), this.getWeek = (e, t) => this.overrides?.getWeek ? this.overrides.getWeek(e, this.options) : f(e, this.options), this.isAfter = (e, t) => this.overrides?.isAfter ? this.overrides.isAfter(e, t) : C(e, t), this.isBefore = (e, t) => this.overrides?.isBefore ? this.overrides.isBefore(e, t) : y(e, t), this.isDate = (e) => this.overrides?.isDate ? this.overrides.isDate(e) : a(e), this.isSameDay = (e, t) => this.overrides?.isSameDay ? this.overrides.isSameDay(e, t) : M(e, t), this.isSameMonth = (e, t) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(e, t) : I(e, t), this.isSameYear = (e, t) => this.overrides?.isSameYear ? this.overrides.isSameYear(e, t) : he(e, t), this.max = (e) => this.overrides?.max ? this.overrides.max(e) : oe(e), this.min = (e) => this.overrides?.min ? this.overrides.min(e) : se(e), this.setMonth = (e, t) => this.overrides?.setMonth ? this.overrides.setMonth(e, t) : ge(e, t), this.setYear = (e, t) => this.overrides?.setYear ? this.overrides.setYear(e, t) : _e(e, t), this.startOfBroadcastWeek = (e, t) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(e, this) : Oe(e, this), this.startOfDay = (e) => this.overrides?.startOfDay ? this.overrides.startOfDay(e) : v(e), this.startOfISOWeek = (e) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(e) : h(e), this.startOfMonth = (e) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(e) : ce(e), this.startOfWeek = (e, t) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(e, this.options) : l(e, this.options), this.startOfYear = (e) => this.overrides?.startOfYear ? this.overrides.startOfYear(e) : c(e), this.options = {
|
|
394
369
|
locale: Ae,
|
|
395
370
|
...e
|
|
396
371
|
}, this.overrides = t;
|
|
@@ -463,37 +438,37 @@ var U = new H(), je = class {
|
|
|
463
438
|
//#endregion
|
|
464
439
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Button.js
|
|
465
440
|
function Pe(e) {
|
|
466
|
-
return
|
|
441
|
+
return D.createElement("button", { ...e });
|
|
467
442
|
}
|
|
468
443
|
//#endregion
|
|
469
444
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
|
|
470
445
|
function Fe(e) {
|
|
471
|
-
return
|
|
446
|
+
return D.createElement("span", { ...e });
|
|
472
447
|
}
|
|
473
448
|
//#endregion
|
|
474
449
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Chevron.js
|
|
475
450
|
function Ie(e) {
|
|
476
451
|
let { size: t = 24, orientation: n = "left", className: r } = e;
|
|
477
|
-
return
|
|
452
|
+
return D.createElement("svg", {
|
|
478
453
|
className: r,
|
|
479
454
|
width: t,
|
|
480
455
|
height: t,
|
|
481
456
|
viewBox: "0 0 24 24"
|
|
482
|
-
}, n === "up" &&
|
|
457
|
+
}, n === "up" && D.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }), n === "down" && D.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }), n === "left" && D.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }), n === "right" && D.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" }));
|
|
483
458
|
}
|
|
484
459
|
//#endregion
|
|
485
460
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Day.js
|
|
486
461
|
function Le(e) {
|
|
487
462
|
let { day: t, modifiers: n, ...r } = e;
|
|
488
|
-
return
|
|
463
|
+
return D.createElement("td", { ...r });
|
|
489
464
|
}
|
|
490
465
|
//#endregion
|
|
491
466
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/DayButton.js
|
|
492
467
|
function Re(e) {
|
|
493
|
-
let { day: t, modifiers: n, ...r } = e, i =
|
|
494
|
-
return
|
|
468
|
+
let { day: t, modifiers: n, ...r } = e, i = D.useRef(null);
|
|
469
|
+
return D.useEffect(() => {
|
|
495
470
|
n.focused && i.current?.focus();
|
|
496
|
-
}, [n.focused]),
|
|
471
|
+
}, [n.focused]), D.createElement("button", {
|
|
497
472
|
ref: i,
|
|
498
473
|
...r
|
|
499
474
|
});
|
|
@@ -520,20 +495,20 @@ var q;
|
|
|
520
495
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
521
496
|
function ze(e) {
|
|
522
497
|
let { options: t, className: n, components: r, classNames: i, ...a } = e, o = [i[W.Dropdown], n].join(" "), s = t?.find(({ value: e }) => e === a.value);
|
|
523
|
-
return
|
|
498
|
+
return D.createElement("span", {
|
|
524
499
|
"data-disabled": a.disabled,
|
|
525
500
|
className: i[W.DropdownRoot]
|
|
526
|
-
},
|
|
501
|
+
}, D.createElement(r.Select, {
|
|
527
502
|
className: o,
|
|
528
503
|
...a
|
|
529
|
-
}, t?.map(({ value: e, label: t, disabled: n }) =>
|
|
504
|
+
}, t?.map(({ value: e, label: t, disabled: n }) => D.createElement(r.Option, {
|
|
530
505
|
key: e,
|
|
531
506
|
value: e,
|
|
532
507
|
disabled: n
|
|
533
|
-
}, t))),
|
|
508
|
+
}, t))), D.createElement("span", {
|
|
534
509
|
className: i[W.CaptionLabel],
|
|
535
510
|
"aria-hidden": !0
|
|
536
|
-
}, s?.label,
|
|
511
|
+
}, s?.label, D.createElement(r.Chevron, {
|
|
537
512
|
orientation: "down",
|
|
538
513
|
size: 18,
|
|
539
514
|
className: i[W.Chevron]
|
|
@@ -542,68 +517,68 @@ function ze(e) {
|
|
|
542
517
|
//#endregion
|
|
543
518
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/DropdownNav.js
|
|
544
519
|
function Be(e) {
|
|
545
|
-
return
|
|
520
|
+
return D.createElement("div", { ...e });
|
|
546
521
|
}
|
|
547
522
|
//#endregion
|
|
548
523
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Footer.js
|
|
549
524
|
function Ve(e) {
|
|
550
|
-
return
|
|
525
|
+
return D.createElement("div", { ...e });
|
|
551
526
|
}
|
|
552
527
|
//#endregion
|
|
553
528
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Month.js
|
|
554
529
|
function He(e) {
|
|
555
530
|
let { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
556
|
-
return
|
|
531
|
+
return D.createElement("div", { ...r }, e.children);
|
|
557
532
|
}
|
|
558
533
|
//#endregion
|
|
559
534
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/MonthCaption.js
|
|
560
535
|
function Ue(e) {
|
|
561
536
|
let { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
562
|
-
return
|
|
537
|
+
return D.createElement("div", { ...r });
|
|
563
538
|
}
|
|
564
539
|
//#endregion
|
|
565
540
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/MonthGrid.js
|
|
566
541
|
function We(e) {
|
|
567
|
-
return
|
|
542
|
+
return D.createElement("table", { ...e });
|
|
568
543
|
}
|
|
569
544
|
//#endregion
|
|
570
545
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Months.js
|
|
571
546
|
function Ge(e) {
|
|
572
|
-
return
|
|
547
|
+
return D.createElement("div", { ...e });
|
|
573
548
|
}
|
|
574
549
|
//#endregion
|
|
575
550
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
576
551
|
function Ke(e) {
|
|
577
|
-
let { components: t } =
|
|
578
|
-
return
|
|
552
|
+
let { components: t } = w();
|
|
553
|
+
return D.createElement(t.Dropdown, { ...e });
|
|
579
554
|
}
|
|
580
555
|
//#endregion
|
|
581
556
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Nav.js
|
|
582
557
|
function qe(e) {
|
|
583
|
-
let { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: i, ...a } = e, { components: o, classNames: s, labels: { labelPrevious: c, labelNext: l } } =
|
|
558
|
+
let { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: i, ...a } = e, { components: o, classNames: s, labels: { labelPrevious: c, labelNext: l } } = w(), u = O((e) => {
|
|
584
559
|
i && n?.(e);
|
|
585
|
-
}, [i, n]),
|
|
560
|
+
}, [i, n]), d = O((e) => {
|
|
586
561
|
r && t?.(e);
|
|
587
562
|
}, [r, t]);
|
|
588
|
-
return
|
|
563
|
+
return D.createElement("nav", { ...a }, D.createElement(o.PreviousMonthButton, {
|
|
589
564
|
type: "button",
|
|
590
565
|
className: s[W.PreviousMonthButton],
|
|
591
566
|
tabIndex: r ? void 0 : -1,
|
|
592
567
|
"aria-disabled": r ? void 0 : !0,
|
|
593
568
|
"aria-label": c(r),
|
|
594
|
-
onClick:
|
|
595
|
-
},
|
|
569
|
+
onClick: d
|
|
570
|
+
}, D.createElement(o.Chevron, {
|
|
596
571
|
disabled: r ? void 0 : !0,
|
|
597
572
|
className: s[W.Chevron],
|
|
598
573
|
orientation: "left"
|
|
599
|
-
})),
|
|
574
|
+
})), D.createElement(o.NextMonthButton, {
|
|
600
575
|
type: "button",
|
|
601
576
|
className: s[W.NextMonthButton],
|
|
602
577
|
tabIndex: i ? void 0 : -1,
|
|
603
578
|
"aria-disabled": i ? void 0 : !0,
|
|
604
579
|
"aria-label": l(i),
|
|
605
580
|
onClick: u
|
|
606
|
-
},
|
|
581
|
+
}, D.createElement(o.Chevron, {
|
|
607
582
|
disabled: i ? void 0 : !0,
|
|
608
583
|
orientation: "right",
|
|
609
584
|
className: s[W.Chevron]
|
|
@@ -612,25 +587,25 @@ function qe(e) {
|
|
|
612
587
|
//#endregion
|
|
613
588
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
|
|
614
589
|
function Je(e) {
|
|
615
|
-
let { components: t } =
|
|
616
|
-
return
|
|
590
|
+
let { components: t } = w();
|
|
591
|
+
return D.createElement(t.Button, { ...e });
|
|
617
592
|
}
|
|
618
593
|
//#endregion
|
|
619
594
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Option.js
|
|
620
595
|
function Ye(e) {
|
|
621
|
-
return
|
|
596
|
+
return D.createElement("option", { ...e });
|
|
622
597
|
}
|
|
623
598
|
//#endregion
|
|
624
599
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
|
|
625
600
|
function Xe(e) {
|
|
626
|
-
let { components: t } =
|
|
627
|
-
return
|
|
601
|
+
let { components: t } = w();
|
|
602
|
+
return D.createElement(t.Button, { ...e });
|
|
628
603
|
}
|
|
629
604
|
//#endregion
|
|
630
605
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Root.js
|
|
631
606
|
function Ze(e) {
|
|
632
607
|
let { rootRef: t, ...n } = e;
|
|
633
|
-
return
|
|
608
|
+
return D.createElement("div", {
|
|
634
609
|
...n,
|
|
635
610
|
ref: t
|
|
636
611
|
});
|
|
@@ -638,45 +613,45 @@ function Ze(e) {
|
|
|
638
613
|
//#endregion
|
|
639
614
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Select.js
|
|
640
615
|
function Qe(e) {
|
|
641
|
-
return
|
|
616
|
+
return D.createElement("select", { ...e });
|
|
642
617
|
}
|
|
643
618
|
//#endregion
|
|
644
619
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Week.js
|
|
645
620
|
function $e(e) {
|
|
646
621
|
let { week: t, ...n } = e;
|
|
647
|
-
return
|
|
622
|
+
return D.createElement("tr", { ...n });
|
|
648
623
|
}
|
|
649
624
|
//#endregion
|
|
650
625
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Weekday.js
|
|
651
626
|
function et(e) {
|
|
652
|
-
return
|
|
627
|
+
return D.createElement("th", { ...e });
|
|
653
628
|
}
|
|
654
629
|
//#endregion
|
|
655
630
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Weekdays.js
|
|
656
631
|
function tt(e) {
|
|
657
|
-
return
|
|
632
|
+
return D.createElement("thead", { "aria-hidden": !0 }, D.createElement("tr", { ...e }));
|
|
658
633
|
}
|
|
659
634
|
//#endregion
|
|
660
635
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/WeekNumber.js
|
|
661
636
|
function nt(e) {
|
|
662
637
|
let { week: t, ...n } = e;
|
|
663
|
-
return
|
|
638
|
+
return D.createElement("th", { ...n });
|
|
664
639
|
}
|
|
665
640
|
//#endregion
|
|
666
641
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
|
|
667
642
|
function rt(e) {
|
|
668
|
-
return
|
|
643
|
+
return D.createElement("th", { ...e });
|
|
669
644
|
}
|
|
670
645
|
//#endregion
|
|
671
646
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/Weeks.js
|
|
672
647
|
function it(e) {
|
|
673
|
-
return
|
|
648
|
+
return D.createElement("tbody", { ...e });
|
|
674
649
|
}
|
|
675
650
|
//#endregion
|
|
676
651
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
|
|
677
652
|
function at(e) {
|
|
678
|
-
let { components: t } =
|
|
679
|
-
return
|
|
653
|
+
let { components: t } = w();
|
|
654
|
+
return D.createElement(t.Dropdown, { ...e });
|
|
680
655
|
}
|
|
681
656
|
//#endregion
|
|
682
657
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/components/custom-components.js
|
|
@@ -1032,7 +1007,7 @@ function Yt(e, t = {}) {
|
|
|
1032
1007
|
let { weekStartsOn: n, locale: r } = t, i = n ?? r?.options?.weekStartsOn ?? 0, a = (t) => {
|
|
1033
1008
|
let n = typeof t == "number" || typeof t == "string" ? new Date(t) : t;
|
|
1034
1009
|
return new V(n.getFullYear(), n.getMonth(), n.getDate(), 12, 0, 0, e);
|
|
1035
|
-
},
|
|
1010
|
+
}, o = (e) => {
|
|
1036
1011
|
let t = a(e);
|
|
1037
1012
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate(), 0, 0, 0, 0);
|
|
1038
1013
|
};
|
|
@@ -1098,21 +1073,21 @@ function Yt(e, t = {}) {
|
|
|
1098
1073
|
for (; o.getFullYear() <= r.getFullYear();) i.push(new V(o, e)), o.setFullYear(o.getFullYear() + 1, 0, 1);
|
|
1099
1074
|
return i;
|
|
1100
1075
|
},
|
|
1101
|
-
getWeek: (e, t) =>
|
|
1076
|
+
getWeek: (e, t) => f(o(e), {
|
|
1102
1077
|
weekStartsOn: t?.weekStartsOn ?? i,
|
|
1103
1078
|
firstWeekContainsDate: t?.firstWeekContainsDate ?? r?.options?.firstWeekContainsDate ?? 1
|
|
1104
1079
|
}),
|
|
1105
|
-
getISOWeek: (e) => o(
|
|
1106
|
-
differenceInCalendarDays: (e, t) =>
|
|
1107
|
-
differenceInCalendarMonths: (e, t) =>
|
|
1080
|
+
getISOWeek: (e) => m(o(e)),
|
|
1081
|
+
differenceInCalendarDays: (e, t) => p(o(e), o(t)),
|
|
1082
|
+
differenceInCalendarMonths: (e, t) => b(o(e), o(t))
|
|
1108
1083
|
};
|
|
1109
1084
|
}
|
|
1110
1085
|
//#endregion
|
|
1111
1086
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/useAnimation.js
|
|
1112
1087
|
var Xt = (e) => e instanceof HTMLElement ? e : null, Zt = (e) => [...e.querySelectorAll("[data-animated-month]") ?? []], Qt = (e) => Xt(e.querySelector("[data-animated-month]")), $t = (e) => Xt(e.querySelector("[data-animated-caption]")), en = (e) => Xt(e.querySelector("[data-animated-weeks]")), tn = (e) => Xt(e.querySelector("[data-animated-nav]")), nn = (e) => Xt(e.querySelector("[data-animated-weekdays]"));
|
|
1113
1088
|
function rn(e, t, { classNames: n, months: r, focused: i, dateLib: a }) {
|
|
1114
|
-
let o =
|
|
1115
|
-
|
|
1089
|
+
let o = ne(null), s = ne(r), c = ne(!1);
|
|
1090
|
+
te(() => {
|
|
1116
1091
|
let l = s.current;
|
|
1117
1092
|
if (s.current = r, !t || !e.current || !(e.current instanceof HTMLElement) || r.length === 0 || l.length === 0 || r.length !== l.length) return;
|
|
1118
1093
|
let u = a.isSameMonth(r[0].date, l[0].date), d = a.isAfter(r[0].date, l[0].date), f = d ? n[q.caption_after_enter] : n[q.caption_before_enter], p = d ? n[q.weeks_after_enter] : n[q.weeks_before_enter], m = o.current, h = e.current.cloneNode(!0);
|
|
@@ -1247,17 +1222,17 @@ function pn(e) {
|
|
|
1247
1222
|
//#endregion
|
|
1248
1223
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
|
|
1249
1224
|
function mn(e, t) {
|
|
1250
|
-
let [n, r] =
|
|
1225
|
+
let [n, r] = A(e);
|
|
1251
1226
|
return [t === void 0 ? n : t, r];
|
|
1252
1227
|
}
|
|
1253
1228
|
//#endregion
|
|
1254
1229
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/useCalendar.js
|
|
1255
1230
|
function hn(e, t) {
|
|
1256
1231
|
let [n, r] = un(e, t), { startOfMonth: i, endOfMonth: a } = t, o = cn(e, n, r, t), [s, c] = mn(o, e.month ? o : void 0);
|
|
1257
|
-
|
|
1232
|
+
ee(() => {
|
|
1258
1233
|
c(cn(e, n, r, t));
|
|
1259
1234
|
}, [e.timeZone]);
|
|
1260
|
-
let { months: l, weeks: u, days: d, previousMonth: f, nextMonth: p } =
|
|
1235
|
+
let { months: l, weeks: u, days: d, previousMonth: f, nextMonth: p } = k(() => {
|
|
1261
1236
|
let i = sn(s, r, { numberOfMonths: e.numberOfMonths }, t), o = ln(i, an(i, e.endMonth ? a(e.endMonth) : void 0, {
|
|
1262
1237
|
ISOWeek: e.ISOWeek,
|
|
1263
1238
|
fixedWeeks: e.fixedWeeks,
|
|
@@ -1347,7 +1322,7 @@ function yn(e, t, n, r, i, a, o, s = 0) {
|
|
|
1347
1322
|
//#endregion
|
|
1348
1323
|
//#region ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.4/node_modules/react-day-picker/dist/esm/useFocus.js
|
|
1349
1324
|
function bn(e, t, n, r, i) {
|
|
1350
|
-
let { autoFocus: a } = e, [o, s] =
|
|
1325
|
+
let { autoFocus: a } = e, [o, s] = A(), c = _n(t.days, n, r || (() => !1), o), [l, u] = A(a ? c : void 0);
|
|
1351
1326
|
return {
|
|
1352
1327
|
isFocusTarget: (e) => !!c?.isEqualTo(e),
|
|
1353
1328
|
setFocused: u,
|
|
@@ -1551,7 +1526,7 @@ function jn(e) {
|
|
|
1551
1526
|
e[r] = An(t.modifiers?.[r], n);
|
|
1552
1527
|
}), t.modifiers = e;
|
|
1553
1528
|
}
|
|
1554
|
-
let { components: r, formatters: i, labels: a, dateLib: o, locale: s, classNames: c } =
|
|
1529
|
+
let { components: r, formatters: i, labels: a, dateLib: o, locale: s, classNames: c } = k(() => {
|
|
1555
1530
|
let e = {
|
|
1556
1531
|
...Ae,
|
|
1557
1532
|
...t.locale
|
|
@@ -1601,34 +1576,34 @@ function jn(e) {
|
|
|
1601
1576
|
...t,
|
|
1602
1577
|
today: o.today()
|
|
1603
1578
|
});
|
|
1604
|
-
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: h, onDayKeyDown:
|
|
1579
|
+
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: h, onDayKeyDown: g, onDayMouseEnter: _, onDayMouseLeave: v, onNextClick: y, onPrevClick: b, showWeekNumber: x, styles: S } = t, { formatCaption: C, formatDay: w, formatMonthDropdown: E, formatWeekNumber: ee, formatWeekNumberHeader: te, formatWeekdayName: A, formatYearDropdown: j } = i, re = hn(t, o), { days: ie, months: ae, navStart: oe, navEnd: se, previousMonth: M, nextMonth: N, goToMonth: P } = re, ce = pt(ie, t, oe, se, o), { isSelected: le, select: ue, selected: F } = On(t, o) ?? {}, { blur: de, focused: fe, isFocusTarget: pe, moveFocus: me, setFocused: I } = bn(t, re, ce, le ?? (() => !1), o), { labelDayButton: he, labelGridcell: ge, labelGrid: _e, labelMonthDropdown: ve, labelNav: ye, labelPrevious: L, labelNext: R, labelWeekday: be, labelWeekNumber: xe, labelWeekNumberHeader: z, labelYearDropdown: Se } = a, Ce = k(() => qt(o, t.ISOWeek, t.broadcastCalendar, t.today), [
|
|
1605
1580
|
o,
|
|
1606
1581
|
t.ISOWeek,
|
|
1607
1582
|
t.broadcastCalendar,
|
|
1608
1583
|
t.today
|
|
1609
|
-
]), we = u !== void 0 || m !== void 0, B =
|
|
1610
|
-
M && (P(M),
|
|
1584
|
+
]), we = u !== void 0 || m !== void 0, B = O(() => {
|
|
1585
|
+
M && (P(M), b?.(M));
|
|
1611
1586
|
}, [
|
|
1612
1587
|
M,
|
|
1613
1588
|
P,
|
|
1614
|
-
|
|
1615
|
-
]), V =
|
|
1616
|
-
N && (P(N),
|
|
1589
|
+
b
|
|
1590
|
+
]), V = O(() => {
|
|
1591
|
+
N && (P(N), y?.(N));
|
|
1617
1592
|
}, [
|
|
1618
1593
|
P,
|
|
1619
1594
|
N,
|
|
1620
|
-
|
|
1621
|
-
]), Te =
|
|
1595
|
+
y
|
|
1596
|
+
]), Te = O((e, t) => (n) => {
|
|
1622
1597
|
n.preventDefault(), n.stopPropagation(), I(e), !t.disabled && (ue?.(e.date, t, n), m?.(e.date, t, n));
|
|
1623
1598
|
}, [
|
|
1624
1599
|
ue,
|
|
1625
1600
|
m,
|
|
1626
1601
|
I
|
|
1627
|
-
]), Ee =
|
|
1602
|
+
]), Ee = O((e, t) => (n) => {
|
|
1628
1603
|
I(e), h?.(e.date, t, n);
|
|
1629
|
-
}, [h, I]), De =
|
|
1630
|
-
|
|
1631
|
-
}, [
|
|
1604
|
+
}, [h, I]), De = O((e, t) => (n) => {
|
|
1605
|
+
de(), p?.(e.date, t, n);
|
|
1606
|
+
}, [de, p]), Oe = O((e, n) => (r) => {
|
|
1632
1607
|
let i = {
|
|
1633
1608
|
ArrowLeft: [r.shiftKey ? "month" : "day", t.dir === "rtl" ? "after" : "before"],
|
|
1634
1609
|
ArrowRight: [r.shiftKey ? "month" : "day", t.dir === "rtl" ? "before" : "after"],
|
|
@@ -1642,58 +1617,58 @@ function jn(e) {
|
|
|
1642
1617
|
if (i[r.key]) {
|
|
1643
1618
|
r.preventDefault(), r.stopPropagation();
|
|
1644
1619
|
let [e, t] = i[r.key];
|
|
1645
|
-
|
|
1620
|
+
me(e, t);
|
|
1646
1621
|
}
|
|
1647
|
-
|
|
1622
|
+
g?.(e.date, n, r);
|
|
1648
1623
|
}, [
|
|
1649
|
-
|
|
1650
|
-
|
|
1624
|
+
me,
|
|
1625
|
+
g,
|
|
1651
1626
|
t.dir
|
|
1652
|
-
]), ke =
|
|
1627
|
+
]), ke = O((e, t) => (n) => {
|
|
1628
|
+
_?.(e.date, t, n);
|
|
1629
|
+
}, [_]), U = O((e, t) => (n) => {
|
|
1653
1630
|
v?.(e.date, t, n);
|
|
1654
|
-
}, [v]),
|
|
1655
|
-
y?.(e.date, t, n);
|
|
1656
|
-
}, [y]), je = C((e) => (t) => {
|
|
1631
|
+
}, [v]), je = O((e) => (t) => {
|
|
1657
1632
|
let n = Number(t.target.value);
|
|
1658
1633
|
P(o.setMonth(o.startOfMonth(e), n));
|
|
1659
|
-
}, [o, P]), Me =
|
|
1634
|
+
}, [o, P]), Me = O((e) => (t) => {
|
|
1660
1635
|
let n = Number(t.target.value);
|
|
1661
1636
|
P(o.setYear(o.startOfMonth(e), n));
|
|
1662
|
-
}, [o, P]), { className: Ne, style: Pe } =
|
|
1637
|
+
}, [o, P]), { className: Ne, style: Pe } = k(() => ({
|
|
1663
1638
|
className: [c[W.Root], t.className].filter(Boolean).join(" "),
|
|
1664
1639
|
style: {
|
|
1665
|
-
...
|
|
1640
|
+
...S?.[W.Root],
|
|
1666
1641
|
...t.style
|
|
1667
1642
|
}
|
|
1668
1643
|
}), [
|
|
1669
1644
|
c,
|
|
1670
1645
|
t.className,
|
|
1671
1646
|
t.style,
|
|
1672
|
-
|
|
1673
|
-
]), Fe = gt(t), Ie =
|
|
1647
|
+
S
|
|
1648
|
+
]), Fe = gt(t), Ie = ne(null);
|
|
1674
1649
|
rn(Ie, !!t.animate, {
|
|
1675
1650
|
classNames: c,
|
|
1676
|
-
months:
|
|
1677
|
-
focused:
|
|
1651
|
+
months: ae,
|
|
1652
|
+
focused: fe,
|
|
1678
1653
|
dateLib: o
|
|
1679
1654
|
});
|
|
1680
1655
|
let Le = {
|
|
1681
1656
|
dayPickerProps: t,
|
|
1682
|
-
selected:
|
|
1657
|
+
selected: F,
|
|
1683
1658
|
select: ue,
|
|
1684
1659
|
isSelected: le,
|
|
1685
|
-
months:
|
|
1660
|
+
months: ae,
|
|
1686
1661
|
nextMonth: N,
|
|
1687
1662
|
previousMonth: M,
|
|
1688
1663
|
goToMonth: P,
|
|
1689
1664
|
getModifiers: ce,
|
|
1690
1665
|
components: r,
|
|
1691
1666
|
classNames: c,
|
|
1692
|
-
styles:
|
|
1667
|
+
styles: S,
|
|
1693
1668
|
labels: a,
|
|
1694
1669
|
formatters: i
|
|
1695
1670
|
};
|
|
1696
|
-
return
|
|
1671
|
+
return D.createElement(T.Provider, { value: Le }, D.createElement(r.Root, {
|
|
1697
1672
|
rootRef: t.animate ? Ie : void 0,
|
|
1698
1673
|
className: Ne,
|
|
1699
1674
|
style: Pe,
|
|
@@ -1706,26 +1681,26 @@ function jn(e) {
|
|
|
1706
1681
|
"aria-label": t["aria-label"],
|
|
1707
1682
|
"aria-labelledby": t["aria-labelledby"],
|
|
1708
1683
|
...Fe
|
|
1709
|
-
},
|
|
1684
|
+
}, D.createElement(r.Months, {
|
|
1710
1685
|
className: c[W.Months],
|
|
1711
|
-
style:
|
|
1712
|
-
}, !t.hideNavigation && !d &&
|
|
1686
|
+
style: S?.[W.Months]
|
|
1687
|
+
}, !t.hideNavigation && !d && D.createElement(r.Nav, {
|
|
1713
1688
|
"data-animated-nav": t.animate ? "true" : void 0,
|
|
1714
1689
|
className: c[W.Nav],
|
|
1715
|
-
style:
|
|
1690
|
+
style: S?.[W.Nav],
|
|
1716
1691
|
"aria-label": ye(),
|
|
1717
1692
|
onPreviousClick: B,
|
|
1718
1693
|
onNextClick: V,
|
|
1719
1694
|
previousMonth: M,
|
|
1720
1695
|
nextMonth: N
|
|
1721
|
-
}),
|
|
1696
|
+
}), ae.map((e, n) => D.createElement(r.Month, {
|
|
1722
1697
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
1723
1698
|
className: c[W.Month],
|
|
1724
|
-
style:
|
|
1699
|
+
style: S?.[W.Month],
|
|
1725
1700
|
key: n,
|
|
1726
1701
|
displayIndex: n,
|
|
1727
1702
|
calendarMonth: e
|
|
1728
|
-
}, d === "around" && !t.hideNavigation && n === 0 &&
|
|
1703
|
+
}, d === "around" && !t.hideNavigation && n === 0 && D.createElement(r.PreviousMonthButton, {
|
|
1729
1704
|
type: "button",
|
|
1730
1705
|
className: c[W.PreviousMonthButton],
|
|
1731
1706
|
tabIndex: M ? void 0 : -1,
|
|
@@ -1733,21 +1708,21 @@ function jn(e) {
|
|
|
1733
1708
|
"aria-label": L(M),
|
|
1734
1709
|
onClick: B,
|
|
1735
1710
|
"data-animated-button": t.animate ? "true" : void 0
|
|
1736
|
-
},
|
|
1711
|
+
}, D.createElement(r.Chevron, {
|
|
1737
1712
|
disabled: M ? void 0 : !0,
|
|
1738
1713
|
className: c[W.Chevron],
|
|
1739
1714
|
orientation: t.dir === "rtl" ? "right" : "left"
|
|
1740
|
-
})),
|
|
1715
|
+
})), D.createElement(r.MonthCaption, {
|
|
1741
1716
|
"data-animated-caption": t.animate ? "true" : void 0,
|
|
1742
1717
|
className: c[W.MonthCaption],
|
|
1743
|
-
style:
|
|
1718
|
+
style: S?.[W.MonthCaption],
|
|
1744
1719
|
calendarMonth: e,
|
|
1745
1720
|
displayIndex: n
|
|
1746
|
-
}, l?.startsWith("dropdown") ?
|
|
1721
|
+
}, l?.startsWith("dropdown") ? D.createElement(r.DropdownNav, {
|
|
1747
1722
|
className: c[W.Dropdowns],
|
|
1748
|
-
style:
|
|
1723
|
+
style: S?.[W.Dropdowns]
|
|
1749
1724
|
}, (() => {
|
|
1750
|
-
let n = l === "dropdown" || l === "dropdown-months" ?
|
|
1725
|
+
let n = l === "dropdown" || l === "dropdown-months" ? D.createElement(r.MonthsDropdown, {
|
|
1751
1726
|
key: "month",
|
|
1752
1727
|
className: c[W.MonthsDropdown],
|
|
1753
1728
|
"aria-label": ve(),
|
|
@@ -1755,10 +1730,10 @@ function jn(e) {
|
|
|
1755
1730
|
components: r,
|
|
1756
1731
|
disabled: !!t.disableNavigation,
|
|
1757
1732
|
onChange: je(e.date),
|
|
1758
|
-
options: Gt(e.date,
|
|
1759
|
-
style:
|
|
1733
|
+
options: Gt(e.date, oe, se, i, o),
|
|
1734
|
+
style: S?.[W.Dropdown],
|
|
1760
1735
|
value: o.getMonth(e.date)
|
|
1761
|
-
}) :
|
|
1736
|
+
}) : D.createElement("span", { key: "month" }, E(e.date, o)), a = l === "dropdown" || l === "dropdown-years" ? D.createElement(r.YearsDropdown, {
|
|
1762
1737
|
key: "year",
|
|
1763
1738
|
className: c[W.YearsDropdown],
|
|
1764
1739
|
"aria-label": Se(o.options),
|
|
@@ -1766,12 +1741,12 @@ function jn(e) {
|
|
|
1766
1741
|
components: r,
|
|
1767
1742
|
disabled: !!t.disableNavigation,
|
|
1768
1743
|
onChange: Me(e.date),
|
|
1769
|
-
options: Jt(
|
|
1770
|
-
style:
|
|
1744
|
+
options: Jt(oe, se, i, o, !!t.reverseYears),
|
|
1745
|
+
style: S?.[W.Dropdown],
|
|
1771
1746
|
value: o.getYear(e.date)
|
|
1772
|
-
}) :
|
|
1747
|
+
}) : D.createElement("span", { key: "year" }, j(e.date, o));
|
|
1773
1748
|
return o.getMonthYearOrder() === "year-first" ? [a, n] : [n, a];
|
|
1774
|
-
})(),
|
|
1749
|
+
})(), D.createElement("span", {
|
|
1775
1750
|
role: "status",
|
|
1776
1751
|
"aria-live": "polite",
|
|
1777
1752
|
style: {
|
|
@@ -1786,11 +1761,11 @@ function jn(e) {
|
|
|
1786
1761
|
whiteSpace: "nowrap",
|
|
1787
1762
|
wordWrap: "normal"
|
|
1788
1763
|
}
|
|
1789
|
-
},
|
|
1764
|
+
}, C(e.date, o.options, o))) : D.createElement(r.CaptionLabel, {
|
|
1790
1765
|
className: c[W.CaptionLabel],
|
|
1791
1766
|
role: "status",
|
|
1792
1767
|
"aria-live": "polite"
|
|
1793
|
-
},
|
|
1768
|
+
}, C(e.date, o.options, o))), d === "around" && !t.hideNavigation && n === f - 1 && D.createElement(r.NextMonthButton, {
|
|
1794
1769
|
type: "button",
|
|
1795
1770
|
className: c[W.NextMonthButton],
|
|
1796
1771
|
tabIndex: N ? void 0 : -1,
|
|
@@ -1798,64 +1773,64 @@ function jn(e) {
|
|
|
1798
1773
|
"aria-label": R(N),
|
|
1799
1774
|
onClick: V,
|
|
1800
1775
|
"data-animated-button": t.animate ? "true" : void 0
|
|
1801
|
-
},
|
|
1776
|
+
}, D.createElement(r.Chevron, {
|
|
1802
1777
|
disabled: N ? void 0 : !0,
|
|
1803
1778
|
className: c[W.Chevron],
|
|
1804
1779
|
orientation: t.dir === "rtl" ? "left" : "right"
|
|
1805
|
-
})), n === f - 1 && d === "after" && !t.hideNavigation &&
|
|
1780
|
+
})), n === f - 1 && d === "after" && !t.hideNavigation && D.createElement(r.Nav, {
|
|
1806
1781
|
"data-animated-nav": t.animate ? "true" : void 0,
|
|
1807
1782
|
className: c[W.Nav],
|
|
1808
|
-
style:
|
|
1783
|
+
style: S?.[W.Nav],
|
|
1809
1784
|
"aria-label": ye(),
|
|
1810
1785
|
onPreviousClick: B,
|
|
1811
1786
|
onNextClick: V,
|
|
1812
1787
|
previousMonth: M,
|
|
1813
1788
|
nextMonth: N
|
|
1814
|
-
}),
|
|
1789
|
+
}), D.createElement(r.MonthGrid, {
|
|
1815
1790
|
role: "grid",
|
|
1816
1791
|
"aria-multiselectable": u === "multiple" || u === "range",
|
|
1817
1792
|
"aria-label": _e(e.date, o.options, o) || void 0,
|
|
1818
1793
|
className: c[W.MonthGrid],
|
|
1819
|
-
style:
|
|
1820
|
-
}, !t.hideWeekdays &&
|
|
1794
|
+
style: S?.[W.MonthGrid]
|
|
1795
|
+
}, !t.hideWeekdays && D.createElement(r.Weekdays, {
|
|
1821
1796
|
"data-animated-weekdays": t.animate ? "true" : void 0,
|
|
1822
1797
|
className: c[W.Weekdays],
|
|
1823
|
-
style:
|
|
1824
|
-
},
|
|
1798
|
+
style: S?.[W.Weekdays]
|
|
1799
|
+
}, x && D.createElement(r.WeekNumberHeader, {
|
|
1825
1800
|
"aria-label": z(o.options),
|
|
1826
1801
|
className: c[W.WeekNumberHeader],
|
|
1827
|
-
style:
|
|
1802
|
+
style: S?.[W.WeekNumberHeader],
|
|
1828
1803
|
scope: "col"
|
|
1829
|
-
}, te()), Ce.map((e) =>
|
|
1804
|
+
}, te()), Ce.map((e) => D.createElement(r.Weekday, {
|
|
1830
1805
|
"aria-label": be(e, o.options, o),
|
|
1831
1806
|
className: c[W.Weekday],
|
|
1832
1807
|
key: String(e),
|
|
1833
|
-
style:
|
|
1808
|
+
style: S?.[W.Weekday],
|
|
1834
1809
|
scope: "col"
|
|
1835
|
-
},
|
|
1810
|
+
}, A(e, o.options, o)))), D.createElement(r.Weeks, {
|
|
1836
1811
|
"data-animated-weeks": t.animate ? "true" : void 0,
|
|
1837
1812
|
className: c[W.Weeks],
|
|
1838
|
-
style:
|
|
1839
|
-
}, e.weeks.map((e) =>
|
|
1813
|
+
style: S?.[W.Weeks]
|
|
1814
|
+
}, e.weeks.map((e) => D.createElement(r.Week, {
|
|
1840
1815
|
className: c[W.Week],
|
|
1841
1816
|
key: e.weekNumber,
|
|
1842
|
-
style:
|
|
1817
|
+
style: S?.[W.Week],
|
|
1843
1818
|
week: e
|
|
1844
|
-
},
|
|
1819
|
+
}, x && D.createElement(r.WeekNumber, {
|
|
1845
1820
|
week: e,
|
|
1846
|
-
style:
|
|
1821
|
+
style: S?.[W.WeekNumber],
|
|
1847
1822
|
"aria-label": xe(e.weekNumber, { locale: s }),
|
|
1848
1823
|
className: c[W.WeekNumber],
|
|
1849
1824
|
scope: "row",
|
|
1850
1825
|
role: "rowheader"
|
|
1851
|
-
},
|
|
1826
|
+
}, ee(e.weekNumber, o)), e.days.map((e) => {
|
|
1852
1827
|
let { date: n } = e, i = ce(e);
|
|
1853
|
-
if (i[G.focused] = !i.hidden && !!
|
|
1854
|
-
let { from: e, to: t } =
|
|
1855
|
-
i[K.range_start] = !!(e && t && o.isSameDay(n, e)), i[K.range_end] = !!(e && t && o.isSameDay(n, t)), i[K.range_middle] = J(
|
|
1828
|
+
if (i[G.focused] = !i.hidden && !!fe?.isEqualTo(e), i[K.selected] = le?.(n) || i.selected, ct(F)) {
|
|
1829
|
+
let { from: e, to: t } = F;
|
|
1830
|
+
i[K.range_start] = !!(e && t && o.isSameDay(n, e)), i[K.range_end] = !!(e && t && o.isSameDay(n, t)), i[K.range_middle] = J(F, n, !0, o);
|
|
1856
1831
|
}
|
|
1857
|
-
let a = Kt(i,
|
|
1858
|
-
return
|
|
1832
|
+
let a = Kt(i, S, t.modifiersStyles), s = mt(i, c, t.modifiersClassNames), l = !we && !i.hidden ? ge(n, i, o.options, o) : void 0;
|
|
1833
|
+
return D.createElement(r.Day, {
|
|
1859
1834
|
key: `${e.isoDate}_${e.displayMonthId}`,
|
|
1860
1835
|
day: e,
|
|
1861
1836
|
modifiers: i,
|
|
@@ -1872,15 +1847,15 @@ function jn(e) {
|
|
|
1872
1847
|
"data-outside": e.outside || void 0,
|
|
1873
1848
|
"data-focused": i.focused || void 0,
|
|
1874
1849
|
"data-today": i.today || void 0
|
|
1875
|
-
}, !i.hidden && we ?
|
|
1850
|
+
}, !i.hidden && we ? D.createElement(r.DayButton, {
|
|
1876
1851
|
className: c[W.DayButton],
|
|
1877
|
-
style:
|
|
1852
|
+
style: S?.[W.DayButton],
|
|
1878
1853
|
type: "button",
|
|
1879
1854
|
day: e,
|
|
1880
1855
|
modifiers: i,
|
|
1881
1856
|
disabled: !i.focused && i.disabled || void 0,
|
|
1882
1857
|
"aria-disabled": i.focused && i.disabled || void 0,
|
|
1883
|
-
tabIndex:
|
|
1858
|
+
tabIndex: pe(e) ? 0 : -1,
|
|
1884
1859
|
"aria-label": he(n, i, o.options, o),
|
|
1885
1860
|
onClick: Te(e, i),
|
|
1886
1861
|
onBlur: De(e, i),
|
|
@@ -1888,77 +1863,77 @@ function jn(e) {
|
|
|
1888
1863
|
onKeyDown: Oe(e, i),
|
|
1889
1864
|
onMouseEnter: ke(e, i),
|
|
1890
1865
|
onMouseLeave: U(e, i)
|
|
1891
|
-
},
|
|
1892
|
-
})))))))), t.footer &&
|
|
1866
|
+
}, w(n, o.options, o)) : !i.hidden && w(e.date, o.options, o));
|
|
1867
|
+
})))))))), t.footer && D.createElement(r.Footer, {
|
|
1893
1868
|
className: c[W.Footer],
|
|
1894
|
-
style:
|
|
1869
|
+
style: S?.[W.Footer],
|
|
1895
1870
|
role: "status",
|
|
1896
1871
|
"aria-live": "polite"
|
|
1897
1872
|
}, t.footer)));
|
|
1898
1873
|
}
|
|
1899
1874
|
//#endregion
|
|
1900
1875
|
//#region lib/ui/Datepicker.tsx
|
|
1901
|
-
var Mn = (e) => `month-heading-${
|
|
1876
|
+
var Mn = (e) => `month-heading-${g(e, "yyyy-MM")}`, Nn = ({ "aria-label": e, children: t, ...n }) => /* @__PURE__ */ j("table", {
|
|
1902
1877
|
...n,
|
|
1903
1878
|
"aria-labelledby": e || void 0,
|
|
1904
1879
|
children: t
|
|
1905
|
-
}), Pn = ({ calendarMonth: e, displayIndex: n, labels: r, minMonth: i, maxMonth:
|
|
1906
|
-
let { date: s } = e, { months: c, goToMonth: l, nextMonth: u, previousMonth:
|
|
1880
|
+
}), Pn = ({ calendarMonth: e, displayIndex: n, labels: r, minMonth: i, maxMonth: a }) => {
|
|
1881
|
+
let { date: s } = e, { months: c, goToMonth: l, nextMonth: u, previousMonth: d, dayPickerProps: f } = w(), p = c.length, m = f.locale, h = n === 0, _ = n === p - 1, v = p > 1 && (h || !_), b = p > 1 && (_ || !h), x = !d || i && y(d, i) && !I(d, i), S = !u || a && C(u, a) && !I(u, a), T = O((e) => {
|
|
1907
1882
|
requestAnimationFrame(() => {
|
|
1908
1883
|
document.getElementById(Mn(e))?.focus();
|
|
1909
1884
|
});
|
|
1910
|
-
}, []),
|
|
1911
|
-
|
|
1885
|
+
}, []), E = O(() => {
|
|
1886
|
+
d && (l(d), T(d));
|
|
1912
1887
|
}, [
|
|
1913
|
-
|
|
1888
|
+
d,
|
|
1914
1889
|
l,
|
|
1915
|
-
|
|
1916
|
-
]), D =
|
|
1917
|
-
u && (l(u),
|
|
1890
|
+
T
|
|
1891
|
+
]), D = O(() => {
|
|
1892
|
+
u && (l(u), T(u));
|
|
1918
1893
|
}, [
|
|
1919
1894
|
u,
|
|
1920
1895
|
l,
|
|
1921
|
-
|
|
1922
|
-
]),
|
|
1923
|
-
let e =
|
|
1896
|
+
T
|
|
1897
|
+
]), ee = k(() => {
|
|
1898
|
+
let e = h && p > 1 ? o(s, -1) : d, t = e ? g(e, "MMMM yyy") : "", n = s ? g(s, "MMMM yyy") : "";
|
|
1924
1899
|
return r.seePreviousMonth.replace("{previousMonth}", t).replace("{currentMonth}", n);
|
|
1925
1900
|
}, [
|
|
1926
1901
|
s,
|
|
1927
|
-
_,
|
|
1928
|
-
r.seePreviousMonth,
|
|
1929
1902
|
h,
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1903
|
+
r.seePreviousMonth,
|
|
1904
|
+
p,
|
|
1905
|
+
d
|
|
1906
|
+
]), te = k(() => {
|
|
1907
|
+
let e = s ? g(s, "MMMM yyy") : "", t = _ && p > 1 ? o(s, 1) : u, n = t ? g(t, "MMMM yyy") : "";
|
|
1933
1908
|
return r.seeNextMonth.replace("{currentMonth}", e).replace("{nextMonth}", n);
|
|
1934
1909
|
}, [
|
|
1935
1910
|
s,
|
|
1936
1911
|
r,
|
|
1937
1912
|
u,
|
|
1938
|
-
|
|
1939
|
-
|
|
1913
|
+
_,
|
|
1914
|
+
p
|
|
1940
1915
|
]);
|
|
1941
|
-
return /* @__PURE__ */
|
|
1916
|
+
return /* @__PURE__ */ re("div", {
|
|
1942
1917
|
className: "text-b2 relative isolate flex h-48 items-center justify-center px-56 font-semibold capitalize",
|
|
1943
1918
|
children: [
|
|
1944
|
-
!b && /* @__PURE__ */
|
|
1945
|
-
"aria-label":
|
|
1919
|
+
!b && /* @__PURE__ */ j(t, {
|
|
1920
|
+
"aria-label": ee,
|
|
1946
1921
|
className: "absolute start-0 hidden outline-none focus-visible:ring-4 focus-visible:ring-black focus-visible:ring-offset-2 md:inline-block",
|
|
1947
1922
|
color: "black",
|
|
1948
1923
|
icon: "ArrowDefaultLeft",
|
|
1949
1924
|
disabled: !!x,
|
|
1950
|
-
onClick:
|
|
1925
|
+
onClick: E,
|
|
1951
1926
|
variant: "circle"
|
|
1952
1927
|
}),
|
|
1953
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ j("p", {
|
|
1954
1929
|
role: "heading",
|
|
1955
1930
|
"aria-level": 3,
|
|
1956
1931
|
tabIndex: -1,
|
|
1957
1932
|
id: Mn(s),
|
|
1958
|
-
children:
|
|
1933
|
+
children: g(s, "MMM yyy", { locale: m })
|
|
1959
1934
|
}),
|
|
1960
|
-
!
|
|
1961
|
-
"aria-label":
|
|
1935
|
+
!v && /* @__PURE__ */ j(t, {
|
|
1936
|
+
"aria-label": te,
|
|
1962
1937
|
className: "absolute end-0 hidden outline-none focus-visible:ring-4 focus-visible:ring-black focus-visible:ring-offset-2 md:inline-block",
|
|
1963
1938
|
color: "black",
|
|
1964
1939
|
icon: "ArrowDefaultRight",
|
|
@@ -1968,24 +1943,24 @@ var Mn = (e) => `month-heading-${m(e, "yyyy-MM")}`, Nn = ({ "aria-label": e, chi
|
|
|
1968
1943
|
})
|
|
1969
1944
|
]
|
|
1970
1945
|
});
|
|
1971
|
-
}, Fn = (e, t) =>
|
|
1972
|
-
let f =
|
|
1946
|
+
}, Fn = (e, t) => g(e, "cccccc", t), In = ({ dates: e = [], defaultMonth: t, disabledDays: r, formatDurationsLabel: i, fromMonth: a, labels: o, locale: s, maxNumberOfMonths: c = 12, onSelect: l, selected: u, statusLabels: d }) => {
|
|
1947
|
+
let f = n("medium"), [p, m] = A(), h = k(() => {
|
|
1973
1948
|
let e = {};
|
|
1974
1949
|
if (!p || !f) return e;
|
|
1975
1950
|
let t = (e) => {
|
|
1976
1951
|
let t = u?.from ?? u?.to;
|
|
1977
|
-
return t ?
|
|
1952
|
+
return t ? C(e, t) && y(e, p) : !1;
|
|
1978
1953
|
};
|
|
1979
|
-
return (u?.from && !u.to || u?.to && !u.from) && (e.hover_range_middle = (e) => t(e)), u?.to && !u?.from && (e.hover_range_end = (e) => !t(e) &&
|
|
1954
|
+
return (u?.from && !u.to || u?.to && !u.from) && (e.hover_range_middle = (e) => t(e)), u?.to && !u?.from && (e.hover_range_end = (e) => !t(e) && C(e, u.to)), u?.from && !u?.to && (e.hover_range_end = (e) => !t(e) && C(e, u.from)), e;
|
|
1980
1955
|
}, [
|
|
1981
1956
|
p,
|
|
1982
1957
|
f,
|
|
1983
1958
|
u?.from,
|
|
1984
1959
|
u?.to
|
|
1985
|
-
]), g =
|
|
1960
|
+
]), g = k(() => a ?? /* @__PURE__ */ new Date(), [a]), _ = k(() => {
|
|
1986
1961
|
let e = new Date(g);
|
|
1987
1962
|
return e.setMonth(e.getMonth() + c), e;
|
|
1988
|
-
}, [g, c]),
|
|
1963
|
+
}, [g, c]), v = O((e) => /* @__PURE__ */ j(Pn, {
|
|
1989
1964
|
...e,
|
|
1990
1965
|
labels: o,
|
|
1991
1966
|
minMonth: g,
|
|
@@ -1994,27 +1969,27 @@ var Mn = (e) => `month-heading-${m(e, "yyyy-MM")}`, Nn = ({ "aria-label": e, chi
|
|
|
1994
1969
|
o,
|
|
1995
1970
|
g,
|
|
1996
1971
|
_
|
|
1997
|
-
]),
|
|
1972
|
+
]), b = k(() => ({
|
|
1998
1973
|
DayButton: ({ "aria-label": t, ...n }) => {
|
|
1999
|
-
let
|
|
2000
|
-
return /* @__PURE__ */
|
|
1974
|
+
let r = S(n.day.date, { representation: "date" }), a = e.find(({ id: e }) => e === r), o = a?.status && a.status !== "default" ? d?.[a.status] : void 0;
|
|
1975
|
+
return /* @__PURE__ */ j(E, {
|
|
2001
1976
|
"data-name": "Datepicker-Day",
|
|
2002
|
-
formatDurationsLabel:
|
|
1977
|
+
formatDurationsLabel: i,
|
|
2003
1978
|
label: o,
|
|
2004
1979
|
...n,
|
|
2005
1980
|
...a
|
|
2006
1981
|
});
|
|
2007
1982
|
},
|
|
2008
|
-
MonthCaption:
|
|
1983
|
+
MonthCaption: v,
|
|
2009
1984
|
MonthGrid: Nn
|
|
2010
1985
|
}), [
|
|
2011
1986
|
e,
|
|
2012
|
-
|
|
2013
|
-
|
|
1987
|
+
i,
|
|
1988
|
+
v,
|
|
2014
1989
|
d
|
|
2015
|
-
]),
|
|
1990
|
+
]), x = O((e) => {
|
|
2016
1991
|
!f || p?.getTime() === e.getTime() || m(e);
|
|
2017
|
-
}, [f, p]),
|
|
1992
|
+
}, [f, p]), w = O(() => m(void 0), []), T = O((e, t, n, r) => {
|
|
2018
1993
|
if (l) {
|
|
2019
1994
|
if (e?.from && e?.to && e.from.getTime() === e.to.getTime() && !u?.from && !u?.to) {
|
|
2020
1995
|
l({
|
|
@@ -2029,32 +2004,32 @@ var Mn = (e) => `month-heading-${m(e, "yyyy-MM")}`, Nn = ({ "aria-label": e, chi
|
|
|
2029
2004
|
l,
|
|
2030
2005
|
u?.from,
|
|
2031
2006
|
u?.to
|
|
2032
|
-
]),
|
|
2007
|
+
]), D = k(() => {
|
|
2033
2008
|
if (f) return t ?? g;
|
|
2034
2009
|
}, [
|
|
2035
2010
|
f,
|
|
2036
2011
|
t,
|
|
2037
2012
|
g
|
|
2038
|
-
]),
|
|
2039
|
-
return /* @__PURE__ */
|
|
2040
|
-
components:
|
|
2041
|
-
defaultMonth:
|
|
2042
|
-
disabled:
|
|
2013
|
+
]), ee = k(() => ({ labelGrid: (e) => Mn(e) }), []);
|
|
2014
|
+
return /* @__PURE__ */ j(jn, {
|
|
2015
|
+
components: b,
|
|
2016
|
+
defaultMonth: D,
|
|
2017
|
+
disabled: r,
|
|
2043
2018
|
formatters: { formatWeekdayName: Fn },
|
|
2044
|
-
labels:
|
|
2019
|
+
labels: ee,
|
|
2045
2020
|
locale: s,
|
|
2046
2021
|
mode: "range",
|
|
2047
2022
|
hideNavigation: !0,
|
|
2048
2023
|
numberOfMonths: f ? 2 : c,
|
|
2049
|
-
onSelect:
|
|
2024
|
+
onSelect: T,
|
|
2050
2025
|
selected: u,
|
|
2051
2026
|
modifiers: h,
|
|
2052
2027
|
modifiersClassNames: {
|
|
2053
2028
|
hover_range_middle: "rdp-range_middle",
|
|
2054
2029
|
hover_range_end: "rdp-range_end"
|
|
2055
2030
|
},
|
|
2056
|
-
onDayMouseEnter:
|
|
2057
|
-
onDayMouseLeave:
|
|
2031
|
+
onDayMouseEnter: x,
|
|
2032
|
+
onDayMouseLeave: w,
|
|
2058
2033
|
classNames: { day: "group rdp-day" }
|
|
2059
2034
|
});
|
|
2060
2035
|
};
|