@rpcbase/ui 0.177.0 → 0.178.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 (345) hide show
  1. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  2. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  3. package/dist/index10.js +1 -1
  4. package/dist/index100.js +3 -3
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js +4 -6
  7. package/dist/index101.js.map +1 -1
  8. package/dist/index102.js +6 -145
  9. package/dist/index102.js.map +1 -1
  10. package/dist/index103.js +144 -38
  11. package/dist/index103.js.map +1 -1
  12. package/dist/index104.js +39 -4
  13. package/dist/index104.js.map +1 -1
  14. package/dist/index105.js +4 -7
  15. package/dist/index105.js.map +1 -1
  16. package/dist/index106.js +6 -12
  17. package/dist/index106.js.map +1 -1
  18. package/dist/index107.js +13 -13
  19. package/dist/index107.js.map +1 -1
  20. package/dist/index108.js +13 -7
  21. package/dist/index108.js.map +1 -1
  22. package/dist/index109.js +6 -30
  23. package/dist/index109.js.map +1 -1
  24. package/dist/index11.js +269 -269
  25. package/dist/index11.js.map +1 -1
  26. package/dist/index110.js +31 -10
  27. package/dist/index110.js.map +1 -1
  28. package/dist/index111.js +10 -10
  29. package/dist/index111.js.map +1 -1
  30. package/dist/index112.js +10 -8
  31. package/dist/index112.js.map +1 -1
  32. package/dist/index113.js +8 -13
  33. package/dist/index113.js.map +1 -1
  34. package/dist/index114.js +13 -101
  35. package/dist/index114.js.map +1 -1
  36. package/dist/index115.js +102 -20
  37. package/dist/index115.js.map +1 -1
  38. package/dist/index116.js +20 -54
  39. package/dist/index116.js.map +1 -1
  40. package/dist/index117.js +51 -70
  41. package/dist/index117.js.map +1 -1
  42. package/dist/index118.js +72 -9
  43. package/dist/index118.js.map +1 -1
  44. package/dist/index119.js +9 -20
  45. package/dist/index119.js.map +1 -1
  46. package/dist/index12.js +1 -1
  47. package/dist/index120.js +20 -16
  48. package/dist/index120.js.map +1 -1
  49. package/dist/index121.js +16 -23
  50. package/dist/index121.js.map +1 -1
  51. package/dist/index122.js +23 -6
  52. package/dist/index122.js.map +1 -1
  53. package/dist/index123.js +6 -5
  54. package/dist/index123.js.map +1 -1
  55. package/dist/index124.js +5 -23
  56. package/dist/index124.js.map +1 -1
  57. package/dist/index125.js +24 -35
  58. package/dist/index125.js.map +1 -1
  59. package/dist/index126.js +35 -16
  60. package/dist/index126.js.map +1 -1
  61. package/dist/index127.js +16 -7
  62. package/dist/index127.js.map +1 -1
  63. package/dist/index128.js +6 -4
  64. package/dist/index128.js.map +1 -1
  65. package/dist/index129.js +4 -4
  66. package/dist/index129.js.map +1 -1
  67. package/dist/index13.js +2 -2
  68. package/dist/index130.js +4 -4
  69. package/dist/index130.js.map +1 -1
  70. package/dist/index131.js +4 -4
  71. package/dist/index131.js.map +1 -1
  72. package/dist/index132.js +4 -3
  73. package/dist/index132.js.map +1 -1
  74. package/dist/index133.js +3 -6
  75. package/dist/index133.js.map +1 -1
  76. package/dist/index134.js +7 -24
  77. package/dist/index134.js.map +1 -1
  78. package/dist/index135.js +24 -8
  79. package/dist/index135.js.map +1 -1
  80. package/dist/index136.js +7 -6
  81. package/dist/index136.js.map +1 -1
  82. package/dist/index137.js +6 -5
  83. package/dist/index137.js.map +1 -1
  84. package/dist/index138.js +5 -3
  85. package/dist/index138.js.map +1 -1
  86. package/dist/index139.js +3 -3
  87. package/dist/index139.js.map +1 -1
  88. package/dist/index14.js +4 -4
  89. package/dist/index140.js +3 -4
  90. package/dist/index140.js.map +1 -1
  91. package/dist/index141.js +4 -3
  92. package/dist/index141.js.map +1 -1
  93. package/dist/index142.js +3 -4
  94. package/dist/index142.js.map +1 -1
  95. package/dist/index143.js +4 -3
  96. package/dist/index143.js.map +1 -1
  97. package/dist/index144.js +3 -3
  98. package/dist/index144.js.map +1 -1
  99. package/dist/index145.js +3 -3
  100. package/dist/index145.js.map +1 -1
  101. package/dist/index146.js +3 -46
  102. package/dist/index146.js.map +1 -1
  103. package/dist/index147.js +44 -51
  104. package/dist/index147.js.map +1 -1
  105. package/dist/index148.js +2 -2
  106. package/dist/index15.js +1 -1
  107. package/dist/index150.js +2 -2
  108. package/dist/index153.js +5 -605
  109. package/dist/index153.js.map +1 -1
  110. package/dist/index154.js +68 -5
  111. package/dist/index154.js.map +1 -1
  112. package/dist/index155.js +2 -69
  113. package/dist/index155.js.map +1 -1
  114. package/dist/index156.js +364 -2
  115. package/dist/index156.js.map +1 -1
  116. package/dist/index157.js +201 -303
  117. package/dist/index157.js.map +1 -1
  118. package/dist/index158.js +46 -247
  119. package/dist/index158.js.map +1 -1
  120. package/dist/index159.js +42 -56
  121. package/dist/index159.js.map +1 -1
  122. package/dist/index16.js +1 -1
  123. package/dist/index160.js +169 -46
  124. package/dist/index160.js.map +1 -1
  125. package/dist/index161.js +96 -156
  126. package/dist/index161.js.map +1 -1
  127. package/dist/index162.js +24 -109
  128. package/dist/index162.js.map +1 -1
  129. package/dist/index163.js +8 -25
  130. package/dist/index163.js.map +1 -1
  131. package/dist/index164.js +5 -8
  132. package/dist/index164.js.map +1 -1
  133. package/dist/index165.js +5 -4
  134. package/dist/index165.js.map +1 -1
  135. package/dist/index166.js +4 -5
  136. package/dist/index166.js.map +1 -1
  137. package/dist/index167.js +466 -4
  138. package/dist/index167.js.map +1 -1
  139. package/dist/index168.js +139 -420
  140. package/dist/index168.js.map +1 -1
  141. package/dist/index169.js +71 -149
  142. package/dist/index169.js.map +1 -1
  143. package/dist/index17.js +1 -1
  144. package/dist/index170.js +229 -74
  145. package/dist/index170.js.map +1 -1
  146. package/dist/index171.js +9 -262
  147. package/dist/index171.js.map +1 -1
  148. package/dist/index172.js +42 -9
  149. package/dist/index172.js.map +1 -1
  150. package/dist/index173.js +4 -42
  151. package/dist/index173.js.map +1 -1
  152. package/dist/index174.js +605 -4
  153. package/dist/index174.js.map +1 -1
  154. package/dist/index179.js +1 -1
  155. package/dist/index18.js +314 -312
  156. package/dist/index18.js.map +1 -1
  157. package/dist/index19.js +7 -7
  158. package/dist/index20.js +6 -6
  159. package/dist/index20.js.map +1 -1
  160. package/dist/index21.js +1 -1
  161. package/dist/index22.js +1 -1
  162. package/dist/index226.js +1 -1
  163. package/dist/index227.js +1 -1
  164. package/dist/index229.js +1 -1
  165. package/dist/index23.js +2 -2
  166. package/dist/index231.js +1 -1
  167. package/dist/index232.js +1 -1
  168. package/dist/index233.js +4 -4
  169. package/dist/index234.js +2 -2
  170. package/dist/index238.js +12 -66
  171. package/dist/index238.js.map +1 -1
  172. package/dist/index239.js +150 -176
  173. package/dist/index239.js.map +1 -1
  174. package/dist/index24.js +1 -1
  175. package/dist/index240.js +27 -43
  176. package/dist/index240.js.map +1 -1
  177. package/dist/index241.js +9 -13
  178. package/dist/index241.js.map +1 -1
  179. package/dist/index242.js +40 -147
  180. package/dist/index242.js.map +1 -1
  181. package/dist/index243.js +10 -29
  182. package/dist/index243.js.map +1 -1
  183. package/dist/index244.js +44 -9
  184. package/dist/index244.js.map +1 -1
  185. package/dist/index245.js +88 -40
  186. package/dist/index245.js.map +1 -1
  187. package/dist/index246.js +85 -10
  188. package/dist/index246.js.map +1 -1
  189. package/dist/index247.js +102 -41
  190. package/dist/index247.js.map +1 -1
  191. package/dist/index248.js +45 -88
  192. package/dist/index248.js.map +1 -1
  193. package/dist/index249.js +10 -85
  194. package/dist/index249.js.map +1 -1
  195. package/dist/index250.js +28 -96
  196. package/dist/index250.js.map +1 -1
  197. package/dist/index251.js +8 -52
  198. package/dist/index251.js.map +1 -1
  199. package/dist/index252.js +115 -10
  200. package/dist/index252.js.map +1 -1
  201. package/dist/index253.js +16 -36
  202. package/dist/index253.js.map +1 -1
  203. package/dist/index254.js +15 -8
  204. package/dist/index254.js.map +1 -1
  205. package/dist/index255.js +3 -116
  206. package/dist/index255.js.map +1 -1
  207. package/dist/index256.js +35 -16
  208. package/dist/index256.js.map +1 -1
  209. package/dist/index257.js +19 -14
  210. package/dist/index257.js.map +1 -1
  211. package/dist/index258.js +9 -3
  212. package/dist/index258.js.map +1 -1
  213. package/dist/index259.js +8 -36
  214. package/dist/index259.js.map +1 -1
  215. package/dist/index260.js +67 -20
  216. package/dist/index260.js.map +1 -1
  217. package/dist/index261.js +180 -9
  218. package/dist/index261.js.map +1 -1
  219. package/dist/index262.js +46 -8
  220. package/dist/index262.js.map +1 -1
  221. package/dist/index263.js +4 -4
  222. package/dist/index265.js +2 -2
  223. package/dist/index27.js +37 -3
  224. package/dist/index27.js.map +1 -1
  225. package/dist/index277.js +1 -1
  226. package/dist/index28.js +3 -125
  227. package/dist/index28.js.map +1 -1
  228. package/dist/index29.js +120 -227
  229. package/dist/index29.js.map +1 -1
  230. package/dist/index30.js +229 -21
  231. package/dist/index30.js.map +1 -1
  232. package/dist/index31.js +23 -50
  233. package/dist/index31.js.map +1 -1
  234. package/dist/index32.js +50 -2640
  235. package/dist/index32.js.map +1 -1
  236. package/dist/index33.js +2598 -351
  237. package/dist/index33.js.map +1 -1
  238. package/dist/index34.js +375 -214
  239. package/dist/index34.js.map +1 -1
  240. package/dist/index35.js +230 -19
  241. package/dist/index35.js.map +1 -1
  242. package/dist/index36.js +18 -138
  243. package/dist/index36.js.map +1 -1
  244. package/dist/index37.js +125 -170
  245. package/dist/index37.js.map +1 -1
  246. package/dist/index38.js +174 -64
  247. package/dist/index38.js.map +1 -1
  248. package/dist/index39.js +74 -88
  249. package/dist/index39.js.map +1 -1
  250. package/dist/index4.js +8 -8
  251. package/dist/index4.js.map +1 -1
  252. package/dist/index40.js +98 -5
  253. package/dist/index40.js.map +1 -1
  254. package/dist/index41.js +5 -843
  255. package/dist/index41.js.map +1 -1
  256. package/dist/index42.js +832 -54
  257. package/dist/index42.js.map +1 -1
  258. package/dist/index43.js +66 -37
  259. package/dist/index43.js.map +1 -1
  260. package/dist/index46.js +1 -1
  261. package/dist/index47.js +1 -1
  262. package/dist/index48.js +7 -205
  263. package/dist/index48.js.map +1 -1
  264. package/dist/index49.js +33 -6
  265. package/dist/index49.js.map +1 -1
  266. package/dist/index5.js +1 -1
  267. package/dist/index50.js +26 -33
  268. package/dist/index50.js.map +1 -1
  269. package/dist/index51.js +7 -26
  270. package/dist/index51.js.map +1 -1
  271. package/dist/index52.js +11 -7
  272. package/dist/index52.js.map +1 -1
  273. package/dist/index53.js +205 -12
  274. package/dist/index53.js.map +1 -1
  275. package/dist/index55.js +2 -2
  276. package/dist/index56.js +1 -1
  277. package/dist/index57.js +1 -1
  278. package/dist/index59.js +4 -4
  279. package/dist/index61.js +4 -4
  280. package/dist/index62.js +2 -2
  281. package/dist/index63.js +2 -2
  282. package/dist/index67.js +2 -2
  283. package/dist/index70.js +6 -2
  284. package/dist/index70.js.map +1 -1
  285. package/dist/index71.js +8 -2
  286. package/dist/index71.js.map +1 -1
  287. package/dist/index72.js +5 -5
  288. package/dist/index72.js.map +1 -1
  289. package/dist/index73.js +53 -7
  290. package/dist/index73.js.map +1 -1
  291. package/dist/index74.js +2 -6
  292. package/dist/index74.js.map +1 -1
  293. package/dist/index75.js +2 -52
  294. package/dist/index75.js.map +1 -1
  295. package/dist/index76.js +52 -5
  296. package/dist/index76.js.map +1 -1
  297. package/dist/index77.js +4 -4
  298. package/dist/index77.js.map +1 -1
  299. package/dist/index78.js +4 -15
  300. package/dist/index78.js.map +1 -1
  301. package/dist/index79.js +15 -5
  302. package/dist/index79.js.map +1 -1
  303. package/dist/index8.js +1 -1
  304. package/dist/index80.js +5 -7
  305. package/dist/index80.js.map +1 -1
  306. package/dist/index81.js +6 -15
  307. package/dist/index81.js.map +1 -1
  308. package/dist/index82.js +16 -4
  309. package/dist/index82.js.map +1 -1
  310. package/dist/index83.js +1 -1
  311. package/dist/index83.js.map +1 -1
  312. package/dist/index84.js +4 -5
  313. package/dist/index84.js.map +1 -1
  314. package/dist/index85.js +4 -4
  315. package/dist/index85.js.map +1 -1
  316. package/dist/index86.js +5 -4
  317. package/dist/index86.js.map +1 -1
  318. package/dist/index87.js +2 -2
  319. package/dist/index87.js.map +1 -1
  320. package/dist/index88.js +3 -5
  321. package/dist/index88.js.map +1 -1
  322. package/dist/index89.js +6 -24
  323. package/dist/index89.js.map +1 -1
  324. package/dist/index9.js +1 -1
  325. package/dist/index90.js +24 -6
  326. package/dist/index90.js.map +1 -1
  327. package/dist/index91.js +6 -4
  328. package/dist/index91.js.map +1 -1
  329. package/dist/index92.js +3 -5
  330. package/dist/index92.js.map +1 -1
  331. package/dist/index93.js +6 -5
  332. package/dist/index93.js.map +1 -1
  333. package/dist/index94.js +5 -4
  334. package/dist/index94.js.map +1 -1
  335. package/dist/index95.js +3 -4
  336. package/dist/index95.js.map +1 -1
  337. package/dist/index96.js +5 -4
  338. package/dist/index96.js.map +1 -1
  339. package/dist/index97.js +4 -8
  340. package/dist/index97.js.map +1 -1
  341. package/dist/index98.js +8 -5
  342. package/dist/index98.js.map +1 -1
  343. package/dist/index99.js +5 -4
  344. package/dist/index99.js.map +1 -1
  345. package/package.json +1 -1
package/dist/index11.js CHANGED
@@ -1,29 +1,29 @@
1
- import { j as l } from "./index27.js";
2
- import { ChevronLeft as he, ChevronRight as ve, CalendarDays as le } from "lucide-react";
1
+ import { j as p } from "./index28.js";
2
+ import { ChevronLeft as we, ChevronRight as he, CalendarDays as de } from "lucide-react";
3
3
  import * as r from "react";
4
- import { DismissableLayerBranch as pe } from "./index28.js";
5
- import { createPortal as me } from "react-dom";
6
- import { IMaskInput as xe } from "react-imask";
7
- import De, { InputMask as ke } from "imask";
8
- import { useIsTouchDevice as Ee } from "./index4.js";
9
- import { cn as ee } from "./index2.js";
10
- import { DayPicker as Ne } from "./index29.js";
11
- import { dateMatchModifiers as Pe } from "./index30.js";
12
- const de = De;
13
- typeof de.InputMask != "function" && (de.InputMask = ke);
14
- function ce({
4
+ import { DismissableLayerBranch as le } from "./index29.js";
5
+ import { createPortal as pe } from "react-dom";
6
+ import { IMaskInput as ve } from "react-imask";
7
+ import xe, { InputMask as De } from "imask";
8
+ import { useIsTouchDevice as ke } from "./index4.js";
9
+ import { cn as V } from "./index2.js";
10
+ import { DayPicker as Ee } from "./index30.js";
11
+ import { dateMatchModifiers as Ne } from "./index31.js";
12
+ const fe = xe;
13
+ typeof fe.InputMask != "function" && (fe.InputMask = De);
14
+ function ue({
15
15
  className: u,
16
16
  classNames: t,
17
- components: f,
17
+ components: d,
18
18
  showOutsideDays: c = !0,
19
19
  ...D
20
20
  }) {
21
- return /* @__PURE__ */ l.jsx(
22
- Ne,
21
+ return /* @__PURE__ */ p.jsx(
22
+ Ee,
23
23
  {
24
24
  weekStartsOn: 1,
25
25
  showOutsideDays: c,
26
- className: ee("p-3", u),
26
+ className: V("p-3", u),
27
27
  classNames: {
28
28
  month: "space-y-4",
29
29
  months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
@@ -55,14 +55,14 @@ function ce({
55
55
  ...t
56
56
  },
57
57
  components: {
58
- Chevron: (v) => v.orientation === "left" ? /* @__PURE__ */ l.jsx(he, { ...v, className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(ve, { ...v, className: "h-4 w-4" }),
59
- ...f
58
+ Chevron: (h) => h.orientation === "left" ? /* @__PURE__ */ p.jsx(we, { ...h, className: "h-4 w-4" }) : /* @__PURE__ */ p.jsx(he, { ...h, className: "h-4 w-4" }),
59
+ ...d
60
60
  },
61
61
  ...D
62
62
  }
63
63
  );
64
64
  }
65
- ce.displayName = "DayPicker";
65
+ ue.displayName = "DayPicker";
66
66
  function re(u) {
67
67
  return String(u).padStart(2, "0");
68
68
  }
@@ -70,184 +70,184 @@ function R(u) {
70
70
  const t = new Date(u);
71
71
  return t.setHours(0, 0, 0, 0), t;
72
72
  }
73
- function W(u) {
73
+ function B(u) {
74
74
  return R(new Date(u.getFullYear(), u.getMonth(), 1));
75
75
  }
76
- function T(u) {
76
+ function F(u) {
77
77
  return `${re(u.getDate())}/${re(u.getMonth() + 1)}/${u.getFullYear()}`;
78
78
  }
79
- function se({ day: u, month: t, year: f }) {
80
- if (!Number.isFinite(u) || !Number.isFinite(t) || !Number.isFinite(f)) return null;
81
- const c = new Date(f, t - 1, u);
82
- return c.getFullYear() !== f || c.getMonth() !== t - 1 || c.getDate() !== u ? null : R(c);
79
+ function ie({ day: u, month: t, year: d }) {
80
+ if (!Number.isFinite(u) || !Number.isFinite(t) || !Number.isFinite(d)) return null;
81
+ const c = new Date(d, t - 1, u);
82
+ return c.getFullYear() !== d || c.getMonth() !== t - 1 || c.getDate() !== u ? null : R(c);
83
83
  }
84
- function ue(u, t) {
85
- const f = u.trim();
86
- if (!f) return null;
87
- const c = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(f);
84
+ function se(u, t) {
85
+ const d = u.trim();
86
+ if (!d) return null;
87
+ const c = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(d);
88
88
  if (c)
89
- return se({ day: Number(c[1]), month: Number(c[2]), year: Number(c[3]) });
90
- const D = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(f);
89
+ return ie({ day: Number(c[1]), month: Number(c[2]), year: Number(c[3]) });
90
+ const D = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(d);
91
91
  if (D) {
92
92
  const j = Number(D[3]);
93
- return Number.isFinite(j) ? se({ day: Number(D[1]), month: Number(D[2]), year: 2e3 + j }) : null;
93
+ return Number.isFinite(j) ? ie({ day: Number(D[1]), month: Number(D[2]), year: 2e3 + j }) : null;
94
94
  }
95
- const v = /^(\d{2})\/(\d{2})$/.exec(f);
96
- return v ? se({ day: Number(v[1]), month: Number(v[2]), year: t.getFullYear() }) : null;
95
+ const h = /^(\d{2})\/(\d{2})$/.exec(d);
96
+ return h ? ie({ day: Number(h[1]), month: Number(h[2]), year: t.getFullYear() }) : null;
97
97
  }
98
- const ge = r.forwardRef(
98
+ const me = r.forwardRef(
99
99
  function({
100
100
  value: t,
101
- onChange: f,
101
+ onChange: d,
102
102
  onValueUpdate: c,
103
103
  className: D,
104
- inputClassName: v,
104
+ inputClassName: h,
105
105
  placeholder: j = "DD/MM/YYYY",
106
- disabled: p,
107
- readOnly: K,
108
- open: q,
109
- onOpenChange: G,
110
- dayPickerComponent: J,
111
- dayPickerProps: S,
112
- onFocus: Q,
106
+ disabled: m,
107
+ readOnly: W,
108
+ open: K,
109
+ onOpenChange: q,
110
+ dayPickerComponent: G,
111
+ dayPickerProps: T,
112
+ onFocus: J,
113
113
  onBlur: C,
114
- onKeyDown: Y,
115
- onPointerDown: X,
114
+ onKeyDown: S,
115
+ onPointerDown: Q,
116
116
  onMouseDown: ne,
117
- ...x
117
+ ...v
118
118
  }, k) {
119
- const L = r.useRef(null), I = r.useRef(null), O = r.useRef(null), Z = r.useRef(!1), H = r.useRef(!1), $ = r.useRef(!1), E = r.useRef(!1), B = r.useRef(null), [d, w] = r.useState(!1), o = q ?? d, a = G ?? w, [b, N] = r.useState(() => t ? T(t) : ""), g = r.useMemo(() => ue(b, /* @__PURE__ */ new Date()), [b]), [m, P] = r.useState(() => W(t ?? /* @__PURE__ */ new Date())), [M, oe] = r.useState(() => ({
119
+ const I = r.useRef(null), P = r.useRef(null), Y = r.useRef(null), X = r.useRef(!1), $ = r.useRef(!1), E = r.useRef(!1), O = r.useRef(!1), f = r.useRef(null), [b, g] = r.useState(!1), a = K ?? b, l = q ?? g, [M, x] = r.useState(() => t ? F(t) : ""), i = r.useMemo(() => se(M, /* @__PURE__ */ new Date()), [M]), [z, N] = r.useState(() => B(t ?? /* @__PURE__ */ new Date())), [ee, te] = r.useState(() => ({
120
120
  left: 0,
121
121
  top: 0
122
- })), te = typeof window > "u" ? r.useEffect : r.useLayoutEffect, ie = r.useCallback(
122
+ })), oe = r.useCallback(
123
123
  (e) => {
124
124
  c && c(e);
125
125
  },
126
126
  [c]
127
- ), U = r.useCallback(
127
+ ), Z = r.useCallback(
128
128
  (e) => {
129
- c && c(e), f(e);
129
+ c && c(e), d(e);
130
130
  },
131
- [f, c]
131
+ [d, c]
132
132
  );
133
133
  r.useEffect(() => {
134
- Z.current || N(t ? T(t) : "");
134
+ X.current || x(t ? F(t) : "");
135
135
  }, [t]), r.useEffect(() => {
136
- o && P(W(t ?? /* @__PURE__ */ new Date()));
137
- }, [o, t]), r.useEffect(() => {
138
- o && g && P(W(g));
139
- }, [g, o]), r.useEffect(() => {
140
- if (!o) return;
136
+ a && N(B(t ?? /* @__PURE__ */ new Date()));
137
+ }, [a, t]), r.useEffect(() => {
138
+ a && i && N(B(i));
139
+ }, [i, a]), r.useEffect(() => {
140
+ if (!a) return;
141
141
  const e = (n) => {
142
142
  const s = n.target;
143
- s instanceof Node && (L.current?.contains(s) || I.current?.contains(s) || a(!1));
144
- }, i = (n) => {
145
- n.key === "Escape" && a(!1);
143
+ s instanceof Node && (I.current?.contains(s) || P.current?.contains(s) || l(!1));
144
+ }, o = (n) => {
145
+ n.key === "Escape" && l(!1);
146
146
  };
147
- return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", i, !0), () => {
148
- document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", i, !0);
147
+ return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", o, !0), () => {
148
+ document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", o, !0);
149
149
  };
150
- }, [o]), r.useEffect(() => {
151
- if (!o || typeof window > "u" || !("IntersectionObserver" in window))
150
+ }, [a]), r.useEffect(() => {
151
+ if (!a || typeof window > "u" || !("IntersectionObserver" in window))
152
152
  return;
153
- const e = L.current;
153
+ const e = I.current;
154
154
  if (!e)
155
155
  return;
156
- let i = !0;
156
+ let o = !0;
157
157
  const n = new IntersectionObserver((s) => {
158
- if (!i)
158
+ if (!o)
159
159
  return;
160
160
  const y = s[0];
161
- y && !y.isIntersecting && a(!1);
161
+ y && !y.isIntersecting && l(!1);
162
162
  });
163
163
  return n.observe(e), () => {
164
- i = !1, n.disconnect();
164
+ o = !1, n.disconnect();
165
165
  };
166
- }, [o]);
167
- const ye = r.useCallback(
166
+ }, [a]);
167
+ const ge = r.useCallback(
168
168
  (e) => {
169
- O.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
169
+ Y.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
170
170
  },
171
171
  [k]
172
- ), ae = () => a(!1), we = J ?? ce, z = r.useCallback(() => {
172
+ ), ce = () => l(!1), ye = G ?? ue, A = r.useCallback(() => {
173
173
  if (typeof window > "u") return;
174
- const e = L.current, i = I.current;
175
- if (!e || !i) return;
176
- const n = e.getBoundingClientRect(), s = i.offsetWidth, y = i.offsetHeight, F = window.innerWidth ?? 0, A = window.innerHeight ?? 0, h = 8;
177
- let V = n.left;
178
- V + s > F - h && (V = Math.max(h, F - s - h)), V < h && (V = h);
179
- let _ = n.bottom + h;
180
- const be = _ + y > A - h, fe = n.top - y - h;
181
- be && fe >= h && (_ = fe), _ < h && (_ = h), _ + y > A - h && (_ = Math.max(h, A - y - h)), oe({ left: V, top: _ });
174
+ const e = I.current, o = P.current;
175
+ if (!e || !o) return;
176
+ const n = e.getBoundingClientRect(), s = o.offsetWidth, y = o.offsetHeight, L = window.innerWidth ?? 0, _ = window.innerHeight ?? 0, w = 8;
177
+ let U = n.left;
178
+ U + s > L - w && (U = Math.max(w, L - s - w)), U < w && (U = w);
179
+ let H = n.bottom + w;
180
+ const be = H + y > _ - w, ae = n.top - y - w;
181
+ be && ae >= w && (H = ae), H < w && (H = w), H + y > _ - w && (H = Math.max(w, _ - y - w)), te({ left: U, top: H });
182
182
  }, []);
183
- return te(() => {
184
- if (!o || p || typeof window > "u") return;
185
- z();
186
- const e = window.requestAnimationFrame(z);
187
- return window.addEventListener("scroll", z, !0), window.addEventListener("resize", z), () => {
188
- window.cancelAnimationFrame(e), window.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z);
183
+ return r.useLayoutEffect(() => {
184
+ if (!a || m || typeof window > "u") return;
185
+ A();
186
+ const e = window.requestAnimationFrame(A);
187
+ return window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
188
+ window.cancelAnimationFrame(e), window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
189
189
  };
190
- }, [p, o, z]), /* @__PURE__ */ l.jsxs("div", { ref: L, "data-slot": "day-picker-input", className: ee("relative group", D), children: [
191
- /* @__PURE__ */ l.jsx(
192
- xe,
190
+ }, [m, a, A]), /* @__PURE__ */ p.jsxs("div", { ref: I, "data-slot": "day-picker-input", className: V("relative group", D), children: [
191
+ /* @__PURE__ */ p.jsx(
192
+ ve,
193
193
  {
194
- ...x,
194
+ ...v,
195
195
  "data-slot": "day-picker-input-input",
196
- disabled: p,
197
- readOnly: K,
196
+ disabled: m,
197
+ readOnly: W,
198
198
  autoComplete: "off",
199
- inputRef: ye,
199
+ inputRef: ge,
200
200
  mask: [
201
201
  { mask: "00/00", lazy: !0 },
202
202
  { mask: "00/00/00", lazy: !0 },
203
203
  { mask: "00/00/0000", lazy: !0 }
204
204
  ],
205
- dispatch: (e, i) => {
206
- const n = (i.value + e).replace(/\D/g, "");
207
- return n.length <= 4 ? i.compiledMasks[0] : n.length <= 6 ? i.compiledMasks[1] : i.compiledMasks[2];
205
+ dispatch: (e, o) => {
206
+ const n = (o.value + e).replace(/\D/g, "");
207
+ return n.length <= 4 ? o.compiledMasks[0] : n.length <= 6 ? o.compiledMasks[1] : o.compiledMasks[2];
208
208
  },
209
209
  placeholder: j,
210
- value: b,
211
- className: ee(
210
+ value: M,
211
+ className: V(
212
212
  "flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
213
213
  "transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
214
- v
214
+ h
215
215
  ),
216
216
  onAccept: (e) => {
217
- const i = typeof e == "string" ? e : String(e ?? ""), n = b.replace(/\D/g, "").length;
218
- N(i), i.replace(/\D/g, "").length === 0 && (o && P(W(/* @__PURE__ */ new Date())), n !== 0 && ie(null));
217
+ const o = typeof e == "string" ? e : String(e ?? ""), n = M.replace(/\D/g, "").length;
218
+ x(o), o.replace(/\D/g, "").length === 0 && (a && N(B(/* @__PURE__ */ new Date())), n !== 0 && oe(null));
219
219
  },
220
220
  onComplete: (e) => {
221
- const i = typeof e == "string" ? e : String(e ?? "");
222
- if (B.current === i) {
223
- B.current = null;
221
+ const o = typeof e == "string" ? e : String(e ?? "");
222
+ if (f.current === o) {
223
+ f.current = null;
224
224
  return;
225
225
  }
226
- const n = ue(i, /* @__PURE__ */ new Date());
227
- n && (t && n.getTime() === R(t).getTime() || ie(n));
226
+ const n = se(o, /* @__PURE__ */ new Date());
227
+ n && (t && n.getTime() === R(t).getTime() || oe(n));
228
228
  },
229
229
  onPointerDown: (e) => {
230
- H.current = !0, $.current = typeof document < "u" && document.activeElement === e.currentTarget, X?.(e);
230
+ $.current = !0, E.current = typeof document < "u" && document.activeElement === e.currentTarget, Q?.(e);
231
231
  },
232
232
  onMouseDown: (e) => {
233
- H.current = !0, $.current = typeof document < "u" && document.activeElement === e.currentTarget, ne?.(e);
233
+ $.current = !0, E.current = typeof document < "u" && document.activeElement === e.currentTarget, ne?.(e);
234
234
  },
235
235
  onFocus: (e) => {
236
- const i = !H.current || !$.current;
237
- if (H.current = !1, $.current = !1, Z.current = !0, Q?.(e), i) {
236
+ const o = !$.current || !E.current;
237
+ if ($.current = !1, E.current = !1, X.current = !0, J?.(e), o) {
238
238
  const n = e.currentTarget;
239
239
  requestAnimationFrame(() => n.select());
240
240
  }
241
- p || a(!0);
241
+ m || l(!0);
242
242
  },
243
243
  onKeyDown: (e) => {
244
- const i = e.defaultPrevented;
245
- if (Y?.(e), !(!i && e.defaultPrevented)) {
244
+ const o = e.defaultPrevented;
245
+ if (S?.(e), !(!o && e.defaultPrevented)) {
246
246
  if (e.key === "Enter") {
247
- if (!g)
247
+ if (!i)
248
248
  return;
249
- if (e.preventDefault(), o) {
250
- const n = `${g.getFullYear()}-${re(g.getMonth() + 1)}-${re(g.getDate())}`, s = I.current?.querySelector(
249
+ if (e.preventDefault(), a) {
250
+ const n = `${i.getFullYear()}-${re(i.getMonth() + 1)}-${re(i.getDate())}`, s = P.current?.querySelector(
251
251
  `[data-day='${n}']:not([data-outside]) button`
252
252
  );
253
253
  if (s instanceof HTMLButtonElement) {
@@ -256,300 +256,300 @@ const ge = r.forwardRef(
256
256
  s.focus();
257
257
  }
258
258
  }
259
- N(T(g)), U(g), a(!1);
259
+ x(F(i)), Z(i), l(!1);
260
260
  return;
261
261
  }
262
262
  if (e.key === "ArrowUp" || e.key === "ArrowDown") {
263
- const n = g ?? t;
263
+ const n = i ?? t;
264
264
  if (!n)
265
265
  return;
266
266
  const s = R(new Date(n));
267
- if (s.setDate(s.getDate() + (e.key === "ArrowUp" ? 1 : -1)), S?.disabled && Pe(s, S.disabled))
267
+ if (s.setDate(s.getDate() + (e.key === "ArrowUp" ? 1 : -1)), T?.disabled && Ne(s, T.disabled))
268
268
  return;
269
269
  e.preventDefault();
270
- const y = T(s);
271
- B.current = y, N(y), ie(s);
270
+ const y = F(s);
271
+ f.current = y, x(y), oe(s);
272
272
  return;
273
273
  }
274
- o || (e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && !e.ctrlKey && !e.metaKey && !e.altKey && a(!0), e.key === "Tab" && !e.defaultPrevented && a(!1);
274
+ a || (e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && !e.ctrlKey && !e.metaKey && !e.altKey && l(!0), e.key === "Tab" && !e.defaultPrevented && l(!1);
275
275
  }
276
276
  },
277
277
  onBlur: (e) => {
278
- Z.current = !1, C?.(e);
279
- const i = E.current;
280
- if (E.current = !1, i)
278
+ X.current = !1, C?.(e);
279
+ const o = O.current;
280
+ if (O.current = !1, o)
281
281
  return;
282
282
  const n = e.relatedTarget;
283
283
  if (n instanceof Node) {
284
- const F = L.current;
285
- if (!F || F.contains(n) || I.current?.contains(n))
284
+ const L = I.current;
285
+ if (!L || L.contains(n) || P.current?.contains(n))
286
286
  return;
287
287
  }
288
- o && typeof window < "u" && requestAnimationFrame(() => {
289
- const F = L.current;
290
- if (!F)
288
+ a && typeof window < "u" && requestAnimationFrame(() => {
289
+ const L = I.current;
290
+ if (!L)
291
291
  return;
292
- const A = document.activeElement;
293
- A && (F.contains(A) || I.current?.contains(A)) || a(!1);
292
+ const _ = document.activeElement;
293
+ _ && (L.contains(_) || P.current?.contains(_)) || l(!1);
294
294
  });
295
- const s = b.trim();
295
+ const s = M.trim();
296
296
  if (s === "") {
297
- t && (N(""), U(null));
297
+ t && (x(""), Z(null));
298
298
  return;
299
299
  }
300
- const y = ue(s, /* @__PURE__ */ new Date());
300
+ const y = se(s, /* @__PURE__ */ new Date());
301
301
  if (y) {
302
- N(T(y)), (!t || y.getTime() !== R(t).getTime()) && U(y);
302
+ x(F(y)), (!t || y.getTime() !== R(t).getTime()) && Z(y);
303
303
  return;
304
304
  }
305
- N(t ? T(t) : "");
305
+ x(t ? F(t) : "");
306
306
  }
307
307
  }
308
308
  ),
309
- /* @__PURE__ */ l.jsx(
309
+ /* @__PURE__ */ p.jsx(
310
310
  "button",
311
311
  {
312
312
  type: "button",
313
313
  tabIndex: -1,
314
- disabled: p,
314
+ disabled: m,
315
315
  "aria-label": "Open calendar",
316
316
  "data-slot": "day-picker-input-trigger",
317
317
  className: "absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground",
318
318
  onPointerDown: (e) => {
319
- e.preventDefault(), !p && O.current?.focus({ preventScroll: !0 });
319
+ e.preventDefault(), !m && Y.current?.focus({ preventScroll: !0 });
320
320
  },
321
321
  onMouseDown: (e) => {
322
- e.preventDefault(), !p && O.current?.focus({ preventScroll: !0 });
322
+ e.preventDefault(), !m && Y.current?.focus({ preventScroll: !0 });
323
323
  },
324
324
  onClick: () => {
325
- p || (O.current?.focus({ preventScroll: !0 }), a(!0));
325
+ m || (Y.current?.focus({ preventScroll: !0 }), l(!0));
326
326
  },
327
- children: /* @__PURE__ */ l.jsx(le, { "aria-hidden": !0, className: "size-4" })
327
+ children: /* @__PURE__ */ p.jsx(de, { "aria-hidden": !0, className: "size-4" })
328
328
  }
329
329
  ),
330
- o && !p && (() => {
331
- const e = b.trim() === "" ? void 0 : g ?? t ?? void 0, i = /* @__PURE__ */ l.jsx(pe, { children: /* @__PURE__ */ l.jsx(
330
+ a && !m && (() => {
331
+ const e = M.trim() === "" ? void 0 : i ?? t ?? void 0, o = /* @__PURE__ */ p.jsx(le, { children: /* @__PURE__ */ p.jsx(
332
332
  "div",
333
333
  {
334
- ref: I,
334
+ ref: P,
335
335
  "data-slot": "day-picker-input-popover",
336
336
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
337
- style: { left: M.left, top: M.top },
337
+ style: { left: ee.left, top: ee.top },
338
338
  onPointerDownCapture: () => {
339
- E.current = !0;
339
+ O.current = !0;
340
340
  },
341
341
  onMouseDownCapture: () => {
342
- E.current = !0;
342
+ O.current = !0;
343
343
  },
344
- children: /* @__PURE__ */ l.jsx(
345
- we,
344
+ children: /* @__PURE__ */ p.jsx(
345
+ ye,
346
346
  {
347
347
  mode: "single",
348
- month: m,
349
- onMonthChange: P,
348
+ month: z,
349
+ onMonthChange: N,
350
350
  selected: e,
351
351
  onSelect: (n) => {
352
352
  if (!n) {
353
- t && U(null), N(""), ae();
353
+ t && Z(null), x(""), ce();
354
354
  return;
355
355
  }
356
356
  const s = R(n);
357
- (!t || s.getTime() !== R(t).getTime()) && U(s), N(T(s)), ae();
357
+ (!t || s.getTime() !== R(t).getTime()) && Z(s), x(F(s)), ce();
358
358
  },
359
- ...S
359
+ ...T
360
360
  }
361
361
  )
362
362
  }
363
363
  ) });
364
- return typeof document > "u" ? i : me(i, document.body);
364
+ return typeof document > "u" ? o : pe(o, document.body);
365
365
  })()
366
366
  ] });
367
367
  }
368
368
  );
369
- ge.displayName = "DayPickerInput";
370
- function Me({
369
+ me.displayName = "DayPickerInput";
370
+ function Pe({
371
371
  id: u,
372
372
  value: t,
373
- onChange: f,
373
+ onChange: d,
374
374
  onValueUpdate: c,
375
375
  className: D,
376
- inputClassName: v,
376
+ inputClassName: h,
377
377
  placeholder: j = "DD/MM/YYYY",
378
- disabled: p,
379
- open: K,
380
- onOpenChange: q,
381
- dayPickerComponent: G,
382
- dayPickerProps: J,
383
- triggerTestId: S,
384
- isHydrated: Q
378
+ disabled: m,
379
+ open: W,
380
+ onOpenChange: K,
381
+ dayPickerComponent: q,
382
+ dayPickerProps: G,
383
+ triggerTestId: T,
384
+ isHydrated: J
385
385
  }) {
386
- const C = r.useRef(null), Y = r.useRef(null), [X, ne] = r.useState(!1), x = K ?? X, k = q ?? ne, [L, I] = r.useState(() => W(t ?? /* @__PURE__ */ new Date())), [O, Z] = r.useState(() => ({
386
+ const C = r.useRef(null), S = r.useRef(null), [Q, ne] = r.useState(!1), v = W ?? Q, k = K ?? ne, [I, P] = r.useState(() => B(t ?? /* @__PURE__ */ new Date())), [Y, X] = r.useState(() => ({
387
387
  left: 0,
388
388
  top: 0
389
- })), H = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
389
+ }));
390
390
  r.useEffect(() => {
391
- x && I(W(t ?? /* @__PURE__ */ new Date()));
392
- }, [x, t]), r.useEffect(() => {
393
- if (!x) return;
394
- const d = (o) => {
395
- const a = o.target;
396
- a instanceof Node && (C.current?.contains(a) || Y.current?.contains(a) || k(!1));
397
- }, w = (o) => {
398
- o.key === "Escape" && k(!1);
391
+ v && P(B(t ?? /* @__PURE__ */ new Date()));
392
+ }, [v, t]), r.useEffect(() => {
393
+ if (!v) return;
394
+ const f = (g) => {
395
+ const a = g.target;
396
+ a instanceof Node && (C.current?.contains(a) || S.current?.contains(a) || k(!1));
397
+ }, b = (g) => {
398
+ g.key === "Escape" && k(!1);
399
399
  };
400
- return document.addEventListener("pointerdown", d, !0), document.addEventListener("keydown", w, !0), () => {
401
- document.removeEventListener("pointerdown", d, !0), document.removeEventListener("keydown", w, !0);
400
+ return document.addEventListener("pointerdown", f, !0), document.addEventListener("keydown", b, !0), () => {
401
+ document.removeEventListener("pointerdown", f, !0), document.removeEventListener("keydown", b, !0);
402
402
  };
403
- }, [x]), r.useEffect(() => {
404
- if (!x || typeof window > "u" || !("IntersectionObserver" in window))
403
+ }, [v]), r.useEffect(() => {
404
+ if (!v || typeof window > "u" || !("IntersectionObserver" in window))
405
405
  return;
406
- const d = C.current;
407
- if (!d)
406
+ const f = C.current;
407
+ if (!f)
408
408
  return;
409
- let w = !0;
410
- const o = new IntersectionObserver((a) => {
411
- if (!w)
409
+ let b = !0;
410
+ const g = new IntersectionObserver((a) => {
411
+ if (!b)
412
412
  return;
413
- const b = a[0];
414
- b && !b.isIntersecting && k(!1);
413
+ const l = a[0];
414
+ l && !l.isIntersecting && k(!1);
415
415
  });
416
- return o.observe(d), () => {
417
- w = !1, o.disconnect();
416
+ return g.observe(f), () => {
417
+ b = !1, g.disconnect();
418
418
  };
419
- }, [x]);
420
- const $ = G ?? ce, E = r.useCallback(() => {
419
+ }, [v]);
420
+ const $ = q ?? ue, E = r.useCallback(() => {
421
421
  if (typeof window > "u") return;
422
- const d = C.current, w = Y.current;
423
- if (!d || !w) return;
424
- const o = d.getBoundingClientRect(), a = w.offsetWidth, b = w.offsetHeight, N = window.innerWidth ?? 0, g = window.innerHeight ?? 0, m = 8;
425
- let P = o.left;
426
- P + a > N - m && (P = Math.max(m, N - a - m)), P < m && (P = m);
427
- let M = o.bottom + m;
428
- const oe = M + b > g - m, te = o.top - b - m;
429
- oe && te >= m && (M = te), M < m && (M = m), M + b > g - m && (M = Math.max(m, g - b - m)), Z({ left: P, top: M });
422
+ const f = C.current, b = S.current;
423
+ if (!f || !b) return;
424
+ const g = f.getBoundingClientRect(), a = b.offsetWidth, l = b.offsetHeight, M = window.innerWidth ?? 0, x = window.innerHeight ?? 0, i = 8;
425
+ let z = g.left;
426
+ z + a > M - i && (z = Math.max(i, M - a - i)), z < i && (z = i);
427
+ let N = g.bottom + i;
428
+ const ee = N + l > x - i, te = g.top - l - i;
429
+ ee && te >= i && (N = te), N < i && (N = i), N + l > x - i && (N = Math.max(i, x - l - i)), X({ left: z, top: N });
430
430
  }, []);
431
- H(() => {
432
- if (!x || p || typeof window > "u") return;
431
+ r.useLayoutEffect(() => {
432
+ if (!v || m || typeof window > "u") return;
433
433
  E();
434
- const d = window.requestAnimationFrame(E);
434
+ const f = window.requestAnimationFrame(E);
435
435
  return window.addEventListener("scroll", E, !0), window.addEventListener("resize", E), () => {
436
- window.cancelAnimationFrame(d), window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E);
436
+ window.cancelAnimationFrame(f), window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E);
437
437
  };
438
- }, [p, x, E]);
439
- const B = r.useCallback(
440
- (d) => {
441
- c && c(d), f(d);
438
+ }, [m, v, E]);
439
+ const O = r.useCallback(
440
+ (f) => {
441
+ c && c(f), d(f);
442
442
  },
443
- [f, c]
443
+ [d, c]
444
444
  );
445
- return /* @__PURE__ */ l.jsxs("div", { ref: C, "data-slot": "day-picker-input", className: ee("relative group", D), children: [
446
- /* @__PURE__ */ l.jsxs(
445
+ return /* @__PURE__ */ p.jsxs("div", { ref: C, "data-slot": "day-picker-input", className: V("relative group", D), children: [
446
+ /* @__PURE__ */ p.jsxs(
447
447
  "button",
448
448
  {
449
449
  id: u,
450
450
  type: "button",
451
- disabled: p,
452
- "data-testid": S,
453
- "data-hydrated": Q ? "true" : void 0,
451
+ disabled: m,
452
+ "data-testid": T,
453
+ "data-hydrated": J ? "true" : void 0,
454
454
  "data-slot": "day-picker-input-input",
455
- className: ee(
455
+ className: V(
456
456
  "flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-left text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
457
457
  "transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
458
458
  !t && "text-muted-foreground",
459
- x && "ring-2 ring-primary ring-offset-2",
460
- v
459
+ v && "ring-2 ring-primary ring-offset-2",
460
+ h
461
461
  ),
462
462
  onClick: () => {
463
- p || k(!x);
463
+ m || k(!v);
464
464
  },
465
465
  children: [
466
- /* @__PURE__ */ l.jsx(
467
- le,
466
+ /* @__PURE__ */ p.jsx(
467
+ de,
468
468
  {
469
469
  "aria-hidden": !0,
470
470
  className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground"
471
471
  }
472
472
  ),
473
- t ? T(t) : j
473
+ t ? F(t) : j
474
474
  ]
475
475
  }
476
476
  ),
477
- x && !p && (() => {
478
- const d = /* @__PURE__ */ l.jsx(pe, { children: /* @__PURE__ */ l.jsx(
477
+ v && !m && (() => {
478
+ const f = /* @__PURE__ */ p.jsx(le, { children: /* @__PURE__ */ p.jsx(
479
479
  "div",
480
480
  {
481
- ref: Y,
481
+ ref: S,
482
482
  "data-slot": "day-picker-input-popover",
483
483
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
484
- style: { left: O.left, top: O.top },
485
- children: /* @__PURE__ */ l.jsx(
484
+ style: { left: Y.left, top: Y.top },
485
+ children: /* @__PURE__ */ p.jsx(
486
486
  $,
487
487
  {
488
488
  mode: "single",
489
- month: L,
490
- onMonthChange: I,
489
+ month: I,
490
+ onMonthChange: P,
491
491
  selected: t ?? void 0,
492
- onSelect: (w) => {
493
- if (!w) {
494
- B(null), k(!1);
492
+ onSelect: (b) => {
493
+ if (!b) {
494
+ O(null), k(!1);
495
495
  return;
496
496
  }
497
- const o = R(w);
498
- (!t || o.getTime() !== R(t).getTime()) && B(o), k(!1);
497
+ const g = R(b);
498
+ (!t || g.getTime() !== R(t).getTime()) && O(g), k(!1);
499
499
  },
500
- ...J
500
+ ...G
501
501
  }
502
502
  )
503
503
  }
504
504
  ) });
505
- return typeof document > "u" ? d : me(d, document.body);
505
+ return typeof document > "u" ? f : pe(f, document.body);
506
506
  })()
507
507
  ] });
508
508
  }
509
- function ze(u) {
510
- if (Ee())
511
- return /* @__PURE__ */ l.jsx(Me, { ...u });
509
+ function Oe(u) {
510
+ if (ke())
511
+ return /* @__PURE__ */ p.jsx(Pe, { ...u });
512
512
  const {
513
- id: f,
513
+ id: d,
514
514
  value: c,
515
515
  onChange: D,
516
- onValueUpdate: v,
516
+ onValueUpdate: h,
517
517
  className: j,
518
- inputClassName: p,
519
- placeholder: K = "DD/MM/YYYY",
520
- disabled: q,
521
- readOnly: G,
522
- dayPickerComponent: J,
523
- dayPickerProps: S,
524
- triggerTestId: Q,
518
+ inputClassName: m,
519
+ placeholder: W = "DD/MM/YYYY",
520
+ disabled: K,
521
+ readOnly: q,
522
+ dayPickerComponent: G,
523
+ dayPickerProps: T,
524
+ triggerTestId: J,
525
525
  isHydrated: C,
526
- open: Y,
527
- onOpenChange: X
526
+ open: S,
527
+ onOpenChange: Q
528
528
  } = u;
529
- return /* @__PURE__ */ l.jsx(
530
- ge,
529
+ return /* @__PURE__ */ p.jsx(
530
+ me,
531
531
  {
532
- id: f,
532
+ id: d,
533
533
  value: c,
534
534
  onChange: D,
535
- onValueUpdate: v,
535
+ onValueUpdate: h,
536
536
  className: j,
537
- inputClassName: p,
538
- placeholder: K,
539
- disabled: q,
540
- readOnly: G,
541
- open: Y,
542
- onOpenChange: X,
543
- dayPickerComponent: J,
544
- dayPickerProps: S,
545
- "data-testid": Q,
537
+ inputClassName: m,
538
+ placeholder: W,
539
+ disabled: K,
540
+ readOnly: q,
541
+ open: S,
542
+ onOpenChange: Q,
543
+ dayPickerComponent: G,
544
+ dayPickerProps: T,
545
+ "data-testid": J,
546
546
  "data-hydrated": C ? "true" : void 0
547
547
  }
548
548
  );
549
549
  }
550
550
  export {
551
- ce as DayPicker,
552
- ze as DayPickerField,
553
- ge as DayPickerInput
551
+ ue as DayPicker,
552
+ Oe as DayPickerField,
553
+ me as DayPickerInput
554
554
  };
555
555
  //# sourceMappingURL=index11.js.map