@rpcbase/ui 0.164.0 → 0.166.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 (690) hide show
  1. package/dist/index10.js +1 -1
  2. package/dist/index100.js +9 -24
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +42 -6
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +4 -4
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +52 -7
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +4 -5
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +3 -3
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +15 -5
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +5 -4
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +6 -7
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +16 -5
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index11.js +6 -15
  23. package/dist/index11.js.map +1 -1
  24. package/dist/index110.js +3 -3
  25. package/dist/index110.js.map +1 -1
  26. package/dist/index111.js +2 -2
  27. package/dist/index111.js.map +1 -1
  28. package/dist/index112.js +5 -6
  29. package/dist/index112.js.map +1 -1
  30. package/dist/index113.js +5 -145
  31. package/dist/index113.js.map +1 -1
  32. package/dist/index114.js +4 -39
  33. package/dist/index114.js.map +1 -1
  34. package/dist/index115.js +4 -4
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +6 -7
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +24 -13
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +6 -13
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +4 -7
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index12.js +1 -1
  45. package/dist/index120.js +6 -31
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +5 -10
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +4 -10
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +5 -8
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +4 -13
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +8 -101
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +6 -20
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +4 -53
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +4 -72
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +6 -9
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index13.js +2 -2
  66. package/dist/index130.js +145 -20
  67. package/dist/index130.js.map +1 -1
  68. package/dist/index131.js +38 -15
  69. package/dist/index131.js.map +1 -1
  70. package/dist/index132.js +4 -23
  71. package/dist/index132.js.map +1 -1
  72. package/dist/index133.js +7 -6
  73. package/dist/index133.js.map +1 -1
  74. package/dist/index134.js +13 -5
  75. package/dist/index134.js.map +1 -1
  76. package/dist/index135.js +13 -23
  77. package/dist/index135.js.map +1 -1
  78. package/dist/index136.js +8 -35
  79. package/dist/index136.js.map +1 -1
  80. package/dist/index137.js +32 -16
  81. package/dist/index137.js.map +1 -1
  82. package/dist/index138.js +10 -6
  83. package/dist/index138.js.map +1 -1
  84. package/dist/index139.js +10 -4
  85. package/dist/index139.js.map +1 -1
  86. package/dist/index14.js +4 -4
  87. package/dist/index140.js +8 -4
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +13 -4
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +101 -4
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +20 -4
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +53 -6
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +73 -24
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +9 -7
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +20 -6
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +16 -5
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +23 -3
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index15.js +1 -1
  108. package/dist/index150.js +6 -3
  109. package/dist/index150.js.map +1 -1
  110. package/dist/index151.js +5 -4
  111. package/dist/index151.js.map +1 -1
  112. package/dist/index152.js +23 -3
  113. package/dist/index152.js.map +1 -1
  114. package/dist/index153.js +35 -5
  115. package/dist/index153.js.map +1 -1
  116. package/dist/index154.js +16 -4
  117. package/dist/index154.js.map +1 -1
  118. package/dist/index155.js +6 -3
  119. package/dist/index155.js.map +1 -1
  120. package/dist/index156.js +4 -3
  121. package/dist/index156.js.map +1 -1
  122. package/dist/index157.js +4 -3
  123. package/dist/index157.js.map +1 -1
  124. package/dist/index158.js +4 -33
  125. package/dist/index158.js.map +1 -1
  126. package/dist/index159.js +4 -249
  127. package/dist/index159.js.map +1 -1
  128. package/dist/index16.js +1 -1
  129. package/dist/index160.js +3 -114
  130. package/dist/index160.js.map +1 -1
  131. package/dist/index161.js +6 -219
  132. package/dist/index161.js.map +1 -1
  133. package/dist/index162.js +24 -67
  134. package/dist/index162.js.map +1 -1
  135. package/dist/index163.js +7 -20
  136. package/dist/index163.js.map +1 -1
  137. package/dist/index164.js +6 -209
  138. package/dist/index164.js.map +1 -1
  139. package/dist/index165.js +5 -319
  140. package/dist/index165.js.map +1 -1
  141. package/dist/index166.js +3 -130
  142. package/dist/index166.js.map +1 -1
  143. package/dist/index167.js +3 -20
  144. package/dist/index167.js.map +1 -1
  145. package/dist/index168.js +4 -75
  146. package/dist/index168.js.map +1 -1
  147. package/dist/index169.js +3 -18
  148. package/dist/index169.js.map +1 -1
  149. package/dist/index17.js +1 -1
  150. package/dist/index170.js +4 -101
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +4 -5
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +3 -14
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +4 -2
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +24 -7
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +29 -327
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +5 -50
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +62 -41
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +176 -42
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +41 -200
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index18.js +3 -12
  171. package/dist/index18.js.map +1 -1
  172. package/dist/index180.js +14 -22
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +153 -23
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +27 -396
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +9 -3
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +47 -5
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +10 -67
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +45 -2
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +86 -354
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +75 -250
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +92 -47
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +7 -7
  193. package/dist/index190.js +46 -40
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +10 -168
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +26 -98
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +8 -24
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +117 -8
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +17 -4
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +15 -5
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +3 -4
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +34 -464
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +19 -184
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +2 -2
  214. package/dist/index200.js +9 -107
  215. package/dist/index200.js.map +1 -1
  216. package/dist/index201.js +8 -262
  217. package/dist/index201.js.map +1 -1
  218. package/dist/index202.js +19 -9
  219. package/dist/index202.js.map +1 -1
  220. package/dist/index203.js +27 -41
  221. package/dist/index203.js.map +1 -1
  222. package/dist/index204.js +16 -4
  223. package/dist/index204.js.map +1 -1
  224. package/dist/index205.js +59 -2
  225. package/dist/index205.js.map +1 -1
  226. package/dist/index206.js +8 -67
  227. package/dist/index206.js.map +1 -1
  228. package/dist/index207.js +66 -84
  229. package/dist/index207.js.map +1 -1
  230. package/dist/index208.js +18 -45
  231. package/dist/index208.js.map +1 -1
  232. package/dist/index209.js +16 -7
  233. package/dist/index209.js.map +1 -1
  234. package/dist/index21.js +1 -1
  235. package/dist/index210.js +5 -4
  236. package/dist/index210.js.map +1 -1
  237. package/dist/index211.js +4 -50
  238. package/dist/index211.js.map +1 -1
  239. package/dist/index212.js +6 -67
  240. package/dist/index212.js.map +1 -1
  241. package/dist/index213.js +4 -180
  242. package/dist/index213.js.map +1 -1
  243. package/dist/index214.js +7 -46
  244. package/dist/index214.js.map +1 -1
  245. package/dist/index215.js +17 -58
  246. package/dist/index215.js.map +1 -1
  247. package/dist/index216.js +5 -8
  248. package/dist/index216.js.map +1 -1
  249. package/dist/index217.js +5 -66
  250. package/dist/index217.js.map +1 -1
  251. package/dist/index218.js +13 -19
  252. package/dist/index218.js.map +1 -1
  253. package/dist/index219.js +10 -16
  254. package/dist/index219.js.map +1 -1
  255. package/dist/index22.js +1 -1
  256. package/dist/index220.js +14 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +14 -5
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +5 -6
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +6 -4
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +7 -7
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +6 -17
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -5
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +5 -5
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +5 -13
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +9 -10
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +2 -2
  277. package/dist/index230.js +5 -14
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +4 -13
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +4 -5
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +10 -5
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +10 -7
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +10 -6
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +11 -9
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +11 -5
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +10 -5
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +7 -9
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index24.js +1 -1
  298. package/dist/index240.js +6 -5
  299. package/dist/index240.js.map +1 -1
  300. package/dist/index241.js +4 -4
  301. package/dist/index241.js.map +1 -1
  302. package/dist/index242.js +6 -4
  303. package/dist/index242.js.map +1 -1
  304. package/dist/index243.js +7 -11
  305. package/dist/index243.js.map +1 -1
  306. package/dist/index244.js +6 -10
  307. package/dist/index244.js.map +1 -1
  308. package/dist/index245.js +55 -10
  309. package/dist/index245.js.map +1 -1
  310. package/dist/index246.js +23 -11
  311. package/dist/index246.js.map +1 -1
  312. package/dist/index247.js +16 -11
  313. package/dist/index247.js.map +1 -1
  314. package/dist/index248.js +7 -10
  315. package/dist/index248.js.map +1 -1
  316. package/dist/index249.js +10 -7
  317. package/dist/index249.js.map +1 -1
  318. package/dist/index250.js +10 -6
  319. package/dist/index250.js.map +1 -1
  320. package/dist/index251.js +21 -5
  321. package/dist/index251.js.map +1 -1
  322. package/dist/index252.js +10 -6
  323. package/dist/index252.js.map +1 -1
  324. package/dist/index253.js +9 -7
  325. package/dist/index253.js.map +1 -1
  326. package/dist/index254.js +9 -6
  327. package/dist/index254.js.map +1 -1
  328. package/dist/index255.js +4 -55
  329. package/dist/index255.js.map +1 -1
  330. package/dist/index256.js +5 -23
  331. package/dist/index256.js.map +1 -1
  332. package/dist/index257.js +15 -15
  333. package/dist/index257.js.map +1 -1
  334. package/dist/index258.js +9 -7
  335. package/dist/index258.js.map +1 -1
  336. package/dist/index259.js +18 -10
  337. package/dist/index259.js.map +1 -1
  338. package/dist/index260.js +15 -10
  339. package/dist/index260.js.map +1 -1
  340. package/dist/index261.js +12 -21
  341. package/dist/index261.js.map +1 -1
  342. package/dist/index262.js +29 -10
  343. package/dist/index262.js.map +1 -1
  344. package/dist/index263.js +12 -9
  345. package/dist/index263.js.map +1 -1
  346. package/dist/index264.js +25 -9
  347. package/dist/index264.js.map +1 -1
  348. package/dist/index265.js +5 -4
  349. package/dist/index265.js.map +1 -1
  350. package/dist/index266.js +5 -6
  351. package/dist/index266.js.map +1 -1
  352. package/dist/index267.js +3 -17
  353. package/dist/index267.js.map +1 -1
  354. package/dist/index268.js +23 -9
  355. package/dist/index268.js.map +1 -1
  356. package/dist/index269.js +112 -18
  357. package/dist/index269.js.map +1 -1
  358. package/dist/index27.js +37 -3
  359. package/dist/index27.js.map +1 -1
  360. package/dist/index270.js +15 -15
  361. package/dist/index270.js.map +1 -1
  362. package/dist/index271.js +522 -10
  363. package/dist/index271.js.map +1 -1
  364. package/dist/index272.js +126 -28
  365. package/dist/index272.js.map +1 -1
  366. package/dist/index273.js +132 -11
  367. package/dist/index273.js.map +1 -1
  368. package/dist/index274.js +20 -25
  369. package/dist/index274.js.map +1 -1
  370. package/dist/index275.js +4 -5
  371. package/dist/index275.js.map +1 -1
  372. package/dist/index276.js +18 -64
  373. package/dist/index276.js.map +1 -1
  374. package/dist/index277.js +12 -48
  375. package/dist/index277.js.map +1 -1
  376. package/dist/index278.js +62 -33
  377. package/dist/index278.js.map +1 -1
  378. package/dist/index279.js +9 -101
  379. package/dist/index279.js.map +1 -1
  380. package/dist/index28.js +3 -125
  381. package/dist/index28.js.map +1 -1
  382. package/dist/index280.js +11 -95
  383. package/dist/index280.js.map +1 -1
  384. package/dist/index281.js +65 -99
  385. package/dist/index281.js.map +1 -1
  386. package/dist/index282.js +62 -22
  387. package/dist/index282.js.map +1 -1
  388. package/dist/index283.js +6 -29
  389. package/dist/index283.js.map +1 -1
  390. package/dist/index284.js +6 -5
  391. package/dist/index284.js.map +1 -1
  392. package/dist/index285.js +4 -2
  393. package/dist/index285.js.map +1 -1
  394. package/dist/index286.js +16 -2
  395. package/dist/index286.js.map +1 -1
  396. package/dist/index287.js +8 -13
  397. package/dist/index287.js.map +1 -1
  398. package/dist/index288.js +5 -154
  399. package/dist/index288.js.map +1 -1
  400. package/dist/index289.js +4 -30
  401. package/dist/index289.js.map +1 -1
  402. package/dist/index29.js +124 -47
  403. package/dist/index29.js.map +1 -1
  404. package/dist/index290.js +545 -9
  405. package/dist/index290.js.map +1 -1
  406. package/dist/index291.js +44 -45
  407. package/dist/index291.js.map +1 -1
  408. package/dist/index292.js +16 -10
  409. package/dist/index292.js.map +1 -1
  410. package/dist/index293.js +6 -44
  411. package/dist/index293.js.map +1 -1
  412. package/dist/index294.js +8 -95
  413. package/dist/index294.js.map +1 -1
  414. package/dist/index295.js +7 -86
  415. package/dist/index295.js.map +1 -1
  416. package/dist/index296.js +8 -105
  417. package/dist/index296.js.map +1 -1
  418. package/dist/index297.js +12 -52
  419. package/dist/index297.js.map +1 -1
  420. package/dist/index298.js +9 -11
  421. package/dist/index298.js.map +1 -1
  422. package/dist/index299.js +13 -37
  423. package/dist/index299.js.map +1 -1
  424. package/dist/index30.js +230 -218
  425. package/dist/index30.js.map +1 -1
  426. package/dist/index300.js +3 -8
  427. package/dist/index300.js.map +1 -1
  428. package/dist/index301.js +20 -114
  429. package/dist/index301.js.map +1 -1
  430. package/dist/index302.js +4 -17
  431. package/dist/index302.js.map +1 -1
  432. package/dist/index303.js +55 -15
  433. package/dist/index303.js.map +1 -1
  434. package/dist/index304.js +68 -4
  435. package/dist/index304.js.map +1 -1
  436. package/dist/index305.js +31 -37
  437. package/dist/index305.js.map +1 -1
  438. package/dist/index306.js +9 -21
  439. package/dist/index306.js.map +1 -1
  440. package/dist/index307.js +153 -10
  441. package/dist/index307.js.map +1 -1
  442. package/dist/index308.js +107 -8
  443. package/dist/index308.js.map +1 -1
  444. package/dist/index309.js +21 -18
  445. package/dist/index309.js.map +1 -1
  446. package/dist/index31.js +49 -42
  447. package/dist/index31.js.map +1 -1
  448. package/dist/index310.js +11 -27
  449. package/dist/index310.js.map +1 -1
  450. package/dist/index311.js +27 -16
  451. package/dist/index311.js.map +1 -1
  452. package/dist/index312.js +5 -5
  453. package/dist/index312.js.map +1 -1
  454. package/dist/index313.js +16 -19
  455. package/dist/index313.js.map +1 -1
  456. package/dist/index314.js +28 -12
  457. package/dist/index314.js.map +1 -1
  458. package/dist/index315.js +13 -5
  459. package/dist/index315.js.map +1 -1
  460. package/dist/index316.js +7 -3
  461. package/dist/index316.js.map +1 -1
  462. package/dist/index32.js +2638 -38
  463. package/dist/index32.js.map +1 -1
  464. package/dist/index33.js +390 -25
  465. package/dist/index33.js.map +1 -1
  466. package/dist/index34.js +230 -43
  467. package/dist/index34.js.map +1 -1
  468. package/dist/index35.js +20 -30
  469. package/dist/index35.js.map +1 -1
  470. package/dist/index36.js +137 -23
  471. package/dist/index36.js.map +1 -1
  472. package/dist/index37.js +187 -23
  473. package/dist/index37.js.map +1 -1
  474. package/dist/index38.js +75 -127
  475. package/dist/index38.js.map +1 -1
  476. package/dist/index39.js +87 -228
  477. package/dist/index39.js.map +1 -1
  478. package/dist/index40.js +6 -51
  479. package/dist/index40.js.map +1 -1
  480. package/dist/index41.js +804 -2601
  481. package/dist/index41.js.map +1 -1
  482. package/dist/index42.js +63 -391
  483. package/dist/index42.js.map +1 -1
  484. package/dist/index43.js +7 -232
  485. package/dist/index43.js.map +1 -1
  486. package/dist/index44.js +2 -22
  487. package/dist/index44.js.map +1 -1
  488. package/dist/index45.js +21 -139
  489. package/dist/index45.js.map +1 -1
  490. package/dist/index46.js +230 -183
  491. package/dist/index46.js.map +1 -1
  492. package/dist/index47.js +202 -74
  493. package/dist/index47.js.map +1 -1
  494. package/dist/index48.js +3 -90
  495. package/dist/index48.js.map +1 -1
  496. package/dist/index49.js +6 -5
  497. package/dist/index49.js.map +1 -1
  498. package/dist/index5.js +1 -1
  499. package/dist/index50.js +41 -837
  500. package/dist/index50.js.map +1 -1
  501. package/dist/index51.js +26 -65
  502. package/dist/index51.js.map +1 -1
  503. package/dist/index52.js +48 -34
  504. package/dist/index52.js.map +1 -1
  505. package/dist/index53.js +7 -7
  506. package/dist/index53.js.map +1 -1
  507. package/dist/index54.js +15 -2
  508. package/dist/index54.js.map +1 -1
  509. package/dist/index55.js +132 -22
  510. package/dist/index55.js.map +1 -1
  511. package/dist/index56.js +10 -233
  512. package/dist/index56.js.map +1 -1
  513. package/dist/index57.js +203 -191
  514. package/dist/index57.js.map +1 -1
  515. package/dist/index58.js +13 -7
  516. package/dist/index58.js.map +1 -1
  517. package/dist/index59.js +2 -2
  518. package/dist/index60.js +44 -24
  519. package/dist/index60.js.map +1 -1
  520. package/dist/index62.js +49 -11
  521. package/dist/index62.js.map +1 -1
  522. package/dist/index63.js +4 -4
  523. package/dist/index63.js.map +1 -1
  524. package/dist/index64.js +5 -47
  525. package/dist/index64.js.map +1 -1
  526. package/dist/index65.js +27 -50
  527. package/dist/index65.js.map +1 -1
  528. package/dist/index66.js +50 -8
  529. package/dist/index66.js.map +1 -1
  530. package/dist/index67.js +8 -14
  531. package/dist/index67.js.map +1 -1
  532. package/dist/index68.js +2 -134
  533. package/dist/index68.js.map +1 -1
  534. package/dist/index69.js +2 -11
  535. package/dist/index69.js.map +1 -1
  536. package/dist/index70.js +11 -216
  537. package/dist/index70.js.map +1 -1
  538. package/dist/index71.js +54 -13
  539. package/dist/index71.js.map +1 -1
  540. package/dist/index72.js +5 -46
  541. package/dist/index72.js.map +1 -1
  542. package/dist/index73.js +7 -49
  543. package/dist/index73.js.map +1 -1
  544. package/dist/index74.js +6 -4
  545. package/dist/index74.js.map +1 -1
  546. package/dist/index75.js +46 -5
  547. package/dist/index75.js.map +1 -1
  548. package/dist/index76.js +205 -27
  549. package/dist/index76.js.map +1 -1
  550. package/dist/index77.js +22 -50
  551. package/dist/index77.js.map +1 -1
  552. package/dist/index78.js +25 -9
  553. package/dist/index78.js.map +1 -1
  554. package/dist/index79.js +400 -2
  555. package/dist/index79.js.map +1 -1
  556. package/dist/index8.js +1 -1
  557. package/dist/index80.js +47 -2
  558. package/dist/index80.js.map +1 -1
  559. package/dist/index81.js +604 -52
  560. package/dist/index81.js.map +1 -1
  561. package/dist/index82.js +5 -5
  562. package/dist/index82.js.map +1 -1
  563. package/dist/index83.js +68 -7
  564. package/dist/index83.js.map +1 -1
  565. package/dist/index84.js +2 -6
  566. package/dist/index84.js.map +1 -1
  567. package/dist/index85.js +352 -594
  568. package/dist/index85.js.map +1 -1
  569. package/dist/index86.js +262 -52
  570. package/dist/index86.js.map +1 -1
  571. package/dist/index87.js +60 -4
  572. package/dist/index87.js.map +1 -1
  573. package/dist/index88.js +46 -4
  574. package/dist/index88.js.map +1 -1
  575. package/dist/index89.js +169 -15
  576. package/dist/index89.js.map +1 -1
  577. package/dist/index9.js +1 -1
  578. package/dist/index90.js +109 -5
  579. package/dist/index90.js.map +1 -1
  580. package/dist/index91.js +24 -7
  581. package/dist/index91.js.map +1 -1
  582. package/dist/index92.js +8 -17
  583. package/dist/index92.js.map +1 -1
  584. package/dist/index93.js +4 -4
  585. package/dist/index93.js.map +1 -1
  586. package/dist/index94.js +5 -4
  587. package/dist/index94.js.map +1 -1
  588. package/dist/index95.js +4 -5
  589. package/dist/index95.js.map +1 -1
  590. package/dist/index96.js +466 -5
  591. package/dist/index96.js.map +1 -1
  592. package/dist/index97.js +185 -4
  593. package/dist/index97.js.map +1 -1
  594. package/dist/index98.js +107 -4
  595. package/dist/index98.js.map +1 -1
  596. package/dist/index99.js +262 -6
  597. package/dist/index99.js.map +1 -1
  598. package/package.json +1 -1
  599. package/dist/index317.js +0 -27
  600. package/dist/index317.js.map +0 -1
  601. package/dist/index318.js +0 -116
  602. package/dist/index318.js.map +0 -1
  603. package/dist/index319.js +0 -19
  604. package/dist/index319.js.map +0 -1
  605. package/dist/index320.js +0 -528
  606. package/dist/index320.js.map +0 -1
  607. package/dist/index321.js +0 -131
  608. package/dist/index321.js.map +0 -1
  609. package/dist/index322.js +0 -137
  610. package/dist/index322.js.map +0 -1
  611. package/dist/index323.js +0 -24
  612. package/dist/index323.js.map +0 -1
  613. package/dist/index324.js +0 -9
  614. package/dist/index324.js.map +0 -1
  615. package/dist/index325.js +0 -9
  616. package/dist/index325.js.map +0 -1
  617. package/dist/index326.js +0 -7
  618. package/dist/index326.js.map +0 -1
  619. package/dist/index327.js +0 -19
  620. package/dist/index327.js.map +0 -1
  621. package/dist/index328.js +0 -12
  622. package/dist/index328.js.map +0 -1
  623. package/dist/index329.js +0 -9
  624. package/dist/index329.js.map +0 -1
  625. package/dist/index330.js +0 -8
  626. package/dist/index330.js.map +0 -1
  627. package/dist/index331.js +0 -549
  628. package/dist/index331.js.map +0 -1
  629. package/dist/index332.js +0 -50
  630. package/dist/index332.js.map +0 -1
  631. package/dist/index333.js +0 -21
  632. package/dist/index333.js.map +0 -1
  633. package/dist/index334.js +0 -10
  634. package/dist/index334.js.map +0 -1
  635. package/dist/index335.js +0 -12
  636. package/dist/index335.js.map +0 -1
  637. package/dist/index336.js +0 -11
  638. package/dist/index336.js.map +0 -1
  639. package/dist/index337.js +0 -12
  640. package/dist/index337.js.map +0 -1
  641. package/dist/index338.js +0 -16
  642. package/dist/index338.js.map +0 -1
  643. package/dist/index339.js +0 -13
  644. package/dist/index339.js.map +0 -1
  645. package/dist/index340.js +0 -17
  646. package/dist/index340.js.map +0 -1
  647. package/dist/index341.js +0 -68
  648. package/dist/index341.js.map +0 -1
  649. package/dist/index342.js +0 -72
  650. package/dist/index342.js.map +0 -1
  651. package/dist/index343.js +0 -12
  652. package/dist/index343.js.map +0 -1
  653. package/dist/index344.js +0 -17
  654. package/dist/index344.js.map +0 -1
  655. package/dist/index345.js +0 -69
  656. package/dist/index345.js.map +0 -1
  657. package/dist/index346.js +0 -71
  658. package/dist/index346.js.map +0 -1
  659. package/dist/index347.js +0 -34
  660. package/dist/index347.js.map +0 -1
  661. package/dist/index348.js +0 -12
  662. package/dist/index348.js.map +0 -1
  663. package/dist/index349.js +0 -156
  664. package/dist/index349.js.map +0 -1
  665. package/dist/index350.js +0 -111
  666. package/dist/index350.js.map +0 -1
  667. package/dist/index351.js +0 -8
  668. package/dist/index351.js.map +0 -1
  669. package/dist/index352.js +0 -59
  670. package/dist/index352.js.map +0 -1
  671. package/dist/index353.js +0 -7
  672. package/dist/index353.js.map +0 -1
  673. package/dist/index354.js +0 -26
  674. package/dist/index354.js.map +0 -1
  675. package/dist/index355.js +0 -19
  676. package/dist/index355.js.map +0 -1
  677. package/dist/index356.js +0 -32
  678. package/dist/index356.js.map +0 -1
  679. package/dist/index357.js +0 -16
  680. package/dist/index357.js.map +0 -1
  681. package/dist/index358.js +0 -10
  682. package/dist/index358.js.map +0 -1
  683. package/dist/index359.js +0 -26
  684. package/dist/index359.js.map +0 -1
  685. package/dist/index360.js +0 -16
  686. package/dist/index360.js.map +0 -1
  687. package/dist/index361.js +0 -31
  688. package/dist/index361.js.map +0 -1
  689. package/dist/index362.js +0 -8
  690. package/dist/index362.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index11.js","sources":["../src/components/DayPickerField/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, CalendarDays } from \"lucide-react\"\nimport * as React from \"react\"\nimport { DismissableLayerBranch } from \"@radix-ui/react-dismissable-layer\"\nimport { createPortal } from \"react-dom\"\nimport { DayPicker as ReactDayPicker } from \"react-day-picker\"\nimport { IMaskInput } from \"react-imask\"\n\nimport { useIsTouchDevice } from \"@/helpers/useIsTouchDevice\"\nimport { cn } from \"@/lib/utils\"\n\n\nexport type DayPickerProps = React.ComponentProps<typeof ReactDayPicker>\n\nexport function DayPicker({\n className,\n classNames,\n components,\n showOutsideDays = true,\n ...props\n}: DayPickerProps) {\n return (\n <ReactDayPicker\n weekStartsOn={1}\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n month: \"space-y-4\",\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n month_grid: \"w-full border-collapse space-y-1\",\n caption_label: \"text-sm font-medium\",\n nav: \"flex items-center justify-between absolute inset-x-0 z-10\",\n button_previous:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n button_next:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n weeks: \"w-full border-collapse\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n day: \"h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md\",\n day_button:\n \"inline-flex h-9 w-9 items-center justify-center rounded-md p-0 text-center text-sm font-normal transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n range_start:\n \"day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_end:\n \"day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent text-accent-foreground\",\n day_outside: \"day-outside text-muted-foreground aria-selected:text-muted-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_hidden: \"invisible\",\n selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-gray-50 text-accent-foreground !rounded-md\",\n outside:\n \"day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: (chevronProps) =>\n chevronProps.orientation === \"left\" ? (\n <ChevronLeft {...chevronProps} className=\"h-4 w-4\" />\n ) : (\n <ChevronRight {...chevronProps} className=\"h-4 w-4\" />\n ),\n ...components,\n }}\n {...props}\n />\n )\n}\n\nDayPicker.displayName = \"DayPicker\"\n\nfunction pad2(value: number) {\n return String(value).padStart(2, \"0\")\n}\n\nfunction startOfDay(date: Date) {\n const next = new Date(date)\n next.setHours(0, 0, 0, 0)\n return next\n}\n\nfunction startOfMonth(date: Date) {\n return startOfDay(new Date(date.getFullYear(), date.getMonth(), 1))\n}\n\nfunction formatDayInput(date: Date) {\n return `${pad2(date.getDate())}/${pad2(date.getMonth() + 1)}/${date.getFullYear()}`\n}\n\nfunction buildDate({ day, month, year }: { day: number; month: number; year: number }): Date | null {\n if (!Number.isFinite(day) || !Number.isFinite(month) || !Number.isFinite(year)) return null\n\n const date = new Date(year, month - 1, day)\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null\n }\n\n return startOfDay(date)\n}\n\nfunction parseDayInput(value: string, now: Date): Date | null {\n const trimmed = value.trim()\n if (!trimmed) return null\n\n const full = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(trimmed)\n if (full) {\n return buildDate({ day: Number(full[1]), month: Number(full[2]), year: Number(full[3]) })\n }\n\n const shortYear = /^(\\d{2})\\/(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (shortYear) {\n const year = Number(shortYear[3])\n if (!Number.isFinite(year)) return null\n return buildDate({ day: Number(shortYear[1]), month: Number(shortYear[2]), year: 2000 + year })\n }\n\n const noYear = /^(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (noYear) {\n return buildDate({ day: Number(noYear[1]), month: Number(noYear[2]), year: now.getFullYear() })\n }\n\n return null\n}\n\nexport type DayPickerInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"value\" | \"defaultValue\" | \"onChange\" | \"type\"\n> & {\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n inputClassName?: string\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n}\n\nexport const DayPickerInput = React.forwardRef<HTMLInputElement, DayPickerInputProps>(\n function DayPickerInput(\n {\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n onFocus,\n onBlur,\n onKeyDown,\n onPointerDown,\n onMouseDown,\n ...rest\n },\n forwardedRef,\n\t ) {\n\t const rootRef = React.useRef<HTMLDivElement | null>(null)\n\t const popoverRef = React.useRef<HTMLDivElement | null>(null)\n\t\t const inputRef = React.useRef<HTMLInputElement | null>(null)\n\t\t const isFocusedRef = React.useRef(false)\n\t\t const pointerDownOnInputRef = React.useRef(false)\n\t\t const inputWasFocusedOnPointerDownRef = React.useRef(false)\n const pointerDownInPopoverRef = React.useRef(false)\n\n\t const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n\t const open = openProp ?? uncontrolledOpen\n\t const setOpen = onOpenChange ?? setUncontrolledOpen\n\t const [draft, setDraft] = React.useState(() => (value ? formatDayInput(value) : \"\"))\n const draftSelection = React.useMemo(() => parseDayInput(draft, new Date()), [draft])\n\t\t const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n\t\t const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n\t\t left: 0,\n\t top: 0,\n\t }))\n\n\t const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n const updateValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n return\n }\n\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n React.useEffect(() => {\n if (isFocusedRef.current) return\n setDraft(value ? formatDayInput(value) : \"\")\n }, [value])\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n if (!draftSelection) return\n setMonth(startOfMonth(draftSelection))\n }, [draftSelection, open])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const setRefs = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof forwardedRef === \"function\") {\n forwardedRef(node)\n } else if (forwardedRef) {\n forwardedRef.current = node\n }\n },\n [forwardedRef],\n )\n\n const closePopover = () => setOpen(false)\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t useIsomorphicLayoutEffect(() => {\n\t if (!open || disabled) return\n\t if (typeof window === \"undefined\") return\n\n\t updatePopoverPosition()\n\t const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n\t window.addEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.addEventListener(\"resize\", updatePopoverPosition)\n\t return () => {\n\t window.cancelAnimationFrame(rafId)\n\t window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.removeEventListener(\"resize\", updatePopoverPosition)\n\t }\n\t }, [disabled, open, updatePopoverPosition])\n\n\t return (\n\t <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n\t\t <IMaskInput\n\t\t {...rest}\n\t\t data-slot=\"day-picker-input-input\"\n disabled={disabled}\n readOnly={readOnly}\n autoComplete=\"off\"\n inputRef={setRefs}\n mask={[\n { mask: \"00/00\", lazy: true },\n { mask: \"00/00/00\", lazy: true },\n { mask: \"00/00/0000\", lazy: true },\n ]}\n dispatch={(appended, dynamicMasked) => {\n const digits = (dynamicMasked.value + appended).replace(/\\D/g, \"\")\n if (digits.length <= 4) return dynamicMasked.compiledMasks[0]\n if (digits.length <= 6) return dynamicMasked.compiledMasks[1]\n return dynamicMasked.compiledMasks[2]\n }}\n\t placeholder={placeholder}\n\t value={draft}\n\t\t className={cn(\n\t\t \"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\",\n\t\t \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n\t\t inputClassName\n\t\t )}\n onAccept={(nextValue) => {\n const next = typeof nextValue === \"string\" ? nextValue : String(nextValue ?? \"\")\n const previousDigitsLength = draft.replace(/\\D/g, \"\").length\n setDraft(next)\n if (next.replace(/\\D/g, \"\").length === 0) {\n if (open) {\n setMonth(startOfMonth(new Date()))\n }\n if (previousDigitsLength !== 0) {\n updateValue(null)\n }\n }\n }}\n onComplete={(completedValue) => {\n const next = typeof completedValue === \"string\"\n ? completedValue\n : String(completedValue ?? \"\")\n const parsed = parseDayInput(next, new Date())\n if (!parsed) return\n if (value && parsed.getTime() === startOfDay(value).getTime()) {\n return\n }\n updateValue(parsed)\n }}\n\t onPointerDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onPointerDown?.(event)\n\t }}\n\t onMouseDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onMouseDown?.(event)\n\t }}\n onFocus={(event) => {\n const shouldSelectAll =\n !pointerDownOnInputRef.current || !inputWasFocusedOnPointerDownRef.current\n pointerDownOnInputRef.current = false\n inputWasFocusedOnPointerDownRef.current = false\n\t isFocusedRef.current = true\n\t onFocus?.(event)\n\t if (shouldSelectAll) {\n\t const element = event.currentTarget\n\t requestAnimationFrame(() => element.select())\n }\n if (!disabled) {\n setOpen(true)\n }\n }}\n\t onKeyDown={(event) => {\n\t onKeyDown?.(event)\n\t if (event.defaultPrevented) {\n\t return\n\t }\n\n\t\t if (event.key === \"Enter\") {\n\t\t if (!draftSelection) {\n\t\t return\n\t\t }\n\t\t event.preventDefault()\n if (open) {\n const isoDay = `${draftSelection.getFullYear()}-${pad2(draftSelection.getMonth() + 1)}-${pad2(draftSelection.getDate())}`\n const dayButton = popoverRef.current?.querySelector(\n `[data-day='${isoDay}']:not([data-outside]) button`,\n )\n if (dayButton instanceof HTMLButtonElement) {\n if (dayButton.disabled) {\n return\n }\n dayButton.focus()\n }\n }\n\t\t setDraft(formatDayInput(draftSelection))\n\t\t if (!value || draftSelection.getTime() !== startOfDay(value).getTime()) {\n\t\t commitValue(draftSelection)\n\t\t }\n\t\t setOpen(false)\n\t return\n\t }\n\n if (!open) {\n const shouldReopen =\n (event.key.length === 1 || event.key === \"Backspace\" || event.key === \"Delete\") &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n\n if (shouldReopen) {\n setOpen(true)\n }\n }\n\n\t if (event.key === \"Tab\" && !event.defaultPrevented) {\n\t setOpen(false)\n\t }\n\t }}\n\t onBlur={(event) => {\n\t isFocusedRef.current = false\n\t onBlur?.(event)\n const blurFromPopoverPointerDown = pointerDownInPopoverRef.current\n pointerDownInPopoverRef.current = false\n if (blurFromPopoverPointerDown) {\n return\n }\n\n const relatedTarget = event.relatedTarget\n if (relatedTarget instanceof Node) {\n const root = rootRef.current\n if (!root) {\n return\n }\n\n if (root.contains(relatedTarget) || popoverRef.current?.contains(relatedTarget)) {\n return\n }\n }\n\n\t if (open && typeof window !== \"undefined\") {\n\t requestAnimationFrame(() => {\n const root = rootRef.current\n if (!root) {\n return\n }\n const activeElement = document.activeElement\n if (\n activeElement &&\n (root.contains(activeElement) || popoverRef.current?.contains(activeElement))\n ) {\n return\n }\n setOpen(false)\n })\n\t }\n\t const trimmed = draft.trim()\n\t if (trimmed === \"\") {\n if (value) {\n setDraft(\"\")\n commitValue(null)\n }\n\t return\n\t }\n\t const parsed = parseDayInput(trimmed, new Date())\n\t if (parsed) {\n\t setDraft(formatDayInput(parsed))\n\t if (!value || parsed.getTime() !== startOfDay(value).getTime()) {\n\t commitValue(parsed)\n }\n return\n }\n setDraft(value ? formatDayInput(value) : \"\")\n\t\t }}\n\t\t />\n\n <button\n type=\"button\"\n tabIndex={-1}\n disabled={disabled}\n aria-label=\"Open calendar\"\n data-slot=\"day-picker-input-trigger\"\n className=\"absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n onPointerDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onMouseDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onClick={() => {\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n setOpen(true)\n }}\n >\n <CalendarDays aria-hidden className=\"size-4\" />\n </button>\n\n {open && !disabled && (() => {\n const selectedDay = draft.trim() === \"\"\n ? undefined\n : draftSelection ?? value ?? undefined\n\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n onPointerDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n onMouseDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={selectedDay}\n onSelect={(date) => {\n if (!date) {\n if (value) {\n commitValue(null)\n }\n setDraft(\"\")\n closePopover()\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setDraft(formatDayInput(normalized))\n closePopover()\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n }\n)\n\nDayPickerInput.displayName = \"DayPickerInput\"\n\nexport type DayPickerFieldProps = {\n id?: string\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n className?: string\n inputClassName?: string\n placeholder?: string\n disabled?: boolean\n readOnly?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n triggerTestId?: string\n isHydrated?: boolean\n}\n\nfunction DayPickerButtonField({\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n}: DayPickerFieldProps) {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const popoverRef = React.useRef<HTMLDivElement | null>(null)\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n const open = openProp ?? uncontrolledOpen\n const setOpen = onOpenChange ?? setUncontrolledOpen\n const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n left: 0,\n top: 0,\n }))\n\n const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n useIsomorphicLayoutEffect(() => {\n if (!open || disabled) return\n if (typeof window === \"undefined\") return\n\n updatePopoverPosition()\n const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n window.addEventListener(\"scroll\", updatePopoverPosition, true)\n window.addEventListener(\"resize\", updatePopoverPosition)\n return () => {\n window.cancelAnimationFrame(rafId)\n window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n window.removeEventListener(\"resize\", updatePopoverPosition)\n }\n }, [disabled, open, updatePopoverPosition])\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n return (\n <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n <button\n id={id}\n type=\"button\"\n disabled={disabled}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n data-slot=\"day-picker-input-input\"\n className={cn(\n \"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\",\n \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n !value && \"text-muted-foreground\",\n open && \"ring-2 ring-primary ring-offset-2\",\n inputClassName,\n )}\n onClick={() => {\n if (disabled) return\n setOpen(!open)\n }}\n >\n <CalendarDays\n aria-hidden\n className=\"mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n />\n {value ? formatDayInput(value) : placeholder}\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n commitValue(null)\n setOpen(false)\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setOpen(false)\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n}\n\nexport function DayPickerField(props: DayPickerFieldProps) {\n const isTouchDevice = useIsTouchDevice()\n\n if (isTouchDevice) {\n return <DayPickerButtonField {...props} />\n }\n\n const {\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n open,\n onOpenChange,\n } = props\n\n return (\n <DayPickerInput\n id={id}\n value={value}\n onChange={onChange}\n onValueUpdate={onValueUpdate}\n className={className}\n inputClassName={inputClassName}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n open={open}\n onOpenChange={onOpenChange}\n dayPickerComponent={dayPickerComponent}\n dayPickerProps={dayPickerProps}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n />\n )\n}\n"],"names":["DayPicker","className","classNames","components","showOutsideDays","props","jsx","ReactDayPicker","cn","chevronProps","ChevronLeft","ChevronRight","pad2","value","startOfDay","date","next","startOfMonth","formatDayInput","buildDate","day","month","year","parseDayInput","now","trimmed","full","shortYear","noYear","DayPickerInput","React","onChange","onValueUpdate","inputClassName","placeholder","disabled","readOnly","openProp","onOpenChange","dayPickerComponent","dayPickerProps","onFocus","onBlur","onKeyDown","onPointerDown","onMouseDown","rest","forwardedRef","rootRef","popoverRef","inputRef","isFocusedRef","pointerDownOnInputRef","inputWasFocusedOnPointerDownRef","pointerDownInPopoverRef","uncontrolledOpen","setUncontrolledOpen","open","setOpen","draft","setDraft","draftSelection","setMonth","popoverPosition","setPopoverPosition","useIsomorphicLayoutEffect","updateValue","commitValue","handlePointerDown","event","target","handleKeyDown","root","isActive","observer","entries","entry","setRefs","node","closePopover","DayPickerComponent","updatePopoverPosition","popover","rect","popoverWidth","popoverHeight","viewportWidth","viewportHeight","padding","left","top","overflowBottom","aboveTop","rafId","jsxs","IMaskInput","appended","dynamicMasked","digits","nextValue","previousDigitsLength","completedValue","parsed","shouldSelectAll","element","isoDay","dayButton","blurFromPopoverPointerDown","relatedTarget","activeElement","CalendarDays","selectedDay","DismissableLayerBranch","normalized","createPortal","DayPickerButtonField","id","triggerTestId","isHydrated","DayPickerField","useIsTouchDevice"],"mappings":";;;;;;;;;;;;;;;;;;AAaO,SAASA,GAAU;AAAA,EACxB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAmB;AACjB,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,iBAAAH;AAAA,MACA,WAAWI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AAAA,IAC5C,GAAA;AAAA,EAAG,GACL;AAEJ;AAEO,SAASqC,GAAelH,GAA4B;AAGzD,MAFsBmH,GAAA;AAGpB,WAAOlH,gBAAAA,MAAC6G,IAAA,EAAsB,GAAG9G,EAAA,CAAO;AAG1C,QAAM;AAAA,IACJ,IAAA+G;AAAA,IACA,OAAAvG;AAAA,IACA,UAAAkB;AAAA,IACA,eAAAC;AAAA,IACA,WAAA/B;AAAA,IACA,gBAAAgC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAG;AAAA,IACA,gBAAAC;AAAA,IACA,eAAA6E;AAAA,IACA,YAAAC;AAAA,IACA,MAAA7D;AAAA,IACA,cAAAnB;AAAA,EAAA,IACEjC;AAEJ,SACEC,gBAAAA,EAAAA;AAAAA,IAACuB;AAAA,IAAA;AAAA,MACC,IAAAuF;AAAA,MACA,OAAAvG;AAAA,MACA,UAAAkB;AAAA,MACA,eAAAC;AAAA,MACA,WAAA/B;AAAA,MACA,gBAAAgC;AAAA,MACA,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,MAAAqB;AAAA,MACA,cAAAnB;AAAA,MACA,oBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,eAAa6E;AAAA,MACb,iBAAeC,IAAa,SAAS;AAAA,IAAA;AAAA,EAAA;AAG3C;"}
1
+ {"version":3,"file":"index11.js","sources":["../src/components/DayPickerField/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, CalendarDays } from \"lucide-react\"\nimport * as React from \"react\"\nimport { DismissableLayerBranch } from \"@radix-ui/react-dismissable-layer\"\nimport { createPortal } from \"react-dom\"\nimport { DayPicker as ReactDayPicker } from \"react-day-picker\"\nimport { IMaskInput } from \"react-imask\"\n\nimport { useIsTouchDevice } from \"@/helpers/useIsTouchDevice\"\nimport { cn } from \"@/lib/utils\"\n\n\nexport type DayPickerProps = React.ComponentProps<typeof ReactDayPicker>\n\nexport function DayPicker({\n className,\n classNames,\n components,\n showOutsideDays = true,\n ...props\n}: DayPickerProps) {\n return (\n <ReactDayPicker\n weekStartsOn={1}\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n month: \"space-y-4\",\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n month_grid: \"w-full border-collapse space-y-1\",\n caption_label: \"text-sm font-medium\",\n nav: \"flex items-center justify-between absolute inset-x-0 z-10\",\n button_previous:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n button_next:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n weeks: \"w-full border-collapse\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n day: \"h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md\",\n day_button:\n \"inline-flex h-9 w-9 items-center justify-center rounded-md p-0 text-center text-sm font-normal transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n range_start:\n \"day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_end:\n \"day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent text-accent-foreground\",\n day_outside: \"day-outside text-muted-foreground aria-selected:text-muted-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_hidden: \"invisible\",\n selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-gray-50 text-accent-foreground !rounded-md\",\n outside:\n \"day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: (chevronProps) =>\n chevronProps.orientation === \"left\" ? (\n <ChevronLeft {...chevronProps} className=\"h-4 w-4\" />\n ) : (\n <ChevronRight {...chevronProps} className=\"h-4 w-4\" />\n ),\n ...components,\n }}\n {...props}\n />\n )\n}\n\nDayPicker.displayName = \"DayPicker\"\n\nfunction pad2(value: number) {\n return String(value).padStart(2, \"0\")\n}\n\nfunction startOfDay(date: Date) {\n const next = new Date(date)\n next.setHours(0, 0, 0, 0)\n return next\n}\n\nfunction startOfMonth(date: Date) {\n return startOfDay(new Date(date.getFullYear(), date.getMonth(), 1))\n}\n\nfunction formatDayInput(date: Date) {\n return `${pad2(date.getDate())}/${pad2(date.getMonth() + 1)}/${date.getFullYear()}`\n}\n\nfunction buildDate({ day, month, year }: { day: number; month: number; year: number }): Date | null {\n if (!Number.isFinite(day) || !Number.isFinite(month) || !Number.isFinite(year)) return null\n\n const date = new Date(year, month - 1, day)\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null\n }\n\n return startOfDay(date)\n}\n\nfunction parseDayInput(value: string, now: Date): Date | null {\n const trimmed = value.trim()\n if (!trimmed) return null\n\n const full = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(trimmed)\n if (full) {\n return buildDate({ day: Number(full[1]), month: Number(full[2]), year: Number(full[3]) })\n }\n\n const shortYear = /^(\\d{2})\\/(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (shortYear) {\n const year = Number(shortYear[3])\n if (!Number.isFinite(year)) return null\n return buildDate({ day: Number(shortYear[1]), month: Number(shortYear[2]), year: 2000 + year })\n }\n\n const noYear = /^(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (noYear) {\n return buildDate({ day: Number(noYear[1]), month: Number(noYear[2]), year: now.getFullYear() })\n }\n\n return null\n}\n\nexport type DayPickerInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"value\" | \"defaultValue\" | \"onChange\" | \"type\"\n> & {\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n inputClassName?: string\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n}\n\nexport const DayPickerInput = React.forwardRef<HTMLInputElement, DayPickerInputProps>(\n function DayPickerInput(\n {\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n onFocus,\n onBlur,\n onKeyDown,\n onPointerDown,\n onMouseDown,\n ...rest\n },\n forwardedRef,\n\t ) {\n\t const rootRef = React.useRef<HTMLDivElement | null>(null)\n\t const popoverRef = React.useRef<HTMLDivElement | null>(null)\n\t\t const inputRef = React.useRef<HTMLInputElement | null>(null)\n\t\t const isFocusedRef = React.useRef(false)\n\t\t const pointerDownOnInputRef = React.useRef(false)\n\t\t const inputWasFocusedOnPointerDownRef = React.useRef(false)\n const pointerDownInPopoverRef = React.useRef(false)\n\n\t const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n\t const open = openProp ?? uncontrolledOpen\n\t const setOpen = onOpenChange ?? setUncontrolledOpen\n\t const [draft, setDraft] = React.useState(() => (value ? formatDayInput(value) : \"\"))\n const draftSelection = React.useMemo(() => parseDayInput(draft, new Date()), [draft])\n\t\t const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n\t\t const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n\t\t left: 0,\n\t top: 0,\n\t }))\n\n\t const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n const updateValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n return\n }\n\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n React.useEffect(() => {\n if (isFocusedRef.current) return\n setDraft(value ? formatDayInput(value) : \"\")\n }, [value])\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n if (!draftSelection) return\n setMonth(startOfMonth(draftSelection))\n }, [draftSelection, open])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const setRefs = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof forwardedRef === \"function\") {\n forwardedRef(node)\n } else if (forwardedRef) {\n forwardedRef.current = node\n }\n },\n [forwardedRef],\n )\n\n const closePopover = () => setOpen(false)\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t useIsomorphicLayoutEffect(() => {\n\t if (!open || disabled) return\n\t if (typeof window === \"undefined\") return\n\n\t updatePopoverPosition()\n\t const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n\t window.addEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.addEventListener(\"resize\", updatePopoverPosition)\n\t return () => {\n\t window.cancelAnimationFrame(rafId)\n\t window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.removeEventListener(\"resize\", updatePopoverPosition)\n\t }\n\t }, [disabled, open, updatePopoverPosition])\n\n\t return (\n\t <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n\t\t <IMaskInput\n\t\t {...rest}\n\t\t data-slot=\"day-picker-input-input\"\n disabled={disabled}\n readOnly={readOnly}\n autoComplete=\"off\"\n inputRef={setRefs}\n mask={[\n { mask: \"00/00\", lazy: true },\n { mask: \"00/00/00\", lazy: true },\n { mask: \"00/00/0000\", lazy: true },\n ]}\n dispatch={(appended, dynamicMasked) => {\n const digits = (dynamicMasked.value + appended).replace(/\\D/g, \"\")\n if (digits.length <= 4) return dynamicMasked.compiledMasks[0]\n if (digits.length <= 6) return dynamicMasked.compiledMasks[1]\n return dynamicMasked.compiledMasks[2]\n }}\n\t placeholder={placeholder}\n\t value={draft}\n\t\t className={cn(\n\t\t \"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\",\n\t\t \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n\t\t inputClassName\n\t\t )}\n onAccept={(nextValue) => {\n const next = typeof nextValue === \"string\" ? nextValue : String(nextValue ?? \"\")\n const previousDigitsLength = draft.replace(/\\D/g, \"\").length\n setDraft(next)\n if (next.replace(/\\D/g, \"\").length === 0) {\n if (open) {\n setMonth(startOfMonth(new Date()))\n }\n if (previousDigitsLength !== 0) {\n updateValue(null)\n }\n }\n }}\n onComplete={(completedValue) => {\n const next = typeof completedValue === \"string\"\n ? completedValue\n : String(completedValue ?? \"\")\n const parsed = parseDayInput(next, new Date())\n if (!parsed) return\n if (value && parsed.getTime() === startOfDay(value).getTime()) {\n return\n }\n updateValue(parsed)\n }}\n\t onPointerDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onPointerDown?.(event)\n\t }}\n\t onMouseDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onMouseDown?.(event)\n\t }}\n onFocus={(event) => {\n const shouldSelectAll =\n !pointerDownOnInputRef.current || !inputWasFocusedOnPointerDownRef.current\n pointerDownOnInputRef.current = false\n inputWasFocusedOnPointerDownRef.current = false\n\t isFocusedRef.current = true\n\t onFocus?.(event)\n\t if (shouldSelectAll) {\n\t const element = event.currentTarget\n\t requestAnimationFrame(() => element.select())\n }\n if (!disabled) {\n setOpen(true)\n }\n }}\n\t onKeyDown={(event) => {\n\t onKeyDown?.(event)\n\t if (event.defaultPrevented) {\n\t return\n\t }\n\n\t\t if (event.key === \"Enter\") {\n\t\t if (!draftSelection) {\n\t\t return\n\t\t }\n\t\t event.preventDefault()\n if (open) {\n const isoDay = `${draftSelection.getFullYear()}-${pad2(draftSelection.getMonth() + 1)}-${pad2(draftSelection.getDate())}`\n const dayButton = popoverRef.current?.querySelector(\n `[data-day='${isoDay}']:not([data-outside]) button`,\n )\n if (dayButton instanceof HTMLButtonElement) {\n if (dayButton.disabled) {\n return\n }\n dayButton.focus()\n }\n }\n\t\t setDraft(formatDayInput(draftSelection))\n\t\t if (!value || draftSelection.getTime() !== startOfDay(value).getTime()) {\n\t\t commitValue(draftSelection)\n\t\t }\n\t\t setOpen(false)\n\t return\n\t }\n\n if (!open) {\n const shouldReopen =\n (event.key.length === 1 || event.key === \"Backspace\" || event.key === \"Delete\") &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n\n if (shouldReopen) {\n setOpen(true)\n }\n }\n\n\t if (event.key === \"Tab\" && !event.defaultPrevented) {\n\t setOpen(false)\n\t }\n\t }}\n\t onBlur={(event) => {\n\t isFocusedRef.current = false\n\t onBlur?.(event)\n const blurFromPopoverPointerDown = pointerDownInPopoverRef.current\n pointerDownInPopoverRef.current = false\n if (blurFromPopoverPointerDown) {\n return\n }\n\n const relatedTarget = event.relatedTarget\n if (relatedTarget instanceof Node) {\n const root = rootRef.current\n if (!root) {\n return\n }\n\n if (root.contains(relatedTarget) || popoverRef.current?.contains(relatedTarget)) {\n return\n }\n }\n\n\t if (open && typeof window !== \"undefined\") {\n\t requestAnimationFrame(() => {\n const root = rootRef.current\n if (!root) {\n return\n }\n const activeElement = document.activeElement\n if (\n activeElement &&\n (root.contains(activeElement) || popoverRef.current?.contains(activeElement))\n ) {\n return\n }\n setOpen(false)\n })\n\t }\n\t const trimmed = draft.trim()\n\t if (trimmed === \"\") {\n if (value) {\n setDraft(\"\")\n commitValue(null)\n }\n\t return\n\t }\n\t const parsed = parseDayInput(trimmed, new Date())\n\t if (parsed) {\n\t setDraft(formatDayInput(parsed))\n\t if (!value || parsed.getTime() !== startOfDay(value).getTime()) {\n\t commitValue(parsed)\n }\n return\n }\n setDraft(value ? formatDayInput(value) : \"\")\n\t\t }}\n\t\t />\n\n <button\n type=\"button\"\n tabIndex={-1}\n disabled={disabled}\n aria-label=\"Open calendar\"\n data-slot=\"day-picker-input-trigger\"\n className=\"absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n onPointerDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onMouseDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onClick={() => {\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n setOpen(true)\n }}\n >\n <CalendarDays aria-hidden className=\"size-4\" />\n </button>\n\n {open && !disabled && (() => {\n const selectedDay = draft.trim() === \"\"\n ? undefined\n : draftSelection ?? value ?? undefined\n\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n onPointerDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n onMouseDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={selectedDay}\n onSelect={(date) => {\n if (!date) {\n if (value) {\n commitValue(null)\n }\n setDraft(\"\")\n closePopover()\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setDraft(formatDayInput(normalized))\n closePopover()\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n }\n)\n\nDayPickerInput.displayName = \"DayPickerInput\"\n\nexport type DayPickerFieldProps = {\n id?: string\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n className?: string\n inputClassName?: string\n placeholder?: string\n disabled?: boolean\n readOnly?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n triggerTestId?: string\n isHydrated?: boolean\n}\n\nfunction DayPickerButtonField({\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n}: DayPickerFieldProps) {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const popoverRef = React.useRef<HTMLDivElement | null>(null)\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n const open = openProp ?? uncontrolledOpen\n const setOpen = onOpenChange ?? setUncontrolledOpen\n const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n left: 0,\n top: 0,\n }))\n\n const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n useIsomorphicLayoutEffect(() => {\n if (!open || disabled) return\n if (typeof window === \"undefined\") return\n\n updatePopoverPosition()\n const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n window.addEventListener(\"scroll\", updatePopoverPosition, true)\n window.addEventListener(\"resize\", updatePopoverPosition)\n return () => {\n window.cancelAnimationFrame(rafId)\n window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n window.removeEventListener(\"resize\", updatePopoverPosition)\n }\n }, [disabled, open, updatePopoverPosition])\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n return (\n <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n <button\n id={id}\n type=\"button\"\n disabled={disabled}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n data-slot=\"day-picker-input-input\"\n className={cn(\n \"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\",\n \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n !value && \"text-muted-foreground\",\n open && \"ring-2 ring-primary ring-offset-2\",\n inputClassName,\n )}\n onClick={() => {\n if (disabled) return\n setOpen(!open)\n }}\n >\n <CalendarDays\n aria-hidden\n className=\"mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n />\n {value ? formatDayInput(value) : placeholder}\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n commitValue(null)\n setOpen(false)\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setOpen(false)\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n}\n\nexport function DayPickerField(props: DayPickerFieldProps) {\n const isTouchDevice = useIsTouchDevice()\n\n if (isTouchDevice) {\n return <DayPickerButtonField {...props} />\n }\n\n const {\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n open,\n onOpenChange,\n } = props\n\n return (\n <DayPickerInput\n id={id}\n value={value}\n onChange={onChange}\n onValueUpdate={onValueUpdate}\n className={className}\n inputClassName={inputClassName}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n open={open}\n onOpenChange={onOpenChange}\n dayPickerComponent={dayPickerComponent}\n dayPickerProps={dayPickerProps}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n />\n )\n}\n"],"names":["DayPicker","className","classNames","components","showOutsideDays","props","jsx","ReactDayPicker","cn","chevronProps","ChevronLeft","ChevronRight","pad2","value","startOfDay","date","next","startOfMonth","formatDayInput","buildDate","day","month","year","parseDayInput","now","trimmed","full","shortYear","noYear","DayPickerInput","React","onChange","onValueUpdate","inputClassName","placeholder","disabled","readOnly","openProp","onOpenChange","dayPickerComponent","dayPickerProps","onFocus","onBlur","onKeyDown","onPointerDown","onMouseDown","rest","forwardedRef","rootRef","popoverRef","inputRef","isFocusedRef","pointerDownOnInputRef","inputWasFocusedOnPointerDownRef","pointerDownInPopoverRef","uncontrolledOpen","setUncontrolledOpen","open","setOpen","draft","setDraft","draftSelection","setMonth","popoverPosition","setPopoverPosition","useIsomorphicLayoutEffect","updateValue","commitValue","handlePointerDown","event","target","handleKeyDown","root","isActive","observer","entries","entry","setRefs","node","closePopover","DayPickerComponent","updatePopoverPosition","popover","rect","popoverWidth","popoverHeight","viewportWidth","viewportHeight","padding","left","top","overflowBottom","aboveTop","rafId","jsxs","IMaskInput","appended","dynamicMasked","digits","nextValue","previousDigitsLength","completedValue","parsed","shouldSelectAll","element","isoDay","dayButton","blurFromPopoverPointerDown","relatedTarget","activeElement","CalendarDays","selectedDay","DismissableLayerBranch","normalized","createPortal","DayPickerButtonField","id","triggerTestId","isHydrated","DayPickerField","useIsTouchDevice"],"mappings":";;;;;;;;;AAaO,SAASA,GAAU;AAAA,EACxB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAmB;AACjB,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,iBAAAH;AAAA,MACA,WAAWI,GAAG,OAAOP,CAAS;AAAA,MAC9B,YAAY;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,KAAK;AAAA,QACL,iBACE;AAAA,QACF,aACE;AAAA,QACF,OAAO;AAAA,QACP,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;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eAAAC;AAAA,IACA,WAAA/B;AAAA,IACA,gBAAAgC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAG;AAAA,IACA,gBAAAC;AAAA,IACA,eAAA6E;AAAA,IACA,YAAAC;AAAA,IACA,MAAA7D;AAAA,IACA,cAAAnB;AAAA,EAAA,IACEjC;AAEJ,SACEC,gBAAAA,EAAAA;AAAAA,IAACuB;AAAA,IAAA;AAAA,MACC,IAAAuF;AAAA,MACA,OAAAvG;AAAA,MACA,UAAAkB;AAAA,MACA,eAAAC;AAAA,MACA,WAAA/B;AAAA,MACA,gBAAAgC;AAAA,MACA,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,MAAAqB;AAAA,MACA,cAAAnB;AAAA,MACA,oBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,eAAa6E;AAAA,MACb,iBAAeC,IAAa,SAAS;AAAA,IAAA;AAAA,EAAA;AAG3C;"}
package/dist/index110.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import t from "react";
2
- function a(e) {
3
- return t.createElement("th", { ...e });
2
+ function o(e) {
3
+ return t.createElement("div", { ...e });
4
4
  }
5
5
  export {
6
- a as WeekNumberHeader
6
+ o as DropdownNav
7
7
  };
8
8
  //# sourceMappingURL=index110.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index110.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the header cell for the week numbers column.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function WeekNumberHeader(props) {\n return React.createElement(\"th\", { ...props });\n}\n"],"names":["WeekNumberHeader","props","React"],"mappings":";AAOO,SAASA,EAAiBC,GAAO;AACpC,SAAOC,EAAM,cAAc,MAAM,EAAE,GAAGD,EAAK,CAAE;AACjD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index110.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/DropdownNav.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the navigation dropdowns for the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function DropdownNav(props) {\n return React.createElement(\"div\", { ...props });\n}\n"],"names":["DropdownNav","props","React"],"mappings":";AAOO,SAASA,EAAYC,GAAO;AAC/B,SAAOC,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAK,CAAE;AAClD;","x_google_ignoreList":[0]}
package/dist/index111.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import t from "react";
2
2
  function o(e) {
3
- return t.createElement("tbody", { ...e });
3
+ return t.createElement("div", { ...e });
4
4
  }
5
5
  export {
6
- o as Weeks
6
+ o as Footer
7
7
  };
8
8
  //# sourceMappingURL=index111.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index111.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Weeks.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the container for the weeks in the month grid.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Weeks(props) {\n return React.createElement(\"tbody\", { ...props });\n}\n"],"names":["Weeks","props","React"],"mappings":";AAOO,SAASA,EAAMC,GAAO;AACzB,SAAOC,EAAM,cAAc,SAAS,EAAE,GAAGD,EAAK,CAAE;AACpD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index111.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Footer.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the footer of the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Footer(props) {\n return React.createElement(\"div\", { ...props });\n}\n"],"names":["Footer","props","React"],"mappings":";AAOO,SAASA,EAAOC,GAAO;AAC1B,SAAOC,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAK,CAAE;AAClD;","x_google_ignoreList":[0]}
package/dist/index112.js CHANGED
@@ -1,10 +1,9 @@
1
- import r from "react";
2
- import { useDayPicker as t } from "./index129.js";
3
- function m(o) {
4
- const { components: e } = t();
5
- return r.createElement(e.Dropdown, { ...o });
1
+ import n from "react";
2
+ function a(e) {
3
+ const { calendarMonth: r, displayIndex: d, ...t } = e;
4
+ return n.createElement("div", { ...t }, e.children);
6
5
  }
7
6
  export {
8
- m as YearsDropdown
7
+ a as Month
9
8
  };
10
9
  //# sourceMappingURL=index112.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index112.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/YearsDropdown.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render a dropdown to navigate between years in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function YearsDropdown(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Dropdown, { ...props });\n}\n"],"names":["YearsDropdown","props","components","useDayPicker","React"],"mappings":";;AAQO,SAASA,EAAcC,GAAO;AACjC,QAAM,EAAE,YAAAC,EAAU,IAAKC,EAAY;AACnC,SAAOC,EAAM,cAAcF,EAAW,UAAU,EAAE,GAAGD,GAAO;AAChE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index112.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Month.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the grid with the weekday header row and the weeks for a specific\n * month.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Month(props) {\n const { calendarMonth, displayIndex, ...divProps } = props;\n return React.createElement(\"div\", { ...divProps }, props.children);\n}\n"],"names":["Month","props","calendarMonth","displayIndex","divProps","React"],"mappings":";AAQO,SAASA,EAAMC,GAAO;AACzB,QAAM,EAAE,eAAAC,GAAe,cAAAC,GAAc,GAAGC,EAAQ,IAAKH;AACrD,SAAOI,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAQ,GAAIH,EAAM,QAAQ;AACrE;","x_google_ignoreList":[0]}
package/dist/index113.js CHANGED
@@ -1,149 +1,9 @@
1
- import { TZDate as a } from "./index215.js";
2
- import "./index217.js";
3
- import { endOfBroadcastWeek as f } from "./index222.js";
4
- import { startOfBroadcastWeek as d } from "./index223.js";
5
- import { enUS as m } from "./index136.js";
6
- import { addDays as v } from "./index224.js";
7
- import { addMonths as p } from "./index225.js";
8
- import { addWeeks as O } from "./index226.js";
9
- import { addYears as c } from "./index227.js";
10
- import { differenceInCalendarDays as u } from "./index228.js";
11
- import { differenceInCalendarMonths as l } from "./index229.js";
12
- import { eachMonthOfInterval as M } from "./index230.js";
13
- import { eachYearOfInterval as k } from "./index231.js";
14
- import { endOfISOWeek as W } from "./index232.js";
15
- import { endOfMonth as D } from "./index233.js";
16
- import { endOfWeek as Y } from "./index234.js";
17
- import { endOfYear as S } from "./index235.js";
18
- import { getISOWeek as y } from "./index236.js";
19
- import { getMonth as g } from "./index237.js";
20
- import { getYear as I } from "./index238.js";
21
- import { getWeek as w } from "./index239.js";
22
- import { isAfter as B } from "./index240.js";
23
- import { isBefore as L } from "./index241.js";
24
- import { isDate as C } from "./index242.js";
25
- import { isSameDay as z } from "./index243.js";
26
- import { isSameMonth as Z } from "./index244.js";
27
- import { isSameYear as b } from "./index245.js";
28
- import { max as A } from "./index246.js";
29
- import { min as F } from "./index247.js";
30
- import { setMonth as N } from "./index248.js";
31
- import { setYear as _ } from "./index249.js";
32
- import { startOfDay as j } from "./index250.js";
33
- import { startOfISOWeek as x } from "./index251.js";
34
- import { startOfMonth as H } from "./index252.js";
35
- import { startOfWeek as K } from "./index253.js";
36
- import { startOfYear as T } from "./index254.js";
37
- import { formatDate as U } from "./index255.js";
38
- class n {
39
- /**
40
- * Creates an instance of `DateLib`.
41
- *
42
- * @param options Configuration options for the date library.
43
- * @param overrides Custom overrides for the date library functions.
44
- */
45
- constructor(t, i) {
46
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? a.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, e, s) => this.overrides?.newDate ? this.overrides.newDate(r, e, s) : this.options.timeZone ? new a(r, e, s, this.options.timeZone) : new Date(r, e, s), this.addDays = (r, e) => this.overrides?.addDays ? this.overrides.addDays(r, e) : v(r, e), this.addMonths = (r, e) => this.overrides?.addMonths ? this.overrides.addMonths(r, e) : p(r, e), this.addWeeks = (r, e) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, e) : O(r, e), this.addYears = (r, e) => this.overrides?.addYears ? this.overrides.addYears(r, e) : c(r, e), this.differenceInCalendarDays = (r, e) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, e) : u(r, e), this.differenceInCalendarMonths = (r, e) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, e) : l(r, e), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : M(r), this.eachYearOfInterval = (r) => {
47
- const e = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : k(r), s = new Set(e.map((h) => this.getYear(h)));
48
- if (s.size === e.length)
49
- return e;
50
- const o = [];
51
- return s.forEach((h) => {
52
- o.push(new Date(h, 0, 1));
53
- }), o;
54
- }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : f(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : W(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : D(r), this.endOfWeek = (r, e) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, e) : Y(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : S(r), this.format = (r, e, s) => {
55
- const o = this.overrides?.format ? this.overrides.format(r, e, this.options) : U(r, e, this.options);
56
- return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
57
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : y(r), this.getMonth = (r, e) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : g(r, this.options), this.getYear = (r, e) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : I(r, this.options), this.getWeek = (r, e) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : w(r, this.options), this.isAfter = (r, e) => this.overrides?.isAfter ? this.overrides.isAfter(r, e) : B(r, e), this.isBefore = (r, e) => this.overrides?.isBefore ? this.overrides.isBefore(r, e) : L(r, e), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : C(r), this.isSameDay = (r, e) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, e) : z(r, e), this.isSameMonth = (r, e) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, e) : Z(r, e), this.isSameYear = (r, e) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, e) : b(r, e), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : A(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : F(r), this.setMonth = (r, e) => this.overrides?.setMonth ? this.overrides.setMonth(r, e) : N(r, e), this.setYear = (r, e) => this.overrides?.setYear ? this.overrides.setYear(r, e) : _(r, e), this.startOfBroadcastWeek = (r, e) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : d(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : j(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : x(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : H(r), this.startOfWeek = (r, e) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : K(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : T(r), this.options = { locale: m, ...t }, this.overrides = i;
58
- }
59
- /**
60
- * Generates a mapping of Arabic digits (0-9) to the target numbering system
61
- * digits.
62
- *
63
- * @since 9.5.0
64
- * @returns A record mapping Arabic digits to the target numerals.
65
- */
66
- getDigitMap() {
67
- const { numerals: t = "latn" } = this.options, i = new Intl.NumberFormat("en-US", {
68
- numberingSystem: t
69
- }), r = {};
70
- for (let e = 0; e < 10; e++)
71
- r[e.toString()] = i.format(e);
72
- return r;
73
- }
74
- /**
75
- * Replaces Arabic digits in a string with the target numbering system digits.
76
- *
77
- * @since 9.5.0
78
- * @param input The string containing Arabic digits.
79
- * @returns The string with digits replaced.
80
- */
81
- replaceDigits(t) {
82
- const i = this.getDigitMap();
83
- return t.replace(/\d/g, (r) => i[r] || r);
84
- }
85
- /**
86
- * Formats a number using the configured numbering system.
87
- *
88
- * @since 9.5.0
89
- * @param value The number to format.
90
- * @returns The formatted number as a string.
91
- */
92
- formatNumber(t) {
93
- return this.replaceDigits(t.toString());
94
- }
95
- /**
96
- * Returns the preferred ordering for month and year labels for the current
97
- * locale.
98
- */
99
- getMonthYearOrder() {
100
- const t = this.options.locale?.code;
101
- return t && n.yearFirstLocales.has(t) ? "year-first" : "month-first";
102
- }
103
- /**
104
- * Formats the month/year pair respecting locale conventions.
105
- *
106
- * @since 9.11.0
107
- */
108
- formatMonthYear(t) {
109
- const { locale: i, timeZone: r, numerals: e } = this.options, s = i?.code;
110
- if (s && n.yearFirstLocales.has(s))
111
- try {
112
- return new Intl.DateTimeFormat(s, {
113
- month: "long",
114
- year: "numeric",
115
- timeZone: r,
116
- numberingSystem: e
117
- }).format(t);
118
- } catch {
119
- }
120
- const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
121
- return this.format(t, o);
122
- }
1
+ import n from "react";
2
+ function d(t) {
3
+ const { calendarMonth: o, displayIndex: r, ...e } = t;
4
+ return n.createElement("div", { ...e });
123
5
  }
124
- n.yearFirstLocales = /* @__PURE__ */ new Set([
125
- "eu",
126
- "hu",
127
- "ja",
128
- "ja-Hira",
129
- "ja-JP",
130
- "ko",
131
- "ko-KR",
132
- "lt",
133
- "lt-LT",
134
- "lv",
135
- "lv-LV",
136
- "mn",
137
- "mn-MN",
138
- "zh",
139
- "zh-CN",
140
- "zh-HK",
141
- "zh-TW"
142
- ]);
143
- const Br = new n();
144
6
  export {
145
- n as DateLib,
146
- Br as defaultDateLib,
147
- m as defaultLocale
7
+ d as MonthCaption
148
8
  };
149
9
  //# sourceMappingURL=index113.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index113.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/DateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { addDays, addMonths, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarMonths, eachMonthOfInterval, eachYearOfInterval, endOfISOWeek, endOfMonth, endOfWeek, endOfYear, format, getISOWeek, getMonth, getWeek, getYear, isAfter, isBefore, isDate, isSameDay, isSameMonth, isSameYear, max, min, setMonth, setYear, startOfDay, startOfISOWeek, startOfMonth, startOfWeek, startOfYear, } from \"date-fns\";\nimport { endOfBroadcastWeek } from \"../helpers/endOfBroadcastWeek.js\";\nimport { startOfBroadcastWeek } from \"../helpers/startOfBroadcastWeek.js\";\nimport { enUS } from \"../locale/en-US.js\";\n/**\n * A wrapper class around [date-fns](http://date-fns.org) that provides utility\n * methods for date manipulation and formatting.\n *\n * @since 9.2.0\n * @example\n * const dateLib = new DateLib({ locale: es });\n * const newDate = dateLib.addDays(new Date(), 5);\n */\nexport class DateLib {\n /**\n * Creates an instance of `DateLib`.\n *\n * @param options Configuration options for the date library.\n * @param overrides Custom overrides for the date library functions.\n */\n constructor(options, overrides) {\n /**\n * Reference to the built-in Date constructor.\n *\n * @deprecated Use `newDate()` or `today()`.\n */\n this.Date = Date;\n /**\n * Creates a new `Date` object representing today's date.\n *\n * @since 9.5.0\n * @returns A `Date` object for today's date.\n */\n this.today = () => {\n if (this.overrides?.today) {\n return this.overrides.today();\n }\n if (this.options.timeZone) {\n return TZDate.tz(this.options.timeZone);\n }\n return new this.Date();\n };\n /**\n * Creates a new `Date` object with the specified year, month, and day.\n *\n * @since 9.5.0\n * @param year The year.\n * @param monthIndex The month (0-11).\n * @param date The day of the month.\n * @returns A new `Date` object.\n */\n this.newDate = (year, monthIndex, date) => {\n if (this.overrides?.newDate) {\n return this.overrides.newDate(year, monthIndex, date);\n }\n if (this.options.timeZone) {\n return new TZDate(year, monthIndex, date, this.options.timeZone);\n }\n return new Date(year, monthIndex, date);\n };\n /**\n * Adds the specified number of days to the given date.\n *\n * @param date The date to add days to.\n * @param amount The number of days to add.\n * @returns The new date with the days added.\n */\n this.addDays = (date, amount) => {\n return this.overrides?.addDays\n ? this.overrides.addDays(date, amount)\n : addDays(date, amount);\n };\n /**\n * Adds the specified number of months to the given date.\n *\n * @param date The date to add months to.\n * @param amount The number of months to add.\n * @returns The new date with the months added.\n */\n this.addMonths = (date, amount) => {\n return this.overrides?.addMonths\n ? this.overrides.addMonths(date, amount)\n : addMonths(date, amount);\n };\n /**\n * Adds the specified number of weeks to the given date.\n *\n * @param date The date to add weeks to.\n * @param amount The number of weeks to add.\n * @returns The new date with the weeks added.\n */\n this.addWeeks = (date, amount) => {\n return this.overrides?.addWeeks\n ? this.overrides.addWeeks(date, amount)\n : addWeeks(date, amount);\n };\n /**\n * Adds the specified number of years to the given date.\n *\n * @param date The date to add years to.\n * @param amount The number of years to add.\n * @returns The new date with the years added.\n */\n this.addYears = (date, amount) => {\n return this.overrides?.addYears\n ? this.overrides.addYears(date, amount)\n : addYears(date, amount);\n };\n /**\n * Returns the number of calendar days between the given dates.\n *\n * @param dateLeft The later date.\n * @param dateRight The earlier date.\n * @returns The number of calendar days between the dates.\n */\n this.differenceInCalendarDays = (dateLeft, dateRight) => {\n return this.overrides?.differenceInCalendarDays\n ? this.overrides.differenceInCalendarDays(dateLeft, dateRight)\n : differenceInCalendarDays(dateLeft, dateRight);\n };\n /**\n * Returns the number of calendar months between the given dates.\n *\n * @param dateLeft The later date.\n * @param dateRight The earlier date.\n * @returns The number of calendar months between the dates.\n */\n this.differenceInCalendarMonths = (dateLeft, dateRight) => {\n return this.overrides?.differenceInCalendarMonths\n ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight)\n : differenceInCalendarMonths(dateLeft, dateRight);\n };\n /**\n * Returns the months between the given dates.\n *\n * @param interval The interval to get the months for.\n */\n this.eachMonthOfInterval = (interval) => {\n return this.overrides?.eachMonthOfInterval\n ? this.overrides.eachMonthOfInterval(interval)\n : eachMonthOfInterval(interval);\n };\n /**\n * Returns the years between the given dates.\n *\n * @since 9.11.1\n * @param interval The interval to get the years for.\n * @returns The array of years in the interval.\n */\n this.eachYearOfInterval = (interval) => {\n const years = this.overrides?.eachYearOfInterval\n ? this.overrides.eachYearOfInterval(interval)\n : eachYearOfInterval(interval);\n // Remove duplicates that may happen across DST transitions (e.g., \"America/Sao_Paulo\")\n // See https://github.com/date-fns/tz/issues/72\n const uniqueYears = new Set(years.map((d) => this.getYear(d)));\n if (uniqueYears.size === years.length) {\n // No duplicates, return as is\n return years;\n }\n // Rebuild the array to ensure one date per year\n const yearsArray = [];\n uniqueYears.forEach((y) => {\n yearsArray.push(new Date(y, 0, 1));\n });\n return yearsArray;\n };\n /**\n * Returns the end of the broadcast week for the given date.\n *\n * @param date The original date.\n * @returns The end of the broadcast week.\n */\n this.endOfBroadcastWeek = (date) => {\n return this.overrides?.endOfBroadcastWeek\n ? this.overrides.endOfBroadcastWeek(date)\n : endOfBroadcastWeek(date, this);\n };\n /**\n * Returns the end of the ISO week for the given date.\n *\n * @param date The original date.\n * @returns The end of the ISO week.\n */\n this.endOfISOWeek = (date) => {\n return this.overrides?.endOfISOWeek\n ? this.overrides.endOfISOWeek(date)\n : endOfISOWeek(date);\n };\n /**\n * Returns the end of the month for the given date.\n *\n * @param date The original date.\n * @returns The end of the month.\n */\n this.endOfMonth = (date) => {\n return this.overrides?.endOfMonth\n ? this.overrides.endOfMonth(date)\n : endOfMonth(date);\n };\n /**\n * Returns the end of the week for the given date.\n *\n * @param date The original date.\n * @returns The end of the week.\n */\n this.endOfWeek = (date, options) => {\n return this.overrides?.endOfWeek\n ? this.overrides.endOfWeek(date, options)\n : endOfWeek(date, this.options);\n };\n /**\n * Returns the end of the year for the given date.\n *\n * @param date The original date.\n * @returns The end of the year.\n */\n this.endOfYear = (date) => {\n return this.overrides?.endOfYear\n ? this.overrides.endOfYear(date)\n : endOfYear(date);\n };\n /**\n * Formats the given date using the specified format string.\n *\n * @param date The date to format.\n * @param formatStr The format string.\n * @returns The formatted date string.\n */\n this.format = (date, formatStr, _options) => {\n const formatted = this.overrides?.format\n ? this.overrides.format(date, formatStr, this.options)\n : format(date, formatStr, this.options);\n if (this.options.numerals && this.options.numerals !== \"latn\") {\n return this.replaceDigits(formatted);\n }\n return formatted;\n };\n /**\n * Returns the ISO week number for the given date.\n *\n * @param date The date to get the ISO week number for.\n * @returns The ISO week number.\n */\n this.getISOWeek = (date) => {\n return this.overrides?.getISOWeek\n ? this.overrides.getISOWeek(date)\n : getISOWeek(date);\n };\n /**\n * Returns the month of the given date.\n *\n * @param date The date to get the month for.\n * @returns The month.\n */\n this.getMonth = (date, _options) => {\n return this.overrides?.getMonth\n ? this.overrides.getMonth(date, this.options)\n : getMonth(date, this.options);\n };\n /**\n * Returns the year of the given date.\n *\n * @param date The date to get the year for.\n * @returns The year.\n */\n this.getYear = (date, _options) => {\n return this.overrides?.getYear\n ? this.overrides.getYear(date, this.options)\n : getYear(date, this.options);\n };\n /**\n * Returns the local week number for the given date.\n *\n * @param date The date to get the week number for.\n * @returns The week number.\n */\n this.getWeek = (date, _options) => {\n return this.overrides?.getWeek\n ? this.overrides.getWeek(date, this.options)\n : getWeek(date, this.options);\n };\n /**\n * Checks if the first date is after the second date.\n *\n * @param date The date to compare.\n * @param dateToCompare The date to compare with.\n * @returns True if the first date is after the second date.\n */\n this.isAfter = (date, dateToCompare) => {\n return this.overrides?.isAfter\n ? this.overrides.isAfter(date, dateToCompare)\n : isAfter(date, dateToCompare);\n };\n /**\n * Checks if the first date is before the second date.\n *\n * @param date The date to compare.\n * @param dateToCompare The date to compare with.\n * @returns True if the first date is before the second date.\n */\n this.isBefore = (date, dateToCompare) => {\n return this.overrides?.isBefore\n ? this.overrides.isBefore(date, dateToCompare)\n : isBefore(date, dateToCompare);\n };\n /**\n * Checks if the given value is a Date object.\n *\n * @param value The value to check.\n * @returns True if the value is a Date object.\n */\n this.isDate = (value) => {\n return this.overrides?.isDate\n ? this.overrides.isDate(value)\n : isDate(value);\n };\n /**\n * Checks if the given dates are on the same day.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are on the same day.\n */\n this.isSameDay = (dateLeft, dateRight) => {\n return this.overrides?.isSameDay\n ? this.overrides.isSameDay(dateLeft, dateRight)\n : isSameDay(dateLeft, dateRight);\n };\n /**\n * Checks if the given dates are in the same month.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are in the same month.\n */\n this.isSameMonth = (dateLeft, dateRight) => {\n return this.overrides?.isSameMonth\n ? this.overrides.isSameMonth(dateLeft, dateRight)\n : isSameMonth(dateLeft, dateRight);\n };\n /**\n * Checks if the given dates are in the same year.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are in the same year.\n */\n this.isSameYear = (dateLeft, dateRight) => {\n return this.overrides?.isSameYear\n ? this.overrides.isSameYear(dateLeft, dateRight)\n : isSameYear(dateLeft, dateRight);\n };\n /**\n * Returns the latest date in the given array of dates.\n *\n * @param dates The array of dates to compare.\n * @returns The latest date.\n */\n this.max = (dates) => {\n return this.overrides?.max ? this.overrides.max(dates) : max(dates);\n };\n /**\n * Returns the earliest date in the given array of dates.\n *\n * @param dates The array of dates to compare.\n * @returns The earliest date.\n */\n this.min = (dates) => {\n return this.overrides?.min ? this.overrides.min(dates) : min(dates);\n };\n /**\n * Sets the month of the given date.\n *\n * @param date The date to set the month on.\n * @param month The month to set (0-11).\n * @returns The new date with the month set.\n */\n this.setMonth = (date, month) => {\n return this.overrides?.setMonth\n ? this.overrides.setMonth(date, month)\n : setMonth(date, month);\n };\n /**\n * Sets the year of the given date.\n *\n * @param date The date to set the year on.\n * @param year The year to set.\n * @returns The new date with the year set.\n */\n this.setYear = (date, year) => {\n return this.overrides?.setYear\n ? this.overrides.setYear(date, year)\n : setYear(date, year);\n };\n /**\n * Returns the start of the broadcast week for the given date.\n *\n * @param date The original date.\n * @returns The start of the broadcast week.\n */\n this.startOfBroadcastWeek = (date, _dateLib) => {\n return this.overrides?.startOfBroadcastWeek\n ? this.overrides.startOfBroadcastWeek(date, this)\n : startOfBroadcastWeek(date, this);\n };\n /**\n * Returns the start of the day for the given date.\n *\n * @param date The original date.\n * @returns The start of the day.\n */\n this.startOfDay = (date) => {\n return this.overrides?.startOfDay\n ? this.overrides.startOfDay(date)\n : startOfDay(date);\n };\n /**\n * Returns the start of the ISO week for the given date.\n *\n * @param date The original date.\n * @returns The start of the ISO week.\n */\n this.startOfISOWeek = (date) => {\n return this.overrides?.startOfISOWeek\n ? this.overrides.startOfISOWeek(date)\n : startOfISOWeek(date);\n };\n /**\n * Returns the start of the month for the given date.\n *\n * @param date The original date.\n * @returns The start of the month.\n */\n this.startOfMonth = (date) => {\n return this.overrides?.startOfMonth\n ? this.overrides.startOfMonth(date)\n : startOfMonth(date);\n };\n /**\n * Returns the start of the week for the given date.\n *\n * @param date The original date.\n * @returns The start of the week.\n */\n this.startOfWeek = (date, _options) => {\n return this.overrides?.startOfWeek\n ? this.overrides.startOfWeek(date, this.options)\n : startOfWeek(date, this.options);\n };\n /**\n * Returns the start of the year for the given date.\n *\n * @param date The original date.\n * @returns The start of the year.\n */\n this.startOfYear = (date) => {\n return this.overrides?.startOfYear\n ? this.overrides.startOfYear(date)\n : startOfYear(date);\n };\n this.options = { locale: enUS, ...options };\n this.overrides = overrides;\n }\n /**\n * Generates a mapping of Arabic digits (0-9) to the target numbering system\n * digits.\n *\n * @since 9.5.0\n * @returns A record mapping Arabic digits to the target numerals.\n */\n getDigitMap() {\n const { numerals = \"latn\" } = this.options;\n // Use Intl.NumberFormat to create a formatter with the specified numbering system\n const formatter = new Intl.NumberFormat(\"en-US\", {\n numberingSystem: numerals,\n });\n // Map Arabic digits (0-9) to the target numerals\n const digitMap = {};\n for (let i = 0; i < 10; i++) {\n digitMap[i.toString()] = formatter.format(i);\n }\n return digitMap;\n }\n /**\n * Replaces Arabic digits in a string with the target numbering system digits.\n *\n * @since 9.5.0\n * @param input The string containing Arabic digits.\n * @returns The string with digits replaced.\n */\n replaceDigits(input) {\n const digitMap = this.getDigitMap();\n return input.replace(/\\d/g, (digit) => digitMap[digit] || digit);\n }\n /**\n * Formats a number using the configured numbering system.\n *\n * @since 9.5.0\n * @param value The number to format.\n * @returns The formatted number as a string.\n */\n formatNumber(value) {\n return this.replaceDigits(value.toString());\n }\n /**\n * Returns the preferred ordering for month and year labels for the current\n * locale.\n */\n getMonthYearOrder() {\n const code = this.options.locale?.code;\n if (!code) {\n return \"month-first\";\n }\n return DateLib.yearFirstLocales.has(code) ? \"year-first\" : \"month-first\";\n }\n /**\n * Formats the month/year pair respecting locale conventions.\n *\n * @since 9.11.0\n */\n formatMonthYear(date) {\n const { locale, timeZone, numerals } = this.options;\n const localeCode = locale?.code;\n if (localeCode && DateLib.yearFirstLocales.has(localeCode)) {\n try {\n const intl = new Intl.DateTimeFormat(localeCode, {\n month: \"long\",\n year: \"numeric\",\n timeZone,\n numberingSystem: numerals,\n });\n const formatted = intl.format(date);\n return formatted;\n }\n catch {\n // Fallback to date-fns formatting below.\n }\n }\n const pattern = this.getMonthYearOrder() === \"year-first\" ? \"y LLLL\" : \"LLLL y\";\n return this.format(date, pattern);\n }\n}\nDateLib.yearFirstLocales = new Set([\n \"eu\",\n \"hu\",\n \"ja\",\n \"ja-Hira\",\n \"ja-JP\",\n \"ko\",\n \"ko-KR\",\n \"lt\",\n \"lt-LT\",\n \"lv\",\n \"lv-LV\",\n \"mn\",\n \"mn-MN\",\n \"zh\",\n \"zh-CN\",\n \"zh-HK\",\n \"zh-TW\",\n]);\n/** The default locale (English). */\nexport { enUS as defaultLocale } from \"../locale/en-US.js\";\n/**\n * The default date library with English locale.\n *\n * @since 9.2.0\n */\nexport const defaultDateLib = new DateLib();\n/**\n * @ignore\n * @deprecated Use `defaultDateLib`.\n */\nexport const dateLib = defaultDateLib;\n"],"names":["DateLib","options","overrides","TZDate","year","monthIndex","date","amount","addDays","addMonths","addWeeks","addYears","dateLeft","dateRight","differenceInCalendarDays","differenceInCalendarMonths","interval","eachMonthOfInterval","years","eachYearOfInterval","uniqueYears","d","yearsArray","y","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","endOfYear","formatStr","_options","formatted","format","getISOWeek","getMonth","getYear","getWeek","dateToCompare","isAfter","isBefore","value","isDate","isSameDay","isSameMonth","isSameYear","dates","max","min","month","setMonth","setYear","_dateLib","startOfBroadcastWeek","startOfDay","startOfISOWeek","startOfMonth","startOfWeek","startOfYear","enUS","numerals","formatter","digitMap","i","input","digit","code","locale","timeZone","localeCode","pattern","defaultDateLib"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAMA,EAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjB,YAAYC,GAASC,GAAW;AAM5B,SAAK,OAAO,MAOZ,KAAK,QAAQ,MACL,KAAK,WAAW,QACT,KAAK,UAAU,MAAK,IAE3B,KAAK,QAAQ,WACNC,EAAO,GAAG,KAAK,QAAQ,QAAQ,IAEnC,IAAI,KAAK,KAAI,GAWxB,KAAK,UAAU,CAACC,GAAMC,GAAYC,MAC1B,KAAK,WAAW,UACT,KAAK,UAAU,QAAQF,GAAMC,GAAYC,CAAI,IAEpD,KAAK,QAAQ,WACN,IAAIH,EAAOC,GAAMC,GAAYC,GAAM,KAAK,QAAQ,QAAQ,IAE5D,IAAI,KAAKF,GAAMC,GAAYC,CAAI,GAS1C,KAAK,UAAU,CAACA,GAAMC,MACX,KAAK,WAAW,UACjB,KAAK,UAAU,QAAQD,GAAMC,CAA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AE;AAAA,EAC9C;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,oBAAoB;AAChB,UAAMyB,IAAO,KAAK,QAAQ,QAAQ;AAClC,WAAKA,KAGEjE,EAAQ,iBAAiB,IAAIiE,CAAI,IAAI,eAFjC;AAAA,EAGf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAgB3D,GAAM;AAClB,UAAM,EAAE,QAAA4D,GAAQ,UAAAC,GAAU,UAAAR,EAAQ,IAAK,KAAK,SACtCS,IAAaF,GAAQ;AAC3B,QAAIE,KAAcpE,EAAQ,iBAAiB,IAAIoE,CAAU;AACrD,UAAI;AAQA,eAPa,IAAI,KAAK,eAAeA,GAAY;AAAA,UAC7C,OAAO;AAAA,UACP,MAAM;AAAA,UACN,UAAAD;AAAA,UACA,iBAAiBR;AAAA,QACrC,CAAiB,EACsB,OAAOrD,CAAI;AAAA,MAEtC,QACM;AAAA,MAEN;AAEJ,UAAM+D,IAAU,KAAK,kBAAiB,MAAO,eAAe,WAAW;AACvE,WAAO,KAAK,OAAO/D,GAAM+D,CAAO;AAAA,EACpC;AACJ;AACArE,EAAQ,mBAAmB,oBAAI,IAAI;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AAQW,MAACsE,KAAiB,IAAItE,EAAO;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index113.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/MonthCaption.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the caption for a month in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function MonthCaption(props) {\n const { calendarMonth, displayIndex, ...divProps } = props;\n return React.createElement(\"div\", { ...divProps });\n}\n"],"names":["MonthCaption","props","calendarMonth","displayIndex","divProps","React"],"mappings":";AAOO,SAASA,EAAaC,GAAO;AAChC,QAAM,EAAE,eAAAC,GAAe,cAAAC,GAAc,GAAGC,EAAQ,IAAKH;AACrD,SAAOI,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAQ,CAAE;AACrD;","x_google_ignoreList":[0]}
package/dist/index114.js CHANGED
@@ -1,43 +1,8 @@
1
- import { DayFlag as e } from "./index126.js";
2
- import { dateMatchModifiers as u } from "./index256.js";
3
- function V(b, S, h, M, a) {
4
- const { disabled: m, hidden: p, modifiers: r, showOutsideDays: y, broadcastCalendar: B, today: g = a.today() } = S, { isSameDay: v, isSameMonth: A, startOfMonth: E, isBefore: F, endOfMonth: j, isAfter: k } = a, O = h && E(h), D = M && j(M), i = {
5
- [e.focused]: [],
6
- [e.outside]: [],
7
- [e.disabled]: [],
8
- [e.hidden]: [],
9
- [e.today]: []
10
- }, d = {};
11
- for (const s of b) {
12
- const { date: o, displayMonth: n } = s, t = !!(n && !A(o, n)), f = !!(O && F(o, O)), l = !!(D && k(o, D)), w = !!(m && u(o, m, a)), x = !!(p && u(o, p, a)) || f || l || // Broadcast calendar will show outside days as default
13
- !B && !y && t || B && y === !1 && t, C = v(o, g);
14
- t && i.outside.push(s), w && i.disabled.push(s), x && i.hidden.push(s), C && i.today.push(s), r && Object.keys(r).forEach((c) => {
15
- const N = r?.[c];
16
- N && u(o, N, a) && (d[c] ? d[c].push(s) : d[c] = [s]);
17
- });
18
- }
19
- return (s) => {
20
- const o = {
21
- [e.focused]: !1,
22
- [e.disabled]: !1,
23
- [e.hidden]: !1,
24
- [e.outside]: !1,
25
- [e.today]: !1
26
- }, n = {};
27
- for (const t in i) {
28
- const f = i[t];
29
- o[t] = f.some((l) => l === s);
30
- }
31
- for (const t in d)
32
- n[t] = d[t].some((f) => f === s);
33
- return {
34
- ...o,
35
- // custom modifiers should override all the previous ones
36
- ...n
37
- };
38
- };
1
+ import e from "react";
2
+ function n(t) {
3
+ return e.createElement("table", { ...t });
39
4
  }
40
5
  export {
41
- V as createGetModifiers
6
+ n as MonthGrid
42
7
  };
43
8
  //# sourceMappingURL=index114.js.map