cortex-react-components 2.0.2 → 2.0.4

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 (469) hide show
  1. package/dist/{chunk-BPTRLIWH.mjs → chunk-2JBVESQ2.mjs} +1 -1
  2. package/dist/{chunk-YVI5URXW.mjs → chunk-2NMVE5M4.mjs} +1 -1
  3. package/dist/{chunk-GQVNL534.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  4. package/dist/{chunk-ZFBEBFCI.mjs → chunk-3KITWLRN.mjs} +1 -1
  5. package/dist/{chunk-VNMKCJBJ.mjs → chunk-4VWCJYTN.mjs} +1 -1
  6. package/dist/{chunk-RENPEB5D.mjs → chunk-4ZEATBUU.mjs} +1 -1
  7. package/dist/{chunk-KDSAOIPC.mjs → chunk-546LLRCZ.mjs} +1 -1
  8. package/dist/{chunk-S7SHOCHM.mjs → chunk-6SWKEZN6.mjs} +1 -1
  9. package/dist/{chunk-66WBIP2O.mjs → chunk-6UADPSC5.mjs} +1 -1
  10. package/dist/{chunk-6LZRVGXZ.mjs → chunk-77YVLEKT.mjs} +1 -1
  11. package/dist/{chunk-VN7TASR4.mjs → chunk-7SPSOAIQ.mjs} +1 -1
  12. package/dist/{chunk-VM25PG5R.mjs → chunk-A2AEX4YB.mjs} +1 -1
  13. package/dist/{chunk-HIHXHTK3.mjs → chunk-ABGNIQRP.mjs} +1 -1
  14. package/dist/{chunk-PANOPGUW.mjs → chunk-AVHFRD6D.mjs} +1 -1
  15. package/dist/{chunk-7A3BV5SJ.mjs → chunk-BA53AOCS.mjs} +1 -1
  16. package/dist/{chunk-6QSBVWNG.mjs → chunk-BADFWNRL.mjs} +1 -1
  17. package/dist/{chunk-ALI7Z4HH.mjs → chunk-CAKJOTEE.mjs} +1 -1
  18. package/dist/{chunk-3OKVKXQT.mjs → chunk-CK2TFJB2.mjs} +1 -1
  19. package/dist/{chunk-75WE6ZXB.mjs → chunk-CLGBBNRB.mjs} +1 -1
  20. package/dist/{chunk-KN65DDFI.mjs → chunk-CVLUVZR3.mjs} +1 -1
  21. package/dist/{chunk-CXV6AWOX.mjs → chunk-D3B2YO7G.mjs} +1 -1
  22. package/dist/{chunk-RTAA6HZ2.mjs → chunk-DA2H3N3G.mjs} +1 -1
  23. package/dist/{chunk-BWTA3BKK.mjs → chunk-DLUWDQSW.mjs} +1 -1
  24. package/dist/{chunk-SRCJSWQF.mjs → chunk-EOXVYLPB.mjs} +1 -1
  25. package/dist/{chunk-CG2SBWT7.mjs → chunk-EW64VNFT.mjs} +1 -1
  26. package/dist/{chunk-AV5SA2JB.mjs → chunk-EZEZEBLI.mjs} +1 -1
  27. package/dist/{chunk-BXHNSQWH.mjs → chunk-FOISWNF5.mjs} +1 -1
  28. package/dist/{chunk-E37JPSPB.mjs → chunk-FRKGQKEM.mjs} +1 -1
  29. package/dist/{chunk-XHMVS6GT.mjs → chunk-FV3W3WL7.mjs} +1 -1
  30. package/dist/{chunk-IN55EBPV.mjs → chunk-GS2VFNHY.mjs} +1 -1
  31. package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
  32. package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
  33. package/dist/{chunk-OFXZKSCN.mjs → chunk-IPXOPQPI.mjs} +1 -1
  34. package/dist/{chunk-LALFQI3P.mjs → chunk-IV5HRCWW.mjs} +1 -1
  35. package/dist/{chunk-IEUDWPYZ.mjs → chunk-JXFCIH2E.mjs} +1 -1
  36. package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
  37. package/dist/{chunk-QQ36F4C4.mjs → chunk-KOXC4RIH.mjs} +1 -1
  38. package/dist/{chunk-QRJOCPHI.mjs → chunk-KTET6W73.mjs} +1 -1
  39. package/dist/{chunk-EGHHWTFA.mjs → chunk-LG2AWHTC.mjs} +1 -1
  40. package/dist/{chunk-6VPRGZON.mjs → chunk-MNI6AM7Q.mjs} +1 -1
  41. package/dist/{chunk-IQKWNF37.mjs → chunk-MXFCHKIK.mjs} +1 -1
  42. package/dist/{chunk-KLEXMJR2.mjs → chunk-NZS3XKXU.mjs} +1 -1
  43. package/dist/{chunk-XP4XLR2J.mjs → chunk-OB5WMODY.mjs} +1 -1
  44. package/dist/{chunk-C4UPRDGQ.mjs → chunk-OCYVZBS7.mjs} +1 -1
  45. package/dist/{chunk-XCCL5CIT.mjs → chunk-P6VHSIQK.mjs} +1 -1
  46. package/dist/{chunk-UKYWLNKE.mjs → chunk-PEOZPVWF.mjs} +1 -1
  47. package/dist/{chunk-ZDOLX6I2.mjs → chunk-PEQOQ7BK.mjs} +1 -1
  48. package/dist/{chunk-GLLR2OOI.mjs → chunk-PFLESLNT.mjs} +1 -1
  49. package/dist/{chunk-TAYYCGWX.mjs → chunk-PM35MWKG.mjs} +1 -1
  50. package/dist/{chunk-AQLCYCLG.mjs → chunk-PXPSM7OQ.mjs} +1 -1
  51. package/dist/{chunk-UDPQ4MXR.mjs → chunk-R7LPCFUJ.mjs} +1 -1
  52. package/dist/{chunk-4TVYOBYI.mjs → chunk-RK2CAIEF.mjs} +1 -1
  53. package/dist/{chunk-BHKBIYMM.mjs → chunk-RUOYGMOR.mjs} +1 -1
  54. package/dist/{chunk-43IUXVGW.mjs → chunk-SNZ5BAQQ.mjs} +1 -1
  55. package/dist/chunk-SRUG246N.mjs +4 -0
  56. package/dist/{chunk-OFFFATED.mjs → chunk-TCXAETN2.mjs} +1 -1
  57. package/dist/{chunk-NOHO4XDS.mjs → chunk-TO2UDP5T.mjs} +1 -1
  58. package/dist/{chunk-SG5QL77J.mjs → chunk-TO7KJNKC.mjs} +1 -1
  59. package/dist/{chunk-QDYF4Z2F.mjs → chunk-TUI4S4GI.mjs} +1 -1
  60. package/dist/{chunk-MWXZUSRT.mjs → chunk-TWGRQW4P.mjs} +1 -1
  61. package/dist/{chunk-N25B5TQ5.mjs → chunk-TZKQXT7Y.mjs} +1 -1
  62. package/dist/{chunk-DYHW653F.mjs → chunk-UCHNFFXQ.mjs} +1 -1
  63. package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
  64. package/dist/{chunk-D6W4VUUS.mjs → chunk-VIPT3OVD.mjs} +1 -1
  65. package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
  66. package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
  67. package/dist/{chunk-6U2XBCMC.mjs → chunk-WBJENB4Y.mjs} +1 -1
  68. package/dist/{chunk-RIK7YEA6.mjs → chunk-WG6ATCG3.mjs} +1 -1
  69. package/dist/{chunk-4TU4OACM.mjs → chunk-WN2LPOQP.mjs} +1 -1
  70. package/dist/{chunk-ZLSF5YXT.mjs → chunk-XGRRLABA.mjs} +1 -1
  71. package/dist/{chunk-MGJTWNXD.mjs → chunk-XR55FO72.mjs} +1 -1
  72. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  73. package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
  74. package/dist/common-types.mjs +1 -1
  75. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  76. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  77. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +1 -1
  78. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  79. package/dist/components/AdvancedComponents/index.mjs +1 -1
  80. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  81. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  82. package/dist/components/AdvancedComponents/sidebar.mjs +1 -1
  83. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  84. package/dist/components/AdvancedComponents/theme-provider.mjs +3 -1
  85. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  86. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  87. package/dist/components/Blocks/Banner.js +1 -2
  88. package/dist/components/Blocks/Banner.mjs +1 -1
  89. package/dist/components/Blocks/CallToAction.js +1 -2
  90. package/dist/components/Blocks/CallToAction.mjs +1 -1
  91. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  92. package/dist/components/Blocks/Code.client.mjs +1 -1
  93. package/dist/components/Blocks/Code.mjs +1 -1
  94. package/dist/components/Blocks/CollapsibleArea.js +1 -2
  95. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  96. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  97. package/dist/components/Blocks/Content.js +1 -2
  98. package/dist/components/Blocks/Content.mjs +1 -1
  99. package/dist/components/Blocks/CopyButton.mjs +1 -1
  100. package/dist/components/Blocks/FeaturesBlock.js +1 -2
  101. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  102. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  103. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  104. package/dist/components/Blocks/InfoTile.mjs +1 -1
  105. package/dist/components/Blocks/Insight.mjs +1 -1
  106. package/dist/components/Blocks/MOTD.mjs +1 -1
  107. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  108. package/dist/components/Blocks/OrgChart.mjs +1 -1
  109. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  110. package/dist/components/Blocks/RelatedPosts.js +1 -2
  111. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  112. package/dist/components/Blocks/RenderBlocks.js +1 -2
  113. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  114. package/dist/components/Blocks/ReusableContentBlock.js +1 -2
  115. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  116. package/dist/components/Blocks/WhyUs.mjs +1 -1
  117. package/dist/components/Blocks/index.js +1 -2
  118. package/dist/components/Blocks/index.mjs +1 -1
  119. package/dist/components/CRM/CogeBoard.mjs +1 -1
  120. package/dist/components/CRM/DealCard.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/KanbanColumn.mjs +1 -1
  124. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  125. package/dist/components/CRM/NewDealForm.mjs +1 -1
  126. package/dist/components/CRM/index.mjs +1 -1
  127. package/dist/components/CRM/mockData.mjs +1 -1
  128. package/dist/components/Cards/ContentCard.js +1 -2
  129. package/dist/components/Cards/ContentCard.mjs +1 -1
  130. package/dist/components/Cards/CustomerCard.mjs +1 -1
  131. package/dist/components/Cards/EventCard.mjs +1 -1
  132. package/dist/components/Cards/FeatureCard.js +1 -2
  133. package/dist/components/Cards/FeatureCard.mjs +1 -1
  134. package/dist/components/Cards/HeroCard.mjs +1 -1
  135. package/dist/components/Cards/Image.mjs +1 -1
  136. package/dist/components/Cards/PricingCard.mjs +1 -1
  137. package/dist/components/Cards/ProjectCard.mjs +1 -1
  138. package/dist/components/Cards/ServiceCard.mjs +1 -1
  139. package/dist/components/Cards/index.js +4 -5
  140. package/dist/components/Cards/index.mjs +1 -1
  141. package/dist/components/Chat/CAPABILITIES_README.mjs +1 -1
  142. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  143. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  144. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  145. package/dist/components/Chat/ChatMessage.mjs +1 -1
  146. package/dist/components/Chat/CopilotInterface.d.ts +1 -1
  147. package/dist/components/Chat/CopilotInterface.js +1 -1
  148. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  149. package/dist/components/Chat/EnhancedChatInterface.mjs +1 -1
  150. package/dist/components/Chat/ai-chat-interface.mjs +3 -1
  151. package/dist/components/Chat/capabilities-config.mjs +1 -1
  152. package/dist/components/Chat/capabilities-data.mjs +1 -1
  153. package/dist/components/Chat/capabilities.mjs +1 -1
  154. package/dist/components/Chat/capability-menu.mjs +1 -1
  155. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  156. package/dist/components/Chat/hooks/useTask.mjs +1 -1
  157. package/dist/components/Chat/index.js +2 -2
  158. package/dist/components/Chat/index.mjs +1 -1
  159. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  160. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  161. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  162. package/dist/components/DeliveryLead/index.mjs +1 -1
  163. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  164. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  165. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  166. package/dist/components/DigitalColleagues/MainPage.mjs +3 -1
  167. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  168. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +3 -1
  169. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  170. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  171. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  172. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  173. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  174. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  175. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  176. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  177. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  178. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  179. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  180. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  181. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  182. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  183. package/dist/components/HeaderFooter/Header.mjs +1 -1
  184. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  185. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  186. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  187. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  188. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  189. package/dist/components/HeaderFooter/SectionHeading.js +1 -2
  190. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  191. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  192. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  193. package/dist/components/HeaderFooter/index.mjs +1 -1
  194. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  195. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  196. package/dist/components/Heros/HighImpact/index.js +1 -2
  197. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  198. package/dist/components/Heros/LowImpact/index.js +1 -2
  199. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  200. package/dist/components/Heros/MediumImpact/index.js +1 -2
  201. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  202. package/dist/components/Heros/PostHero/index.mjs +1 -1
  203. package/dist/components/Heros/RenderHero.js +1 -2
  204. package/dist/components/Heros/RenderHero.mjs +1 -1
  205. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  206. package/dist/components/Heros/index.js +1 -2
  207. package/dist/components/Heros/index.mjs +1 -1
  208. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  209. package/dist/components/Holidays/CalendarView.mjs +1 -1
  210. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  211. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  212. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  213. package/dist/components/Holidays/index.mjs +1 -1
  214. package/dist/components/Icons/ScrollDownIcon.mjs +3 -1
  215. package/dist/components/Images/DynamicIcon.mjs +1 -1
  216. package/dist/components/Images/IconIndex.mjs +1 -1
  217. package/dist/components/Images/customIconList.mjs +1 -1
  218. package/dist/components/Images/index.mjs +1 -1
  219. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  220. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  221. package/dist/components/Layouts/NewsList.mjs +1 -1
  222. package/dist/components/Layouts/OutputHeaderFooter.js +2 -3
  223. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  224. package/dist/components/Layouts/Print.js +2 -3
  225. package/dist/components/Layouts/Print.mjs +1 -1
  226. package/dist/components/Layouts/SlideShow.js +3 -4
  227. package/dist/components/Layouts/SlideShow.mjs +1 -1
  228. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  229. package/dist/components/Layouts/index.js +5 -6
  230. package/dist/components/Layouts/index.mjs +1 -1
  231. package/dist/components/Menus/Categories.mjs +1 -1
  232. package/dist/components/Menus/Filter.mjs +1 -1
  233. package/dist/components/Menus/Pagination.mjs +1 -1
  234. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  235. package/dist/components/Menus/RelatedContent.mjs +1 -1
  236. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  237. package/dist/components/Menus/SidebarRight.mjs +1 -1
  238. package/dist/components/Menus/index.mjs +1 -1
  239. package/dist/components/Other/AnimatedBorder.mjs +3 -1
  240. package/dist/components/Other/Container.mjs +1 -1
  241. package/dist/components/Other/CustomLink.mjs +1 -1
  242. package/dist/components/Other/PageShape.mjs +1 -1
  243. package/dist/components/Other/ThemeProvider.mjs +1 -1
  244. package/dist/components/Other/index.mjs +1 -1
  245. package/dist/components/Payload/Card/index.mjs +1 -1
  246. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  247. package/dist/components/Payload/Link/index.mjs +1 -1
  248. package/dist/components/Payload/Logo/index.mjs +1 -1
  249. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  250. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  251. package/dist/components/Payload/Media/index.mjs +1 -1
  252. package/dist/components/Payload/PageRange/index.mjs +1 -1
  253. package/dist/components/Payload/Pagination/index.mjs +1 -1
  254. package/dist/components/Payload/RichText/index.js +1 -2
  255. package/dist/components/Payload/RichText/index.mjs +1 -1
  256. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  257. package/dist/components/Payload/RichText/serialize.js +1 -2
  258. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  259. package/dist/components/Payload/index.js +1 -2
  260. package/dist/components/Payload/index.mjs +1 -1
  261. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  262. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  263. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  264. package/dist/components/Projects/EpicFilter.mjs +1 -1
  265. package/dist/components/Projects/EpicsView.mjs +1 -1
  266. package/dist/components/Projects/FileView.mjs +1 -1
  267. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  268. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  269. package/dist/components/Projects/PlanningView.mjs +1 -1
  270. package/dist/components/Projects/ProjectPage.mjs +3 -1
  271. package/dist/components/Projects/ProjectView.mjs +1 -1
  272. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  273. package/dist/components/Projects/TaskCard.mjs +1 -1
  274. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  275. package/dist/components/Projects/TaskSelect.mjs +1 -1
  276. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  277. package/dist/components/Projects/TasksView.mjs +1 -1
  278. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  279. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  280. package/dist/components/Projects/business-units.mjs +1 -1
  281. package/dist/components/Projects/file-list.mjs +1 -1
  282. package/dist/components/Projects/project-card.mjs +1 -1
  283. package/dist/components/Projects/project-form.mjs +1 -1
  284. package/dist/components/Projects/team-card.mjs +1 -1
  285. package/dist/components/Projects/team-switcher-bar.mjs +3 -1
  286. package/dist/components/Projects/test-data.mjs +1 -1
  287. package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +1 -1
  288. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +1 -1
  289. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +1 -1
  290. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +1 -1
  291. package/dist/components/dc-temp/TEAMS_README.mjs +1 -1
  292. package/dist/components/dc-temp/creative.mjs +1 -1
  293. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  294. package/dist/components/dc-temp/enhanced-header.mjs +3 -1
  295. package/dist/components/dc-temp/headerlogo.mjs +1 -1
  296. package/dist/components/dc-temp/icon-mapper.mjs +1 -1
  297. package/dist/components/dc-temp/index.mjs +1 -1
  298. package/dist/components/dc-temp/knowledge-browser.mjs +1 -1
  299. package/dist/components/dc-temp/knowledge-search.mjs +1 -1
  300. package/dist/components/dc-temp/loading.mjs +1 -1
  301. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  302. package/dist/components/dc-temp/mock-data.mjs +1 -1
  303. package/dist/components/dc-temp/sidebar.mjs +3 -1
  304. package/dist/components/dc-temp/utils.mjs +1 -1
  305. package/dist/components/index.d.ts +0 -1
  306. package/dist/components/index.js +11 -12
  307. package/dist/components/index.mjs +1 -1
  308. package/dist/components/ui/alert.mjs +1 -1
  309. package/dist/components/ui/avatar.mjs +1 -1
  310. package/dist/components/ui/badge.mjs +1 -1
  311. package/dist/components/ui/breadcrumb.mjs +1 -1
  312. package/dist/components/ui/button.mjs +1 -1
  313. package/dist/components/ui/calendar.mjs +1 -1
  314. package/dist/components/ui/card.mjs +1 -1
  315. package/dist/components/ui/checkbox.mjs +1 -1
  316. package/dist/components/ui/collapsible.mjs +1 -1
  317. package/dist/components/ui/command.mjs +1 -1
  318. package/dist/components/ui/dialog.mjs +1 -1
  319. package/dist/components/ui/dropdown-menu.mjs +1 -1
  320. package/dist/components/ui/hover-card.mjs +1 -1
  321. package/dist/components/ui/index.mjs +1 -1
  322. package/dist/components/ui/input.mjs +1 -1
  323. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  324. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  325. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  326. package/dist/components/ui/label.mjs +1 -1
  327. package/dist/components/ui/pagination.mjs +1 -1
  328. package/dist/components/ui/popover.mjs +1 -1
  329. package/dist/components/ui/progress.mjs +1 -1
  330. package/dist/components/ui/scroll-area.mjs +1 -1
  331. package/dist/components/ui/select.mjs +1 -1
  332. package/dist/components/ui/separator.mjs +1 -1
  333. package/dist/components/ui/sheet.mjs +1 -1
  334. package/dist/components/ui/sidebar.mjs +1 -1
  335. package/dist/components/ui/skeleton.mjs +1 -1
  336. package/dist/components/ui/switch.mjs +1 -1
  337. package/dist/components/ui/tabs.mjs +1 -1
  338. package/dist/components/ui/textarea.mjs +1 -1
  339. package/dist/components/ui/toast.mjs +1 -1
  340. package/dist/components/ui/toaster.mjs +1 -1
  341. package/dist/components/ui/toggle-group.mjs +1 -1
  342. package/dist/components/ui/toggle.mjs +1 -1
  343. package/dist/components/ui/tooltip.mjs +1 -1
  344. package/dist/constants.mjs +1 -1
  345. package/dist/fonts/Manrope-Bold.mjs +1 -1
  346. package/dist/fonts/Manrope-ExtraBold.mjs +1 -1
  347. package/dist/fonts/Manrope-ExtraLight.mjs +1 -1
  348. package/dist/fonts/Manrope-Light.mjs +1 -1
  349. package/dist/fonts/Manrope-Medium.mjs +1 -1
  350. package/dist/fonts/Manrope-Regular.mjs +1 -1
  351. package/dist/fonts/Manrope-SemiBold.mjs +1 -1
  352. package/dist/hooks/index.mjs +1 -1
  353. package/dist/hooks/use-local-storage.mjs +1 -1
  354. package/dist/hooks/use-mobile.mjs +1 -1
  355. package/dist/hooks/use-toast.mjs +1 -1
  356. package/dist/images/cortex-reply-bw.mjs +1 -1
  357. package/dist/images/cortex-reply-dark.mjs +1 -1
  358. package/dist/images/cortex-reply-gradient.mjs +1 -1
  359. package/dist/images/cortex-reply-light.mjs +1 -1
  360. package/dist/images/cortex-reply.mjs +1 -1
  361. package/dist/images/hero/hero-3.mjs +1 -1
  362. package/dist/images/hero/image-hero1.mjs +1 -1
  363. package/dist/images/hero/pattern-1.mjs +1 -1
  364. package/dist/images/hero/pattern-2.mjs +1 -1
  365. package/dist/index.js +16 -17
  366. package/dist/index.mjs +1 -1
  367. package/dist/metafile-cjs.json +1 -1
  368. package/dist/metafile-esm.json +1 -1
  369. package/dist/pages/Blog.js +1 -2
  370. package/dist/pages/Blog.mjs +1 -1
  371. package/dist/pages/Documentation.mjs +3 -1
  372. package/dist/pages/IndexPage.mjs +3 -1
  373. package/dist/pages/Intranet.mjs +1 -1
  374. package/dist/pages/LandingPage.js +3 -4
  375. package/dist/pages/LandingPage.mjs +3 -1
  376. package/dist/pages/Page.js +1 -2
  377. package/dist/pages/Page.mjs +3 -1
  378. package/dist/pages/Publish.js +5 -6
  379. package/dist/pages/Publish.mjs +1 -1
  380. package/dist/pages/Website.js +1 -2
  381. package/dist/pages/Website.mjs +1 -1
  382. package/dist/sections/AboutSection.js +1 -2
  383. package/dist/sections/AboutSection.mjs +1 -1
  384. package/dist/sections/BlogDetail.js +1 -2
  385. package/dist/sections/BlogDetail.mjs +1 -1
  386. package/dist/sections/BlogList.js +2 -3
  387. package/dist/sections/BlogList.mjs +1 -1
  388. package/dist/sections/BlogListSection.mjs +1 -1
  389. package/dist/sections/ContactSection.js +1 -2
  390. package/dist/sections/ContactSection.mjs +1 -1
  391. package/dist/sections/ImageSection.mjs +1 -1
  392. package/dist/sections/MainPageSection.mjs +1 -1
  393. package/dist/sections/PageSections.js +2 -3
  394. package/dist/sections/PageSections.mjs +1 -1
  395. package/dist/sections/PricingSection.js +1 -2
  396. package/dist/sections/PricingSection.mjs +1 -1
  397. package/dist/sections/ServiceDetail.js +1 -2
  398. package/dist/sections/ServiceDetail.mjs +1 -1
  399. package/dist/sections/ServiceDetailSection.js +1 -2
  400. package/dist/sections/ServiceDetailSection.mjs +1 -1
  401. package/dist/sections/ServiceSection.js +1 -2
  402. package/dist/sections/ServiceSection.mjs +1 -1
  403. package/dist/sections/form/index.d.ts +5 -1
  404. package/dist/sections/form/index.js +1 -2
  405. package/dist/sections/form/index.mjs +1 -1
  406. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  407. package/dist/sections/form/server/index.d.ts +2 -0
  408. package/dist/sections/form/server/index.js +4 -0
  409. package/dist/sections/form/server/index.mjs +1 -0
  410. package/dist/sections/index.d.ts +1 -0
  411. package/dist/sections/index.js +3 -4
  412. package/dist/sections/index.mjs +1 -1
  413. package/dist/styles/Colors.mjs +1 -1
  414. package/dist/styles/Typography.mjs +1 -1
  415. package/dist/test-data/capabilities.mjs +1 -1
  416. package/dist/tests/payload.mjs +1 -1
  417. package/dist/utils/AOSInit.mjs +1 -1
  418. package/dist/utils/BankHolidays.mjs +1 -1
  419. package/dist/utils/DaysUtil.mjs +1 -1
  420. package/dist/utils/canUseDOM.mjs +1 -1
  421. package/dist/utils/cn.mjs +1 -1
  422. package/dist/utils/formatDateTime.mjs +1 -1
  423. package/dist/utils/getTableOfContents.mjs +1 -1
  424. package/dist/utils/getURL.mjs +1 -1
  425. package/dist/utils/index.mjs +1 -1
  426. package/dist/utils/setStaggeredDelay.mjs +1 -1
  427. package/dist/utils/useClickableCard.mjs +1 -1
  428. package/package.json +7 -1
  429. package/dist/about-1-ANS44UVM.png +0 -0
  430. package/dist/about-2-NDWHP4QV.png +0 -0
  431. package/dist/about-3-RNUOVF6S.png +0 -0
  432. package/dist/about-4-V5ITRBOZ.png +0 -0
  433. package/dist/chunk-3ALU5XV6.mjs +0 -1
  434. package/dist/chunk-3MKCQLBY.mjs +0 -4
  435. package/dist/chunk-3RJA57BI.mjs +0 -4
  436. package/dist/chunk-3SK6PULC.mjs +0 -4
  437. package/dist/chunk-3TVLETYW.mjs +0 -1
  438. package/dist/chunk-3WPEAKCQ.mjs +0 -4
  439. package/dist/chunk-44QDT35M.mjs +0 -1
  440. package/dist/chunk-4BUBW5TX.mjs +0 -4
  441. package/dist/chunk-5C2TR5P3.mjs +0 -4
  442. package/dist/chunk-5ME75SQ2.mjs +0 -218
  443. package/dist/chunk-6AFX6PFG.mjs +0 -470
  444. package/dist/chunk-6XXAI7IR.mjs +0 -1
  445. package/dist/chunk-7DICAJS4.mjs +0 -1
  446. package/dist/chunk-A24IEDVI.mjs +0 -1
  447. package/dist/chunk-BUC3OG2I.mjs +0 -4
  448. package/dist/chunk-CA7JDZIQ.mjs +0 -4
  449. package/dist/chunk-DBVX4BDP.mjs +0 -4
  450. package/dist/chunk-H4X3VQIN.mjs +0 -4
  451. package/dist/chunk-IB6VPDZQ.mjs +0 -1
  452. package/dist/chunk-IZ3PDOST.mjs +0 -1
  453. package/dist/chunk-KGYX6TIY.mjs +0 -4
  454. package/dist/chunk-KSYES4GX.mjs +0 -1
  455. package/dist/chunk-KUVGGKGR.mjs +0 -4
  456. package/dist/chunk-M6LJ4BNZ.mjs +0 -1
  457. package/dist/chunk-N5SEZED7.mjs +0 -1
  458. package/dist/chunk-OJLQ6G4W.mjs +0 -4
  459. package/dist/chunk-PA3BZDTY.mjs +0 -245
  460. package/dist/chunk-PPZXBKTO.mjs +0 -4
  461. package/dist/chunk-TLBLUYXL.mjs +0 -1
  462. package/dist/chunk-U3ZHU3UY.mjs +0 -1
  463. package/dist/chunk-UG7D3VNG.mjs +0 -1
  464. package/dist/chunk-VBGNLDO6.mjs +0 -4
  465. package/dist/chunk-WV2LZOPM.mjs +0 -1
  466. package/dist/chunk-YX3BAJ2N.mjs +0 -1
  467. package/dist/graphql-NFIL2UYH.mjs +0 -177
  468. package/dist/pattern-1-B7SDCBJ3.png +0 -0
  469. package/dist/waves-6HGOFMRK.jpg +0 -0
@@ -1 +1 @@
1
- import{a as n}from"./chunk-AB43AQKL.mjs";import{a as b}from"./chunk-SRCJSWQF.mjs";import{a as u,b as m}from"./chunk-E4TE4NV6.mjs";import{a as o}from"./chunk-TVZOULLL.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{Calendar as y,Clock as w,User as C,Trash2 as S,BookOpen as D,Bug as L,Zap as T,AlertCircle as B,Loader2 as k,Check as I,X as A}from"lucide-react";import{jsx as a,jsxs as t}from"react/jsx-runtime";var G=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:D},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:B},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:L},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:T}],P=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],V=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],W=({task:s,epics:g,sprints:x,lastUpdated:v,onUpdateTask:r,onClose:f,onDelete:N,isUpdating:l=!1,isDeleting:p=!1,deleteState:d="idle"})=>{let J=e=>e.split(" ").map(c=>c[0]).join("").toUpperCase(),h=()=>d==="loading"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(k,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(I,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(A,{className:"h-3 w-3"}),"Delete failed"]}):t(i,{onClick:N,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:l||p,children:[a(S,{className:"h-3 w-3"}),"Delete Task"]});return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"space-y-4",style:{opacity:l?.6:1},children:[t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Status"}),a(n,{label:"",value:s.status,onValueChange:e=>r("status",e),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Type"}),a(u,{type:"single",value:s.type,onValueChange:e=>e&&r("type",e),className:"grid grid-cols-2 gap-1",disabled:l,children:G.map(e=>{let c=e.icon;return t(m,{value:e.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:[a(c,{className:"h-3 w-3"}),e.label]},e.value)})})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Priority"}),a(u,{type:"single",value:s.priority,onValueChange:e=>e&&r("priority",e),className:"grid grid-cols-3 gap-1",disabled:l,children:P.map(e=>a(m,{value:e.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:e.label},e.value))})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Story Points"}),a("input",{type:"number",min:"1",max:"100",value:s.points||1,onChange:e=>r("points",e.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Epic"}),a(n,{label:"",value:s.epicId,onValueChange:e=>r("epicId",e),options:(g||[]).map(e=>({value:e.id,label:e.name,color:e.color})),showColor:!0,disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Sprint"}),a(n,{label:"",value:s.sprintId||"none",onValueChange:e=>r("sprintId",e==="none"?"":e),options:[{value:"none",label:"No Sprint"},...(x||[]).map(e=>({value:e.id,label:`${e.name}${e.isActive?" (Active)":""}`}))],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Assignee"}),a(b,{label:"",value:s.assignee,onValueChange:e=>r("assignee",e),options:V,placeholder:"Search team members...",allowCustomValue:!0,disabled:l})]})]}),t("div",{className:"mt-auto pt-4 space-y-4",children:[t("div",{className:"space-y-2",children:[a(i,{onClick:f,variant:"outline",className:"w-full h-8 text-xs",disabled:l||p,children:"Close"}),h()]}),t("div",{className:"pt-4 border-t border-border space-y-2",children:[a("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(C,{className:"h-3 w-3"}),a("span",{children:"System"})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Created"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(y,{className:"h-3 w-3"}),a("span",{children:s.createdAt.toLocaleDateString()})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(w,{className:"h-3 w-3"}),t("span",{children:[v.toLocaleDateString()," at ",v.toLocaleTimeString()]})]})]})]})]})]})};export{W as a};
1
+ import{a as n}from"./chunk-AB43AQKL.mjs";import{a as b}from"./chunk-EOXVYLPB.mjs";import{a as u,b as m}from"./chunk-E4TE4NV6.mjs";import{a as o}from"./chunk-TVZOULLL.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{Calendar as y,Clock as w,User as C,Trash2 as S,BookOpen as D,Bug as L,Zap as T,AlertCircle as B,Loader2 as k,Check as I,X as A}from"lucide-react";import{jsx as a,jsxs as t}from"react/jsx-runtime";var G=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:D},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:B},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:L},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:T}],P=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],V=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],W=({task:s,epics:g,sprints:x,lastUpdated:v,onUpdateTask:r,onClose:f,onDelete:N,isUpdating:l=!1,isDeleting:p=!1,deleteState:d="idle"})=>{let J=e=>e.split(" ").map(c=>c[0]).join("").toUpperCase(),h=()=>d==="loading"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(k,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(I,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(A,{className:"h-3 w-3"}),"Delete failed"]}):t(i,{onClick:N,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:l||p,children:[a(S,{className:"h-3 w-3"}),"Delete Task"]});return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"space-y-4",style:{opacity:l?.6:1},children:[t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Status"}),a(n,{label:"",value:s.status,onValueChange:e=>r("status",e),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Type"}),a(u,{type:"single",value:s.type,onValueChange:e=>e&&r("type",e),className:"grid grid-cols-2 gap-1",disabled:l,children:G.map(e=>{let c=e.icon;return t(m,{value:e.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:[a(c,{className:"h-3 w-3"}),e.label]},e.value)})})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Priority"}),a(u,{type:"single",value:s.priority,onValueChange:e=>e&&r("priority",e),className:"grid grid-cols-3 gap-1",disabled:l,children:P.map(e=>a(m,{value:e.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:e.label},e.value))})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Story Points"}),a("input",{type:"number",min:"1",max:"100",value:s.points||1,onChange:e=>r("points",e.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Epic"}),a(n,{label:"",value:s.epicId,onValueChange:e=>r("epicId",e),options:(g||[]).map(e=>({value:e.id,label:e.name,color:e.color})),showColor:!0,disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Sprint"}),a(n,{label:"",value:s.sprintId||"none",onValueChange:e=>r("sprintId",e==="none"?"":e),options:[{value:"none",label:"No Sprint"},...(x||[]).map(e=>({value:e.id,label:`${e.name}${e.isActive?" (Active)":""}`}))],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Assignee"}),a(b,{label:"",value:s.assignee,onValueChange:e=>r("assignee",e),options:V,placeholder:"Search team members...",allowCustomValue:!0,disabled:l})]})]}),t("div",{className:"mt-auto pt-4 space-y-4",children:[t("div",{className:"space-y-2",children:[a(i,{onClick:f,variant:"outline",className:"w-full h-8 text-xs",disabled:l||p,children:"Close"}),h()]}),t("div",{className:"pt-4 border-t border-border space-y-2",children:[a("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(C,{className:"h-3 w-3"}),a("span",{children:"System"})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Created"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(y,{className:"h-3 w-3"}),a("span",{children:s.createdAt.toLocaleDateString()})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(w,{className:"h-3 w-3"}),t("span",{children:[v.toLocaleDateString()," at ",v.toLocaleTimeString()]})]})]})]})]})]})};export{W as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as u}from"./chunk-AZKOVKSK.mjs";import{a as N}from"./chunk-M245YHYF.mjs";import{a as b}from"./chunk-ZFBEBFCI.mjs";import{a as v,b as g,c as h}from"./chunk-SOLZ4VQH.mjs";import{a as d,b as m,c as p,d as f}from"./chunk-KY7WQYN4.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{useState as T}from"react";import{motion as e}from"framer-motion";import{Bell as $,Menu as q,PanelLeft as E,Bot as G}from"lucide-react";import{Fragment as J,jsx as t,jsxs as i}from"react/jsx-runtime";function at({title:Q,notifications:x=[],onToggleSidebar:w,onToggleMobileMenu:y,sidebarOpen:C=!0,className:A,activeTab:k="assistant",onTabChange:P,showTabs:O=!0,tabOptions:R=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:B,actionIcon:H=t(G,{className:"mr-2 h-4 w-4"}),actionText:j="Action",onNotificationRemove:z,onRemoveAll:D,logo:I="/headerlogo.png",appName:L="Nuvia",tagline:M="Collaboration Platform"}){let[F,l]=T(!1),[r,c]=T(x),n=r.filter(o=>!o.read).length,S=o=>{c(s=>s.filter(U=>U.id!==o)),z?.(o)},K=()=>{c(o=>o.filter(s=>s.read)),D?.()};return i(J,{children:[i("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 border-b bg-background/95 px-4 backdrop-blur ${A||""}`,children:[t(a,{variant:"ghost",size:"icon",className:"md:hidden",onClick:y,children:t(q,{className:"h-5 w-5"})}),t(a,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:w,children:t(E,{className:"h-5 w-5"})}),!C&&i(e.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[t("div",{className:"flex h-10 w-10 items-center justify-center",children:t("img",{src:I,alt:"Logo",className:"h-10 w-10 object-contain"})}),i("div",{children:[t("h2",{className:"font-semibold text-sm",children:L}),t("p",{className:"text-xs text-muted-foreground",children:M})]})]}),i("div",{className:"flex flex-1 items-center",children:[O&&t(N,{activeTab:k,onTabChange:P,tabOptions:R}),i("div",{className:"flex items-center gap-3 ml-auto",children:[t(e.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:B,children:[H,j]})})}),t(u,{}),t(d,{children:i(m,{children:[t(p,{asChild:!0,children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>l(!0),children:[t(e.div,{animate:n>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:n>0?1/0:0,repeatDelay:3},children:t($,{className:"h-5 w-5"})}),n>0&&t(e.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:n})]})})}),t(f,{children:"Notifications"})]})}),t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(v,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[t(g,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),t(h,{})]})})]})]})]}),t(b,{notifications:r,open:F,onClose:()=>l(!1),onNotificationRemove:S,onRemoveAll:K})]})}export{at as a};
4
+ import{a as u}from"./chunk-AZKOVKSK.mjs";import{a as N}from"./chunk-M245YHYF.mjs";import{a as b}from"./chunk-3KITWLRN.mjs";import{a as d,b as m,c as p,d as f}from"./chunk-KY7WQYN4.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as g,c as h}from"./chunk-SOLZ4VQH.mjs";import{useState as T}from"react";import{motion as e}from"framer-motion";import{Bell as $,Menu as q,PanelLeft as E,Bot as G}from"lucide-react";import{Fragment as J,jsx as t,jsxs as i}from"react/jsx-runtime";function at({title:Q,notifications:x=[],onToggleSidebar:w,onToggleMobileMenu:y,sidebarOpen:C=!0,className:A,activeTab:k="assistant",onTabChange:P,showTabs:O=!0,tabOptions:R=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:B,actionIcon:H=t(G,{className:"mr-2 h-4 w-4"}),actionText:j="Action",onNotificationRemove:z,onRemoveAll:D,logo:I="/headerlogo.png",appName:L="Nuvia",tagline:M="Collaboration Platform"}){let[F,l]=T(!1),[r,c]=T(x),n=r.filter(o=>!o.read).length,S=o=>{c(s=>s.filter(U=>U.id!==o)),z?.(o)},K=()=>{c(o=>o.filter(s=>s.read)),D?.()};return i(J,{children:[i("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 border-b bg-background/95 px-4 backdrop-blur ${A||""}`,children:[t(a,{variant:"ghost",size:"icon",className:"md:hidden",onClick:y,children:t(q,{className:"h-5 w-5"})}),t(a,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:w,children:t(E,{className:"h-5 w-5"})}),!C&&i(e.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[t("div",{className:"flex h-10 w-10 items-center justify-center",children:t("img",{src:I,alt:"Logo",className:"h-10 w-10 object-contain"})}),i("div",{children:[t("h2",{className:"font-semibold text-sm",children:L}),t("p",{className:"text-xs text-muted-foreground",children:M})]})]}),i("div",{className:"flex flex-1 items-center",children:[O&&t(N,{activeTab:k,onTabChange:P,tabOptions:R}),i("div",{className:"flex items-center gap-3 ml-auto",children:[t(e.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:B,children:[H,j]})})}),t(u,{}),t(d,{children:i(m,{children:[t(p,{asChild:!0,children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>l(!0),children:[t(e.div,{animate:n>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:n>0?1/0:0,repeatDelay:3},children:t($,{className:"h-5 w-5"})}),n>0&&t(e.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:n})]})})}),t(f,{children:"Notifications"})]})}),t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(v,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[t(g,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),t(h,{})]})})]})]})]}),t(b,{notifications:r,open:F,onClose:()=>l(!1),onNotificationRemove:S,onRemoveAll:K})]})}export{at as a};
@@ -1 +1 @@
1
- import{a as q}from"./chunk-YVI5URXW.mjs";import{a as y,c as C,d as b,g as x,i as n}from"./chunk-YFAZQYK4.mjs";import{a as M}from"./chunk-B4H6T2GP.mjs";import{a as s}from"./chunk-TVZOULLL.mjs";import{a as E,b as B,f as L,g as F,i as P}from"./chunk-3UMMMQEH.mjs";import{b as H}from"./chunk-CSBGSBEU.mjs";import{a as w,e as U}from"./chunk-YO3GQYRJ.mjs";import{a as v}from"./chunk-L5JPAKPM.mjs";import{b as R}from"./chunk-ZUA4KNIR.mjs";import{useState as I}from"react";import{Plus as z,Clock as W,Calendar as Y,User as G,Repeat as J,Edit2 as K,Trash2 as Q,CheckCircle as X,Circle as Z,Bell as _}from"lucide-react";import{Fragment as se,jsx as e,jsxs as a}from"react/jsx-runtime";var ee=r=>{switch(r){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},te=r=>r.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),ae=r=>{let[o,g]=r.split(":"),m=new Date;return m.setHours(parseInt(o),parseInt(g)),m.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},A=(r,o)=>{let g=new Date,m=new Date(r);if(o){let[u,t]=o.split(":");m.setHours(parseInt(u),parseInt(t))}return m<g},O=r=>{let o=new Date;return r.toDateString()===o.toDateString()},ie=r=>{let o=new Date;return o.setDate(o.getDate()+1),r.toDateString()===o.toDateString()},re=({colleagues:r,onAddReminder:o,trigger:g})=>{let[m,u]=I(!1),[t,d]=I({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""});return a(E,{open:m,onOpenChange:u,children:[e(B,{asChild:!0,children:g}),a(L,{className:"max-w-2xl",children:[e(F,{children:e(P,{children:"Add New Reminder"})}),a("form",{onSubmit:i=>{i.preventDefault();let D=r.find(h=>h.id===t.colleagueId);if(!D)return;let p={title:t.title,description:t.description,dueDate:new Date(t.dueDate),dueTime:t.dueTime||void 0,colleague:D,isCompleted:!1,isRecurring:t.isRecurring,recurrencePattern:t.isRecurring?t.recurrencePattern:void 0,recurrenceInterval:t.isRecurring?t.recurrenceInterval:void 0,priority:t.priority,reminderEnabled:t.reminderEnabled,reminderMinutes:t.reminderEnabled?t.reminderMinutes:void 0,tags:t.tags?t.tags.split(",").map(h=>h.trim()):void 0};o(p),u(!1),d({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"title",children:"Title"}),e(v,{id:"title",value:t.title,onChange:i=>d({...t,title:i.target.value}),placeholder:"Enter reminder title",required:!0})]}),a("div",{children:[e(s,{htmlFor:"priority",children:"Priority"}),a(y,{value:t.priority,onValueChange:i=>d({...t,priority:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"low",children:"\u{1F7E2} Low"}),e(n,{value:"medium",children:"\u{1F7E1} Medium"}),e(n,{value:"high",children:"\u{1F534} High"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"description",children:"Description"}),e(M,{id:"description",value:t.description,onChange:i=>d({...t,description:i.target.value}),placeholder:"Enter reminder description",rows:3})]}),a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"dueDate",children:"Due Date"}),e(v,{id:"dueDate",type:"date",value:t.dueDate,onChange:i=>d({...t,dueDate:i.target.value}),required:!0})]}),a("div",{children:[e(s,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(v,{id:"dueTime",type:"time",value:t.dueTime,onChange:i=>d({...t,dueTime:i.target.value})})]})]}),a("div",{children:[e(s,{htmlFor:"colleague",children:"Assigned Colleague"}),a(y,{value:t.colleagueId,onValueChange:i=>d({...t,colleagueId:i}),children:[e(b,{children:e(C,{placeholder:"Select a digital colleague"})}),e(x,{children:r.map(i=>e(n,{value:i.id,children:i.name},i.id))})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:t.isRecurring,onChange:i=>d({...t,isRecurring:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),t.isRecurring&&a("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[a("div",{children:[e(s,{htmlFor:"recurrencePattern",children:"Frequency"}),a(y,{value:t.recurrencePattern,onValueChange:i=>d({...t,recurrencePattern:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"daily",children:"Daily"}),e(n,{value:"weekly",children:"Weekly"}),e(n,{value:"monthly",children:"Monthly"}),e(n,{value:"yearly",children:"Yearly"})]})]})]}),a("div",{children:[e(s,{htmlFor:"recurrenceInterval",children:"Every"}),e(v,{id:"recurrenceInterval",type:"number",min:"1",value:t.recurrenceInterval,onChange:i=>d({...t,recurrenceInterval:parseInt(i.target.value)})})]})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"reminderEnabled",checked:t.reminderEnabled,onChange:i=>d({...t,reminderEnabled:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"reminderEnabled",children:"Enable reminder notifications"})]}),t.reminderEnabled&&a("div",{className:"pl-6",children:[e(s,{htmlFor:"reminderMinutes",children:"Remind me"}),a(y,{value:t.reminderMinutes.toString(),onValueChange:i=>d({...t,reminderMinutes:parseInt(i)}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"5",children:"5 minutes before"}),e(n,{value:"15",children:"15 minutes before"}),e(n,{value:"30",children:"30 minutes before"}),e(n,{value:"60",children:"1 hour before"}),e(n,{value:"1440",children:"1 day before"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"tags",children:"Tags (comma-separated)"}),e(v,{id:"tags",value:t.tags,onChange:i=>d({...t,tags:i.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),a("div",{className:"flex justify-end space-x-2",children:[e(R,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),e(R,{type:"submit",children:"Add Reminder"})]})]})]})]})},le=({reminder:r,colleagues:o,onUpdateReminder:g,open:m,onClose:u})=>{let[t,d]=I({title:r.title,description:r.description,dueDate:r.dueDate.toISOString().split("T")[0],dueTime:r.dueTime||"",colleagueId:r.colleague.id,priority:r.priority,isRecurring:r.isRecurring,recurrencePattern:r.recurrencePattern||"weekly",recurrenceInterval:r.recurrenceInterval||1,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderMinutes||15,tags:r.tags?.join(", ")||""});return e(E,{open:m,onOpenChange:u,children:a(L,{className:"max-w-2xl",children:[e(F,{children:e(P,{children:"Edit Reminder"})}),a("form",{onSubmit:i=>{i.preventDefault();let D=o.find(h=>h.id===t.colleagueId);if(!D)return;let p={title:t.title,description:t.description,dueDate:new Date(t.dueDate),dueTime:t.dueTime||void 0,colleague:D,isRecurring:t.isRecurring,recurrencePattern:t.isRecurring?t.recurrencePattern:void 0,recurrenceInterval:t.isRecurring?t.recurrenceInterval:void 0,priority:t.priority,reminderEnabled:t.reminderEnabled,reminderMinutes:t.reminderEnabled?t.reminderMinutes:void 0,tags:t.tags?t.tags.split(",").map(h=>h.trim()):void 0};g(r.id,p),u()},className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"edit-title",children:"Title"}),e(v,{id:"edit-title",value:t.title,onChange:i=>d({...t,title:i.target.value}),placeholder:"Enter reminder title",required:!0})]}),a("div",{children:[e(s,{htmlFor:"edit-priority",children:"Priority"}),a(y,{value:t.priority,onValueChange:i=>d({...t,priority:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"low",children:"\u{1F7E2} Low"}),e(n,{value:"medium",children:"\u{1F7E1} Medium"}),e(n,{value:"high",children:"\u{1F534} High"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-description",children:"Description"}),e(M,{id:"edit-description",value:t.description,onChange:i=>d({...t,description:i.target.value}),placeholder:"Enter reminder description",rows:3})]}),a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"edit-dueDate",children:"Due Date"}),e(v,{id:"edit-dueDate",type:"date",value:t.dueDate,onChange:i=>d({...t,dueDate:i.target.value}),required:!0})]}),a("div",{children:[e(s,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(v,{id:"edit-dueTime",type:"time",value:t.dueTime,onChange:i=>d({...t,dueTime:i.target.value})})]})]}),a("div",{children:[e(s,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),a(y,{value:t.colleagueId,onValueChange:i=>d({...t,colleagueId:i}),children:[e(b,{children:e(C,{placeholder:"Select a digital colleague"})}),e(x,{children:o.map(i=>e(n,{value:i.id,children:i.name},i.id))})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:t.isRecurring,onChange:i=>d({...t,isRecurring:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),t.isRecurring&&a("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[a("div",{children:[e(s,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),a(y,{value:t.recurrencePattern,onValueChange:i=>d({...t,recurrencePattern:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"daily",children:"Daily"}),e(n,{value:"weekly",children:"Weekly"}),e(n,{value:"monthly",children:"Monthly"}),e(n,{value:"yearly",children:"Yearly"})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-recurrenceInterval",children:"Every"}),e(v,{id:"edit-recurrenceInterval",type:"number",min:"1",value:t.recurrenceInterval,onChange:i=>d({...t,recurrenceInterval:parseInt(i.target.value)})})]})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-reminderEnabled",checked:t.reminderEnabled,onChange:i=>d({...t,reminderEnabled:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),t.reminderEnabled&&a("div",{className:"pl-6",children:[e(s,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),a(y,{value:t.reminderMinutes.toString(),onValueChange:i=>d({...t,reminderMinutes:parseInt(i)}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"5",children:"5 minutes before"}),e(n,{value:"15",children:"15 minutes before"}),e(n,{value:"30",children:"30 minutes before"}),e(n,{value:"60",children:"1 hour before"}),e(n,{value:"1440",children:"1 day before"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),e(v,{id:"edit-tags",value:t.tags,onChange:i=>d({...t,tags:i.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),a("div",{className:"flex justify-end space-x-2",children:[e(R,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),e(R,{type:"submit",children:"Save Changes"})]})]})]})})},de=({reminder:r,colleagues:o,onUpdateReminder:g,onDeleteReminder:m})=>{let[u,t]=I(!1),d=A(r.dueDate,r.dueTime),T=O(r.dueDate),i=ie(r.dueDate),D=()=>{g(r.id,{isCompleted:!r.isCompleted,completedAt:r.isCompleted?void 0:new Date})},p=()=>T?"Today":i?"Tomorrow":d&&!r.isCompleted?"Overdue":te(r.dueDate);return a(se,{children:[e(le,{reminder:r,colleagues:o,onUpdateReminder:g,open:u,onClose:()=>t(!1)}),e(w,{className:`transition-all duration-200 ${r.isCompleted?"opacity-60":""} ${d&&!r.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:e(U,{className:"p-4",children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:D,className:"mt-1 text-primary hover:text-primary/80",children:r.isCompleted?e(X,{className:"h-5 w-5"}):e(Z,{className:"h-5 w-5"})}),a("div",{className:"flex-1",children:[a("div",{className:"flex items-center space-x-2 mb-1",children:[e("h3",{className:`font-semibold ${r.isCompleted?"line-through text-muted-foreground":""}`,children:r.title}),e("span",{className:"text-sm",children:ee(r.priority)}),r.isRecurring&&e(J,{className:"h-4 w-4 text-primary"}),r.reminderEnabled&&e(_,{className:"h-4 w-4 text-success"})]}),e("p",{className:"text-sm text-muted-foreground mb-2",children:r.description}),a("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[a("div",{className:"flex items-center space-x-1",children:[e(Y,{className:"h-4 w-4"}),e("span",{className:d&&!r.isCompleted?"text-destructive font-medium":"",children:p()})]}),r.dueTime&&a("div",{className:"flex items-center space-x-1",children:[e(W,{className:"h-4 w-4"}),e("span",{children:ae(r.dueTime)})]}),a("div",{className:"flex items-center space-x-1",children:[e(G,{className:"h-4 w-4"}),e("span",{children:r.colleague.name})]})]}),r.tags&&r.tags.length>0&&e("div",{className:"flex flex-wrap gap-1 mt-2",children:r.tags.map((h,k)=>e(H,{variant:"secondary",className:"text-xs",children:h},k))})]})]}),a("div",{className:"flex items-center space-x-1",children:[e(R,{variant:"ghost",size:"sm",onClick:()=>t(!0),className:"h-8 w-8 p-0",children:e(K,{className:"h-4 w-4"})}),e(R,{variant:"ghost",size:"sm",onClick:()=>m(r.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Q,{className:"h-4 w-4"})})]})]})})})]})},ne=({initialReminders:r=[],initialColleagues:o=[],onAddReminder:g,onUpdateReminder:m,onDeleteReminder:u})=>{let[t,d]=I(r),[T]=I(o),[i,D]=I("all"),[p,h]=I(""),k=l=>{let c={...l,id:Date.now().toString(),createdAt:new Date};d(N=>[...N,c]),g?.(l)},j=(l,c)=>{d(N=>N.map(S=>S.id===l?{...S,...c}:S)),m?.(l,c)},$=l=>{d(c=>c.filter(N=>N.id!==l)),u?.(l)},V=t.filter(l=>{if(p){let c=p.toLowerCase();if(!(l.title.toLowerCase().includes(c)||l.description.toLowerCase().includes(c)||l.colleague.name.toLowerCase().includes(c)||l.tags?.some(S=>S.toLowerCase().includes(c))))return!1}switch(i){case"pending":return!l.isCompleted;case"completed":return l.isCompleted;case"overdue":return!l.isCompleted&&A(l.dueDate,l.dueTime);case"today":return O(l.dueDate);default:return!0}}).sort((l,c)=>{if(l.isCompleted&&!c.isCompleted)return 1;if(!l.isCompleted&&c.isCompleted)return-1;let N={high:3,medium:2,low:1},S=N[c.priority]-N[l.priority];return S!==0?S:l.dueDate.getTime()-c.dueDate.getTime()}),f={total:t.length,pending:t.filter(l=>!l.isCompleted).length,completed:t.filter(l=>l.isCompleted).length,overdue:t.filter(l=>!l.isCompleted&&A(l.dueDate,l.dueTime)).length,today:t.filter(l=>O(l.dueDate)).length};return a("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(q,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{let l={title:"New Reminder",description:"Don't forget to complete this task",dueDate:new Date,dueTime:"09:00",colleague:T[0]||{id:"1",name:"Default Colleague",department:"General",role:"Team Member"},isCompleted:!1,isRecurring:!1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,tags:["reminder"]};k(l)}}}),e("div",{className:"h-full bg-background",children:a("div",{className:"p-6",children:[a("div",{className:"flex items-center justify-between mb-6",children:[a("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),e(re,{colleagues:T,onAddReminder:k,trigger:a(R,{className:"flex items-center space-x-2",children:[e(z,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})})]}),a("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:f.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:f.pending}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:f.completed}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:f.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:f.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),a("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(v,{placeholder:"Search reminders...",value:p,onChange:l=>h(l.target.value),className:"max-w-md"})}),a(y,{value:i,onValueChange:l=>D(l),children:[e(b,{className:"w-40",children:e(C,{})}),a(x,{children:[a(n,{value:"all",children:["All (",f.total,")"]}),a(n,{value:"pending",children:["Pending (",f.pending,")"]}),a(n,{value:"completed",children:["Completed (",f.completed,")"]}),a(n,{value:"overdue",children:["Overdue (",f.overdue,")"]}),a(n,{value:"today",children:["Today (",f.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:V.length===0?a(w,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:p||i!=="all"?"No reminders match your filters":"No reminders yet"}),!p&&i==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):V.map(l=>e(de,{reminder:l,colleagues:T,onUpdateReminder:j,onDeleteReminder:$},l.id))})]})})]})},Re=ne;export{ne as a,Re as b};
1
+ import{a as q}from"./chunk-2NMVE5M4.mjs";import{a as y,c as C,d as b,g as x,i as n}from"./chunk-YFAZQYK4.mjs";import{a as M}from"./chunk-B4H6T2GP.mjs";import{a as s}from"./chunk-TVZOULLL.mjs";import{a as E,b as B,f as L,g as F,i as P}from"./chunk-3UMMMQEH.mjs";import{a as v}from"./chunk-L5JPAKPM.mjs";import{b as R}from"./chunk-ZUA4KNIR.mjs";import{b as H}from"./chunk-CSBGSBEU.mjs";import{a as w,e as U}from"./chunk-YO3GQYRJ.mjs";import{useState as I}from"react";import{Plus as z,Clock as W,Calendar as Y,User as G,Repeat as J,Edit2 as K,Trash2 as Q,CheckCircle as X,Circle as Z,Bell as _}from"lucide-react";import{Fragment as se,jsx as e,jsxs as a}from"react/jsx-runtime";var ee=r=>{switch(r){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},te=r=>r.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),ae=r=>{let[o,g]=r.split(":"),m=new Date;return m.setHours(parseInt(o),parseInt(g)),m.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},A=(r,o)=>{let g=new Date,m=new Date(r);if(o){let[u,t]=o.split(":");m.setHours(parseInt(u),parseInt(t))}return m<g},O=r=>{let o=new Date;return r.toDateString()===o.toDateString()},ie=r=>{let o=new Date;return o.setDate(o.getDate()+1),r.toDateString()===o.toDateString()},re=({colleagues:r,onAddReminder:o,trigger:g})=>{let[m,u]=I(!1),[t,d]=I({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""});return a(E,{open:m,onOpenChange:u,children:[e(B,{asChild:!0,children:g}),a(L,{className:"max-w-2xl",children:[e(F,{children:e(P,{children:"Add New Reminder"})}),a("form",{onSubmit:i=>{i.preventDefault();let D=r.find(h=>h.id===t.colleagueId);if(!D)return;let p={title:t.title,description:t.description,dueDate:new Date(t.dueDate),dueTime:t.dueTime||void 0,colleague:D,isCompleted:!1,isRecurring:t.isRecurring,recurrencePattern:t.isRecurring?t.recurrencePattern:void 0,recurrenceInterval:t.isRecurring?t.recurrenceInterval:void 0,priority:t.priority,reminderEnabled:t.reminderEnabled,reminderMinutes:t.reminderEnabled?t.reminderMinutes:void 0,tags:t.tags?t.tags.split(",").map(h=>h.trim()):void 0};o(p),u(!1),d({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"title",children:"Title"}),e(v,{id:"title",value:t.title,onChange:i=>d({...t,title:i.target.value}),placeholder:"Enter reminder title",required:!0})]}),a("div",{children:[e(s,{htmlFor:"priority",children:"Priority"}),a(y,{value:t.priority,onValueChange:i=>d({...t,priority:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"low",children:"\u{1F7E2} Low"}),e(n,{value:"medium",children:"\u{1F7E1} Medium"}),e(n,{value:"high",children:"\u{1F534} High"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"description",children:"Description"}),e(M,{id:"description",value:t.description,onChange:i=>d({...t,description:i.target.value}),placeholder:"Enter reminder description",rows:3})]}),a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"dueDate",children:"Due Date"}),e(v,{id:"dueDate",type:"date",value:t.dueDate,onChange:i=>d({...t,dueDate:i.target.value}),required:!0})]}),a("div",{children:[e(s,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(v,{id:"dueTime",type:"time",value:t.dueTime,onChange:i=>d({...t,dueTime:i.target.value})})]})]}),a("div",{children:[e(s,{htmlFor:"colleague",children:"Assigned Colleague"}),a(y,{value:t.colleagueId,onValueChange:i=>d({...t,colleagueId:i}),children:[e(b,{children:e(C,{placeholder:"Select a digital colleague"})}),e(x,{children:r.map(i=>e(n,{value:i.id,children:i.name},i.id))})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:t.isRecurring,onChange:i=>d({...t,isRecurring:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),t.isRecurring&&a("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[a("div",{children:[e(s,{htmlFor:"recurrencePattern",children:"Frequency"}),a(y,{value:t.recurrencePattern,onValueChange:i=>d({...t,recurrencePattern:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"daily",children:"Daily"}),e(n,{value:"weekly",children:"Weekly"}),e(n,{value:"monthly",children:"Monthly"}),e(n,{value:"yearly",children:"Yearly"})]})]})]}),a("div",{children:[e(s,{htmlFor:"recurrenceInterval",children:"Every"}),e(v,{id:"recurrenceInterval",type:"number",min:"1",value:t.recurrenceInterval,onChange:i=>d({...t,recurrenceInterval:parseInt(i.target.value)})})]})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"reminderEnabled",checked:t.reminderEnabled,onChange:i=>d({...t,reminderEnabled:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"reminderEnabled",children:"Enable reminder notifications"})]}),t.reminderEnabled&&a("div",{className:"pl-6",children:[e(s,{htmlFor:"reminderMinutes",children:"Remind me"}),a(y,{value:t.reminderMinutes.toString(),onValueChange:i=>d({...t,reminderMinutes:parseInt(i)}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"5",children:"5 minutes before"}),e(n,{value:"15",children:"15 minutes before"}),e(n,{value:"30",children:"30 minutes before"}),e(n,{value:"60",children:"1 hour before"}),e(n,{value:"1440",children:"1 day before"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"tags",children:"Tags (comma-separated)"}),e(v,{id:"tags",value:t.tags,onChange:i=>d({...t,tags:i.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),a("div",{className:"flex justify-end space-x-2",children:[e(R,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),e(R,{type:"submit",children:"Add Reminder"})]})]})]})]})},le=({reminder:r,colleagues:o,onUpdateReminder:g,open:m,onClose:u})=>{let[t,d]=I({title:r.title,description:r.description,dueDate:r.dueDate.toISOString().split("T")[0],dueTime:r.dueTime||"",colleagueId:r.colleague.id,priority:r.priority,isRecurring:r.isRecurring,recurrencePattern:r.recurrencePattern||"weekly",recurrenceInterval:r.recurrenceInterval||1,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderMinutes||15,tags:r.tags?.join(", ")||""});return e(E,{open:m,onOpenChange:u,children:a(L,{className:"max-w-2xl",children:[e(F,{children:e(P,{children:"Edit Reminder"})}),a("form",{onSubmit:i=>{i.preventDefault();let D=o.find(h=>h.id===t.colleagueId);if(!D)return;let p={title:t.title,description:t.description,dueDate:new Date(t.dueDate),dueTime:t.dueTime||void 0,colleague:D,isRecurring:t.isRecurring,recurrencePattern:t.isRecurring?t.recurrencePattern:void 0,recurrenceInterval:t.isRecurring?t.recurrenceInterval:void 0,priority:t.priority,reminderEnabled:t.reminderEnabled,reminderMinutes:t.reminderEnabled?t.reminderMinutes:void 0,tags:t.tags?t.tags.split(",").map(h=>h.trim()):void 0};g(r.id,p),u()},className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"edit-title",children:"Title"}),e(v,{id:"edit-title",value:t.title,onChange:i=>d({...t,title:i.target.value}),placeholder:"Enter reminder title",required:!0})]}),a("div",{children:[e(s,{htmlFor:"edit-priority",children:"Priority"}),a(y,{value:t.priority,onValueChange:i=>d({...t,priority:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"low",children:"\u{1F7E2} Low"}),e(n,{value:"medium",children:"\u{1F7E1} Medium"}),e(n,{value:"high",children:"\u{1F534} High"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-description",children:"Description"}),e(M,{id:"edit-description",value:t.description,onChange:i=>d({...t,description:i.target.value}),placeholder:"Enter reminder description",rows:3})]}),a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{children:[e(s,{htmlFor:"edit-dueDate",children:"Due Date"}),e(v,{id:"edit-dueDate",type:"date",value:t.dueDate,onChange:i=>d({...t,dueDate:i.target.value}),required:!0})]}),a("div",{children:[e(s,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(v,{id:"edit-dueTime",type:"time",value:t.dueTime,onChange:i=>d({...t,dueTime:i.target.value})})]})]}),a("div",{children:[e(s,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),a(y,{value:t.colleagueId,onValueChange:i=>d({...t,colleagueId:i}),children:[e(b,{children:e(C,{placeholder:"Select a digital colleague"})}),e(x,{children:o.map(i=>e(n,{value:i.id,children:i.name},i.id))})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:t.isRecurring,onChange:i=>d({...t,isRecurring:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),t.isRecurring&&a("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[a("div",{children:[e(s,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),a(y,{value:t.recurrencePattern,onValueChange:i=>d({...t,recurrencePattern:i}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"daily",children:"Daily"}),e(n,{value:"weekly",children:"Weekly"}),e(n,{value:"monthly",children:"Monthly"}),e(n,{value:"yearly",children:"Yearly"})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-recurrenceInterval",children:"Every"}),e(v,{id:"edit-recurrenceInterval",type:"number",min:"1",value:t.recurrenceInterval,onChange:i=>d({...t,recurrenceInterval:parseInt(i.target.value)})})]})]})]}),a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-reminderEnabled",checked:t.reminderEnabled,onChange:i=>d({...t,reminderEnabled:i.target.checked}),className:"rounded border-border"}),e(s,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),t.reminderEnabled&&a("div",{className:"pl-6",children:[e(s,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),a(y,{value:t.reminderMinutes.toString(),onValueChange:i=>d({...t,reminderMinutes:parseInt(i)}),children:[e(b,{children:e(C,{})}),a(x,{children:[e(n,{value:"5",children:"5 minutes before"}),e(n,{value:"15",children:"15 minutes before"}),e(n,{value:"30",children:"30 minutes before"}),e(n,{value:"60",children:"1 hour before"}),e(n,{value:"1440",children:"1 day before"})]})]})]})]}),a("div",{children:[e(s,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),e(v,{id:"edit-tags",value:t.tags,onChange:i=>d({...t,tags:i.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),a("div",{className:"flex justify-end space-x-2",children:[e(R,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),e(R,{type:"submit",children:"Save Changes"})]})]})]})})},de=({reminder:r,colleagues:o,onUpdateReminder:g,onDeleteReminder:m})=>{let[u,t]=I(!1),d=A(r.dueDate,r.dueTime),T=O(r.dueDate),i=ie(r.dueDate),D=()=>{g(r.id,{isCompleted:!r.isCompleted,completedAt:r.isCompleted?void 0:new Date})},p=()=>T?"Today":i?"Tomorrow":d&&!r.isCompleted?"Overdue":te(r.dueDate);return a(se,{children:[e(le,{reminder:r,colleagues:o,onUpdateReminder:g,open:u,onClose:()=>t(!1)}),e(w,{className:`transition-all duration-200 ${r.isCompleted?"opacity-60":""} ${d&&!r.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:e(U,{className:"p-4",children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:D,className:"mt-1 text-primary hover:text-primary/80",children:r.isCompleted?e(X,{className:"h-5 w-5"}):e(Z,{className:"h-5 w-5"})}),a("div",{className:"flex-1",children:[a("div",{className:"flex items-center space-x-2 mb-1",children:[e("h3",{className:`font-semibold ${r.isCompleted?"line-through text-muted-foreground":""}`,children:r.title}),e("span",{className:"text-sm",children:ee(r.priority)}),r.isRecurring&&e(J,{className:"h-4 w-4 text-primary"}),r.reminderEnabled&&e(_,{className:"h-4 w-4 text-success"})]}),e("p",{className:"text-sm text-muted-foreground mb-2",children:r.description}),a("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[a("div",{className:"flex items-center space-x-1",children:[e(Y,{className:"h-4 w-4"}),e("span",{className:d&&!r.isCompleted?"text-destructive font-medium":"",children:p()})]}),r.dueTime&&a("div",{className:"flex items-center space-x-1",children:[e(W,{className:"h-4 w-4"}),e("span",{children:ae(r.dueTime)})]}),a("div",{className:"flex items-center space-x-1",children:[e(G,{className:"h-4 w-4"}),e("span",{children:r.colleague.name})]})]}),r.tags&&r.tags.length>0&&e("div",{className:"flex flex-wrap gap-1 mt-2",children:r.tags.map((h,k)=>e(H,{variant:"secondary",className:"text-xs",children:h},k))})]})]}),a("div",{className:"flex items-center space-x-1",children:[e(R,{variant:"ghost",size:"sm",onClick:()=>t(!0),className:"h-8 w-8 p-0",children:e(K,{className:"h-4 w-4"})}),e(R,{variant:"ghost",size:"sm",onClick:()=>m(r.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Q,{className:"h-4 w-4"})})]})]})})})]})},ne=({initialReminders:r=[],initialColleagues:o=[],onAddReminder:g,onUpdateReminder:m,onDeleteReminder:u})=>{let[t,d]=I(r),[T]=I(o),[i,D]=I("all"),[p,h]=I(""),k=l=>{let c={...l,id:Date.now().toString(),createdAt:new Date};d(N=>[...N,c]),g?.(l)},j=(l,c)=>{d(N=>N.map(S=>S.id===l?{...S,...c}:S)),m?.(l,c)},$=l=>{d(c=>c.filter(N=>N.id!==l)),u?.(l)},V=t.filter(l=>{if(p){let c=p.toLowerCase();if(!(l.title.toLowerCase().includes(c)||l.description.toLowerCase().includes(c)||l.colleague.name.toLowerCase().includes(c)||l.tags?.some(S=>S.toLowerCase().includes(c))))return!1}switch(i){case"pending":return!l.isCompleted;case"completed":return l.isCompleted;case"overdue":return!l.isCompleted&&A(l.dueDate,l.dueTime);case"today":return O(l.dueDate);default:return!0}}).sort((l,c)=>{if(l.isCompleted&&!c.isCompleted)return 1;if(!l.isCompleted&&c.isCompleted)return-1;let N={high:3,medium:2,low:1},S=N[c.priority]-N[l.priority];return S!==0?S:l.dueDate.getTime()-c.dueDate.getTime()}),f={total:t.length,pending:t.filter(l=>!l.isCompleted).length,completed:t.filter(l=>l.isCompleted).length,overdue:t.filter(l=>!l.isCompleted&&A(l.dueDate,l.dueTime)).length,today:t.filter(l=>O(l.dueDate)).length};return a("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(q,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{let l={title:"New Reminder",description:"Don't forget to complete this task",dueDate:new Date,dueTime:"09:00",colleague:T[0]||{id:"1",name:"Default Colleague",department:"General",role:"Team Member"},isCompleted:!1,isRecurring:!1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,tags:["reminder"]};k(l)}}}),e("div",{className:"h-full bg-background",children:a("div",{className:"p-6",children:[a("div",{className:"flex items-center justify-between mb-6",children:[a("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),e(re,{colleagues:T,onAddReminder:k,trigger:a(R,{className:"flex items-center space-x-2",children:[e(z,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})})]}),a("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:f.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:f.pending}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:f.completed}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:f.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),a(w,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:f.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),a("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(v,{placeholder:"Search reminders...",value:p,onChange:l=>h(l.target.value),className:"max-w-md"})}),a(y,{value:i,onValueChange:l=>D(l),children:[e(b,{className:"w-40",children:e(C,{})}),a(x,{children:[a(n,{value:"all",children:["All (",f.total,")"]}),a(n,{value:"pending",children:["Pending (",f.pending,")"]}),a(n,{value:"completed",children:["Completed (",f.completed,")"]}),a(n,{value:"overdue",children:["Overdue (",f.overdue,")"]}),a(n,{value:"today",children:["Today (",f.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:V.length===0?a(w,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:p||i!=="all"?"No reminders match your filters":"No reminders yet"}),!p&&i==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):V.map(l=>e(de,{reminder:l,colleagues:T,onUpdateReminder:j,onDeleteReminder:$},l.id))})]})})]})},Re=ne;export{ne as a,Re as b};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as d}from"./chunk-FT3AE7L2.mjs";import{a as l}from"./chunk-YO3GQYRJ.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import{Clock as N,Edit3 as x,Plus as w,Trash2 as C}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function M({sessions:o,currentSession:c,teams:p,onNewChat:u,onSessionSelect:h,onSessionEdit:r,onSessionDelete:n,className:v}){let f=s=>{let t=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return t<1?"Just now":t<60?`${t}m ago`:t<1440?`${Math.floor(t/60)}h ago`:`${Math.floor(t/1440)}d ago`};return e("div",{className:`space-y-4 ${v||""}`,children:a(l,{className:"shadow-sm",children:[e("div",{className:"p-4 border-b",children:a("div",{className:"flex items-center justify-between",children:[a("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[e(N,{className:"h-4 w-4"}),"Recent Chats"]}),a(i,{onClick:u,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[e(w,{className:"h-3 w-3"}),"New"]})]})}),e(d,{className:"h-[600px]",children:e("div",{className:"p-2",children:o.length===0?e("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(s=>{let g=p.find(t=>t.id===s.teamId);return e("div",{className:m("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",c?.id===s.id&&"bg-muted border"),onClick:()=>h(s),children:e("div",{className:"flex items-start gap-3",children:a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center justify-between mb-1",children:[e("h4",{className:"font-medium text-sm truncate",children:s.title}),a("div",{className:"flex items-center gap-1",children:[e("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:f(s.timestamp)}),a("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-1",children:[r&&e(i,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded",onClick:t=>{t.stopPropagation(),r(s.id)},children:e(x,{className:"h-3 w-3"})}),n&&e(i,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded text-destructive hover:text-destructive",onClick:t=>{t.stopPropagation(),n(s.id)},children:e(C,{className:"h-3 w-3"})})]})]})]}),e("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.lastMessage})]})})},s.id)})})})]})})}export{M as a};
4
+ import{a as d}from"./chunk-FT3AE7L2.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as l}from"./chunk-YO3GQYRJ.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import{Clock as N,Edit3 as x,Plus as w,Trash2 as C}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function M({sessions:o,currentSession:c,teams:p,onNewChat:u,onSessionSelect:h,onSessionEdit:r,onSessionDelete:n,className:v}){let f=s=>{let t=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return t<1?"Just now":t<60?`${t}m ago`:t<1440?`${Math.floor(t/60)}h ago`:`${Math.floor(t/1440)}d ago`};return e("div",{className:`space-y-4 ${v||""}`,children:a(l,{className:"shadow-sm",children:[e("div",{className:"p-4 border-b",children:a("div",{className:"flex items-center justify-between",children:[a("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[e(N,{className:"h-4 w-4"}),"Recent Chats"]}),a(i,{onClick:u,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[e(w,{className:"h-3 w-3"}),"New"]})]})}),e(d,{className:"h-[600px]",children:e("div",{className:"p-2",children:o.length===0?e("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(s=>{let g=p.find(t=>t.id===s.teamId);return e("div",{className:m("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",c?.id===s.id&&"bg-muted border"),onClick:()=>h(s),children:e("div",{className:"flex items-start gap-3",children:a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center justify-between mb-1",children:[e("h4",{className:"font-medium text-sm truncate",children:s.title}),a("div",{className:"flex items-center gap-1",children:[e("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:f(s.timestamp)}),a("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-1",children:[r&&e(i,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded",onClick:t=>{t.stopPropagation(),r(s.id)},children:e(x,{className:"h-3 w-3"})}),n&&e(i,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded text-destructive hover:text-destructive",onClick:t=>{t.stopPropagation(),n(s.id)},children:e(C,{className:"h-3 w-3"})})]})]})]}),e("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.lastMessage})]})})},s.id)})})})]})})}export{M as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-KN65DDFI.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},D=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(f=>f.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:D,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
4
+ import{a as m}from"./chunk-CVLUVZR3.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},D=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(f=>f.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:D,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as s,b as i,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{b as t}from"./chunk-ZUA4KNIR.mjs";import{User as m,Bot as c,ChevronLeft as v,Users as p}from"lucide-react";import{motion as r,AnimatePresence as g}from"framer-motion";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({onSelectHuman:n,onSelectDigital:d,onCancel:u}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(g,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:u,className:"gap-2",children:[e(v,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Add Human Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Browse existing users"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Import user details automatically"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Select User"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:d,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:e(c,{className:"h-8 w-8 text-purple-600"})}),e(l,{className:"text-xl",children:"Add Digital Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(c,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Clone existing colleagues"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Create from templates"})]})]}),e(t,{className:"mt-6 w-full",onClick:d,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}export{y as a};
4
+ import{b as t}from"./chunk-ZUA4KNIR.mjs";import{a as s,b as i,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{User as m,Bot as c,ChevronLeft as v,Users as p}from"lucide-react";import{motion as r,AnimatePresence as g}from"framer-motion";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({onSelectHuman:n,onSelectDigital:d,onCancel:u}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(g,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:u,className:"gap-2",children:[e(v,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Add Human Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Browse existing users"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Import user details automatically"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Select User"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:d,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:e(c,{className:"h-8 w-8 text-purple-600"})}),e(l,{className:"text-xl",children:"Add Digital Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(c,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Clone existing colleagues"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Create from templates"})]})]}),e(t,{className:"mt-6 w-full",onClick:d,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}export{y as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as y}from"./chunk-FT3AE7L2.mjs";import{a as K}from"./chunk-TVZOULLL.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as u,e as v}from"./chunk-YO3GQYRJ.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{useState as h,useEffect as T}from"react";import{Search as A,X as F,FileText as L,Tag as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({selectedDocuments:l,onDocumentsChange:N,availableDocuments:x,label:S,placeholder:B="Search knowledge documents...",maxSelections:r,disabled:c=!1}){let[i,w]=h(""),[f,C]=h([]),[g,n]=h(!1);T(()=>{if(!i.trim()){C([]),n(!1);return}let e=x.filter(a=>{if(l.map(m=>m.id).includes(a.id))return!1;let o=i.toLowerCase();return a.title.toLowerCase().includes(o)||a.description?.toLowerCase().includes(o)||a.tags?.some(m=>m.toLowerCase().includes(o))||Object.values(a.metadata||{}).some(m=>String(m).toLowerCase().includes(o))});C(e),n(!0)},[i,l,x]);let z=e=>{r&&l.length>=r||(N([...l,e]),w(""),n(!1))},D=e=>{N(l.filter(a=>a.id!==e))},b=!r||l.length<r;return s("div",{className:"space-y-2",children:[t(K,{children:S}),s("div",{className:"relative",children:[s("div",{className:"relative",children:[t(A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{value:i,onChange:e=>w(e.target.value),placeholder:b?B:`Maximum ${r} documents selected`,className:"pl-9",disabled:c||!b,onFocus:()=>i&&n(!0)})]}),g&&f.length>0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60",children:t(y,{className:"h-full",children:t(v,{className:"p-2",children:f.map(e=>t(p,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(e),disabled:c,children:s("div",{className:"flex items-start gap-3 w-full",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"text-left flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm truncate",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.tags&&e.tags.length>0&&s("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(a=>t(d,{variant:"outline",className:"text-xs",children:a},a)),e.tags.length>3&&s(d,{variant:"outline",className:"text-xs",children:["+",e.tags.length-3," more"]})]})]})]})},e.id))})})}),g&&i&&f.length===0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:s(v,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',i,'"']})})]}),l.length>0&&s("div",{className:"space-y-2",children:[s("div",{className:"text-sm text-muted-foreground",children:["Selected (",l.length,r&&`/${r}`,")"]}),t("div",{className:"space-y-2",children:l.map(e=>t(u,{className:"p-3",children:s("div",{className:"flex items-start gap-3",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.tags&&e.tags.length>0&&t("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map(a=>s(d,{variant:"outline",className:"text-xs",children:[t(I,{className:"h-3 w-3 mr-1"}),a]},a))})]}),t(p,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>D(e.id),disabled:c,children:t(F,{className:"h-3 w-3"})})]})},e.id))})]}),g&&t("div",{className:"fixed inset-0 z-0",onClick:()=>n(!1)})]})}export{H as a};
4
+ import{a as y}from"./chunk-FT3AE7L2.mjs";import{a as K}from"./chunk-TVZOULLL.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as u,e as v}from"./chunk-YO3GQYRJ.mjs";import{useState as h,useEffect as T}from"react";import{Search as A,X as F,FileText as L,Tag as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({selectedDocuments:l,onDocumentsChange:N,availableDocuments:x,label:S,placeholder:B="Search knowledge documents...",maxSelections:r,disabled:c=!1}){let[i,w]=h(""),[f,C]=h([]),[g,n]=h(!1);T(()=>{if(!i.trim()){C([]),n(!1);return}let e=x.filter(a=>{if(l.map(m=>m.id).includes(a.id))return!1;let o=i.toLowerCase();return a.title.toLowerCase().includes(o)||a.description?.toLowerCase().includes(o)||a.tags?.some(m=>m.toLowerCase().includes(o))||Object.values(a.metadata||{}).some(m=>String(m).toLowerCase().includes(o))});C(e),n(!0)},[i,l,x]);let z=e=>{r&&l.length>=r||(N([...l,e]),w(""),n(!1))},D=e=>{N(l.filter(a=>a.id!==e))},b=!r||l.length<r;return s("div",{className:"space-y-2",children:[t(K,{children:S}),s("div",{className:"relative",children:[s("div",{className:"relative",children:[t(A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{value:i,onChange:e=>w(e.target.value),placeholder:b?B:`Maximum ${r} documents selected`,className:"pl-9",disabled:c||!b,onFocus:()=>i&&n(!0)})]}),g&&f.length>0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60",children:t(y,{className:"h-full",children:t(v,{className:"p-2",children:f.map(e=>t(p,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(e),disabled:c,children:s("div",{className:"flex items-start gap-3 w-full",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"text-left flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm truncate",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.tags&&e.tags.length>0&&s("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(a=>t(d,{variant:"outline",className:"text-xs",children:a},a)),e.tags.length>3&&s(d,{variant:"outline",className:"text-xs",children:["+",e.tags.length-3," more"]})]})]})]})},e.id))})})}),g&&i&&f.length===0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:s(v,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',i,'"']})})]}),l.length>0&&s("div",{className:"space-y-2",children:[s("div",{className:"text-sm text-muted-foreground",children:["Selected (",l.length,r&&`/${r}`,")"]}),t("div",{className:"space-y-2",children:l.map(e=>t(u,{className:"p-3",children:s("div",{className:"flex items-start gap-3",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.tags&&e.tags.length>0&&t("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map(a=>s(d,{variant:"outline",className:"text-xs",children:[t(I,{className:"h-3 w-3 mr-1"}),a]},a))})]}),t(p,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>D(e.id),disabled:c,children:t(F,{className:"h-3 w-3"})})]})},e.id))})]}),g&&t("div",{className:"fixed inset-0 z-0",onClick:()=>n(!1)})]})}export{H as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as p}from"./chunk-4CU7D3X2.mjs";import{a as b}from"./chunk-JYL3XIJX.mjs";import{b as C}from"./chunk-ZUA4KNIR.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import{Formik as h}from"formik";import{FaUser as N}from"react-icons/fa6";import*as m from"yup";import{toast as v}from"sonner";import{jsx as a,jsxs as l}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},y=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px] text-foreground"),g=i("!border-red-600 border"),d=i("sr-only");function k({onSubmit:f}={}){return a(h,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:y,onSubmit:async(e,{resetForm:o})=>{if(!f){v.error("Form submission not configured");return}let t=await f(e);t.data===null?v.error(t.message):(v.success(t.message),o())},children:({errors:e,touched:o,values:t,handleChange:n,handleBlur:c,isSubmitting:r,handleSubmit:x})=>l("form",{onSubmit:x,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[l("div",{children:[a(p,{placeholder:"Your Name",type:"text",name:"name",value:t.name,onChange:n,onBlur:c,disabled:r,icon:a(N,{className:"text-primary"}),className:i(u,e.name&&o.name&&g)}),e.name&&o.name&&a("p",{title:e.name,"aria-live":"polite",role:"error message",className:d,children:e.name})]}),l("div",{children:[a(p,{placeholder:"Your Email",type:"email",name:"email",value:t.email,onChange:n,onBlur:c,disabled:r,icon:a(L,{}),className:i(u,e.email&&o.email&&g)}),e.email&&o.email&&a("p",{title:e.email,"aria-live":"polite",role:"error message",className:d,children:e.email})]}),l("div",{className:"lg:col-span-2",children:[a(p,{placeholder:"Subject",type:"text",name:"subject",value:t.subject,onChange:n,onBlur:c,disabled:r,className:i(u,e.subject&&o.subject&&g)}),e.subject&&o.subject&&a("p",{title:e.subject,"aria-live":"polite",role:"error message",className:d,children:e.subject})]}),l("div",{className:"lg:col-span-2",children:[a(b,{placeholder:"Message...",name:"message",value:t.message,onChange:n,onBlur:c,disabled:r,icon:a(S,{}),className:i(u,e.message&&o.message&&g)}),e.message&&o.message&&a("p",{title:e.message,"aria-live":"polite",role:"error message",className:d,children:e.message})]}),a("div",{className:"lg:col-span-2 light grid justify-items-center",children:a(C,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:r,children:"Send"})})]})})}function L(){return a("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return a("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{k as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as Z}from"./chunk-6QSBVWNG.mjs";import{a as N}from"./chunk-QDYF4Z2F.mjs";import{a as O}from"./chunk-XP4XLR2J.mjs";import{a as X}from"./chunk-BHKBIYMM.mjs";import{a as Y}from"./chunk-4TU4OACM.mjs";import{a as R}from"./chunk-PANOPGUW.mjs";import{a as J}from"./chunk-YVI5URXW.mjs";import{a as Q}from"./chunk-M245YHYF.mjs";import{a as H,c as U,d as F,g as I,i as c}from"./chunk-YFAZQYK4.mjs";import{a as g,b as x,c as D,e as u}from"./chunk-YO3GQYRJ.mjs";import{a as W}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{useState as s}from"react";import{Plus as Ce,Search as fe,Users as _,Bot as ve,User as he,Filter as ye}from"lucide-react";import{motion as we,AnimatePresence as xe}from"framer-motion";import{jsx as t,jsxs as l}from"react/jsx-runtime";function De({initialColleagues:ee,onColleagueAdd:S,onColleagueEdit:te,onColleagueDelete:le,compactView:d=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:oe=[],existingDigitalColleagues:K=[]}){let[n,p]=s(ee||[]),[r,L]=s(""),[C,$]=s("all"),[f,j]=s("all"),[y,ne]=s("all"),[P,v]=s(null),[b,w]=s(null),[m,a]=s("main"),h=n.filter(e=>{let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email.toLowerCase().includes(r.toLowerCase())||e.role.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription.toLowerCase().includes(r.toLowerCase()),i=C==="all"||e.type==="human"&&e.department===C,E=f==="all"||e.status===f;return o&&i&&E}),B=h.filter(e=>e.type==="human"),M=h.filter(e=>e.type==="digital"),q=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(v(e),a("form"))},k=e=>{e.type==="digital"&&(w(e),a("view"))},se=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills,bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};p(i=>[...i,o]),S?.(o),a("main")},re=e=>{p(o=>[...o,e]),S?.(e),a("main")},de=()=>{v(null),a("form")},z=e=>{P?(p(o=>o.map(i=>i.id===e.id?e:i)),te?.(e)):(p(o=>[...o,e]),S?.(e)),a("main"),v(null)},me=()=>{a("main"),v(null),w(null)},ce=()=>{a("main"),w(null)},Ne=()=>{b&&(v(b),w(null),a("form"))},A=e=>{p(o=>o.filter(i=>i.id!==e)),le?.(e)},ge=()=>{L(""),$("all"),j("all")},G=()=>{let e=[];return K.forEach(i=>{e.push(...i.knowledge,...i.coreKnowledge)}),n.forEach(i=>{i.type==="digital"&&e.push(...i.knowledge,...i.coreKnowledge)}),e.filter((i,E,ue)=>E===ue.findIndex(pe=>pe.id===i.id))};return m==="typeSelection"?t(X,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):m==="userSelection"?t(R,{users:oe,onUserSelect:se,onCancel:()=>a("typeSelection")}):m==="digitalOptions"?t(Z,{onCloneExisting:()=>a("digitalClone"),onCreateNew:de,onCancel:()=>a("typeSelection")}):m==="digitalClone"?t(Y,{digitalColleagues:K,onColleagueClone:re,onCancel:()=>a("digitalOptions")}):m==="form"?t(O,{colleague:P||void 0,onSave:z,onCancel:me,availableKnowledgeDocuments:G()}):m==="view"?t(O,{colleague:b||void 0,onSave:z,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:G()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(xe,{mode:"wait",children:t(we.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:l("div",{className:`space-y-6 ${ie||""}`,children:[t(J,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:q}}),l("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(_,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(he,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(ve,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," active"]})]})]})]}),t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:l("div",{className:"relative",children:[t(fe,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(W,{placeholder:"Search colleagues...",value:r,onChange:e=>L(e.target.value),className:"pl-9"})]})}),l(H,{value:C,onValueChange:$,children:[t(F,{className:"w-full md:w-[180px]",children:t(U,{placeholder:"Department"})}),l(I,{children:[t(c,{value:"all",children:"All Departments"}),ae.map(e=>t(c,{value:e,children:e},e))]})]}),l(H,{value:f,onValueChange:j,children:[t(F,{className:"w-full md:w-[140px]",children:t(U,{placeholder:"Status"})}),l(I,{children:[t(c,{value:"all",children:"All Status"}),t(c,{value:"active",children:"Active"}),t(c,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&l(V,{variant:"outline",onClick:ge,className:"gap-2",children:[t(ye,{className:"h-4 w-4"}),"Clear"]})]})})}),l("div",{className:"space-y-4",children:[t(Q,{activeTab:y,onTabChange:ne,tabOptions:[{value:"all",label:`All (${h.length})`},{value:"human",label:`Human (${B.length})`},{value:"digital",label:`Digital (${M.length})`}],maxWidth:"400px",gridCols:3}),y==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:h.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:B.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="digital"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:M.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))})]}),h.length===0&&t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"text-center py-8",children:[t(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),l(V,{onClick:q,className:"gap-2",children:[t(Ce,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{De as a};
4
+ import{a as O}from"./chunk-OB5WMODY.mjs";import{a as X}from"./chunk-RUOYGMOR.mjs";import{a as Y}from"./chunk-WN2LPOQP.mjs";import{a as Z}from"./chunk-BADFWNRL.mjs";import{a as N}from"./chunk-TUI4S4GI.mjs";import{a as R}from"./chunk-AVHFRD6D.mjs";import{a as J}from"./chunk-2NMVE5M4.mjs";import{a as Q}from"./chunk-M245YHYF.mjs";import{a as H,c as U,d as F,g as I,i as c}from"./chunk-YFAZQYK4.mjs";import{a as W}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{a as g,b as x,c as D,e as u}from"./chunk-YO3GQYRJ.mjs";import{useState as s}from"react";import{Plus as Ce,Search as fe,Users as _,Bot as ve,User as he,Filter as ye}from"lucide-react";import{motion as we,AnimatePresence as xe}from"framer-motion";import{jsx as t,jsxs as l}from"react/jsx-runtime";function De({initialColleagues:ee,onColleagueAdd:S,onColleagueEdit:te,onColleagueDelete:le,compactView:d=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:oe=[],existingDigitalColleagues:K=[]}){let[n,p]=s(ee||[]),[r,L]=s(""),[C,$]=s("all"),[f,j]=s("all"),[y,ne]=s("all"),[P,v]=s(null),[b,w]=s(null),[m,a]=s("main"),h=n.filter(e=>{let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email.toLowerCase().includes(r.toLowerCase())||e.role.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription.toLowerCase().includes(r.toLowerCase()),i=C==="all"||e.type==="human"&&e.department===C,E=f==="all"||e.status===f;return o&&i&&E}),B=h.filter(e=>e.type==="human"),M=h.filter(e=>e.type==="digital"),q=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(v(e),a("form"))},k=e=>{e.type==="digital"&&(w(e),a("view"))},se=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills,bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};p(i=>[...i,o]),S?.(o),a("main")},re=e=>{p(o=>[...o,e]),S?.(e),a("main")},de=()=>{v(null),a("form")},z=e=>{P?(p(o=>o.map(i=>i.id===e.id?e:i)),te?.(e)):(p(o=>[...o,e]),S?.(e)),a("main"),v(null)},me=()=>{a("main"),v(null),w(null)},ce=()=>{a("main"),w(null)},Ne=()=>{b&&(v(b),w(null),a("form"))},A=e=>{p(o=>o.filter(i=>i.id!==e)),le?.(e)},ge=()=>{L(""),$("all"),j("all")},G=()=>{let e=[];return K.forEach(i=>{e.push(...i.knowledge,...i.coreKnowledge)}),n.forEach(i=>{i.type==="digital"&&e.push(...i.knowledge,...i.coreKnowledge)}),e.filter((i,E,ue)=>E===ue.findIndex(pe=>pe.id===i.id))};return m==="typeSelection"?t(X,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):m==="userSelection"?t(R,{users:oe,onUserSelect:se,onCancel:()=>a("typeSelection")}):m==="digitalOptions"?t(Z,{onCloneExisting:()=>a("digitalClone"),onCreateNew:de,onCancel:()=>a("typeSelection")}):m==="digitalClone"?t(Y,{digitalColleagues:K,onColleagueClone:re,onCancel:()=>a("digitalOptions")}):m==="form"?t(O,{colleague:P||void 0,onSave:z,onCancel:me,availableKnowledgeDocuments:G()}):m==="view"?t(O,{colleague:b||void 0,onSave:z,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:G()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(xe,{mode:"wait",children:t(we.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:l("div",{className:`space-y-6 ${ie||""}`,children:[t(J,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:q}}),l("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(_,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(he,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(ve,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," active"]})]})]})]}),t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:l("div",{className:"relative",children:[t(fe,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(W,{placeholder:"Search colleagues...",value:r,onChange:e=>L(e.target.value),className:"pl-9"})]})}),l(H,{value:C,onValueChange:$,children:[t(F,{className:"w-full md:w-[180px]",children:t(U,{placeholder:"Department"})}),l(I,{children:[t(c,{value:"all",children:"All Departments"}),ae.map(e=>t(c,{value:e,children:e},e))]})]}),l(H,{value:f,onValueChange:j,children:[t(F,{className:"w-full md:w-[140px]",children:t(U,{placeholder:"Status"})}),l(I,{children:[t(c,{value:"all",children:"All Status"}),t(c,{value:"active",children:"Active"}),t(c,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&l(V,{variant:"outline",onClick:ge,className:"gap-2",children:[t(ye,{className:"h-4 w-4"}),"Clear"]})]})})}),l("div",{className:"space-y-4",children:[t(Q,{activeTab:y,onTabChange:ne,tabOptions:[{value:"all",label:`All (${h.length})`},{value:"human",label:`Human (${B.length})`},{value:"digital",label:`Digital (${M.length})`}],maxWidth:"400px",gridCols:3}),y==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:h.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:B.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="digital"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:M.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))})]}),h.length===0&&t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"text-center py-8",children:[t(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),l(V,{onClick:q,className:"gap-2",children:[t(Ce,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{De as a};
@@ -1 +1 @@
1
- import{a as O}from"./chunk-BXHNSQWH.mjs";import{a as w}from"./chunk-AMV3MECK.mjs";import{a as P}from"./chunk-6YHVVP3S.mjs";import{a as h}from"./chunk-ORNGKQM7.mjs";import{a as b}from"./chunk-2VZWOBGP.mjs";import{a as D}from"./chunk-YVI5URXW.mjs";import{b as C}from"./chunk-CSBGSBEU.mjs";import{useState as n}from"react";import{Fragment as X,jsx as e,jsxs as d}from"react/jsx-runtime";var cs=({initialTasks:B=[],initialEpics:N=[],initialSprints:x=[],initialProjects:Y=[],onAddTask:M,onUpdateTask:k,onDeleteTask:v,onTaskClick:j,onAddEpic:I})=>{let[K,r]=n(B),[o,R]=n(N),[m,Z]=n(x),[F,E]=n(!1),[H,A]=n(!1),[c,u]=n(null),[T,S]=n(null),y=o.filter(s=>s.isSelected).map(s=>s.id),l=m.find(s=>s.isSelected),U=K.filter(s=>{let t=y.includes(s.epicId);return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),V=s=>U.filter(t=>t.status===s),$=s=>{let t={};return o.forEach(i=>{t[i.id]=s.filter(a=>a.epicId===i.id)}),t},q=s=>{S(s)},z=s=>{T&&(r(t=>t.map(i=>i.id===T.id?{...i,status:s}:i)),k?.(T.id,{status:s}),S(null))},G=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),M?.(s)},J=async(s,t)=>{r(i=>i.map(a=>a.id===s?{...a,...t}:a)),k&&await k(s,t)},L=async s=>{r(t=>t.filter(i=>i.id!==s)),c?.id===s&&u(null),v&&await v(s)},Q=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};R(i=>[...i,t]),I?.(s)},W=s=>{u(s),j?.(s)};return d("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(D,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>E(!0)},secondaryAction:{label:"Add epic",onClick:()=>A(!0)}}),e("div",{className:"flex-1",children:d("div",{className:"w-full",children:[e("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=V(s.status),i=$(t);return e(w,{title:s.title,status:s.status,taskCount:t.length,onDrop:z,isCompact:s.status==="done",children:y.map(a=>{let f=o.find(p=>p.id===a),g=i[a]||[];return g.length===0?null:d("div",{className:"mb-6",children:[d("div",{className:"flex items-center gap-2 mb-3",children:[e("div",{className:`w-3 h-3 rounded-full ${f?.color}`}),e("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:f?.name}),e(C,{variant:"secondary",className:"text-xs",children:g.length})]})," ",e("div",{className:"space-y-3",children:g.map(p=>e(P,{task:p,epic:f,onDragStart:q,onTaskClick:W,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),d(X,{children:[e(b,{isOpen:F,onClose:()=>E(!1),onAddTask:G,epics:o,sprints:m}),e(h,{isOpen:H,onClose:()=>A(!1),onAddEpic:Q}),c&&e(O,{isOpen:!!c,onClose:()=>u(null),task:c,epics:o,sprints:m,onUpdateTask:J,onDeleteTask:L})]})]})})]})};export{cs as a};
1
+ import{a as w}from"./chunk-AMV3MECK.mjs";import{a as O}from"./chunk-FOISWNF5.mjs";import{a as h}from"./chunk-ORNGKQM7.mjs";import{a as b}from"./chunk-2VZWOBGP.mjs";import{a as P}from"./chunk-6YHVVP3S.mjs";import{a as D}from"./chunk-2NMVE5M4.mjs";import{b as C}from"./chunk-CSBGSBEU.mjs";import{useState as n}from"react";import{Fragment as X,jsx as e,jsxs as d}from"react/jsx-runtime";var cs=({initialTasks:B=[],initialEpics:N=[],initialSprints:x=[],initialProjects:Y=[],onAddTask:M,onUpdateTask:k,onDeleteTask:v,onTaskClick:j,onAddEpic:I})=>{let[K,r]=n(B),[o,R]=n(N),[m,Z]=n(x),[F,E]=n(!1),[H,A]=n(!1),[c,u]=n(null),[T,S]=n(null),y=o.filter(s=>s.isSelected).map(s=>s.id),l=m.find(s=>s.isSelected),U=K.filter(s=>{let t=y.includes(s.epicId);return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),V=s=>U.filter(t=>t.status===s),$=s=>{let t={};return o.forEach(i=>{t[i.id]=s.filter(a=>a.epicId===i.id)}),t},q=s=>{S(s)},z=s=>{T&&(r(t=>t.map(i=>i.id===T.id?{...i,status:s}:i)),k?.(T.id,{status:s}),S(null))},G=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),M?.(s)},J=async(s,t)=>{r(i=>i.map(a=>a.id===s?{...a,...t}:a)),k&&await k(s,t)},L=async s=>{r(t=>t.filter(i=>i.id!==s)),c?.id===s&&u(null),v&&await v(s)},Q=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};R(i=>[...i,t]),I?.(s)},W=s=>{u(s),j?.(s)};return d("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(D,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>E(!0)},secondaryAction:{label:"Add epic",onClick:()=>A(!0)}}),e("div",{className:"flex-1",children:d("div",{className:"w-full",children:[e("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=V(s.status),i=$(t);return e(w,{title:s.title,status:s.status,taskCount:t.length,onDrop:z,isCompact:s.status==="done",children:y.map(a=>{let f=o.find(p=>p.id===a),g=i[a]||[];return g.length===0?null:d("div",{className:"mb-6",children:[d("div",{className:"flex items-center gap-2 mb-3",children:[e("div",{className:`w-3 h-3 rounded-full ${f?.color}`}),e("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:f?.name}),e(C,{variant:"secondary",className:"text-xs",children:g.length})]})," ",e("div",{className:"space-y-3",children:g.map(p=>e(P,{task:p,epic:f,onDragStart:q,onTaskClick:W,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),d(X,{children:[e(b,{isOpen:F,onClose:()=>E(!1),onAddTask:G,epics:o,sprints:m}),e(h,{isOpen:H,onClose:()=>A(!1),onAddEpic:Q}),c&&e(O,{isOpen:!!c,onClose:()=>u(null),task:c,epics:o,sprints:m,onUpdateTask:J,onDeleteTask:L})]})]})})]})};export{cs as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g}from"./chunk-TAYYCGWX.mjs";import{a}from"./chunk-DBVX4BDP.mjs";import{a as p}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as S}from"lucide-react";import{jsx as i,jsxs as b}from"react/jsx-runtime";var f=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:i(S,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Y({sidebarItems:r,children:v,title:h="Digital Colleagues",notifications:U=[],currentBusinessUnit:C=f[0],onBusinessUnitChange:N,businessUnits:I=f,activeTab:B,onTabChange:x,showTabs:T=!1,onActionClick:R,actionIcon:A,actionText:k="Action",onNotificationRemove:w,onRemoveAll:y,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform"}){let[e,M]=l(!0),[c,t]=l(!1),[d,O]=l(C),m=u=>{O(u),N?.(u)};return b("div",{className:"flex h-full flex-col overflow-hidden rounded-xl border bg-background w-[]",children:[c&&i("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),i("div",{className:"md:hidden",children:i(a,{items:r,isOpen:c,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:d,onBusinessUnitChange:m,logo:n,appName:o,tagline:s})}),i("div",{className:"hidden md:block",children:i(a,{items:r,isOpen:e,isMobile:!1,currentBusinessUnit:d,onBusinessUnitChange:m,logo:n,appName:o,tagline:s})}),b("div",{className:p("min-h-screen fixed w-full transition-all duration-300 ease-in-out",e?"md:pl-64":"md:pl-0"),children:[i(g,{title:h,notifications:U,onToggleSidebar:()=>M(!e),onToggleMobileMenu:()=>t(!0),sidebarOpen:e,activeTab:B,onTabChange:x,showTabs:T,onActionClick:R,actionIcon:A,actionText:k,onNotificationRemove:w,onRemoveAll:y,logo:n,appName:o,tagline:s}),i("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:v})]})]})}export{Y as a};
4
+ import{a as g}from"./chunk-PM35MWKG.mjs";import{a}from"./chunk-DLUWDQSW.mjs";import{a as p}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as S}from"lucide-react";import{jsx as i,jsxs as b}from"react/jsx-runtime";var f=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:i(S,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Y({sidebarItems:r,children:v,title:h="Digital Colleagues",notifications:U=[],currentBusinessUnit:C=f[0],onBusinessUnitChange:N,businessUnits:I=f,activeTab:B,onTabChange:x,showTabs:T=!1,onActionClick:R,actionIcon:A,actionText:k="Action",onNotificationRemove:w,onRemoveAll:y,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform"}){let[e,M]=l(!0),[c,t]=l(!1),[d,O]=l(C),m=u=>{O(u),N?.(u)};return b("div",{className:"flex h-full flex-col overflow-hidden rounded-xl border bg-background w-[]",children:[c&&i("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),i("div",{className:"md:hidden",children:i(a,{items:r,isOpen:c,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:d,onBusinessUnitChange:m,logo:n,appName:o,tagline:s})}),i("div",{className:"hidden md:block",children:i(a,{items:r,isOpen:e,isMobile:!1,currentBusinessUnit:d,onBusinessUnitChange:m,logo:n,appName:o,tagline:s})}),b("div",{className:p("min-h-screen fixed w-full transition-all duration-300 ease-in-out",e?"md:pl-64":"md:pl-0"),children:[i(g,{title:h,notifications:U,onToggleSidebar:()=>M(!e),onToggleMobileMenu:()=>t(!0),sidebarOpen:e,activeTab:B,onTabChange:x,showTabs:T,onActionClick:R,actionIcon:A,actionText:k,onNotificationRemove:w,onRemoveAll:y,logo:n,appName:o,tagline:s}),i("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:v})]})]})}export{Y as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as v,b as c,i as h,j as d}from"./chunk-OCPX4QPC.mjs";import{a as x,b as f,c as w}from"./chunk-SOLZ4VQH.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as N,b as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import{useState as I}from"react";import{MoreHorizontal as S,Mail as T,Phone as E,MapPin as $,Clock as z,Settings as C,Trash2 as P,Edit as H,User as F,Bot as L}from"lucide-react";import{Fragment as U,jsx as t,jsxs as a}from"react/jsx-runtime";function X({colleague:e,onEdit:y,onDelete:M,onViewDetails:D,showActions:b=!0,compact:n=!1,className:k}){let[r,p]=I(!1),V=s=>{switch(s){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},B=s=>{switch(s){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},A=s=>{if(!s)return"Never";let o=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return o<1?"Just now":o<60?`${o}m ago`:o<1440?`${Math.floor(o/60)}h ago`:`${Math.floor(o/1440)}d ago`};return a(N,{className:i("hover:shadow-md transition-shadow",n&&"p-2",k),children:[t(u,{className:i("pb-3",n&&"pb-2"),children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t("div",{className:"relative",children:a(x,{className:i("h-12 w-12",n&&"h-8 w-8"),children:[t(f,{src:"/placeholder.svg",alt:e.name}),t(w,{children:e.name.split(" ").map(s=>s[0]).join("")})]})}),a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2",children:[t("h3",{className:i("font-semibold text-sm truncate",n&&"text-xs"),children:e.name}),e.type==="digital"?t(L,{className:i("h-4 w-4 text-blue-500",n&&"h-3 w-3")}):t(F,{className:i("h-4 w-4 text-green-500",n&&"h-3 w-3")})]}),t("p",{className:i("text-sm text-muted-foreground truncate",n&&"text-xs"),children:e.type==="human"?e.role:e.description}),!n&&a("div",{className:"flex items-center gap-2 mt-1",children:[e.type==="human"&&t(m,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&a(m,{variant:"secondary",className:"text-xs",children:["v",e.version]}),t(m,{variant:"outline",className:"text-xs",children:B(e.status)})]})]})]}),b&&a(v,{children:[t(c,{asChild:!0,children:t(l,{variant:"ghost",size:"icon",className:i("h-8 w-8",n&&"h-6 w-6"),children:t(S,{className:i("h-4 w-4",n&&"h-3 w-3")})})}),a(h,{align:"end",children:[a(d,{onClick:()=>D?.(e),children:[t(C,{className:"h-4 w-4 mr-2"}),"View Details"]}),a(d,{onClick:()=>y?.(e),children:[t(H,{className:"h-4 w-4 mr-2"}),"Edit"]}),a(d,{onClick:()=>M?.(e.id),className:"text-destructive focus:text-destructive",children:[t(P,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),!n&&a(g,{className:"pt-0",children:[a("div",{className:"space-y-2 text-sm",children:[e.type==="human"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(T,{className:"h-3 w-3"}),t("span",{className:"truncate",children:e.email})]}),e.type==="human"&&a(U,{children:[e.phone&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(E,{className:"h-3 w-3"}),t("span",{children:e.phone})]}),e.location&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t($,{className:"h-3 w-3"}),t("span",{children:e.location})]})]}),e.type==="digital"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(C,{className:"h-3 w-3"}),a("span",{children:["v",e.version]})]}),a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(z,{className:"h-3 w-3"}),a("span",{children:["Last active: ",A(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,r?e.skills.length:3).map(s=>t(m,{variant:"outline",className:"text-xs",children:s},s)),e.skills.length>3&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,r?e.capabilities.length:2).map(s=>t(m,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>2&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}export{X as a};
4
+ import{a as v,b as c,i as h,j as d}from"./chunk-OCPX4QPC.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as x,b as f,c as w}from"./chunk-SOLZ4VQH.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as N,b as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import{useState as I}from"react";import{MoreHorizontal as S,Mail as T,Phone as E,MapPin as $,Clock as z,Settings as C,Trash2 as P,Edit as H,User as F,Bot as L}from"lucide-react";import{Fragment as U,jsx as t,jsxs as a}from"react/jsx-runtime";function X({colleague:e,onEdit:y,onDelete:M,onViewDetails:D,showActions:b=!0,compact:n=!1,className:k}){let[r,p]=I(!1),V=s=>{switch(s){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},B=s=>{switch(s){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},A=s=>{if(!s)return"Never";let o=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return o<1?"Just now":o<60?`${o}m ago`:o<1440?`${Math.floor(o/60)}h ago`:`${Math.floor(o/1440)}d ago`};return a(N,{className:i("hover:shadow-md transition-shadow",n&&"p-2",k),children:[t(u,{className:i("pb-3",n&&"pb-2"),children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t("div",{className:"relative",children:a(x,{className:i("h-12 w-12",n&&"h-8 w-8"),children:[t(f,{src:"/placeholder.svg",alt:e.name}),t(w,{children:e.name.split(" ").map(s=>s[0]).join("")})]})}),a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2",children:[t("h3",{className:i("font-semibold text-sm truncate",n&&"text-xs"),children:e.name}),e.type==="digital"?t(L,{className:i("h-4 w-4 text-blue-500",n&&"h-3 w-3")}):t(F,{className:i("h-4 w-4 text-green-500",n&&"h-3 w-3")})]}),t("p",{className:i("text-sm text-muted-foreground truncate",n&&"text-xs"),children:e.type==="human"?e.role:e.description}),!n&&a("div",{className:"flex items-center gap-2 mt-1",children:[e.type==="human"&&t(m,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&a(m,{variant:"secondary",className:"text-xs",children:["v",e.version]}),t(m,{variant:"outline",className:"text-xs",children:B(e.status)})]})]})]}),b&&a(v,{children:[t(c,{asChild:!0,children:t(l,{variant:"ghost",size:"icon",className:i("h-8 w-8",n&&"h-6 w-6"),children:t(S,{className:i("h-4 w-4",n&&"h-3 w-3")})})}),a(h,{align:"end",children:[a(d,{onClick:()=>D?.(e),children:[t(C,{className:"h-4 w-4 mr-2"}),"View Details"]}),a(d,{onClick:()=>y?.(e),children:[t(H,{className:"h-4 w-4 mr-2"}),"Edit"]}),a(d,{onClick:()=>M?.(e.id),className:"text-destructive focus:text-destructive",children:[t(P,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),!n&&a(g,{className:"pt-0",children:[a("div",{className:"space-y-2 text-sm",children:[e.type==="human"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(T,{className:"h-3 w-3"}),t("span",{className:"truncate",children:e.email})]}),e.type==="human"&&a(U,{children:[e.phone&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(E,{className:"h-3 w-3"}),t("span",{children:e.phone})]}),e.location&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t($,{className:"h-3 w-3"}),t("span",{children:e.location})]})]}),e.type==="digital"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(C,{className:"h-3 w-3"}),a("span",{children:["v",e.version]})]}),a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(z,{className:"h-3 w-3"}),a("span",{children:["Last active: ",A(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,r?e.skills.length:3).map(s=>t(m,{variant:"outline",className:"text-xs",children:s},s)),e.skills.length>3&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,r?e.capabilities.length:2).map(s=>t(m,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>2&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}export{X as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{f as l}from"./chunk-6LZRVGXZ.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-2BR55L74.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
4
+ import{f as l}from"./chunk-77YVLEKT.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-VRE6VCHX.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as n}from"./chunk-INCYANPB.mjs";import{a as d,b as p,c as v}from"./chunk-SOLZ4VQH.mjs";import{b as g}from"./chunk-CSBGSBEU.mjs";import{b as r}from"./chunk-ZUA4KNIR.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
4
+ import{a as n}from"./chunk-INCYANPB.mjs";import{b as r}from"./chunk-ZUA4KNIR.mjs";import{a as d,b as p,c as v}from"./chunk-SOLZ4VQH.mjs";import{b as g}from"./chunk-CSBGSBEU.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
@@ -1 +1 @@
1
- import{a as v}from"./chunk-7A3BV5SJ.mjs";import{a as p}from"./chunk-3OKVKXQT.mjs";import{c as b,d as h}from"./chunk-6LZRVGXZ.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
1
+ import{a as p}from"./chunk-CK2TFJB2.mjs";import{a as v}from"./chunk-BA53AOCS.mjs";import{c as b,d as h}from"./chunk-77YVLEKT.mjs";import{a as k}from"./chunk-UZSBX5GO.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
@@ -1 +1 @@
1
- import{a}from"./chunk-2BR55L74.mjs";import{a as e}from"./chunk-MDJREBVI.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
1
+ import{a}from"./chunk-VRE6VCHX.mjs";import{a as e}from"./chunk-MDJREBVI.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-C4UPRDGQ.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
1
+ import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-OCYVZBS7.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-2BR55L74.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
1
+ import{a as e}from"./chunk-VRE6VCHX.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-TEB67NCD.mjs";import{a as r}from"./chunk-KFCSVEI6.mjs";import{Fragment as n}from"react";import{jsx as o}from"react/jsx-runtime";var y=e=>{let{className:a,htmlElement:t="div",resource:i}=e,s=typeof i=="object"&&i?.mimeType?.includes("video");return o(t||n,{...t!==null?{className:a}:{},children:s?o(r,{...e}):o(m,{...e})})};export{y as a};
1
+ import{a as r}from"./chunk-KFCSVEI6.mjs";import{a as m}from"./chunk-TEB67NCD.mjs";import{Fragment as n}from"react";import{jsx as o}from"react/jsx-runtime";var y=e=>{let{className:a,htmlElement:t="div",resource:i}=e,s=typeof i=="object"&&i?.mimeType?.includes("video");return o(t||n,{...t!==null?{className:a}:{},children:s?o(r,{...e}):o(m,{...e})})};export{y as a};