cortex-react-components 2.28.4 → 2.29.0-beta.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 (314) hide show
  1. package/dist/{chunk-GJHJUG72.mjs → chunk-2W5UZALU.mjs} +1 -1
  2. package/dist/{chunk-UENQZNU3.mjs → chunk-2ZBHHV3P.mjs} +1 -1
  3. package/dist/{chunk-R4SE63GR.mjs → chunk-3W5SE2HO.mjs} +1 -1
  4. package/dist/{chunk-X3YJJBFJ.mjs → chunk-4745QCXP.mjs} +1 -1
  5. package/dist/{chunk-2TUBS2HM.mjs → chunk-4DESBE4R.mjs} +1 -1
  6. package/dist/{chunk-HD6E7KI2.mjs → chunk-4KVVVRGU.mjs} +1 -1
  7. package/dist/{chunk-QOZ2O3FG.mjs → chunk-5WTGNFUL.mjs} +1 -1
  8. package/dist/chunk-6A3V5BMY.mjs +3 -0
  9. package/dist/{chunk-VGWDYD6Z.mjs → chunk-6LJCQVKZ.mjs} +1 -1
  10. package/dist/{chunk-UJW3KUW3.mjs → chunk-6MFAWZRQ.mjs} +1 -1
  11. package/dist/{chunk-SPAOEUCG.mjs → chunk-7EH37DDS.mjs} +1 -1
  12. package/dist/{chunk-TKY52BNP.mjs → chunk-7GWTDITT.mjs} +1 -1
  13. package/dist/{chunk-CTAIR3TE.mjs → chunk-7HLSAUWP.mjs} +1 -1
  14. package/dist/{chunk-DMCFEJ2C.mjs → chunk-7YSJAVXO.mjs} +1 -1
  15. package/dist/{chunk-6DQ7FEQQ.mjs → chunk-7ZBKF576.mjs} +1 -1
  16. package/dist/{chunk-MS7YIAWP.mjs → chunk-ABWLO5GA.mjs} +1 -1
  17. package/dist/chunk-AKQARBH3.mjs +4 -0
  18. package/dist/{chunk-FX6IXEMQ.mjs → chunk-AZIJ4BWZ.mjs} +1 -1
  19. package/dist/chunk-BPJODAHH.mjs +4 -0
  20. package/dist/{chunk-LLED3RQS.mjs → chunk-BQJDTDBP.mjs} +1 -1
  21. package/dist/{chunk-ZGQC6O62.mjs → chunk-C23V6PX5.mjs} +1 -1
  22. package/dist/{chunk-P7S6XFU4.mjs → chunk-CGL3R3BQ.mjs} +1 -1
  23. package/dist/{chunk-SNFBF6KT.mjs → chunk-CLMGLIGH.mjs} +1 -1
  24. package/dist/{chunk-COBOHCBL.mjs → chunk-CMEGGDTF.mjs} +1 -1
  25. package/dist/{chunk-QKDYTCZC.mjs → chunk-CTDGP5H4.mjs} +1 -1
  26. package/dist/{chunk-D6PIOACL.mjs → chunk-CVOPN7DB.mjs} +1 -1
  27. package/dist/{chunk-SNTLCFXF.mjs → chunk-DDQVEARQ.mjs} +1 -1
  28. package/dist/chunk-DHYTERFI.mjs +4 -0
  29. package/dist/{chunk-MCOHKE2T.mjs → chunk-DP6Q6ZTN.mjs} +1 -1
  30. package/dist/{chunk-B2TBKNIJ.mjs → chunk-EZUPKVUE.mjs} +1 -1
  31. package/dist/{chunk-NCJAMNMQ.mjs → chunk-FJ4JWNKL.mjs} +1 -1
  32. package/dist/{chunk-SX2LOHXX.mjs → chunk-FNOAYUJ3.mjs} +1 -1
  33. package/dist/{chunk-CO6AQNZ5.mjs → chunk-G53ROINJ.mjs} +1 -1
  34. package/dist/{chunk-NSMXJCXE.mjs → chunk-GLKM2IVW.mjs} +1 -1
  35. package/dist/{chunk-4USR4WTH.mjs → chunk-GMLLRSAH.mjs} +1 -1
  36. package/dist/{chunk-Z22NSJMF.mjs → chunk-HF33ZXKX.mjs} +1 -1
  37. package/dist/{chunk-EOXVYLPB.mjs → chunk-HFND7WDK.mjs} +1 -1
  38. package/dist/{chunk-NPGGDQ6F.mjs → chunk-HFTDMYUZ.mjs} +1 -1
  39. package/dist/{chunk-FRXZ2OKW.mjs → chunk-IJIGVNMK.mjs} +1 -1
  40. package/dist/{chunk-MXMW65GM.mjs → chunk-IKVDX3WJ.mjs} +1 -1
  41. package/dist/chunk-IP5TOSWC.mjs +4 -0
  42. package/dist/{chunk-6XUIHSKG.mjs → chunk-JKVQOOCZ.mjs} +1 -1
  43. package/dist/{chunk-LJFBHY4P.mjs → chunk-JMJUFHDA.mjs} +1 -1
  44. package/dist/{chunk-KY3ELFX5.mjs → chunk-JUO32HR3.mjs} +1 -1
  45. package/dist/{chunk-3M5KHST3.mjs → chunk-KHJKOKJN.mjs} +1 -1
  46. package/dist/{chunk-6YHCNPFB.mjs → chunk-KOLP657S.mjs} +1 -1
  47. package/dist/{chunk-JDMIQLAZ.mjs → chunk-KSYES4GX.mjs} +1 -1
  48. package/dist/chunk-KXBUCX6R.mjs +6 -0
  49. package/dist/{chunk-6ZMZX5TB.mjs → chunk-KZXYV2BA.mjs} +1 -1
  50. package/dist/{chunk-AOQPH32M.mjs → chunk-LCHPGIER.mjs} +1 -1
  51. package/dist/{chunk-KX2NCNCS.mjs → chunk-LF55USCD.mjs} +1 -1
  52. package/dist/chunk-M27MHVAD.mjs +4 -0
  53. package/dist/{chunk-K4MFTVNB.mjs → chunk-MBZHBKIS.mjs} +1 -1
  54. package/dist/{chunk-NHEG5ZJ6.mjs → chunk-MIM3VFET.mjs} +1 -1
  55. package/dist/{chunk-KPTGYVDM.mjs → chunk-MQG7MKTK.mjs} +1 -1
  56. package/dist/{chunk-QWFFSMKK.mjs → chunk-MSIVVU6F.mjs} +1 -1
  57. package/dist/{chunk-TZKQXT7Y.mjs → chunk-N25B5TQ5.mjs} +1 -1
  58. package/dist/{chunk-4IVQWIYV.mjs → chunk-N7A6ANQ3.mjs} +1 -1
  59. package/dist/{chunk-VRHJOUL3.mjs → chunk-NBWQTY4K.mjs} +1 -1
  60. package/dist/{chunk-U3PUWUVM.mjs → chunk-NCHC4HCU.mjs} +1 -1
  61. package/dist/{chunk-5EKGFFJD.mjs → chunk-NFCZWXCY.mjs} +1 -1
  62. package/dist/{chunk-N52FSTLG.mjs → chunk-NHORR2JO.mjs} +1 -1
  63. package/dist/{chunk-VBSFVJM5.mjs → chunk-NHPNUXXE.mjs} +1 -1
  64. package/dist/{chunk-46N4YPMB.mjs → chunk-OK7X567A.mjs} +1 -1
  65. package/dist/{chunk-TUACRDU3.mjs → chunk-ORTR2DBI.mjs} +1 -1
  66. package/dist/{chunk-6NIVIZQB.mjs → chunk-OT76JHKW.mjs} +1 -1
  67. package/dist/{chunk-M2REXGQW.mjs → chunk-PKI57UXP.mjs} +1 -1
  68. package/dist/{chunk-57PJ7CHJ.mjs → chunk-PQUCMI3B.mjs} +1 -1
  69. package/dist/{chunk-LCSO56PM.mjs → chunk-PQYMYQXD.mjs} +1 -1
  70. package/dist/{chunk-RUZVSK25.mjs → chunk-PV3354CE.mjs} +1 -1
  71. package/dist/{chunk-56X4PU43.mjs → chunk-Q35D7SUU.mjs} +1 -1
  72. package/dist/{chunk-2R3MJSQ7.mjs → chunk-QHIZOLWH.mjs} +1 -1
  73. package/dist/{chunk-LHO4WFYP.mjs → chunk-QLKS32RD.mjs} +1 -1
  74. package/dist/{chunk-HSQAHQNP.mjs → chunk-QPGVTPZ4.mjs} +1 -1
  75. package/dist/{chunk-75XBZHOC.mjs → chunk-QQMN3LX4.mjs} +1 -1
  76. package/dist/{chunk-LQASBVUG.mjs → chunk-R2KR7DJB.mjs} +1 -1
  77. package/dist/{chunk-P2B3OITE.mjs → chunk-R422HRMQ.mjs} +1 -1
  78. package/dist/{chunk-S4ES6P3Y.mjs → chunk-RHZ74MN3.mjs} +1 -1
  79. package/dist/{chunk-MH4YPGH4.mjs → chunk-RK5JHVD4.mjs} +1 -1
  80. package/dist/{chunk-F6DMXMR4.mjs → chunk-S3OBSLA5.mjs} +1 -1
  81. package/dist/{chunk-6SWKEZN6.mjs → chunk-S7SHOCHM.mjs} +1 -1
  82. package/dist/{chunk-53ERRCTV.mjs → chunk-SKTNOZL2.mjs} +1 -1
  83. package/dist/{chunk-EZC3YWSQ.mjs → chunk-SRCJSWQF.mjs} +1 -1
  84. package/dist/{chunk-LCEEFZH7.mjs → chunk-SRXU4X35.mjs} +1 -1
  85. package/dist/{chunk-CNLALZ24.mjs → chunk-STU2XA7R.mjs} +1 -1
  86. package/dist/{chunk-6PS55VJZ.mjs → chunk-T46EPXCV.mjs} +1 -1
  87. package/dist/{chunk-TR6RBROH.mjs → chunk-U3OEUDKT.mjs} +1 -1
  88. package/dist/{chunk-MUHR5KA5.mjs → chunk-U65OF3ET.mjs} +1 -1
  89. package/dist/{chunk-47OE4ZPY.mjs → chunk-UE66RIJN.mjs} +1 -1
  90. package/dist/{chunk-ZHBYZ4HE.mjs → chunk-UW65QW5M.mjs} +1 -1
  91. package/dist/{chunk-XGGWZIPM.mjs → chunk-V4OXGW5U.mjs} +1 -1
  92. package/dist/{chunk-FJ2HHNPX.mjs → chunk-V7PGZR23.mjs} +1 -1
  93. package/dist/{chunk-2HWSTGAP.mjs → chunk-VKUF2Y5T.mjs} +1 -1
  94. package/dist/{chunk-2LINLX4S.mjs → chunk-WHOWQZV6.mjs} +1 -1
  95. package/dist/{chunk-MU5WPW4N.mjs → chunk-WPH2ALD6.mjs} +1 -1
  96. package/dist/{chunk-2VOOH4YJ.mjs → chunk-X4OJL2XY.mjs} +1 -1
  97. package/dist/{chunk-Q7KKN6MH.mjs → chunk-XLR745ZW.mjs} +1 -1
  98. package/dist/{chunk-2UNIT7NC.mjs → chunk-XSPGO55P.mjs} +1 -1
  99. package/dist/{chunk-RS4WAAGI.mjs → chunk-XTUH2DJE.mjs} +1 -1
  100. package/dist/{chunk-FSCDCSVK.mjs → chunk-YCD46AKJ.mjs} +1 -1
  101. package/dist/{chunk-GS3P2V76.mjs → chunk-YONYS5B2.mjs} +1 -1
  102. package/dist/{chunk-E6NVWHRS.mjs → chunk-ZERDRART.mjs} +1 -1
  103. package/dist/{chunk-CK2TD4BY.mjs → chunk-ZPJJOZY4.mjs} +1 -1
  104. package/dist/{chunk-CLGBBNRB.mjs → chunk-ZW24FGHA.mjs} +1 -1
  105. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  106. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  107. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  108. package/dist/components/AdvancedComponents/index.mjs +1 -1
  109. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  110. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  111. package/dist/components/Blocks/Banner.mjs +1 -1
  112. package/dist/components/Blocks/CallToAction.mjs +1 -1
  113. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  114. package/dist/components/Blocks/Content.mjs +1 -1
  115. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  116. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  117. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  118. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  119. package/dist/components/Blocks/index.mjs +1 -1
  120. package/dist/components/CRM/CogeBoard.mjs +1 -1
  121. package/dist/components/CRM/DealDetails.mjs +1 -1
  122. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  123. package/dist/components/CRM/index.mjs +1 -1
  124. package/dist/components/Cards/ContentCard.mjs +1 -1
  125. package/dist/components/Cards/EventCard.js +1 -1
  126. package/dist/components/Cards/EventCard.mjs +1 -1
  127. package/dist/components/Cards/FeatureCard.mjs +1 -1
  128. package/dist/components/Cards/PricingCard.mjs +1 -1
  129. package/dist/components/Cards/ServiceCard.mjs +1 -1
  130. package/dist/components/Cards/index.js +1 -1
  131. package/dist/components/Cards/index.mjs +1 -1
  132. package/dist/components/Chat/ChatInterface.mjs +1 -1
  133. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  134. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  135. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  136. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  137. package/dist/components/Chat/capability-menu.mjs +1 -1
  138. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  139. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  140. package/dist/components/Chat/demo-tests.mjs +1 -1
  141. package/dist/components/Chat/demo.mjs +1 -1
  142. package/dist/components/Chat/example-usage.mjs +1 -1
  143. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  144. package/dist/components/Chat/index.mjs +1 -1
  145. package/dist/components/DeliveryLead/DeliveryLeadSubmission.d.ts +3 -2
  146. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +3 -3
  147. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  148. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  149. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  150. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +3 -3
  151. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  152. package/dist/components/DeliveryLead/index.js +3 -3
  153. package/dist/components/DeliveryLead/index.mjs +1 -1
  154. package/dist/components/DeliveryLead/types.d.ts +6 -3
  155. package/dist/components/DeliveryLead/types.js +1 -1
  156. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  157. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  158. package/dist/components/DigitalColleagues/MainPage.js +1 -1
  159. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  160. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  161. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  162. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  163. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  164. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  165. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  166. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  167. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  168. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  169. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  170. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  171. package/dist/components/DigitalColleagues/index.js +1 -1
  172. package/dist/components/DigitalColleagues/index.mjs +1 -1
  173. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  174. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  175. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  176. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  177. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  178. package/dist/components/Foundary/LandingMenu.mjs +1 -1
  179. package/dist/components/Foundary/Login.mjs +1 -1
  180. package/dist/components/Foundary/MainPage.js +1 -1
  181. package/dist/components/Foundary/MainPage.mjs +1 -1
  182. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  183. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  184. package/dist/components/Foundary/RichText/index.mjs +1 -1
  185. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  186. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  187. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  188. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  189. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  190. package/dist/components/Foundary/Views/index.mjs +1 -1
  191. package/dist/components/Foundary/colleague-card.mjs +1 -1
  192. package/dist/components/Foundary/colleague-form.mjs +1 -1
  193. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  194. package/dist/components/Foundary/document-edit.mjs +1 -1
  195. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  196. package/dist/components/Foundary/document-preview.mjs +1 -1
  197. package/dist/components/Foundary/file-edit.mjs +1 -1
  198. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  199. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  200. package/dist/components/Foundary/foundary-options.mjs +1 -1
  201. package/dist/components/Foundary/index.js +4 -4
  202. package/dist/components/Foundary/index.mjs +1 -1
  203. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  204. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  205. package/dist/components/HeaderFooter/Header.js +1 -1
  206. package/dist/components/HeaderFooter/Header.mjs +1 -1
  207. package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
  208. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  209. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  210. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  211. package/dist/components/HeaderFooter/index.js +1 -1
  212. package/dist/components/HeaderFooter/index.mjs +1 -1
  213. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  214. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  215. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  216. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  217. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  218. package/dist/components/Heros/PostHero/index.mjs +1 -1
  219. package/dist/components/Heros/RenderHero.mjs +1 -1
  220. package/dist/components/Heros/index.mjs +1 -1
  221. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  222. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  223. package/dist/components/Holidays/HolidayTracker.js +1 -1
  224. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  225. package/dist/components/Holidays/RequestLeave.js +1 -1
  226. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  227. package/dist/components/Holidays/index.js +1 -1
  228. package/dist/components/Holidays/index.mjs +1 -1
  229. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  230. package/dist/components/Layouts/Print.mjs +1 -1
  231. package/dist/components/Layouts/SlideShow.mjs +1 -1
  232. package/dist/components/Layouts/index.mjs +1 -1
  233. package/dist/components/Menus/SidebarLeft.js +1 -1
  234. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  235. package/dist/components/Menus/SidebarLeftMulti.css +1 -0
  236. package/dist/components/Menus/SidebarLeftMulti.d.ts +42 -0
  237. package/dist/components/Menus/SidebarLeftMulti.js +4 -0
  238. package/dist/components/Menus/SidebarLeftMulti.mjs +2 -0
  239. package/dist/components/Menus/SidebarRight.mjs +1 -1
  240. package/dist/components/Menus/index.d.ts +1 -0
  241. package/dist/components/Menus/index.js +1 -1
  242. package/dist/components/Menus/index.mjs +1 -1
  243. package/dist/components/Payload/RichText/index.mjs +1 -1
  244. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  245. package/dist/components/Payload/index.mjs +1 -1
  246. package/dist/components/Projects/EpicsView.mjs +1 -1
  247. package/dist/components/Projects/FileView.mjs +1 -1
  248. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  249. package/dist/components/Projects/PlanningView.mjs +1 -1
  250. package/dist/components/Projects/ProjectPage.mjs +1 -1
  251. package/dist/components/Projects/ProjectView.mjs +1 -1
  252. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  253. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  254. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  255. package/dist/components/Projects/TasksView.mjs +1 -1
  256. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  257. package/dist/components/Projects/file-list.mjs +1 -1
  258. package/dist/components/Projects/index.mjs +1 -1
  259. package/dist/components/Projects/project-card.mjs +1 -1
  260. package/dist/components/Projects/team-card.mjs +1 -1
  261. package/dist/components/dc-temp/creative.mjs +1 -1
  262. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  263. package/dist/components/dc-temp/index.mjs +1 -1
  264. package/dist/components/index.js +26 -26
  265. package/dist/components/index.mjs +1 -1
  266. package/dist/components/ui/carousel.css +1 -0
  267. package/dist/components/ui/carousel.d.ts +20 -0
  268. package/dist/components/ui/carousel.js +4 -0
  269. package/dist/components/ui/carousel.mjs +2 -0
  270. package/dist/components/ui/index.d.ts +1 -0
  271. package/dist/components/ui/index.js +1 -1
  272. package/dist/components/ui/index.mjs +1 -1
  273. package/dist/decorators/Intranet.css +1 -0
  274. package/dist/decorators/Intranet.d.ts +7 -0
  275. package/dist/decorators/Intranet.js +4 -0
  276. package/dist/decorators/Intranet.mjs +1 -0
  277. package/dist/globals.css +1 -1
  278. package/dist/index.js +35 -35
  279. package/dist/index.mjs +1 -1
  280. package/dist/metafile-cjs.json +1 -1
  281. package/dist/metafile-esm.json +1 -1
  282. package/dist/pages/Blog.js +1 -1
  283. package/dist/pages/Blog.mjs +1 -1
  284. package/dist/pages/Documentation.js +1 -1
  285. package/dist/pages/Documentation.mjs +1 -1
  286. package/dist/pages/IndexPage.js +1 -1
  287. package/dist/pages/IndexPage.mjs +1 -1
  288. package/dist/pages/Intranet.js +2 -1
  289. package/dist/pages/Intranet.mjs +1 -1
  290. package/dist/pages/LandingPage.mjs +1 -1
  291. package/dist/pages/Page.js +1 -1
  292. package/dist/pages/Page.mjs +1 -1
  293. package/dist/pages/Publish.mjs +1 -1
  294. package/dist/pages/Website.js +1 -1
  295. package/dist/pages/Website.mjs +1 -1
  296. package/dist/sections/AboutSection.mjs +1 -1
  297. package/dist/sections/BlogDetail.mjs +1 -1
  298. package/dist/sections/BlogList.mjs +1 -1
  299. package/dist/sections/BlogListSection.mjs +1 -1
  300. package/dist/sections/ContactSection.mjs +1 -1
  301. package/dist/sections/MainPageSection.mjs +1 -1
  302. package/dist/sections/PageSections.js +1 -1
  303. package/dist/sections/PageSections.mjs +1 -1
  304. package/dist/sections/PricingSection.mjs +1 -1
  305. package/dist/sections/ServiceDetail.mjs +1 -1
  306. package/dist/sections/ServiceDetailSection.mjs +1 -1
  307. package/dist/sections/ServiceSection.mjs +1 -1
  308. package/dist/sections/index.mjs +1 -1
  309. package/package.json +3 -1
  310. package/dist/chunk-BVFUCOCP.mjs +0 -3
  311. package/dist/chunk-IXLFVFIK.mjs +0 -4
  312. package/dist/chunk-Q5NHYYRS.mjs +0 -4
  313. package/dist/chunk-UWEU6TLS.mjs +0 -6
  314. package/dist/chunk-WUA65ZZB.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var wt=Object.create;var oe=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var Dt=(e,r)=>{for(var t in r)oe(e,t,{get:r[t],enumerable:!0})},Ge=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Ct(r))!kt.call(e,s)&&s!==t&&oe(e,s,{get:()=>r[s],enumerable:!(a=Nt(r,s))||a.enumerable});return e};var z=(e,r,t)=>(t=e!=null?wt(Pt(e)):{},Ge(r||!e||!e.__esModule?oe(t,"default",{value:e,enumerable:!0}):t,e)),Rt=e=>Ge(oe({},"__esModule",{value:!0}),e);var dr={};Dt(dr,{ApproveLeave:()=>we,CalendarView:()=>Me,HolidayGrid:()=>Ae,HolidayTracker:()=>cr,RequestLeave:()=>Se});module.exports=Rt(dr);var ot=require("react");var Ye=require("clsx");var xe="-",St=e=>{let r=Mt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let l=c.split(xe);return l[0]===""&&l.length!==1&&l.shift(),$e(l,r)||At(c)},getConflictingClassGroupIds:(c,l)=>{let p=t[c]||[];return l&&a[c]?[...p,...a[c]]:p}}},$e=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],a=r.nextPart.get(t),s=a?$e(e.slice(1),a):void 0;if(s)return s;if(r.validators.length===0)return;let n=e.join(xe);return r.validators.find(({validator:c})=>c(n))?.classGroupId},Ve=/^\[(.+)\]$/,At=e=>{if(Ve.test(e)){let r=Ve.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Mt=e=>{let{theme:r,prefix:t}=e,a={nextPart:new Map,validators:[]};return Lt(Object.entries(e.classGroups),t).forEach(([n,c])=>{ye(c,a,n,r)}),a},ye=(e,r,t,a)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?r:_e(r,s);n.classGroupId=t;return}if(typeof s=="function"){if(Tt(s)){ye(s(a),r,t,a);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([n,c])=>{ye(c,_e(r,n),t,a)})})},_e=(e,r)=>{let t=e;return r.split(xe).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},Tt=e=>e.isThemeGetter,Lt=(e,r)=>r?e.map(([t,a])=>{let s=a.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,l])=>[r+c,l])):n);return[t,s]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,a=new Map,s=(n,c)=>{t.set(n,c),r++,r>e&&(r=0,a=t,t=new Map)};return{get(n){let c=t.get(n);if(c!==void 0)return c;if((c=a.get(n))!==void 0)return s(n,c),c},set(n,c){t.has(n)?t.set(n,c):s(n,c)}}},je="!",It=e=>{let{separator:r,experimentalParseClassName:t}=e,a=r.length===1,s=r[0],n=r.length,c=l=>{let p=[],x=0,o=0,u;for(let h=0;h<l.length;h++){let P=l[h];if(x===0){if(P===s&&(a||l.slice(h,h+n)===r)){p.push(l.slice(o,h)),o=h+n;continue}if(P==="/"){u=h;continue}}P==="["?x++:P==="]"&&x--}let b=p.length===0?l:l.substring(o),D=b.startsWith(je),C=D?b.substring(1):b,i=u&&u>o?u-o:void 0;return{modifiers:p,hasImportantModifier:D,baseClassName:C,maybePostfixModifierPosition:i}};return t?l=>t({className:l,parseClassName:c}):c},Ft=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(a=>{a[0]==="["?(r.push(...t.sort(),a),t=[]):t.push(a)}),r.push(...t.sort()),r},Bt=e=>({cache:zt(e.cacheSize),parseClassName:It(e),...St(e)}),Et=/\s+/,Gt=(e,r)=>{let{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:s}=r,n=[],c=e.trim().split(Et),l="";for(let p=c.length-1;p>=0;p-=1){let x=c[p],{modifiers:o,hasImportantModifier:u,baseClassName:b,maybePostfixModifierPosition:D}=t(x),C=!!D,i=a(C?b.substring(0,D):b);if(!i){if(!C){l=x+(l.length>0?" "+l:l);continue}if(i=a(b),!i){l=x+(l.length>0?" "+l:l);continue}C=!1}let h=Ft(o).join(":"),P=u?h+je:h,R=P+i;if(n.includes(R))continue;n.push(R);let T=s(i,C);for(let _=0;_<T.length;++_){let ee=T[_];n.push(P+ee)}l=x+(l.length>0?" "+l:l)}return l};function Vt(){let e=0,r,t,a="";for(;e<arguments.length;)(r=arguments[e++])&&(t=He(r))&&(a&&(a+=" "),a+=t);return a}var He=e=>{if(typeof e=="string")return e;let r,t="";for(let a=0;a<e.length;a++)e[a]&&(r=He(e[a]))&&(t&&(t+=" "),t+=r);return t};function _t(e,...r){let t,a,s,n=c;function c(p){let x=r.reduce((o,u)=>u(o),e());return t=Bt(x),a=t.cache.get,s=t.cache.set,n=l,l(p)}function l(p){let x=a(p);if(x)return x;let o=Gt(p,t);return s(p,o),o}return function(){return n(Vt.apply(null,arguments))}}var w=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},Oe=/^\[(?:([a-z-]+):)?(.+)\]$/i,$t=/^\Xe+\/\Xe+$/,jt=new Set(["px","full","screen"]),Ht=/^(\Xe+(\.\Xe+)?)?(xs|sm|md|lg|xl)$/,Ot=/\Xe+(%|px|r?em|[sdl]?Xe([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wt=/^(inset_)?-?((\Xe+)?\.?(\Xe+)[a-z]+|0)_-?((\Xe+)?\.?(\Xe+)[a-z]+|0)/,Yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>H(e)||jt.has(e)||$t.test(e),E=e=>O(e,"length",tr),H=e=>!!e&&!Number.isNaN(Number(e)),he=e=>O(e,"number",H),W=e=>!!e&&Number.isInteger(Number(e)),qt=e=>e.endsWith("%")&&H(e.slice(0,-1)),m=e=>Oe.test(e),G=e=>Ht.test(e),Jt=new Set(["length","size","percentage"]),Kt=e=>O(e,Jt,Ue),Xt=e=>O(e,"position",Ue),Zt=new Set(["image","url"]),Qt=e=>O(e,Zt,or),er=e=>O(e,"",rr),Y=()=>!0,O=(e,r,t)=>{let a=Oe.exec(e);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):t(a[2]):!1},tr=e=>Ot.test(e)&&!Ut.test(e),Ue=()=>!1,rr=e=>Wt.test(e),or=e=>Yt.test(e);var ar=()=>{let e=w("colors"),r=w("spacing"),t=w("blur"),a=w("brightness"),s=w("borderColor"),n=w("borderRadius"),c=w("borderSpacing"),l=w("borderWidth"),p=w("contrast"),x=w("grayscale"),o=w("hueRotate"),u=w("invert"),b=w("gap"),D=w("gradientColorStops"),C=w("gradientColorStopPositions"),i=w("inset"),h=w("margin"),P=w("opacity"),R=w("padding"),T=w("saturate"),_=w("scale"),ee=w("sepia"),Te=w("skew"),Le=w("space"),ze=w("translate"),fe=()=>["auto","contain","none"],ge=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",m,r],N=()=>[m,r],Ie=()=>["",I,E],te=()=>["auto",H,m],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",m],Ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[H,m];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[I,E],blur:["none","",G,m],brightness:L(),borderColor:[e],borderRadius:["none","","full",G,m],borderSpacing:N(),borderWidth:Ie(),contrast:L(),grayscale:U(),hueRotate:L(),invert:U(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[qt,E],inset:be(),margin:be(),opacity:L(),padding:N(),saturate:L(),scale:L(),sepia:U(),skew:L(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Ee()}],"break-before":[{"break-before":Ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Fe(),m]}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:fe()}],"overscroll-x":[{"overscroll-x":fe()}],"overscroll-y":[{"overscroll-y":fe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[i]}],"inset-x":[{"inset-x":[i]}],"inset-y":[{"inset-y":[i]}],start:[{start:[i]}],end:[{end:[i]}],top:[{top:[i]}],right:[{right:[i]}],bottom:[{bottom:[i]}],left:[{left:[i]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,m]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",W,m]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",W,m]},m]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[W,m]},m]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],Ze:[{Ze:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],Ze:[{Ze:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[Le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,r]}],"min-w":[{"min-w":[m,r,"min","max","fit"]}],"max-w":[{"max-w":[m,r,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[m,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,r,"auto","min","max","fit"]}],"font-size":[{text:["base",G,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",H,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,E]}],"underline-offset":[{"underline-offset":["auto",I,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),Xt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[D]}],"gradient-via":[{via:[D]}],"gradient-to":[{to:[D]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-Xe":[{"rounded-Xe":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:re()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[I,m]}],"outline-w":[{outline:[I,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[I,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,er]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Be()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",G,m]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[o]}],invert:[{invert:[u]}],saturate:[{saturate:[T]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[o]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[W,m]}],"translate-x":[{"translate-x":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-x":[{"skew-x":[Te]}],"skew-y":[{"skew-y":[Te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Xe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-Ze":[{"scroll-Ze":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-Ze":[{"scroll-Ze":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,E,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Ze","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Ze","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Xe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Xe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Ze","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Ze","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var We=_t(ar);function y(...e){return We((0,Ye.clsx)(e))}var A=class{static toUtcMidnight(r){let t=new Date(r);return t.getUTCHours()===23&&t.getUTCMinutes()===0&&t.getUTCSeconds()===0?new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)):new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))}static toUtcEndOfDay(r){let t=new Date(r),a=this.toUtcMidnight(t);return new Date(a.getTime()+24*60*60*1e3-1)}};var qe=require("@radix-ui/react-slot"),Je=require("class-variance-authority"),Ke=z(require("react")),Xe=require("react/jsx-runtime"),ae=(0,Je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),S=Ke.forwardRef(({asChild:e=!1,className:r,size:t,variant:a,...s},n)=>(0,Xe.jsx)(e?qe.Slot:"button",{className:y(ae({className:r,size:t,variant:a})),ref:n,...s}));S.displayName="Button";var q=z(require("@radix-ui/react-checkbox")),Ze=require("lucide-react"),Qe=z(require("react")),ne=Qe.forwardRef(({className:e,...r},t)=>(0,Xe.jsx)(q.Root,{className:y("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:t,...r,children:(0,Xe.jsx)(q.Indicator,{className:y("flex items-center justify-center text-current"),children:(0,Xe.jsx)(Ze.Check,{className:"h-4 w-4"})})}));ne.displayName=q.Root.displayName;var ie=z(require("react")),F=z(require("@radix-ui/react-avatar"));var J=ie.forwardRef(({className:e,...r},t)=>(0,Xe.jsx)(F.Root,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));J.displayName=F.Root.displayName;var K=ie.forwardRef(({className:e,...r},t)=>(0,Xe.jsx)(F.Image,{ref:t,className:y("aspect-square h-full w-full",e),...r}));K.displayName=F.Image.displayName;var X=ie.forwardRef(({className:e,...r},t)=>(0,Xe.jsx)(F.Fallback,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));X.displayName=F.Fallback.displayName;var sr=(0,Je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function tt({className:e,variant:r,...t}){return(0,Xe.jsx)("div",{className:y(sr({variant:r}),e),...t})}var $=require("sonner"),at=require("next/navigation");function we({leaveRequests:e,onApprove:r,onReject:t}){let[a,s]=(0,ot.useState)([]),n=(0,at.useRouter)(),c=()=>{a.length===e.length?s([]):s(e.map(o=>o.id))},l=o=>{s(u=>u.includes(o)?u.filter(b=>b!==o):[...u,o])},p=async()=>{let o=await r(a);o.success?($.toast.success(o.message),n.refresh()):$.toast.error(`Error: ${o.message}`),s([])},x=async()=>{let o=await t(a);o.success?($.toast.success(o.message),n.refresh()):$.toast.error(`Error: ${o.message}`),s([])};return(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Xe.jsxs)("div",{className:"space-x-2",children:[(0,Xe.jsx)(S,{onClick:p,disabled:a.length===0,variant:"default",children:"Approve Selected"}),(0,Xe.jsx)(S,{onClick:x,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Xe.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Xe.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(ne,{id:"select-all",checked:a.length===e.length,onCheckedChange:c,className:"border-accent"}),(0,Xe.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Xe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",e.length," selected"]})]})}),e.map(o=>(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(ne,{id:`select-${o.id}`,checked:a.includes(o.id),onCheckedChange:()=>l(o.id),className:"border-accent"}),(0,Xe.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Xe.jsxs)(J,{className:"h-10 w-10",children:[(0,Xe.jsx)(K,{src:o.userImage,alt:o.userName}),(0,Xe.jsx)(X,{children:o.userName.split(" ").map(u=>u[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-3",children:(0,Xe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:o.userName})})]})]}),(0,Xe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Xe.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(o.startDate).toLocaleDateString(),o.startDate!==o.endDate&&` - ${new Date(o.endDate).toLocaleDateString()}`,o.leaveType!="Full Day"&&` (${o.leaveType})`,` - ${o.totalDays} day${o.totalDays!==1?"s":""}`]}),(0,Xe.jsx)(tt,{variant:o.status==="approved"?"default":o.status==="rejected"?"destructive":"secondary",children:o.status})]})]})},o.id))]})}),(0,Xe.jsx)($.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var st=z(require("react")),Ne=z(require("@radix-ui/react-label"));var nr=(0,Je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Z=st.forwardRef(({className:e,...r},t)=>(0,Xe.jsx)(Ne.Root,{ref:t,className:y(nr(),e),...r}));Z.displayName=Ne.Root.displayName;var lt=require("react-day-picker");function ce({className:e,classNames:r,showOutsideDays:t=!0,...a}){return(0,Xe.jsx)(lt.DayPicker,{showOutsideDays:t,weekStartsOn:1,className:y("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(ae({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(ae({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...r},...a})}ce.displayName="Calendar";var dt=z(require("react")),M=z(require("@radix-ui/react-popover"));var Pe=M.Root,ke=M.Trigger;var de=dt.forwardRef(({className:e,align:r="center",sideOffset:t=4,...a},s)=>(0,Xe.jsx)(M.Portal,{children:(0,Xe.jsx)(M.Content,{ref:s,align:r,sideOffset:t,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));de.displayName=M.Content.displayName;var De=require("date-fns");var mt=[new Date(2025,0,1),new Date(2025,3,18),new Date(2025,3,21),new Date(2025,4,5),new Date(2025,4,26),new Date(2025,7,25),new Date(2025,11,25),new Date(2025,11,26),new Date(2026,0,1),new Date(2026,3,3),new Date(2026,3,6),new Date(2026,4,4),new Date(2026,4,25),new Date(2026,7,31),new Date(2026,11,25),new Date(2026,11,28)];var Q=e=>{let r=e.getDay()===0,t=e.getDay()===6,a=mt.some(s=>s.toISOString()===e.toISOString());return r||t||a},pt=(e,r,t=!1)=>{let a=new Date(e),s=new Date(r),n=0;if(t&&!Q(a))return .5;for(;a<=s;)Q(a)||n++,a.setDate(a.getDate()+1);return n},ut=(e,r)=>!e||!r?!1:e.toDateString()!==r.toDateString();var ir=({options:e,value:r,onChange:t,disabled:a=[]})=>(0,Xe.jsx)("div",{className:"flex space-x-2",children:e.map((s,n)=>(0,Xe.jsx)(S,{type:"button",variant:r===s?"default":"outline",onClick:()=>t(s),disabled:a[n],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:s},s))});function Se({remainingDays:e,submitLeaveRequest:r}){let[t,a]=(0,ot.useState)(new Date),[s,n]=(0,ot.useState)(new Date),[c,l]=(0,ot.useState)("Full Day"),[p,x]=(0,ot.useState)(!1),[o,u]=(0,ot.useState)(1),b=(0,at.useRouter)();(0,ot.useEffect)(()=>{let i=ut(t,s);x(i),i&&l("Full Day")},[t,s]),(0,ot.useEffect)(()=>{if(!t||!s){u(0);return}let i=pt(t,s,c!=="Full Day");u(i)},[t,s,c]);let D=i=>{l(i)};return(0,Xe.jsxs)("div",{className:"max-w-2xl",children:[(0,Xe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Xe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Xe.jsxs)("form",{onSubmit:async i=>{if(i.preventDefault(),!t||!s){$.toast.error("Please select both start and end dates");return}let h=t?.getUTCFullYear(),P=new Date().getUTCFullYear();if(h===P&&o>e){$.toast.error("You do not have enough leave days remaining.");return}let R=new FormData;R.append("startDate",t.toISOString()),R.append("endDate",s.toISOString()),R.append("leaveType",c),R.append("duration",o.toString());let T=await(r||lr)(R);T.success?($.toast.success(T.message),a(void 0),n(void 0),l("Full Day"),b.refresh()):$.toast.error(`Error: ${T.message}`)},className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(Z,{htmlFor:"startDate",children:"Start Date"}),(0,Xe.jsxs)(Pe,{children:[(0,Xe.jsx)(ke,{asChild:!0,children:(0,Xe.jsxs)(S,{variant:"outline",className:y("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[(0,Xe.jsx)(Ze.CalendarIcon,{className:"mr-2 h-4 w-4"}),t?(0,De.format)(t,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(de,{className:"w-auto p-0",align:"start",children:(0,Xe.jsx)(ce,{mode:"single",selected:t,onSelect:i=>{a(i),i&&(!s||i>s)&&n(i)},initialFocus:!0})})]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(Z,{htmlFor:"endDate",children:"End Date"}),(0,Xe.jsxs)(Pe,{children:[(0,Xe.jsx)(ke,{asChild:!0,children:(0,Xe.jsxs)(S,{variant:"outline",className:y("w-full justify-start text-left font-normal",!s&&"text-muted-foreground"),children:[(0,Xe.jsx)(Ze.CalendarIcon,{className:"mr-2 h-4 w-4"}),s?(0,De.format)(s,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(de,{className:"w-auto p-0",align:"start",children:(0,Xe.jsx)(ce,{mode:"single",selected:s,onSelect:n,disabled:i=>t?i<t:!1,initialFocus:!0})})]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(Z,{children:"Leave Type"}),(0,Xe.jsx)(ir,{options:["Full Day","Morning","Afternoon"],value:c,onChange:D,disabled:[!1,p,p]})]}),(0,Xe.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",o]}),(0,Xe.jsx)(S,{disabled:o<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Xe.jsx)($.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var lr=async e=>{let r={};return e.forEach((t,a)=>{r[a]=t}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function gt(...e){return e.filter(Boolean).join(" ")}function Ae({currentDate:e,setCurrentDate:r,holidays:t,employees:a}){let s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),n=()=>{r(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{r(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{r(new Date)},p=o=>o.toLocaleString("default",{weekday:"short"}).charAt(0),x=t.map(o=>({...o,startDate:A.toUtcMidnight(o.startDate).toISOString(),endDate:A.toUtcEndOfDay(o.endDate).toISOString()}));return console.log("employeeIds",a.map(o=>o.id)),(0,Xe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Xe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Xe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Xe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Xe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(S,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(Ze.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Xe.jsx)(S,{variant:"outline",onClick:l,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Xe.jsxs)(S,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(Ze.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Xe.jsx)("div",{className:"mt-8 flow-root",children:(0,Xe.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Xe.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Xe.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Xe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(s)].map((o,u)=>{let b=new Date(e.getFullYear(),e.getMonth(),u+1);return(0,Xe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Q(b)?"bg-gray-200":""}`,children:[(0,Xe.jsx)("div",{children:p(b)}),(0,Xe.jsx)("div",{children:u+1})]},u)})]})}),(0,Xe.jsx)("tbody",{children:a.map((o,u)=>(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("td",{className:gt(u!==a.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsxs)(J,{className:"h-11 w-11",children:[(0,Xe.jsx)(K,{src:o.image,alt:o.name}),(0,Xe.jsx)(X,{children:o.name.split(" ").map(b=>b[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-4",children:(0,Xe.jsx)("div",{className:"font-medium text-accent",children:o.name})})]})}),[...Array(s)].map((b,D)=>{let C=new Date(e.getFullYear(),e.getMonth(),D+1,1),i=x.find(h=>h.userId===o.id&&new Date(h.startDate)<=C&&new Date(h.endDate)>=C);return(0,Xe.jsx)("td",{className:gt(u!==a.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Q(C)?"bg-gray-200":"bg-white"),children:(0,Xe.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${i?i.status==="approved"?"bg-green-500":i.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:i?`${o.name}: ${i.status} (${i.startDate} - ${i.endDate}) - ${i.leaveType}`:"",children:i&&i.leaveType!=="Full Day"&&(0,Xe.jsx)("div",{className:`h-3 w-6 ${i.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${o.id}-${D}`)})]},o.id))})]})})})})]})}function Me({currentDate:e,setCurrentDate:r,holidays:t}){let[a,s]=(0,ot.useState)(null),n=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,c=Array.from({length:42},(o,u)=>{let b=new Date(e.getFullYear(),e.getMonth(),u-n+1,e.getHours()),D=t.filter(C=>A.toUtcMidnight(new Date(C.startDate))<=b&&A.toUtcEndOfDay(new Date(C.endDate))>=b);return{date:b,isCurrentMonth:b.getMonth()===e.getMonth(),isToday:b.toDateString()===new Date().toDateString(),holidays:D}}),l=()=>{r(new Date(e.getFullYear(),e.getMonth()-1,1))},p=()=>{r(new Date(e.getFullYear(),e.getMonth()+1,1))},x=()=>{r(new Date)};return(0,Xe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Xe.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Xe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Xe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Xe.jsx)("div",{className:"flex items-center",children:(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(S,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(Ze.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Xe.jsx)(S,{variant:"outline",onClick:x,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Xe.jsxs)(S,{onClick:p,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(Ze.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Xe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"De"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Xe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Xe.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:c.map(o=>(0,Xe.jsxs)("div",{className:y(o.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Xe.jsx)("time",{dateTime:o.date.toISOString(),className:y("flex h-6 w-6 items-center justify-center rounded-full",o.isToday&&"bg-indigo-600 font-semibold text-white"),children:o.date.getDate()}),o.holidays.length>0&&(0,Xe.jsx)("ol",{className:"mt-2 space-y-1 overflow-visible",children:o.holidays.map(u=>(0,Xe.jsx)("li",{className:"overflow-visible",children:(0,Xe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:u.userName})},u.id))})]},o.date.toISOString()))}),(0,Xe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:c.map(o=>(0,Xe.jsxs)("button",{type:"button",className:y(o.isCurrentMonth?"bg-white":"bg-gray-50",(o.date===a||o.isToday)&&"font-semibold",o.date===a&&"text-white",!o.date&&o.isToday&&"text-indigo-600",o.date!==a&&o.isCurrentMonth&&!o.isToday&&"text-gray-900",o.date!==a&&!o.isCurrentMonth&&!o.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Xe.jsx)("time",{dateTime:o.date.toISOString(),className:y("ml-auto",o.date===a&&o.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",o.date===a&&!o.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:o.date.getDate()}),(0,Xe.jsxs)("span",{className:"sr-only",children:[o.holidays.length," holidays"]}),o.holidays.length>0&&(0,Xe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:o.holidays.map(u=>(0,Xe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},o.date.toISOString()))})]})]})]})}var V=require("lucide-react");function vt(...e){return e.filter(Boolean).join(" ")}function cr({holidays:e,currentUser:r,currentDate:t,leaveApprovals:a,employees:s,submitLeaveRequest:n,approveLeave:c,rejectLeave:l}){let[p,x]=(0,ot.useState)("Calendar View"),o=(0,at.useRouter)(),u=!1,b=A.toUtcMidnight((0,De.parseISO)(t)),D=async i=>{let h=(0,De.format)(i,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",h),o.push(P.toString()),{success:!0}};if(u)return(0,Xe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Xe.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let C=[{name:"Grid View",icon:V.Grid,current:p==="Grid View"},{name:"Calendar View",icon:V.CalendarDays,current:p==="Calendar View"},{name:"Request Leave",icon:V.PlusCircle,current:p==="Request Leave"},{name:"Approve Leave",icon:V.CheckSquare,current:p==="Approve Leave"}];return(0,Xe.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Xe.jsxs)("div",{className:"mb-8",children:[(0,Xe.jsxs)("div",{className:"sm:hidden",children:[(0,Xe.jsx)("select",{value:p,onChange:i=>x(i.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:C.map(i=>(0,Xe.jsx)("option",{children:i.name},i.name))}),(0,Xe.jsx)(Ze.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Xe.jsx)("div",{className:"hidden sm:block",children:(0,Xe.jsx)("div",{className:"border-b border-gray-200",children:(0,Xe.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:C.map(i=>(0,Xe.jsxs)("a",{onClick:()=>{(i.name!=="Approve Leave"||r.grade==="Manager"||r.grade==="Senior Manager"||r.grade==="Partner")&&x(i.name)},className:vt(i.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",i.name==="Approve Leave"&&r.grade!=="Manager"&&r.grade!=="Senior Manager"&&r.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":i.current?"page":void 0,children:[(0,Xe.jsx)(i.icon,{className:vt(i.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Xe.jsx)("span",{children:i.name})]},i.name))})})})]}),p==="Grid View"&&(0,Xe.jsx)(Ae,{currentDate:b,setCurrentDate:D,holidays:e,employees:s}),p==="Calendar View"&&(0,Xe.jsx)(Me,{currentDate:b,setCurrentDate:D,holidays:e}),p==="Request Leave"&&(0,Xe.jsx)(Se,{remainingDays:r.remainingLeaveDays,submitLeaveRequest:i=>n?n(i):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),p==="Approve Leave"&&(0,Xe.jsx)(we,{leaveRequests:a,onApprove:i=>c?c(i):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:i=>l?l(i):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}0&&(module.exports={ApproveLeave,CalendarView,HolidayGrid,HolidayTracker,RequestLeave});
4
+ "use strict";var wt=Object.create;var oe=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var Dt=(e,t)=>{for(var r in t)oe(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ct(t))!kt.call(e,n)&&n!==r&&oe(e,n,{get:()=>t[n],enumerable:!(o=Nt(t,n))||o.enumerable});return e};var I=(e,t,r)=>(r=e!=null?wt(Pt(e)):{},Ge(t||!e||!e.__esModule?oe(r,"default",{value:e,enumerable:!0}):r,e)),Rt=e=>Ge(oe({},"__esModule",{value:!0}),e);var dr={};Dt(dr,{ApproveLeave:()=>we,CalendarView:()=>Te,HolidayGrid:()=>Me,HolidayTracker:()=>cr,RequestLeave:()=>Se});module.exports=Rt(dr);var ot=require("react");var Ye=require("clsx");var xe="-",St=e=>{let t=Tt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(xe);return i[0]===""&&i.length!==1&&i.shift(),$e(i,t)||Mt(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},$e=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?$e(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let s=e.join(xe);return t.validators.find(({validator:c})=>c(s))?.classGroupId},Ve=/^\[(.+)\]$/,Mt=e=>{if(Ve.test(e)){let t=Ve.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Tt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Lt(Object.entries(e.classGroups),r).forEach(([s,c])=>{ye(c,o,s,t)}),o},ye=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let s=n===""?t:_e(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(At(n)){ye(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,c])=>{ye(c,_e(t,s),r,o)})})},_e=(e,t)=>{let r=e;return t.split(xe).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},At=e=>e.isThemeGetter,Lt=(e,t)=>t?e.map(([r,o])=>{let n=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,i])=>[t+c,i])):s);return[r,n]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return n(s,c),c},set(s,c){r.has(s)?r.set(s,c):n(s,c)}}},je="!",It=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],s=t.length,c=i=>{let u=[],x=0,a=0,g;for(let d=0;d<i.length;d++){let N=i[d];if(x===0){if(N===n&&(o||i.slice(d,d+s)===t)){u.push(i.slice(a,d)),a=d+s;continue}if(N==="/"){g=d;continue}}N==="["?x++:N==="]"&&x--}let v=u.length===0?i:i.substring(a),D=v.startsWith(je),P=D?v.substring(1):v,l=g&&g>a?g-a:void 0;return{modifiers:u,hasImportantModifier:D,baseClassName:P,maybePostfixModifierPosition:l}};return r?i=>r({className:i,parseClassName:c}):c},Ft=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Bt=e=>({cache:zt(e.cacheSize),parseClassName:It(e),...St(e)}),Et=/\s+/,Gt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[],c=e.trim().split(Et),i="";for(let u=c.length-1;u>=0;u-=1){let x=c[u],{modifiers:a,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:D}=r(x),P=!!D,l=o(P?v.substring(0,D):v);if(!l){if(!P){i=x+(i.length>0?" "+i:i);continue}if(l=o(v),!l){i=x+(i.length>0?" "+i:i);continue}P=!1}let d=Ft(a).join(":"),N=g?d+je:d,S=N+l;if(s.includes(S))continue;s.push(S);let M=n(l,P);for(let T=0;T<M.length;++T){let ee=M[T];s.push(N+ee)}i=x+(i.length>0?" "+i:i)}return i};function Vt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ue(t))&&(o&&(o+=" "),o+=r);return o}var Ue=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ue(e[o]))&&(r&&(r+=" "),r+=t);return r};function _t(e,...t){let r,o,n,s=c;function c(u){let x=t.reduce((a,g)=>g(a),e());return r=Bt(x),o=r.cache.get,n=r.cache.set,s=i,i(u)}function i(u){let x=o(u);if(x)return x;let a=Gt(u,r);return n(u,a),a}return function(){return s(Vt.apply(null,arguments))}}var w=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},He=/^\[(?:([a-z-]+):)?(.+)\]$/i,$t=/^\d+\/\d+$/,jt=new Set(["px","full","screen"]),Ut=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ht=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Xe|i|Xe|min|max))|\Xe(calc|min|max|clamp)\(.+\)|^0$/,Ot=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>U(e)||jt.has(e)||$t.test(e),G=e=>H(e,"length",tr),U=e=>!!e&&!Number.isNaN(Number(e)),he=e=>H(e,"number",U),W=e=>!!e&&Number.isInteger(Number(e)),qt=e=>e.endsWith("%")&&U(e.slice(0,-1)),p=e=>He.test(e),V=e=>Ut.test(e),Jt=new Set(["length","size","percentage"]),Kt=e=>H(e,Jt,Oe),Xt=e=>H(e,"position",Oe),Zt=new Set(["image","url"]),Qt=e=>H(e,Zt,or),er=e=>H(e,"",rr),Y=()=>!0,H=(e,t,r)=>{let o=He.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},tr=e=>Ht.test(e)&&!Ot.test(e),Oe=()=>!1,rr=e=>Wt.test(e),or=e=>Yt.test(e);var ar=()=>{let e=w("colors"),t=w("spacing"),r=w("blur"),o=w("brightness"),n=w("borderColor"),s=w("borderRadius"),c=w("borderSpacing"),i=w("borderWidth"),u=w("contrast"),x=w("grayscale"),a=w("hueRotate"),g=w("invert"),v=w("gap"),D=w("gradientColorStops"),P=w("gradientColorStopPositions"),l=w("inset"),d=w("margin"),N=w("opacity"),S=w("padding"),M=w("saturate"),T=w("scale"),ee=w("sepia"),Ae=w("skew"),Le=w("space"),ze=w("translate"),ge=()=>["auto","contain","none"],fe=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",p,t],C=()=>[p,t],Ie=()=>["",F,G],te=()=>["auto",U,p],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",p],Ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[U,p];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[F,G],blur:["none","",V,p],brightness:z(),borderColor:[e],borderRadius:["none","","full",V,p],borderSpacing:C(),borderWidth:Ie(),contrast:z(),grayscale:O(),hueRotate:z(),invert:O(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[qt,G],inset:be(),margin:be(),opacity:z(),padding:C(),saturate:z(),scale:z(),sepia:O(),skew:z(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":Ee()}],"break-before":[{"break-before":Ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Fe(),p]}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[l]}],"inset-x":[{"inset-x":[l]}],"inset-y":[{"inset-y":[l]}],start:[{start:[l]}],end:[{end:[l]}],top:[{top:[l]}],right:[{right:[l]}],bottom:[{bottom:[l]}],left:[{left:[l]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,p]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",W,p]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",W,p]},p]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[W,p]},p]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],Ze:[{Ze:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],Xe:[{Xe:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],Ze:[{Ze:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[Le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],Xe:[{Xe:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Xe":[{"min-Xe":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-Xe":[{"max-Xe":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",U,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,G]}],"underline-offset":[{"underline-offset":["auto",F,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),Xt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Xe","bl","l","tl"]},Qt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[D]}],"gradient-via":[{via:[D]}],"gradient-to":[{to:[D]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-Xe":[{"rounded-Xe":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Xe":[{"rounded-Xe":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-Xe":[{"border-Xe":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-Xe":[{"border-Xe":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[F,p]}],"outline-w":[{outline:[F,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[F,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,er]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...Be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Be()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",V,p]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[g]}],saturate:[{saturate:[M]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[W,p]}],"translate-x":[{"translate-x":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-x":[{"skew-x":[Ae]}],"skew-y":[{"skew-y":[Ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Xe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Xe":[{"scroll-Xe":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-Ze":[{"scroll-Ze":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-Ze":[{"scroll-Ze":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[F,G,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Ze","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Xe:["mx","my","ms","Ze","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","Xe"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Xe","rounded-l","rounded-ss","rounded-Xe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Xe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Xe":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Xe","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Xe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Xe","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Xe"],"scroll-Xe":["scroll-mx","scroll-my","scroll-ms","scroll-Ze","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Ze","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var We=_t(ar);function y(...e){return We((0,Ye.clsx)(e))}var A=class{static toUtcMidnight(t){let r=new Date(t);return r.getUTCHours()===23&&r.getUTCMinutes()===0&&r.getUTCSeconds()===0?new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()+1)):new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()))}static toUtcEndOfDay(t){let r=new Date(t),o=this.toUtcMidnight(r);return new Date(o.getTime()+24*60*60*1e3-1)}};var qe=require("@radix-ui/react-slot"),Je=require("class-variance-authority"),Ke=I(require("react")),Xe=require("react/jsx-runtime"),ae=(0,Je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"Xe-10 px-4 py-2",icon:"Xe-10 w-10",lg:"Xe-11 rounded px-8",sm:"Xe-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),R=Ke.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},s)=>(0,Xe.jsx)(e?qe.Slot:"button",{className:y(ae({className:t,size:r,variant:o})),ref:s,...n}));R.displayName="Button";var q=I(require("@radix-ui/react-checkbox")),Ze=require("lucide-react"),Qe=I(require("react")),ne=Qe.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(q.Root,{className:y("peer Xe-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Xe.jsx)(q.Indicator,{className:y("flex items-center justify-center text-current"),children:(0,Xe.jsx)(Ze.Check,{className:"Xe-4 w-4"})})}));ne.displayName=q.Root.displayName;var ie=I(require("react")),B=I(require("@radix-ui/react-avatar"));var J=ie.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(B.Root,{ref:r,className:y("relative flex Xe-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));J.displayName=B.Root.displayName;var K=ie.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(B.Image,{ref:r,className:y("aspect-square Xe-full w-full",e),...t}));K.displayName=B.Image.displayName;var X=ie.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(B.Fallback,{ref:r,className:y("flex Xe-full w-full items-center justify-center rounded-full bg-muted",e),...t}));X.displayName=B.Fallback.displayName;var sr=(0,Je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function tt({className:e,variant:t,...r}){return(0,Xe.jsx)("div",{className:y(sr({variant:t}),e),...r})}var $=require("sonner"),at=require("next/navigation");function we({leaveRequests:e,onApprove:t,onReject:r}){let[o,n]=(0,ot.useState)([]),s=(0,at.useRouter)(),c=()=>{o.length===e.length?n([]):n(e.map(a=>a.id))},i=a=>{n(g=>g.includes(a)?g.filter(v=>v!==a):[...g,a])},u=async()=>{let a=await t(o);a.success?($.toast.success(a.message),s.refresh()):$.toast.error(`Error: ${a.message}`),n([])},x=async()=>{let a=await r(o);a.success?($.toast.success(a.message),s.refresh()):$.toast.error(`Error: ${a.message}`),n([])};return(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Xe.jsxs)("div",{className:"space-x-2",children:[(0,Xe.jsx)(R,{onClick:u,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Xe.jsx)(R,{onClick:x,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Xe.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Xe.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(ne,{id:"select-all",checked:o.length===e.length,onCheckedChange:c,className:"border-accent"}),(0,Xe.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Xe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(a=>(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(ne,{id:`select-${a.id}`,checked:o.includes(a.id),onCheckedChange:()=>i(a.id),className:"border-accent"}),(0,Xe.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Xe.jsxs)(J,{className:"Xe-10 w-10",children:[(0,Xe.jsx)(K,{src:a.userImage,alt:a.userName}),(0,Xe.jsx)(X,{children:a.userName.split(" ").map(g=>g[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-3",children:(0,Xe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:a.userName})})]})]}),(0,Xe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Xe.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(a.startDate).toLocaleDateString(),a.startDate!==a.endDate&&` - ${new Date(a.endDate).toLocaleDateString()}`,a.leaveType!="Full Day"&&` (${a.leaveType})`,` - ${a.totalDays} day${a.totalDays!==1?"s":""}`]}),(0,Xe.jsx)(tt,{variant:a.status==="approved"?"default":a.status==="rejected"?"destructive":"secondary",children:a.status})]})]})},a.id))]})}),(0,Xe.jsx)($.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var st=I(require("react")),Ne=I(require("@radix-ui/react-label"));var nr=(0,Je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Z=st.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(Ne.Root,{ref:r,className:y(nr(),e),...t}));Z.displayName=Ne.Root.displayName;var lt=require("react-day-picker");function ce({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,Xe.jsx)(lt.DayPicker,{showOutsideDays:r,weekStartsOn:1,className:y("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(ae({variant:"outline"}),"Xe-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(ae({variant:"ghost"}),"Xe-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}ce.displayName="Calendar";var dt=I(require("react")),L=I(require("@radix-ui/react-popover"));var Pe=L.Root,ke=L.Trigger;var de=dt.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},n)=>(0,Xe.jsx)(L.Portal,{children:(0,Xe.jsx)(L.Content,{ref:n,align:t,sideOffset:r,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));de.displayName=L.Content.displayName;var De=require("date-fns");var mt=[new Date(2025,0,1),new Date(2025,3,18),new Date(2025,3,21),new Date(2025,4,5),new Date(2025,4,26),new Date(2025,7,25),new Date(2025,11,25),new Date(2025,11,26),new Date(2026,0,1),new Date(2026,3,3),new Date(2026,3,6),new Date(2026,4,4),new Date(2026,4,25),new Date(2026,7,31),new Date(2026,11,25),new Date(2026,11,28)];var Q=e=>{let t=e.getDay()===0,r=e.getDay()===6,o=mt.some(n=>n.toISOString()===e.toISOString());return t||r||o},pt=(e,t,r=!1)=>{let o=new Date(e),n=new Date(t),s=0;if(r&&!Q(o))return .5;for(;o<=n;)Q(o)||s++,o.setDate(o.getDate()+1);return s},ut=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var ir=({options:e,value:t,onChange:r,disabled:o=[]})=>(0,Xe.jsx)("div",{className:"flex space-x-2",children:e.map((n,s)=>(0,Xe.jsx)(R,{type:"button",variant:t===n?"default":"outline",onClick:()=>r(n),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:n},n))});function Se({remainingDays:e,submitLeaveRequest:t}){let r=d=>new Date(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0)),[o,n]=(0,ot.useState)(()=>r(new Date)),[s,c]=(0,ot.useState)(()=>r(new Date)),[i,u]=(0,ot.useState)("Full Day"),[x,a]=(0,ot.useState)(!1),[g,v]=(0,ot.useState)(1),D=(0,at.useRouter)();(0,ot.useEffect)(()=>{let d=ut(o,s);a(d),d&&u("Full Day")},[o,s]),(0,ot.useEffect)(()=>{if(!o||!s){v(0);return}let d=pt(o,s,i!=="Full Day");v(d)},[o,s,i]);let P=d=>{u(d)};return(0,Xe.jsxs)("div",{className:"max-w-2xl",children:[(0,Xe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Xe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Xe.jsxs)("form",{onSubmit:async d=>{if(d.preventDefault(),!o||!s){$.toast.error("Please select both start and end dates");return}let N=o?.getUTCFullYear(),S=new Date().getUTCFullYear();if(N===S&&g>e){$.toast.error("You do not have enough leave days remaining.");return}let M=new FormData;M.append("startDate",o.toISOString()),M.append("endDate",s.toISOString()),M.append("leaveType",i),M.append("duration",g.toString());let T=await(t||lr)(M);T.success?($.toast.success(T.message),n(void 0),c(void 0),u("Full Day"),D.refresh()):$.toast.error(`Error: ${T.message}`)},className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(Z,{htmlFor:"startDate",children:"Start Date"}),(0,Xe.jsxs)(Pe,{children:[(0,Xe.jsx)(ke,{asChild:!0,children:(0,Xe.jsxs)(R,{variant:"outline",className:y("w-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Xe.jsx)(Ze.CalendarIcon,{className:"mr-2 Xe-4 w-4"}),o?(0,De.format)(o,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(de,{className:"w-auto p-0",align:"start",children:(0,Xe.jsx)(ce,{mode:"single",selected:o,onSelect:d=>{if(d){let N=r(d);n(N),(!s||d>s)&&c(N)}},initialFocus:!0})})]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(Z,{htmlFor:"endDate",children:"End Date"}),(0,Xe.jsxs)(Pe,{children:[(0,Xe.jsx)(ke,{asChild:!0,children:(0,Xe.jsxs)(R,{variant:"outline",className:y("w-full justify-start text-left font-normal",!s&&"text-muted-foreground"),children:[(0,Xe.jsx)(Ze.CalendarIcon,{className:"mr-2 Xe-4 w-4"}),s?(0,De.format)(s,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(de,{className:"w-auto p-0",align:"start",children:(0,Xe.jsx)(ce,{mode:"single",selected:s,onSelect:d=>{d&&c(r(d))},disabled:d=>o?d<o:!1,initialFocus:!0})})]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(Z,{children:"Leave Type"}),(0,Xe.jsx)(ir,{options:["Full Day","Morning","Afternoon"],value:i,onChange:P,disabled:[!1,x,x]})]}),(0,Xe.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",g]}),(0,Xe.jsx)(R,{disabled:g<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Xe.jsx)($.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var lr=async e=>{let t={};return e.forEach((r,o)=>{t[o]=r}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function ft(...e){return e.filter(Boolean).join(" ")}function Me({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let n=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},u=a=>a.toLocaleString("default",{weekday:"short"}).charAt(0),x=r.map(a=>({...a,startDate:A.toUtcMidnight(a.startDate).toISOString(),endDate:A.toUtcEndOfDay(a.endDate).toISOString()}));return console.log("employeeIds",o.map(a=>a.id)),(0,Xe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Xe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Xe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Xe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Xe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(R,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(Ze.ChevronLeft,{className:"Xe-5 w-5","aria-hidden":"true"})]}),(0,Xe.jsx)(R,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Xe.jsxs)(R,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(Ze.ChevronRight,{className:"Xe-5 w-5","aria-hidden":"true"})]})]})]}),(0,Xe.jsx)("div",{className:"mt-8 flow-root",children:(0,Xe.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Xe.jsx)("div",{className:"max-Xe-[60vh] overflow-y-auto",children:(0,Xe.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Xe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-Xe border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(n)].map((a,g)=>{let v=new Date(e.getFullYear(),e.getMonth(),g+1);return(0,Xe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-Xe border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Q(v)?"bg-gray-200":""}`,children:[(0,Xe.jsx)("div",{children:u(v)}),(0,Xe.jsx)("div",{children:g+1})]},g)})]})}),(0,Xe.jsx)("tbody",{children:o.map((a,g)=>(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("td",{className:ft(g!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsxs)(J,{className:"Xe-11 w-11",children:[(0,Xe.jsx)(K,{src:a.image,alt:a.name}),(0,Xe.jsx)(X,{children:a.name.split(" ").map(v=>v[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-4",children:(0,Xe.jsx)("div",{className:"font-medium text-accent",children:a.name})})]})}),[...Array(n)].map((v,D)=>{let P=new Date(e.getFullYear(),e.getMonth(),D+1,1),l=x.find(d=>d.userId===a.id&&new Date(d.startDate)<=P&&new Date(d.endDate)>=P);return(0,Xe.jsx)("td",{className:ft(g!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Q(P)?"bg-gray-200":"bg-white"),children:(0,Xe.jsx)("div",{className:`Xe-6 w-6 mx-auto rounded-full overflow-hidden ${l?l.status==="approved"?"bg-green-500":l.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:l?`${a.name}: ${l.status} (${l.startDate} - ${l.endDate}) - ${l.leaveType}`:"",children:l&&l.leaveType!=="Full Day"&&(0,Xe.jsx)("div",{className:`Xe-3 w-6 ${l.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${a.id}-${D}`)})]},a.id))})]})})})})]})}function Te({currentDate:e,setCurrentDate:t,holidays:r}){let[o,n]=(0,ot.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,c=Array.from({length:42},(a,g)=>{let v=new Date(e.getFullYear(),e.getMonth(),g-s+1,e.getHours()),D=r.filter(P=>A.toUtcMidnight(new Date(P.startDate))<=v&&A.toUtcEndOfDay(new Date(P.endDate))>=v);return{date:v,isCurrentMonth:v.getMonth()===e.getMonth(),isToday:v.toDateString()===new Date().toDateString(),holidays:D}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},u=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},x=()=>{t(new Date)};return(0,Xe.jsxs)("div",{className:"lg:flex lg:Xe-full lg:flex-col",children:[(0,Xe.jsxs)("header",{className:"flex items-center justify-between border-Xe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Xe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Xe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Xe.jsx)("div",{className:"flex items-center",children:(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(R,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(Ze.ChevronLeft,{className:"Xe-5 w-5","aria-hidden":"true"})]}),(0,Xe.jsx)(R,{variant:"outline",onClick:x,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Xe.jsxs)(R,{onClick:u,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(Ze.ChevronRight,{className:"Xe-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Xe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Xe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"De"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Xe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Xe.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:c.map(a=>(0,Xe.jsxs)("div",{className:y(a.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Xe.jsx)("time",{dateTime:a.date.toISOString(),className:y("flex Xe-6 w-6 items-center justify-center rounded-full",a.isToday&&"bg-indigo-600 font-semibold text-white"),children:a.date.getDate()}),a.holidays.length>0&&(0,Xe.jsx)("ol",{className:"mt-2 space-y-1 overflow-visible",children:a.holidays.map(g=>(0,Xe.jsx)("li",{className:"overflow-visible",children:(0,Xe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${g.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:g.userName})},g.id))})]},a.date.toISOString()))}),(0,Xe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:c.map(a=>(0,Xe.jsxs)("button",{type:"button",className:y(a.isCurrentMonth?"bg-white":"bg-gray-50",(a.date===o||a.isToday)&&"font-semibold",a.date===o&&"text-white",!a.date&&a.isToday&&"text-indigo-600",a.date!==o&&a.isCurrentMonth&&!a.isToday&&"text-gray-900",a.date!==o&&!a.isCurrentMonth&&!a.isToday&&"text-gray-500","flex Xe-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Xe.jsx)("time",{dateTime:a.date.toISOString(),className:y("ml-auto",a.date===o&&a.isToday&&"flex Xe-6 w-6 items-center justify-center rounded-full bg-indigo-600",a.date===o&&!a.isToday&&"flex Xe-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:a.date.getDate()}),(0,Xe.jsxs)("span",{className:"sr-only",children:[a.holidays.length," holidays"]}),a.holidays.length>0&&(0,Xe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:a.holidays.map(g=>(0,Xe.jsx)("span",{className:`mx-0.5 mb-1 Xe-1.5 w-1.5 rounded-full ${g.status==="approved"?"bg-green-500":"bg-gray-500"}`},g.id))})]},a.date.toISOString()))})]})]})]})}var _=require("lucide-react");function vt(...e){return e.filter(Boolean).join(" ")}function cr({holidays:e,currentUser:t,currentDate:r,leaveApprovals:o,employees:n,submitLeaveRequest:s,approveLeave:c,rejectLeave:i}){let[u,x]=(0,ot.useState)("Calendar View"),a=(0,at.useRouter)(),g=!1,v=A.toUtcMidnight((0,De.parseISO)(r)),D=async l=>{let d=(0,De.format)(l,"dd-MM-yyyy"),N=new URL(window.location.href);return N.searchParams.set("date",d),a.push(N.toString()),{success:!0}};if(g)return(0,Xe.jsx)("div",{className:"flex justify-center items-center Xe-screen",children:(0,Xe.jsx)("div",{className:"animate-spin rounded-full Xe-32 w-32 border-t-2 border-Xe-2 border-gray-900"})});let P=[{name:"Grid View",icon:_.Grid,current:u==="Grid View"},{name:"Calendar View",icon:_.CalendarDays,current:u==="Calendar View"},{name:"Request Leave",icon:_.PlusCircle,current:u==="Request Leave"},{name:"Approve Leave",icon:_.CheckSquare,current:u==="Approve Leave"}];return(0,Xe.jsxs)("div",{className:"container mx-auto p-4 Xe-full",children:[(0,Xe.jsxs)("div",{className:"mb-8",children:[(0,Xe.jsxs)("div",{className:"sm:hidden",children:[(0,Xe.jsx)("select",{value:u,onChange:l=>x(l.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:P.map(l=>(0,Xe.jsx)("option",{children:l.name},l.name))}),(0,Xe.jsx)(Ze.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 Xe-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Xe.jsx)("div",{className:"hidden sm:block",children:(0,Xe.jsx)("div",{className:"border-Xe border-gray-200",children:(0,Xe.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:P.map(l=>(0,Xe.jsxs)("a",{onClick:()=>{(l.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&x(l.name)},className:vt(l.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",l.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Xe-2 py-4 px-1 text-sm font-medium"),"aria-current":l.current?"page":void 0,children:[(0,Xe.jsx)(l.icon,{className:vt(l.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 Xe-5 w-5"),"aria-hidden":"true"}),(0,Xe.jsx)("span",{children:l.name})]},l.name))})})})]}),u==="Grid View"&&(0,Xe.jsx)(Me,{currentDate:v,setCurrentDate:D,holidays:e,employees:n}),u==="Calendar View"&&(0,Xe.jsx)(Te,{currentDate:v,setCurrentDate:D,holidays:e}),u==="Request Leave"&&(0,Xe.jsx)(Se,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:l=>s?s(l):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),u==="Approve Leave"&&(0,Xe.jsx)(we,{leaveRequests:o,onApprove:l=>c?c(l):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:l=>i?i(l):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}0&&(module.exports={ApproveLeave,CalendarView,HolidayGrid,HolidayTracker,RequestLeave});
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-5EKGFFJD.mjs";import{a}from"../../chunk-TZKQXT7Y.mjs";import{a as d}from"../../chunk-X2JWNPWT.mjs";import{a as c}from"../../chunk-XGGWZIPM.mjs";import{a as b}from"../../chunk-IXLFVFIK.mjs";import"../../chunk-PC6TVU7J.mjs";import"../../chunk-LYPWYO4W.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ApproveLeave,d as CalendarView,c as HolidayGrid,e as HolidayTracker,b as RequestLeave};
1
+ import{a as e}from"../../chunk-NFCZWXCY.mjs";import{a}from"../../chunk-N25B5TQ5.mjs";import{a as d}from"../../chunk-X2JWNPWT.mjs";import{a as c}from"../../chunk-V4OXGW5U.mjs";import{a as b}from"../../chunk-M27MHVAD.mjs";import"../../chunk-PC6TVU7J.mjs";import"../../chunk-LYPWYO4W.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ApproveLeave,d as CalendarView,c as HolidayGrid,e as HolidayTracker,b as RequestLeave};
@@ -1 +1 @@
1
- import{a,b,c}from"../../chunk-SPAOEUCG.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-FRXZ2OKW.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as Footer,b as HeaderTop,c as TitleSlide};
1
+ import{a,b,c}from"../../chunk-7EH37DDS.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-IJIGVNMK.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-GLKM2IVW.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-LF55USCD.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-6A3V5BMY.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as Footer,b as HeaderTop,c as TitleSlide};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a,b,c}from"../../chunk-2VOOH4YJ.mjs";import"../../chunk-SPAOEUCG.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-Q7KKN6MH.mjs";import"../../chunk-RUZVSK25.mjs";import"../../chunk-TUACRDU3.mjs";import"../../chunk-FRXZ2OKW.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as FlowPrintable,c as PagePrintable,a as Printable};
2
+ "use strict";import{a,b,c}from"../../chunk-X4OJL2XY.mjs";import"../../chunk-7EH37DDS.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-XLR745ZW.mjs";import"../../chunk-ORTR2DBI.mjs";import"../../chunk-PV3354CE.mjs";import"../../chunk-IJIGVNMK.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-GLKM2IVW.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-LF55USCD.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-6A3V5BMY.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as FlowPrintable,c as PagePrintable,a as Printable};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-6DQ7FEQQ.mjs";import"../../chunk-SPAOEUCG.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-RULSHTXR.mjs";import"../../chunk-K4MFTVNB.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-EPTHSTUM.mjs";import"../../chunk-JCH2CCQ7.mjs";import"../../chunk-RVRIMD6M.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-Q7KKN6MH.mjs";import"../../chunk-RUZVSK25.mjs";import"../../chunk-TUACRDU3.mjs";import"../../chunk-FRXZ2OKW.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-H7D3PZKE.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as SlideShow};
2
+ "use strict";import{a}from"../../chunk-7ZBKF576.mjs";import"../../chunk-7EH37DDS.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-RULSHTXR.mjs";import"../../chunk-MBZHBKIS.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-EPTHSTUM.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-JCH2CCQ7.mjs";import"../../chunk-RVRIMD6M.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-XLR745ZW.mjs";import"../../chunk-ORTR2DBI.mjs";import"../../chunk-PV3354CE.mjs";import"../../chunk-IJIGVNMK.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-GLKM2IVW.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-LF55USCD.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-H7D3PZKE.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-6A3V5BMY.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as SlideShow};
@@ -1 +1 @@
1
- import{a as b}from"../../chunk-6DQ7FEQQ.mjs";import{a as d}from"../../chunk-L2CGDHVO.mjs";import{a}from"../../chunk-CSWXKGJE.mjs";import{a as c}from"../../chunk-KCCDR7HB.mjs";import{a as e,b as f,c as g}from"../../chunk-2VOOH4YJ.mjs";import"../../chunk-SPAOEUCG.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-RULSHTXR.mjs";import"../../chunk-K4MFTVNB.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-EPTHSTUM.mjs";import"../../chunk-JCH2CCQ7.mjs";import"../../chunk-RVRIMD6M.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-Q7KKN6MH.mjs";import"../../chunk-RUZVSK25.mjs";import"../../chunk-TUACRDU3.mjs";import"../../chunk-FRXZ2OKW.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-H7D3PZKE.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as FeatureGrid,f as FlowPrintable,c as NewsGrid,g as PagePrintable,e as Printable,b as SlideShow,d as TextAndImages};
1
+ import{a as e,b as f,c as g}from"../../chunk-X4OJL2XY.mjs";import{a as b}from"../../chunk-7ZBKF576.mjs";import{a as d}from"../../chunk-L2CGDHVO.mjs";import{a}from"../../chunk-CSWXKGJE.mjs";import{a as c}from"../../chunk-KCCDR7HB.mjs";import"../../chunk-7EH37DDS.mjs";import"../../chunk-RIRZRO6U.mjs";import"../../chunk-3SZR5DC2.mjs";import"../../chunk-VMAPGGGW.mjs";import"../../chunk-5BT4EWU5.mjs";import"../../chunk-SDMPCZ2S.mjs";import"../../chunk-RULSHTXR.mjs";import"../../chunk-MBZHBKIS.mjs";import"../../chunk-T5HJS6OF.mjs";import"../../chunk-EPTHSTUM.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-JCH2CCQ7.mjs";import"../../chunk-RVRIMD6M.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-XLR745ZW.mjs";import"../../chunk-ORTR2DBI.mjs";import"../../chunk-PV3354CE.mjs";import"../../chunk-IJIGVNMK.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-GLKM2IVW.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-LF55USCD.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-H7D3PZKE.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-6A3V5BMY.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as FeatureGrid,f as FlowPrintable,c as NewsGrid,g as PagePrintable,e as Printable,b as SlideShow,d as TextAndImages};