@fde-desktop/fde-core 0.4.7 → 0.4.9

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 (284) hide show
  1. package/dist/AccordionChevron-DxpOyInK.js +26 -0
  2. package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
  3. package/dist/ActionIcon-Drh4p6Fv.js +145 -0
  4. package/dist/ActionIcon-alk2zZD6.cjs +1 -0
  5. package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
  6. package/dist/AppEmptyState-Bxpit0JV.js +49 -0
  7. package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
  8. package/dist/AppIcon-XumS3bIG.js +80 -0
  9. package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
  10. package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
  11. package/dist/Box-DSKR_qaa.js +1579 -0
  12. package/dist/Box-zW6Twge8.cjs +1 -0
  13. package/dist/Button-DMlnrqyx.cjs +1 -0
  14. package/dist/Button-wTOTQKxF.js +178 -0
  15. package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
  16. package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
  17. package/dist/CalendarApp-D0ftTCTG.js +1399 -0
  18. package/dist/Center-CmxXB9ql.js +25 -0
  19. package/dist/Center-DKUE2pER.cjs +1 -0
  20. package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
  21. package/dist/CheckIcon-N5qBqXQJ.js +25 -0
  22. package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
  23. package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
  24. package/dist/CodeServerApp-DW18EZxa.js +150 -0
  25. package/dist/ColorPicker-BCNqi02x.js +997 -0
  26. package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
  27. package/dist/Colors-ClnDxnyA.js +15 -0
  28. package/dist/Colors-zP2AFgU3.cjs +1 -0
  29. package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
  30. package/dist/CreateItemApp-TAAprby3.js +400 -0
  31. package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
  32. package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
  33. package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
  34. package/dist/DeviceInfoApp-lgpwkeRR.js +223 -0
  35. package/dist/DownloadProgress-EoyCaD5O.js +174 -0
  36. package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
  37. package/dist/FileIcon-7JaSR3Gn.js +89 -0
  38. package/dist/FileIcon-CIXopWLv.cjs +1 -0
  39. package/dist/FilePickerApp-DaMgEqKh.js +409 -0
  40. package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
  41. package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
  42. package/dist/FilesApp-BpJJRKhi.cjs +1 -0
  43. package/dist/FilesApp-Cj94QG5o.js +225 -0
  44. package/dist/Group-CtBJSfCo.js +48 -0
  45. package/dist/Group-Dsrf6lEK.cjs +1 -0
  46. package/dist/ImageViewerApp-BaLP3gkO.js +69 -0
  47. package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
  48. package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
  49. package/dist/ImageViewerMenuBar-CabGSi9r.js +87 -0
  50. package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
  51. package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
  52. package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
  53. package/dist/MenuEditApp-BTRppYnD.js +497 -0
  54. package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
  55. package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
  56. package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
  57. package/dist/MenuEditMenuBar-x1IQrHP2.js +60 -0
  58. package/dist/NotesApp-BOcRGO7w.cjs +1 -0
  59. package/dist/NotesApp-CQe7UfBC.js +364 -0
  60. package/dist/NotesApp-OL07JXRE.cjs +1 -0
  61. package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
  62. package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
  63. package/dist/NotesMenuBar-VhpIe68v.js +62 -0
  64. package/dist/Paper-BX_9odR6.js +30 -0
  65. package/dist/Paper-D8-BaBx2.cjs +1 -0
  66. package/dist/PdfApp-CNEbty5v.cjs +1 -0
  67. package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
  68. package/dist/PdfApp-DL_R9-Nc.js +39 -0
  69. package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
  70. package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
  71. package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
  72. package/dist/SettingsApp-BlmHuAjT.js +1831 -0
  73. package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
  74. package/dist/SettingsApp-DWxanNE4.cjs +1 -0
  75. package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
  76. package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
  77. package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
  78. package/dist/Slider-BUiHxjKO.cjs +1 -0
  79. package/dist/Slider-t-NcD60t.js +1176 -0
  80. package/dist/Stack-Bp1Ek2Gp.js +34 -0
  81. package/dist/Stack-D4jAiRfc.cjs +1 -0
  82. package/dist/StorybookApp-CDLV_kja.cjs +1 -0
  83. package/dist/StorybookApp-DKwlPCmo.js +10 -0
  84. package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
  85. package/dist/TerminalApp-BYc_gHLe.js +326 -0
  86. package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
  87. package/dist/TerminalMenuBar-D5tPmgR_.js +113 -0
  88. package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
  89. package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
  90. package/dist/TextInput-C-JtGWn1.js +981 -0
  91. package/dist/TextInput-CrsmcOip.cjs +1 -0
  92. package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
  93. package/dist/Tooltip-DOeIvhrO.js +1142 -0
  94. package/dist/UnstyledButton-DGaG-e_G.js +25 -0
  95. package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
  96. package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
  97. package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
  98. package/dist/UploaderApp-qBfpukR_.js +488 -0
  99. package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
  100. package/dist/VscIcon-DBfVnArE.js +8 -0
  101. package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
  102. package/dist/create-safe-context-XT2cxc14.js +12 -0
  103. package/dist/desktopStore-CZoA9VHO.cjs +1 -0
  104. package/dist/desktopStore-F8bgLqFl.js +1768 -0
  105. package/dist/getRuntime-BFK0-8R1.cjs +1 -0
  106. package/dist/getRuntime-DAPqFH2W.js +63 -0
  107. package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
  108. package/dist/imageViewerStore-C5kWz0o7.js +50 -0
  109. package/dist/index.cjs +1 -5642
  110. package/dist/index.css +2 -9192
  111. package/dist/index.d.ts +2258 -2019
  112. package/dist/index.js +4826 -4798
  113. package/dist/is-element-Bu_JY8Qy.js +7 -0
  114. package/dist/is-element-CdV0xajp.cjs +1 -0
  115. package/dist/menuEditStore-CTeM_dns.cjs +1 -0
  116. package/dist/menuEditStore-Cj1zAwxQ.js +38 -0
  117. package/dist/notesStore-BCEl1D_v.cjs +1 -0
  118. package/dist/notesStore-BPyRTHEc.js +36 -0
  119. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  120. package/dist/settingsAppStore-BDQ3ts1y.js +29 -0
  121. package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
  122. package/dist/terminalStore-IWdf4Mm6.js +30 -0
  123. package/dist/terminalStore-iIuyodfK.cjs +1 -0
  124. package/dist/use-merged-ref-BT8_u6vW.js +25 -0
  125. package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
  126. package/dist/use-resolved-styles-api-8OXE2oRq.cjs +1 -0
  127. package/dist/use-resolved-styles-api-DNUlJJZf.js +21 -0
  128. package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
  129. package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
  130. package/dist/useAdaptiveDimensions-AVDc_qPa.js +40 -0
  131. package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
  132. package/dist/useCloseInterceptor-BZd3VILp.js +51 -0
  133. package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
  134. package/dist/useDynamicIcon-Bf0t2foA.js +22 -0
  135. package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
  136. package/dist/useMenuBarUtils-nJIPJGIQ.cjs +1 -0
  137. package/dist/useMenuBarUtils-nmu9yehT.js +6 -0
  138. package/dist/useOpenApp-CBIm7Gzl.js +279 -0
  139. package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
  140. package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
  141. package/dist/useResolvedUrl-DQpLqOoL.js +30 -0
  142. package/package.json +7 -3
  143. package/dist/CalendarApp-CHLUCAI7.css +0 -744
  144. package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
  145. package/dist/CalendarApp-OTGEERSS.cjs +0 -8
  146. package/dist/CodeServerApp-5KZGO7HL.css +0 -75
  147. package/dist/CodeServerApp-LUZFCQBI.js +0 -3
  148. package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
  149. package/dist/CreateItemApp-ESQ42VHH.js +0 -8
  150. package/dist/CreateItemApp-PQB5GTFG.css +0 -107
  151. package/dist/CreateItemApp-RFE3REWZ.cjs +0 -14
  152. package/dist/DeviceInfoApp-XNIS6ZY6.js +0 -5
  153. package/dist/DeviceInfoApp-ZNLQNOKI.cjs +0 -11
  154. package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
  155. package/dist/FilesApp-4GEU64QN.js +0 -8
  156. package/dist/FilesApp-E6L5W3T2.css +0 -1817
  157. package/dist/FilesApp-QSLB5IWR.cjs +0 -14
  158. package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
  159. package/dist/ImageViewerApp-NCVDKLB3.js +0 -11
  160. package/dist/ImageViewerApp-QB373H5Z.cjs +0 -17
  161. package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
  162. package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
  163. package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
  164. package/dist/MenuEditApp-5EFYAPFC.cjs +0 -15
  165. package/dist/MenuEditApp-V5XOPIHX.js +0 -9
  166. package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
  167. package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
  168. package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
  169. package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
  170. package/dist/NotesApp-2YNT7Y3D.js +0 -10
  171. package/dist/NotesApp-IAEE7YHU.cjs +0 -16
  172. package/dist/NotesApp-TQ6IHDNX.css +0 -302
  173. package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
  174. package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
  175. package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
  176. package/dist/PdfApp-67XIX6AM.js +0 -10
  177. package/dist/PdfApp-BUIC5U5H.css +0 -206
  178. package/dist/PdfApp-GZ6RHTBR.cjs +0 -16
  179. package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
  180. package/dist/PdfMenuBar-QUM72EE4.css +0 -56
  181. package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
  182. package/dist/SettingsApp-BPLMGPNK.cjs +0 -20
  183. package/dist/SettingsApp-JVOSEFH3.css +0 -283
  184. package/dist/SettingsApp-LUDIXCYY.js +0 -14
  185. package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
  186. package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
  187. package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
  188. package/dist/StorybookApp-NQ244BER.css +0 -7
  189. package/dist/StorybookApp-NZDV4X3Y.js +0 -1
  190. package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
  191. package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
  192. package/dist/TerminalApp-EAATMIMX.css +0 -77
  193. package/dist/TerminalApp-GCKJCM55.js +0 -4
  194. package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
  195. package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
  196. package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
  197. package/dist/UploaderApp-6KV3TGCT.css +0 -1817
  198. package/dist/UploaderApp-FJC2J4I5.js +0 -10
  199. package/dist/UploaderApp-HLXJYJZQ.cjs +0 -16
  200. package/dist/chunk-2PSTHGTD.cjs +0 -42
  201. package/dist/chunk-2RQX7QBP.cjs +0 -148
  202. package/dist/chunk-43W6UDUZ.cjs +0 -19
  203. package/dist/chunk-4E45FBAH.js +0 -223
  204. package/dist/chunk-4E4U2A25.cjs +0 -237
  205. package/dist/chunk-4QHX7CMN.cjs +0 -38
  206. package/dist/chunk-4XURSNM4.js +0 -43
  207. package/dist/chunk-4ZCRYHL6.js +0 -407
  208. package/dist/chunk-5C6IQE42.cjs +0 -35
  209. package/dist/chunk-5HUYQDQF.js +0 -36
  210. package/dist/chunk-5NOHYJNH.js +0 -84
  211. package/dist/chunk-5QFZW6HW.js +0 -2241
  212. package/dist/chunk-5YH6AKEO.js +0 -146
  213. package/dist/chunk-756GPSPM.js +0 -283
  214. package/dist/chunk-7WUYUTPN.js +0 -2293
  215. package/dist/chunk-7XCMBW64.js +0 -162
  216. package/dist/chunk-7Y7HB7FB.cjs +0 -53
  217. package/dist/chunk-ABIAPZ6S.cjs +0 -45
  218. package/dist/chunk-ACHGJKCI.cjs +0 -286
  219. package/dist/chunk-BQCD5RAF.cjs +0 -48
  220. package/dist/chunk-BQL3YXMV.js +0 -17429
  221. package/dist/chunk-C3XER4N3.js +0 -442
  222. package/dist/chunk-C6BEZNAM.cjs +0 -45
  223. package/dist/chunk-CILU6BWC.cjs +0 -548
  224. package/dist/chunk-CV5PUHAE.cjs +0 -86
  225. package/dist/chunk-D5MVFFID.js +0 -42
  226. package/dist/chunk-D7R55WWT.js +0 -1601
  227. package/dist/chunk-DFYDUXWP.cjs +0 -34
  228. package/dist/chunk-DWP2SYF7.js +0 -55
  229. package/dist/chunk-E55VXNLK.cjs +0 -17498
  230. package/dist/chunk-E5FW77FG.js +0 -77
  231. package/dist/chunk-EAELL43F.js +0 -42
  232. package/dist/chunk-EX5V2ZTU.js +0 -40
  233. package/dist/chunk-FD7QZCTN.cjs +0 -2329
  234. package/dist/chunk-FH4ILMKF.js +0 -38
  235. package/dist/chunk-FRHBM2U7.js +0 -33
  236. package/dist/chunk-FX2TPX3L.cjs +0 -45
  237. package/dist/chunk-GPXNLTPI.cjs +0 -451
  238. package/dist/chunk-GRYCUBJZ.js +0 -9
  239. package/dist/chunk-HPHHS7FJ.cjs +0 -49
  240. package/dist/chunk-HWHBSAUC.js +0 -40
  241. package/dist/chunk-IDHP3R4I.js +0 -31
  242. package/dist/chunk-IHWGT3DL.js +0 -86
  243. package/dist/chunk-JEBKLIMU.cjs +0 -123
  244. package/dist/chunk-KDZLBI6F.cjs +0 -324
  245. package/dist/chunk-KQHICFX3.js +0 -121
  246. package/dist/chunk-LMJE6V4N.cjs +0 -42
  247. package/dist/chunk-MCHPDWVH.js +0 -444
  248. package/dist/chunk-MVDGM5Y4.js +0 -68
  249. package/dist/chunk-N36HBL53.cjs +0 -165
  250. package/dist/chunk-NV5GNFA3.js +0 -541
  251. package/dist/chunk-NVEGEK3N.js +0 -31
  252. package/dist/chunk-OJIDKDKF.js +0 -68
  253. package/dist/chunk-PGGNSLM7.js +0 -215
  254. package/dist/chunk-PKPQA5NR.js +0 -15
  255. package/dist/chunk-PNDBLFJW.cjs +0 -50
  256. package/dist/chunk-Q3WA72BF.cjs +0 -70
  257. package/dist/chunk-RDIDAZ3S.cjs +0 -9
  258. package/dist/chunk-RGJPRXYY.js +0 -48
  259. package/dist/chunk-RPSYXORB.cjs +0 -219
  260. package/dist/chunk-RQ6OZRUW.cjs +0 -41
  261. package/dist/chunk-SBE4SZAN.cjs +0 -226
  262. package/dist/chunk-TAFNCDUI.js +0 -234
  263. package/dist/chunk-TFIDSENE.cjs +0 -88
  264. package/dist/chunk-TGWMOHAO.js +0 -17
  265. package/dist/chunk-UA6XSTW6.js +0 -48
  266. package/dist/chunk-UIQCTAVM.cjs +0 -59
  267. package/dist/chunk-UKYESVDS.cjs +0 -50
  268. package/dist/chunk-V4N255NL.cjs +0 -2309
  269. package/dist/chunk-VO6KXO2I.js +0 -32
  270. package/dist/chunk-WXSTSC3D.cjs +0 -83
  271. package/dist/chunk-XSK7BWYO.js +0 -47
  272. package/dist/chunk-XVAPJ4PP.cjs +0 -449
  273. package/dist/chunk-XVASHRCE.cjs +0 -70
  274. package/dist/chunk-XYSMVQQD.cjs +0 -1608
  275. package/dist/chunk-YAIWI4Z5.js +0 -7
  276. package/dist/chunk-YGYOLDKR.js +0 -280
  277. package/dist/chunk-YP2PLNOF.cjs +0 -34
  278. package/dist/chunk-YSOLW4FS.cjs +0 -11
  279. package/dist/chunk-YY6OUR2U.js +0 -44
  280. package/dist/chunk-YZWS7FDT.cjs +0 -409
  281. package/dist/chunk-Z5YGWL65.cjs +0 -39
  282. package/dist/chunk-ZHNDXNL4.js +0 -45
  283. package/dist/chunk-ZX3EDZ5C.cjs +0 -17
  284. package/dist/index.d.cts +0 -2019
@@ -0,0 +1,1399 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { D as t, M as n, N as r, O as i, c as a, l as o, r as s, t as c } from "./Box-DSKR_qaa.js";
3
+ import { n as l, t as u } from "./use-uncontrolled-A4hm9ATM.js";
4
+ import { r as d } from "./use-merged-ref-BT8_u6vW.js";
5
+ import { t as f } from "./use-resolved-styles-api-DNUlJJZf.js";
6
+ import { t as p } from "./UnstyledButton-DGaG-e_G.js";
7
+ import { t as m } from "./AccordionChevron-DxpOyInK.js";
8
+ import { createContext as h, createElement as g, use as _, useCallback as v, useEffect as y, useImperativeHandle as b, useRef as x } from "react";
9
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
10
+ import w from "dayjs";
11
+ import T from "dayjs/plugin/isoWeek.js";
12
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/utils/handle-control-key-down/handle-control-key-down.mjs
13
+ function E({ direction: e, levelIndex: t, rowIndex: n, cellIndex: r, size: i }) {
14
+ switch (e) {
15
+ case "up": return t === 0 && n === 0 ? null : n === 0 ? {
16
+ levelIndex: t - 1,
17
+ rowIndex: r <= i[t - 1][i[t - 1].length - 1] - 1 ? i[t - 1].length - 1 : i[t - 1].length - 2,
18
+ cellIndex: r
19
+ } : {
20
+ levelIndex: t,
21
+ rowIndex: n - 1,
22
+ cellIndex: r
23
+ };
24
+ case "down": return n === i[t].length - 1 || n === i[t].length - 2 && r >= i[t][i[t].length - 1] ? {
25
+ levelIndex: t + 1,
26
+ rowIndex: 0,
27
+ cellIndex: r
28
+ } : {
29
+ levelIndex: t,
30
+ rowIndex: n + 1,
31
+ cellIndex: r
32
+ };
33
+ case "left": return t === 0 && n === 0 && r === 0 ? null : n === 0 && r === 0 ? {
34
+ levelIndex: t - 1,
35
+ rowIndex: i[t - 1].length - 1,
36
+ cellIndex: i[t - 1][i[t - 1].length - 1] - 1
37
+ } : r === 0 ? {
38
+ levelIndex: t,
39
+ rowIndex: n - 1,
40
+ cellIndex: i[t][n - 1] - 1
41
+ } : {
42
+ levelIndex: t,
43
+ rowIndex: n,
44
+ cellIndex: r - 1
45
+ };
46
+ case "right": return n === i[t].length - 1 && r === i[t][n] - 1 ? {
47
+ levelIndex: t + 1,
48
+ rowIndex: 0,
49
+ cellIndex: 0
50
+ } : r === i[t][n] - 1 ? {
51
+ levelIndex: t,
52
+ rowIndex: n + 1,
53
+ cellIndex: 0
54
+ } : {
55
+ levelIndex: t,
56
+ rowIndex: n,
57
+ cellIndex: r + 1
58
+ };
59
+ default: return {
60
+ levelIndex: t,
61
+ rowIndex: n,
62
+ cellIndex: r
63
+ };
64
+ }
65
+ }
66
+ function D({ controlsRef: e, direction: t, levelIndex: n, rowIndex: r, cellIndex: i, size: a }) {
67
+ let o = E({
68
+ direction: t,
69
+ size: a,
70
+ rowIndex: r,
71
+ cellIndex: i,
72
+ levelIndex: n
73
+ });
74
+ if (!o) return;
75
+ let s = e.current?.[o.levelIndex]?.[o.rowIndex]?.[o.cellIndex];
76
+ s && (s.disabled || s.getAttribute("data-hidden") || s.getAttribute("data-outside") ? D({
77
+ controlsRef: e,
78
+ direction: t,
79
+ levelIndex: o.levelIndex,
80
+ cellIndex: o.cellIndex,
81
+ rowIndex: o.rowIndex,
82
+ size: a
83
+ }) : s.focus());
84
+ }
85
+ function O(e) {
86
+ switch (e) {
87
+ case "ArrowDown": return "down";
88
+ case "ArrowUp": return "up";
89
+ case "ArrowRight": return "right";
90
+ case "ArrowLeft": return "left";
91
+ default: return null;
92
+ }
93
+ }
94
+ function k(e) {
95
+ return e.current?.map((e) => e.map((e) => e.length));
96
+ }
97
+ function A({ controlsRef: e, levelIndex: t, rowIndex: n, cellIndex: r, event: i }) {
98
+ let a = O(i.key);
99
+ a && (i.preventDefault(), D({
100
+ controlsRef: e,
101
+ direction: a,
102
+ levelIndex: t,
103
+ rowIndex: n,
104
+ cellIndex: r,
105
+ size: k(e)
106
+ }));
107
+ }
108
+ //#endregion
109
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/utils/to-date-string/to-date-string.mjs
110
+ function j(e) {
111
+ return e == null || e === "" ? e : w(e).format("YYYY-MM-DD");
112
+ }
113
+ function M(e) {
114
+ return e == null || e === "" ? e : w(e).format("YYYY-MM-DD HH:mm:ss");
115
+ }
116
+ var N = h({
117
+ locale: "en",
118
+ firstDayOfWeek: 1,
119
+ weekendDays: [0, 6],
120
+ labelSeparator: "–",
121
+ consistentWeeks: !1
122
+ });
123
+ //#endregion
124
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/DatesProvider/use-dates-context.mjs
125
+ function P() {
126
+ let e = _(N), t = v((t) => t || e.locale, [e.locale]), n = v((t) => typeof t == "number" ? t : e.firstDayOfWeek, [e.firstDayOfWeek]), r = v((t) => Array.isArray(t) ? t : e.weekendDays, [e.weekendDays]), i = v((t) => typeof t == "string" ? t : e.labelSeparator, [e.labelSeparator]);
127
+ return {
128
+ ...e,
129
+ getLocale: t,
130
+ getFirstDayOfWeek: n,
131
+ getWeekendDays: r,
132
+ getLabelSeparator: i
133
+ };
134
+ }
135
+ //#endregion
136
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Day/Day.module.mjs
137
+ var F = { day: "m_396ce5cb" }, I = t((e, { size: t }) => ({ day: { "--day-size": n(t, "day-size") } })), L = s((e) => {
138
+ let t = o("Day", null, e), { classNames: n, className: r, style: i, styles: s, unstyled: c, vars: l, date: u, disabled: d, __staticSelector: f, weekend: m, outside: h, selected: g, renderDay: _, inRange: v, firstInRange: y, lastInRange: b, hidden: x, static: C, highlightToday: T, fullWidth: E, attributes: D, ...O } = t;
139
+ return /* @__PURE__ */ S(p, {
140
+ ...a({
141
+ name: f || "Day",
142
+ classes: F,
143
+ props: t,
144
+ className: r,
145
+ style: i,
146
+ classNames: n,
147
+ styles: s,
148
+ unstyled: c,
149
+ attributes: D,
150
+ vars: l,
151
+ varsResolver: I,
152
+ rootSelector: "day"
153
+ })("day", { style: x ? { display: "none" } : void 0 }),
154
+ component: C ? "div" : "button",
155
+ disabled: d,
156
+ "data-today": w(u).isSame(/* @__PURE__ */ new Date(), "day") || void 0,
157
+ "data-hidden": x || void 0,
158
+ "data-highlight-today": T || void 0,
159
+ "data-disabled": d || void 0,
160
+ "data-weekend": !d && !h && m || void 0,
161
+ "data-outside": !d && h || void 0,
162
+ "data-selected": !d && g || void 0,
163
+ "data-in-range": v && !d || void 0,
164
+ "data-first-in-range": y && !d || void 0,
165
+ "data-last-in-range": b && !d || void 0,
166
+ "data-static": C || void 0,
167
+ "data-full-width": E || void 0,
168
+ unstyled: c,
169
+ ...O,
170
+ children: _?.(u) || w(u).date()
171
+ });
172
+ });
173
+ L.classes = F, L.varsResolver = I, L.displayName = "@mantine/dates/Day";
174
+ //#endregion
175
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/WeekdaysRow/get-weekdays-names/get-weekdays-names.mjs
176
+ function R({ locale: e, format: t = "dd", firstDayOfWeek: n = 1 }) {
177
+ let r = w().day(n), i = [];
178
+ for (let n = 0; n < 7; n += 1) typeof t == "string" ? i.push(w(r).add(n, "days").locale(e).format(t)) : i.push(t(w(r).add(n, "days").format("YYYY-MM-DD")));
179
+ return i;
180
+ }
181
+ //#endregion
182
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/WeekdaysRow/WeekdaysRow.module.mjs
183
+ var z = { weekday: "m_18a3eca" }, B = t((e, { size: t }) => ({ weekdaysRow: {
184
+ "--wr-fz": i(t),
185
+ "--wr-spacing": r(t)
186
+ } })), V = s((e) => {
187
+ let t = o("WeekdaysRow", null, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, locale: d, firstDayOfWeek: f, weekdayFormat: p, cellComponent: m = "th", __staticSelector: h, withWeekNumbers: g, attributes: _, ...v } = t, y = a({
188
+ name: h || "WeekdaysRow",
189
+ classes: z,
190
+ props: t,
191
+ className: r,
192
+ style: i,
193
+ classNames: n,
194
+ styles: s,
195
+ unstyled: l,
196
+ attributes: _,
197
+ vars: u,
198
+ varsResolver: B,
199
+ rootSelector: "weekdaysRow"
200
+ }), b = P(), x = R({
201
+ locale: b.getLocale(d),
202
+ format: p,
203
+ firstDayOfWeek: b.getFirstDayOfWeek(f)
204
+ }).map((e, t) => /* @__PURE__ */ S(m, {
205
+ ...y("weekday"),
206
+ children: e
207
+ }, t));
208
+ return /* @__PURE__ */ C(c, {
209
+ component: "tr",
210
+ ...y("weekdaysRow"),
211
+ ...v,
212
+ children: [g && /* @__PURE__ */ S(m, {
213
+ ...y("weekday"),
214
+ children: "#"
215
+ }), x]
216
+ });
217
+ });
218
+ V.classes = z, V.varsResolver = B, V.displayName = "@mantine/dates/WeekdaysRow";
219
+ //#endregion
220
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/get-end-of-week/get-end-of-week.mjs
221
+ function H(e, t = 1) {
222
+ let n = w(e);
223
+ if (!n.isValid()) return n;
224
+ let r = t === 0 ? 6 : t - 1;
225
+ for (; n.day() !== r;) n = n.add(1, "day");
226
+ return n.format("YYYY-MM-DD");
227
+ }
228
+ //#endregion
229
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/get-start-of-week/get-start-of-week.mjs
230
+ function U(e, t = 1) {
231
+ let n = w(e);
232
+ for (; n.day() !== t;) n = n.subtract(1, "day");
233
+ return n.format("YYYY-MM-DD");
234
+ }
235
+ //#endregion
236
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/get-month-days/get-month-days.mjs
237
+ function W({ month: e, firstDayOfWeek: t = 1, consistentWeeks: n }) {
238
+ let r = w(w(e).subtract(w(e).date() - 1, "day").format("YYYY-M-D")), i = r.format("YYYY-MM-DD"), a = H(r.add(r.daysInMonth() - 1, "day").format("YYYY-MM-DD"), t), o = [], s = w(U(i, t));
239
+ for (; w(s).isBefore(a, "day");) {
240
+ let e = [];
241
+ for (let t = 0; t < 7; t += 1) e.push(s.format("YYYY-MM-DD")), s = s.add(1, "day");
242
+ o.push(e);
243
+ }
244
+ if (n && o.length < 6) {
245
+ let e = o[o.length - 1], t = e[e.length - 1], n = w(t).add(1, "day");
246
+ for (; o.length < 6;) {
247
+ let e = [];
248
+ for (let t = 0; t < 7; t += 1) e.push(n.format("YYYY-MM-DD")), n = n.add(1, "day");
249
+ o.push(e);
250
+ }
251
+ }
252
+ return o;
253
+ }
254
+ //#endregion
255
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/is-same-month/is-same-month.mjs
256
+ function ee(e, t) {
257
+ return w(e).format("YYYY-MM") === w(t).format("YYYY-MM");
258
+ }
259
+ //#endregion
260
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/is-after-min-date/is-after-min-date.mjs
261
+ function te(e, t) {
262
+ return t ? w(e).isAfter(w(t).subtract(1, "day"), "day") : !0;
263
+ }
264
+ //#endregion
265
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/is-before-max-date/is-before-max-date.mjs
266
+ function ne(e, t) {
267
+ return t ? w(e).isBefore(w(t).add(1, "day"), "day") : !0;
268
+ }
269
+ //#endregion
270
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/get-date-in-tab-order/get-date-in-tab-order.mjs
271
+ function re({ dates: e, minDate: t, maxDate: n, getDayProps: r, excludeDate: i, hideOutsideDates: a, month: o }) {
272
+ let s = e.flat().filter((e) => ne(e, n) && te(e, t) && !i?.(e) && !r?.(e)?.disabled && (!a || ee(e, o)));
273
+ return s.find((e) => r?.(e)?.selected) || s.find((e) => w().isSame(e, "date")) || s[0];
274
+ }
275
+ //#endregion
276
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/get-week-number/get-week-number.mjs
277
+ w.extend(T);
278
+ function ie(e) {
279
+ return w(e.find((e) => w(e).day() === 1)).isoWeek();
280
+ }
281
+ //#endregion
282
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Month/Month.module.mjs
283
+ var G = {
284
+ month: "m_cc9820d3",
285
+ monthCell: "m_8f457cd5",
286
+ weekNumber: "m_6cff9dea"
287
+ }, ae = { withCellSpacing: !0 }, oe = t((e, { size: t }) => ({ weekNumber: {
288
+ "--wn-fz": i(t),
289
+ "--wn-size": n(t, "wn-size")
290
+ } })), K = s((e) => {
291
+ let t = o("Month", ae, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, __staticSelector: d, locale: p, firstDayOfWeek: m, weekdayFormat: h, month: g, weekendDays: _, getDayProps: v, excludeDate: y, minDate: b, maxDate: x, renderDay: T, hideOutsideDates: E, hideWeekdays: D, getDayAriaLabel: O, static: k, __getDayRef: A, __onDayKeyDown: M, __onDayClick: N, __onDayMouseEnter: F, __preventFocus: I, __stopPropagation: R, withCellSpacing: z, size: B, highlightToday: H, withWeekNumbers: U, fullWidth: K, attributes: se, ...ce } = t, q = a({
292
+ name: d || "Month",
293
+ classes: G,
294
+ props: t,
295
+ className: r,
296
+ style: i,
297
+ classNames: n,
298
+ styles: s,
299
+ unstyled: l,
300
+ attributes: se,
301
+ vars: u,
302
+ varsResolver: oe,
303
+ rootSelector: "month"
304
+ }), J = P(), le = W({
305
+ month: g,
306
+ firstDayOfWeek: J.getFirstDayOfWeek(m),
307
+ consistentWeeks: J.consistentWeeks
308
+ }), ue = re({
309
+ dates: le,
310
+ minDate: j(b),
311
+ maxDate: j(x),
312
+ getDayProps: v,
313
+ excludeDate: y,
314
+ hideOutsideDates: E,
315
+ month: g
316
+ }), { resolvedClassNames: de, resolvedStyles: fe } = f({
317
+ classNames: n,
318
+ styles: s,
319
+ props: t
320
+ }), pe = le.map((e, t) => {
321
+ let n = e.map((e, n) => {
322
+ let r = !ee(e, g), i = O?.(e) || w(e).locale(p || J.locale).format("D MMMM YYYY"), a = v?.(e), o = w(e).isSame(ue, "date");
323
+ return /* @__PURE__ */ S("td", {
324
+ ...q("monthCell"),
325
+ "data-with-spacing": z || void 0,
326
+ children: /* @__PURE__ */ S(L, {
327
+ __staticSelector: d || "Month",
328
+ classNames: de,
329
+ styles: fe,
330
+ attributes: se,
331
+ unstyled: l,
332
+ "data-mantine-stop-propagation": R || void 0,
333
+ highlightToday: H,
334
+ renderDay: T,
335
+ date: e,
336
+ size: B,
337
+ weekend: J.getWeekendDays(_).includes(w(e).get("day")),
338
+ outside: r,
339
+ hidden: E ? r : !1,
340
+ "aria-label": i,
341
+ static: k,
342
+ fullWidth: K,
343
+ disabled: y?.(e) || !ne(e, j(x)) || !te(e, j(b)),
344
+ ref: (e) => {
345
+ e && A?.(t, n, e);
346
+ },
347
+ ...a,
348
+ onKeyDown: (r) => {
349
+ a?.onKeyDown?.(r), M?.(r, {
350
+ rowIndex: t,
351
+ cellIndex: n,
352
+ date: e
353
+ });
354
+ },
355
+ onMouseEnter: (t) => {
356
+ a?.onMouseEnter?.(t), F?.(t, e);
357
+ },
358
+ onClick: (t) => {
359
+ a?.onClick?.(t), N?.(t, e);
360
+ },
361
+ onMouseDown: (e) => {
362
+ a?.onMouseDown?.(e), I && e.preventDefault();
363
+ },
364
+ tabIndex: I || !o ? -1 : 0
365
+ })
366
+ }, e.toString());
367
+ });
368
+ return /* @__PURE__ */ C("tr", {
369
+ ...q("monthRow"),
370
+ children: [U && /* @__PURE__ */ S("td", {
371
+ ...q("weekNumber"),
372
+ children: ie(e)
373
+ }), n]
374
+ }, t);
375
+ });
376
+ return /* @__PURE__ */ C(c, {
377
+ component: "table",
378
+ ...q("month"),
379
+ size: B,
380
+ "data-full-width": K || void 0,
381
+ ...ce,
382
+ children: [!D && /* @__PURE__ */ S("thead", {
383
+ ...q("monthThead"),
384
+ children: /* @__PURE__ */ S(V, {
385
+ __staticSelector: d || "Month",
386
+ locale: p,
387
+ firstDayOfWeek: m,
388
+ weekdayFormat: h,
389
+ withWeekNumbers: U,
390
+ size: B,
391
+ classNames: de,
392
+ styles: fe,
393
+ unstyled: l,
394
+ attributes: se
395
+ })
396
+ }), /* @__PURE__ */ S("tbody", {
397
+ ...q("monthTbody"),
398
+ children: pe
399
+ })]
400
+ });
401
+ });
402
+ K.classes = G, K.varsResolver = oe, K.displayName = "@mantine/dates/Month";
403
+ //#endregion
404
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/PickerControl/PickerControl.module.mjs
405
+ var se = { pickerControl: "m_dc6a3c71" }, ce = t((e, { size: t }) => ({ pickerControl: {
406
+ "--dpc-fz": i(t),
407
+ "--dpc-size": n(t, "dpc-size")
408
+ } })), q = s((e) => {
409
+ let t = o("PickerControl", null, e), { classNames: n, className: r, style: i, styles: s, unstyled: c, vars: l, firstInRange: u, lastInRange: d, inRange: f, __staticSelector: m, selected: h, disabled: g, fullWidth: _, attributes: v, ...y } = t;
410
+ return /* @__PURE__ */ S(p, {
411
+ ...a({
412
+ name: m || "PickerControl",
413
+ classes: se,
414
+ props: t,
415
+ className: r,
416
+ style: i,
417
+ classNames: n,
418
+ styles: s,
419
+ unstyled: c,
420
+ attributes: v,
421
+ vars: l,
422
+ varsResolver: ce,
423
+ rootSelector: "pickerControl"
424
+ })("pickerControl"),
425
+ unstyled: c,
426
+ "data-picker-control": !0,
427
+ "data-full-width": _ || void 0,
428
+ "data-selected": h && !g || void 0,
429
+ "data-disabled": g || void 0,
430
+ "data-in-range": f && !g && !h || void 0,
431
+ "data-first-in-range": u && !g || void 0,
432
+ "data-last-in-range": d && !g || void 0,
433
+ disabled: g,
434
+ ...y
435
+ });
436
+ });
437
+ q.classes = se, q.varsResolver = ce, q.displayName = "@mantine/dates/PickerControl";
438
+ //#endregion
439
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearsList/is-year-disabled/is-year-disabled.mjs
440
+ function J({ year: e, minDate: t, maxDate: n }) {
441
+ return !t && !n ? !1 : !!(t && w(e).isBefore(t, "year") || n && w(e).isAfter(n, "year"));
442
+ }
443
+ //#endregion
444
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearsList/get-year-in-tab-order/get-year-in-tab-order.mjs
445
+ function le({ years: e, minDate: t, maxDate: n, getYearControlProps: r }) {
446
+ let i = e.flat().filter((e) => !J({
447
+ year: e,
448
+ minDate: t,
449
+ maxDate: n
450
+ }) && !r?.(e)?.disabled);
451
+ return i.find((e) => r?.(e)?.selected) || i.find((e) => w().isSame(e, "year")) || i[0];
452
+ }
453
+ //#endregion
454
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearsList/get-years-data/get-years-data.mjs
455
+ function ue(e) {
456
+ let t = w(e).year(), n = t - t % 10, r = 0, i = [
457
+ [],
458
+ [],
459
+ [],
460
+ []
461
+ ];
462
+ for (let e = 0; e < 4; e += 1) {
463
+ let t = e === 3 ? 1 : 3;
464
+ for (let a = 0; a < t; a += 1) i[e].push(w(new Date(n + r, 0)).format("YYYY-MM-DD")), r += 1;
465
+ }
466
+ return i;
467
+ }
468
+ //#endregion
469
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearsList/YearsList.module.mjs
470
+ var de = {
471
+ yearsList: "m_9206547b",
472
+ yearsListCell: "m_c5a19c7d"
473
+ }, fe = {
474
+ yearsListFormat: "YYYY",
475
+ withCellSpacing: !0
476
+ }, pe = s((e) => {
477
+ let t = o("YearsList", fe, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, decade: d, yearsListFormat: f, locale: p, minDate: m, maxDate: h, getYearControlProps: g, __staticSelector: _, __getControlRef: v, __onControlKeyDown: y, __onControlClick: b, __onControlMouseEnter: x, __preventFocus: C, __stopPropagation: T, withCellSpacing: E, fullWidth: D, size: O, attributes: k, ...A } = t, j = a({
478
+ name: _ || "YearsList",
479
+ classes: de,
480
+ props: t,
481
+ className: r,
482
+ style: i,
483
+ classNames: n,
484
+ styles: s,
485
+ unstyled: l,
486
+ attributes: k,
487
+ vars: u,
488
+ rootSelector: "yearsList"
489
+ }), M = P(), N = ue(d), F = le({
490
+ years: N,
491
+ minDate: m,
492
+ maxDate: h,
493
+ getYearControlProps: g
494
+ }), I = N.map((e, t) => {
495
+ let n = e.map((e, n) => {
496
+ let r = g?.(e), i = w(e).isSame(F, "year");
497
+ return /* @__PURE__ */ S("td", {
498
+ ...j("yearsListCell"),
499
+ "data-with-spacing": E || void 0,
500
+ children: /* @__PURE__ */ S(q, {
501
+ ...j("yearsListControl"),
502
+ size: O,
503
+ unstyled: l,
504
+ fullWidth: D,
505
+ "data-mantine-stop-propagation": T || void 0,
506
+ disabled: J({
507
+ year: e,
508
+ minDate: m,
509
+ maxDate: h
510
+ }),
511
+ ref: (e) => {
512
+ e && v?.(t, n, e);
513
+ },
514
+ ...r,
515
+ onKeyDown: (i) => {
516
+ r?.onKeyDown?.(i), y?.(i, {
517
+ rowIndex: t,
518
+ cellIndex: n,
519
+ date: e
520
+ });
521
+ },
522
+ onClick: (t) => {
523
+ r?.onClick?.(t), b?.(t, e);
524
+ },
525
+ onMouseEnter: (t) => {
526
+ r?.onMouseEnter?.(t), x?.(t, e);
527
+ },
528
+ onMouseDown: (e) => {
529
+ r?.onMouseDown?.(e), C && e.preventDefault();
530
+ },
531
+ tabIndex: C || !i ? -1 : 0,
532
+ children: r?.children ?? w(e).locale(M.getLocale(p)).format(f)
533
+ })
534
+ }, n);
535
+ });
536
+ return /* @__PURE__ */ S("tr", {
537
+ ...j("yearsListRow"),
538
+ children: n
539
+ }, t);
540
+ });
541
+ return /* @__PURE__ */ S(c, {
542
+ component: "table",
543
+ size: O,
544
+ ...j("yearsList"),
545
+ "data-full-width": D || void 0,
546
+ ...A,
547
+ children: /* @__PURE__ */ S("tbody", { children: I })
548
+ });
549
+ });
550
+ pe.classes = de, pe.displayName = "@mantine/dates/YearsList";
551
+ //#endregion
552
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthsList/is-month-disabled/is-month-disabled.mjs
553
+ function me({ month: e, minDate: t, maxDate: n }) {
554
+ return !t && !n ? !1 : !!(t && w(e).isBefore(t, "month") || n && w(e).isAfter(n, "month"));
555
+ }
556
+ //#endregion
557
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthsList/get-month-in-tab-order/get-month-in-tab-order.mjs
558
+ function he({ months: e, minDate: t, maxDate: n, getMonthControlProps: r }) {
559
+ let i = e.flat().filter((e) => !me({
560
+ month: e,
561
+ minDate: t,
562
+ maxDate: n
563
+ }) && !r?.(e)?.disabled);
564
+ return i.find((e) => r?.(e)?.selected) || i.find((e) => w().isSame(e, "month")) || i[0];
565
+ }
566
+ //#endregion
567
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthsList/get-months-data/get-months-data.mjs
568
+ function ge(e) {
569
+ let t = w(e).startOf("year").toDate(), n = [
570
+ [],
571
+ [],
572
+ [],
573
+ []
574
+ ], r = 0;
575
+ for (let e = 0; e < 4; e += 1) for (let i = 0; i < 3; i += 1) n[e].push(w(t).add(r, "months").format("YYYY-MM-DD")), r += 1;
576
+ return n;
577
+ }
578
+ //#endregion
579
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthsList/MonthsList.module.mjs
580
+ var _e = {
581
+ monthsList: "m_2a6c32d",
582
+ monthsListCell: "m_fe27622f"
583
+ }, ve = {
584
+ monthsListFormat: "MMM",
585
+ withCellSpacing: !0
586
+ }, ye = s((e) => {
587
+ let t = o("MonthsList", ve, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, __staticSelector: d, year: f, monthsListFormat: p, locale: m, minDate: h, maxDate: g, getMonthControlProps: _, __getControlRef: v, __onControlKeyDown: y, __onControlClick: b, __onControlMouseEnter: x, __preventFocus: C, __stopPropagation: T, withCellSpacing: E, fullWidth: D, size: O, attributes: k, ...A } = t, M = a({
588
+ name: d || "MonthsList",
589
+ classes: _e,
590
+ props: t,
591
+ className: r,
592
+ style: i,
593
+ classNames: n,
594
+ styles: s,
595
+ unstyled: l,
596
+ attributes: k,
597
+ vars: u,
598
+ rootSelector: "monthsList"
599
+ }), N = P(), F = ge(f), I = he({
600
+ months: F,
601
+ minDate: j(h),
602
+ maxDate: j(g),
603
+ getMonthControlProps: _
604
+ }), L = F.map((e, t) => {
605
+ let n = e.map((e, n) => {
606
+ let r = _?.(e), i = w(e).isSame(I, "month");
607
+ return /* @__PURE__ */ S("td", {
608
+ ...M("monthsListCell"),
609
+ "data-with-spacing": E || void 0,
610
+ children: /* @__PURE__ */ S(q, {
611
+ ...M("monthsListControl"),
612
+ size: O,
613
+ unstyled: l,
614
+ fullWidth: D,
615
+ __staticSelector: d || "MonthsList",
616
+ "data-mantine-stop-propagation": T || void 0,
617
+ disabled: me({
618
+ month: e,
619
+ minDate: j(h),
620
+ maxDate: j(g)
621
+ }),
622
+ ref: (e) => {
623
+ e && v?.(t, n, e);
624
+ },
625
+ ...r,
626
+ onKeyDown: (i) => {
627
+ r?.onKeyDown?.(i), y?.(i, {
628
+ rowIndex: t,
629
+ cellIndex: n,
630
+ date: e
631
+ });
632
+ },
633
+ onClick: (t) => {
634
+ r?.onClick?.(t), b?.(t, e);
635
+ },
636
+ onMouseEnter: (t) => {
637
+ r?.onMouseEnter?.(t), x?.(t, e);
638
+ },
639
+ onMouseDown: (e) => {
640
+ r?.onMouseDown?.(e), C && e.preventDefault();
641
+ },
642
+ tabIndex: C || !i ? -1 : 0,
643
+ children: r?.children ?? w(e).locale(N.getLocale(m)).format(p)
644
+ })
645
+ }, n);
646
+ });
647
+ return /* @__PURE__ */ S("tr", {
648
+ ...M("monthsListRow"),
649
+ children: n
650
+ }, t);
651
+ });
652
+ return /* @__PURE__ */ S(c, {
653
+ component: "table",
654
+ size: O,
655
+ ...M("monthsList"),
656
+ "data-full-width": D || void 0,
657
+ ...A,
658
+ children: /* @__PURE__ */ S("tbody", { children: L })
659
+ });
660
+ });
661
+ ye.classes = _e, ye.displayName = "@mantine/dates/MonthsList";
662
+ //#endregion
663
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/CalendarHeader/CalendarHeader.module.mjs
664
+ var be = {
665
+ calendarHeader: "m_730a79ed",
666
+ calendarHeaderLevel: "m_f6645d97",
667
+ calendarHeaderControl: "m_2351eeb0",
668
+ calendarHeaderControlIcon: "m_367dc749"
669
+ }, xe = {
670
+ hasNextLevel: !0,
671
+ withNext: !0,
672
+ withPrevious: !0,
673
+ headerControlsOrder: [
674
+ "previous",
675
+ "level",
676
+ "next"
677
+ ]
678
+ }, Se = t((e, { size: t }) => ({ calendarHeader: {
679
+ "--dch-control-size": n(t, "dch-control-size"),
680
+ "--dch-fz": i(t)
681
+ } })), Y = s((e) => {
682
+ let t = o("CalendarHeader", xe, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, nextIcon: d, previousIcon: f, nextLabel: h, previousLabel: _, onNext: v, onPrevious: y, onLevelClick: b, label: x, nextDisabled: C, previousDisabled: w, hasNextLevel: T, levelControlAriaLabel: E, withNext: D, withPrevious: O, headerControlsOrder: k, fullWidth: A, __staticSelector: j, __preventFocus: M, __stopPropagation: N, attributes: P, ...F } = t, I = a({
683
+ name: j || "CalendarHeader",
684
+ classes: be,
685
+ props: t,
686
+ className: r,
687
+ style: i,
688
+ classNames: n,
689
+ styles: s,
690
+ unstyled: l,
691
+ attributes: P,
692
+ vars: u,
693
+ varsResolver: Se,
694
+ rootSelector: "calendarHeader"
695
+ }), L = M ? (e) => e.preventDefault() : void 0, R = O && /* @__PURE__ */ g(p, {
696
+ ...I("calendarHeaderControl"),
697
+ key: "previous",
698
+ "data-direction": "previous",
699
+ "aria-label": _,
700
+ onClick: y,
701
+ unstyled: l,
702
+ onMouseDown: L,
703
+ disabled: w,
704
+ "data-disabled": w || void 0,
705
+ tabIndex: M || w ? -1 : 0,
706
+ "data-mantine-stop-propagation": N || void 0
707
+ }, f || /* @__PURE__ */ S(m, {
708
+ ...I("calendarHeaderControlIcon"),
709
+ "data-direction": "previous",
710
+ size: "45%"
711
+ })), z = /* @__PURE__ */ g(p, {
712
+ component: T ? "button" : "div",
713
+ ...I("calendarHeaderLevel"),
714
+ key: "level",
715
+ onClick: T ? b : void 0,
716
+ unstyled: l,
717
+ onMouseDown: T ? L : void 0,
718
+ disabled: !T,
719
+ "data-static": !T || void 0,
720
+ "aria-label": E,
721
+ tabIndex: M || !T ? -1 : 0,
722
+ "data-mantine-stop-propagation": N || void 0
723
+ }, x), B = D && /* @__PURE__ */ g(p, {
724
+ ...I("calendarHeaderControl"),
725
+ key: "next",
726
+ "data-direction": "next",
727
+ "aria-label": h,
728
+ onClick: v,
729
+ unstyled: l,
730
+ onMouseDown: L,
731
+ disabled: C,
732
+ "data-disabled": C || void 0,
733
+ tabIndex: M || C ? -1 : 0,
734
+ "data-mantine-stop-propagation": N || void 0
735
+ }, d || /* @__PURE__ */ S(m, {
736
+ ...I("calendarHeaderControlIcon"),
737
+ "data-direction": "next",
738
+ size: "45%"
739
+ })), V = k.map((e) => e === "previous" ? R : e === "level" ? z : e === "next" ? B : null);
740
+ return /* @__PURE__ */ S(c, {
741
+ ...I("calendarHeader"),
742
+ "data-full-width": A || void 0,
743
+ ...F,
744
+ children: V
745
+ });
746
+ });
747
+ Y.classes = be, Y.varsResolver = Se, Y.displayName = "@mantine/dates/CalendarHeader";
748
+ //#endregion
749
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/DecadeLevel/get-decade-range/get-decade-range.mjs
750
+ function Ce(e) {
751
+ let t = ue(e);
752
+ return [t[0][0], t[3][0]];
753
+ }
754
+ //#endregion
755
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/DecadeLevel/DecadeLevel.mjs
756
+ var we = { decadeLabelFormat: "YYYY" }, Te = s((e) => {
757
+ let { decade: t, locale: n, minDate: r, maxDate: i, yearsListFormat: a, getYearControlProps: s, __getControlRef: l, __onControlKeyDown: u, __onControlClick: d, __onControlMouseEnter: f, withCellSpacing: p, __preventFocus: m, nextIcon: h, previousIcon: g, nextLabel: _, previousLabel: v, onNext: y, onPrevious: b, nextDisabled: x, previousDisabled: T, levelControlAriaLabel: E, withNext: D, withPrevious: O, headerControlsOrder: k, decadeLabelFormat: A, classNames: j, styles: M, unstyled: N, __staticSelector: F, __stopPropagation: I, size: L, fullWidth: R, attributes: z, ...B } = o("DecadeLevel", we, e), V = P(), [H, U] = Ce(t), W = {
758
+ __staticSelector: F || "DecadeLevel",
759
+ classNames: j,
760
+ styles: M,
761
+ unstyled: N,
762
+ size: L,
763
+ attributes: z
764
+ }, ee = typeof x == "boolean" ? x : i ? !w(U).endOf("year").isBefore(i) : !1, te = typeof T == "boolean" ? T : r ? !w(H).startOf("year").isAfter(r) : !1, ne = (e, t) => w(e).locale(n || V.locale).format(t);
765
+ return /* @__PURE__ */ C(c, {
766
+ "data-decade-level": !0,
767
+ size: L,
768
+ ...B,
769
+ children: [/* @__PURE__ */ S(Y, {
770
+ label: typeof A == "function" ? A(H, U) : `${ne(H, A)} – ${ne(U, A)}`,
771
+ __preventFocus: m,
772
+ __stopPropagation: I,
773
+ nextIcon: h,
774
+ previousIcon: g,
775
+ nextLabel: _,
776
+ previousLabel: v,
777
+ onNext: y,
778
+ onPrevious: b,
779
+ nextDisabled: ee,
780
+ previousDisabled: te,
781
+ hasNextLevel: !1,
782
+ levelControlAriaLabel: E,
783
+ withNext: D,
784
+ withPrevious: O,
785
+ headerControlsOrder: k,
786
+ fullWidth: R,
787
+ ...W
788
+ }), /* @__PURE__ */ S(pe, {
789
+ decade: t,
790
+ locale: n,
791
+ minDate: r,
792
+ maxDate: i,
793
+ yearsListFormat: a,
794
+ getYearControlProps: s,
795
+ __getControlRef: l,
796
+ __onControlKeyDown: u,
797
+ __onControlClick: d,
798
+ __onControlMouseEnter: f,
799
+ __preventFocus: m,
800
+ __stopPropagation: I,
801
+ withCellSpacing: p,
802
+ fullWidth: R,
803
+ ...W
804
+ })]
805
+ });
806
+ });
807
+ Te.classes = {
808
+ ...pe.classes,
809
+ ...Y.classes
810
+ }, Te.displayName = "@mantine/dates/DecadeLevel";
811
+ //#endregion
812
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearLevel/YearLevel.mjs
813
+ var Ee = { yearLabelFormat: "YYYY" }, De = s((e) => {
814
+ let { year: t, locale: n, minDate: r, maxDate: i, monthsListFormat: a, getMonthControlProps: s, __getControlRef: l, __onControlKeyDown: u, __onControlClick: d, __onControlMouseEnter: f, withCellSpacing: p, __preventFocus: m, nextIcon: h, previousIcon: g, nextLabel: _, previousLabel: v, onNext: y, onPrevious: b, onLevelClick: x, nextDisabled: T, previousDisabled: E, hasNextLevel: D, levelControlAriaLabel: O, withNext: k, withPrevious: A, headerControlsOrder: j, yearLabelFormat: M, __staticSelector: N, __stopPropagation: F, size: I, classNames: L, styles: R, unstyled: z, fullWidth: B, attributes: V, ...H } = o("YearLevel", Ee, e), U = P(), W = {
815
+ __staticSelector: N || "YearLevel",
816
+ classNames: L,
817
+ styles: R,
818
+ unstyled: z,
819
+ size: I,
820
+ attributes: V
821
+ }, ee = typeof T == "boolean" ? T : i ? !w(t).endOf("year").isBefore(i) : !1, te = typeof E == "boolean" ? E : r ? !w(t).startOf("year").isAfter(r) : !1;
822
+ return /* @__PURE__ */ C(c, {
823
+ "data-year-level": !0,
824
+ size: I,
825
+ ...H,
826
+ children: [/* @__PURE__ */ S(Y, {
827
+ label: typeof M == "function" ? M(t) : w(t).locale(n || U.locale).format(M),
828
+ __preventFocus: m,
829
+ __stopPropagation: F,
830
+ nextIcon: h,
831
+ previousIcon: g,
832
+ nextLabel: _,
833
+ previousLabel: v,
834
+ onNext: y,
835
+ onPrevious: b,
836
+ onLevelClick: x,
837
+ nextDisabled: ee,
838
+ previousDisabled: te,
839
+ hasNextLevel: D,
840
+ levelControlAriaLabel: O,
841
+ withNext: k,
842
+ withPrevious: A,
843
+ headerControlsOrder: j,
844
+ fullWidth: B,
845
+ ...W
846
+ }), /* @__PURE__ */ S(ye, {
847
+ year: t,
848
+ locale: n,
849
+ minDate: r,
850
+ maxDate: i,
851
+ monthsListFormat: a,
852
+ getMonthControlProps: s,
853
+ __getControlRef: l,
854
+ __onControlKeyDown: u,
855
+ __onControlClick: d,
856
+ __onControlMouseEnter: f,
857
+ __preventFocus: m,
858
+ __stopPropagation: F,
859
+ withCellSpacing: p,
860
+ fullWidth: B,
861
+ ...W
862
+ })]
863
+ });
864
+ });
865
+ De.classes = {
866
+ ...Y.classes,
867
+ ...ye.classes
868
+ }, De.displayName = "@mantine/dates/YearLevel";
869
+ //#endregion
870
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthLevel/MonthLevel.mjs
871
+ var Oe = { monthLabelFormat: "MMMM YYYY" }, ke = s((e) => {
872
+ let { month: t, locale: n, firstDayOfWeek: r, weekdayFormat: i, weekendDays: a, getDayProps: s, excludeDate: l, minDate: u, maxDate: d, renderDay: f, hideOutsideDates: p, hideWeekdays: m, getDayAriaLabel: h, __getDayRef: g, __onDayKeyDown: _, __onDayClick: v, __onDayMouseEnter: y, withCellSpacing: b, highlightToday: x, withWeekNumbers: T, __preventFocus: E, __stopPropagation: D, nextIcon: O, previousIcon: k, nextLabel: A, previousLabel: j, onNext: M, onPrevious: N, onLevelClick: F, nextDisabled: I, previousDisabled: L, hasNextLevel: R, levelControlAriaLabel: z, withNext: B, withPrevious: V, headerControlsOrder: H, monthLabelFormat: U, classNames: W, styles: ee, unstyled: te, __staticSelector: ne, size: re, static: ie, fullWidth: G, attributes: ae, ...oe } = o("MonthLevel", Oe, e), se = P(), ce = {
873
+ __staticSelector: ne || "MonthLevel",
874
+ classNames: W,
875
+ styles: ee,
876
+ unstyled: te,
877
+ size: re,
878
+ attributes: ae
879
+ }, q = typeof I == "boolean" ? I : d ? !w(t).endOf("month").isBefore(d) : !1, J = typeof L == "boolean" ? L : u ? !w(t).startOf("month").isAfter(u) : !1;
880
+ return /* @__PURE__ */ C(c, {
881
+ "data-month-level": !0,
882
+ size: re,
883
+ ...oe,
884
+ children: [/* @__PURE__ */ S(Y, {
885
+ label: typeof U == "function" ? U(t) : w(t).locale(n || se.locale).format(U),
886
+ __preventFocus: E,
887
+ __stopPropagation: D,
888
+ nextIcon: O,
889
+ previousIcon: k,
890
+ nextLabel: A,
891
+ previousLabel: j,
892
+ onNext: M,
893
+ onPrevious: N,
894
+ onLevelClick: F,
895
+ nextDisabled: q,
896
+ previousDisabled: J,
897
+ hasNextLevel: R,
898
+ levelControlAriaLabel: z,
899
+ withNext: B,
900
+ withPrevious: V,
901
+ headerControlsOrder: H,
902
+ fullWidth: G,
903
+ ...ce
904
+ }), /* @__PURE__ */ S(K, {
905
+ month: t,
906
+ locale: n,
907
+ firstDayOfWeek: r,
908
+ weekdayFormat: i,
909
+ weekendDays: a,
910
+ getDayProps: s,
911
+ excludeDate: l,
912
+ minDate: u,
913
+ maxDate: d,
914
+ renderDay: f,
915
+ hideOutsideDates: p,
916
+ hideWeekdays: m,
917
+ getDayAriaLabel: h,
918
+ __getDayRef: g,
919
+ __onDayKeyDown: _,
920
+ __onDayClick: v,
921
+ __onDayMouseEnter: y,
922
+ __preventFocus: E,
923
+ __stopPropagation: D,
924
+ static: ie,
925
+ withCellSpacing: b,
926
+ highlightToday: x,
927
+ withWeekNumbers: T,
928
+ fullWidth: G,
929
+ ...ce
930
+ })]
931
+ });
932
+ });
933
+ ke.classes = {
934
+ ...K.classes,
935
+ ...Y.classes
936
+ }, ke.displayName = "@mantine/dates/MonthLevel";
937
+ //#endregion
938
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/LevelsGroup/LevelsGroup.module.mjs
939
+ var Ae = { levelsGroup: "m_30b26e33" }, X = s((e) => {
940
+ let t = o("LevelsGroup", null, e), { classNames: n, className: r, style: i, styles: s, unstyled: l, vars: u, __staticSelector: d, fullWidth: f, attributes: p, ...m } = t;
941
+ return /* @__PURE__ */ S(c, {
942
+ ...a({
943
+ name: d || "LevelsGroup",
944
+ classes: Ae,
945
+ props: t,
946
+ className: r,
947
+ style: i,
948
+ classNames: n,
949
+ styles: s,
950
+ unstyled: l,
951
+ attributes: p,
952
+ vars: u,
953
+ rootSelector: "levelsGroup"
954
+ })("levelsGroup"),
955
+ "data-full-width": f || void 0,
956
+ ...m
957
+ });
958
+ });
959
+ X.classes = Ae, X.displayName = "@mantine/dates/LevelsGroup";
960
+ //#endregion
961
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/DecadeLevelGroup/DecadeLevelGroup.mjs
962
+ var je = { numberOfColumns: 1 }, Me = s((e) => {
963
+ let { decade: t, locale: n, minDate: r, maxDate: i, yearsListFormat: a, getYearControlProps: s, __onControlClick: c, __onControlMouseEnter: l, withCellSpacing: u, __preventFocus: d, nextIcon: f, previousIcon: p, nextLabel: m, previousLabel: h, onNext: g, onPrevious: _, nextDisabled: v, previousDisabled: y, headerControlsOrder: b, classNames: C, styles: T, unstyled: E, __staticSelector: D, __stopPropagation: O, numberOfColumns: k, levelControlAriaLabel: j, decadeLabelFormat: M, size: N, fullWidth: P, vars: F, attributes: I, ...L } = o("DecadeLevelGroup", je, e), R = x([]), z = Array(k).fill(0).map((e, o) => {
964
+ let x = w(t).add(o * 10, "years").format("YYYY-MM-DD");
965
+ return /* @__PURE__ */ S(Te, {
966
+ size: N,
967
+ yearsListFormat: a,
968
+ decade: x,
969
+ withNext: o === k - 1,
970
+ withPrevious: o === 0,
971
+ decadeLabelFormat: M,
972
+ __onControlClick: c,
973
+ __onControlMouseEnter: l,
974
+ __onControlKeyDown: (e, t) => A({
975
+ levelIndex: o,
976
+ rowIndex: t.rowIndex,
977
+ cellIndex: t.cellIndex,
978
+ event: e,
979
+ controlsRef: R
980
+ }),
981
+ __getControlRef: (e, t, n) => {
982
+ Array.isArray(R.current[o]) || (R.current[o] = []), Array.isArray(R.current[o][e]) || (R.current[o][e] = []), R.current[o][e][t] = n;
983
+ },
984
+ levelControlAriaLabel: typeof j == "function" ? j(x) : j,
985
+ locale: n,
986
+ minDate: r,
987
+ maxDate: i,
988
+ __preventFocus: d,
989
+ __stopPropagation: O,
990
+ nextIcon: f,
991
+ previousIcon: p,
992
+ nextLabel: m,
993
+ previousLabel: h,
994
+ onNext: g,
995
+ onPrevious: _,
996
+ nextDisabled: v,
997
+ previousDisabled: y,
998
+ getYearControlProps: s,
999
+ __staticSelector: D || "DecadeLevelGroup",
1000
+ classNames: C,
1001
+ styles: T,
1002
+ unstyled: E,
1003
+ withCellSpacing: u,
1004
+ headerControlsOrder: b,
1005
+ fullWidth: P,
1006
+ attributes: I
1007
+ }, o);
1008
+ });
1009
+ return /* @__PURE__ */ S(X, {
1010
+ classNames: C,
1011
+ styles: T,
1012
+ __staticSelector: D || "DecadeLevelGroup",
1013
+ size: N,
1014
+ unstyled: E,
1015
+ fullWidth: P,
1016
+ attributes: I,
1017
+ ...L,
1018
+ children: z
1019
+ });
1020
+ });
1021
+ Me.classes = {
1022
+ ...X.classes,
1023
+ ...Te.classes
1024
+ }, Me.displayName = "@mantine/dates/DecadeLevelGroup";
1025
+ //#endregion
1026
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/YearLevelGroup/YearLevelGroup.mjs
1027
+ var Ne = { numberOfColumns: 1 }, Pe = s((e) => {
1028
+ let { year: t, locale: n, minDate: r, maxDate: i, monthsListFormat: a, getMonthControlProps: s, __onControlClick: c, __onControlMouseEnter: l, withCellSpacing: u, __preventFocus: d, nextIcon: f, previousIcon: p, nextLabel: m, previousLabel: h, onNext: g, onPrevious: _, onLevelClick: v, nextDisabled: y, previousDisabled: b, hasNextLevel: C, headerControlsOrder: T, classNames: E, styles: D, unstyled: O, __staticSelector: k, __stopPropagation: j, numberOfColumns: M, levelControlAriaLabel: N, yearLabelFormat: P, size: F, fullWidth: I, vars: L, attributes: R, ...z } = o("YearLevelGroup", Ne, e), B = x([]), V = Array(M).fill(0).map((e, o) => {
1029
+ let x = w(t).add(o, "years").format("YYYY-MM-DD");
1030
+ return /* @__PURE__ */ S(De, {
1031
+ size: F,
1032
+ monthsListFormat: a,
1033
+ year: x,
1034
+ withNext: o === M - 1,
1035
+ withPrevious: o === 0,
1036
+ yearLabelFormat: P,
1037
+ __stopPropagation: j,
1038
+ __onControlClick: c,
1039
+ __onControlMouseEnter: l,
1040
+ __onControlKeyDown: (e, t) => A({
1041
+ levelIndex: o,
1042
+ rowIndex: t.rowIndex,
1043
+ cellIndex: t.cellIndex,
1044
+ event: e,
1045
+ controlsRef: B
1046
+ }),
1047
+ __getControlRef: (e, t, n) => {
1048
+ Array.isArray(B.current[o]) || (B.current[o] = []), Array.isArray(B.current[o][e]) || (B.current[o][e] = []), B.current[o][e][t] = n;
1049
+ },
1050
+ levelControlAriaLabel: typeof N == "function" ? N(x) : N,
1051
+ locale: n,
1052
+ minDate: r,
1053
+ maxDate: i,
1054
+ __preventFocus: d,
1055
+ nextIcon: f,
1056
+ previousIcon: p,
1057
+ nextLabel: m,
1058
+ previousLabel: h,
1059
+ onNext: g,
1060
+ onPrevious: _,
1061
+ onLevelClick: v,
1062
+ nextDisabled: y,
1063
+ previousDisabled: b,
1064
+ hasNextLevel: C,
1065
+ getMonthControlProps: s,
1066
+ classNames: E,
1067
+ styles: D,
1068
+ unstyled: O,
1069
+ __staticSelector: k || "YearLevelGroup",
1070
+ withCellSpacing: u,
1071
+ headerControlsOrder: T,
1072
+ fullWidth: I,
1073
+ attributes: R
1074
+ }, o);
1075
+ });
1076
+ return /* @__PURE__ */ S(X, {
1077
+ classNames: E,
1078
+ styles: D,
1079
+ __staticSelector: k || "YearLevelGroup",
1080
+ size: F,
1081
+ unstyled: O,
1082
+ fullWidth: I,
1083
+ attributes: R,
1084
+ ...z,
1085
+ children: V
1086
+ });
1087
+ });
1088
+ Pe.classes = {
1089
+ ...De.classes,
1090
+ ...X.classes
1091
+ }, Pe.displayName = "@mantine/dates/YearLevelGroup";
1092
+ //#endregion
1093
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/MonthLevelGroup/MonthLevelGroup.mjs
1094
+ var Fe = { numberOfColumns: 1 }, Ie = s((e) => {
1095
+ let { month: t, locale: n, firstDayOfWeek: r, weekdayFormat: i, weekendDays: a, getDayProps: s, excludeDate: c, minDate: l, maxDate: u, renderDay: d, hideOutsideDates: f, hideWeekdays: p, getDayAriaLabel: m, __onDayClick: h, __onDayMouseEnter: g, withCellSpacing: _, highlightToday: v, withWeekNumbers: y, __preventFocus: b, nextIcon: C, previousIcon: T, nextLabel: E, previousLabel: D, onNext: O, onPrevious: k, onLevelClick: j, nextDisabled: M, previousDisabled: N, hasNextLevel: P, headerControlsOrder: F, classNames: I, styles: L, unstyled: R, numberOfColumns: z, levelControlAriaLabel: B, monthLabelFormat: V, __staticSelector: H, __stopPropagation: U, size: W, static: ee, fullWidth: te, vars: ne, attributes: re, ...ie } = o("MonthLevelGroup", Fe, e), G = x([]), ae = Array(z).fill(0).map((e, o) => {
1096
+ let x = w(t).add(o, "months").format("YYYY-MM-DD");
1097
+ return /* @__PURE__ */ S(ke, {
1098
+ month: x,
1099
+ withNext: o === z - 1,
1100
+ withPrevious: o === 0,
1101
+ monthLabelFormat: V,
1102
+ __stopPropagation: U,
1103
+ __onDayClick: h,
1104
+ __onDayMouseEnter: g,
1105
+ __onDayKeyDown: (e, t) => A({
1106
+ levelIndex: o,
1107
+ rowIndex: t.rowIndex,
1108
+ cellIndex: t.cellIndex,
1109
+ event: e,
1110
+ controlsRef: G
1111
+ }),
1112
+ __getDayRef: (e, t, n) => {
1113
+ Array.isArray(G.current[o]) || (G.current[o] = []), Array.isArray(G.current[o][e]) || (G.current[o][e] = []), G.current[o][e][t] = n;
1114
+ },
1115
+ levelControlAriaLabel: typeof B == "function" ? B(x) : B,
1116
+ locale: n,
1117
+ firstDayOfWeek: r,
1118
+ weekdayFormat: i,
1119
+ weekendDays: a,
1120
+ getDayProps: s,
1121
+ excludeDate: c,
1122
+ minDate: l,
1123
+ maxDate: u,
1124
+ renderDay: d,
1125
+ hideOutsideDates: f,
1126
+ hideWeekdays: p,
1127
+ getDayAriaLabel: m,
1128
+ __preventFocus: b,
1129
+ nextIcon: C,
1130
+ previousIcon: T,
1131
+ nextLabel: E,
1132
+ previousLabel: D,
1133
+ onNext: O,
1134
+ onPrevious: k,
1135
+ onLevelClick: j,
1136
+ nextDisabled: M,
1137
+ previousDisabled: N,
1138
+ hasNextLevel: P,
1139
+ classNames: I,
1140
+ styles: L,
1141
+ unstyled: R,
1142
+ __staticSelector: H || "MonthLevelGroup",
1143
+ size: W,
1144
+ static: ee,
1145
+ withCellSpacing: _,
1146
+ highlightToday: v,
1147
+ withWeekNumbers: y,
1148
+ headerControlsOrder: F,
1149
+ fullWidth: te,
1150
+ attributes: re
1151
+ }, o);
1152
+ });
1153
+ return /* @__PURE__ */ S(X, {
1154
+ classNames: I,
1155
+ styles: L,
1156
+ __staticSelector: H || "MonthLevelGroup",
1157
+ size: W,
1158
+ fullWidth: te,
1159
+ attributes: re,
1160
+ ...ie,
1161
+ children: ae
1162
+ });
1163
+ });
1164
+ Ie.classes = {
1165
+ ...X.classes,
1166
+ ...ke.classes
1167
+ }, Ie.displayName = "@mantine/dates/MonthLevelGroup";
1168
+ //#endregion
1169
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/hooks/use-uncontrolled-dates/use-uncontrolled-dates.mjs
1170
+ var Le = (e) => e === "range" ? [null, null] : e === "multiple" ? [] : null, Re = (e, t) => {
1171
+ let n = t ? M : j;
1172
+ return Array.isArray(e) ? e.map(n) : n(e);
1173
+ };
1174
+ function ze({ type: e, value: t, defaultValue: n, onChange: r, withTime: i = !1 }) {
1175
+ let a = x(e), [o, s, c] = u({
1176
+ value: Re(t, i),
1177
+ defaultValue: Re(n, i),
1178
+ finalValue: Le(e),
1179
+ onChange: r
1180
+ }), l = o;
1181
+ return a.current !== e && (a.current = e, t === void 0 && (l = n === void 0 ? Le(e) : n, s(l))), [
1182
+ l,
1183
+ s,
1184
+ c
1185
+ ];
1186
+ }
1187
+ //#endregion
1188
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Calendar/clamp-level/clamp-level.mjs
1189
+ function Z(e, t) {
1190
+ return e ? e === "month" ? 0 : e === "year" ? 1 : 2 : t || 0;
1191
+ }
1192
+ function Be(e) {
1193
+ return e === 0 ? "month" : e === 1 ? "year" : "decade";
1194
+ }
1195
+ function Ve(e, t, n) {
1196
+ return Be(l(Z(e, 0), Z(t, 0), Z(n, 2)));
1197
+ }
1198
+ //#endregion
1199
+ //#region ../../node_modules/.bun/@mantine+dates@9.0.0+7c0e6e23d8f8fc3c/node_modules/@mantine/dates/esm/components/Calendar/Calendar.mjs
1200
+ var He = {
1201
+ maxLevel: "decade",
1202
+ minLevel: "month",
1203
+ __updateDateOnYearSelect: !0,
1204
+ __updateDateOnMonthSelect: !0,
1205
+ enableKeyboardNavigation: !0
1206
+ }, Q = s((e) => {
1207
+ let t = o("Calendar", He, e), { vars: n, maxLevel: r, minLevel: i, defaultLevel: a, level: s, onLevelChange: l, date: p, defaultDate: m, onDateChange: h, numberOfColumns: g, columnsToScroll: _, ariaLabels: v, nextLabel: T, previousLabel: E, onYearSelect: D, onMonthSelect: O, onYearMouseEnter: k, onMonthMouseEnter: A, headerControlsOrder: M, __updateDateOnYearSelect: N, __updateDateOnMonthSelect: P, __setDateRef: F, __setLevelRef: I, firstDayOfWeek: L, weekdayFormat: R, weekendDays: z, getDayProps: B, excludeDate: V, renderDay: H, hideOutsideDates: U, hideWeekdays: W, getDayAriaLabel: ee, monthLabelFormat: te, nextIcon: ne, previousIcon: re, __onDayClick: ie, __onDayMouseEnter: G, withCellSpacing: ae, highlightToday: oe, withWeekNumbers: K, monthsListFormat: se, getMonthControlProps: ce, yearLabelFormat: q, yearsListFormat: J, getYearControlProps: le, decadeLabelFormat: ue, classNames: de, styles: fe, unstyled: pe, minDate: me, maxDate: he, locale: ge, __staticSelector: _e, size: ve, __preventFocus: ye, __stopPropagation: be, onNextDecade: xe, onPreviousDecade: Se, onNextYear: Y, onPreviousYear: Ce, onNextMonth: we, onPreviousMonth: Te, static: Ee, enableKeyboardNavigation: De, fullWidth: Oe, attributes: ke, ref: Ae, ...X } = t, { resolvedClassNames: je, resolvedStyles: Ne } = f({
1208
+ classNames: de,
1209
+ styles: fe,
1210
+ props: t
1211
+ }), [Fe, Le] = u({
1212
+ value: s ? Ve(s, i, r) : void 0,
1213
+ defaultValue: a ? Ve(a, i, r) : void 0,
1214
+ finalValue: Ve(void 0, i, r),
1215
+ onChange: l
1216
+ }), [Re, Z] = ze({
1217
+ type: "default",
1218
+ value: j(p),
1219
+ defaultValue: j(m),
1220
+ onChange: h
1221
+ });
1222
+ b(F, () => (e) => {
1223
+ Z(e);
1224
+ }), b(I, () => (e) => {
1225
+ Le(e);
1226
+ });
1227
+ let Be = {
1228
+ __staticSelector: _e || "Calendar",
1229
+ styles: Ne,
1230
+ classNames: je,
1231
+ unstyled: pe,
1232
+ size: ve,
1233
+ attributes: ke
1234
+ }, Q = _ || g || 1, Ue = x(null);
1235
+ if (Ue.current === null) {
1236
+ let e = /* @__PURE__ */ new Date();
1237
+ Ue.current = me && w(e).isAfter(me) ? me : w(e).format("YYYY-MM-DD");
1238
+ }
1239
+ let $ = Re || Ue.current, We = () => {
1240
+ let e = w($).add(Q, "month").format("YYYY-MM-DD");
1241
+ we?.(e), Z(e);
1242
+ }, Ge = () => {
1243
+ let e = w($).subtract(Q, "month").format("YYYY-MM-DD");
1244
+ Te?.(e), Z(e);
1245
+ }, Ke = () => {
1246
+ let e = w($).add(Q, "year").format("YYYY-MM-DD");
1247
+ Y?.(e), Z(e);
1248
+ }, qe = () => {
1249
+ let e = w($).subtract(Q, "year").format("YYYY-MM-DD");
1250
+ Ce?.(e), Z(e);
1251
+ }, Je = () => {
1252
+ let e = w($).add(10 * Q, "year").format("YYYY-MM-DD");
1253
+ xe?.(e), Z(e);
1254
+ }, Ye = () => {
1255
+ let e = w($).subtract(10 * Q, "year").format("YYYY-MM-DD");
1256
+ Se?.(e), Z(e);
1257
+ }, Xe = x(null);
1258
+ return y(() => {
1259
+ if (!De || Ee) return;
1260
+ let e = (e) => {
1261
+ if (!Xe.current?.contains(document.activeElement)) return;
1262
+ let t = e.ctrlKey || e.metaKey, n = e.shiftKey;
1263
+ switch (e.key) {
1264
+ case "ArrowUp":
1265
+ t && n ? (e.preventDefault(), Ye()) : t && (e.preventDefault(), qe());
1266
+ break;
1267
+ case "ArrowDown":
1268
+ t && n ? (e.preventDefault(), Je()) : t && (e.preventDefault(), Ke());
1269
+ break;
1270
+ case "y":
1271
+ case "Y":
1272
+ Fe === "month" && (e.preventDefault(), Le("year"));
1273
+ break;
1274
+ }
1275
+ };
1276
+ return document.addEventListener("keydown", e), () => {
1277
+ document.removeEventListener("keydown", e);
1278
+ };
1279
+ }, [
1280
+ De,
1281
+ Ee,
1282
+ Fe,
1283
+ Ke,
1284
+ qe,
1285
+ Je,
1286
+ Ye
1287
+ ]), /* @__PURE__ */ C(c, {
1288
+ ref: d(Xe, Ae),
1289
+ size: ve,
1290
+ "data-calendar": !0,
1291
+ "data-full-width": Oe || void 0,
1292
+ ...X,
1293
+ children: [
1294
+ Fe === "month" && /* @__PURE__ */ S(Ie, {
1295
+ month: $,
1296
+ minDate: me,
1297
+ maxDate: he,
1298
+ firstDayOfWeek: L,
1299
+ weekdayFormat: R,
1300
+ weekendDays: z,
1301
+ getDayProps: B,
1302
+ excludeDate: V,
1303
+ renderDay: H,
1304
+ hideOutsideDates: U,
1305
+ hideWeekdays: W,
1306
+ getDayAriaLabel: ee,
1307
+ onNext: We,
1308
+ onPrevious: Ge,
1309
+ hasNextLevel: r !== "month",
1310
+ onLevelClick: () => Le("year"),
1311
+ numberOfColumns: g,
1312
+ locale: ge,
1313
+ levelControlAriaLabel: v?.monthLevelControl,
1314
+ nextLabel: v?.nextMonth ?? T,
1315
+ nextIcon: ne,
1316
+ previousLabel: v?.previousMonth ?? E,
1317
+ previousIcon: re,
1318
+ monthLabelFormat: te,
1319
+ __onDayClick: ie,
1320
+ __onDayMouseEnter: G,
1321
+ __preventFocus: ye,
1322
+ __stopPropagation: be,
1323
+ static: Ee,
1324
+ withCellSpacing: ae,
1325
+ highlightToday: oe,
1326
+ withWeekNumbers: K,
1327
+ headerControlsOrder: M,
1328
+ fullWidth: Oe,
1329
+ ...Be
1330
+ }),
1331
+ Fe === "year" && /* @__PURE__ */ S(Pe, {
1332
+ year: $,
1333
+ numberOfColumns: g,
1334
+ minDate: me,
1335
+ maxDate: he,
1336
+ monthsListFormat: se,
1337
+ getMonthControlProps: ce,
1338
+ locale: ge,
1339
+ onNext: Ke,
1340
+ onPrevious: qe,
1341
+ hasNextLevel: r !== "month" && r !== "year",
1342
+ onLevelClick: () => Le("decade"),
1343
+ levelControlAriaLabel: v?.yearLevelControl,
1344
+ nextLabel: v?.nextYear ?? T,
1345
+ nextIcon: ne,
1346
+ previousLabel: v?.previousYear ?? E,
1347
+ previousIcon: re,
1348
+ yearLabelFormat: q,
1349
+ __onControlMouseEnter: A,
1350
+ __onControlClick: (e, t) => {
1351
+ P && Z(t), Le(Ve("month", i, r)), O?.(t);
1352
+ },
1353
+ __preventFocus: ye,
1354
+ __stopPropagation: be,
1355
+ withCellSpacing: ae,
1356
+ headerControlsOrder: M,
1357
+ fullWidth: Oe,
1358
+ ...Be
1359
+ }),
1360
+ Fe === "decade" && /* @__PURE__ */ S(Me, {
1361
+ decade: $,
1362
+ minDate: me,
1363
+ maxDate: he,
1364
+ yearsListFormat: J,
1365
+ getYearControlProps: le,
1366
+ locale: ge,
1367
+ onNext: Je,
1368
+ onPrevious: Ye,
1369
+ numberOfColumns: g,
1370
+ nextLabel: v?.nextDecade ?? T,
1371
+ nextIcon: ne,
1372
+ previousLabel: v?.previousDecade ?? E,
1373
+ previousIcon: re,
1374
+ decadeLabelFormat: ue,
1375
+ __onControlMouseEnter: k,
1376
+ __onControlClick: (e, t) => {
1377
+ N && Z(t), Le(Ve("year", i, r)), D?.(t);
1378
+ },
1379
+ __preventFocus: ye,
1380
+ __stopPropagation: be,
1381
+ withCellSpacing: ae,
1382
+ headerControlsOrder: M,
1383
+ fullWidth: Oe,
1384
+ ...Be
1385
+ })
1386
+ ]
1387
+ });
1388
+ });
1389
+ Q.classes = {
1390
+ ...Me.classes,
1391
+ ...Pe.classes,
1392
+ ...Ie.classes
1393
+ }, Q.displayName = "@mantine/dates/Calendar";
1394
+ var Ue = { root: "_root_43uio_1" }, $ = /* @__PURE__ */ e({ default: () => We }), We = () => /* @__PURE__ */ S("div", {
1395
+ className: Ue.root,
1396
+ children: /* @__PURE__ */ S(Q, {})
1397
+ });
1398
+ //#endregion
1399
+ export { $ as n, We as t };