cortex-react-components 3.0.8 → 3.0.10

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 (208) hide show
  1. package/dist/{chunk-USE5WY4U.mjs → chunk-3DWDGYDG.mjs} +1 -1
  2. package/dist/{chunk-354MPNDV.mjs → chunk-3K6EVFOW.mjs} +1 -1
  3. package/dist/{chunk-X6PPZZ2E.mjs → chunk-3OZCVWWA.mjs} +8 -8
  4. package/dist/{chunk-SNNQIUJH.mjs → chunk-3QU5RMTJ.mjs} +3 -3
  5. package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
  6. package/dist/{chunk-YI6FLZOK.mjs → chunk-3RYHYKVQ.mjs} +1 -1
  7. package/dist/{chunk-5Q43DAAS.mjs → chunk-3XPREIPP.mjs} +9 -9
  8. package/dist/{chunk-HABWABS7.mjs → chunk-4O6ESJYG.mjs} +32 -11
  9. package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
  10. package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
  11. package/dist/{chunk-IXQESSPI.mjs → chunk-6S7EQDLL.mjs} +1 -1
  12. package/dist/{chunk-GXTF5CHJ.mjs → chunk-7D3SYOXW.mjs} +7 -4
  13. package/dist/{chunk-YJIB2FYD.mjs → chunk-7HHLKQE4.mjs} +2 -2
  14. package/dist/{chunk-4HFMA57F.mjs → chunk-7LM2P6N3.mjs} +5 -5
  15. package/dist/{chunk-HXPXJ26M.mjs → chunk-AQMIW7RS.mjs} +1 -1
  16. package/dist/{chunk-F563CDDJ.mjs → chunk-D3AHBPI5.mjs} +2 -2
  17. package/dist/{chunk-SHHLY2QV.mjs → chunk-DRLNETNN.mjs} +1 -1
  18. package/dist/{chunk-2S3O5TYH.mjs → chunk-EEVXIKNB.mjs} +1 -1
  19. package/dist/{chunk-B3UYSM32.mjs → chunk-F6SQTC6R.mjs} +4 -4
  20. package/dist/{chunk-GV3CMMKT.mjs → chunk-FECAR2TE.mjs} +1 -1
  21. package/dist/{chunk-COHYOWMB.mjs → chunk-HNVHGBNE.mjs} +1 -1
  22. package/dist/{chunk-QRC3VJEY.mjs → chunk-IQ67MHAY.mjs} +1 -1
  23. package/dist/{chunk-HJLIEMLX.mjs → chunk-IWQEM5KO.mjs} +2 -2
  24. package/dist/{chunk-44F47U5Y.mjs → chunk-KMGTUNRZ.mjs} +1 -1
  25. package/dist/{chunk-L34WYFSB.mjs → chunk-KYY7BMXI.mjs} +1 -1
  26. package/dist/{chunk-LCRSPNPB.mjs → chunk-LELKTN52.mjs} +18 -14
  27. package/dist/{chunk-VEIZROGM.mjs → chunk-M6ELOAGS.mjs} +1 -1
  28. package/dist/{chunk-TMVCGF2B.mjs → chunk-N5HTSJLI.mjs} +1 -1
  29. package/dist/{chunk-EUAQNPRU.mjs → chunk-NHDPHK6D.mjs} +2 -2
  30. package/dist/{chunk-5KOAYGTO.mjs → chunk-NP4IVF6K.mjs} +5 -5
  31. package/dist/{chunk-TZDVVQBQ.mjs → chunk-NSYYRG6A.mjs} +1 -1
  32. package/dist/{chunk-7ZMZT7I6.mjs → chunk-P7BPG7W7.mjs} +1 -1
  33. package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
  34. package/dist/chunk-PIQUYPOZ.mjs +41 -0
  35. package/dist/{chunk-F4LCVFZK.mjs → chunk-PM5CC4EZ.mjs} +3 -0
  36. package/dist/{chunk-HGDLIXPQ.mjs → chunk-QJQ66DYZ.mjs} +1 -1
  37. package/dist/{chunk-PE7KJR4A.mjs → chunk-RC6YHGVV.mjs} +1 -1
  38. package/dist/{chunk-2ZSH4X75.mjs → chunk-RNHGLZYP.mjs} +1 -1
  39. package/dist/{chunk-4BRK5CBG.mjs → chunk-SJI6X5DK.mjs} +2 -2
  40. package/dist/{chunk-X2KTMYOD.mjs → chunk-UJI3Y73K.mjs} +2 -2
  41. package/dist/{chunk-4YRR74Y4.mjs → chunk-VMYEV3FG.mjs} +1 -1
  42. package/dist/{chunk-QPPQNK6O.mjs → chunk-XCZCWSOY.mjs} +2 -2
  43. package/dist/{chunk-Z6MYLHDW.mjs → chunk-YFOEG4PP.mjs} +1 -1
  44. package/dist/components/Blocks/Banner.js +3 -0
  45. package/dist/components/Blocks/Banner.mjs +6 -6
  46. package/dist/components/Blocks/CallToAction.js +3 -0
  47. package/dist/components/Blocks/CallToAction.mjs +6 -6
  48. package/dist/components/Blocks/CollapsibleArea.js +3 -0
  49. package/dist/components/Blocks/CollapsibleArea.mjs +7 -7
  50. package/dist/components/Blocks/Content.js +3 -0
  51. package/dist/components/Blocks/Content.mjs +7 -7
  52. package/dist/components/Blocks/FeaturesBlock.js +3 -0
  53. package/dist/components/Blocks/FeaturesBlock.mjs +6 -6
  54. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  55. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  56. package/dist/components/Blocks/RelatedPosts.js +3 -0
  57. package/dist/components/Blocks/RelatedPosts.mjs +8 -8
  58. package/dist/components/Blocks/RenderBlocks.js +3 -0
  59. package/dist/components/Blocks/RenderBlocks.mjs +9 -9
  60. package/dist/components/Blocks/ReusableContentBlock.js +3 -0
  61. package/dist/components/Blocks/ReusableContentBlock.mjs +9 -9
  62. package/dist/components/Blocks/index.js +3 -0
  63. package/dist/components/Blocks/index.mjs +16 -16
  64. package/dist/components/CRM/index.mjs +3 -3
  65. package/dist/components/Cards/ContentCard.js +3 -0
  66. package/dist/components/Cards/ContentCard.mjs +6 -6
  67. package/dist/components/Cards/FeatureCard.js +3 -0
  68. package/dist/components/Cards/FeatureCard.mjs +6 -6
  69. package/dist/components/Cards/index.js +3 -0
  70. package/dist/components/Cards/index.mjs +6 -6
  71. package/dist/components/Chat/ChatInterface.mjs +11 -11
  72. package/dist/components/Chat/CopilotInterface.mjs +12 -12
  73. package/dist/components/Chat/PartTypes/MessageHandler.mjs +9 -9
  74. package/dist/components/Chat/PartTypes/index.mjs +17 -17
  75. package/dist/components/Chat/demo-long-messages.mjs +12 -12
  76. package/dist/components/Chat/demo-tests.mjs +12 -12
  77. package/dist/components/Chat/demo.mjs +12 -12
  78. package/dist/components/Chat/example-usage.mjs +12 -12
  79. package/dist/components/Chat/example-with-vercel-ai.mjs +12 -12
  80. package/dist/components/Chat/index.mjs +15 -15
  81. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +3 -3
  82. package/dist/components/DigitalColleagues/MainPage.mjs +4 -4
  83. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +5 -5
  84. package/dist/components/DigitalColleagues/Views/index.mjs +19 -19
  85. package/dist/components/DigitalColleagues/index.mjs +23 -23
  86. package/dist/components/Foundary/AppSidebarLeft.mjs +3 -3
  87. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +2 -2
  88. package/dist/components/Foundary/Knowledge/add-team-context.mjs +2 -2
  89. package/dist/components/Foundary/MainPage.mjs +4 -4
  90. package/dist/components/Foundary/Pages/dashboardpage.mjs +5 -5
  91. package/dist/components/Foundary/Views/KnowledgeView.mjs +2 -2
  92. package/dist/components/Foundary/Views/index.mjs +19 -19
  93. package/dist/components/Foundary/file-edit.mjs +2 -2
  94. package/dist/components/Foundary/index.mjs +23 -23
  95. package/dist/components/HeaderFooter/SectionHeading.js +3 -0
  96. package/dist/components/HeaderFooter/SectionHeading.mjs +7 -7
  97. package/dist/components/Heros/HighImpact/index.js +3 -0
  98. package/dist/components/Heros/HighImpact/index.mjs +7 -7
  99. package/dist/components/Heros/LowImpact/index.js +3 -0
  100. package/dist/components/Heros/LowImpact/index.mjs +7 -7
  101. package/dist/components/Heros/MediumImpact/index.js +3 -0
  102. package/dist/components/Heros/MediumImpact/index.mjs +7 -7
  103. package/dist/components/Heros/PostHero/index.mjs +2 -2
  104. package/dist/components/Heros/RenderHero.js +3 -0
  105. package/dist/components/Heros/RenderHero.mjs +10 -10
  106. package/dist/components/Heros/index.js +3 -0
  107. package/dist/components/Heros/index.mjs +12 -12
  108. package/dist/components/Holidays/CalendarView.d.ts +2 -1
  109. package/dist/components/Holidays/CalendarView.js +18 -14
  110. package/dist/components/Holidays/CalendarView.mjs +1 -1
  111. package/dist/components/Holidays/HolidayGrid.js +5 -3
  112. package/dist/components/Holidays/HolidayGrid.mjs +2 -2
  113. package/dist/components/Holidays/HolidayTracker.d.ts +2 -1
  114. package/dist/components/Holidays/HolidayTracker.js +65 -35
  115. package/dist/components/Holidays/HolidayTracker.mjs +5 -5
  116. package/dist/components/Holidays/RequestLeave.js +40 -17
  117. package/dist/components/Holidays/RequestLeave.mjs +2 -2
  118. package/dist/components/Holidays/index.js +65 -35
  119. package/dist/components/Holidays/index.mjs +5 -5
  120. package/dist/components/Layouts/OutputHeaderFooter.js +3 -0
  121. package/dist/components/Layouts/OutputHeaderFooter.mjs +9 -9
  122. package/dist/components/Layouts/Print.js +3 -0
  123. package/dist/components/Layouts/Print.mjs +13 -13
  124. package/dist/components/Layouts/SlideShow.js +3 -0
  125. package/dist/components/Layouts/SlideShow.mjs +15 -15
  126. package/dist/components/Layouts/index.js +3 -0
  127. package/dist/components/Layouts/index.mjs +16 -16
  128. package/dist/components/Menus/SidebarLeft.mjs +3 -3
  129. package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
  130. package/dist/components/Menus/SidebarRight.mjs +3 -3
  131. package/dist/components/Menus/index.mjs +8 -8
  132. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  133. package/dist/components/Payload/Media/index.mjs +2 -2
  134. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  135. package/dist/components/Payload/RichText/index.js +3 -0
  136. package/dist/components/Payload/RichText/index.mjs +6 -6
  137. package/dist/components/Payload/RichText/serialize.js +3 -0
  138. package/dist/components/Payload/RichText/serialize.mjs +6 -6
  139. package/dist/components/Payload/index.js +3 -0
  140. package/dist/components/Payload/index.mjs +8 -8
  141. package/dist/components/Projects/EpicsView.mjs +2 -2
  142. package/dist/components/Projects/FileView.mjs +2 -2
  143. package/dist/components/Projects/KanbanBoardView.mjs +5 -5
  144. package/dist/components/Projects/ProjectPage.mjs +10 -10
  145. package/dist/components/Projects/ProjectView.mjs +10 -10
  146. package/dist/components/Projects/ProjectsIndexView.mjs +2 -2
  147. package/dist/components/Projects/TaskDetailsModal.mjs +2 -2
  148. package/dist/components/Projects/file-list.mjs +2 -2
  149. package/dist/components/Projects/index.mjs +15 -15
  150. package/dist/components/dc-temp/index.mjs +5 -5
  151. package/dist/components/index.js +100 -67
  152. package/dist/components/index.mjs +84 -84
  153. package/dist/components/ui/index.mjs +4 -4
  154. package/dist/components/ui/sidebar.mjs +2 -2
  155. package/dist/decorators/Intranet.mjs +63 -63
  156. package/dist/index.js +100 -67
  157. package/dist/index.mjs +98 -98
  158. package/dist/metafile-cjs.json +1 -1
  159. package/dist/metafile-esm.json +1 -1
  160. package/dist/pages/Blog.js +3 -0
  161. package/dist/pages/Blog.mjs +10 -10
  162. package/dist/pages/Documentation.mjs +4 -4
  163. package/dist/pages/IndexPage.mjs +15 -15
  164. package/dist/pages/Intranet.mjs +4 -4
  165. package/dist/pages/LandingPage.js +3 -0
  166. package/dist/pages/LandingPage.mjs +74 -74
  167. package/dist/pages/Page.js +3 -0
  168. package/dist/pages/Page.mjs +11 -11
  169. package/dist/pages/Publish.js +3 -0
  170. package/dist/pages/Publish.mjs +64 -64
  171. package/dist/pages/Website.js +3 -0
  172. package/dist/pages/Website.mjs +13 -13
  173. package/dist/sections/AboutSection.js +3 -0
  174. package/dist/sections/AboutSection.mjs +8 -8
  175. package/dist/sections/BlogDetail.js +3 -0
  176. package/dist/sections/BlogDetail.mjs +7 -7
  177. package/dist/sections/BlogList.js +3 -0
  178. package/dist/sections/BlogList.mjs +8 -8
  179. package/dist/sections/BlogListSection.mjs +8 -8
  180. package/dist/sections/ContactSection.js +3 -0
  181. package/dist/sections/ContactSection.mjs +8 -8
  182. package/dist/sections/PageSections.js +3 -0
  183. package/dist/sections/PageSections.mjs +74 -74
  184. package/dist/sections/PricingSection.js +3 -0
  185. package/dist/sections/PricingSection.mjs +8 -8
  186. package/dist/sections/ServiceDetail.js +3 -0
  187. package/dist/sections/ServiceDetail.mjs +7 -7
  188. package/dist/sections/ServiceDetailSection.js +3 -0
  189. package/dist/sections/ServiceDetailSection.mjs +7 -7
  190. package/dist/sections/ServiceSection.js +3 -0
  191. package/dist/sections/ServiceSection.mjs +64 -64
  192. package/dist/sections/index.js +3 -0
  193. package/dist/sections/index.mjs +76 -76
  194. package/dist/utils/DaysUtil.js +9 -7
  195. package/dist/utils/DaysUtil.mjs +1 -1
  196. package/dist/utils/getLinkHref.js +3 -0
  197. package/dist/utils/getLinkHref.mjs +1 -1
  198. package/package.json +1 -1
  199. package/dist/chunk-I4UOIVSC.mjs +0 -39
  200. package/dist/{chunk-4IMURNBM.mjs → chunk-2TIM3NGN.mjs} +3 -3
  201. package/dist/{chunk-OFES4YYV.mjs → chunk-4VVJJ57D.mjs} +5 -5
  202. package/dist/{chunk-25OSLP2V.mjs → chunk-6TVRFATY.mjs} +3 -3
  203. package/dist/{chunk-D5KV6INF.mjs → chunk-AEFGMCK3.mjs} +3 -3
  204. package/dist/{chunk-CKBIYWPM.mjs → chunk-BVNPAX43.mjs} +5 -5
  205. package/dist/{chunk-MFXCOX3L.mjs → chunk-CT6KAYGR.mjs} +3 -3
  206. package/dist/{chunk-M5XPU4JK.mjs → chunk-EZU3JAV5.mjs} +14 -14
  207. package/dist/{chunk-DWGG6JKH.mjs → chunk-K2SE2T3Q.mjs} +6 -6
  208. package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
 
5
5
  // src/components/Heros/LowImpact/index.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-KZPGX6CG.mjs";
@@ -3,33 +3,33 @@
3
3
 
4
4
  import {
5
5
  ServiceSection
6
- } from "./chunk-2S3O5TYH.mjs";
6
+ } from "./chunk-EEVXIKNB.mjs";
7
7
  import {
8
8
  BlogList
9
- } from "./chunk-SHHLY2QV.mjs";
9
+ } from "./chunk-DRLNETNN.mjs";
10
10
  import {
11
11
  ContactSection,
12
12
  LocationsSection
13
- } from "./chunk-QRC3VJEY.mjs";
13
+ } from "./chunk-IQ67MHAY.mjs";
14
14
  import {
15
15
  SectionHero
16
16
  } from "./chunk-N77BYZ6A.mjs";
17
17
  import {
18
18
  MediumImpactHero
19
- } from "./chunk-TZDVVQBQ.mjs";
19
+ } from "./chunk-NSYYRG6A.mjs";
20
20
  import {
21
21
  HighImpactHero
22
- } from "./chunk-F563CDDJ.mjs";
22
+ } from "./chunk-D3AHBPI5.mjs";
23
23
  import {
24
24
  LowImpactHero
25
- } from "./chunk-USE5WY4U.mjs";
25
+ } from "./chunk-3DWDGYDG.mjs";
26
26
  import {
27
27
  CallToActionBlock,
28
28
  RichText
29
- } from "./chunk-4HFMA57F.mjs";
29
+ } from "./chunk-7LM2P6N3.mjs";
30
30
  import {
31
31
  Media
32
- } from "./chunk-2YHN7ZCJ.mjs";
32
+ } from "./chunk-NKRBXAPF.mjs";
33
33
  import {
34
34
  PageShape
35
35
  } from "./chunk-QX5S5NN2.mjs";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-N77BYZ6A.mjs";
4
4
  import {
5
5
  MediumImpactHero
6
- } from "./chunk-TZDVVQBQ.mjs";
6
+ } from "./chunk-NSYYRG6A.mjs";
7
7
  import {
8
8
  HighImpactHero
9
- } from "./chunk-F563CDDJ.mjs";
9
+ } from "./chunk-D3AHBPI5.mjs";
10
10
  import {
11
11
  LowImpactHero
12
- } from "./chunk-USE5WY4U.mjs";
12
+ } from "./chunk-3DWDGYDG.mjs";
13
13
 
14
14
  // src/components/Heros/RenderHero.tsx
15
15
  import { ChevronRightIcon, HomeIcon } from "@heroicons/react/20/solid";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Media
3
- } from "./chunk-2YHN7ZCJ.mjs";
3
+ } from "./chunk-NKRBXAPF.mjs";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-KZPGX6CG.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-X373UDXT.mjs";
4
4
  import {
5
5
  RichText
6
- } from "./chunk-4HFMA57F.mjs";
6
+ } from "./chunk-7LM2P6N3.mjs";
7
7
  import {
8
8
  Card,
9
9
  CardContent,
@@ -4,24 +4,24 @@
4
4
  import {
5
5
  TasksView
6
6
  } from "./chunk-OIXHYJGP.mjs";
7
- import {
8
- EpicsView
9
- } from "./chunk-25OSLP2V.mjs";
10
- import {
11
- KanbanBoardView
12
- } from "./chunk-DWGG6JKH.mjs";
13
- import {
14
- AddTaskModal
15
- } from "./chunk-3FBWSJJD.mjs";
16
7
  import {
17
8
  PlanningView
18
9
  } from "./chunk-YNWNEY2R.mjs";
10
+ import {
11
+ EpicsView
12
+ } from "./chunk-6TVRFATY.mjs";
19
13
  import {
20
14
  FileView
21
15
  } from "./chunk-MSAH6P5O.mjs";
16
+ import {
17
+ KanbanBoardView
18
+ } from "./chunk-K2SE2T3Q.mjs";
22
19
  import {
23
20
  AddEpicModal
24
21
  } from "./chunk-UDCOG2XL.mjs";
22
+ import {
23
+ AddTaskModal
24
+ } from "./chunk-3FBWSJJD.mjs";
25
25
  import {
26
26
  ManagementSidebar
27
27
  } from "./chunk-IWG2URAU.mjs";
@@ -4,7 +4,7 @@
4
4
  import {
5
5
  getIsMultipleDays,
6
6
  getTotalDaysBetween
7
- } from "./chunk-I4UOIVSC.mjs";
7
+ } from "./chunk-PIQUYPOZ.mjs";
8
8
  import {
9
9
  Popover,
10
10
  PopoverContent,
@@ -25,7 +25,6 @@ import {
25
25
 
26
26
  // src/components/Holidays/RequestLeave.tsx
27
27
  import { useState, useEffect } from "react";
28
- import { format } from "date-fns";
29
28
  import { CalendarIcon } from "lucide-react";
30
29
  import { useRouter } from "next/navigation";
31
30
  import { Toaster, toast } from "sonner";
@@ -45,11 +44,26 @@ var ButtonGroup = ({ options, value, onChange, disabled = [] }) => {
45
44
  )) });
46
45
  };
47
46
  function RequestLeave({ remainingDays, submitLeaveRequest }) {
48
- const [startDate, setStartDate] = useState(/* @__PURE__ */ new Date());
49
- const [endDate, setEndDate] = useState(/* @__PURE__ */ new Date());
47
+ const setToMidnightUTC = (date) => {
48
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0));
49
+ };
50
+ const formatDateUTC = (date) => {
51
+ const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
52
+ const day = date.getUTCDate();
53
+ const month = months[date.getUTCMonth()];
54
+ const year = date.getUTCFullYear();
55
+ const suffix = day === 1 || day === 21 || day === 31 ? "st" : day === 2 || day === 22 ? "nd" : day === 3 || day === 23 ? "rd" : "th";
56
+ return `${month} ${day}${suffix}, ${year}`;
57
+ };
58
+ const [startDate, setStartDate] = useState(void 0);
59
+ const [endDate, setEndDate] = useState(void 0);
60
+ useEffect(() => {
61
+ if (startDate === void 0) setStartDate(setToMidnightUTC(/* @__PURE__ */ new Date()));
62
+ if (endDate === void 0) setEndDate(setToMidnightUTC(/* @__PURE__ */ new Date()));
63
+ }, []);
50
64
  const [leaveType, setLeaveType] = useState("Full Day");
51
65
  const [isMultipleDays, setIsMultipleDays] = useState(false);
52
- const [totalDays, setTotalDays] = useState(1);
66
+ const [totalDays, setTotalDays] = useState(0);
53
67
  const router = useRouter();
54
68
  useEffect(() => {
55
69
  const isMultipleDays2 = getIsMultipleDays(startDate, endDate);
@@ -118,7 +132,7 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
118
132
  ),
119
133
  children: [
120
134
  /* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }),
121
- startDate ? format(startDate, "PPP") : /* @__PURE__ */ jsx("span", { children: "Pick a date" })
135
+ startDate ? formatDateUTC(startDate) : /* @__PURE__ */ jsx("span", { children: "Pick a date" })
122
136
  ]
123
137
  }
124
138
  ) }),
@@ -128,9 +142,12 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
128
142
  mode: "single",
129
143
  selected: startDate,
130
144
  onSelect: (date) => {
131
- setStartDate(date);
132
- if (date && (!endDate || date > endDate)) {
133
- setEndDate(date);
145
+ if (date) {
146
+ const dateMidnight = setToMidnightUTC(date);
147
+ setStartDate(dateMidnight);
148
+ if (!endDate || date > endDate) {
149
+ setEndDate(dateMidnight);
150
+ }
134
151
  }
135
152
  },
136
153
  initialFocus: true
@@ -151,7 +168,7 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
151
168
  ),
152
169
  children: [
153
170
  /* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }),
154
- endDate ? format(endDate, "PPP") : /* @__PURE__ */ jsx("span", { children: "Pick a date" })
171
+ endDate ? formatDateUTC(endDate) : /* @__PURE__ */ jsx("span", { children: "Pick a date" })
155
172
  ]
156
173
  }
157
174
  ) }),
@@ -160,7 +177,11 @@ function RequestLeave({ remainingDays, submitLeaveRequest }) {
160
177
  {
161
178
  mode: "single",
162
179
  selected: endDate,
163
- onSelect: setEndDate,
180
+ onSelect: (date) => {
181
+ if (date) {
182
+ setEndDate(setToMidnightUTC(date));
183
+ }
184
+ },
164
185
  disabled: (date) => startDate ? date < startDate : false,
165
186
  initialFocus: true
166
187
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PayloadCard
3
- } from "./chunk-EGZL4DVZ.mjs";
3
+ } from "./chunk-PAXCURFR.mjs";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-KZPGX6CG.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Media
3
- } from "./chunk-2YHN7ZCJ.mjs";
3
+ } from "./chunk-NKRBXAPF.mjs";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-KZPGX6CG.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
  import {
5
5
  CMSLink
6
6
  } from "./chunk-2NXKZY7U.mjs";
@@ -3,16 +3,16 @@
3
3
 
4
4
  import {
5
5
  RequestLeave
6
- } from "./chunk-HABWABS7.mjs";
6
+ } from "./chunk-4O6ESJYG.mjs";
7
7
  import {
8
8
  ApproveLeave
9
9
  } from "./chunk-7UVCCDPI.mjs";
10
10
  import {
11
11
  CalendarView
12
- } from "./chunk-LCRSPNPB.mjs";
12
+ } from "./chunk-LELKTN52.mjs";
13
13
  import {
14
14
  HolidayGrid
15
- } from "./chunk-7ZMZT7I6.mjs";
15
+ } from "./chunk-P7BPG7W7.mjs";
16
16
  import {
17
17
  TimeUtil
18
18
  } from "./chunk-ZSBTDL4H.mjs";
@@ -31,6 +31,7 @@ function HolidayTracker({
31
31
  holidays,
32
32
  currentUser,
33
33
  currentDate,
34
+ today,
34
35
  leaveApprovals,
35
36
  employees,
36
37
  submitLeaveRequest,
@@ -41,6 +42,7 @@ function HolidayTracker({
41
42
  const router = useRouter();
42
43
  const isLoading = false;
43
44
  const parsedCurrentDate = TimeUtil.toUtcMidnight(parseISO(currentDate));
45
+ const parsedToday = TimeUtil.toUtcMidnight(parseISO(today));
44
46
  const setCurrentDate = async (date) => {
45
47
  const formattedDate = format(date, "dd-MM-yyyy");
46
48
  const url = new URL(window.location.href);
@@ -122,7 +124,8 @@ function HolidayTracker({
122
124
  {
123
125
  currentDate: parsedCurrentDate,
124
126
  setCurrentDate,
125
- holidays
127
+ holidays,
128
+ today: parsedToday
126
129
  }
127
130
  ),
128
131
  currentTab === "Request Leave" && /* @__PURE__ */ jsx(
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PayloadCard
3
- } from "./chunk-EGZL4DVZ.mjs";
3
+ } from "./chunk-PAXCURFR.mjs";
4
4
  import {
5
5
  RichText
6
- } from "./chunk-4HFMA57F.mjs";
6
+ } from "./chunk-7LM2P6N3.mjs";
7
7
 
8
8
  // src/components/Blocks/RelatedPosts.tsx
9
9
  import clsx from "clsx";
@@ -16,18 +16,18 @@ import {
16
16
  import {
17
17
  Form
18
18
  } from "./chunk-GSG52WU5.mjs";
19
- import {
20
- ImageBlock
21
- } from "./chunk-HLEMFDTD.mjs";
22
19
  import {
23
20
  MediaBlock
24
- } from "./chunk-KIZUBPPQ.mjs";
21
+ } from "./chunk-6GO5N6ZP.mjs";
22
+ import {
23
+ ImageBlock
24
+ } from "./chunk-3R2LCGLI.mjs";
25
25
  import {
26
26
  CodeBlock
27
27
  } from "./chunk-WPX6MOFB.mjs";
28
28
  import {
29
29
  getLinkHref
30
- } from "./chunk-F4LCVFZK.mjs";
30
+ } from "./chunk-PM5CC4EZ.mjs";
31
31
  import {
32
32
  DynamicIcon
33
33
  } from "./chunk-75ALYLZU.mjs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3SFZTG3H.mjs";
10
10
  import {
11
11
  ChatInterface
12
- } from "./chunk-5KOAYGTO.mjs";
12
+ } from "./chunk-NP4IVF6K.mjs";
13
13
 
14
14
  // src/components/Chat/CopilotInterface.tsx
15
15
  import { useChat } from "@ai-sdk/react";
@@ -3,13 +3,13 @@
3
3
 
4
4
  import {
5
5
  RichText
6
- } from "./chunk-4HFMA57F.mjs";
6
+ } from "./chunk-7LM2P6N3.mjs";
7
7
  import {
8
8
  CMSLink
9
9
  } from "./chunk-2NXKZY7U.mjs";
10
10
  import {
11
11
  Media
12
- } from "./chunk-2YHN7ZCJ.mjs";
12
+ } from "./chunk-NKRBXAPF.mjs";
13
13
 
14
14
  // src/components/Heros/HighImpact/index.tsx
15
15
  import Image from "next/image";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-A4SKUZ2E.mjs";
4
4
  import {
5
5
  SectionHeading
6
- } from "./chunk-354MPNDV.mjs";
6
+ } from "./chunk-3K6EVFOW.mjs";
7
7
  import {
8
8
  formatDateTimeStringShort
9
9
  } from "./chunk-RFP2KGUZ.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  FeatureCard,
6
6
  RichText
7
- } from "./chunk-4HFMA57F.mjs";
7
+ } from "./chunk-7LM2P6N3.mjs";
8
8
  import {
9
9
  cn
10
10
  } from "./chunk-KZPGX6CG.mjs";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  CollapsibleBlock
3
- } from "./chunk-HGDLIXPQ.mjs";
3
+ } from "./chunk-QJQ66DYZ.mjs";
4
4
  import {
5
5
  ContentBlock
6
- } from "./chunk-IXQESSPI.mjs";
6
+ } from "./chunk-6S7EQDLL.mjs";
7
7
  import {
8
8
  CallToActionBlock,
9
9
  FeaturesBlock
10
- } from "./chunk-4HFMA57F.mjs";
10
+ } from "./chunk-7LM2P6N3.mjs";
11
11
  import {
12
12
  MediaBlock
13
- } from "./chunk-KIZUBPPQ.mjs";
13
+ } from "./chunk-6GO5N6ZP.mjs";
14
14
  import {
15
15
  cn
16
16
  } from "./chunk-KZPGX6CG.mjs";
@@ -15,7 +15,7 @@ import {
15
15
  SidebarMenuSub,
16
16
  SidebarMenuSubButton,
17
17
  SidebarMenuSubItem
18
- } from "./chunk-D5KV6INF.mjs";
18
+ } from "./chunk-AEFGMCK3.mjs";
19
19
  import {
20
20
  Skeleton
21
21
  } from "./chunk-EPR27OQG.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
 
5
5
  // src/components/Layouts/OutputHeaderFooter.tsx
6
6
  import Image from "next/image";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SectionHeading
3
- } from "./chunk-354MPNDV.mjs";
3
+ } from "./chunk-3K6EVFOW.mjs";
4
4
  import {
5
5
  Form
6
6
  } from "./chunk-GSG52WU5.mjs";
@@ -5,10 +5,10 @@ import {
5
5
  Footer,
6
6
  HeaderTop,
7
7
  TitleSlide
8
- } from "./chunk-COHYOWMB.mjs";
8
+ } from "./chunk-HNVHGBNE.mjs";
9
9
  import {
10
10
  RenderBlocks
11
- } from "./chunk-B3UYSM32.mjs";
11
+ } from "./chunk-F6SQTC6R.mjs";
12
12
  import {
13
13
  cn
14
14
  } from "./chunk-KZPGX6CG.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-KZPGX6CG.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-A4SKUZ2E.mjs";
4
4
  import {
5
5
  SectionHeading
6
- } from "./chunk-354MPNDV.mjs";
6
+ } from "./chunk-3K6EVFOW.mjs";
7
7
  import {
8
8
  PricingCard
9
9
  } from "./chunk-4GLXI5J3.mjs";
@@ -15,38 +15,42 @@ import {
15
15
  import { useState } from "react";
16
16
  import { ChevronLeft, ChevronRight } from "lucide-react";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
- function CalendarView({ currentDate, setCurrentDate, holidays }) {
18
+ function CalendarView({ currentDate, setCurrentDate, holidays, today }) {
19
19
  const [selectedDay, setSelectedDay] = useState(null);
20
- const firstDayOfMonth = (new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).getDay() + 6) % 7;
20
+ const isSameUtcDay = (a, b) => a.getUTCFullYear() === b.getUTCFullYear() && a.getUTCMonth() === b.getUTCMonth() && a.getUTCDate() === b.getUTCDate();
21
+ const firstDayOfMonth = (new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), 1)).getUTCDay() + 6) % 7;
21
22
  const days = Array.from({ length: 42 }, (_, i) => {
22
23
  const day = new Date(
23
- currentDate.getFullYear(),
24
- currentDate.getMonth(),
25
- i - firstDayOfMonth + 1,
26
- currentDate.getHours()
24
+ Date.UTC(
25
+ currentDate.getUTCFullYear(),
26
+ currentDate.getUTCMonth(),
27
+ i - firstDayOfMonth + 1
28
+ )
27
29
  );
28
30
  const filteredHolidays = holidays.filter(
29
31
  (h) => TimeUtil.toUtcMidnight(new Date(h.startDate)) <= day && TimeUtil.toUtcEndOfDay(new Date(h.endDate)) >= day
30
32
  );
31
33
  return {
32
34
  date: day,
33
- isCurrentMonth: day.getMonth() === currentDate.getMonth(),
34
- isToday: day.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
35
+ isCurrentMonth: day.getUTCMonth() === currentDate.getUTCMonth(),
36
+ isToday: isSameUtcDay(day, today),
35
37
  holidays: filteredHolidays
36
38
  };
37
39
  });
38
40
  const prevMonth = () => {
39
- setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1));
41
+ setCurrentDate(new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth() - 1, 1)));
40
42
  };
41
43
  const nextMonth = () => {
42
- setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 1));
44
+ setCurrentDate(new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth() + 1, 1)));
43
45
  };
44
46
  const setToday = () => {
45
- setCurrentDate(/* @__PURE__ */ new Date());
47
+ setCurrentDate(TimeUtil.toUtcMidnight(/* @__PURE__ */ new Date()));
46
48
  };
49
+ const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
50
+ const monthYearDisplay = `${months[currentDate.getUTCMonth()]} ${currentDate.getUTCFullYear()}`;
47
51
  return /* @__PURE__ */ jsxs("div", { className: "lg:flex lg:h-full lg:flex-col", children: [
48
52
  /* @__PURE__ */ jsxs("header", { className: "flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none", children: [
49
- /* @__PURE__ */ jsx("h1", { className: "text-base font-semibold text-foreground", children: /* @__PURE__ */ jsx("time", { dateTime: currentDate.toISOString(), children: currentDate.toLocaleString("default", { month: "long", year: "numeric" }) }) }),
53
+ /* @__PURE__ */ jsx("h1", { className: "text-base font-semibold text-foreground", children: /* @__PURE__ */ jsx("time", { dateTime: currentDate.toISOString(), children: monthYearDisplay }) }),
50
54
  /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "relative flex items-center rounded-md gap-1 md:items-stretch", children: [
51
55
  /* @__PURE__ */ jsxs(
52
56
  Button,
@@ -133,7 +137,7 @@ function CalendarView({ currentDate, setCurrentDate, holidays }) {
133
137
  "flex h-6 w-6 items-center justify-center rounded-full",
134
138
  day.isToday && "bg-indigo-600 font-semibold text-white"
135
139
  ),
136
- children: day.date.getDate()
140
+ children: day.date.getUTCDate()
137
141
  }
138
142
  ),
139
143
  day.holidays.length > 0 && /* @__PURE__ */ jsx("ol", { className: "mt-2 space-y-1 overflow-visible", children: day.holidays.map((holiday) => /* @__PURE__ */ jsx("li", { className: "overflow-visible", children: /* @__PURE__ */ jsx(
@@ -170,7 +174,7 @@ function CalendarView({ currentDate, setCurrentDate, holidays }) {
170
174
  day.date === selectedDay && day.isToday && "flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",
171
175
  day.date === selectedDay && !day.isToday && "flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"
172
176
  ),
173
- children: day.date.getDate()
177
+ children: day.date.getUTCDate()
174
178
  }
175
179
  ),
176
180
  /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
@@ -15,7 +15,7 @@ import {
15
15
  SidebarMenuSub,
16
16
  SidebarMenuSubButton,
17
17
  SidebarMenuSubItem
18
- } from "./chunk-D5KV6INF.mjs";
18
+ } from "./chunk-AEFGMCK3.mjs";
19
19
  import {
20
20
  Skeleton
21
21
  } from "./chunk-EPR27OQG.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SectionHeading
3
- } from "./chunk-354MPNDV.mjs";
3
+ } from "./chunk-3K6EVFOW.mjs";
4
4
  import {
5
5
  Container
6
6
  } from "./chunk-KL3DQ7AU.mjs";
@@ -3,7 +3,7 @@
3
3
 
4
4
  import {
5
5
  AppSidebarLeft
6
- } from "./chunk-VEIZROGM.mjs";
6
+ } from "./chunk-M6ELOAGS.mjs";
7
7
  import {
8
8
  Breadcrumb,
9
9
  BreadcrumbItem,
@@ -19,7 +19,7 @@ import {
19
19
  SidebarInset,
20
20
  SidebarProvider,
21
21
  SidebarTrigger
22
- } from "./chunk-D5KV6INF.mjs";
22
+ } from "./chunk-AEFGMCK3.mjs";
23
23
  import {
24
24
  Separator
25
25
  } from "./chunk-7GPVQAMX.mjs";
@@ -1,16 +1,16 @@
1
- import {
2
- Message,
3
- MessageContent
4
- } from "./chunk-FAKMLOOM.mjs";
5
1
  import {
6
2
  messageHandler
7
- } from "./chunk-M5XPU4JK.mjs";
3
+ } from "./chunk-EZU3JAV5.mjs";
8
4
  import {
9
5
  Conversation,
10
6
  ConversationContent,
11
7
  ConversationEmptyState,
12
8
  ConversationScrollButton
13
9
  } from "./chunk-LY77BPMB.mjs";
10
+ import {
11
+ Message,
12
+ MessageContent
13
+ } from "./chunk-FAKMLOOM.mjs";
14
14
  import {
15
15
  getContextualActions
16
16
  } from "./chunk-AXWYY2I5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RichText
3
- } from "./chunk-4HFMA57F.mjs";
3
+ } from "./chunk-7LM2P6N3.mjs";
4
4
 
5
5
  // src/components/Heros/MediumImpact/index.tsx
6
6
  import Image from "next/image";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isDayOff
3
- } from "./chunk-I4UOIVSC.mjs";
3
+ } from "./chunk-PIQUYPOZ.mjs";
4
4
  import {
5
5
  Avatar,
6
6
  AvatarFallback,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-4Z4X2GG7.mjs";
7
7
  import {
8
8
  Media
9
- } from "./chunk-2YHN7ZCJ.mjs";
9
+ } from "./chunk-NKRBXAPF.mjs";
10
10
  import {
11
11
  cn
12
12
  } from "./chunk-KZPGX6CG.mjs";