cortex-react-components 2.0.2 → 2.0.3

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 (461) hide show
  1. package/dist/{chunk-YVI5URXW.mjs → chunk-2NMVE5M4.mjs} +1 -1
  2. package/dist/{chunk-GQVNL534.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  3. package/dist/{chunk-ZFBEBFCI.mjs → chunk-3KITWLRN.mjs} +1 -1
  4. package/dist/{chunk-3OKVKXQT.mjs → chunk-436WKDWG.mjs} +1 -1
  5. package/dist/{chunk-S7SHOCHM.mjs → chunk-6SWKEZN6.mjs} +1 -1
  6. package/dist/{chunk-AV5SA2JB.mjs → chunk-6T4OEOJH.mjs} +1 -1
  7. package/dist/{chunk-VM25PG5R.mjs → chunk-A2AEX4YB.mjs} +1 -1
  8. package/dist/{chunk-CG2SBWT7.mjs → chunk-A3SUL73A.mjs} +1 -1
  9. package/dist/{chunk-HIHXHTK3.mjs → chunk-ABGNIQRP.mjs} +1 -1
  10. package/dist/{chunk-PANOPGUW.mjs → chunk-AVHFRD6D.mjs} +1 -1
  11. package/dist/{chunk-6QSBVWNG.mjs → chunk-BADFWNRL.mjs} +1 -1
  12. package/dist/{chunk-KN65DDFI.mjs → chunk-CVLUVZR3.mjs} +1 -1
  13. package/dist/{chunk-CXV6AWOX.mjs → chunk-D3B2YO7G.mjs} +1 -1
  14. package/dist/{chunk-BWTA3BKK.mjs → chunk-DLUWDQSW.mjs} +1 -1
  15. package/dist/{chunk-VN7TASR4.mjs → chunk-DUEPJ3F4.mjs} +1 -1
  16. package/dist/{chunk-BPTRLIWH.mjs → chunk-DY2G774J.mjs} +1 -1
  17. package/dist/{chunk-RENPEB5D.mjs → chunk-EG646342.mjs} +1 -1
  18. package/dist/{chunk-SRCJSWQF.mjs → chunk-EOXVYLPB.mjs} +1 -1
  19. package/dist/{chunk-RTAA6HZ2.mjs → chunk-EVZSRWUW.mjs} +1 -1
  20. package/dist/{chunk-BXHNSQWH.mjs → chunk-FOISWNF5.mjs} +1 -1
  21. package/dist/{chunk-E37JPSPB.mjs → chunk-FRKGQKEM.mjs} +1 -1
  22. package/dist/{chunk-XHMVS6GT.mjs → chunk-FV3W3WL7.mjs} +1 -1
  23. package/dist/{chunk-7A3BV5SJ.mjs → chunk-G6ED5Z4J.mjs} +1 -1
  24. package/dist/{chunk-IN55EBPV.mjs → chunk-GS2VFNHY.mjs} +1 -1
  25. package/dist/{chunk-MWXZUSRT.mjs → chunk-HH3AWPYB.mjs} +1 -1
  26. package/dist/{chunk-IEUDWPYZ.mjs → chunk-IQ3TUH7O.mjs} +1 -1
  27. package/dist/{chunk-6LZRVGXZ.mjs → chunk-IUT6JJHY.mjs} +1 -1
  28. package/dist/{chunk-LALFQI3P.mjs → chunk-IV5HRCWW.mjs} +1 -1
  29. package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
  30. package/dist/{chunk-UKYWLNKE.mjs → chunk-KJMXSFJA.mjs} +1 -1
  31. package/dist/{chunk-QQ36F4C4.mjs → chunk-KOXC4RIH.mjs} +1 -1
  32. package/dist/{chunk-QRJOCPHI.mjs → chunk-KTET6W73.mjs} +1 -1
  33. package/dist/{chunk-DYHW653F.mjs → chunk-KXZFR7TI.mjs} +1 -1
  34. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  35. package/dist/{chunk-75WE6ZXB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  36. package/dist/{chunk-KDSAOIPC.mjs → chunk-LC2RBE7W.mjs} +1 -1
  37. package/dist/{chunk-OFXZKSCN.mjs → chunk-M4NJB4NN.mjs} +1 -1
  38. package/dist/{chunk-6VPRGZON.mjs → chunk-MNI6AM7Q.mjs} +1 -1
  39. package/dist/{chunk-KLEXMJR2.mjs → chunk-NZS3XKXU.mjs} +1 -1
  40. package/dist/{chunk-XP4XLR2J.mjs → chunk-OB5WMODY.mjs} +1 -1
  41. package/dist/{chunk-ALI7Z4HH.mjs → chunk-OEFXIEY3.mjs} +1 -1
  42. package/dist/{chunk-MGJTWNXD.mjs → chunk-OJYMSL24.mjs} +1 -1
  43. package/dist/{chunk-ZDOLX6I2.mjs → chunk-PEQOQ7BK.mjs} +1 -1
  44. package/dist/{chunk-GLLR2OOI.mjs → chunk-PFLESLNT.mjs} +1 -1
  45. package/dist/{chunk-66WBIP2O.mjs → chunk-PLTKMHUH.mjs} +1 -1
  46. package/dist/{chunk-TAYYCGWX.mjs → chunk-PM35MWKG.mjs} +1 -1
  47. package/dist/{chunk-AQLCYCLG.mjs → chunk-PXPSM7OQ.mjs} +1 -1
  48. package/dist/{chunk-RIK7YEA6.mjs → chunk-QDAJ7QAD.mjs} +1 -1
  49. package/dist/{chunk-UDPQ4MXR.mjs → chunk-R7LPCFUJ.mjs} +1 -1
  50. package/dist/{chunk-4TVYOBYI.mjs → chunk-RK2CAIEF.mjs} +1 -1
  51. package/dist/{chunk-BHKBIYMM.mjs → chunk-RUOYGMOR.mjs} +1 -1
  52. package/dist/{chunk-EGHHWTFA.mjs → chunk-S562PA5P.mjs} +1 -1
  53. package/dist/{chunk-43IUXVGW.mjs → chunk-SNZ5BAQQ.mjs} +1 -1
  54. package/dist/chunk-SRUG246N.mjs +4 -0
  55. package/dist/{chunk-NOHO4XDS.mjs → chunk-TO2UDP5T.mjs} +1 -1
  56. package/dist/{chunk-SG5QL77J.mjs → chunk-TO7KJNKC.mjs} +1 -1
  57. package/dist/{chunk-QDYF4Z2F.mjs → chunk-TUI4S4GI.mjs} +1 -1
  58. package/dist/{chunk-N25B5TQ5.mjs → chunk-TZKQXT7Y.mjs} +1 -1
  59. package/dist/{chunk-VNMKCJBJ.mjs → chunk-U7GAPI7X.mjs} +1 -1
  60. package/dist/{chunk-OFFFATED.mjs → chunk-UIMLXZPF.mjs} +1 -1
  61. package/dist/{chunk-6U2XBCMC.mjs → chunk-UNS6CTQZ.mjs} +1 -1
  62. package/dist/{chunk-XCCL5CIT.mjs → chunk-V2KCUPP5.mjs} +1 -1
  63. package/dist/{chunk-D6W4VUUS.mjs → chunk-VKJ7E6OL.mjs} +1 -1
  64. package/dist/{chunk-IQKWNF37.mjs → chunk-WHDJPD5E.mjs} +1 -1
  65. package/dist/{chunk-4TU4OACM.mjs → chunk-WN2LPOQP.mjs} +1 -1
  66. package/dist/{chunk-ZLSF5YXT.mjs → chunk-XGRRLABA.mjs} +1 -1
  67. package/dist/{chunk-C4UPRDGQ.mjs → chunk-XI5H6WLY.mjs} +1 -1
  68. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  69. package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
  70. package/dist/common-types.mjs +1 -1
  71. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  72. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  73. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +1 -1
  74. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  75. package/dist/components/AdvancedComponents/index.mjs +1 -1
  76. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  77. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  78. package/dist/components/AdvancedComponents/sidebar.mjs +1 -1
  79. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  80. package/dist/components/AdvancedComponents/theme-provider.mjs +3 -1
  81. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  82. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  83. package/dist/components/Blocks/Banner.js +1 -2
  84. package/dist/components/Blocks/Banner.mjs +1 -1
  85. package/dist/components/Blocks/CallToAction.js +1 -2
  86. package/dist/components/Blocks/CallToAction.mjs +1 -1
  87. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  88. package/dist/components/Blocks/Code.client.mjs +1 -1
  89. package/dist/components/Blocks/Code.mjs +1 -1
  90. package/dist/components/Blocks/CollapsibleArea.js +1 -2
  91. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  92. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  93. package/dist/components/Blocks/Content.js +1 -2
  94. package/dist/components/Blocks/Content.mjs +1 -1
  95. package/dist/components/Blocks/CopyButton.mjs +1 -1
  96. package/dist/components/Blocks/FeaturesBlock.js +1 -2
  97. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  98. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  99. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  100. package/dist/components/Blocks/InfoTile.mjs +1 -1
  101. package/dist/components/Blocks/Insight.mjs +1 -1
  102. package/dist/components/Blocks/MOTD.mjs +1 -1
  103. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  104. package/dist/components/Blocks/OrgChart.mjs +1 -1
  105. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  106. package/dist/components/Blocks/RelatedPosts.js +1 -2
  107. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  108. package/dist/components/Blocks/RenderBlocks.js +1 -2
  109. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  110. package/dist/components/Blocks/ReusableContentBlock.js +1 -2
  111. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  112. package/dist/components/Blocks/WhyUs.mjs +1 -1
  113. package/dist/components/Blocks/index.js +1 -2
  114. package/dist/components/Blocks/index.mjs +1 -1
  115. package/dist/components/CRM/CogeBoard.mjs +1 -1
  116. package/dist/components/CRM/DealCard.mjs +1 -1
  117. package/dist/components/CRM/DealDetails.mjs +1 -1
  118. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  119. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  120. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  121. package/dist/components/CRM/NewDealForm.mjs +1 -1
  122. package/dist/components/CRM/index.mjs +1 -1
  123. package/dist/components/CRM/mockData.mjs +1 -1
  124. package/dist/components/Cards/ContentCard.js +1 -2
  125. package/dist/components/Cards/ContentCard.mjs +1 -1
  126. package/dist/components/Cards/CustomerCard.mjs +1 -1
  127. package/dist/components/Cards/EventCard.mjs +1 -1
  128. package/dist/components/Cards/FeatureCard.js +1 -2
  129. package/dist/components/Cards/FeatureCard.mjs +1 -1
  130. package/dist/components/Cards/HeroCard.mjs +1 -1
  131. package/dist/components/Cards/Image.mjs +1 -1
  132. package/dist/components/Cards/PricingCard.mjs +1 -1
  133. package/dist/components/Cards/ProjectCard.mjs +1 -1
  134. package/dist/components/Cards/ServiceCard.mjs +1 -1
  135. package/dist/components/Cards/index.js +4 -5
  136. package/dist/components/Cards/index.mjs +1 -1
  137. package/dist/components/Chat/CAPABILITIES_README.mjs +1 -1
  138. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  139. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  140. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  141. package/dist/components/Chat/ChatMessage.mjs +1 -1
  142. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  143. package/dist/components/Chat/EnhancedChatInterface.mjs +1 -1
  144. package/dist/components/Chat/ai-chat-interface.mjs +3 -1
  145. package/dist/components/Chat/capabilities-config.mjs +1 -1
  146. package/dist/components/Chat/capabilities-data.mjs +1 -1
  147. package/dist/components/Chat/capabilities.mjs +1 -1
  148. package/dist/components/Chat/capability-menu.mjs +1 -1
  149. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  150. package/dist/components/Chat/hooks/useTask.mjs +1 -1
  151. package/dist/components/Chat/index.mjs +1 -1
  152. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  153. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  154. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  155. package/dist/components/DeliveryLead/index.mjs +1 -1
  156. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  157. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  158. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  159. package/dist/components/DigitalColleagues/MainPage.mjs +3 -1
  160. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  161. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +3 -1
  162. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  163. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  164. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  165. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  166. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  167. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  168. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  169. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  170. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  171. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  172. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  173. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  174. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  175. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  176. package/dist/components/HeaderFooter/Header.mjs +1 -1
  177. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  178. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  179. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  180. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  181. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  182. package/dist/components/HeaderFooter/SectionHeading.js +1 -2
  183. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  184. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  185. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  186. package/dist/components/HeaderFooter/index.mjs +1 -1
  187. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  188. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  189. package/dist/components/Heros/HighImpact/index.js +1 -2
  190. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  191. package/dist/components/Heros/LowImpact/index.js +1 -2
  192. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  193. package/dist/components/Heros/MediumImpact/index.js +1 -2
  194. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  195. package/dist/components/Heros/PostHero/index.mjs +1 -1
  196. package/dist/components/Heros/RenderHero.js +1 -2
  197. package/dist/components/Heros/RenderHero.mjs +1 -1
  198. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  199. package/dist/components/Heros/index.js +1 -2
  200. package/dist/components/Heros/index.mjs +1 -1
  201. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  202. package/dist/components/Holidays/CalendarView.mjs +1 -1
  203. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  204. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  205. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  206. package/dist/components/Holidays/index.mjs +1 -1
  207. package/dist/components/Icons/ScrollDownIcon.mjs +3 -1
  208. package/dist/components/Images/DynamicIcon.mjs +1 -1
  209. package/dist/components/Images/IconIndex.mjs +1 -1
  210. package/dist/components/Images/customIconList.mjs +1 -1
  211. package/dist/components/Images/index.mjs +1 -1
  212. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  213. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  214. package/dist/components/Layouts/NewsList.mjs +1 -1
  215. package/dist/components/Layouts/OutputHeaderFooter.js +2 -3
  216. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  217. package/dist/components/Layouts/Print.js +2 -3
  218. package/dist/components/Layouts/Print.mjs +1 -1
  219. package/dist/components/Layouts/SlideShow.js +3 -4
  220. package/dist/components/Layouts/SlideShow.mjs +1 -1
  221. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  222. package/dist/components/Layouts/index.js +5 -6
  223. package/dist/components/Layouts/index.mjs +1 -1
  224. package/dist/components/Menus/Categories.mjs +1 -1
  225. package/dist/components/Menus/Filter.mjs +1 -1
  226. package/dist/components/Menus/Pagination.mjs +1 -1
  227. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  228. package/dist/components/Menus/RelatedContent.mjs +1 -1
  229. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  230. package/dist/components/Menus/SidebarRight.mjs +1 -1
  231. package/dist/components/Menus/index.mjs +1 -1
  232. package/dist/components/Other/AnimatedBorder.mjs +3 -1
  233. package/dist/components/Other/Container.mjs +1 -1
  234. package/dist/components/Other/CustomLink.mjs +1 -1
  235. package/dist/components/Other/PageShape.mjs +1 -1
  236. package/dist/components/Other/ThemeProvider.mjs +1 -1
  237. package/dist/components/Other/index.mjs +1 -1
  238. package/dist/components/Payload/Card/index.mjs +1 -1
  239. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  240. package/dist/components/Payload/Link/index.mjs +1 -1
  241. package/dist/components/Payload/Logo/index.mjs +1 -1
  242. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  243. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  244. package/dist/components/Payload/Media/index.mjs +1 -1
  245. package/dist/components/Payload/PageRange/index.mjs +1 -1
  246. package/dist/components/Payload/Pagination/index.mjs +1 -1
  247. package/dist/components/Payload/RichText/index.js +1 -2
  248. package/dist/components/Payload/RichText/index.mjs +1 -1
  249. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  250. package/dist/components/Payload/RichText/serialize.js +1 -2
  251. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  252. package/dist/components/Payload/index.js +1 -2
  253. package/dist/components/Payload/index.mjs +1 -1
  254. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  255. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  256. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  257. package/dist/components/Projects/EpicFilter.mjs +1 -1
  258. package/dist/components/Projects/EpicsView.mjs +1 -1
  259. package/dist/components/Projects/FileView.mjs +1 -1
  260. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  261. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  262. package/dist/components/Projects/PlanningView.mjs +1 -1
  263. package/dist/components/Projects/ProjectPage.mjs +3 -1
  264. package/dist/components/Projects/ProjectView.mjs +1 -1
  265. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  266. package/dist/components/Projects/TaskCard.mjs +1 -1
  267. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  268. package/dist/components/Projects/TaskSelect.mjs +1 -1
  269. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  270. package/dist/components/Projects/TasksView.mjs +1 -1
  271. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  272. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  273. package/dist/components/Projects/business-units.mjs +1 -1
  274. package/dist/components/Projects/file-list.mjs +1 -1
  275. package/dist/components/Projects/project-card.mjs +1 -1
  276. package/dist/components/Projects/project-form.mjs +1 -1
  277. package/dist/components/Projects/team-card.mjs +1 -1
  278. package/dist/components/Projects/team-switcher-bar.mjs +3 -1
  279. package/dist/components/Projects/test-data.mjs +1 -1
  280. package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +1 -1
  281. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +1 -1
  282. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +1 -1
  283. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +1 -1
  284. package/dist/components/dc-temp/TEAMS_README.mjs +1 -1
  285. package/dist/components/dc-temp/creative.mjs +1 -1
  286. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  287. package/dist/components/dc-temp/enhanced-header.mjs +3 -1
  288. package/dist/components/dc-temp/headerlogo.mjs +1 -1
  289. package/dist/components/dc-temp/icon-mapper.mjs +1 -1
  290. package/dist/components/dc-temp/index.mjs +1 -1
  291. package/dist/components/dc-temp/knowledge-browser.mjs +1 -1
  292. package/dist/components/dc-temp/knowledge-search.mjs +1 -1
  293. package/dist/components/dc-temp/loading.mjs +1 -1
  294. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  295. package/dist/components/dc-temp/mock-data.mjs +1 -1
  296. package/dist/components/dc-temp/sidebar.mjs +3 -1
  297. package/dist/components/dc-temp/utils.mjs +1 -1
  298. package/dist/components/index.js +9 -10
  299. package/dist/components/index.mjs +1 -1
  300. package/dist/components/ui/alert.mjs +1 -1
  301. package/dist/components/ui/avatar.mjs +1 -1
  302. package/dist/components/ui/badge.mjs +1 -1
  303. package/dist/components/ui/breadcrumb.mjs +1 -1
  304. package/dist/components/ui/button.mjs +1 -1
  305. package/dist/components/ui/calendar.mjs +1 -1
  306. package/dist/components/ui/card.mjs +1 -1
  307. package/dist/components/ui/checkbox.mjs +1 -1
  308. package/dist/components/ui/collapsible.mjs +1 -1
  309. package/dist/components/ui/command.mjs +1 -1
  310. package/dist/components/ui/dialog.mjs +1 -1
  311. package/dist/components/ui/dropdown-menu.mjs +1 -1
  312. package/dist/components/ui/hover-card.mjs +1 -1
  313. package/dist/components/ui/index.mjs +1 -1
  314. package/dist/components/ui/input.mjs +1 -1
  315. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  316. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  317. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  318. package/dist/components/ui/label.mjs +1 -1
  319. package/dist/components/ui/pagination.mjs +1 -1
  320. package/dist/components/ui/popover.mjs +1 -1
  321. package/dist/components/ui/progress.mjs +1 -1
  322. package/dist/components/ui/scroll-area.mjs +1 -1
  323. package/dist/components/ui/select.mjs +1 -1
  324. package/dist/components/ui/separator.mjs +1 -1
  325. package/dist/components/ui/sheet.mjs +1 -1
  326. package/dist/components/ui/sidebar.mjs +1 -1
  327. package/dist/components/ui/skeleton.mjs +1 -1
  328. package/dist/components/ui/switch.mjs +1 -1
  329. package/dist/components/ui/tabs.mjs +1 -1
  330. package/dist/components/ui/textarea.mjs +1 -1
  331. package/dist/components/ui/toast.mjs +1 -1
  332. package/dist/components/ui/toaster.mjs +1 -1
  333. package/dist/components/ui/toggle-group.mjs +1 -1
  334. package/dist/components/ui/toggle.mjs +1 -1
  335. package/dist/components/ui/tooltip.mjs +1 -1
  336. package/dist/constants.mjs +1 -1
  337. package/dist/fonts/Manrope-Bold.mjs +1 -1
  338. package/dist/fonts/Manrope-ExtraBold.mjs +1 -1
  339. package/dist/fonts/Manrope-ExtraLight.mjs +1 -1
  340. package/dist/fonts/Manrope-Light.mjs +1 -1
  341. package/dist/fonts/Manrope-Medium.mjs +1 -1
  342. package/dist/fonts/Manrope-Regular.mjs +1 -1
  343. package/dist/fonts/Manrope-SemiBold.mjs +1 -1
  344. package/dist/hooks/index.mjs +1 -1
  345. package/dist/hooks/use-local-storage.mjs +1 -1
  346. package/dist/hooks/use-mobile.mjs +1 -1
  347. package/dist/hooks/use-toast.mjs +1 -1
  348. package/dist/images/cortex-reply-bw.mjs +1 -1
  349. package/dist/images/cortex-reply-dark.mjs +1 -1
  350. package/dist/images/cortex-reply-gradient.mjs +1 -1
  351. package/dist/images/cortex-reply-light.mjs +1 -1
  352. package/dist/images/cortex-reply.mjs +1 -1
  353. package/dist/images/hero/hero-3.mjs +1 -1
  354. package/dist/images/hero/image-hero1.mjs +1 -1
  355. package/dist/images/hero/pattern-1.mjs +1 -1
  356. package/dist/images/hero/pattern-2.mjs +1 -1
  357. package/dist/index.js +11 -12
  358. package/dist/index.mjs +1 -1
  359. package/dist/metafile-cjs.json +1 -1
  360. package/dist/metafile-esm.json +1 -1
  361. package/dist/pages/Blog.js +1 -2
  362. package/dist/pages/Blog.mjs +1 -1
  363. package/dist/pages/Documentation.mjs +3 -1
  364. package/dist/pages/IndexPage.mjs +3 -1
  365. package/dist/pages/Intranet.mjs +1 -1
  366. package/dist/pages/LandingPage.js +3 -4
  367. package/dist/pages/LandingPage.mjs +3 -1
  368. package/dist/pages/Page.js +1 -2
  369. package/dist/pages/Page.mjs +3 -1
  370. package/dist/pages/Publish.js +5 -6
  371. package/dist/pages/Publish.mjs +1 -1
  372. package/dist/pages/Website.js +1 -2
  373. package/dist/pages/Website.mjs +1 -1
  374. package/dist/sections/AboutSection.js +1 -2
  375. package/dist/sections/AboutSection.mjs +1 -1
  376. package/dist/sections/BlogDetail.js +1 -2
  377. package/dist/sections/BlogDetail.mjs +1 -1
  378. package/dist/sections/BlogList.js +2 -3
  379. package/dist/sections/BlogList.mjs +1 -1
  380. package/dist/sections/BlogListSection.mjs +1 -1
  381. package/dist/sections/ContactSection.js +1 -2
  382. package/dist/sections/ContactSection.mjs +1 -1
  383. package/dist/sections/ImageSection.mjs +1 -1
  384. package/dist/sections/MainPageSection.mjs +1 -1
  385. package/dist/sections/PageSections.js +2 -3
  386. package/dist/sections/PageSections.mjs +1 -1
  387. package/dist/sections/PricingSection.js +1 -2
  388. package/dist/sections/PricingSection.mjs +1 -1
  389. package/dist/sections/ServiceDetail.js +1 -2
  390. package/dist/sections/ServiceDetail.mjs +1 -1
  391. package/dist/sections/ServiceDetailSection.js +1 -2
  392. package/dist/sections/ServiceDetailSection.mjs +1 -1
  393. package/dist/sections/ServiceSection.js +1 -2
  394. package/dist/sections/ServiceSection.mjs +1 -1
  395. package/dist/sections/form/index.d.ts +5 -1
  396. package/dist/sections/form/index.js +1 -2
  397. package/dist/sections/form/index.mjs +1 -1
  398. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  399. package/dist/sections/form/server/index.d.ts +2 -0
  400. package/dist/sections/form/server/index.js +4 -0
  401. package/dist/sections/form/server/index.mjs +1 -0
  402. package/dist/sections/index.d.ts +1 -0
  403. package/dist/sections/index.js +3 -4
  404. package/dist/sections/index.mjs +1 -1
  405. package/dist/styles/Colors.mjs +1 -1
  406. package/dist/styles/Typography.mjs +1 -1
  407. package/dist/test-data/capabilities.mjs +1 -1
  408. package/dist/tests/payload.mjs +1 -1
  409. package/dist/utils/AOSInit.mjs +1 -1
  410. package/dist/utils/BankHolidays.mjs +1 -1
  411. package/dist/utils/DaysUtil.mjs +1 -1
  412. package/dist/utils/canUseDOM.mjs +1 -1
  413. package/dist/utils/cn.mjs +1 -1
  414. package/dist/utils/formatDateTime.mjs +1 -1
  415. package/dist/utils/getTableOfContents.mjs +1 -1
  416. package/dist/utils/getURL.mjs +1 -1
  417. package/dist/utils/index.mjs +1 -1
  418. package/dist/utils/setStaggeredDelay.mjs +1 -1
  419. package/dist/utils/useClickableCard.mjs +1 -1
  420. package/package.json +7 -1
  421. package/dist/about-1-ANS44UVM.png +0 -0
  422. package/dist/about-2-NDWHP4QV.png +0 -0
  423. package/dist/about-3-RNUOVF6S.png +0 -0
  424. package/dist/about-4-V5ITRBOZ.png +0 -0
  425. package/dist/chunk-3ALU5XV6.mjs +0 -1
  426. package/dist/chunk-3MKCQLBY.mjs +0 -4
  427. package/dist/chunk-3RJA57BI.mjs +0 -4
  428. package/dist/chunk-3SK6PULC.mjs +0 -4
  429. package/dist/chunk-3TVLETYW.mjs +0 -1
  430. package/dist/chunk-3WPEAKCQ.mjs +0 -4
  431. package/dist/chunk-44QDT35M.mjs +0 -1
  432. package/dist/chunk-4BUBW5TX.mjs +0 -4
  433. package/dist/chunk-5C2TR5P3.mjs +0 -4
  434. package/dist/chunk-5ME75SQ2.mjs +0 -218
  435. package/dist/chunk-6AFX6PFG.mjs +0 -470
  436. package/dist/chunk-6XXAI7IR.mjs +0 -1
  437. package/dist/chunk-7DICAJS4.mjs +0 -1
  438. package/dist/chunk-A24IEDVI.mjs +0 -1
  439. package/dist/chunk-BUC3OG2I.mjs +0 -4
  440. package/dist/chunk-CA7JDZIQ.mjs +0 -4
  441. package/dist/chunk-DBVX4BDP.mjs +0 -4
  442. package/dist/chunk-H4X3VQIN.mjs +0 -4
  443. package/dist/chunk-IB6VPDZQ.mjs +0 -1
  444. package/dist/chunk-IZ3PDOST.mjs +0 -1
  445. package/dist/chunk-KGYX6TIY.mjs +0 -4
  446. package/dist/chunk-KSYES4GX.mjs +0 -1
  447. package/dist/chunk-KUVGGKGR.mjs +0 -4
  448. package/dist/chunk-M6LJ4BNZ.mjs +0 -1
  449. package/dist/chunk-N5SEZED7.mjs +0 -1
  450. package/dist/chunk-OJLQ6G4W.mjs +0 -4
  451. package/dist/chunk-PA3BZDTY.mjs +0 -245
  452. package/dist/chunk-PPZXBKTO.mjs +0 -4
  453. package/dist/chunk-TLBLUYXL.mjs +0 -1
  454. package/dist/chunk-U3ZHU3UY.mjs +0 -1
  455. package/dist/chunk-UG7D3VNG.mjs +0 -1
  456. package/dist/chunk-VBGNLDO6.mjs +0 -4
  457. package/dist/chunk-WV2LZOPM.mjs +0 -1
  458. package/dist/chunk-YX3BAJ2N.mjs +0 -1
  459. package/dist/graphql-NFIL2UYH.mjs +0 -177
  460. package/dist/pattern-1-B7SDCBJ3.png +0 -0
  461. 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 +1 @@
1
- import{f as c}from"./chunk-6LZRVGXZ.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g as a};
1
+ import{f as c}from"./chunk-IUT6JJHY.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g 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,2 +1,2 @@
1
- import{f as o}from"./chunk-6LZRVGXZ.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
1
+ import{f as o}from"./chunk-IUT6JJHY.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
2
2
  dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),p=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),h=a=>{let{title:r,hero:t,logoImage:s}=a;return i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(l,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width?t.media.width??1920:1920,height:t.media&&t.media.height?t.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(l,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:r}),t.richText&&e(o,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{n as a,p as b,h as c};
@@ -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 +1 @@
1
- import{f as t}from"./chunk-6LZRVGXZ.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
1
+ import{f as t}from"./chunk-IUT6JJHY.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p 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 +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{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,6 +1,6 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g,b as h,c as b}from"./chunk-RIK7YEA6.mjs";import{b as y}from"./chunk-DYHW653F.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
4
+ import{a as g,b as h,c as b}from"./chunk-QDAJ7QAD.mjs";import{b as y}from"./chunk-KXZFR7TI.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
5
5
  ${o===s?"opacity-100":"opacity-0"}
6
6
  w-full h-full bg-cover bg-center`,children:o===0?t(b,{hero:x,title:c.title,logoImage:m}):w(I,{children:[e.blockName&&t(h,{title:e.blockName}),t(y,{blocks:[e],fill:!0}),t(g,{logoImage:m})]})})},o))}),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:r,children:t(E,{})})]})},E=()=>t(k,{children:t(v.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:t(v.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});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 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 O}from"./chunk-OB5WMODY.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as ae}from"./chunk-SG5QL77J.mjs";import{a as se}from"./chunk-UDPQ4MXR.mjs";import{a as ie}from"./chunk-VM25PG5R.mjs";import{a as _,b as ee,c as te}from"./chunk-5Z5PL7N3.mjs";import{b as j,d as Z}from"./chunk-Q2DPE66H.mjs";import{a as q}from"./chunk-FT3AE7L2.mjs";import{a as E,c as M}from"./chunk-SOLZ4VQH.mjs";import{a as Y}from"./chunk-YO3GQYRJ.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as y}from"./chunk-ZUA4KNIR.mjs";import{a as W}from"./chunk-MDJREBVI.mjs";import{useState as g}from"react";import{motion as we,AnimatePresence as Ne}from"framer-motion";import{Users as Me}from"lucide-react";import{useRef as ge,useEffect as ue,useState as ne,useCallback as fe}from"react";import{motion as V,AnimatePresence as he}from"framer-motion";import{Send as ye,Bot as X,User as ve,Menu as xe,X as be,Paperclip as Ce}from"lucide-react";import{jsx as e,jsxs as l}from"react/jsx-runtime";function oe({messages:C,input:k,isTyping:w=!1,selectedTeam:S,currentSessionTitle:G,capabilities:p,showCapabilities:N=!0,onInputChange:D,onSendMessage:I,onKeyPress:O,fileUploads:d=[],isDragOver:A=!1,enableFileUpload:B=!1,onFileUpload:z,onRemoveFile:T,onDragOver:r,className:F}){let v=ge(null),[u,x]=ne(!1),[R,P]=ne({path:[],selectedItems:[],filters:{}}),U=()=>{v.current?.scrollIntoView({behavior:"smooth"})};ue(()=>{U()},[C]);let f=(a,s)=>{console.log("Capability action:",a,s);let o=`Executing ${a} with context: ${JSON.stringify(s.path.map(L=>L.name))}`;x(!1)},b=fe(a=>{P(a)},[]),$=()=>Z(R),H=()=>{let a=[];return p.forEach(s=>{s.actions&&s.actions.forEach(o=>{a.push({label:o.label,action:()=>f(o.id,{path:[s],selectedItems:[],filters:{}})})}),s.children&&s.children.forEach(o=>{o.type==="list"&&o.data&&a.push({label:`View ${o.name}`,action:()=>x(!0)})})}),a.slice(0,5)};return l(Y,{className:`h-full flex flex-col shadow-sm ${F||""}`,children:[e(q,{className:"flex-1 p-4",children:l("div",{className:"space-y-4",children:[e(he,{children:C.map(a=>{let s=a;return l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:W("flex gap-3",a.type==="user"?"flex-row-reverse":"flex-row"),children:[e(E,{className:"h-8 w-8",children:a.type==="user"?e(M,{children:e(ve,{className:"h-4 w-4"})}):e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),l("div",{className:W("max-w-[80%] rounded-2xl px-4 py-3 shadow-sm",a.type==="user"?"bg-primary text-primary-foreground":"bg-muted"),children:[s.messageType==="image"&&s.image&&e("div",{className:"mb-2",children:e("img",{src:s.image.url,alt:s.image.alt||"Uploaded image",className:"max-w-full h-auto max-h-48 rounded-lg"})}),s.messageType==="file"&&s.file&&e("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:l("div",{className:"flex items-center gap-2",children:[e("span",{className:"text-sm font-medium",children:s.file.name}),l("span",{className:"text-xs opacity-70",children:[(s.file.size/1024/1024).toFixed(1),"MB"]})]})}),s.messageType==="card"&&s.card&&e("div",{className:"mb-2",children:l("div",{className:"p-3 bg-background/50 rounded-lg",children:[e("h4",{className:"font-medium",children:s.card.title}),s.card.description&&e("p",{className:"text-sm opacity-70 mt-1",children:s.card.description})]})}),s.messageType==="reference"&&s.references&&e("div",{className:"mb-2 space-y-1",children:s.references.map(o=>l("div",{className:"p-2 bg-background/50 rounded-lg",children:[e("p",{className:"text-sm font-medium",children:o.title}),o.description&&e("p",{className:"text-xs opacity-70",children:o.description})]},o.id))}),s.messageType==="menu"&&s.menu&&l("div",{className:"mb-2",children:[e("p",{className:"text-sm font-medium mb-2",children:s.menu.title}),e("div",{className:"space-y-1",children:s.menu.items.map(o=>l("button",{onClick:o.action,className:"w-full text-left p-2 bg-background/50 rounded-lg hover:bg-background/70 transition-colors",children:[e("p",{className:"text-sm font-medium",children:o.label}),o.description&&e("p",{className:"text-xs opacity-70",children:o.description})]},o.id))})]}),e("p",{className:"text-sm leading-relaxed",children:a.content}),e("p",{className:"text-xs opacity-70 mt-2",children:a.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]},a.id)})}),N&&u&&l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[e(E,{className:"h-8 w-8",children:e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),e("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:e(ie,{capabilities:p,isOpen:u,onToggle:()=>x(!u),onActionSelect:f,onContextChange:b,className:"w-full"})})]}),w&&l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[e(E,{className:"h-8 w-8",children:e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),e("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:l("div",{className:"flex space-x-1",children:[e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]}),e("div",{ref:v})]})}),d&&d.length>0&&e("div",{className:"border-t p-4 bg-muted/10",children:e("div",{className:"flex flex-wrap gap-2",children:d.map(a=>l("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[e("span",{className:"text-sm font-medium",children:a.file.name}),l("span",{className:"text-xs text-muted-foreground",children:[(a.file.size/1024/1024).toFixed(1),"MB"]}),e(y,{variant:"ghost",size:"sm",onClick:()=>T?.(a.id),className:"h-6 w-6 p-0",children:e(be,{className:"h-4 w-4"})})]},a.id))})}),l("div",{className:"border-t p-4 bg-muted/20",children:[l("div",{className:"flex gap-3",children:[e(Q,{value:k,onChange:a=>D(a.target.value),onKeyPress:O,placeholder:S?`Ask me about ${S.name.toLowerCase()}...`:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:w}),B&&e(y,{variant:"outline",size:"icon",onClick:()=>{let a=document.createElement("input");a.type="file",a.multiple=!0,a.onchange=s=>{let o=s.target.files;z?.(o)},a.click()},className:"rounded-2xl h-10 w-10 shadow-sm",children:e(Ce,{className:"h-4 w-4"})}),e(y,{onClick:I,disabled:!k.trim()&&(!d||d.length===0)||w,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:e(ye,{className:"h-4 w-4"})})]}),N&&l("div",{className:"flex items-center gap-3 mt-3",children:[l(y,{onClick:()=>x(!u),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[e(xe,{className:"h-3 w-3 mr-1"}),u?"Hide":"Show"," Capabilities"]}),l("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[$().map((a,s)=>e(y,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>f(a.id,R),children:a.label},`context-${a.id}`)),$().length===0&&H().map((a,s)=>e(y,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:a.action,children:a.label},`suggestion-${s}`))]})]})]})]})}import{jsx as h,jsxs as De}from"react/jsx-runtime";var ke=[{id:"1",title:"Logo Design Review",lastMessage:"The color palette looks great! Let's refine the typography...",timestamp:new Date(Date.now()-1e3*60*30),teamId:"design"},{id:"2",title:"React Component Optimization",lastMessage:"Here's how you can improve the performance of your component...",timestamp:new Date(Date.now()-1e3*60*60*2),teamId:"engineering"},{id:"3",title:"Campaign Strategy Discussion",lastMessage:"The target audience analysis shows promising results...",timestamp:new Date(Date.now()-1e3*60*60*24),teamId:"marketing"},{id:"4",title:"Product Roadmap Planning",lastMessage:"Based on user feedback, I recommend prioritizing...",timestamp:new Date(Date.now()-1e3*60*60*24*2),teamId:"product"}];function Se({initialTeam:C="design",initialMessages:k,initialSessions:w,showCapabilities:S=!0,title:G="Digital Colleagues",businessUnits:p=te,enableFileUpload:N=!0,maxFileSize:D=10,allowedFileTypes:I=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}={}){let[O,d]=g(k||[{id:"1",role:"assistant",type:"text",content:"Hi! I'm your AI assistant with advanced capabilities. I can help with various tasks, access data, and provide contextual actions. What would you like to work on today?",timestamp:new Date}]),[A,B]=g(""),[z,T]=g(!1),[r,F]=g(p.find(t=>t.id===C)||p[0]),[v,u]=g(null),[x,R]=g(w||ke),[P,U]=g(p.find(t=>t.id===C)||p[0]),[f,b]=g([]),[$,H]=g(!1),a=t=>{if(!t||!N)return;let i=[];Array.from(t).forEach(n=>{if(n.size>D*1024*1024){alert(`File ${n.name} is too large. Maximum size is ${D}MB.`);return}if(I.length>0&&!I.some(m=>n.type.match(m))){alert(`File type ${n.type} is not allowed.`);return}let c={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:n,status:"pending",progress:0};if(n.type.startsWith("image/")){let m=new FileReader;m.onload=de=>{b(pe=>pe.map(K=>K.id===c.id?{...K,preview:de.target?.result}:K))},m.readAsDataURL(n)}i.push(c)}),b(n=>[...n,...i])},s=t=>{b(i=>i.filter(n=>n.id!==t))},o=O.map(t=>({id:t.id,content:t.content,type:t.role==="user"?"user":"ai",timestamp:t.timestamp,role:t.role,messageType:t.type,data:t.data,image:t.image,file:t.file,card:t.card,references:t.references,menu:t.menu})),L=async()=>{if(!A.trim()&&f.length===0)return;let t={id:Date.now().toString(),role:"user",type:"text",content:A,timestamp:new Date};d(i=>[...i,t]),f.length>0&&f.forEach(i=>{if(i.file.type.startsWith("image/")){let n={id:Date.now().toString()+Math.random().toString(36).substr(2,9),role:"user",type:"image",content:`Uploaded image: ${i.file.name}`,image:{url:i.preview||"",alt:i.file.name,width:0,height:0},timestamp:new Date};d(c=>[...c,n])}else{let n={id:Date.now().toString()+Math.random().toString(36).substr(2,9),role:"user",type:"file",content:`Uploaded file: ${i.file.name}`,file:{name:i.file.name,size:i.file.size,type:i.file.type,url:URL.createObjectURL(i.file)},timestamp:new Date};d(c=>[...c,n])}}),B(""),b([]),T(!0),setTimeout(()=>{let i=j.filter(c=>c.name.toLowerCase().includes(r.name.toLowerCase())||r.name.toLowerCase().includes(c.name.toLowerCase())),n=Math.random();if(n<.3){let c={id:(Date.now()+1).toString(),role:"assistant",type:"text",content:`I can help you with ${r.name.toLowerCase()} tasks. Here are some capabilities I have: ${i.map(m=>m.name).join(", ")}`,timestamp:new Date};d(m=>[...m,c])}else if(n<.5){let c={id:(Date.now()+1).toString(),role:"assistant",type:"card",content:`Here's a ${r.name.toLowerCase()} task I created for you:`,card:{title:`${r.name} Task`,description:`A new task for ${r.name.toLowerCase()} team`,variant:"task",data:{id:Math.floor(Math.random()*1e3),name:`${r.name} Task`,description:`Complete this ${r.name.toLowerCase()} task`,status:"todo",dateLogged:new Date().toISOString(),project:{id:1,name:`${r.name} Project`}}},timestamp:new Date};d(m=>[...m,c])}else if(n<.7){let c={id:(Date.now()+1).toString(),role:"assistant",type:"menu",content:`Here are some ${r.name.toLowerCase()} options:`,menu:{title:`${r.name} Options`,items:i.slice(0,3).map(m=>({id:m.id,label:m.name,description:m.description,value:m.id}))},timestamp:new Date};d(m=>[...m,c])}else{let c={id:(Date.now()+1).toString(),role:"assistant",type:"reference",content:`Here are some helpful ${r.name.toLowerCase()} resources:`,references:[{id:"1",title:`${r.name} Best Practices`,description:`Guidelines for ${r.name.toLowerCase()} work`,type:"document"},{id:"2",title:`${r.name} Tools`,description:`Recommended tools for ${r.name.toLowerCase()}`,type:"link"}],timestamp:new Date};d(m=>[...m,c])}T(!1)},1500)},re=t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),L())},J=()=>{u(null),d([{id:"1",role:"assistant",type:"text",content:`Hi! I'm your ${r.name} AI assistant with advanced capabilities. I can help with ${r.name.toLowerCase()} tasks, access relevant data, and provide contextual actions. What would you like to work on today?`,timestamp:new Date}])},le=t=>{u(t);let i=p.find(n=>n.id===t.teamId)||p[0];F(i),U(i),d([{id:"1",role:"assistant",type:"text",content:t.lastMessage,timestamp:t.timestamp}])},me=t=>{R(i=>i.filter(n=>n.id!==t)),v?.id===t&&J()},ce=t=>{console.log("Edit session:",t)};return h(ae,{sidebarItems:_,title:G,notifications:ee,businessUnits:p,currentBusinessUnit:P,onBusinessUnitChange:t=>{U(t),F(t),console.log("Business unit changed to:",t.name)},showTabs:!1,onActionClick:()=>{console.log("Copilot clicked from header")},actionIcon:h(Me,{className:"mr-2 h-4 w-4"}),actionText:"Collaborate",onNotificationRemove:t=>{console.log("Notification removed:",t)},onRemoveAll:()=>{console.log("All notifications removed")},logo:"/headerlogo.png",appName:"Nuvia",tagline:"AI-Powered Workspace",children:h(Ne,{mode:"wait",children:h(we.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:De("div",{className:"h-full flex",children:[h("div",{className:"w-80 bg-muted/50 flex-shrink-0 h-full p-2",children:h(se,{sessions:x,currentSession:v,teams:p,onNewChat:J,onSessionSelect:le,onSessionEdit:ce,onSessionDelete:me})}),h("div",{className:"flex-1 h-full p-2",children:h(oe,{messages:o,input:A,isTyping:z,selectedTeam:r,currentSessionTitle:v?.title,capabilities:j,showCapabilities:S,onInputChange:B,onSendMessage:L,onKeyPress:re,fileUploads:f,isDragOver:$,enableFileUpload:N,onFileUpload:a,onRemoveFile:s,onDragOver:H})})]})},"chat-interface")})})}export{Se as a};
4
+ import{a as ae}from"./chunk-TO7KJNKC.mjs";import{a as ie}from"./chunk-A2AEX4YB.mjs";import{a as se}from"./chunk-R7LPCFUJ.mjs";import{a as _,b as ee,c as te}from"./chunk-5Z5PL7N3.mjs";import{b as j,d as Z}from"./chunk-Q2DPE66H.mjs";import{a as q}from"./chunk-FT3AE7L2.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as y}from"./chunk-ZUA4KNIR.mjs";import{a as E,c as M}from"./chunk-SOLZ4VQH.mjs";import{a as Y}from"./chunk-YO3GQYRJ.mjs";import{a as W}from"./chunk-MDJREBVI.mjs";import{useState as g}from"react";import{motion as we,AnimatePresence as Ne}from"framer-motion";import{Users as Me}from"lucide-react";import{useRef as ge,useEffect as ue,useState as ne,useCallback as fe}from"react";import{motion as V,AnimatePresence as he}from"framer-motion";import{Send as ye,Bot as X,User as ve,Menu as xe,X as be,Paperclip as Ce}from"lucide-react";import{jsx as e,jsxs as l}from"react/jsx-runtime";function oe({messages:C,input:k,isTyping:w=!1,selectedTeam:S,currentSessionTitle:G,capabilities:p,showCapabilities:N=!0,onInputChange:D,onSendMessage:I,onKeyPress:O,fileUploads:d=[],isDragOver:A=!1,enableFileUpload:B=!1,onFileUpload:z,onRemoveFile:T,onDragOver:r,className:F}){let v=ge(null),[u,x]=ne(!1),[R,P]=ne({path:[],selectedItems:[],filters:{}}),U=()=>{v.current?.scrollIntoView({behavior:"smooth"})};ue(()=>{U()},[C]);let f=(a,s)=>{console.log("Capability action:",a,s);let o=`Executing ${a} with context: ${JSON.stringify(s.path.map(L=>L.name))}`;x(!1)},b=fe(a=>{P(a)},[]),$=()=>Z(R),H=()=>{let a=[];return p.forEach(s=>{s.actions&&s.actions.forEach(o=>{a.push({label:o.label,action:()=>f(o.id,{path:[s],selectedItems:[],filters:{}})})}),s.children&&s.children.forEach(o=>{o.type==="list"&&o.data&&a.push({label:`View ${o.name}`,action:()=>x(!0)})})}),a.slice(0,5)};return l(Y,{className:`h-full flex flex-col shadow-sm ${F||""}`,children:[e(q,{className:"flex-1 p-4",children:l("div",{className:"space-y-4",children:[e(he,{children:C.map(a=>{let s=a;return l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:W("flex gap-3",a.type==="user"?"flex-row-reverse":"flex-row"),children:[e(E,{className:"h-8 w-8",children:a.type==="user"?e(M,{children:e(ve,{className:"h-4 w-4"})}):e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),l("div",{className:W("max-w-[80%] rounded-2xl px-4 py-3 shadow-sm",a.type==="user"?"bg-primary text-primary-foreground":"bg-muted"),children:[s.messageType==="image"&&s.image&&e("div",{className:"mb-2",children:e("img",{src:s.image.url,alt:s.image.alt||"Uploaded image",className:"max-w-full h-auto max-h-48 rounded-lg"})}),s.messageType==="file"&&s.file&&e("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:l("div",{className:"flex items-center gap-2",children:[e("span",{className:"text-sm font-medium",children:s.file.name}),l("span",{className:"text-xs opacity-70",children:[(s.file.size/1024/1024).toFixed(1),"MB"]})]})}),s.messageType==="card"&&s.card&&e("div",{className:"mb-2",children:l("div",{className:"p-3 bg-background/50 rounded-lg",children:[e("h4",{className:"font-medium",children:s.card.title}),s.card.description&&e("p",{className:"text-sm opacity-70 mt-1",children:s.card.description})]})}),s.messageType==="reference"&&s.references&&e("div",{className:"mb-2 space-y-1",children:s.references.map(o=>l("div",{className:"p-2 bg-background/50 rounded-lg",children:[e("p",{className:"text-sm font-medium",children:o.title}),o.description&&e("p",{className:"text-xs opacity-70",children:o.description})]},o.id))}),s.messageType==="menu"&&s.menu&&l("div",{className:"mb-2",children:[e("p",{className:"text-sm font-medium mb-2",children:s.menu.title}),e("div",{className:"space-y-1",children:s.menu.items.map(o=>l("button",{onClick:o.action,className:"w-full text-left p-2 bg-background/50 rounded-lg hover:bg-background/70 transition-colors",children:[e("p",{className:"text-sm font-medium",children:o.label}),o.description&&e("p",{className:"text-xs opacity-70",children:o.description})]},o.id))})]}),e("p",{className:"text-sm leading-relaxed",children:a.content}),e("p",{className:"text-xs opacity-70 mt-2",children:a.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]},a.id)})}),N&&u&&l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[e(E,{className:"h-8 w-8",children:e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),e("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:e(ie,{capabilities:p,isOpen:u,onToggle:()=>x(!u),onActionSelect:f,onContextChange:b,className:"w-full"})})]}),w&&l(V.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[e(E,{className:"h-8 w-8",children:e(M,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:e(X,{className:"h-4 w-4"})})}),e("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:l("div",{className:"flex space-x-1",children:[e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),e("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]}),e("div",{ref:v})]})}),d&&d.length>0&&e("div",{className:"border-t p-4 bg-muted/10",children:e("div",{className:"flex flex-wrap gap-2",children:d.map(a=>l("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[e("span",{className:"text-sm font-medium",children:a.file.name}),l("span",{className:"text-xs text-muted-foreground",children:[(a.file.size/1024/1024).toFixed(1),"MB"]}),e(y,{variant:"ghost",size:"sm",onClick:()=>T?.(a.id),className:"h-6 w-6 p-0",children:e(be,{className:"h-4 w-4"})})]},a.id))})}),l("div",{className:"border-t p-4 bg-muted/20",children:[l("div",{className:"flex gap-3",children:[e(Q,{value:k,onChange:a=>D(a.target.value),onKeyPress:O,placeholder:S?`Ask me about ${S.name.toLowerCase()}...`:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:w}),B&&e(y,{variant:"outline",size:"icon",onClick:()=>{let a=document.createElement("input");a.type="file",a.multiple=!0,a.onchange=s=>{let o=s.target.files;z?.(o)},a.click()},className:"rounded-2xl h-10 w-10 shadow-sm",children:e(Ce,{className:"h-4 w-4"})}),e(y,{onClick:I,disabled:!k.trim()&&(!d||d.length===0)||w,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:e(ye,{className:"h-4 w-4"})})]}),N&&l("div",{className:"flex items-center gap-3 mt-3",children:[l(y,{onClick:()=>x(!u),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[e(xe,{className:"h-3 w-3 mr-1"}),u?"Hide":"Show"," Capabilities"]}),l("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[$().map((a,s)=>e(y,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>f(a.id,R),children:a.label},`context-${a.id}`)),$().length===0&&H().map((a,s)=>e(y,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:a.action,children:a.label},`suggestion-${s}`))]})]})]})]})}import{jsx as h,jsxs as De}from"react/jsx-runtime";var ke=[{id:"1",title:"Logo Design Review",lastMessage:"The color palette looks great! Let's refine the typography...",timestamp:new Date(Date.now()-1e3*60*30),teamId:"design"},{id:"2",title:"React Component Optimization",lastMessage:"Here's how you can improve the performance of your component...",timestamp:new Date(Date.now()-1e3*60*60*2),teamId:"engineering"},{id:"3",title:"Campaign Strategy Discussion",lastMessage:"The target audience analysis shows promising results...",timestamp:new Date(Date.now()-1e3*60*60*24),teamId:"marketing"},{id:"4",title:"Product Roadmap Planning",lastMessage:"Based on user feedback, I recommend prioritizing...",timestamp:new Date(Date.now()-1e3*60*60*24*2),teamId:"product"}];function Se({initialTeam:C="design",initialMessages:k,initialSessions:w,showCapabilities:S=!0,title:G="Digital Colleagues",businessUnits:p=te,enableFileUpload:N=!0,maxFileSize:D=10,allowedFileTypes:I=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}={}){let[O,d]=g(k||[{id:"1",role:"assistant",type:"text",content:"Hi! I'm your AI assistant with advanced capabilities. I can help with various tasks, access data, and provide contextual actions. What would you like to work on today?",timestamp:new Date}]),[A,B]=g(""),[z,T]=g(!1),[r,F]=g(p.find(t=>t.id===C)||p[0]),[v,u]=g(null),[x,R]=g(w||ke),[P,U]=g(p.find(t=>t.id===C)||p[0]),[f,b]=g([]),[$,H]=g(!1),a=t=>{if(!t||!N)return;let i=[];Array.from(t).forEach(n=>{if(n.size>D*1024*1024){alert(`File ${n.name} is too large. Maximum size is ${D}MB.`);return}if(I.length>0&&!I.some(m=>n.type.match(m))){alert(`File type ${n.type} is not allowed.`);return}let c={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:n,status:"pending",progress:0};if(n.type.startsWith("image/")){let m=new FileReader;m.onload=de=>{b(pe=>pe.map(K=>K.id===c.id?{...K,preview:de.target?.result}:K))},m.readAsDataURL(n)}i.push(c)}),b(n=>[...n,...i])},s=t=>{b(i=>i.filter(n=>n.id!==t))},o=O.map(t=>({id:t.id,content:t.content,type:t.role==="user"?"user":"ai",timestamp:t.timestamp,role:t.role,messageType:t.type,data:t.data,image:t.image,file:t.file,card:t.card,references:t.references,menu:t.menu})),L=async()=>{if(!A.trim()&&f.length===0)return;let t={id:Date.now().toString(),role:"user",type:"text",content:A,timestamp:new Date};d(i=>[...i,t]),f.length>0&&f.forEach(i=>{if(i.file.type.startsWith("image/")){let n={id:Date.now().toString()+Math.random().toString(36).substr(2,9),role:"user",type:"image",content:`Uploaded image: ${i.file.name}`,image:{url:i.preview||"",alt:i.file.name,width:0,height:0},timestamp:new Date};d(c=>[...c,n])}else{let n={id:Date.now().toString()+Math.random().toString(36).substr(2,9),role:"user",type:"file",content:`Uploaded file: ${i.file.name}`,file:{name:i.file.name,size:i.file.size,type:i.file.type,url:URL.createObjectURL(i.file)},timestamp:new Date};d(c=>[...c,n])}}),B(""),b([]),T(!0),setTimeout(()=>{let i=j.filter(c=>c.name.toLowerCase().includes(r.name.toLowerCase())||r.name.toLowerCase().includes(c.name.toLowerCase())),n=Math.random();if(n<.3){let c={id:(Date.now()+1).toString(),role:"assistant",type:"text",content:`I can help you with ${r.name.toLowerCase()} tasks. Here are some capabilities I have: ${i.map(m=>m.name).join(", ")}`,timestamp:new Date};d(m=>[...m,c])}else if(n<.5){let c={id:(Date.now()+1).toString(),role:"assistant",type:"card",content:`Here's a ${r.name.toLowerCase()} task I created for you:`,card:{title:`${r.name} Task`,description:`A new task for ${r.name.toLowerCase()} team`,variant:"task",data:{id:Math.floor(Math.random()*1e3),name:`${r.name} Task`,description:`Complete this ${r.name.toLowerCase()} task`,status:"todo",dateLogged:new Date().toISOString(),project:{id:1,name:`${r.name} Project`}}},timestamp:new Date};d(m=>[...m,c])}else if(n<.7){let c={id:(Date.now()+1).toString(),role:"assistant",type:"menu",content:`Here are some ${r.name.toLowerCase()} options:`,menu:{title:`${r.name} Options`,items:i.slice(0,3).map(m=>({id:m.id,label:m.name,description:m.description,value:m.id}))},timestamp:new Date};d(m=>[...m,c])}else{let c={id:(Date.now()+1).toString(),role:"assistant",type:"reference",content:`Here are some helpful ${r.name.toLowerCase()} resources:`,references:[{id:"1",title:`${r.name} Best Practices`,description:`Guidelines for ${r.name.toLowerCase()} work`,type:"document"},{id:"2",title:`${r.name} Tools`,description:`Recommended tools for ${r.name.toLowerCase()}`,type:"link"}],timestamp:new Date};d(m=>[...m,c])}T(!1)},1500)},re=t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),L())},J=()=>{u(null),d([{id:"1",role:"assistant",type:"text",content:`Hi! I'm your ${r.name} AI assistant with advanced capabilities. I can help with ${r.name.toLowerCase()} tasks, access relevant data, and provide contextual actions. What would you like to work on today?`,timestamp:new Date}])},le=t=>{u(t);let i=p.find(n=>n.id===t.teamId)||p[0];F(i),U(i),d([{id:"1",role:"assistant",type:"text",content:t.lastMessage,timestamp:t.timestamp}])},me=t=>{R(i=>i.filter(n=>n.id!==t)),v?.id===t&&J()},ce=t=>{console.log("Edit session:",t)};return h(ae,{sidebarItems:_,title:G,notifications:ee,businessUnits:p,currentBusinessUnit:P,onBusinessUnitChange:t=>{U(t),F(t),console.log("Business unit changed to:",t.name)},showTabs:!1,onActionClick:()=>{console.log("Copilot clicked from header")},actionIcon:h(Me,{className:"mr-2 h-4 w-4"}),actionText:"Collaborate",onNotificationRemove:t=>{console.log("Notification removed:",t)},onRemoveAll:()=>{console.log("All notifications removed")},logo:"/headerlogo.png",appName:"Nuvia",tagline:"AI-Powered Workspace",children:h(Ne,{mode:"wait",children:h(we.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:De("div",{className:"h-full flex",children:[h("div",{className:"w-80 bg-muted/50 flex-shrink-0 h-full p-2",children:h(se,{sessions:x,currentSession:v,teams:p,onNewChat:J,onSessionSelect:le,onSessionEdit:ce,onSessionDelete:me})}),h("div",{className:"flex-1 h-full p-2",children:h(oe,{messages:o,input:A,isTyping:z,selectedTeam:r,currentSessionTitle:v?.title,capabilities:j,showCapabilities:S,onInputChange:B,onSendMessage:L,onKeyPress:re,fileUploads:f,isDragOver:$,enableFileUpload:N,onFileUpload:a,onRemoveFile:s,onDragOver:H})})]})},"chat-interface")})})}export{Se as a};