@senitix/ui 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/avatar-C0aVNCG9.cjs +2 -0
  2. package/dist/avatar-C0aVNCG9.cjs.map +1 -0
  3. package/dist/avatar-CN6wcrqY.js +288 -0
  4. package/dist/avatar-CN6wcrqY.js.map +1 -0
  5. package/dist/calendar-BFWc4IB7.js +1182 -0
  6. package/dist/calendar-BFWc4IB7.js.map +1 -0
  7. package/dist/calendar-BUm7YrNf.cjs +2 -0
  8. package/dist/calendar-BUm7YrNf.cjs.map +1 -0
  9. package/dist/calendar-ChJkFXXr.js +11 -0
  10. package/dist/calendar-ChJkFXXr.js.map +1 -0
  11. package/dist/calendar-SwL5isYC.cjs +2 -0
  12. package/dist/calendar-SwL5isYC.cjs.map +1 -0
  13. package/dist/card-K4fxyYwE.js +51 -0
  14. package/dist/card-K4fxyYwE.js.map +1 -0
  15. package/dist/card-tMkUxpmW.cjs +2 -0
  16. package/dist/card-tMkUxpmW.cjs.map +1 -0
  17. package/dist/checkbox-CpOq5hkT.js +289 -0
  18. package/dist/checkbox-CpOq5hkT.js.map +1 -0
  19. package/dist/checkbox-D7-LQyCl.cjs +2 -0
  20. package/dist/checkbox-D7-LQyCl.cjs.map +1 -0
  21. package/dist/chevron-down-DHdXqOqK.cjs +2 -0
  22. package/dist/chevron-down-DHdXqOqK.cjs.map +1 -0
  23. package/dist/chevron-down-DJ1_YIFu.js +8 -0
  24. package/dist/chevron-down-DJ1_YIFu.js.map +1 -0
  25. package/dist/chevron-right-B3bovvh0.js +8 -0
  26. package/dist/chevron-right-B3bovvh0.js.map +1 -0
  27. package/dist/chevron-right-Dvyd11q0.cjs +2 -0
  28. package/dist/chevron-right-Dvyd11q0.cjs.map +1 -0
  29. package/dist/chevron-up-B9fuiZhc.cjs +2 -0
  30. package/dist/chevron-up-B9fuiZhc.cjs.map +1 -0
  31. package/dist/chevron-up-CGtXOr51.js +6 -0
  32. package/dist/chevron-up-CGtXOr51.js.map +1 -0
  33. package/dist/components/charts/index.cjs.js +2 -0
  34. package/dist/components/charts/index.cjs.js.map +1 -0
  35. package/dist/components/charts/index.es.js +12 -0
  36. package/dist/components/charts/index.es.js.map +1 -0
  37. package/dist/components/data-display/index.cjs.js +2 -0
  38. package/dist/components/data-display/index.cjs.js.map +1 -0
  39. package/dist/components/data-display/index.es.js +25 -0
  40. package/dist/components/data-display/index.es.js.map +1 -0
  41. package/dist/components/dnd/index.cjs.js +2 -0
  42. package/dist/components/dnd/index.cjs.js.map +1 -0
  43. package/dist/components/dnd/index.es.js +9 -0
  44. package/dist/components/dnd/index.es.js.map +1 -0
  45. package/dist/components/feedback/index.cjs.js +2 -0
  46. package/dist/components/feedback/index.cjs.js.map +1 -0
  47. package/dist/components/feedback/index.es.js +16 -0
  48. package/dist/components/feedback/index.es.js.map +1 -0
  49. package/dist/components/forms/index.cjs.js +2 -0
  50. package/dist/components/forms/index.cjs.js.map +1 -0
  51. package/dist/components/forms/index.es.js +27 -0
  52. package/dist/components/forms/index.es.js.map +1 -0
  53. package/dist/components/layouts/index.cjs.js +2 -0
  54. package/dist/components/layouts/index.cjs.js.map +1 -0
  55. package/dist/components/layouts/index.es.js +25 -0
  56. package/dist/components/layouts/index.es.js.map +1 -0
  57. package/dist/components/navigation/index.cjs.js +2 -0
  58. package/dist/components/navigation/index.cjs.js.map +1 -0
  59. package/dist/components/navigation/index.es.js +42 -0
  60. package/dist/components/navigation/index.es.js.map +1 -0
  61. package/dist/components/ui/index.cjs.js +2 -0
  62. package/dist/components/ui/index.cjs.js.map +1 -0
  63. package/dist/components/ui/index.es.js +165 -0
  64. package/dist/components/ui/index.es.js.map +1 -0
  65. package/dist/createLucideIcon-BbeNo6vq.js +56 -0
  66. package/dist/createLucideIcon-BbeNo6vq.js.map +1 -0
  67. package/dist/createLucideIcon-i5GEhNMV.cjs +2 -0
  68. package/dist/createLucideIcon-i5GEhNMV.cjs.map +1 -0
  69. package/dist/ellipsis-BW2gWki8.cjs +2 -0
  70. package/dist/ellipsis-BW2gWki8.cjs.map +1 -0
  71. package/dist/ellipsis-CiKEaUNP.js +10 -0
  72. package/dist/ellipsis-CiKEaUNP.js.map +1 -0
  73. package/dist/file-V_hhCUhr.cjs +2 -0
  74. package/dist/file-V_hhCUhr.cjs.map +1 -0
  75. package/dist/file-wzTXnWqz.js +9 -0
  76. package/dist/file-wzTXnWqz.js.map +1 -0
  77. package/dist/filter-tags-DjUaNXHR.cjs +5 -0
  78. package/dist/filter-tags-DjUaNXHR.cjs.map +1 -0
  79. package/dist/filter-tags-i_I8qV1N.js +2658 -0
  80. package/dist/filter-tags-i_I8qV1N.js.map +1 -0
  81. package/dist/full-calendar-7ac2FFU6.js +3518 -0
  82. package/dist/full-calendar-7ac2FFU6.js.map +1 -0
  83. package/dist/full-calendar-Cpeh5xMP.cjs +8 -0
  84. package/dist/full-calendar-Cpeh5xMP.cjs.map +1 -0
  85. package/dist/global-search-UNXjoFlI.cjs +2 -0
  86. package/dist/global-search-UNXjoFlI.cjs.map +1 -0
  87. package/dist/global-search-h1rVbP2q.js +1188 -0
  88. package/dist/global-search-h1rVbP2q.js.map +1 -0
  89. package/dist/hooks/index.cjs.js +2 -0
  90. package/dist/hooks/index.cjs.js.map +1 -0
  91. package/dist/hooks/index.es.js +13 -0
  92. package/dist/hooks/index.es.js.map +1 -0
  93. package/dist/index-Co9o9StL.js +33 -0
  94. package/dist/index-Co9o9StL.js.map +1 -0
  95. package/dist/index-CwJPJKOE.js +2278 -0
  96. package/dist/index-CwJPJKOE.js.map +1 -0
  97. package/dist/index-CzVK9Zyb.cjs +6 -0
  98. package/dist/index-CzVK9Zyb.cjs.map +1 -0
  99. package/dist/index-l828OqQN.js +288 -0
  100. package/dist/index-l828OqQN.js.map +1 -0
  101. package/dist/index-lGzB9daF.cjs +2 -0
  102. package/dist/index-lGzB9daF.cjs.map +1 -0
  103. package/dist/index-lT9bLt9X.cjs +2 -0
  104. package/dist/index-lT9bLt9X.cjs.map +1 -0
  105. package/dist/index.cjs.js +2 -0
  106. package/dist/index.cjs.js.map +1 -0
  107. package/dist/index.es.js +332 -0
  108. package/dist/index.es.js.map +1 -0
  109. package/dist/input-CZrckPLk.cjs +42 -0
  110. package/dist/input-CZrckPLk.cjs.map +1 -0
  111. package/dist/input-D4AoiWxo.js +3629 -0
  112. package/dist/input-D4AoiWxo.js.map +1 -0
  113. package/dist/locale-provider-DHMwuneF.cjs +2 -0
  114. package/dist/locale-provider-DHMwuneF.cjs.map +1 -0
  115. package/dist/locale-provider-DanG6RRG.js +1012 -0
  116. package/dist/locale-provider-DanG6RRG.js.map +1 -0
  117. package/dist/locale-selector-Ppe0KTi-.cjs +2 -0
  118. package/dist/locale-selector-Ppe0KTi-.cjs.map +1 -0
  119. package/dist/locale-selector-xn2GpdP9.js +1745 -0
  120. package/dist/locale-selector-xn2GpdP9.js.map +1 -0
  121. package/dist/minus-BXBFZSZs.cjs +2 -0
  122. package/dist/minus-BXBFZSZs.cjs.map +1 -0
  123. package/dist/minus-DvlYtl96.js +6 -0
  124. package/dist/minus-DvlYtl96.js.map +1 -0
  125. package/dist/multi-container-C2UpSw5f.js +731 -0
  126. package/dist/multi-container-C2UpSw5f.js.map +1 -0
  127. package/dist/multi-container-DMKL8c9B.cjs +2 -0
  128. package/dist/multi-container-DMKL8c9B.cjs.map +1 -0
  129. package/dist/pipeline-By5_8AFg.cjs +2 -0
  130. package/dist/pipeline-By5_8AFg.cjs.map +1 -0
  131. package/dist/pipeline-D-QNSU0U.js +1036 -0
  132. package/dist/pipeline-D-QNSU0U.js.map +1 -0
  133. package/dist/plus-8wKRkVu-.cjs +2 -0
  134. package/dist/plus-8wKRkVu-.cjs.map +1 -0
  135. package/dist/plus-CJD68KQD.js +9 -0
  136. package/dist/plus-CJD68KQD.js.map +1 -0
  137. package/dist/popover-4V4sGe1U.js +765 -0
  138. package/dist/popover-4V4sGe1U.js.map +1 -0
  139. package/dist/popover-ivh-plLc.cjs +2 -0
  140. package/dist/popover-ivh-plLc.cjs.map +1 -0
  141. package/dist/progress-CFnuLqnS.cjs +7 -0
  142. package/dist/progress-CFnuLqnS.cjs.map +1 -0
  143. package/dist/progress-D5AsrWa6.js +222 -0
  144. package/dist/progress-D5AsrWa6.js.map +1 -0
  145. package/dist/providers/index.cjs.js +2 -0
  146. package/dist/providers/index.cjs.js.map +1 -0
  147. package/dist/providers/index.es.js +9 -0
  148. package/dist/providers/index.es.js.map +1 -0
  149. package/dist/scroll-area-DQeqDp3Y.js +952 -0
  150. package/dist/scroll-area-DQeqDp3Y.js.map +1 -0
  151. package/dist/scroll-area-DYOiJMXh.cjs +2 -0
  152. package/dist/scroll-area-DYOiJMXh.cjs.map +1 -0
  153. package/dist/select-C1rNBi6c.js +974 -0
  154. package/dist/select-C1rNBi6c.js.map +1 -0
  155. package/dist/select-m-Mqwxu3.cjs +2 -0
  156. package/dist/select-m-Mqwxu3.cjs.map +1 -0
  157. package/dist/separator-DBUivkHq.cjs +2 -0
  158. package/dist/separator-DBUivkHq.cjs.map +1 -0
  159. package/dist/separator-DsfoJx-2.js +395 -0
  160. package/dist/separator-DsfoJx-2.js.map +1 -0
  161. package/dist/sheet-BVWCpq7E.js +84 -0
  162. package/dist/sheet-BVWCpq7E.js.map +1 -0
  163. package/dist/sheet-mKiFLVnK.cjs +2 -0
  164. package/dist/sheet-mKiFLVnK.cjs.map +1 -0
  165. package/dist/skeleton-BSwwYaQU.cjs +2 -0
  166. package/dist/skeleton-BSwwYaQU.cjs.map +1 -0
  167. package/dist/skeleton-BmGbfJw3.js +9 -0
  168. package/dist/skeleton-BmGbfJw3.js.map +1 -0
  169. package/dist/sortable.esm-Blhf_jh1.js +3391 -0
  170. package/dist/sortable.esm-Blhf_jh1.js.map +1 -0
  171. package/dist/sortable.esm-DcQYlXi3.cjs +6 -0
  172. package/dist/sortable.esm-DcQYlXi3.cjs.map +1 -0
  173. package/dist/sparkline-chart-Da-ehDGv.js +21082 -0
  174. package/dist/sparkline-chart-Da-ehDGv.js.map +1 -0
  175. package/dist/sparkline-chart-ca3uTzVK.cjs +68 -0
  176. package/dist/sparkline-chart-ca3uTzVK.cjs.map +1 -0
  177. package/dist/trending-up-D3Nfrhi3.cjs +2 -0
  178. package/dist/trending-up-D3Nfrhi3.cjs.map +1 -0
  179. package/dist/trending-up-DPwlYzQb.js +9 -0
  180. package/dist/trending-up-DPwlYzQb.js.map +1 -0
  181. package/dist/ui.css +1 -0
  182. package/dist/use-formatters-d97RVcmg.cjs +2 -0
  183. package/dist/use-formatters-d97RVcmg.cjs.map +1 -0
  184. package/dist/use-formatters-l1_2c8z0.js +6682 -0
  185. package/dist/use-formatters-l1_2c8z0.js.map +1 -0
  186. package/dist/use-local-storage-BjlrKzE-.js +42 -0
  187. package/dist/use-local-storage-BjlrKzE-.js.map +1 -0
  188. package/dist/use-local-storage-q-1odzIu.cjs +2 -0
  189. package/dist/use-local-storage-q-1odzIu.cjs.map +1 -0
  190. package/dist/use-mobile-C-LMK4T8.js +15 -0
  191. package/dist/use-mobile-C-LMK4T8.js.map +1 -0
  192. package/dist/use-mobile-DY7TJ5lx.cjs +2 -0
  193. package/dist/use-mobile-DY7TJ5lx.cjs.map +1 -0
  194. package/dist/use-toast-DG2qdYhl.js +97 -0
  195. package/dist/use-toast-DG2qdYhl.js.map +1 -0
  196. package/dist/use-toast-DxZJ8uUm.cjs +2 -0
  197. package/dist/use-toast-DxZJ8uUm.cjs.map +1 -0
  198. package/dist/utils/index.cjs.js +2 -0
  199. package/dist/utils/index.cjs.js.map +1 -0
  200. package/dist/utils/index.es.js +5 -0
  201. package/dist/utils/index.es.js.map +1 -0
  202. package/dist/welcome-card-CPolYl1D.cjs +2 -0
  203. package/dist/welcome-card-CPolYl1D.cjs.map +1 -0
  204. package/dist/welcome-card-CxMJZ8bv.js +963 -0
  205. package/dist/welcome-card-CxMJZ8bv.js.map +1 -0
  206. package/package.json +179 -0
@@ -0,0 +1,1182 @@
1
+ import { c as Se } from "./createLucideIcon-BbeNo6vq.js";
2
+ import { jsx as s, jsxs as S, Fragment as I } from "react/jsx-runtime";
3
+ import * as ce from "react";
4
+ import { useState as A, useEffect as q, createContext as F, useContext as T, useLayoutEffect as tn, forwardRef as an, useRef as rn } from "react";
5
+ import "react-dom";
6
+ import { o as on, e as ln, c as Ne } from "./scroll-area-DQeqDp3Y.js";
7
+ import { c as z } from "./index-CwJPJKOE.js";
8
+ import { t as N, c as Y, s as Z, a as j, g as Me, m as sn, b as dn, e as un, d as L, f as R, h as cn, i as fe, j as fn, k as vn, l as We } from "./use-formatters-l1_2c8z0.js";
9
+ import { C as mn } from "./chevron-right-B3bovvh0.js";
10
+ const hn = Se("ChevronLeft", [
11
+ ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
12
+ ]);
13
+ const pa = Se("Clock", [
14
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
15
+ ["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
16
+ ]);
17
+ var yn = [
18
+ "a",
19
+ "button",
20
+ "div",
21
+ "form",
22
+ "h2",
23
+ "h3",
24
+ "img",
25
+ "input",
26
+ "label",
27
+ "li",
28
+ "nav",
29
+ "ol",
30
+ "p",
31
+ "select",
32
+ "span",
33
+ "svg",
34
+ "ul"
35
+ ], pn = yn.reduce((e, t) => {
36
+ const n = on(`Primitive.${t}`), a = ce.forwardRef((r, o) => {
37
+ const { asChild: i, ...l } = r, d = i ? n : t;
38
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(d, { ...l, ref: o });
39
+ });
40
+ return a.displayName = `Primitive.${t}`, { ...e, [t]: a };
41
+ }, {}), bn = "Label", Le = ce.forwardRef((e, t) => /* @__PURE__ */ s(
42
+ pn.label,
43
+ {
44
+ ...e,
45
+ ref: t,
46
+ onMouseDown: (n) => {
47
+ n.target.closest("button, input, select, textarea") || (e.onMouseDown?.(n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
48
+ }
49
+ }
50
+ ));
51
+ Le.displayName = bn;
52
+ var Ie = Le;
53
+ const gn = ln(
54
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
55
+ ), _n = ce.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(Ie, { ref: n, className: z(gn(), e), ...t }));
56
+ _n.displayName = Ie.displayName;
57
+ function k(e, t) {
58
+ const n = N(e);
59
+ return isNaN(t) ? Y(e, NaN) : (t && n.setDate(n.getDate() + t), n);
60
+ }
61
+ function O(e, t) {
62
+ const n = N(e);
63
+ if (isNaN(t)) return Y(e, NaN);
64
+ if (!t)
65
+ return n;
66
+ const a = n.getDate(), r = Y(e, n.getTime());
67
+ r.setMonth(n.getMonth() + t + 1, 0);
68
+ const o = r.getDate();
69
+ return a >= o ? r : (n.setFullYear(
70
+ r.getFullYear(),
71
+ r.getMonth(),
72
+ a
73
+ ), n);
74
+ }
75
+ function de(e, t) {
76
+ const n = t * 7;
77
+ return k(e, n);
78
+ }
79
+ function Dn(e, t) {
80
+ return O(e, t * 12);
81
+ }
82
+ function wn(e) {
83
+ let t;
84
+ return e.forEach(function(n) {
85
+ const a = N(n);
86
+ (t === void 0 || t < a || isNaN(Number(a))) && (t = a);
87
+ }), t || /* @__PURE__ */ new Date(NaN);
88
+ }
89
+ function Nn(e) {
90
+ let t;
91
+ return e.forEach((n) => {
92
+ const a = N(n);
93
+ (!t || t > a || isNaN(+a)) && (t = a);
94
+ }), t || /* @__PURE__ */ new Date(NaN);
95
+ }
96
+ function C(e, t) {
97
+ const n = Z(e), a = Z(t);
98
+ return +n == +a;
99
+ }
100
+ function H(e, t) {
101
+ const n = N(e), a = N(t), r = n.getFullYear() - a.getFullYear(), o = n.getMonth() - a.getMonth();
102
+ return r * 12 + o;
103
+ }
104
+ function Mn(e, t, n) {
105
+ const a = j(e, n), r = j(t, n), o = +a - Me(a), i = +r - Me(r);
106
+ return Math.round((o - i) / sn);
107
+ }
108
+ function ve(e) {
109
+ const t = N(e), n = t.getMonth();
110
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
111
+ }
112
+ function x(e) {
113
+ const t = N(e);
114
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
115
+ }
116
+ function me(e, t) {
117
+ const n = dn(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = N(e), o = r.getDay(), i = (o < a ? -7 : 0) + 6 - (o - a);
118
+ return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
119
+ }
120
+ function Fe(e) {
121
+ return me(e, { weekStartsOn: 1 });
122
+ }
123
+ function kn(e) {
124
+ const t = N(e), n = t.getFullYear(), a = t.getMonth(), r = Y(e, 0);
125
+ return r.setFullYear(n, a + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
126
+ }
127
+ function Cn(e) {
128
+ return Math.trunc(+N(e) / 1e3);
129
+ }
130
+ function xn(e) {
131
+ const t = N(e), n = t.getMonth();
132
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(0, 0, 0, 0), t;
133
+ }
134
+ function On(e, t) {
135
+ return Mn(
136
+ xn(e),
137
+ x(e),
138
+ t
139
+ ) + 1;
140
+ }
141
+ function ue(e, t) {
142
+ const n = N(e), a = N(t);
143
+ return n.getTime() > a.getTime();
144
+ }
145
+ function Te(e, t) {
146
+ const n = N(e), a = N(t);
147
+ return +n < +a;
148
+ }
149
+ function he(e, t) {
150
+ const n = N(e), a = N(t);
151
+ return n.getFullYear() === a.getFullYear() && n.getMonth() === a.getMonth();
152
+ }
153
+ function Pn(e, t) {
154
+ const n = N(e), a = N(t);
155
+ return n.getFullYear() === a.getFullYear();
156
+ }
157
+ function ae(e, t) {
158
+ return k(e, -t);
159
+ }
160
+ function re(e, t) {
161
+ const n = N(e), a = n.getFullYear(), r = n.getDate(), o = Y(e, 0);
162
+ o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
163
+ const i = kn(o);
164
+ return n.setMonth(t, Math.min(r, i)), n;
165
+ }
166
+ function ke(e, t) {
167
+ const n = N(e);
168
+ return isNaN(+n) ? Y(e, NaN) : (n.setFullYear(t), n);
169
+ }
170
+ var y = function() {
171
+ return y = Object.assign || function(t) {
172
+ for (var n, a = 1, r = arguments.length; a < r; a++) {
173
+ n = arguments[a];
174
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
175
+ }
176
+ return t;
177
+ }, y.apply(this, arguments);
178
+ };
179
+ function Sn(e, t) {
180
+ var n = {};
181
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
182
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
183
+ for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
184
+ t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
185
+ return n;
186
+ }
187
+ function Re(e, t, n) {
188
+ for (var a = 0, r = t.length, o; a < r; a++)
189
+ (o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
190
+ return e.concat(o || Array.prototype.slice.call(t));
191
+ }
192
+ function K(e) {
193
+ return e.mode === "multiple";
194
+ }
195
+ function U(e) {
196
+ return e.mode === "range";
197
+ }
198
+ function X(e) {
199
+ return e.mode === "single";
200
+ }
201
+ var Wn = {
202
+ root: "rdp",
203
+ multiple_months: "rdp-multiple_months",
204
+ with_weeknumber: "rdp-with_weeknumber",
205
+ vhidden: "rdp-vhidden",
206
+ button_reset: "rdp-button_reset",
207
+ button: "rdp-button",
208
+ caption: "rdp-caption",
209
+ caption_start: "rdp-caption_start",
210
+ caption_end: "rdp-caption_end",
211
+ caption_between: "rdp-caption_between",
212
+ caption_label: "rdp-caption_label",
213
+ caption_dropdowns: "rdp-caption_dropdowns",
214
+ dropdown: "rdp-dropdown",
215
+ dropdown_month: "rdp-dropdown_month",
216
+ dropdown_year: "rdp-dropdown_year",
217
+ dropdown_icon: "rdp-dropdown_icon",
218
+ months: "rdp-months",
219
+ month: "rdp-month",
220
+ table: "rdp-table",
221
+ tbody: "rdp-tbody",
222
+ tfoot: "rdp-tfoot",
223
+ head: "rdp-head",
224
+ head_row: "rdp-head_row",
225
+ head_cell: "rdp-head_cell",
226
+ nav: "rdp-nav",
227
+ nav_button: "rdp-nav_button",
228
+ nav_button_previous: "rdp-nav_button_previous",
229
+ nav_button_next: "rdp-nav_button_next",
230
+ nav_icon: "rdp-nav_icon",
231
+ row: "rdp-row",
232
+ weeknumber: "rdp-weeknumber",
233
+ cell: "rdp-cell",
234
+ day: "rdp-day",
235
+ day_today: "rdp-day_today",
236
+ day_outside: "rdp-day_outside",
237
+ day_selected: "rdp-day_selected",
238
+ day_disabled: "rdp-day_disabled",
239
+ day_hidden: "rdp-day_hidden",
240
+ day_range_start: "rdp-day_range_start",
241
+ day_range_end: "rdp-day_range_end",
242
+ day_range_middle: "rdp-day_range_middle"
243
+ };
244
+ function Ln(e, t) {
245
+ return R(e, "LLLL y", t);
246
+ }
247
+ function In(e, t) {
248
+ return R(e, "d", t);
249
+ }
250
+ function Fn(e, t) {
251
+ return R(e, "LLLL", t);
252
+ }
253
+ function Tn(e) {
254
+ return "".concat(e);
255
+ }
256
+ function Rn(e, t) {
257
+ return R(e, "cccccc", t);
258
+ }
259
+ function Yn(e, t) {
260
+ return R(e, "yyyy", t);
261
+ }
262
+ var En = /* @__PURE__ */ Object.freeze({
263
+ __proto__: null,
264
+ formatCaption: Ln,
265
+ formatDay: In,
266
+ formatMonthCaption: Fn,
267
+ formatWeekNumber: Tn,
268
+ formatWeekdayName: Rn,
269
+ formatYearCaption: Yn
270
+ }), Bn = function(e, t, n) {
271
+ return R(e, "do MMMM (EEEE)", n);
272
+ }, An = function() {
273
+ return "Month: ";
274
+ }, jn = function() {
275
+ return "Go to next month";
276
+ }, Hn = function() {
277
+ return "Go to previous month";
278
+ }, Kn = function(e, t) {
279
+ return R(e, "cccc", t);
280
+ }, Un = function(e) {
281
+ return "Week n. ".concat(e);
282
+ }, Vn = function() {
283
+ return "Year: ";
284
+ }, zn = /* @__PURE__ */ Object.freeze({
285
+ __proto__: null,
286
+ labelDay: Bn,
287
+ labelMonthDropdown: An,
288
+ labelNext: jn,
289
+ labelPrevious: Hn,
290
+ labelWeekNumber: Un,
291
+ labelWeekday: Kn,
292
+ labelYearDropdown: Vn
293
+ });
294
+ function $n() {
295
+ var e = "buttons", t = Wn, n = un, a = {}, r = {}, o = 1, i = {}, l = /* @__PURE__ */ new Date();
296
+ return {
297
+ captionLayout: e,
298
+ classNames: t,
299
+ formatters: En,
300
+ labels: zn,
301
+ locale: n,
302
+ modifiersClassNames: a,
303
+ modifiers: r,
304
+ numberOfMonths: o,
305
+ styles: i,
306
+ today: l,
307
+ mode: "default"
308
+ };
309
+ }
310
+ function Zn(e) {
311
+ var t = e.fromYear, n = e.toYear, a = e.fromMonth, r = e.toMonth, o = e.fromDate, i = e.toDate;
312
+ return a ? o = x(a) : t && (o = new Date(t, 0, 1)), r ? i = ve(r) : n && (i = new Date(n, 11, 31)), {
313
+ fromDate: o ? Z(o) : void 0,
314
+ toDate: i ? Z(i) : void 0
315
+ };
316
+ }
317
+ var Ye = F(void 0);
318
+ function Gn(e) {
319
+ var t, n = e.initialProps, a = $n(), r = Zn(n), o = r.fromDate, i = r.toDate, l = (t = n.captionLayout) !== null && t !== void 0 ? t : a.captionLayout;
320
+ l !== "buttons" && (!o || !i) && (l = "buttons");
321
+ var d;
322
+ (X(n) || K(n) || U(n)) && (d = n.onSelect);
323
+ var c = y(y(y({}, a), n), { captionLayout: l, classNames: y(y({}, a.classNames), n.classNames), components: y({}, n.components), formatters: y(y({}, a.formatters), n.formatters), fromDate: o, labels: y(y({}, a.labels), n.labels), mode: n.mode || a.mode, modifiers: y(y({}, a.modifiers), n.modifiers), modifiersClassNames: y(y({}, a.modifiersClassNames), n.modifiersClassNames), onSelect: d, styles: y(y({}, a.styles), n.styles), toDate: i });
324
+ return s(Ye.Provider, { value: c, children: e.children });
325
+ }
326
+ function D() {
327
+ var e = T(Ye);
328
+ if (!e)
329
+ throw new Error("useDayPicker must be used within a DayPickerProvider.");
330
+ return e;
331
+ }
332
+ function Ee(e) {
333
+ var t = D(), n = t.locale, a = t.classNames, r = t.styles, o = t.formatters.formatCaption;
334
+ return s("div", { className: a.caption_label, style: r.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: o(e.displayMonth, { locale: n }) });
335
+ }
336
+ function qn(e) {
337
+ return s("svg", y({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: s("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
338
+ }
339
+ function Be(e) {
340
+ var t, n, a = e.onChange, r = e.value, o = e.children, i = e.caption, l = e.className, d = e.style, c = D(), u = (n = (t = c.components) === null || t === void 0 ? void 0 : t.IconDropdown) !== null && n !== void 0 ? n : qn;
341
+ return S("div", { className: l, style: d, children: [s("span", { className: c.classNames.vhidden, children: e["aria-label"] }), s("select", { name: e.name, "aria-label": e["aria-label"], className: c.classNames.dropdown, style: c.styles.dropdown, value: r, onChange: a, children: o }), S("div", { className: c.classNames.caption_label, style: c.styles.caption_label, "aria-hidden": "true", children: [i, s(u, { className: c.classNames.dropdown_icon, style: c.styles.dropdown_icon })] })] });
342
+ }
343
+ function Xn(e) {
344
+ var t, n = D(), a = n.fromDate, r = n.toDate, o = n.styles, i = n.locale, l = n.formatters.formatMonthCaption, d = n.classNames, c = n.components, u = n.labels.labelMonthDropdown;
345
+ if (!a)
346
+ return s(I, {});
347
+ if (!r)
348
+ return s(I, {});
349
+ var f = [];
350
+ if (Pn(a, r))
351
+ for (var m = x(a), h = a.getMonth(); h <= r.getMonth(); h++)
352
+ f.push(re(m, h));
353
+ else
354
+ for (var m = x(/* @__PURE__ */ new Date()), h = 0; h <= 11; h++)
355
+ f.push(re(m, h));
356
+ var b = function(g) {
357
+ var M = Number(g.target.value), w = re(x(e.displayMonth), M);
358
+ e.onChange(w);
359
+ }, _ = (t = c?.Dropdown) !== null && t !== void 0 ? t : Be;
360
+ return s(_, { name: "months", "aria-label": u(), className: d.dropdown_month, style: o.dropdown_month, onChange: b, value: e.displayMonth.getMonth(), caption: l(e.displayMonth, { locale: i }), children: f.map(function(g) {
361
+ return s("option", { value: g.getMonth(), children: l(g, { locale: i }) }, g.getMonth());
362
+ }) });
363
+ }
364
+ function Jn(e) {
365
+ var t, n = e.displayMonth, a = D(), r = a.fromDate, o = a.toDate, i = a.locale, l = a.styles, d = a.classNames, c = a.components, u = a.formatters.formatYearCaption, f = a.labels.labelYearDropdown, m = [];
366
+ if (!r)
367
+ return s(I, {});
368
+ if (!o)
369
+ return s(I, {});
370
+ for (var h = r.getFullYear(), b = o.getFullYear(), _ = h; _ <= b; _++)
371
+ m.push(ke(cn(/* @__PURE__ */ new Date()), _));
372
+ var g = function(w) {
373
+ var E = ke(x(n), Number(w.target.value));
374
+ e.onChange(E);
375
+ }, M = (t = c?.Dropdown) !== null && t !== void 0 ? t : Be;
376
+ return s(M, { name: "years", "aria-label": f(), className: d.dropdown_year, style: l.dropdown_year, onChange: g, value: n.getFullYear(), caption: u(n, { locale: i }), children: m.map(function(w) {
377
+ return s("option", { value: w.getFullYear(), children: u(w, { locale: i }) }, w.getFullYear());
378
+ }) });
379
+ }
380
+ function Qn(e, t) {
381
+ var n = A(e), a = n[0], r = n[1], o = t === void 0 ? a : t;
382
+ return [o, r];
383
+ }
384
+ function et(e) {
385
+ var t = e.month, n = e.defaultMonth, a = e.today, r = t || n || a || /* @__PURE__ */ new Date(), o = e.toDate, i = e.fromDate, l = e.numberOfMonths, d = l === void 0 ? 1 : l;
386
+ if (o && H(o, r) < 0) {
387
+ var c = -1 * (d - 1);
388
+ r = O(o, c);
389
+ }
390
+ return i && H(r, i) < 0 && (r = i), x(r);
391
+ }
392
+ function nt() {
393
+ var e = D(), t = et(e), n = Qn(t, e.month), a = n[0], r = n[1], o = function(i) {
394
+ var l;
395
+ if (!e.disableNavigation) {
396
+ var d = x(i);
397
+ r(d), (l = e.onMonthChange) === null || l === void 0 || l.call(e, d);
398
+ }
399
+ };
400
+ return [a, o];
401
+ }
402
+ function tt(e, t) {
403
+ for (var n = t.reverseMonths, a = t.numberOfMonths, r = x(e), o = x(O(r, a)), i = H(o, r), l = [], d = 0; d < i; d++) {
404
+ var c = O(r, d);
405
+ l.push(c);
406
+ }
407
+ return n && (l = l.reverse()), l;
408
+ }
409
+ function at(e, t) {
410
+ if (!t.disableNavigation) {
411
+ var n = t.toDate, a = t.pagedNavigation, r = t.numberOfMonths, o = r === void 0 ? 1 : r, i = a ? o : 1, l = x(e);
412
+ if (!n)
413
+ return O(l, i);
414
+ var d = H(n, e);
415
+ if (!(d < o))
416
+ return O(l, i);
417
+ }
418
+ }
419
+ function rt(e, t) {
420
+ if (!t.disableNavigation) {
421
+ var n = t.fromDate, a = t.pagedNavigation, r = t.numberOfMonths, o = r === void 0 ? 1 : r, i = a ? o : 1, l = x(e);
422
+ if (!n)
423
+ return O(l, -i);
424
+ var d = H(l, n);
425
+ if (!(d <= 0))
426
+ return O(l, -i);
427
+ }
428
+ }
429
+ var Ae = F(void 0);
430
+ function ot(e) {
431
+ var t = D(), n = nt(), a = n[0], r = n[1], o = tt(a, t), i = at(a, t), l = rt(a, t), d = function(f) {
432
+ return o.some(function(m) {
433
+ return he(f, m);
434
+ });
435
+ }, c = function(f, m) {
436
+ d(f) || (m && Te(f, m) ? r(O(f, 1 + t.numberOfMonths * -1)) : r(f));
437
+ }, u = {
438
+ currentMonth: a,
439
+ displayMonths: o,
440
+ goToMonth: r,
441
+ goToDate: c,
442
+ previousMonth: l,
443
+ nextMonth: i,
444
+ isDateDisplayed: d
445
+ };
446
+ return s(Ae.Provider, { value: u, children: e.children });
447
+ }
448
+ function V() {
449
+ var e = T(Ae);
450
+ if (!e)
451
+ throw new Error("useNavigation must be used within a NavigationProvider");
452
+ return e;
453
+ }
454
+ function Ce(e) {
455
+ var t, n = D(), a = n.classNames, r = n.styles, o = n.components, i = V().goToMonth, l = function(u) {
456
+ i(O(u, e.displayIndex ? -e.displayIndex : 0));
457
+ }, d = (t = o?.CaptionLabel) !== null && t !== void 0 ? t : Ee, c = s(d, { id: e.id, displayMonth: e.displayMonth });
458
+ return S("div", { className: a.caption_dropdowns, style: r.caption_dropdowns, children: [s("div", { className: a.vhidden, children: c }), s(Xn, { onChange: l, displayMonth: e.displayMonth }), s(Jn, { onChange: l, displayMonth: e.displayMonth })] });
459
+ }
460
+ function it(e) {
461
+ return s("svg", y({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: s("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
462
+ }
463
+ function lt(e) {
464
+ return s("svg", y({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: s("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
465
+ }
466
+ var G = an(function(e, t) {
467
+ var n = D(), a = n.classNames, r = n.styles, o = [a.button_reset, a.button];
468
+ e.className && o.push(e.className);
469
+ var i = o.join(" "), l = y(y({}, r.button_reset), r.button);
470
+ return e.style && Object.assign(l, e.style), s("button", y({}, e, { ref: t, type: "button", className: i, style: l }));
471
+ });
472
+ function st(e) {
473
+ var t, n, a = D(), r = a.dir, o = a.locale, i = a.classNames, l = a.styles, d = a.labels, c = d.labelPrevious, u = d.labelNext, f = a.components;
474
+ if (!e.nextMonth && !e.previousMonth)
475
+ return s(I, {});
476
+ var m = c(e.previousMonth, { locale: o }), h = [
477
+ i.nav_button,
478
+ i.nav_button_previous
479
+ ].join(" "), b = u(e.nextMonth, { locale: o }), _ = [
480
+ i.nav_button,
481
+ i.nav_button_next
482
+ ].join(" "), g = (t = f?.IconRight) !== null && t !== void 0 ? t : lt, M = (n = f?.IconLeft) !== null && n !== void 0 ? n : it;
483
+ return S("div", { className: i.nav, style: l.nav, children: [!e.hidePrevious && s(G, { name: "previous-month", "aria-label": m, className: h, style: l.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: r === "rtl" ? s(g, { className: i.nav_icon, style: l.nav_icon }) : s(M, { className: i.nav_icon, style: l.nav_icon }) }), !e.hideNext && s(G, { name: "next-month", "aria-label": b, className: _, style: l.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: r === "rtl" ? s(M, { className: i.nav_icon, style: l.nav_icon }) : s(g, { className: i.nav_icon, style: l.nav_icon }) })] });
484
+ }
485
+ function xe(e) {
486
+ var t = D().numberOfMonths, n = V(), a = n.previousMonth, r = n.nextMonth, o = n.goToMonth, i = n.displayMonths, l = i.findIndex(function(b) {
487
+ return he(e.displayMonth, b);
488
+ }), d = l === 0, c = l === i.length - 1, u = t > 1 && (d || !c), f = t > 1 && (c || !d), m = function() {
489
+ a && o(a);
490
+ }, h = function() {
491
+ r && o(r);
492
+ };
493
+ return s(st, { displayMonth: e.displayMonth, hideNext: u, hidePrevious: f, nextMonth: r, previousMonth: a, onPreviousClick: m, onNextClick: h });
494
+ }
495
+ function dt(e) {
496
+ var t, n = D(), a = n.classNames, r = n.disableNavigation, o = n.styles, i = n.captionLayout, l = n.components, d = (t = l?.CaptionLabel) !== null && t !== void 0 ? t : Ee, c;
497
+ return r ? c = s(d, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? c = s(Ce, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? c = S(I, { children: [s(Ce, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), s(xe, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = S(I, { children: [s(d, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), s(xe, { displayMonth: e.displayMonth, id: e.id })] }), s("div", { className: a.caption, style: o.caption, children: c });
498
+ }
499
+ function ut(e) {
500
+ var t = D(), n = t.footer, a = t.styles, r = t.classNames.tfoot;
501
+ return n ? s("tfoot", { className: r, style: a.tfoot, children: s("tr", { children: s("td", { colSpan: 8, children: n }) }) }) : s(I, {});
502
+ }
503
+ function ct(e, t, n) {
504
+ for (var a = n ? fe(/* @__PURE__ */ new Date()) : j(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: t }), r = [], o = 0; o < 7; o++) {
505
+ var i = k(a, o);
506
+ r.push(i);
507
+ }
508
+ return r;
509
+ }
510
+ function ft() {
511
+ var e = D(), t = e.classNames, n = e.styles, a = e.showWeekNumber, r = e.locale, o = e.weekStartsOn, i = e.ISOWeek, l = e.formatters.formatWeekdayName, d = e.labels.labelWeekday, c = ct(r, o, i);
512
+ return S("tr", { style: n.head_row, className: t.head_row, children: [a && s("td", { style: n.head_cell, className: t.head_cell }), c.map(function(u, f) {
513
+ return s("th", { scope: "col", className: t.head_cell, style: n.head_cell, "aria-label": d(u, { locale: r }), children: l(u, { locale: r }) }, f);
514
+ })] });
515
+ }
516
+ function vt() {
517
+ var e, t = D(), n = t.classNames, a = t.styles, r = t.components, o = (e = r?.HeadRow) !== null && e !== void 0 ? e : ft;
518
+ return s("thead", { style: a.head, className: n.head, children: s(o, {}) });
519
+ }
520
+ function mt(e) {
521
+ var t = D(), n = t.locale, a = t.formatters.formatDay;
522
+ return s(I, { children: a(e.date, { locale: n }) });
523
+ }
524
+ var ye = F(void 0);
525
+ function ht(e) {
526
+ if (!K(e.initialProps)) {
527
+ var t = {
528
+ selected: void 0,
529
+ modifiers: {
530
+ disabled: []
531
+ }
532
+ };
533
+ return s(ye.Provider, { value: t, children: e.children });
534
+ }
535
+ return s(yt, { initialProps: e.initialProps, children: e.children });
536
+ }
537
+ function yt(e) {
538
+ var t = e.initialProps, n = e.children, a = t.selected, r = t.min, o = t.max, i = function(c, u, f) {
539
+ var m, h;
540
+ (m = t.onDayClick) === null || m === void 0 || m.call(t, c, u, f);
541
+ var b = !!(u.selected && r && a?.length === r);
542
+ if (!b) {
543
+ var _ = !!(!u.selected && o && a?.length === o);
544
+ if (!_) {
545
+ var g = a ? Re([], a) : [];
546
+ if (u.selected) {
547
+ var M = g.findIndex(function(w) {
548
+ return C(c, w);
549
+ });
550
+ g.splice(M, 1);
551
+ } else
552
+ g.push(c);
553
+ (h = t.onSelect) === null || h === void 0 || h.call(t, g, c, u, f);
554
+ }
555
+ }
556
+ }, l = {
557
+ disabled: []
558
+ };
559
+ a && l.disabled.push(function(c) {
560
+ var u = o && a.length > o - 1, f = a.some(function(m) {
561
+ return C(m, c);
562
+ });
563
+ return !!(u && !f);
564
+ });
565
+ var d = {
566
+ selected: a,
567
+ onDayClick: i,
568
+ modifiers: l
569
+ };
570
+ return s(ye.Provider, { value: d, children: n });
571
+ }
572
+ function pe() {
573
+ var e = T(ye);
574
+ if (!e)
575
+ throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
576
+ return e;
577
+ }
578
+ function pt(e, t) {
579
+ var n = t || {}, a = n.from, r = n.to;
580
+ return a && r ? C(r, e) && C(a, e) ? void 0 : C(r, e) ? { from: r, to: void 0 } : C(a, e) ? void 0 : ue(a, e) ? { from: e, to: r } : { from: a, to: e } : r ? ue(e, r) ? { from: r, to: e } : { from: e, to: r } : a ? Te(e, a) ? { from: e, to: a } : { from: a, to: e } : { from: e, to: void 0 };
581
+ }
582
+ var be = F(void 0);
583
+ function bt(e) {
584
+ if (!U(e.initialProps)) {
585
+ var t = {
586
+ selected: void 0,
587
+ modifiers: {
588
+ range_start: [],
589
+ range_end: [],
590
+ range_middle: [],
591
+ disabled: []
592
+ }
593
+ };
594
+ return s(be.Provider, { value: t, children: e.children });
595
+ }
596
+ return s(gt, { initialProps: e.initialProps, children: e.children });
597
+ }
598
+ function gt(e) {
599
+ var t = e.initialProps, n = e.children, a = t.selected, r = a || {}, o = r.from, i = r.to, l = t.min, d = t.max, c = function(h, b, _) {
600
+ var g, M;
601
+ (g = t.onDayClick) === null || g === void 0 || g.call(t, h, b, _);
602
+ var w = pt(h, a);
603
+ (M = t.onSelect) === null || M === void 0 || M.call(t, w, h, b, _);
604
+ }, u = {
605
+ range_start: [],
606
+ range_end: [],
607
+ range_middle: [],
608
+ disabled: []
609
+ };
610
+ if (o ? (u.range_start = [o], i ? (u.range_end = [i], C(o, i) || (u.range_middle = [
611
+ {
612
+ after: o,
613
+ before: i
614
+ }
615
+ ])) : u.range_end = [o]) : i && (u.range_start = [i], u.range_end = [i]), l && (o && !i && u.disabled.push({
616
+ after: ae(o, l - 1),
617
+ before: k(o, l - 1)
618
+ }), o && i && u.disabled.push({
619
+ after: o,
620
+ before: k(o, l - 1)
621
+ }), !o && i && u.disabled.push({
622
+ after: ae(i, l - 1),
623
+ before: k(i, l - 1)
624
+ })), d) {
625
+ if (o && !i && (u.disabled.push({
626
+ before: k(o, -d + 1)
627
+ }), u.disabled.push({
628
+ after: k(o, d - 1)
629
+ })), o && i) {
630
+ var f = L(i, o) + 1, m = d - f;
631
+ u.disabled.push({
632
+ before: ae(o, m)
633
+ }), u.disabled.push({
634
+ after: k(i, m)
635
+ });
636
+ }
637
+ !o && i && (u.disabled.push({
638
+ before: k(i, -d + 1)
639
+ }), u.disabled.push({
640
+ after: k(i, d - 1)
641
+ }));
642
+ }
643
+ return s(be.Provider, { value: { selected: a, onDayClick: c, modifiers: u }, children: n });
644
+ }
645
+ function ge() {
646
+ var e = T(be);
647
+ if (!e)
648
+ throw new Error("useSelectRange must be used within a SelectRangeProvider");
649
+ return e;
650
+ }
651
+ function $(e) {
652
+ return Array.isArray(e) ? Re([], e) : e !== void 0 ? [e] : [];
653
+ }
654
+ function _t(e) {
655
+ var t = {};
656
+ return Object.entries(e).forEach(function(n) {
657
+ var a = n[0], r = n[1];
658
+ t[a] = $(r);
659
+ }), t;
660
+ }
661
+ var P;
662
+ (function(e) {
663
+ e.Outside = "outside", e.Disabled = "disabled", e.Selected = "selected", e.Hidden = "hidden", e.Today = "today", e.RangeStart = "range_start", e.RangeEnd = "range_end", e.RangeMiddle = "range_middle";
664
+ })(P || (P = {}));
665
+ var Dt = P.Selected, W = P.Disabled, wt = P.Hidden, Nt = P.Today, oe = P.RangeEnd, ie = P.RangeMiddle, le = P.RangeStart, Mt = P.Outside;
666
+ function kt(e, t, n) {
667
+ var a, r = (a = {}, a[Dt] = $(e.selected), a[W] = $(e.disabled), a[wt] = $(e.hidden), a[Nt] = [e.today], a[oe] = [], a[ie] = [], a[le] = [], a[Mt] = [], a);
668
+ return e.fromDate && r[W].push({ before: e.fromDate }), e.toDate && r[W].push({ after: e.toDate }), K(e) ? r[W] = r[W].concat(t.modifiers[W]) : U(e) && (r[W] = r[W].concat(n.modifiers[W]), r[le] = n.modifiers[le], r[ie] = n.modifiers[ie], r[oe] = n.modifiers[oe]), r;
669
+ }
670
+ var je = F(void 0);
671
+ function Ct(e) {
672
+ var t = D(), n = pe(), a = ge(), r = kt(t, n, a), o = _t(t.modifiers), i = y(y({}, r), o);
673
+ return s(je.Provider, { value: i, children: e.children });
674
+ }
675
+ function He() {
676
+ var e = T(je);
677
+ if (!e)
678
+ throw new Error("useModifiers must be used within a ModifiersProvider");
679
+ return e;
680
+ }
681
+ function xt(e) {
682
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
683
+ }
684
+ function Ot(e) {
685
+ return !!(e && typeof e == "object" && "from" in e);
686
+ }
687
+ function Pt(e) {
688
+ return !!(e && typeof e == "object" && "after" in e);
689
+ }
690
+ function St(e) {
691
+ return !!(e && typeof e == "object" && "before" in e);
692
+ }
693
+ function Wt(e) {
694
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
695
+ }
696
+ function Lt(e, t) {
697
+ var n, a = t.from, r = t.to;
698
+ if (a && r) {
699
+ var o = L(r, a) < 0;
700
+ o && (n = [r, a], a = n[0], r = n[1]);
701
+ var i = L(e, a) >= 0 && L(r, e) >= 0;
702
+ return i;
703
+ }
704
+ return r ? C(r, e) : a ? C(a, e) : !1;
705
+ }
706
+ function It(e) {
707
+ return We(e);
708
+ }
709
+ function Ft(e) {
710
+ return Array.isArray(e) && e.every(We);
711
+ }
712
+ function Tt(e, t) {
713
+ return t.some(function(n) {
714
+ if (typeof n == "boolean")
715
+ return n;
716
+ if (It(n))
717
+ return C(e, n);
718
+ if (Ft(n))
719
+ return n.includes(e);
720
+ if (Ot(n))
721
+ return Lt(e, n);
722
+ if (Wt(n))
723
+ return n.dayOfWeek.includes(e.getDay());
724
+ if (xt(n)) {
725
+ var a = L(n.before, e), r = L(n.after, e), o = a > 0, i = r < 0, l = ue(n.before, n.after);
726
+ return l ? i && o : o || i;
727
+ }
728
+ return Pt(n) ? L(e, n.after) > 0 : St(n) ? L(n.before, e) > 0 : typeof n == "function" ? n(e) : !1;
729
+ });
730
+ }
731
+ function _e(e, t, n) {
732
+ var a = Object.keys(t).reduce(function(o, i) {
733
+ var l = t[i];
734
+ return Tt(e, l) && o.push(i), o;
735
+ }, []), r = {};
736
+ return a.forEach(function(o) {
737
+ return r[o] = !0;
738
+ }), n && !he(e, n) && (r.outside = !0), r;
739
+ }
740
+ function Rt(e, t) {
741
+ for (var n = x(e[0]), a = ve(e[e.length - 1]), r, o, i = n; i <= a; ) {
742
+ var l = _e(i, t), d = !l.disabled && !l.hidden;
743
+ if (!d) {
744
+ i = k(i, 1);
745
+ continue;
746
+ }
747
+ if (l.selected)
748
+ return i;
749
+ l.today && !o && (o = i), r || (r = i), i = k(i, 1);
750
+ }
751
+ return o || r;
752
+ }
753
+ var Yt = 365;
754
+ function Ke(e, t) {
755
+ var n = t.moveBy, a = t.direction, r = t.context, o = t.modifiers, i = t.retry, l = i === void 0 ? { count: 0, lastFocused: e } : i, d = r.weekStartsOn, c = r.fromDate, u = r.toDate, f = r.locale, m = {
756
+ day: k,
757
+ week: de,
758
+ month: O,
759
+ year: Dn,
760
+ startOfWeek: function(g) {
761
+ return r.ISOWeek ? fe(g) : j(g, { locale: f, weekStartsOn: d });
762
+ },
763
+ endOfWeek: function(g) {
764
+ return r.ISOWeek ? Fe(g) : me(g, { locale: f, weekStartsOn: d });
765
+ }
766
+ }, h = m[n](e, a === "after" ? 1 : -1);
767
+ a === "before" && c ? h = wn([c, h]) : a === "after" && u && (h = Nn([u, h]));
768
+ var b = !0;
769
+ if (o) {
770
+ var _ = _e(h, o);
771
+ b = !_.disabled && !_.hidden;
772
+ }
773
+ return b ? h : l.count > Yt ? l.lastFocused : Ke(h, {
774
+ moveBy: n,
775
+ direction: a,
776
+ context: r,
777
+ modifiers: o,
778
+ retry: y(y({}, l), { count: l.count + 1 })
779
+ });
780
+ }
781
+ var Ue = F(void 0);
782
+ function Et(e) {
783
+ var t = V(), n = He(), a = A(), r = a[0], o = a[1], i = A(), l = i[0], d = i[1], c = Rt(t.displayMonths, n), u = r ?? (l && t.isDateDisplayed(l)) ? l : c, f = function() {
784
+ d(r), o(void 0);
785
+ }, m = function(g) {
786
+ o(g);
787
+ }, h = D(), b = function(g, M) {
788
+ if (r) {
789
+ var w = Ke(r, {
790
+ moveBy: g,
791
+ direction: M,
792
+ context: h,
793
+ modifiers: n
794
+ });
795
+ C(r, w) || (t.goToDate(w, r), m(w));
796
+ }
797
+ }, _ = {
798
+ focusedDay: r,
799
+ focusTarget: u,
800
+ blur: f,
801
+ focus: m,
802
+ focusDayAfter: function() {
803
+ return b("day", "after");
804
+ },
805
+ focusDayBefore: function() {
806
+ return b("day", "before");
807
+ },
808
+ focusWeekAfter: function() {
809
+ return b("week", "after");
810
+ },
811
+ focusWeekBefore: function() {
812
+ return b("week", "before");
813
+ },
814
+ focusMonthBefore: function() {
815
+ return b("month", "before");
816
+ },
817
+ focusMonthAfter: function() {
818
+ return b("month", "after");
819
+ },
820
+ focusYearBefore: function() {
821
+ return b("year", "before");
822
+ },
823
+ focusYearAfter: function() {
824
+ return b("year", "after");
825
+ },
826
+ focusStartOfWeek: function() {
827
+ return b("startOfWeek", "before");
828
+ },
829
+ focusEndOfWeek: function() {
830
+ return b("endOfWeek", "after");
831
+ }
832
+ };
833
+ return s(Ue.Provider, { value: _, children: e.children });
834
+ }
835
+ function De() {
836
+ var e = T(Ue);
837
+ if (!e)
838
+ throw new Error("useFocusContext must be used within a FocusProvider");
839
+ return e;
840
+ }
841
+ function Bt(e, t) {
842
+ var n = He(), a = _e(e, n, t);
843
+ return a;
844
+ }
845
+ var we = F(void 0);
846
+ function At(e) {
847
+ if (!X(e.initialProps)) {
848
+ var t = {
849
+ selected: void 0
850
+ };
851
+ return s(we.Provider, { value: t, children: e.children });
852
+ }
853
+ return s(jt, { initialProps: e.initialProps, children: e.children });
854
+ }
855
+ function jt(e) {
856
+ var t = e.initialProps, n = e.children, a = function(o, i, l) {
857
+ var d, c, u;
858
+ if ((d = t.onDayClick) === null || d === void 0 || d.call(t, o, i, l), i.selected && !t.required) {
859
+ (c = t.onSelect) === null || c === void 0 || c.call(t, void 0, o, i, l);
860
+ return;
861
+ }
862
+ (u = t.onSelect) === null || u === void 0 || u.call(t, o, o, i, l);
863
+ }, r = {
864
+ selected: t.selected,
865
+ onDayClick: a
866
+ };
867
+ return s(we.Provider, { value: r, children: n });
868
+ }
869
+ function Ve() {
870
+ var e = T(we);
871
+ if (!e)
872
+ throw new Error("useSelectSingle must be used within a SelectSingleProvider");
873
+ return e;
874
+ }
875
+ function Ht(e, t) {
876
+ var n = D(), a = Ve(), r = pe(), o = ge(), i = De(), l = i.focusDayAfter, d = i.focusDayBefore, c = i.focusWeekAfter, u = i.focusWeekBefore, f = i.blur, m = i.focus, h = i.focusMonthBefore, b = i.focusMonthAfter, _ = i.focusYearBefore, g = i.focusYearAfter, M = i.focusStartOfWeek, w = i.focusEndOfWeek, E = function(p) {
877
+ var v, ee, ne, te;
878
+ X(n) ? (v = a.onDayClick) === null || v === void 0 || v.call(a, e, t, p) : K(n) ? (ee = r.onDayClick) === null || ee === void 0 || ee.call(r, e, t, p) : U(n) ? (ne = o.onDayClick) === null || ne === void 0 || ne.call(o, e, t, p) : (te = n.onDayClick) === null || te === void 0 || te.call(n, e, t, p);
879
+ }, J = function(p) {
880
+ var v;
881
+ m(e), (v = n.onDayFocus) === null || v === void 0 || v.call(n, e, t, p);
882
+ }, Q = function(p) {
883
+ var v;
884
+ f(), (v = n.onDayBlur) === null || v === void 0 || v.call(n, e, t, p);
885
+ }, B = function(p) {
886
+ var v;
887
+ (v = n.onDayMouseEnter) === null || v === void 0 || v.call(n, e, t, p);
888
+ }, ze = function(p) {
889
+ var v;
890
+ (v = n.onDayMouseLeave) === null || v === void 0 || v.call(n, e, t, p);
891
+ }, $e = function(p) {
892
+ var v;
893
+ (v = n.onDayPointerEnter) === null || v === void 0 || v.call(n, e, t, p);
894
+ }, Ze = function(p) {
895
+ var v;
896
+ (v = n.onDayPointerLeave) === null || v === void 0 || v.call(n, e, t, p);
897
+ }, Ge = function(p) {
898
+ var v;
899
+ (v = n.onDayTouchCancel) === null || v === void 0 || v.call(n, e, t, p);
900
+ }, qe = function(p) {
901
+ var v;
902
+ (v = n.onDayTouchEnd) === null || v === void 0 || v.call(n, e, t, p);
903
+ }, Xe = function(p) {
904
+ var v;
905
+ (v = n.onDayTouchMove) === null || v === void 0 || v.call(n, e, t, p);
906
+ }, Je = function(p) {
907
+ var v;
908
+ (v = n.onDayTouchStart) === null || v === void 0 || v.call(n, e, t, p);
909
+ }, Qe = function(p) {
910
+ var v;
911
+ (v = n.onDayKeyUp) === null || v === void 0 || v.call(n, e, t, p);
912
+ }, en = function(p) {
913
+ var v;
914
+ switch (p.key) {
915
+ case "ArrowLeft":
916
+ p.preventDefault(), p.stopPropagation(), n.dir === "rtl" ? l() : d();
917
+ break;
918
+ case "ArrowRight":
919
+ p.preventDefault(), p.stopPropagation(), n.dir === "rtl" ? d() : l();
920
+ break;
921
+ case "ArrowDown":
922
+ p.preventDefault(), p.stopPropagation(), c();
923
+ break;
924
+ case "ArrowUp":
925
+ p.preventDefault(), p.stopPropagation(), u();
926
+ break;
927
+ case "PageUp":
928
+ p.preventDefault(), p.stopPropagation(), p.shiftKey ? _() : h();
929
+ break;
930
+ case "PageDown":
931
+ p.preventDefault(), p.stopPropagation(), p.shiftKey ? g() : b();
932
+ break;
933
+ case "Home":
934
+ p.preventDefault(), p.stopPropagation(), M();
935
+ break;
936
+ case "End":
937
+ p.preventDefault(), p.stopPropagation(), w();
938
+ break;
939
+ }
940
+ (v = n.onDayKeyDown) === null || v === void 0 || v.call(n, e, t, p);
941
+ }, nn = {
942
+ onClick: E,
943
+ onFocus: J,
944
+ onBlur: Q,
945
+ onKeyDown: en,
946
+ onKeyUp: Qe,
947
+ onMouseEnter: B,
948
+ onMouseLeave: ze,
949
+ onPointerEnter: $e,
950
+ onPointerLeave: Ze,
951
+ onTouchCancel: Ge,
952
+ onTouchEnd: qe,
953
+ onTouchMove: Xe,
954
+ onTouchStart: Je
955
+ };
956
+ return nn;
957
+ }
958
+ function Kt() {
959
+ var e = D(), t = Ve(), n = pe(), a = ge(), r = X(e) ? t.selected : K(e) ? n.selected : U(e) ? a.selected : void 0;
960
+ return r;
961
+ }
962
+ function Ut(e) {
963
+ return Object.values(P).includes(e);
964
+ }
965
+ function Vt(e, t) {
966
+ var n = [e.classNames.day];
967
+ return Object.keys(t).forEach(function(a) {
968
+ var r = e.modifiersClassNames[a];
969
+ if (r)
970
+ n.push(r);
971
+ else if (Ut(a)) {
972
+ var o = e.classNames["day_".concat(a)];
973
+ o && n.push(o);
974
+ }
975
+ }), n;
976
+ }
977
+ function zt(e, t) {
978
+ var n = y({}, e.styles.day);
979
+ return Object.keys(t).forEach(function(a) {
980
+ var r;
981
+ n = y(y({}, n), (r = e.modifiersStyles) === null || r === void 0 ? void 0 : r[a]);
982
+ }), n;
983
+ }
984
+ function $t(e, t, n) {
985
+ var a, r, o, i = D(), l = De(), d = Bt(e, t), c = Ht(e, d), u = Kt(), f = !!(i.onDayClick || i.mode !== "default");
986
+ q(function() {
987
+ var B;
988
+ d.outside || l.focusedDay && f && C(l.focusedDay, e) && ((B = n.current) === null || B === void 0 || B.focus());
989
+ }, [
990
+ l.focusedDay,
991
+ e,
992
+ n,
993
+ f,
994
+ d.outside
995
+ ]);
996
+ var m = Vt(i, d).join(" "), h = zt(i, d), b = !!(d.outside && !i.showOutsideDays || d.hidden), _ = (o = (r = i.components) === null || r === void 0 ? void 0 : r.DayContent) !== null && o !== void 0 ? o : mt, g = s(_, { date: e, displayMonth: t, activeModifiers: d }), M = {
997
+ style: h,
998
+ className: m,
999
+ children: g,
1000
+ role: "gridcell"
1001
+ }, w = l.focusTarget && C(l.focusTarget, e) && !d.outside, E = l.focusedDay && C(l.focusedDay, e), J = y(y(y({}, M), (a = { disabled: d.disabled, role: "gridcell" }, a["aria-selected"] = d.selected, a.tabIndex = E || w ? 0 : -1, a)), c), Q = {
1002
+ isButton: f,
1003
+ isHidden: b,
1004
+ activeModifiers: d,
1005
+ selectedDays: u,
1006
+ buttonProps: J,
1007
+ divProps: M
1008
+ };
1009
+ return Q;
1010
+ }
1011
+ function Zt(e) {
1012
+ var t = rn(null), n = $t(e.date, e.displayMonth, t);
1013
+ return n.isHidden ? s("div", { role: "gridcell" }) : n.isButton ? s(G, y({ name: "day", ref: t }, n.buttonProps)) : s("div", y({}, n.divProps));
1014
+ }
1015
+ function Gt(e) {
1016
+ var t = e.number, n = e.dates, a = D(), r = a.onWeekNumberClick, o = a.styles, i = a.classNames, l = a.locale, d = a.labels.labelWeekNumber, c = a.formatters.formatWeekNumber, u = c(Number(t), { locale: l });
1017
+ if (!r)
1018
+ return s("span", { className: i.weeknumber, style: o.weeknumber, children: u });
1019
+ var f = d(Number(t), { locale: l }), m = function(h) {
1020
+ r(t, n, h);
1021
+ };
1022
+ return s(G, { name: "week-number", "aria-label": f, className: i.weeknumber, style: o.weeknumber, onClick: m, children: u });
1023
+ }
1024
+ function qt(e) {
1025
+ var t, n, a = D(), r = a.styles, o = a.classNames, i = a.showWeekNumber, l = a.components, d = (t = l?.Day) !== null && t !== void 0 ? t : Zt, c = (n = l?.WeekNumber) !== null && n !== void 0 ? n : Gt, u;
1026
+ return i && (u = s("td", { className: o.cell, style: r.cell, children: s(c, { number: e.weekNumber, dates: e.dates }) })), S("tr", { className: o.row, style: r.row, children: [u, e.dates.map(function(f) {
1027
+ return s("td", { className: o.cell, style: r.cell, role: "presentation", children: s(d, { displayMonth: e.displayMonth, date: f }) }, Cn(f));
1028
+ })] });
1029
+ }
1030
+ function Oe(e, t, n) {
1031
+ for (var a = n?.ISOWeek ? Fe(t) : me(t, n), r = n?.ISOWeek ? fe(e) : j(e, n), o = L(a, r), i = [], l = 0; l <= o; l++)
1032
+ i.push(k(r, l));
1033
+ var d = i.reduce(function(c, u) {
1034
+ var f = n?.ISOWeek ? fn(u) : vn(u, n), m = c.find(function(h) {
1035
+ return h.weekNumber === f;
1036
+ });
1037
+ return m ? (m.dates.push(u), c) : (c.push({
1038
+ weekNumber: f,
1039
+ dates: [u]
1040
+ }), c);
1041
+ }, []);
1042
+ return d;
1043
+ }
1044
+ function Xt(e, t) {
1045
+ var n = Oe(x(e), ve(e), t);
1046
+ if (t?.useFixedWeeks) {
1047
+ var a = On(e, t);
1048
+ if (a < 6) {
1049
+ var r = n[n.length - 1], o = r.dates[r.dates.length - 1], i = de(o, 6 - a), l = Oe(de(o, 1), i, t);
1050
+ n.push.apply(n, l);
1051
+ }
1052
+ }
1053
+ return n;
1054
+ }
1055
+ function Jt(e) {
1056
+ var t, n, a, r = D(), o = r.locale, i = r.classNames, l = r.styles, d = r.hideHead, c = r.fixedWeeks, u = r.components, f = r.weekStartsOn, m = r.firstWeekContainsDate, h = r.ISOWeek, b = Xt(e.displayMonth, {
1057
+ useFixedWeeks: !!c,
1058
+ ISOWeek: h,
1059
+ locale: o,
1060
+ weekStartsOn: f,
1061
+ firstWeekContainsDate: m
1062
+ }), _ = (t = u?.Head) !== null && t !== void 0 ? t : vt, g = (n = u?.Row) !== null && n !== void 0 ? n : qt, M = (a = u?.Footer) !== null && a !== void 0 ? a : ut;
1063
+ return S("table", { id: e.id, className: i.table, style: l.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!d && s(_, {}), s("tbody", { className: i.tbody, style: l.tbody, children: b.map(function(w) {
1064
+ return s(g, { displayMonth: e.displayMonth, dates: w.dates, weekNumber: w.weekNumber }, w.weekNumber);
1065
+ }) }), s(M, { displayMonth: e.displayMonth })] });
1066
+ }
1067
+ function Qt() {
1068
+ return !!(typeof window < "u" && window.document && window.document.createElement);
1069
+ }
1070
+ var ea = Qt() ? tn : q, se = !1, na = 0;
1071
+ function Pe() {
1072
+ return "react-day-picker-".concat(++na);
1073
+ }
1074
+ function ta(e) {
1075
+ var t, n = e ?? (se ? Pe() : null), a = A(n), r = a[0], o = a[1];
1076
+ return ea(function() {
1077
+ r === null && o(Pe());
1078
+ }, []), q(function() {
1079
+ se === !1 && (se = !0);
1080
+ }, []), (t = e ?? r) !== null && t !== void 0 ? t : void 0;
1081
+ }
1082
+ function aa(e) {
1083
+ var t, n, a = D(), r = a.dir, o = a.classNames, i = a.styles, l = a.components, d = V().displayMonths, c = ta(a.id ? "".concat(a.id, "-").concat(e.displayIndex) : void 0), u = a.id ? "".concat(a.id, "-grid-").concat(e.displayIndex) : void 0, f = [o.month], m = i.month, h = e.displayIndex === 0, b = e.displayIndex === d.length - 1, _ = !h && !b;
1084
+ r === "rtl" && (t = [h, b], b = t[0], h = t[1]), h && (f.push(o.caption_start), m = y(y({}, m), i.caption_start)), b && (f.push(o.caption_end), m = y(y({}, m), i.caption_end)), _ && (f.push(o.caption_between), m = y(y({}, m), i.caption_between));
1085
+ var g = (n = l?.Caption) !== null && n !== void 0 ? n : dt;
1086
+ return S("div", { className: f.join(" "), style: m, children: [s(g, { id: c, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), s(Jt, { id: u, "aria-labelledby": c, displayMonth: e.displayMonth })] }, e.displayIndex);
1087
+ }
1088
+ function ra(e) {
1089
+ var t = D(), n = t.classNames, a = t.styles;
1090
+ return s("div", { className: n.months, style: a.months, children: e.children });
1091
+ }
1092
+ function oa(e) {
1093
+ var t, n, a = e.initialProps, r = D(), o = De(), i = V(), l = A(!1), d = l[0], c = l[1];
1094
+ q(function() {
1095
+ r.initialFocus && o.focusTarget && (d || (o.focus(o.focusTarget), c(!0)));
1096
+ }, [
1097
+ r.initialFocus,
1098
+ d,
1099
+ o.focus,
1100
+ o.focusTarget,
1101
+ o
1102
+ ]);
1103
+ var u = [r.classNames.root, r.className];
1104
+ r.numberOfMonths > 1 && u.push(r.classNames.multiple_months), r.showWeekNumber && u.push(r.classNames.with_weeknumber);
1105
+ var f = y(y({}, r.styles.root), r.style), m = Object.keys(a).filter(function(b) {
1106
+ return b.startsWith("data-");
1107
+ }).reduce(function(b, _) {
1108
+ var g;
1109
+ return y(y({}, b), (g = {}, g[_] = a[_], g));
1110
+ }, {}), h = (n = (t = a.components) === null || t === void 0 ? void 0 : t.Months) !== null && n !== void 0 ? n : ra;
1111
+ return s("div", y({ className: u.join(" "), style: f, dir: r.dir, id: r.id, nonce: a.nonce, title: a.title, lang: a.lang }, m, { children: s(h, { children: i.displayMonths.map(function(b, _) {
1112
+ return s(aa, { displayIndex: _, displayMonth: b }, _);
1113
+ }) }) }));
1114
+ }
1115
+ function ia(e) {
1116
+ var t = e.children, n = Sn(e, ["children"]);
1117
+ return s(Gn, { initialProps: n, children: s(ot, { children: s(At, { initialProps: n, children: s(ht, { initialProps: n, children: s(bt, { initialProps: n, children: s(Ct, { children: s(Et, { children: t }) }) }) }) }) }) });
1118
+ }
1119
+ function la(e) {
1120
+ return s(ia, y({}, e, { children: s(oa, { initialProps: e }) }));
1121
+ }
1122
+ function sa({ className: e, classNames: t, showOutsideDays: n = !0, ...a }) {
1123
+ return /* @__PURE__ */ s(
1124
+ la,
1125
+ {
1126
+ showOutsideDays: n,
1127
+ className: z("p-3", e),
1128
+ classNames: {
1129
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
1130
+ month: "space-y-4",
1131
+ caption: "flex justify-center pt-1 relative items-center",
1132
+ caption_label: "text-sm font-medium",
1133
+ nav: "space-x-1 flex items-center",
1134
+ nav_button: z(
1135
+ Ne({ variant: "outline" }),
1136
+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
1137
+ ),
1138
+ nav_button_previous: "absolute left-1",
1139
+ nav_button_next: "absolute right-1",
1140
+ table: "w-full border-collapse space-y-1",
1141
+ head_row: "flex",
1142
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
1143
+ row: "flex w-full mt-2",
1144
+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
1145
+ day: z(
1146
+ Ne({ variant: "ghost" }),
1147
+ "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
1148
+ ),
1149
+ day_range_end: "day-range-end",
1150
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1151
+ day_today: "bg-accent text-accent-foreground",
1152
+ day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
1153
+ day_disabled: "text-muted-foreground opacity-50",
1154
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1155
+ day_hidden: "invisible",
1156
+ ...t
1157
+ },
1158
+ components: {
1159
+ IconLeft: () => /* @__PURE__ */ s(hn, { className: "h-4 w-4" }),
1160
+ IconRight: () => /* @__PURE__ */ s(mn, { className: "h-4 w-4" })
1161
+ },
1162
+ ...a
1163
+ }
1164
+ );
1165
+ }
1166
+ sa.displayName = "Calendar";
1167
+ export {
1168
+ sa as C,
1169
+ _n as L,
1170
+ pa as a,
1171
+ O as b,
1172
+ de as c,
1173
+ me as d,
1174
+ ve as e,
1175
+ k as f,
1176
+ hn as g,
1177
+ he as h,
1178
+ C as i,
1179
+ ae as j,
1180
+ x as s
1181
+ };
1182
+ //# sourceMappingURL=calendar-BFWc4IB7.js.map