cortex-react-components 3.0.8 → 3.0.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 (161) hide show
  1. package/dist/{chunk-4HFMA57F.mjs → chunk-27NWC2OO.mjs} +4 -4
  2. package/dist/{chunk-44F47U5Y.mjs → chunk-34R3E2JB.mjs} +1 -1
  3. package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
  4. package/dist/{chunk-2ZSH4X75.mjs → chunk-4DNX5IYR.mjs} +1 -1
  5. package/dist/{chunk-HABWABS7.mjs → chunk-4O6ESJYG.mjs} +32 -11
  6. package/dist/{chunk-B3UYSM32.mjs → chunk-5DYPBHBP.mjs} +4 -4
  7. package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
  8. package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
  9. package/dist/{chunk-5Q43DAAS.mjs → chunk-6VQJSQRU.mjs} +8 -8
  10. package/dist/{chunk-QPPQNK6O.mjs → chunk-6VQLA4YU.mjs} +2 -2
  11. package/dist/{chunk-GXTF5CHJ.mjs → chunk-7D3SYOXW.mjs} +7 -4
  12. package/dist/{chunk-F563CDDJ.mjs → chunk-AQPLEBKG.mjs} +2 -2
  13. package/dist/{chunk-SNNQIUJH.mjs → chunk-BVCARDFK.mjs} +3 -3
  14. package/dist/{chunk-HGDLIXPQ.mjs → chunk-DGV5AVAW.mjs} +1 -1
  15. package/dist/{chunk-GV3CMMKT.mjs → chunk-FECAR2TE.mjs} +1 -1
  16. package/dist/{chunk-5KOAYGTO.mjs → chunk-G5N5MCLS.mjs} +5 -5
  17. package/dist/{chunk-SHHLY2QV.mjs → chunk-G7GPQ6BO.mjs} +1 -1
  18. package/dist/{chunk-354MPNDV.mjs → chunk-ICVTRW5Y.mjs} +1 -1
  19. package/dist/{chunk-4BRK5CBG.mjs → chunk-IFEQNYUB.mjs} +2 -2
  20. package/dist/{chunk-LCRSPNPB.mjs → chunk-LELKTN52.mjs} +18 -14
  21. package/dist/{chunk-VEIZROGM.mjs → chunk-M6ELOAGS.mjs} +1 -1
  22. package/dist/{chunk-YI6FLZOK.mjs → chunk-M7LM5P64.mjs} +1 -1
  23. package/dist/{chunk-EUAQNPRU.mjs → chunk-NHDPHK6D.mjs} +2 -2
  24. package/dist/{chunk-L34WYFSB.mjs → chunk-NKHYDT5B.mjs} +1 -1
  25. package/dist/{chunk-X6PPZZ2E.mjs → chunk-OYHXC3AT.mjs} +8 -8
  26. package/dist/{chunk-7ZMZT7I6.mjs → chunk-P7BPG7W7.mjs} +1 -1
  27. package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
  28. package/dist/chunk-PIQUYPOZ.mjs +41 -0
  29. package/dist/{chunk-COHYOWMB.mjs → chunk-PVI4R7FJ.mjs} +1 -1
  30. package/dist/{chunk-HJLIEMLX.mjs → chunk-QC2AXU6I.mjs} +2 -2
  31. package/dist/{chunk-PE7KJR4A.mjs → chunk-RC6YHGVV.mjs} +1 -1
  32. package/dist/{chunk-USE5WY4U.mjs → chunk-S4FUSOSS.mjs} +1 -1
  33. package/dist/{chunk-TZDVVQBQ.mjs → chunk-SRK3Y7FA.mjs} +1 -1
  34. package/dist/{chunk-2S3O5TYH.mjs → chunk-UBEWNGCN.mjs} +1 -1
  35. package/dist/{chunk-X2KTMYOD.mjs → chunk-UJI3Y73K.mjs} +2 -2
  36. package/dist/{chunk-HXPXJ26M.mjs → chunk-VF2QBVAI.mjs} +1 -1
  37. package/dist/{chunk-4YRR74Y4.mjs → chunk-VMYEV3FG.mjs} +1 -1
  38. package/dist/{chunk-IXQESSPI.mjs → chunk-WA3OQB7X.mjs} +1 -1
  39. package/dist/{chunk-Z6MYLHDW.mjs → chunk-YFOEG4PP.mjs} +1 -1
  40. package/dist/{chunk-YJIB2FYD.mjs → chunk-YMXGTNMY.mjs} +2 -2
  41. package/dist/{chunk-QRC3VJEY.mjs → chunk-ZXU5T3GV.mjs} +1 -1
  42. package/dist/{chunk-TMVCGF2B.mjs → chunk-ZZ5EM2M4.mjs} +1 -1
  43. package/dist/components/Blocks/Banner.mjs +5 -5
  44. package/dist/components/Blocks/CallToAction.mjs +5 -5
  45. package/dist/components/Blocks/CollapsibleArea.mjs +6 -6
  46. package/dist/components/Blocks/Content.mjs +6 -6
  47. package/dist/components/Blocks/FeaturesBlock.mjs +5 -5
  48. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  49. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  50. package/dist/components/Blocks/RelatedPosts.mjs +7 -7
  51. package/dist/components/Blocks/RenderBlocks.mjs +8 -8
  52. package/dist/components/Blocks/ReusableContentBlock.mjs +8 -8
  53. package/dist/components/Blocks/index.mjs +15 -15
  54. package/dist/components/CRM/index.mjs +3 -3
  55. package/dist/components/Cards/ContentCard.mjs +5 -5
  56. package/dist/components/Cards/FeatureCard.mjs +5 -5
  57. package/dist/components/Cards/index.mjs +5 -5
  58. package/dist/components/Chat/ChatInterface.mjs +8 -8
  59. package/dist/components/Chat/CopilotInterface.mjs +9 -9
  60. package/dist/components/Chat/PartTypes/MessageHandler.mjs +6 -6
  61. package/dist/components/Chat/PartTypes/index.mjs +4 -4
  62. package/dist/components/Chat/demo-long-messages.mjs +9 -9
  63. package/dist/components/Chat/demo-tests.mjs +9 -9
  64. package/dist/components/Chat/demo.mjs +9 -9
  65. package/dist/components/Chat/example-usage.mjs +9 -9
  66. package/dist/components/Chat/example-with-vercel-ai.mjs +9 -9
  67. package/dist/components/Chat/index.mjs +13 -13
  68. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +3 -3
  69. package/dist/components/DigitalColleagues/MainPage.mjs +4 -4
  70. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +4 -4
  71. package/dist/components/DigitalColleagues/Views/index.mjs +11 -11
  72. package/dist/components/DigitalColleagues/index.mjs +14 -14
  73. package/dist/components/Foundary/AppSidebarLeft.mjs +3 -3
  74. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +4 -4
  75. package/dist/components/Foundary/Knowledge/add-team-context.mjs +4 -4
  76. package/dist/components/Foundary/MainPage.mjs +4 -4
  77. package/dist/components/Foundary/Pages/dashboardpage.mjs +4 -4
  78. package/dist/components/Foundary/Views/KnowledgeView.mjs +4 -4
  79. package/dist/components/Foundary/Views/index.mjs +11 -11
  80. package/dist/components/Foundary/file-edit.mjs +4 -4
  81. package/dist/components/Foundary/index.mjs +14 -14
  82. package/dist/components/HeaderFooter/SectionHeading.mjs +6 -6
  83. package/dist/components/Heros/HighImpact/index.mjs +6 -6
  84. package/dist/components/Heros/LowImpact/index.mjs +6 -6
  85. package/dist/components/Heros/MediumImpact/index.mjs +6 -6
  86. package/dist/components/Heros/PostHero/index.mjs +4 -4
  87. package/dist/components/Heros/RenderHero.mjs +9 -9
  88. package/dist/components/Heros/index.mjs +13 -13
  89. package/dist/components/Holidays/CalendarView.d.ts +2 -1
  90. package/dist/components/Holidays/CalendarView.js +18 -14
  91. package/dist/components/Holidays/CalendarView.mjs +1 -1
  92. package/dist/components/Holidays/HolidayGrid.js +5 -3
  93. package/dist/components/Holidays/HolidayGrid.mjs +2 -2
  94. package/dist/components/Holidays/HolidayTracker.d.ts +2 -1
  95. package/dist/components/Holidays/HolidayTracker.js +65 -35
  96. package/dist/components/Holidays/HolidayTracker.mjs +5 -5
  97. package/dist/components/Holidays/RequestLeave.js +40 -17
  98. package/dist/components/Holidays/RequestLeave.mjs +2 -2
  99. package/dist/components/Holidays/index.js +65 -35
  100. package/dist/components/Holidays/index.mjs +5 -5
  101. package/dist/components/Layouts/OutputHeaderFooter.mjs +8 -8
  102. package/dist/components/Layouts/Print.mjs +12 -12
  103. package/dist/components/Layouts/SlideShow.mjs +14 -14
  104. package/dist/components/Layouts/index.mjs +15 -15
  105. package/dist/components/Menus/SidebarLeft.mjs +3 -3
  106. package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
  107. package/dist/components/Menus/SidebarRight.mjs +3 -3
  108. package/dist/components/Menus/index.mjs +8 -8
  109. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  110. package/dist/components/Payload/Media/index.mjs +2 -2
  111. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  112. package/dist/components/Payload/RichText/index.mjs +5 -5
  113. package/dist/components/Payload/RichText/serialize.mjs +5 -5
  114. package/dist/components/Payload/index.mjs +7 -7
  115. package/dist/components/Projects/EpicsView.mjs +2 -2
  116. package/dist/components/Projects/FileView.mjs +4 -4
  117. package/dist/components/Projects/KanbanBoardView.mjs +7 -7
  118. package/dist/components/Projects/ProjectPage.mjs +9 -9
  119. package/dist/components/Projects/ProjectView.mjs +9 -9
  120. package/dist/components/Projects/TaskDetailsModal.mjs +4 -4
  121. package/dist/components/Projects/file-list.mjs +4 -4
  122. package/dist/components/Projects/index.mjs +8 -8
  123. package/dist/components/dc-temp/index.mjs +4 -4
  124. package/dist/components/index.js +97 -67
  125. package/dist/components/index.mjs +73 -73
  126. package/dist/components/ui/index.mjs +12 -12
  127. package/dist/components/ui/sidebar.mjs +2 -2
  128. package/dist/decorators/Intranet.mjs +51 -51
  129. package/dist/index.js +97 -67
  130. package/dist/index.mjs +85 -85
  131. package/dist/metafile-cjs.json +1 -1
  132. package/dist/metafile-esm.json +1 -1
  133. package/dist/pages/Blog.mjs +10 -10
  134. package/dist/pages/Documentation.mjs +4 -4
  135. package/dist/pages/IndexPage.mjs +14 -14
  136. package/dist/pages/Intranet.mjs +4 -4
  137. package/dist/pages/LandingPage.mjs +62 -62
  138. package/dist/pages/Page.mjs +12 -12
  139. package/dist/pages/Publish.mjs +52 -52
  140. package/dist/pages/Website.mjs +12 -12
  141. package/dist/sections/AboutSection.mjs +7 -7
  142. package/dist/sections/BlogDetail.mjs +6 -6
  143. package/dist/sections/BlogList.mjs +7 -7
  144. package/dist/sections/BlogListSection.mjs +7 -7
  145. package/dist/sections/ContactSection.mjs +7 -7
  146. package/dist/sections/PageSections.mjs +62 -62
  147. package/dist/sections/PricingSection.mjs +7 -7
  148. package/dist/sections/ServiceDetail.mjs +6 -6
  149. package/dist/sections/ServiceDetailSection.mjs +6 -6
  150. package/dist/sections/ServiceSection.mjs +52 -52
  151. package/dist/sections/index.mjs +62 -62
  152. package/dist/utils/DaysUtil.js +9 -7
  153. package/dist/utils/DaysUtil.mjs +1 -1
  154. package/package.json +1 -1
  155. package/dist/chunk-I4UOIVSC.mjs +0 -39
  156. package/dist/{chunk-25OSLP2V.mjs → chunk-6TVRFATY.mjs} +3 -3
  157. package/dist/{chunk-D5KV6INF.mjs → chunk-AEFGMCK3.mjs} +3 -3
  158. package/dist/{chunk-MFXCOX3L.mjs → chunk-CT6KAYGR.mjs} +3 -3
  159. package/dist/{chunk-M5XPU4JK.mjs → chunk-L666B5DN.mjs} +6 -6
  160. package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
  161. package/dist/{chunk-DWGG6JKH.mjs → chunk-ZFWHFUZP.mjs} +3 -3
@@ -22,10 +22,10 @@ import "../../chunk-NF4JWFAZ.mjs";
22
22
  import "../../chunk-3HO4HLPV.mjs";
23
23
  import "../../chunk-XTI4RMGG.mjs";
24
24
  import "../../chunk-Y6HQV3VB.mjs";
25
- import "../../chunk-IBQBZNEA.mjs";
26
- import "../../chunk-JCFLPLDK.mjs";
27
25
  import "../../chunk-3VKPPG4Z.mjs";
28
26
  import "../../chunk-T2CLUB2R.mjs";
27
+ import "../../chunk-IBQBZNEA.mjs";
28
+ import "../../chunk-JCFLPLDK.mjs";
29
29
  import "../../chunk-6V75REDA.mjs";
30
30
  import "../../chunk-B2NSGNGK.mjs";
31
31
  import "../../chunk-WMIXALIT.mjs";
@@ -44,10 +44,10 @@ import "../../chunk-EQHAE4MP.mjs";
44
44
  import "../../chunk-SG5TVUD2.mjs";
45
45
  import "../../chunk-23N4BX45.mjs";
46
46
  import "../../chunk-6MKCSIL2.mjs";
47
- import "../../chunk-D5KV6INF.mjs";
48
- import "../../chunk-EPR27OQG.mjs";
47
+ import "../../chunk-AEFGMCK3.mjs";
49
48
  import "../../chunk-7GPVQAMX.mjs";
50
49
  import "../../chunk-HJCCUR2K.mjs";
50
+ import "../../chunk-EPR27OQG.mjs";
51
51
  import "../../chunk-R7D7RJIE.mjs";
52
52
  import "../../chunk-YMZ2OUK6.mjs";
53
53
  import "../../chunk-EN2UUKLU.mjs";
@@ -17,10 +17,10 @@ import "../../chunk-EQYJUXKZ.mjs";
17
17
  import "../../chunk-QUGB53Z3.mjs";
18
18
  import "../../chunk-RJZMTP7J.mjs";
19
19
  import "../../chunk-3HO4HLPV.mjs";
20
- import "../../chunk-IBQBZNEA.mjs";
21
- import "../../chunk-JCFLPLDK.mjs";
22
20
  import "../../chunk-3VKPPG4Z.mjs";
23
21
  import "../../chunk-T2CLUB2R.mjs";
22
+ import "../../chunk-IBQBZNEA.mjs";
23
+ import "../../chunk-JCFLPLDK.mjs";
24
24
  import "../../chunk-6V75REDA.mjs";
25
25
  import "../../chunk-B2NSGNGK.mjs";
26
26
  import "../../chunk-WMIXALIT.mjs";
@@ -39,10 +39,10 @@ import "../../chunk-EQHAE4MP.mjs";
39
39
  import "../../chunk-SG5TVUD2.mjs";
40
40
  import "../../chunk-23N4BX45.mjs";
41
41
  import "../../chunk-6MKCSIL2.mjs";
42
- import "../../chunk-D5KV6INF.mjs";
43
- import "../../chunk-EPR27OQG.mjs";
42
+ import "../../chunk-AEFGMCK3.mjs";
44
43
  import "../../chunk-7GPVQAMX.mjs";
45
44
  import "../../chunk-HJCCUR2K.mjs";
45
+ import "../../chunk-EPR27OQG.mjs";
46
46
  import "../../chunk-R7D7RJIE.mjs";
47
47
  import "../../chunk-YMZ2OUK6.mjs";
48
48
  import "../../chunk-EN2UUKLU.mjs";
@@ -6,23 +6,23 @@ import {
6
6
  } from "../../chunk-OIXHYJGP.mjs";
7
7
  import {
8
8
  EpicsView
9
- } from "../../chunk-25OSLP2V.mjs";
9
+ } from "../../chunk-6TVRFATY.mjs";
10
10
  import {
11
11
  KanbanBoardView
12
- } from "../../chunk-DWGG6JKH.mjs";
12
+ } from "../../chunk-ZFWHFUZP.mjs";
13
13
  import "../../chunk-XWYGGWIF.mjs";
14
14
  import "../../chunk-OFUTCZ7A.mjs";
15
15
  import "../../chunk-YFNT546N.mjs";
16
16
  import "../../chunk-EUOOS2Q3.mjs";
17
- import "../../chunk-3FBWSJJD.mjs";
18
17
  import "../../chunk-P7YLSTDO.mjs";
19
18
  import {
20
19
  PlanningView
21
20
  } from "../../chunk-YNWNEY2R.mjs";
21
+ import "../../chunk-UDCOG2XL.mjs";
22
22
  import "../../chunk-B7WVGDB6.mjs";
23
+ import "../../chunk-3FBWSJJD.mjs";
23
24
  import "../../chunk-MSAH6P5O.mjs";
24
25
  import "../../chunk-ZMITLXFT.mjs";
25
- import "../../chunk-UDCOG2XL.mjs";
26
26
  import "../../chunk-HQW5M4ND.mjs";
27
27
  import "../../chunk-UQI2O3WS.mjs";
28
28
  import "../../chunk-VESIB4VP.mjs";
@@ -44,10 +44,10 @@ import "../../chunk-3HO4HLPV.mjs";
44
44
  import "../../chunk-CR4DEGH3.mjs";
45
45
  import "../../chunk-XTI4RMGG.mjs";
46
46
  import "../../chunk-Y6HQV3VB.mjs";
47
- import "../../chunk-IBQBZNEA.mjs";
48
- import "../../chunk-JCFLPLDK.mjs";
49
47
  import "../../chunk-3VKPPG4Z.mjs";
50
48
  import "../../chunk-T2CLUB2R.mjs";
49
+ import "../../chunk-IBQBZNEA.mjs";
50
+ import "../../chunk-JCFLPLDK.mjs";
51
51
  import "../../chunk-6V75REDA.mjs";
52
52
  import "../../chunk-B2NSGNGK.mjs";
53
53
  import "../../chunk-WMIXALIT.mjs";
@@ -66,10 +66,10 @@ import "../../chunk-EQHAE4MP.mjs";
66
66
  import "../../chunk-SG5TVUD2.mjs";
67
67
  import "../../chunk-23N4BX45.mjs";
68
68
  import "../../chunk-6MKCSIL2.mjs";
69
- import "../../chunk-D5KV6INF.mjs";
70
- import "../../chunk-EPR27OQG.mjs";
69
+ import "../../chunk-AEFGMCK3.mjs";
71
70
  import "../../chunk-7GPVQAMX.mjs";
72
71
  import "../../chunk-HJCCUR2K.mjs";
72
+ import "../../chunk-EPR27OQG.mjs";
73
73
  import "../../chunk-R7D7RJIE.mjs";
74
74
  import "../../chunk-YMZ2OUK6.mjs";
75
75
  import "../../chunk-EN2UUKLU.mjs";
@@ -37,10 +37,10 @@ import "../../chunk-RJZMTP7J.mjs";
37
37
  import "../../chunk-RQVP4AS3.mjs";
38
38
  import "../../chunk-3HO4HLPV.mjs";
39
39
  import "../../chunk-CR4DEGH3.mjs";
40
- import "../../chunk-IBQBZNEA.mjs";
41
- import "../../chunk-JCFLPLDK.mjs";
42
40
  import "../../chunk-3VKPPG4Z.mjs";
43
41
  import "../../chunk-T2CLUB2R.mjs";
42
+ import "../../chunk-IBQBZNEA.mjs";
43
+ import "../../chunk-JCFLPLDK.mjs";
44
44
  import "../../chunk-6V75REDA.mjs";
45
45
  import "../../chunk-B2NSGNGK.mjs";
46
46
  import "../../chunk-WMIXALIT.mjs";
@@ -59,10 +59,10 @@ import "../../chunk-EQHAE4MP.mjs";
59
59
  import "../../chunk-SG5TVUD2.mjs";
60
60
  import "../../chunk-23N4BX45.mjs";
61
61
  import "../../chunk-6MKCSIL2.mjs";
62
- import "../../chunk-D5KV6INF.mjs";
63
- import "../../chunk-EPR27OQG.mjs";
62
+ import "../../chunk-AEFGMCK3.mjs";
64
63
  import "../../chunk-7GPVQAMX.mjs";
65
64
  import "../../chunk-HJCCUR2K.mjs";
65
+ import "../../chunk-EPR27OQG.mjs";
66
66
  import "../../chunk-R7D7RJIE.mjs";
67
67
  import "../../chunk-YMZ2OUK6.mjs";
68
68
  import "../../chunk-EN2UUKLU.mjs";
@@ -10252,7 +10252,6 @@ function ApproveLeave({ leaveRequests, onApprove, onReject }) {
10252
10252
 
10253
10253
  // src/components/Holidays/RequestLeave.tsx
10254
10254
  var import_react30 = require("react");
10255
- var import_date_fns = require("date-fns");
10256
10255
  var import_lucide_react20 = require("lucide-react");
10257
10256
  var import_navigation7 = require("next/navigation");
10258
10257
  var import_sonner3 = require("sonner");
@@ -10297,14 +10296,16 @@ var bankHolidays = [
10297
10296
 
10298
10297
  // src/utils/DaysUtil.ts
10299
10298
  var isDayOff = (date) => {
10300
- const isSunday = date.getDay() === 0;
10301
- const isSaturday = date.getDay() === 6;
10302
- const isBankHoliday = bankHolidays.some((h) => h.toISOString() === date.toISOString());
10299
+ const isSunday = date.getUTCDay() === 0;
10300
+ const isSaturday = date.getUTCDay() === 6;
10301
+ const isBankHoliday = bankHolidays.some(
10302
+ (h) => h.getFullYear() === date.getUTCFullYear() && h.getMonth() === date.getUTCMonth() && h.getDate() === date.getUTCDate()
10303
+ );
10303
10304
  return isSunday || isSaturday || isBankHoliday;
10304
10305
  };
10305
10306
  var getTotalDaysBetween = (startDate, endDate, isHalfDay = false) => {
10306
- const start = new Date(startDate);
10307
- const end = new Date(endDate);
10307
+ let start = new Date(Date.UTC(startDate.getUTCFullYear(), startDate.getUTCMonth(), startDate.getUTCDate()));
10308
+ const end = new Date(Date.UTC(endDate.getUTCFullYear(), endDate.getUTCMonth(), endDate.getUTCDate()));
10308
10309
  let count2 = 0;
10309
10310
  if (isHalfDay && !isDayOff(start)) {
10310
10311
  return 0.5;
@@ -10313,7 +10314,7 @@ var getTotalDaysBetween = (startDate, endDate, isHalfDay = false) => {
10313
10314
  if (!isDayOff(start)) {
10314
10315
  count2++;
10315
10316
  }
10316
- start.setDate(start.getDate() + 1);
10317
+ start = new Date(start.getTime() + 24 * 60 * 60 * 1e3);
10317
10318
  }
10318
10319
  return count2;
10319
10320
  };
@@ -10321,7 +10322,7 @@ var getIsMultipleDays = (startDate, endDate) => {
10321
10322
  if (!startDate || !endDate) {
10322
10323
  return false;
10323
10324
  }
10324
- const isMultipleDays = startDate.toDateString() !== endDate.toDateString();
10325
+ const isMultipleDays = startDate.getUTCFullYear() !== endDate.getUTCFullYear() || startDate.getUTCMonth() !== endDate.getUTCMonth() || startDate.getUTCDate() !== endDate.getUTCDate();
10325
10326
  return isMultipleDays;
10326
10327
  };
10327
10328
 
@@ -10342,11 +10343,26 @@ var ButtonGroup = ({ options, value, onChange, disabled = [] }) => {
10342
10343
  )) });
10343
10344
  };
10344
10345
  function RequestLeave({ remainingDays, submitLeaveRequest }) {
10345
- const [startDate, setStartDate] = (0, import_react30.useState)(/* @__PURE__ */ new Date());
10346
- const [endDate, setEndDate] = (0, import_react30.useState)(/* @__PURE__ */ new Date());
10346
+ const setToMidnightUTC = (date) => {
10347
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0));
10348
+ };
10349
+ const formatDateUTC = (date) => {
10350
+ const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
10351
+ const day = date.getUTCDate();
10352
+ const month = months[date.getUTCMonth()];
10353
+ const year = date.getUTCFullYear();
10354
+ const suffix = day === 1 || day === 21 || day === 31 ? "st" : day === 2 || day === 22 ? "nd" : day === 3 || day === 23 ? "rd" : "th";
10355
+ return `${month} ${day}${suffix}, ${year}`;
10356
+ };
10357
+ const [startDate, setStartDate] = (0, import_react30.useState)(void 0);
10358
+ const [endDate, setEndDate] = (0, import_react30.useState)(void 0);
10359
+ (0, import_react30.useEffect)(() => {
10360
+ if (startDate === void 0) setStartDate(setToMidnightUTC(/* @__PURE__ */ new Date()));
10361
+ if (endDate === void 0) setEndDate(setToMidnightUTC(/* @__PURE__ */ new Date()));
10362
+ }, []);
10347
10363
  const [leaveType, setLeaveType] = (0, import_react30.useState)("Full Day");
10348
10364
  const [isMultipleDays, setIsMultipleDays] = (0, import_react30.useState)(false);
10349
- const [totalDays, setTotalDays] = (0, import_react30.useState)(1);
10365
+ const [totalDays, setTotalDays] = (0, import_react30.useState)(0);
10350
10366
  const router = (0, import_navigation7.useRouter)();
10351
10367
  (0, import_react30.useEffect)(() => {
10352
10368
  const isMultipleDays2 = getIsMultipleDays(startDate, endDate);
@@ -10415,7 +10431,7 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
10415
10431
  ),
10416
10432
  children: [
10417
10433
  /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react20.CalendarIcon, { className: "mr-2 h-4 w-4" }),
10418
- startDate ? (0, import_date_fns.format)(startDate, "PPP") : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { children: "Pick a date" })
10434
+ startDate ? formatDateUTC(startDate) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { children: "Pick a date" })
10419
10435
  ]
10420
10436
  }
10421
10437
  ) }),
@@ -10425,9 +10441,12 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
10425
10441
  mode: "single",
10426
10442
  selected: startDate,
10427
10443
  onSelect: (date) => {
10428
- setStartDate(date);
10429
- if (date && (!endDate || date > endDate)) {
10430
- setEndDate(date);
10444
+ if (date) {
10445
+ const dateMidnight = setToMidnightUTC(date);
10446
+ setStartDate(dateMidnight);
10447
+ if (!endDate || date > endDate) {
10448
+ setEndDate(dateMidnight);
10449
+ }
10431
10450
  }
10432
10451
  },
10433
10452
  initialFocus: true
@@ -10448,7 +10467,7 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
10448
10467
  ),
10449
10468
  children: [
10450
10469
  /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react20.CalendarIcon, { className: "mr-2 h-4 w-4" }),
10451
- endDate ? (0, import_date_fns.format)(endDate, "PPP") : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { children: "Pick a date" })
10470
+ endDate ? formatDateUTC(endDate) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { children: "Pick a date" })
10452
10471
  ]
10453
10472
  }
10454
10473
  ) }),
@@ -10457,7 +10476,11 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
10457
10476
  {
10458
10477
  mode: "single",
10459
10478
  selected: endDate,
10460
- onSelect: setEndDate,
10479
+ onSelect: (date) => {
10480
+ if (date) {
10481
+ setEndDate(setToMidnightUTC(date));
10482
+ }
10483
+ },
10461
10484
  disabled: (date) => startDate ? date < startDate : false,
10462
10485
  initialFocus: true
10463
10486
  }
@@ -10676,38 +10699,42 @@ function HolidayGrid({
10676
10699
  var import_react31 = require("react");
10677
10700
  var import_lucide_react22 = require("lucide-react");
10678
10701
  var import_jsx_runtime112 = require("react/jsx-runtime");
10679
- function CalendarView({ currentDate, setCurrentDate, holidays }) {
10702
+ function CalendarView({ currentDate, setCurrentDate, holidays, today }) {
10680
10703
  const [selectedDay, setSelectedDay] = (0, import_react31.useState)(null);
10681
- const firstDayOfMonth = (new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).getDay() + 6) % 7;
10704
+ const isSameUtcDay = (a, b) => a.getUTCFullYear() === b.getUTCFullYear() && a.getUTCMonth() === b.getUTCMonth() && a.getUTCDate() === b.getUTCDate();
10705
+ const firstDayOfMonth = (new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), 1)).getUTCDay() + 6) % 7;
10682
10706
  const days = Array.from({ length: 42 }, (_, i) => {
10683
10707
  const day = new Date(
10684
- currentDate.getFullYear(),
10685
- currentDate.getMonth(),
10686
- i - firstDayOfMonth + 1,
10687
- currentDate.getHours()
10708
+ Date.UTC(
10709
+ currentDate.getUTCFullYear(),
10710
+ currentDate.getUTCMonth(),
10711
+ i - firstDayOfMonth + 1
10712
+ )
10688
10713
  );
10689
10714
  const filteredHolidays = holidays.filter(
10690
10715
  (h) => TimeUtil.toUtcMidnight(new Date(h.startDate)) <= day && TimeUtil.toUtcEndOfDay(new Date(h.endDate)) >= day
10691
10716
  );
10692
10717
  return {
10693
10718
  date: day,
10694
- isCurrentMonth: day.getMonth() === currentDate.getMonth(),
10695
- isToday: day.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
10719
+ isCurrentMonth: day.getUTCMonth() === currentDate.getUTCMonth(),
10720
+ isToday: isSameUtcDay(day, today),
10696
10721
  holidays: filteredHolidays
10697
10722
  };
10698
10723
  });
10699
10724
  const prevMonth = () => {
10700
- setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1));
10725
+ setCurrentDate(new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth() - 1, 1)));
10701
10726
  };
10702
10727
  const nextMonth = () => {
10703
- setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 1));
10728
+ setCurrentDate(new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth() + 1, 1)));
10704
10729
  };
10705
10730
  const setToday = () => {
10706
- setCurrentDate(/* @__PURE__ */ new Date());
10731
+ setCurrentDate(TimeUtil.toUtcMidnight(/* @__PURE__ */ new Date()));
10707
10732
  };
10733
+ const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
10734
+ const monthYearDisplay = `${months[currentDate.getUTCMonth()]} ${currentDate.getUTCFullYear()}`;
10708
10735
  return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "lg:flex lg:h-full lg:flex-col", children: [
10709
10736
  /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("header", { className: "flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none", children: [
10710
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("h1", { className: "text-base font-semibold text-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("time", { dateTime: currentDate.toISOString(), children: currentDate.toLocaleString("default", { month: "long", year: "numeric" }) }) }),
10737
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("h1", { className: "text-base font-semibold text-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("time", { dateTime: currentDate.toISOString(), children: monthYearDisplay }) }),
10711
10738
  /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "relative flex items-center rounded-md gap-1 md:items-stretch", children: [
10712
10739
  /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
10713
10740
  Button,
@@ -10794,7 +10821,7 @@ function CalendarView({ currentDate, setCurrentDate, holidays }) {
10794
10821
  "flex h-6 w-6 items-center justify-center rounded-full",
10795
10822
  day.isToday && "bg-indigo-600 font-semibold text-white"
10796
10823
  ),
10797
- children: day.date.getDate()
10824
+ children: day.date.getUTCDate()
10798
10825
  }
10799
10826
  ),
10800
10827
  day.holidays.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("ol", { className: "mt-2 space-y-1 overflow-visible", children: day.holidays.map((holiday) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("li", { className: "overflow-visible", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
@@ -10831,7 +10858,7 @@ function CalendarView({ currentDate, setCurrentDate, holidays }) {
10831
10858
  day.date === selectedDay && day.isToday && "flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",
10832
10859
  day.date === selectedDay && !day.isToday && "flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"
10833
10860
  ),
10834
- children: day.date.getDate()
10861
+ children: day.date.getUTCDate()
10835
10862
  }
10836
10863
  ),
10837
10864
  /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("span", { className: "sr-only", children: [
@@ -10859,7 +10886,7 @@ var import_react32 = require("react");
10859
10886
  var import_lucide_react23 = require("lucide-react");
10860
10887
  var import_lucide_react24 = require("lucide-react");
10861
10888
  var import_navigation8 = require("next/navigation");
10862
- var import_date_fns2 = require("date-fns");
10889
+ var import_date_fns = require("date-fns");
10863
10890
  var import_jsx_runtime113 = require("react/jsx-runtime");
10864
10891
  function classNames2(...classes) {
10865
10892
  return classes.filter(Boolean).join(" ");
@@ -10868,6 +10895,7 @@ function HolidayTracker({
10868
10895
  holidays,
10869
10896
  currentUser,
10870
10897
  currentDate,
10898
+ today,
10871
10899
  leaveApprovals,
10872
10900
  employees,
10873
10901
  submitLeaveRequest,
@@ -10877,9 +10905,10 @@ function HolidayTracker({
10877
10905
  const [currentTab, setCurrentTab] = (0, import_react32.useState)("Calendar View");
10878
10906
  const router = (0, import_navigation8.useRouter)();
10879
10907
  const isLoading = false;
10880
- const parsedCurrentDate = TimeUtil.toUtcMidnight((0, import_date_fns2.parseISO)(currentDate));
10908
+ const parsedCurrentDate = TimeUtil.toUtcMidnight((0, import_date_fns.parseISO)(currentDate));
10909
+ const parsedToday = TimeUtil.toUtcMidnight((0, import_date_fns.parseISO)(today));
10881
10910
  const setCurrentDate = async (date) => {
10882
- const formattedDate = (0, import_date_fns2.format)(date, "dd-MM-yyyy");
10911
+ const formattedDate = (0, import_date_fns.format)(date, "dd-MM-yyyy");
10883
10912
  const url = new URL(window.location.href);
10884
10913
  url.searchParams.set("date", formattedDate);
10885
10914
  router.push(url.toString());
@@ -10959,7 +10988,8 @@ function HolidayTracker({
10959
10988
  {
10960
10989
  currentDate: parsedCurrentDate,
10961
10990
  setCurrentDate,
10962
- holidays
10991
+ holidays,
10992
+ today: parsedToday
10963
10993
  }
10964
10994
  ),
10965
10995
  currentTab === "Request Leave" && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
@@ -11878,7 +11908,7 @@ function CRMCogeBoard({
11878
11908
 
11879
11909
  // src/components/Chat/Components/ChatCardTask.tsx
11880
11910
  var import_lucide_react28 = require("lucide-react");
11881
- var import_date_fns3 = require("date-fns");
11911
+ var import_date_fns2 = require("date-fns");
11882
11912
 
11883
11913
  // src/components/Chat/hooks/useTask.ts
11884
11914
  var import_react38 = require("react");
@@ -11985,7 +12015,7 @@ function ChatCardTask({
11985
12015
  try {
11986
12016
  const date = new Date(taskData?.dateLogged || "");
11987
12017
  if (!isNaN(date.getTime())) {
11988
- formattedDate = (0, import_date_fns3.formatDistanceToNow)(date, { addSuffix: true });
12018
+ formattedDate = (0, import_date_fns2.formatDistanceToNow)(date, { addSuffix: true });
11989
12019
  }
11990
12020
  } catch (e) {
11991
12021
  }
@@ -12485,7 +12515,7 @@ function getAllCapabilities() {
12485
12515
 
12486
12516
  // src/components/Chat/Components/ChatCardArtefact.tsx
12487
12517
  var import_lucide_react29 = require("lucide-react");
12488
- var import_date_fns4 = require("date-fns");
12518
+ var import_date_fns3 = require("date-fns");
12489
12519
  var import_jsx_runtime122 = require("react/jsx-runtime");
12490
12520
  function ChatCardArtefact({
12491
12521
  artefact,
@@ -12506,7 +12536,7 @@ function ChatCardArtefact({
12506
12536
  try {
12507
12537
  const date = new Date(taskData.dateLogged);
12508
12538
  if (!isNaN(date.getTime())) {
12509
- formattedDate = (0, import_date_fns4.formatDistanceToNow)(date, { addSuffix: true });
12539
+ formattedDate = (0, import_date_fns3.formatDistanceToNow)(date, { addSuffix: true });
12510
12540
  }
12511
12541
  } catch (e) {
12512
12542
  }
@@ -20063,8 +20093,8 @@ function ToolbarPlugin() {
20063
20093
  blockNode = curr;
20064
20094
  }
20065
20095
  if (blockNode) {
20066
- const format4 = blockNode.getFormatType();
20067
- setAlignment(format4 || "left");
20096
+ const format3 = blockNode.getFormatType();
20097
+ setAlignment(format3 || "left");
20068
20098
  }
20069
20099
  const tag = anchorNode.getTopLevelElement()?.__tag;
20070
20100
  setBlockType(tag || "p");
@@ -20993,7 +21023,7 @@ var markdownToLexical = (markdown) => {
20993
21023
  var convertFileTypeToKnowledgeDocument = async (file) => {
20994
21024
  let content = "";
20995
21025
  let richTextContent = void 0;
20996
- let format4 = "text";
21026
+ let format3 = "text";
20997
21027
  if (file.url) {
20998
21028
  try {
20999
21029
  let url = file.url;
@@ -21014,18 +21044,18 @@ var convertFileTypeToKnowledgeDocument = async (file) => {
21014
21044
  console.warn("No URL provided for file:", file.name);
21015
21045
  }
21016
21046
  if (file.mimeType === "text/markdown") {
21017
- format4 = "richText";
21047
+ format3 = "richText";
21018
21048
  richTextContent = markdownToLexical(content);
21019
21049
  } else if (file.mimeType?.startsWith("text/")) {
21020
- format4 = "text";
21050
+ format3 = "text";
21021
21051
  }
21022
21052
  return {
21023
21053
  id: file.id.toString(),
21024
21054
  title: file.name,
21025
21055
  description: void 0,
21026
- content: format4 === "richText" ? void 0 : content,
21027
- richTextContent: format4 === "richText" ? richTextContent : void 0,
21028
- format: format4,
21056
+ content: format3 === "richText" ? void 0 : content,
21057
+ richTextContent: format3 === "richText" ? richTextContent : void 0,
21058
+ format: format3,
21029
21059
  metadata: {},
21030
21060
  createdAt: typeof file.createdAt === "string" ? new Date(file.createdAt) : file.createdAt,
21031
21061
  updatedAt: /* @__PURE__ */ new Date()
@@ -21075,8 +21105,8 @@ function FileEdit({ document: document2, onCancel, onSave, onFileUpdate }) {
21075
21105
  setRichTextContent(document2.richTextContent);
21076
21106
  }
21077
21107
  }, [document2]);
21078
- const formatIcon = (format4) => {
21079
- switch (format4) {
21108
+ const formatIcon = (format3) => {
21109
+ switch (format3) {
21080
21110
  case "markdown":
21081
21111
  case "mdx":
21082
21112
  return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_lucide_react68.FileText, { className: "h-6 w-6 text-primary" });
@@ -21088,8 +21118,8 @@ function FileEdit({ document: document2, onCancel, onSave, onFileUpdate }) {
21088
21118
  return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_lucide_react68.File, { className: "h-6 w-6 text-muted-foreground" });
21089
21119
  }
21090
21120
  };
21091
- const formatBadgeColor = (format4) => {
21092
- switch (format4) {
21121
+ const formatBadgeColor = (format3) => {
21122
+ switch (format3) {
21093
21123
  case "markdown":
21094
21124
  return "bg-primary/10 text-primary border-primary/20";
21095
21125
  case "mdx":
@@ -23333,8 +23363,8 @@ function DocumentEdit({
23333
23363
  (0, import_react94.useEffect)(() => {
23334
23364
  setEditedDocument(document2);
23335
23365
  }, [document2]);
23336
- const formatIcon = (format4) => {
23337
- switch (format4) {
23366
+ const formatIcon = (format3) => {
23367
+ switch (format3) {
23338
23368
  case "markdown":
23339
23369
  case "mdx":
23340
23370
  return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_lucide_react76.FileText, { className: "h-6 w-6 text-primary" });
@@ -23346,8 +23376,8 @@ function DocumentEdit({
23346
23376
  return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_lucide_react76.File, { className: "h-6 w-6 text-muted-foreground" });
23347
23377
  }
23348
23378
  };
23349
- const formatBadgeColor = (format4) => {
23350
- switch (format4) {
23379
+ const formatBadgeColor = (format3) => {
23380
+ switch (format3) {
23351
23381
  case "markdown":
23352
23382
  return "bg-primary/10 text-primary border-primary/20";
23353
23383
  case "mdx":
@@ -23671,8 +23701,8 @@ function DocumentPreview({
23671
23701
  (0, import_react96.useEffect)(() => {
23672
23702
  setDocument(initialDocument);
23673
23703
  }, [initialDocument]);
23674
- const formatIcon = (format4) => {
23675
- switch (format4) {
23704
+ const formatIcon = (format3) => {
23705
+ switch (format3) {
23676
23706
  case "markdown":
23677
23707
  case "mdx":
23678
23708
  return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_lucide_react77.FileText, { className: "h-6 w-6 text-primary" });
@@ -23684,8 +23714,8 @@ function DocumentPreview({
23684
23714
  return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_lucide_react77.File, { className: "h-6 w-6 text-muted-foreground" });
23685
23715
  }
23686
23716
  };
23687
- const formatBadgeColor = (format4) => {
23688
- switch (format4) {
23717
+ const formatBadgeColor = (format3) => {
23718
+ switch (format3) {
23689
23719
  case "markdown":
23690
23720
  return "bg-primary/10 text-primary border-primary/20";
23691
23721
  case "mdx":
@@ -23698,15 +23728,15 @@ function DocumentPreview({
23698
23728
  return "bg-muted text-muted-foreground border-border";
23699
23729
  }
23700
23730
  };
23701
- const renderContent = (content, format4) => {
23731
+ const renderContent = (content, format3) => {
23702
23732
  const defaultRenderers = {
23703
23733
  markdown: defaultMarkdownRenderer,
23704
23734
  mdx: defaultMDXRenderer,
23705
23735
  // richText: defaultRichTextRenderer,
23706
23736
  text: defaultTextRenderer
23707
23737
  };
23708
- const renderer = renderers?.[format4] || defaultRenderers[format4];
23709
- if (format4 === "richText" && typeof content === "object") {
23738
+ const renderer = renderers?.[format3] || defaultRenderers[format3];
23739
+ if (format3 === "richText" && typeof content === "object") {
23710
23740
  return defaultRichTextRenderer(content);
23711
23741
  }
23712
23742
  if (renderer) {
@@ -23873,8 +23903,8 @@ function MenuItem({
23873
23903
  const [isExpanded, setIsExpanded] = (0, import_react98.useState)(level === 0);
23874
23904
  const hasChildren = children && Object.keys(children).length > 0;
23875
23905
  const totalDocuments = documents.length + (children ? Object.values(children).reduce((acc, child) => acc + child.documents.length, 0) : 0);
23876
- const formatDocumentIcon = (format4) => {
23877
- switch (format4) {
23906
+ const formatDocumentIcon = (format3) => {
23907
+ switch (format3) {
23878
23908
  case "markdown":
23879
23909
  case "mdx":
23880
23910
  return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(import_lucide_react78.FileText, { className: "h-3.5 w-3.5 text-muted-foreground" });
@@ -27341,7 +27371,7 @@ var import_lucide_react91 = require("lucide-react");
27341
27371
  // src/components/Projects/AddSprintModal.tsx
27342
27372
  var import_react114 = require("react");
27343
27373
  var import_lucide_react90 = require("lucide-react");
27344
- var import_date_fns5 = require("date-fns");
27374
+ var import_date_fns4 = require("date-fns");
27345
27375
  var import_jsx_runtime212 = require("react/jsx-runtime");
27346
27376
  var AddSprintModal = ({ isOpen, onClose, onAddSprint }) => {
27347
27377
  const [formData, setFormData] = (0, import_react114.useState)({
@@ -27428,7 +27458,7 @@ var AddSprintModal = ({ isOpen, onClose, onAddSprint }) => {
27428
27458
  ),
27429
27459
  children: [
27430
27460
  /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_lucide_react90.CalendarIcon, { className: "mr-2 h-4 w-4" }),
27431
- formData.startDate ? (0, import_date_fns5.format)(formData.startDate, "PPP") : "Pick a date"
27461
+ formData.startDate ? (0, import_date_fns4.format)(formData.startDate, "PPP") : "Pick a date"
27432
27462
  ]
27433
27463
  }
27434
27464
  ) }),
@@ -27456,7 +27486,7 @@ var AddSprintModal = ({ isOpen, onClose, onAddSprint }) => {
27456
27486
  ),
27457
27487
  children: [
27458
27488
  /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_lucide_react90.CalendarIcon, { className: "mr-2 h-4 w-4" }),
27459
- formData.endDate ? (0, import_date_fns5.format)(formData.endDate, "PPP") : "Pick a date"
27489
+ formData.endDate ? (0, import_date_fns4.format)(formData.endDate, "PPP") : "Pick a date"
27460
27490
  ]
27461
27491
  }
27462
27492
  ) }),