cortex-react-components 2.17.1 → 2.17.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 (361) hide show
  1. package/dist/{chunk-ERJXTG6X.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-M7NV6EFH.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-LBUC4M6L.mjs → chunk-3ANJOET7.mjs} +1 -1
  4. package/dist/{chunk-TIWDIOF5.mjs → chunk-3GROWGZ5.mjs} +1 -1
  5. package/dist/{chunk-MXCW6SOT.mjs → chunk-4SRUEQTP.mjs} +1 -1
  6. package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
  7. package/dist/{chunk-7GMAMIHM.mjs → chunk-7OMPPFGG.mjs} +1 -1
  8. package/dist/{chunk-CUW7L4ZQ.mjs → chunk-AGDKFAMN.mjs} +1 -1
  9. package/dist/{chunk-5SHZBJ5R.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  10. package/dist/{chunk-DKRRVTCV.mjs → chunk-CJDUN6R4.mjs} +1 -1
  11. package/dist/{chunk-XHXUT3LD.mjs → chunk-CRAFZGCI.mjs} +1 -1
  12. package/dist/{chunk-E6UOMRHI.mjs → chunk-CTTBF7F4.mjs} +1 -1
  13. package/dist/{chunk-GCXKBUGA.mjs → chunk-DNMPFZJH.mjs} +1 -1
  14. package/dist/chunk-EGEO3FNE.mjs +1 -0
  15. package/dist/{chunk-KEOMDWUC.mjs → chunk-EHSOO47V.mjs} +1 -1
  16. package/dist/{chunk-H3CJOE6S.mjs → chunk-F64CA5CH.mjs} +1 -1
  17. package/dist/{chunk-NWISIJFD.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  18. package/dist/{chunk-N3B3XNV3.mjs → chunk-FYQBRCQM.mjs} +1 -1
  19. package/dist/{chunk-67QPOSVV.mjs → chunk-GAZHKHGB.mjs} +1 -1
  20. package/dist/{chunk-255P6K5W.mjs → chunk-GETYSIZV.mjs} +1 -1
  21. package/dist/{chunk-RX63ABAF.mjs → chunk-GQEGZKN6.mjs} +1 -1
  22. package/dist/{chunk-FKU4VQR6.mjs → chunk-HDKHF3EA.mjs} +1 -1
  23. package/dist/{chunk-YKG4FNS4.mjs → chunk-HKMNAXLM.mjs} +1 -1
  24. package/dist/{chunk-JYPPWTB3.mjs → chunk-JCWFPKF3.mjs} +1 -1
  25. package/dist/chunk-K3YZPHOE.mjs +1 -0
  26. package/dist/{chunk-2MNBAPMJ.mjs → chunk-KUFXQZI5.mjs} +1 -1
  27. package/dist/{chunk-CBIULUZQ.mjs → chunk-KVLUT4U2.mjs} +1 -1
  28. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  29. package/dist/{chunk-75WE6ZXB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  30. package/dist/{chunk-PK3OBSCB.mjs → chunk-MO4HRQEL.mjs} +1 -1
  31. package/dist/{chunk-DZALLYUF.mjs → chunk-NSWNM3O5.mjs} +1 -1
  32. package/dist/{chunk-LJOWXPWW.mjs → chunk-O24GFE6Q.mjs} +1 -1
  33. package/dist/{chunk-2RQDJ5XT.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  34. package/dist/{chunk-IF3425JX.mjs → chunk-PNUBVBSR.mjs} +1 -1
  35. package/dist/{chunk-LJQPLE4S.mjs → chunk-PTZT4QJW.mjs} +1 -1
  36. package/dist/chunk-R5P4ZICA.mjs +4 -0
  37. package/dist/{chunk-5WVFEIMC.mjs → chunk-R6AYIVIR.mjs} +1 -1
  38. package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
  39. package/dist/{chunk-LLP4EFT4.mjs → chunk-RQLUMNJE.mjs} +1 -1
  40. package/dist/{chunk-HGL6JHJQ.mjs → chunk-RS4VD3ML.mjs} +1 -1
  41. package/dist/{chunk-TIBKVEUZ.mjs → chunk-SMDC36XJ.mjs} +1 -1
  42. package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
  43. package/dist/{chunk-HKGW6JI2.mjs → chunk-U3FYDDE2.mjs} +1 -1
  44. package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
  45. package/dist/{chunk-QG4QCB5I.mjs → chunk-VDN4LQSS.mjs} +1 -1
  46. package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
  47. package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
  48. package/dist/chunk-VZBIMHCR.mjs +4 -0
  49. package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
  50. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  51. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  52. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  53. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  54. package/dist/components/AdvancedComponents/index.js +1 -1
  55. package/dist/components/AdvancedComponents/index.mjs +1 -1
  56. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  57. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  58. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  59. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  60. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  61. package/dist/components/Blocks/Banner.mjs +1 -1
  62. package/dist/components/Blocks/CallToAction.mjs +1 -1
  63. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  64. package/dist/components/Blocks/Code.client.mjs +1 -1
  65. package/dist/components/Blocks/Code.mjs +1 -1
  66. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  67. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  68. package/dist/components/Blocks/Content.mjs +1 -1
  69. package/dist/components/Blocks/CopyButton.mjs +1 -1
  70. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  71. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  72. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  73. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  74. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  75. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  76. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  77. package/dist/components/Blocks/index.mjs +1 -1
  78. package/dist/components/CRM/CogeBoard.mjs +1 -1
  79. package/dist/components/CRM/DealCard.mjs +1 -1
  80. package/dist/components/CRM/DealDetails.mjs +1 -1
  81. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  82. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  83. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  84. package/dist/components/CRM/NewDealForm.mjs +1 -1
  85. package/dist/components/CRM/index.mjs +1 -1
  86. package/dist/components/Cards/ContentCard.mjs +1 -1
  87. package/dist/components/Cards/CustomerCard.mjs +1 -1
  88. package/dist/components/Cards/EventCard.mjs +1 -1
  89. package/dist/components/Cards/FeatureCard.mjs +1 -1
  90. package/dist/components/Cards/HeroCard.mjs +1 -1
  91. package/dist/components/Cards/Image.mjs +1 -1
  92. package/dist/components/Cards/PricingCard.mjs +1 -1
  93. package/dist/components/Cards/ServiceCard.js +1 -1
  94. package/dist/components/Cards/ServiceCard.mjs +1 -1
  95. package/dist/components/Cards/index.mjs +1 -1
  96. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  97. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  98. package/dist/components/Chat/ChatInterface.mjs +1 -1
  99. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  100. package/dist/components/Chat/ChatMessage.mjs +1 -1
  101. package/dist/components/Chat/CopilotInterface.js +1 -1
  102. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  103. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  104. package/dist/components/Chat/PartTypes/Reasoning.js +1 -1
  105. package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
  106. package/dist/components/Chat/PartTypes/Response.mjs +1 -1
  107. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  108. package/dist/components/Chat/PartTypes/index.js +6 -6
  109. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  110. package/dist/components/Chat/capability-menu.mjs +1 -1
  111. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  112. package/dist/components/Chat/demo-long-messages.js +1 -1
  113. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  114. package/dist/components/Chat/demo-tests.js +1 -1
  115. package/dist/components/Chat/demo-tests.mjs +1 -1
  116. package/dist/components/Chat/demo.js +1 -1
  117. package/dist/components/Chat/demo.mjs +1 -1
  118. package/dist/components/Chat/example-usage.js +1 -1
  119. package/dist/components/Chat/example-usage.mjs +1 -1
  120. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  121. package/dist/components/Chat/example-with-vercel-ai.js +1 -1
  122. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  123. package/dist/components/Chat/index.js +1 -1
  124. package/dist/components/Chat/index.mjs +1 -1
  125. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  126. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  127. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  128. package/dist/components/DeliveryLead/index.mjs +1 -1
  129. package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
  130. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  131. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  132. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  133. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  134. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  135. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  136. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  137. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  138. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  139. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  140. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  141. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  142. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  143. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  144. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  145. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  146. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  147. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  148. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  149. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  150. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  151. package/dist/components/DigitalColleagues/index.js +1 -1
  152. package/dist/components/DigitalColleagues/index.mjs +1 -1
  153. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  154. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  155. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  156. package/dist/components/Foundary/AppSidebarLeft.js +1 -1
  157. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  158. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  159. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  160. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  161. package/dist/components/Foundary/MainPage.mjs +1 -1
  162. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  163. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  164. package/dist/components/Foundary/RichText/index.mjs +1 -1
  165. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  166. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  167. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  168. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  169. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  170. package/dist/components/Foundary/Views/index.mjs +1 -1
  171. package/dist/components/Foundary/colleague-card.mjs +1 -1
  172. package/dist/components/Foundary/colleague-form.mjs +1 -1
  173. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  174. package/dist/components/Foundary/document-edit.mjs +1 -1
  175. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  176. package/dist/components/Foundary/document-preview.mjs +1 -1
  177. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  178. package/dist/components/Foundary/foundary-layout.js +1 -1
  179. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  180. package/dist/components/Foundary/foundary-options.mjs +1 -1
  181. package/dist/components/Foundary/index.js +1 -1
  182. package/dist/components/Foundary/index.mjs +1 -1
  183. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  184. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  185. package/dist/components/Foundary/team-form.mjs +1 -1
  186. package/dist/components/HeaderFooter/Footer.js +1 -1
  187. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  188. package/dist/components/HeaderFooter/Header.mjs +1 -1
  189. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  190. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  191. package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
  192. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  193. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  194. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  195. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  196. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  197. package/dist/components/HeaderFooter/index.js +1 -1
  198. package/dist/components/HeaderFooter/index.mjs +1 -1
  199. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  200. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  201. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  202. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  203. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  204. package/dist/components/Heros/PostHero/index.mjs +1 -1
  205. package/dist/components/Heros/RenderHero.mjs +1 -1
  206. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  207. package/dist/components/Heros/index.mjs +1 -1
  208. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  209. package/dist/components/Holidays/CalendarView.js +1 -1
  210. package/dist/components/Holidays/CalendarView.mjs +1 -1
  211. package/dist/components/Holidays/HolidayGrid.js +1 -1
  212. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  213. package/dist/components/Holidays/HolidayTracker.js +1 -1
  214. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  215. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  216. package/dist/components/Holidays/index.js +1 -1
  217. package/dist/components/Holidays/index.mjs +1 -1
  218. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  219. package/dist/components/Layouts/Print.mjs +1 -1
  220. package/dist/components/Layouts/SlideShow.js +1 -1
  221. package/dist/components/Layouts/SlideShow.mjs +1 -1
  222. package/dist/components/Layouts/index.js +3 -3
  223. package/dist/components/Layouts/index.mjs +1 -1
  224. package/dist/components/Menus/Categories.js +1 -1
  225. package/dist/components/Menus/Categories.mjs +1 -1
  226. package/dist/components/Menus/Filter.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.js +1 -1
  232. package/dist/components/Menus/index.mjs +1 -1
  233. package/dist/components/Other/Container.mjs +1 -1
  234. package/dist/components/Other/index.js +1 -1
  235. package/dist/components/Other/index.mjs +1 -1
  236. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  237. package/dist/components/Payload/Link/index.mjs +1 -1
  238. package/dist/components/Payload/Media/index.mjs +1 -1
  239. package/dist/components/Payload/Pagination/index.mjs +1 -1
  240. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  241. package/dist/components/Payload/RichText/index.mjs +1 -1
  242. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  243. package/dist/components/Payload/index.mjs +1 -1
  244. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  245. package/dist/components/Projects/AddFileModal.mjs +1 -1
  246. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  247. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  248. package/dist/components/Projects/EpicFilter.mjs +1 -1
  249. package/dist/components/Projects/EpicsView.mjs +1 -1
  250. package/dist/components/Projects/FileView.mjs +1 -1
  251. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  252. package/dist/components/Projects/KanbanColumn.js +1 -1
  253. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  254. package/dist/components/Projects/PlanningView.mjs +1 -1
  255. package/dist/components/Projects/ProjectPage.js +1 -1
  256. package/dist/components/Projects/ProjectPage.mjs +1 -1
  257. package/dist/components/Projects/ProjectView.mjs +1 -1
  258. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  259. package/dist/components/Projects/TaskCard.mjs +1 -1
  260. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  261. package/dist/components/Projects/TaskSelect.mjs +1 -1
  262. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  263. package/dist/components/Projects/TasksView.js +1 -1
  264. package/dist/components/Projects/TasksView.mjs +1 -1
  265. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  266. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  267. package/dist/components/Projects/file-list.mjs +1 -1
  268. package/dist/components/Projects/index.mjs +1 -1
  269. package/dist/components/Projects/project-card.mjs +1 -1
  270. package/dist/components/Projects/project-form.mjs +1 -1
  271. package/dist/components/Projects/team-card.js +1 -1
  272. package/dist/components/Projects/team-card.mjs +1 -1
  273. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  274. package/dist/components/dc-temp/creative.mjs +1 -1
  275. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  276. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  277. package/dist/components/dc-temp/index.mjs +1 -1
  278. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  279. package/dist/components/index.js +14 -14
  280. package/dist/components/index.mjs +1 -1
  281. package/dist/components/ui/alert.mjs +1 -1
  282. package/dist/components/ui/avatar.mjs +1 -1
  283. package/dist/components/ui/badge.mjs +1 -1
  284. package/dist/components/ui/breadcrumb.mjs +1 -1
  285. package/dist/components/ui/button.mjs +1 -1
  286. package/dist/components/ui/calendar.mjs +1 -1
  287. package/dist/components/ui/card.mjs +1 -1
  288. package/dist/components/ui/checkbox.mjs +1 -1
  289. package/dist/components/ui/command.mjs +1 -1
  290. package/dist/components/ui/dialog.mjs +1 -1
  291. package/dist/components/ui/dropdown-menu.mjs +1 -1
  292. package/dist/components/ui/hover-card.mjs +1 -1
  293. package/dist/components/ui/index.mjs +1 -1
  294. package/dist/components/ui/input.mjs +1 -1
  295. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  296. package/dist/components/ui/inputs/text-input/index.js +1 -1
  297. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  298. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  299. package/dist/components/ui/label.mjs +1 -1
  300. package/dist/components/ui/pagination.mjs +1 -1
  301. package/dist/components/ui/popover.mjs +1 -1
  302. package/dist/components/ui/progress.mjs +1 -1
  303. package/dist/components/ui/scroll-area.mjs +1 -1
  304. package/dist/components/ui/select.mjs +1 -1
  305. package/dist/components/ui/separator.mjs +1 -1
  306. package/dist/components/ui/sheet.mjs +1 -1
  307. package/dist/components/ui/sidebar.mjs +1 -1
  308. package/dist/components/ui/skeleton.mjs +1 -1
  309. package/dist/components/ui/switch.mjs +1 -1
  310. package/dist/components/ui/tabs.mjs +1 -1
  311. package/dist/components/ui/textarea.mjs +1 -1
  312. package/dist/components/ui/toast.mjs +1 -1
  313. package/dist/components/ui/toaster.mjs +1 -1
  314. package/dist/components/ui/toggle-group.mjs +1 -1
  315. package/dist/components/ui/toggle.mjs +1 -1
  316. package/dist/components/ui/tooltip.mjs +1 -1
  317. package/dist/index.js +18 -18
  318. package/dist/index.mjs +1 -1
  319. package/dist/metafile-cjs.json +1 -1
  320. package/dist/metafile-esm.json +1 -1
  321. package/dist/pages/Blog.js +1 -1
  322. package/dist/pages/Blog.mjs +1 -1
  323. package/dist/pages/Documentation.mjs +1 -1
  324. package/dist/pages/IndexPage.mjs +1 -1
  325. package/dist/pages/Intranet.mjs +1 -1
  326. package/dist/pages/LandingPage.js +1 -1
  327. package/dist/pages/LandingPage.mjs +1 -1
  328. package/dist/pages/Page.mjs +1 -1
  329. package/dist/pages/Publish.js +3 -3
  330. package/dist/pages/Publish.mjs +1 -1
  331. package/dist/pages/Website.js +1 -1
  332. package/dist/pages/Website.mjs +1 -1
  333. package/dist/sections/AboutSection.mjs +1 -1
  334. package/dist/sections/BlogDetail.js +1 -1
  335. package/dist/sections/BlogDetail.mjs +1 -1
  336. package/dist/sections/BlogList.js +1 -1
  337. package/dist/sections/BlogList.mjs +1 -1
  338. package/dist/sections/BlogListSection.mjs +1 -1
  339. package/dist/sections/ContactSection.mjs +1 -1
  340. package/dist/sections/ImageSection.mjs +1 -1
  341. package/dist/sections/MainPageSection.mjs +1 -1
  342. package/dist/sections/PageSections.js +1 -1
  343. package/dist/sections/PageSections.mjs +1 -1
  344. package/dist/sections/PricingSection.mjs +1 -1
  345. package/dist/sections/ServiceDetail.mjs +1 -1
  346. package/dist/sections/ServiceDetailSection.mjs +1 -1
  347. package/dist/sections/ServiceSection.mjs +1 -1
  348. package/dist/sections/form/index.mjs +1 -1
  349. package/dist/sections/index.js +1 -1
  350. package/dist/sections/index.mjs +1 -1
  351. package/dist/styles/Colors.mjs +1 -1
  352. package/dist/utils/TimeUtil.d.ts +3 -0
  353. package/dist/utils/TimeUtil.js +1 -0
  354. package/dist/utils/TimeUtil.mjs +1 -0
  355. package/dist/utils/index.d.ts +1 -0
  356. package/dist/utils/index.js +2 -2
  357. package/dist/utils/index.mjs +1 -1
  358. package/package.json +1 -1
  359. package/dist/chunk-5AWZJAK3.mjs +0 -4
  360. package/dist/chunk-B3F6F2S4.mjs +0 -1
  361. package/dist/chunk-RVHCTANZ.mjs +0 -4
@@ -3,7 +3,7 @@
3
3
  'use client'
4
4
  'use client';
5
5
 
6
- "use strict";var ri=Object.create;var Tt=Object.defineProperty;var ni=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var li=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty;var di=(e,t)=>{for(var a in t)Tt(e,a,{get:t[a],enumerable:!0})},Ra=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of si(t))!ci.call(e,s)&&s!==a&&Tt(e,s,{get:()=>t[s],enumerable:!(o=ni(t,s))||o.enumerable});return e};var G=(e,t,a)=>(a=e!=null?ri(li(e)):{},Ra(t||!e||!e.__esModule?Tt(a,"default",{value:e,enumerable:!0}):a,e)),pi=e=>Ra(Tt({},"__esModule",{value:!0}),e);var wr={};di(wr,{ChatDemoCapabilitiesInteraction:()=>xr,ChatDemoErrorHandling:()=>yr,ChatDemoFileUploads:()=>hr,ChatDemoMarkdownResponses:()=>br,ChatDemoToolCalling:()=>fr,ChatDemoUIComponents:()=>vr});module.exports=pi(wr);var rt=require("react");var Vo=require("@ai-sdk/react"),qt=require("motion/react"),$o=require("lucide-react");var La=require("clsx");var Xt="-",mi=e=>{let t=gi(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(Xt);return n[0]===""&&n.length!==1&&n.shift(),Aa(n,t)||ui(l)},getConflictingClassGroupIds:(l,n)=>{let p=a[l]||[];return n&&o[l]?[...p,...o[l]]:p}}},Aa=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),s=o?Aa(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let r=e.join(Xt);return t.validators.find(({validator:l})=>l(r))?.classGroupId},Da=/^\[(.+)\]$/,ui=e=>{if(Da.test(e)){let t=Da.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},gi=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return bi(Object.entries(e.classGroups),a).forEach(([r,l])=>{Qt(l,o,r,t)}),o},Qt=(e,t,a,o)=>{e.forEach(s=>{if(typeof s=="string"){let r=s===""?t:Sa(t,s);r.classGroupId=a;return}if(typeof s=="function"){if(fi(s)){Qt(s(o),t,a,o);return}t.validators.push({validator:s,classGroupId:a});return}Object.entries(s).forEach(([r,l])=>{Qt(l,Sa(t,r),a,o)})})},Sa=(e,t)=>{let a=e;return t.split(Xt).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},fi=e=>e.isThemeGetter,bi=(e,t)=>t?e.map(([a,o])=>{let s=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([l,n])=>[t+l,n])):r);return[a,s]}):e,vi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,s=(r,l)=>{a.set(r,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let l=a.get(r);if(l!==void 0)return l;if((l=o.get(r))!==void 0)return s(r,l),l},set(r,l){a.has(r)?a.set(r,l):s(r,l)}}},Ia="!",hi=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,s=t[0],r=t.length,l=n=>{let p=[],u=0,C=0,f;for(let x=0;x<n.length;x++){let T=n[x];if(u===0){if(T===s&&(o||n.slice(x,x+r)===t)){p.push(n.slice(C,x)),C=x+r;continue}if(T==="/"){f=x;continue}}T==="["?u++:T==="]"&&u--}let h=p.length===0?n:n.substring(C),S=h.startsWith(Ia),I=S?h.substring(1):h,D=f&&f>C?f-C:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:I,maybePostfixModifierPosition:D}};return a?n=>a({className:n,parseClassName:l}):l},yi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},xi=e=>({cache:vi(e.cacheSize),parseClassName:hi(e),...mi(e)}),wi=/\s+/,Ci=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:s}=t,r=[],l=e.trim().split(wi),n="";for(let p=l.length-1;p>=0;p-=1){let u=l[p],{modifiers:C,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:S}=a(u),I=!!S,D=o(I?h.substring(0,S):h);if(!D){if(!I){n=u+(n.length>0?" "+n:n);continue}if(D=o(h),!D){n=u+(n.length>0?" "+n:n);continue}I=!1}let x=yi(C).join(":"),T=f?x+Ia:x,_=T+D;if(r.includes(_))continue;r.push(_);let N=s(D,I);for(let L=0;L<N.length;++L){let Z=N[L];r.push(T+Z)}n=u+(n.length>0?" "+n:n)}return n};function Ni(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ma(t))&&(o&&(o+=" "),o+=a);return o}var Ma=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ma(e[o]))&&(a&&(a+=" "),a+=t);return a};function ki(e,...t){let a,o,s,r=l;function l(p){let u=t.reduce((C,f)=>f(C),e());return a=xi(u),o=a.cache.get,s=a.cache.set,r=n,n(p)}function n(p){let u=o(p);if(u)return u;let C=Ci(p,a);return s(p,C),C}return function(){return r(Ni.apply(null,arguments))}}var H=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ba=/^\[(?:([a-$o-]+):)?(.+)\]$/_a,Pi=/^\d+\/\d+$/,Ti=new Set(["px","full","screen"]),Ri=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Di=/\d+(%|px|r?em|[sdl]?_a([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|_a|_a|min|max))|\_a(calc|min|max|clamp)\(.+\)|^0$/,Si=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-$o]+|0)_-?((\d+)?\.?(\d+)[a-$o]+|0)/,Ii=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Be=e=>nt(e)||Ti.has(e)||Pi.test(e),He=e=>st(e,"length",Fi),nt=e=>!!e&&!Number.isNaN(Number(e)),Jt=e=>st(e,"number",nt),bt=e=>!!e&&Number.isInteger(Number(e)),Mi=e=>e.endsWith("%")&&nt(e.slice(0,-1)),y=e=>Ba.test(e),je=e=>Ri.test(e),Bi=new Set(["length","size","percentage"]),Ei=e=>st(e,Bi,Ea),Ui=e=>st(e,"position",Ea),Li=new Set(["image","url"]),zi=e=>st(e,Li,Hi),_i=e=>st(e,"",Oi),vt=()=>!0,st=(e,t,a)=>{let o=Ba.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Fi=e=>Di.test(e)&&!Si.test(e),Ea=()=>!1,Oi=e=>Ai.test(e),Hi=e=>Ii.test(e);var ji=()=>{let e=H("colors"),t=H("spacing"),a=H("blur"),o=H("brightness"),s=H("borderColor"),r=H("borderRadius"),l=H("borderSpacing"),n=H("borderWidth"),p=H("contrast"),u=H("grayscale"),C=H("hueRotate"),f=H("invert"),h=H("gap"),S=H("gradientColorStops"),I=H("gradientColorStopPositions"),D=H("inset"),x=H("margin"),T=H("opacity"),_=H("padding"),N=H("saturate"),L=H("scale"),Z=H("sepia"),ee=H("skew"),te=H("space"),Y=H("translate"),$=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",y,t],M=()=>[y,t],Ie=()=>["",Be,He],d=()=>["auto",nt,y],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],m=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",y],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[nt,y];return{cacheSize:500,separator:":",theme:{colors:[vt],spacing:[Be,He],blur:["none","",je,y],brightness:w(),borderColor:[e],borderRadius:["none","","full",je,y],borderSpacing:M(),borderWidth:Ie(),contrast:w(),grayscale:F(),hueRotate:w(),invert:F(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Mi,He],inset:de(),margin:de(),opacity:w(),padding:M(),saturate:w(),scale:w(),sepia:F(),skew:w(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[je]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),y]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],$o:[{$o:["auto",bt,y]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",bt,y]}],"grid-cols":[{"grid-cols":[vt]}],"col-start-end":[{col:["auto",{span:["full",bt,y]},y]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[vt]}],"row-start-end":[{row:["auto",{span:[bt,y]},y]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...m()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...m(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...m(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],rt:[{rt:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],rt:[{rt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[te]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[te]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-w":[{"min-w":[y,t,"min","max","fit"]}],"max-w":[{"max-w":[y,t,"none","full","min","max","fit","prose",{screen:[je]},je]}],h:[{h:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",je,He]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jt]}],"font-family":[{font:[vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",y]}],"line-clamp":[{"line-clamp":["none",nt,Jt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,He]}],"underline-offset":[{"underline-offset":["auto",Be,y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),Ui]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ei]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","_a","bl","l","tl"]},zi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-_a":[{"rounded-_a":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-$o":[{"rounded-$o":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-_a":[{"border-_a":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-_a":[{"border-_a":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Be,y]}],"outline-w":[{outline:[Be,He]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Be,He]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",je,_i]}],"shadow-color":[{shadow:[vt]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",je,y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[f]}],saturate:[{saturate:[N]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",y]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[bt,y]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","$o-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-rt":[{"scroll-rt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-rt":[{"scroll-rt":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,He,Jt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","rt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","rt","mr","mb","ml"],mx:["mr","ml"],my:["rt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-_a","rounded-l","rounded-ss","rounded-$o","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-$o","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-_a":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-_a","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-_a"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-_a","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-_a"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-rt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-rt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-rt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ua=ki(ji);function c(...e){return Ua((0,La.clsx)(e))}var Et=G(require("react")),ia=G(require("next/link"));var za=require("class-variance-authority");var _a=require("react/jsx-runtime"),Wi=(0,za.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ne({className:e,variant:t,...a}){return(0,_a.jsx)("div",{className:c(Wi({variant:t}),e),...a})}var Fa=require("@radix-ui/react-slot"),Ha=G(require("react")),Gi=(0,za.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),A=Ha.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...s},r)=>(0,_a.jsx)(e?Fa.Slot:"button",{className:c(Gi({className:t,size:a,variant:o})),ref:r,...s}));A.displayName="Button";var Wa=G(require("react"));var ht=Wa.forwardRef(({className:e,type:t,...a},o)=>(0,_a.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ht.displayName="Input";var Yt=G(require("react")),be=G(require("@radix-ui/react-scroll-area"));var Pe=Yt.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(be.Root,{ref:o,className:c("relative overflow-hidden",e),...a,children:[(0,_a.jsx)(be.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,_a.jsx)(Va,{}),(0,_a.jsx)(be.Corner,{})]}));Pe.displayName=be.Root.displayName;var Va=Yt.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,_a.jsx)(be.ScrollAreaScrollbar,{ref:o,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,_a.jsx)(be.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Va.displayName=be.ScrollAreaScrollbar.displayName;var yt=G(require("react")),J=G(require("@radix-ui/react-dialog"));var qa=J.Root;var Vi=J.Portal;var Ka=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Overlay,{ref:a,className:c("fixed inset-0 $o-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ka.displayName=J.Overlay.displayName;var Zt=yt.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(Vi,{children:[(0,_a.jsx)(Ka,{}),(0,_a.jsxs)(J.Content,{ref:o,className:c("fixed left-[50%] top-[50%] $o-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,_a.jsxs)(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_a.jsx)($a._a,{className:"h-4 w-4"}),(0,_a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Zt.displayName=J.Content.displayName;var ea=({className:e,...t})=>(0,_a.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ea.displayName="DialogHeader";var $_a=({className:e,...t})=>(0,_a.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$_a.displayName="DialogFooter";var ta=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));ta.displayName=J.Title.displayName;var qi=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));qi.displayName=J.Description.displayName;var xt=G(require("@radix-ui/react-checkbox")),Qa=G(require("react")),aa=Qa.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(xt.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,_a.jsx)(xt.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,_a.jsx)($o.Check,{className:"h-4 w-4"})})}));aa.displayName=xt.Root.displayName;var Te=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Ya=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,_a.jsx)($o.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,_a.jsx)($o.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,_a.jsx)($o.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,_a.jsx)($o.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,_a.jsx)($o.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,_a.jsx)($o.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,_a.jsx)($o.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,_a.jsx)($o.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,_a.jsx)($o.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,_a.jsx)($o.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],At=[{id:"1",name:"_a-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var oa=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Dt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Mt=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Ki=[...Mt,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],Ji=[...At,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],St={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Xa={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Mt.filter(e=>e.epicId==="1")};var Wr={empty:{initialProjects:St.projects,initialEpics:St.epics,initialSprints:St.sprints,initialTasks:St.tasks},default:{initialProjects:At,initialEpics:oa,initialSprints:Dt,initialTasks:Mt},highDensity:{initialProjects:At,initialEpics:oa,initialSprints:Dt,initialTasks:Ki},singleEpic:{initialProjects:At,initialEpics:Xa.epics,initialSprints:Dt,initialTasks:Xa.tasks},multipleProjects:{initialProjects:Ji,initialEpics:oa,initialSprints:Dt,initialTasks:Mt}},It=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Te),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Te),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Te),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Te),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Te),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Te),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Te),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Te),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Te),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Te),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Gr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:It.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:It.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:It.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var Vr=It.filter(e=>e.type==="digital");function Za(e,t){let[a,o]=(0,rt.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),s=r=>{try{o(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,rt.useEffect)(()=>{s(a)},[]),[a,s]}function ra({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:s=Ya[0],onBusinessUnitChange:r,onSearch:l,className:n,logo:p="/headerlogo.png",appName:u="Nuvia",tagline:C="Collaboration Platform"}){let[f,h]=Et.useState({}),[S,I]=Za("sidebar-favorites",{}),[D,x]=Et.useState(null),[T,_]=Et.useState(""),N=d=>{h(U=>({...U,[d]:!U[d]}))},L=d=>{r?.(d)},Z=()=>{T.trim()&&l?.(T.trim())},ee=d=>{d.key==="Enter"&&(d.preventDefault(),Z())},te=(d,U)=>{let B=S[d]||[],q=B.includes(U)?B.filter(m=>m!==U):B.concat(U);I({...S,[d]:q})},Y=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let U=S[d.id]||[],B=d.items.filter(m=>U.includes(m.id)),q=d.items.filter(m=>!U.includes(m.id));return[...B,...q].slice(0,d.maxItems)},$=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,ie=e,de=d=>{let U=$(d),B=Y(d),q=(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,_a.jsx)("span",{children:d.title})]}),d.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,_a.jsx)($o.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",f[d.title]?"rotate-180":"")})]}),m=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,_a.jsx)(ia.default,{href:d.url,className:m,onClick:a?o:void 0,children:q}):(0,_a.jsx)("button",{className:m,onClick:()=>d.items&&N(d.title),children:q})},M=()=>{let d=e.find(B=>B.id===D);if(!d||!d.items||!d.maxItems)return null;let U=S[d.id]||[];return(0,_a.jsx)(qa,{open:!!D,onOpenChange:B=>!B&&x(null),children:(0,_a.jsxs)(Zt,{className:"sm:max-w-md",children:[(0,_a.jsxs)(ea,{children:[(0,_a.jsxs)(ta,{children:["Manage ",d.title," Favorites"]}),(0,_a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,_a.jsx)(Pe,{className:"max-h-96 pr-4",children:(0,_a.jsx)("div",{className:"space-y-4",children:d.items.map(B=>(0,_a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_a.jsx)(aa,{id:B.id,checked:U.includes(B.id),onCheckedChange:()=>te(d.id,B.id),disabled:!U.includes(B.id)&&U.length>=(d.maxItems||0)}),(0,_a.jsxs)("label",{htmlFor:B.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[B.title,B.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"text-xs",children:B.badge})]})]},B.id))})})]})})},Ie=(0,_a.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,_a.jsx)("img",{src:p,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,_a.jsxs)("div",{children:[(0,_a.jsx)("h2",{className:"font-semibold",children:u}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:C})]})]}),a&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",onClick:o,children:(0,_a.jsx)($o._a,{className:"h-5 w-5"})})]}),(0,_a.jsx)("div",{className:"px-3 py-2",children:(0,_a.jsxs)("div",{className:"relative",children:[(0,_a.jsx)($o.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,_a.jsx)(ht,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:T,onChange:d=>_(d.target.value),onKeyPress:ee})]})}),(0,_a.jsx)(Pe,{className:"flex-1 px-3 py-2",children:(0,_a.jsx)("div",{className:"space-y-1",children:ie.map(d=>(0,_a.jsxs)("div",{className:"mb-1",children:[de(d),d.items&&f[d.title]&&(0,_a.jsxs)("div",{className:"rt-1 ml-6 space-y-1 border-l pl-3",children:[Y(d).map(U=>(0,_a.jsxs)(ia.default,{href:U.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[U.title,U.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:U.badge})]},U.id)),$(d)&&d.items&&d.items.length>Y(d).length&&(0,_a.jsxs)("button",{onClick:()=>x(d.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-Y(d).length," more available"]})]})]},d.id))})}),(0,_a.jsx)("div",{className:"p-3",children:(0,_a.jsx)("div",{className:"space-y-1",children:(0,_a.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,_a.jsx)($o.Settings,{className:"h-5 w-5"}),(0,_a.jsx)("span",{children:"Settings"})]})})}),(0,_a.jsx)(M,{})]});return a?(0,_a.jsx)("div",{className:c("fixed inset-y-0 left-0 $o-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:Ie}):(0,_a.jsx)("div",{className:c("fixed inset-y-0 left-0 $o-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:Ie})}var Ut=G(require("react")),Ee=G(require("@radix-ui/react-avatar"));var Je=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Root,{ref:a,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Je.displayName=Ee.Root.displayName;var na=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Image,{ref:a,className:c("aspect-square h-full w-full",e),...t}));na.displayName=Ee.Image.displayName;var Qe=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Fallback,{ref:a,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Qe.displayName=Ee.Fallback.displayName;var eo=G(require("react")),we=G(require("@radix-ui/react-tooltip"));var lt=we.Provider,ct=we.Root,dt=we.Trigger,Xe=eo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,_a.jsx)(we.Portal,{children:(0,_a.jsx)(we.Content,{ref:o,sideOffset:t,className:c("$o-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Xe.displayName=we.Content.displayName;var to=require("next-themes");function ao(){let{setTheme:e,theme:t}=(0,to.useTheme)();return(0,_a.jsx)(lt,{children:(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsxs)(A,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,_a.jsx)($o.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,_a.jsx)($o.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,_a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,_a.jsx)(Xe,{children:"Toggle theme"})]})})}function oo({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:s,className:r}){let l=e.filter(u=>!u.read),n=l.length,p=u=>{switch(u){case"info":return(0,_a.jsx)($o.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,_a.jsx)($o.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,_a.jsx)($o.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,_a.jsx)($o.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,_a.jsx)(qt.AnimatePresence,{children:t&&(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsx)(qt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 $o-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,_a.jsx)(qt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 $o-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,_a.jsxs)("div",{className:"flex h-full flex-col",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between border-_a p-4",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_a.jsx)($o.Bell,{className:"h-5 w-5"}),(0,_a.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,_a.jsxs)(ne,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,_a.jsxs)(A,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,_a.jsx)($o._a,{className:"h-5 w-5"}),(0,_a.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,_a.jsxs)("div",{className:"flex items-center justify-between border-_a p-2",children:[(0,_a.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,_a.jsx)(A,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,_a.jsx)(Pe,{className:"flex-1",children:(0,_a.jsx)("div",{className:"divide-y",children:l.map(u=>(0,_a.jsxs)("div",{className:c("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,_a.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:p(u.type)}),(0,_a.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_a.jsx)("p",{className:"font-medium",children:u.title}),(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:u.time}),(0,_a.jsx)(A,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o?.(u.id),title:"Dismiss",children:(0,_a.jsx)($o.Check,{className:"h-3 w-3"})})]})]}),(0,_a.jsx)("p",{className:"text-sm text-muted-foreground",children:u.description}),u.actionLabel&&(0,_a.jsxs)(A,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:u.onAction,children:[u.actionLabel,(0,_a.jsx)($o.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},u.id))})}):(0,_a.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,_a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,_a.jsx)($o.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,_a.jsx)("h3",{className:"rt-4 text-lg font-medium",children:"$o notifications"}),(0,_a.jsx)("p",{className:"rt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ye=G(require("@radix-ui/react-tabs"));function io({className:e,...t}){return(0,_a.jsx)(Ye.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function ro({className:e,...t}){return(0,_a.jsx)(Ye.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function no({className:e,...t}){return(0,_a.jsx)(Ye.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Ue=G(require("react")),R=G(require("@radix-ui/react-dropdown-menu")),pt=require("@radix-ui/react-icons");var so=R.Root,lo=R.Trigger;var Qi=Ue.forwardRef(({className:e,inset:t,children:a,...o},s)=>(0,_a.jsxs)(R.SubTrigger,{ref:s,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,_a.jsx)(pt.ChevronRightIcon,{className:"ml-auto"})]}));Qi.displayName=R.SubTrigger.displayName;var Xi=Ue.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(R.SubContent,{ref:a,className:c("$o-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Xi.displayName=R.SubContent.displayName;var la=Ue.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,_a.jsx)(R.Portal,{children:(0,_a.jsx)(R.Content,{ref:o,sideOffset:t,className:c("$o-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));la.displayName=R.Content.displayName;var ca=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,_a.jsx)(R.Item,{ref:o,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ca.displayName=R.Item.displayName;var Yi=Ue.forwardRef(({className:e,children:t,checked:a,...o},s)=>(0,_a.jsxs)(R.CheckboxItem,{ref:s,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,_a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_a.jsx)(R.ItemIndicator,{children:(0,_a.jsx)(pt.CheckIcon,{className:"h-4 w-4"})})}),t]}));Yi.displayName=R.CheckboxItem.displayName;var Zi=Ue.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(R.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,_a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_a.jsx)(R.ItemIndicator,{children:(0,_a.jsx)(pt.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Zi.displayName=R.RadioItem.displayName;var er=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,_a.jsx)(R.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));er.displayName=R.Label.displayName;var tr=Ue.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(R.Separator,{ref:a,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));tr.displayName=R.Separator.displayName;var ar=({className:e,...t})=>(0,_a.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});ar.displayName="DropdownMenuShortcut";function po({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:s="700px",gridCols:r=6}){let l=a.find(n=>n.value===e);return(0,_a.jsxs)(qt.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,_a.jsx)("div",{className:"hidden lg:block",children:(0,_a.jsx)(io,{value:e,onValueChange:t,children:(0,_a.jsx)(ro,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(n=>(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,_a.jsx)(no,{value:n.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,_a.jsx)("div",{className:"lg:hidden",children:(0,_a.jsxs)(so,{children:[(0,_a.jsx)(lo,{asChild:!0,children:(0,_a.jsxs)(A,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,_a.jsx)($o.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,_a.jsx)(la,{align:"center",className:"w-[180px]",children:a.map(n=>(0,_a.jsx)(ca,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function mo({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:s=!0,className:r,activeTab:l="assistant",onTabChange:n,showTabs:p=!0,tabOptions:u=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:C,actionIcon:f=(0,_a.jsx)($e.Bot,{className:"mr-2 h-4 w-4"}),actionText:h="Action",onNotificationRemove:S,onRemoveAll:I,logo:D="/headerlogo.png",appName:x="Nuvia",tagline:T="Collaboration Platform"}){let[_,N]=(0,rt.useState)(!1),[L,Z]=(0,rt.useState)(t),ee=L.filter($=>!$.read).length,te=$=>{Z(ie=>ie.filter(de=>de.id!==$)),S?.($)},Y=()=>{Z($=>$.filter(ie=>ie.read)),I?.()};return(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsxs)("header",{className:`sticky top-0 $o-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,_a.jsx)($e.Menu,{className:"h-5 w-5"})}),(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,_a.jsx)($e.PanelLeft,{className:"h-5 w-5"})}),!s&&(0,_a.jsxs)(qt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,_a.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,_a.jsx)("img",{src:D,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,_a.jsxs)("div",{children:[(0,_a.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:T})]})]}),(0,_a.jsxs)("div",{className:"flex flex-1 items-center",children:[p&&(0,_a.jsx)(po,{activeTab:l,onTabChange:n,tabOptions:u}),(0,_a.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,_a.jsx)(qt.motion.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:(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(A,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:C,children:[f,h]})})}),(0,_a.jsx)(ao,{}),(0,_a.jsx)(lt,{children:(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(A,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>N(!0),children:[(0,_a.jsx)(qt.motion.div,{animate:ee>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:ee>0?1/0:0,repeatDelay:3},children:(0,_a.jsx)($e.Bell,{className:"h-5 w-5"})}),ee>0&&(0,_a.jsx)(qt.motion.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:ee})]})})}),(0,_a.jsx)(Xe,{children:"Notifications"})]})}),(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(Je,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,_a.jsx)(na,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,_a.jsx)(Qe,{})]})})]})]})]}),(0,_a.jsx)(oo,{notifications:L,open:_,onClose:()=>N(!1),onNotificationRemove:te,onRemoveAll:Y})]})}var uo=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,_a.jsx)($o.User,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function fo({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:s=uo[0],onBusinessUnitChange:r,onSearch:l,businessUnits:n=uo,activeTab:p,onTabChange:u,showTabs:C=!1,onActionClick:f,actionIcon:h,actionText:S="Action",onNotificationRemove:I,onRemoveAll:D,logo:x="/headerlogo.png",appName:T="Nuvia",tagline:_="Collaboration Platform",sidebarInitiallyClosed:N=!1}){let[L,Z]=(0,rt.useState)(!N),[ee,te]=(0,rt.useState)(!1),[Y,$]=(0,rt.useState)(s),ie=de=>{$(de),r?.(de)};return(0,_a.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[ee&&(0,_a.jsx)("div",{className:"fixed inset-0 $o-40 bg-black/50 md:hidden",onClick:()=>te(!1)}),(0,_a.jsx)("div",{className:"md:hidden",children:(0,_a.jsx)(ra,{items:e,isOpen:ee,isMobile:!0,onClose:()=>te(!1),currentBusinessUnit:Y,onBusinessUnitChange:ie,onSearch:l,logo:x,appName:T,tagline:_})}),(0,_a.jsx)("div",{className:"hidden md:block",children:(0,_a.jsx)(ra,{items:e,isOpen:L,isMobile:!1,currentBusinessUnit:Y,onBusinessUnitChange:ie,onSearch:l,logo:x,appName:T,tagline:_})}),(0,_a.jsxs)("div",{className:c("min-h-screen fixed w-full transition-all duration-300 ease-in-out",L?"md:pl-64":"md:pl-0"),children:[(0,_a.jsx)(mo,{title:a,notifications:o,onToggleSidebar:()=>Z(!L),onToggleMobileMenu:()=>te(!0),sidebarOpen:L,activeTab:p,onTabChange:u,showTabs:C,onActionClick:f,actionIcon:h,actionText:S,onNotificationRemove:I,onRemoveAll:D,logo:x,appName:T,tagline:_}),(0,_a.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Ze=G(require("react"));var he=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Le=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("flex flex-col space-y-1.5 p-6",e),...t}));Le.displayName="CardHeader";var ze=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";var ma=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));ma.displayName="CardDescription";var De=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("p-6 pt-0",e),...t}));De.displayName="CardContent";var Ct=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("flex items-center p-6 pt-0",e),...t}));Ct.displayName="CardFooter";function bo({sessions:e,currentSession:t,teams:a,onNewChat:o,onSessionSelect:s,onSessionEdit:r,onSessionDelete:l,className:n}){return(0,_a.jsx)(lt,{children:(0,_a.jsx)("div",{className:`space-y-4 h-full ${n||""}`,children:(0,_a.jsxs)(he,{className:"shadow-sm h-full",children:[(0,_a.jsx)("div",{className:"p-4 border-_a",children:(0,_a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_a.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,_a.jsx)($o.Clock,{className:"h-4 w-4"}),"Recent Chats"]}),(0,_a.jsxs)(A,{onClick:o,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[(0,_a.jsx)($o.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,_a.jsx)(Pe,{className:"h-[600px]",children:(0,_a.jsx)("div",{className:"p-2",children:e.length===0?(0,_a.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"$o chat sessions yet"}):e.map(p=>(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsx)("div",{className:c("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===p.id&&"bg-muted border"),onClick:()=>s(p),children:(0,_a.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,_a.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,_a.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:p.title}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:p.lastMessage})]}),(0,_a.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),r(p.id)},children:(0,_a.jsx)($o.Edit3,{className:"h-3 w-3"})}),l&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),l(p.id)},children:(0,_a.jsx)($o.Trash2,{className:"h-3 w-3"})})]})]})})}),(0,_a.jsx)(Xe,{side:"right",className:"max-w-xs",children:(0,_a.jsxs)("div",{className:"space-y-1",children:[(0,_a.jsx)("p",{className:"font-medium text-sm",children:p.title}),(0,_a.jsx)("p",{className:"text-xs",children:p.lastMessage})]})})]},p.id))})})]})})})}var ot=G(require("motion/react-client"));var vo={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},tt=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function ua(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function ho({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:s,colorScheme:r=vo,className:l}){let[n,p]=(0,rt.useState)([]),[u,C]=(0,rt.useState)([]),f=n[n.length-1],h=f?.children||e,S=(N,L)=>{switch(N.type){case"category":return r.categories[L%r.categories.length];case"list":return r.lists[L%r.lists.length];case"item":return r.items[L%r.items.length];default:return r.primary}},I=(0,rt.useMemo)(()=>({path:n,selectedItems:u,filters:{}}),[n,u]);(0,rt.useEffect)(()=>{s&&s(I)},[I,s]);let D=N=>{N.type==="category"||N.type==="list"?p([...n,N]):N.type==="item"&&C([...u,N])},x=()=>{p(n.slice(0,-1))},T=N=>{p(n.slice(0,N+1))},_=()=>f?.actions?f.actions:[];return t?(0,_a.jsxs)("div",{className:c("w-full",l),children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[n.length>0&&(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:x,className:c("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,_a.jsx)($o.ChevronLeft,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,_a.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:c("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,_a.jsx)($o._a,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),n.length>0&&(0,_a.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>p([]),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,_a.jsxs)("span",{className:"relative",children:["Capabilities",(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),n.map((N,L)=>(0,_a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_a.jsx)($o.ChevronRight,{className:"h-2 w-2"}),(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>T(L),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,_a.jsxs)("span",{className:"relative",children:[N.name,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},N.id))]}),(0,_a.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,_a.jsx)(qt.AnimatePresence,{mode:"wait",children:(0,_a.jsx)(qt.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,_a.jsx)(rr,{data:f.data,onItemSelect:N=>C([...u,N]),colorScheme:r}):(0,_a.jsx)(or,{capabilities:h,onSelect:D,colorScheme:r})},f?.id||"root")})})]}):(0,_a.jsxs)(A,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,_a.jsx)($o.Menu,{className:"h-4 w-4"}),(0,_a.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function or({capabilities:e,onSelect:t,colorScheme:a}){return(0,_a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,s)=>(0,_a.jsx)(ir,{capability:o,onClick:()=>t(o),color:a.categories[s%a.categories.length]},o.id))})}function ir({capability:e,onClick:t,selected:a,color:o}){return(0,_a.jsxs)(qt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,_a.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,_a.jsxs)("span",{className:"truncate relative",children:[e.name,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,_a.jsx)($o.ChevronRight,{className:c("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,_a.jsx)(ne,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function rr({data:e,onItemSelect:t,colorScheme:a}){return(0,_a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,s)=>(0,_a.jsxs)(qt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,_a.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[s%a.items.length])}),(0,_a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_a.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,_a.jsx)("div",{className:c("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,_a.jsx)(ne,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var wo=require("date-fns");function yo({taskId:e,polling:t=!0,system:a="payload"}){let[o,s]=(0,rt.useState)(null),[r,l]=(0,rt.useState)(!1),[n,p]=(0,rt.useState)(null),u=async(f=!0)=>{if(e){f&&l(!0);try{let h=await fetch(`/api/tasks/${e}`);if(!h.ok)throw new Error(`Failed to fetch task: ${h.statusText}`);let S=await h.json();s(S)}catch(h){console.error("Error fetching task:",h),p(h instanceof Error?h:new Error("Unknown error occurred"))}finally{f&&l(!1)}}},C=()=>u(!1);return(0,rt.useEffect)(()=>{e&&u(!0);let f=null;return e&&t&&(f=setInterval(C,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:o,loading:r,error:n}}var nr=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},sr=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Co({data:e}){let{id:t,system:a,fetchLatest:o,taskData:s,error:r}=e||{};if(!t)return null;let l=null,n=!0,p=r,u=o!==void 0?o:!0;if(l=s||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:u,taskData:l,error:p}),u){let{task:S,loading:I,error:D}=yo({taskId:t,system:a});l=S,n=I,p=D}else n=!1;let C=nr(l?.status||"todo"),f=sr(l?.status||"todo"),h=l?.dateLogged||new Date().toISOString();try{let S=new Date(l?.dateLogged||"");isNaN(S.getTime())||(h=(0,wo.formatDistanceToNow)(S,{addSuffix:!0}))}catch{}return(0,_a.jsxs)(he,{className:c("w-full max-w-md shadow-md",p&&"border border-destructive"),children:[(0,_a.jsxs)(Le,{className:"pb-2",children:[(0,_a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,_a.jsx)(ze,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,_a.jsx)(ne,{className:`${C}`,children:f})]}),l?.project&&(0,_a.jsxs)(ma,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,_a.jsx)(De,{className:"pb-2",children:n?(0,_a.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):p?(0,_a.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,_a.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,_a.jsx)(Ct,{className:"pt-2 flex items-center justify-between",children:(0,_a.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,_a.jsx)($o.Clock,{className:"h-3 w-3 mr-1"}),(0,_a.jsxs)("span",{children:["Created ",h]}),(0,_a.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,_a.jsxs)("span",{children:["Task #",t]})]})})]})}function Po({artefact:e,taskId:t,taskData:a,loading:o=!1,error:s=null}){let r=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},l=r.dateLogged;try{let n=new Date(r.dateLogged);isNaN(n.getTime())||(l=(0,wo.formatDistanceToNow)(n,{addSuffix:!0}))}catch{}return(0,_a.jsxs)(he,{className:"w-full max-w-md shadow-md",children:[(0,_a.jsx)(Le,{className:"pb-2",children:(0,_a.jsx)("div",{className:"flex justify-between items-start",children:(0,_a.jsx)(ze,{className:"text-lg font-semibold",children:o?"Loading...":r.name})})}),(0,_a.jsx)(De,{className:"pb-2",children:o?(0,_a.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):s?(0,_a.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,_a.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,_a.jsx)(Ct,{className:"pt-2 flex items-center justify-between",children:(0,_a.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,_a.jsx)($o.Clock,{className:"h-3 w-3 mr-1"}),(0,_a.jsxs)("span",{children:["Created ",l]}),(0,_a.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,_a.jsxs)("span",{children:["Task #",r.id]})]})})]})}var Ro=G(require("react"));var To=({isOpen:e=!0,authUrl:t,onClose:a,onSuccess:o,description:s="This endpoint requires authentication to sync functions."})=>{let[r,l]=(0,rt.useState)(!1),[n,p]=(0,rt.useState)(""),u=()=>{if(!t){p("$o authentication URL provided");return}l(!0),p("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){p("Popup blocked. Please allow popups for this site and try again."),l(!1);return}let h=setInterval(()=>{try{f.closed&&(clearInterval(h),l(!1),o(),a())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(h),l(!1),p("Authentication timed out. Please try again."))},6e5)}catch{p("Failed to open authentication window"),l(!1)}},C=async()=>{try{await navigator.clipboard.writeText(t),p("")}catch{p("Failed to copy URL to clipboard")}};return e?(0,_a.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center $o-[1000]",children:(0,_a.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,_a.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,_a.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:s}),n&&(0,_a.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:n}),(0,_a.jsxs)("div",{className:"flex gap-2",children:[(0,_a.jsx)("button",{onClick:u,disabled:r||!t,className:`
6
+ "use strict";var ri=Object.create;var Tt=Object.defineProperty;var ni=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var li=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty;var di=(e,t)=>{for(var a in t)Tt(e,a,{get:t[a],enumerable:!0})},Ra=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of si(t))!ci.call(e,s)&&s!==a&&Tt(e,s,{get:()=>t[s],enumerable:!(o=ni(t,s))||o.enumerable});return e};var G=(e,t,a)=>(a=e!=null?ri(li(e)):{},Ra(t||!e||!e.__esModule?Tt(a,"default",{value:e,enumerable:!0}):a,e)),pi=e=>Ra(Tt({},"__esModule",{value:!0}),e);var wr={};di(wr,{ChatDemoCapabilitiesInteraction:()=>xr,ChatDemoErrorHandling:()=>yr,ChatDemoFileUploads:()=>hr,ChatDemoMarkdownResponses:()=>br,ChatDemoToolCalling:()=>fr,ChatDemoUIComponents:()=>vr});module.exports=pi(wr);var rt=require("react");var Vo=require("@ai-sdk/react"),qt=require("motion/react"),$o=require("lucide-react");var La=require("clsx");var Xt="-",mi=e=>{let t=gi(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(Xt);return n[0]===""&&n.length!==1&&n.shift(),Aa(n,t)||ui(l)},getConflictingClassGroupIds:(l,n)=>{let p=a[l]||[];return n&&o[l]?[...p,...o[l]]:p}}},Aa=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),s=o?Aa(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let r=e.join(Xt);return t.validators.find(({validator:l})=>l(r))?.classGroupId},Da=/^\[(.+)\]$/,ui=e=>{if(Da.test(e)){let t=Da.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},gi=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return bi(Object.entries(e.classGroups),a).forEach(([r,l])=>{Qt(l,o,r,t)}),o},Qt=(e,t,a,o)=>{e.forEach(s=>{if(typeof s=="string"){let r=s===""?t:Sa(t,s);r.classGroupId=a;return}if(typeof s=="function"){if(fi(s)){Qt(s(o),t,a,o);return}t.validators.push({validator:s,classGroupId:a});return}Object.entries(s).forEach(([r,l])=>{Qt(l,Sa(t,r),a,o)})})},Sa=(e,t)=>{let a=e;return t.split(Xt).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},fi=e=>e.isThemeGetter,bi=(e,t)=>t?e.map(([a,o])=>{let s=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([l,n])=>[t+l,n])):r);return[a,s]}):e,vi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,s=(r,l)=>{a.set(r,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let l=a.get(r);if(l!==void 0)return l;if((l=o.get(r))!==void 0)return s(r,l),l},set(r,l){a.has(r)?a.set(r,l):s(r,l)}}},Ia="!",hi=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,s=t[0],r=t.length,l=n=>{let p=[],u=0,C=0,f;for(let x=0;x<n.length;x++){let T=n[x];if(u===0){if(T===s&&(o||n.slice(x,x+r)===t)){p.push(n.slice(C,x)),C=x+r;continue}if(T==="/"){f=x;continue}}T==="["?u++:T==="]"&&u--}let h=p.length===0?n:n.substring(C),S=h.startsWith(Ia),I=S?h.substring(1):h,D=f&&f>C?f-C:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:I,maybePostfixModifierPosition:D}};return a?n=>a({className:n,parseClassName:l}):l},yi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},xi=e=>({cache:vi(e.cacheSize),parseClassName:hi(e),...mi(e)}),wi=/\s+/,Ci=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:s}=t,r=[],l=e.trim().split(wi),n="";for(let p=l.length-1;p>=0;p-=1){let u=l[p],{modifiers:C,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:S}=a(u),I=!!S,D=o(I?h.substring(0,S):h);if(!D){if(!I){n=u+(n.length>0?" "+n:n);continue}if(D=o(h),!D){n=u+(n.length>0?" "+n:n);continue}I=!1}let x=yi(C).join(":"),T=f?x+Ia:x,_=T+D;if(r.includes(_))continue;r.push(_);let N=s(D,I);for(let L=0;L<N.length;++L){let Z=N[L];r.push(T+Z)}n=u+(n.length>0?" "+n:n)}return n};function Ni(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ma(t))&&(o&&(o+=" "),o+=a);return o}var Ma=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ma(e[o]))&&(a&&(a+=" "),a+=t);return a};function ki(e,...t){let a,o,s,r=l;function l(p){let u=t.reduce((C,f)=>f(C),e());return a=xi(u),o=a.cache.get,s=a.cache.set,r=n,n(p)}function n(p){let u=o(p);if(u)return u;let C=Ci(p,a);return s(p,C),C}return function(){return r(Ni.apply(null,arguments))}}var H=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ba=/^\[(?:([a-$o-]+):)?(.+)\]$/_a,Pi=/^\d+\/\d+$/,Ti=new Set(["px","full","screen"]),Ri=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Di=/\d+(%|px|r?em|[sdl]?_a([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|_a|_a|min|max))|\_a(calc|min|max|clamp)\(.+\)|^0$/,Si=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-$o]+|0)_-?((\d+)?\.?(\d+)[a-$o]+|0)/,Ii=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Be=e=>nt(e)||Ti.has(e)||Pi.test(e),He=e=>st(e,"length",Fi),nt=e=>!!e&&!Number.isNaN(Number(e)),Jt=e=>st(e,"number",nt),bt=e=>!!e&&Number.isInteger(Number(e)),Mi=e=>e.endsWith("%")&&nt(e.slice(0,-1)),y=e=>Ba.test(e),je=e=>Ri.test(e),Bi=new Set(["length","size","percentage"]),Ei=e=>st(e,Bi,Ea),Ui=e=>st(e,"position",Ea),Li=new Set(["image","url"]),zi=e=>st(e,Li,Hi),_i=e=>st(e,"",Oi),vt=()=>!0,st=(e,t,a)=>{let o=Ba.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Fi=e=>Di.test(e)&&!Si.test(e),Ea=()=>!1,Oi=e=>Ai.test(e),Hi=e=>Ii.test(e);var ji=()=>{let e=H("colors"),t=H("spacing"),a=H("blur"),o=H("brightness"),s=H("borderColor"),r=H("borderRadius"),l=H("borderSpacing"),n=H("borderWidth"),p=H("contrast"),u=H("grayscale"),C=H("hueRotate"),f=H("invert"),h=H("gap"),S=H("gradientColorStops"),I=H("gradientColorStopPositions"),D=H("inset"),x=H("margin"),T=H("opacity"),_=H("padding"),N=H("saturate"),L=H("scale"),Z=H("sepia"),ee=H("skew"),te=H("space"),Y=H("translate"),$=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",y,t],M=()=>[y,t],Ie=()=>["",Be,He],d=()=>["auto",nt,y],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],m=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",y],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[nt,y];return{cacheSize:500,separator:":",theme:{colors:[vt],spacing:[Be,He],blur:["none","",je,y],brightness:w(),borderColor:[e],borderRadius:["none","","full",je,y],borderSpacing:M(),borderWidth:Ie(),contrast:w(),grayscale:F(),hueRotate:w(),invert:F(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Mi,He],inset:de(),margin:de(),opacity:w(),padding:M(),saturate:w(),scale:w(),sepia:F(),skew:w(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[je]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),y]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],$o:[{$o:["auto",bt,y]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",bt,y]}],"grid-cols":[{"grid-cols":[vt]}],"col-start-end":[{col:["auto",{span:["full",bt,y]},y]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[vt]}],"row-start-end":[{row:["auto",{span:[bt,y]},y]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...m()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...m(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...m(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],rt:[{rt:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],rt:[{rt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[te]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[te]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-w":[{"min-w":[y,t,"min","max","fit"]}],"max-w":[{"max-w":[y,t,"none","full","min","max","fit","prose",{screen:[je]},je]}],h:[{h:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",je,He]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jt]}],"font-family":[{font:[vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",y]}],"line-clamp":[{"line-clamp":["none",nt,Jt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,He]}],"underline-offset":[{"underline-offset":["auto",Be,y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),Ui]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ei]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","_a","bl","l","tl"]},zi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-_a":[{"rounded-_a":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-$o":[{"rounded-$o":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-_a":[{"border-_a":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-_a":[{"border-_a":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Be,y]}],"outline-w":[{outline:[Be,He]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Be,He]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",je,_i]}],"shadow-color":[{shadow:[vt]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",je,y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[f]}],saturate:[{saturate:[N]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",y]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[bt,y]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","$o-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-rt":[{"scroll-rt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-rt":[{"scroll-rt":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,He,Jt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","rt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","rt","mr","mb","ml"],mx:["mr","ml"],my:["rt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-_a","rounded-l","rounded-ss","rounded-$o","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-$o","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-_a":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-_a","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-_a"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-_a","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-_a"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-rt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-rt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-rt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ua=ki(ji);function c(...e){return Ua((0,La.clsx)(e))}var Et=G(require("react")),ia=G(require("next/link"));var za=require("class-variance-authority");var _a=require("react/jsx-runtime"),Wi=(0,za.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ne({className:e,variant:t,...a}){return(0,_a.jsx)("div",{className:c(Wi({variant:t}),e),...a})}var Fa=require("@radix-ui/react-slot"),Ha=G(require("react")),Gi=(0,za.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),A=Ha.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...s},r)=>(0,_a.jsx)(e?Fa.Slot:"button",{className:c(Gi({className:t,size:a,variant:o})),ref:r,...s}));A.displayName="Button";var Wa=G(require("react"));var ht=Wa.forwardRef(({className:e,type:t,...a},o)=>(0,_a.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ht.displayName="Input";var Yt=G(require("react")),be=G(require("@radix-ui/react-scroll-area"));var Pe=Yt.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(be.Root,{ref:o,className:c("relative overflow-hidden",e),...a,children:[(0,_a.jsx)(be.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,_a.jsx)(Va,{}),(0,_a.jsx)(be.Corner,{})]}));Pe.displayName=be.Root.displayName;var Va=Yt.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,_a.jsx)(be.ScrollAreaScrollbar,{ref:o,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,_a.jsx)(be.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Va.displayName=be.ScrollAreaScrollbar.displayName;var yt=G(require("react")),J=G(require("@radix-ui/react-dialog"));var qa=J.Root;var Vi=J.Portal;var Ka=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Overlay,{ref:a,className:c("fixed inset-0 $o-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ka.displayName=J.Overlay.displayName;var Zt=yt.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(Vi,{children:[(0,_a.jsx)(Ka,{}),(0,_a.jsxs)(J.Content,{ref:o,className:c("fixed left-[50%] top-[50%] $o-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,_a.jsxs)(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_a.jsx)($a._a,{className:"h-4 w-4"}),(0,_a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Zt.displayName=J.Content.displayName;var ea=({className:e,...t})=>(0,_a.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ea.displayName="DialogHeader";var $_a=({className:e,...t})=>(0,_a.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$_a.displayName="DialogFooter";var ta=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));ta.displayName=J.Title.displayName;var qi=yt.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(J.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));qi.displayName=J.Description.displayName;var xt=G(require("@radix-ui/react-checkbox")),Qa=G(require("react")),aa=Qa.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(xt.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,_a.jsx)(xt.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,_a.jsx)($o.Check,{className:"h-4 w-4"})})}));aa.displayName=xt.Root.displayName;var Te=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Ya=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,_a.jsx)($o.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,_a.jsx)($o.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,_a.jsx)($o.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,_a.jsx)($o.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,_a.jsx)($o.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,_a.jsx)($o.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,_a.jsx)($o.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,_a.jsx)($o.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,_a.jsx)($o.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,_a.jsx)($o.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],At=[{id:"1",name:"_a-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var oa=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Dt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Mt=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Ki=[...Mt,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],Ji=[...At,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],St={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Xa={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Mt.filter(e=>e.epicId==="1")};var Gr={empty:{initialProjects:St.projects,initialEpics:St.epics,initialSprints:St.sprints,initialTasks:St.tasks},default:{initialProjects:At,initialEpics:oa,initialSprints:Dt,initialTasks:Mt},highDensity:{initialProjects:At,initialEpics:oa,initialSprints:Dt,initialTasks:Ki},singleEpic:{initialProjects:At,initialEpics:Xa.epics,initialSprints:Dt,initialTasks:Xa.tasks},multipleProjects:{initialProjects:Ji,initialEpics:oa,initialSprints:Dt,initialTasks:Mt}},It=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Te),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Te),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Te),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Te),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Te),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Te),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Te),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Te),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Te),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Te),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Vr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:It.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:It.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:It.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var $r=It.filter(e=>e.type==="digital");function Za(e,t){let[a,o]=(0,rt.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),s=r=>{try{o(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,rt.useEffect)(()=>{s(a)},[]),[a,s]}function ra({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:s=Ya[0],onBusinessUnitChange:r,onSearch:l,className:n,logo:p="/headerlogo.png",appName:u="Nuvia",tagline:C="Collaboration Platform"}){let[f,h]=Et.useState({}),[S,I]=Za("sidebar-favorites",{}),[D,x]=Et.useState(null),[T,_]=Et.useState(""),N=d=>{h(U=>({...U,[d]:!U[d]}))},L=d=>{r?.(d)},Z=()=>{T.trim()&&l?.(T.trim())},ee=d=>{d.key==="Enter"&&(d.preventDefault(),Z())},te=(d,U)=>{let B=S[d]||[],q=B.includes(U)?B.filter(m=>m!==U):B.concat(U);I({...S,[d]:q})},Y=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let U=S[d.id]||[],B=d.items.filter(m=>U.includes(m.id)),q=d.items.filter(m=>!U.includes(m.id));return[...B,...q].slice(0,d.maxItems)},$=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,ie=e,de=d=>{let U=$(d),B=Y(d),q=(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,_a.jsx)("span",{children:d.title})]}),d.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,_a.jsx)($o.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",f[d.title]?"rotate-180":"")})]}),m=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,_a.jsx)(ia.default,{href:d.url,className:m,onClick:a?o:void 0,children:q}):(0,_a.jsx)("button",{className:m,onClick:()=>d.items&&N(d.title),children:q})},M=()=>{let d=e.find(B=>B.id===D);if(!d||!d.items||!d.maxItems)return null;let U=S[d.id]||[];return(0,_a.jsx)(qa,{open:!!D,onOpenChange:B=>!B&&x(null),children:(0,_a.jsxs)(Zt,{className:"sm:max-w-md",children:[(0,_a.jsxs)(ea,{children:[(0,_a.jsxs)(ta,{children:["Manage ",d.title," Favorites"]}),(0,_a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,_a.jsx)(Pe,{className:"max-h-96 pr-4",children:(0,_a.jsx)("div",{className:"space-y-4",children:d.items.map(B=>(0,_a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_a.jsx)(aa,{id:B.id,checked:U.includes(B.id),onCheckedChange:()=>te(d.id,B.id),disabled:!U.includes(B.id)&&U.length>=(d.maxItems||0)}),(0,_a.jsxs)("label",{htmlFor:B.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[B.title,B.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"text-xs",children:B.badge})]})]},B.id))})})]})})},Ie=(0,_a.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,_a.jsx)("img",{src:p,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,_a.jsxs)("div",{children:[(0,_a.jsx)("h2",{className:"font-semibold",children:u}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:C})]})]}),a&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",onClick:o,children:(0,_a.jsx)($o._a,{className:"h-5 w-5"})})]}),(0,_a.jsx)("div",{className:"px-3 py-2",children:(0,_a.jsxs)("div",{className:"relative",children:[(0,_a.jsx)($o.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,_a.jsx)(ht,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:T,onChange:d=>_(d.target.value),onKeyPress:ee})]})}),(0,_a.jsx)(Pe,{className:"flex-1 px-3 py-2",children:(0,_a.jsx)("div",{className:"space-y-1",children:ie.map(d=>(0,_a.jsxs)("div",{className:"mb-1",children:[de(d),d.items&&f[d.title]&&(0,_a.jsxs)("div",{className:"rt-1 ml-6 space-y-1 border-l pl-3",children:[Y(d).map(U=>(0,_a.jsxs)(ia.default,{href:U.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[U.title,U.badge&&(0,_a.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:U.badge})]},U.id)),$(d)&&d.items&&d.items.length>Y(d).length&&(0,_a.jsxs)("button",{onClick:()=>x(d.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-Y(d).length," more available"]})]})]},d.id))})}),(0,_a.jsx)("div",{className:"p-3",children:(0,_a.jsx)("div",{className:"space-y-1",children:(0,_a.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,_a.jsx)($o.Settings,{className:"h-5 w-5"}),(0,_a.jsx)("span",{children:"Settings"})]})})}),(0,_a.jsx)(M,{})]});return a?(0,_a.jsx)("div",{className:c("fixed inset-y-0 left-0 $o-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:Ie}):(0,_a.jsx)("div",{className:c("fixed inset-y-0 left-0 $o-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:Ie})}var Ut=G(require("react")),Ee=G(require("@radix-ui/react-avatar"));var Je=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Root,{ref:a,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Je.displayName=Ee.Root.displayName;var na=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Image,{ref:a,className:c("aspect-square h-full w-full",e),...t}));na.displayName=Ee.Image.displayName;var Qe=Ut.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(Ee.Fallback,{ref:a,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Qe.displayName=Ee.Fallback.displayName;var eo=G(require("react")),we=G(require("@radix-ui/react-tooltip"));var lt=we.Provider,ct=we.Root,dt=we.Trigger,Xe=eo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,_a.jsx)(we.Portal,{children:(0,_a.jsx)(we.Content,{ref:o,sideOffset:t,className:c("$o-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Xe.displayName=we.Content.displayName;var to=require("next-themes");function ao(){let{setTheme:e,theme:t}=(0,to.useTheme)();return(0,_a.jsx)(lt,{children:(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsxs)(A,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,_a.jsx)($o.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,_a.jsx)($o.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,_a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,_a.jsx)(Xe,{children:"Toggle theme"})]})})}function oo({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:s,className:r}){let l=e.filter(u=>!u.read),n=l.length,p=u=>{switch(u){case"info":return(0,_a.jsx)($o.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,_a.jsx)($o.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,_a.jsx)($o.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,_a.jsx)($o.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,_a.jsx)(qt.AnimatePresence,{children:t&&(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsx)(qt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 $o-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,_a.jsx)(qt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 $o-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,_a.jsxs)("div",{className:"flex h-full flex-col",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between border-_a p-4",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_a.jsx)($o.Bell,{className:"h-5 w-5"}),(0,_a.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,_a.jsxs)(ne,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,_a.jsxs)(A,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,_a.jsx)($o._a,{className:"h-5 w-5"}),(0,_a.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,_a.jsxs)("div",{className:"flex items-center justify-between border-_a p-2",children:[(0,_a.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,_a.jsx)(A,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,_a.jsx)(Pe,{className:"flex-1",children:(0,_a.jsx)("div",{className:"divide-y",children:l.map(u=>(0,_a.jsxs)("div",{className:c("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,_a.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:p(u.type)}),(0,_a.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_a.jsx)("p",{className:"font-medium",children:u.title}),(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:u.time}),(0,_a.jsx)(A,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o?.(u.id),title:"Dismiss",children:(0,_a.jsx)($o.Check,{className:"h-3 w-3"})})]})]}),(0,_a.jsx)("p",{className:"text-sm text-muted-foreground",children:u.description}),u.actionLabel&&(0,_a.jsxs)(A,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:u.onAction,children:[u.actionLabel,(0,_a.jsx)($o.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},u.id))})}):(0,_a.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,_a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,_a.jsx)($o.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,_a.jsx)("h3",{className:"rt-4 text-lg font-medium",children:"$o notifications"}),(0,_a.jsx)("p",{className:"rt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ye=G(require("@radix-ui/react-tabs"));function io({className:e,...t}){return(0,_a.jsx)(Ye.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function ro({className:e,...t}){return(0,_a.jsx)(Ye.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function no({className:e,...t}){return(0,_a.jsx)(Ye.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Ue=G(require("react")),R=G(require("@radix-ui/react-dropdown-menu")),pt=require("@radix-ui/react-icons");var so=R.Root,lo=R.Trigger;var Qi=Ue.forwardRef(({className:e,inset:t,children:a,...o},s)=>(0,_a.jsxs)(R.SubTrigger,{ref:s,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,_a.jsx)(pt.ChevronRightIcon,{className:"ml-auto"})]}));Qi.displayName=R.SubTrigger.displayName;var Xi=Ue.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(R.SubContent,{ref:a,className:c("$o-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Xi.displayName=R.SubContent.displayName;var la=Ue.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,_a.jsx)(R.Portal,{children:(0,_a.jsx)(R.Content,{ref:o,sideOffset:t,className:c("$o-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));la.displayName=R.Content.displayName;var ca=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,_a.jsx)(R.Item,{ref:o,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ca.displayName=R.Item.displayName;var Yi=Ue.forwardRef(({className:e,children:t,checked:a,...o},s)=>(0,_a.jsxs)(R.CheckboxItem,{ref:s,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,_a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_a.jsx)(R.ItemIndicator,{children:(0,_a.jsx)(pt.CheckIcon,{className:"h-4 w-4"})})}),t]}));Yi.displayName=R.CheckboxItem.displayName;var Zi=Ue.forwardRef(({className:e,children:t,...a},o)=>(0,_a.jsxs)(R.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,_a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_a.jsx)(R.ItemIndicator,{children:(0,_a.jsx)(pt.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Zi.displayName=R.RadioItem.displayName;var er=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,_a.jsx)(R.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));er.displayName=R.Label.displayName;var tr=Ue.forwardRef(({className:e,...t},a)=>(0,_a.jsx)(R.Separator,{ref:a,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));tr.displayName=R.Separator.displayName;var ar=({className:e,...t})=>(0,_a.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});ar.displayName="DropdownMenuShortcut";function po({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:s="700px",gridCols:r=6}){let l=a.find(n=>n.value===e);return(0,_a.jsxs)(qt.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,_a.jsx)("div",{className:"hidden lg:block",children:(0,_a.jsx)(io,{value:e,onValueChange:t,children:(0,_a.jsx)(ro,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(n=>(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,_a.jsx)(no,{value:n.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,_a.jsx)("div",{className:"lg:hidden",children:(0,_a.jsxs)(so,{children:[(0,_a.jsx)(lo,{asChild:!0,children:(0,_a.jsxs)(A,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,_a.jsx)($o.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,_a.jsx)(la,{align:"center",className:"w-[180px]",children:a.map(n=>(0,_a.jsx)(ca,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function mo({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:s=!0,className:r,activeTab:l="assistant",onTabChange:n,showTabs:p=!0,tabOptions:u=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:C,actionIcon:f=(0,_a.jsx)($e.Bot,{className:"mr-2 h-4 w-4"}),actionText:h="Action",onNotificationRemove:S,onRemoveAll:I,logo:D="/headerlogo.png",appName:x="Nuvia",tagline:T="Collaboration Platform"}){let[_,N]=(0,rt.useState)(!1),[L,Z]=(0,rt.useState)(t),ee=L.filter($=>!$.read).length,te=$=>{Z(ie=>ie.filter(de=>de.id!==$)),S?.($)},Y=()=>{Z($=>$.filter(ie=>ie.read)),I?.()};return(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsxs)("header",{className:`sticky top-0 $o-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,_a.jsx)($e.Menu,{className:"h-5 w-5"})}),(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,_a.jsx)($e.PanelLeft,{className:"h-5 w-5"})}),!s&&(0,_a.jsxs)(qt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,_a.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,_a.jsx)("img",{src:D,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,_a.jsxs)("div",{children:[(0,_a.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground",children:T})]})]}),(0,_a.jsxs)("div",{className:"flex flex-1 items-center",children:[p&&(0,_a.jsx)(po,{activeTab:l,onTabChange:n,tabOptions:u}),(0,_a.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,_a.jsx)(qt.motion.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:(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(A,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:C,children:[f,h]})})}),(0,_a.jsx)(ao,{}),(0,_a.jsx)(lt,{children:(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(A,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>N(!0),children:[(0,_a.jsx)(qt.motion.div,{animate:ee>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:ee>0?1/0:0,repeatDelay:3},children:(0,_a.jsx)($e.Bell,{className:"h-5 w-5"})}),ee>0&&(0,_a.jsx)(qt.motion.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:ee})]})})}),(0,_a.jsx)(Xe,{children:"Notifications"})]})}),(0,_a.jsx)(qt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,_a.jsxs)(Je,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,_a.jsx)(na,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,_a.jsx)(Qe,{})]})})]})]})]}),(0,_a.jsx)(oo,{notifications:L,open:_,onClose:()=>N(!1),onNotificationRemove:te,onRemoveAll:Y})]})}var uo=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,_a.jsx)($o.User,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function fo({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:s=uo[0],onBusinessUnitChange:r,onSearch:l,businessUnits:n=uo,activeTab:p,onTabChange:u,showTabs:C=!1,onActionClick:f,actionIcon:h,actionText:S="Action",onNotificationRemove:I,onRemoveAll:D,logo:x="/headerlogo.png",appName:T="Nuvia",tagline:_="Collaboration Platform",sidebarInitiallyClosed:N=!1}){let[L,Z]=(0,rt.useState)(!N),[ee,te]=(0,rt.useState)(!1),[Y,$]=(0,rt.useState)(s),ie=de=>{$(de),r?.(de)};return(0,_a.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[ee&&(0,_a.jsx)("div",{className:"fixed inset-0 $o-40 bg-black/50 md:hidden",onClick:()=>te(!1)}),(0,_a.jsx)("div",{className:"md:hidden",children:(0,_a.jsx)(ra,{items:e,isOpen:ee,isMobile:!0,onClose:()=>te(!1),currentBusinessUnit:Y,onBusinessUnitChange:ie,onSearch:l,logo:x,appName:T,tagline:_})}),(0,_a.jsx)("div",{className:"hidden md:block",children:(0,_a.jsx)(ra,{items:e,isOpen:L,isMobile:!1,currentBusinessUnit:Y,onBusinessUnitChange:ie,onSearch:l,logo:x,appName:T,tagline:_})}),(0,_a.jsxs)("div",{className:c("min-h-screen fixed w-full transition-all duration-300 ease-in-out",L?"md:pl-64":"md:pl-0"),children:[(0,_a.jsx)(mo,{title:a,notifications:o,onToggleSidebar:()=>Z(!L),onToggleMobileMenu:()=>te(!0),sidebarOpen:L,activeTab:p,onTabChange:u,showTabs:C,onActionClick:f,actionIcon:h,actionText:S,onNotificationRemove:I,onRemoveAll:D,logo:x,appName:T,tagline:_}),(0,_a.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Ze=G(require("react"));var he=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Le=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("flex flex-col space-y-1.5 p-6",e),...t}));Le.displayName="CardHeader";var ze=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";var ma=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));ma.displayName="CardDescription";var De=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("p-6 pt-0",e),...t}));De.displayName="CardContent";var Ct=Ze.forwardRef(({className:e,...t},a)=>(0,_a.jsx)("div",{ref:a,className:c("flex items-center p-6 pt-0",e),...t}));Ct.displayName="CardFooter";function bo({sessions:e,currentSession:t,teams:a,onNewChat:o,onSessionSelect:s,onSessionEdit:r,onSessionDelete:l,className:n}){return(0,_a.jsx)(lt,{children:(0,_a.jsx)("div",{className:`space-y-4 h-full ${n||""}`,children:(0,_a.jsxs)(he,{className:"shadow-sm h-full",children:[(0,_a.jsx)("div",{className:"p-4 border-_a",children:(0,_a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_a.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,_a.jsx)($o.Clock,{className:"h-4 w-4"}),"Recent Chats"]}),(0,_a.jsxs)(A,{onClick:o,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[(0,_a.jsx)($o.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,_a.jsx)(Pe,{className:"h-[600px]",children:(0,_a.jsx)("div",{className:"p-2",children:e.length===0?(0,_a.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"$o chat sessions yet"}):e.map(p=>(0,_a.jsxs)(ct,{children:[(0,_a.jsx)(dt,{asChild:!0,children:(0,_a.jsx)("div",{className:c("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===p.id&&"bg-muted border"),onClick:()=>s(p),children:(0,_a.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,_a.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,_a.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:p.title}),(0,_a.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:p.lastMessage})]}),(0,_a.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),r(p.id)},children:(0,_a.jsx)($o.Edit3,{className:"h-3 w-3"})}),l&&(0,_a.jsx)(A,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),l(p.id)},children:(0,_a.jsx)($o.Trash2,{className:"h-3 w-3"})})]})]})})}),(0,_a.jsx)(Xe,{side:"right",className:"max-w-xs",children:(0,_a.jsxs)("div",{className:"space-y-1",children:[(0,_a.jsx)("p",{className:"font-medium text-sm",children:p.title}),(0,_a.jsx)("p",{className:"text-xs",children:p.lastMessage})]})})]},p.id))})})]})})})}var ot=G(require("motion/react-client"));var vo={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},tt=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function ua(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function ho({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:s,colorScheme:r=vo,className:l}){let[n,p]=(0,rt.useState)([]),[u,C]=(0,rt.useState)([]),f=n[n.length-1],h=f?.children||e,S=(N,L)=>{switch(N.type){case"category":return r.categories[L%r.categories.length];case"list":return r.lists[L%r.lists.length];case"item":return r.items[L%r.items.length];default:return r.primary}},I=(0,rt.useMemo)(()=>({path:n,selectedItems:u,filters:{}}),[n,u]);(0,rt.useEffect)(()=>{s&&s(I)},[I,s]);let D=N=>{N.type==="category"||N.type==="list"?p([...n,N]):N.type==="item"&&C([...u,N])},x=()=>{p(n.slice(0,-1))},T=N=>{p(n.slice(0,N+1))},_=()=>f?.actions?f.actions:[];return t?(0,_a.jsxs)("div",{className:c("w-full",l),children:[(0,_a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_a.jsxs)("div",{className:"flex items-center gap-2",children:[n.length>0&&(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:x,className:c("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,_a.jsx)($o.ChevronLeft,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,_a.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:c("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,_a.jsx)($o._a,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),n.length>0&&(0,_a.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>p([]),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,_a.jsxs)("span",{className:"relative",children:["Capabilities",(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),n.map((N,L)=>(0,_a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_a.jsx)($o.ChevronRight,{className:"h-2 w-2"}),(0,_a.jsx)(qt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>T(L),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,_a.jsxs)("span",{className:"relative",children:[N.name,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},N.id))]}),(0,_a.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,_a.jsx)(qt.AnimatePresence,{mode:"wait",children:(0,_a.jsx)(qt.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,_a.jsx)(rr,{data:f.data,onItemSelect:N=>C([...u,N]),colorScheme:r}):(0,_a.jsx)(or,{capabilities:h,onSelect:D,colorScheme:r})},f?.id||"root")})})]}):(0,_a.jsxs)(A,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,_a.jsx)($o.Menu,{className:"h-4 w-4"}),(0,_a.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function or({capabilities:e,onSelect:t,colorScheme:a}){return(0,_a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,s)=>(0,_a.jsx)(ir,{capability:o,onClick:()=>t(o),color:a.categories[s%a.categories.length]},o.id))})}function ir({capability:e,onClick:t,selected:a,color:o}){return(0,_a.jsxs)(qt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,_a.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,_a.jsxs)("span",{className:"truncate relative",children:[e.name,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,_a.jsx)($o.ChevronRight,{className:c("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,_a.jsx)(ne,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function rr({data:e,onItemSelect:t,colorScheme:a}){return(0,_a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,s)=>(0,_a.jsxs)(qt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,_a.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[s%a.items.length])}),(0,_a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_a.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,_a.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,_a.jsx)("div",{className:c("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,_a.jsx)(ne,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var wo=require("date-fns");function yo({taskId:e,polling:t=!0,system:a="payload"}){let[o,s]=(0,rt.useState)(null),[r,l]=(0,rt.useState)(!1),[n,p]=(0,rt.useState)(null),u=async(f=!0)=>{if(e){f&&l(!0);try{let h=await fetch(`/api/tasks/${e}`);if(!h.ok)throw new Error(`Failed to fetch task: ${h.statusText}`);let S=await h.json();s(S)}catch(h){console.error("Error fetching task:",h),p(h instanceof Error?h:new Error("Unknown error occurred"))}finally{f&&l(!1)}}},C=()=>u(!1);return(0,rt.useEffect)(()=>{e&&u(!0);let f=null;return e&&t&&(f=setInterval(C,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:o,loading:r,error:n}}var nr=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},sr=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Co({data:e}){let{id:t,system:a,fetchLatest:o,taskData:s,error:r}=e||{};if(!t)return null;let l=null,n=!0,p=r,u=o!==void 0?o:!0;if(l=s||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:u,taskData:l,error:p}),u){let{task:S,loading:I,error:D}=yo({taskId:t,system:a});l=S,n=I,p=D}else n=!1;let C=nr(l?.status||"todo"),f=sr(l?.status||"todo"),h=l?.dateLogged||new Date().toISOString();try{let S=new Date(l?.dateLogged||"");isNaN(S.getTime())||(h=(0,wo.formatDistanceToNow)(S,{addSuffix:!0}))}catch{}return(0,_a.jsxs)(he,{className:c("w-full max-w-md shadow-md",p&&"border border-destructive"),children:[(0,_a.jsxs)(Le,{className:"pb-2",children:[(0,_a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,_a.jsx)(ze,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,_a.jsx)(ne,{className:`${C}`,children:f})]}),l?.project&&(0,_a.jsxs)(ma,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,_a.jsx)(De,{className:"pb-2",children:n?(0,_a.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):p?(0,_a.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,_a.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,_a.jsx)(Ct,{className:"pt-2 flex items-center justify-between",children:(0,_a.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,_a.jsx)($o.Clock,{className:"h-3 w-3 mr-1"}),(0,_a.jsxs)("span",{children:["Created ",h]}),(0,_a.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,_a.jsxs)("span",{children:["Task #",t]})]})})]})}function Po({artefact:e,taskId:t,taskData:a,loading:o=!1,error:s=null}){let r=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},l=r.dateLogged;try{let n=new Date(r.dateLogged);isNaN(n.getTime())||(l=(0,wo.formatDistanceToNow)(n,{addSuffix:!0}))}catch{}return(0,_a.jsxs)(he,{className:"w-full max-w-md shadow-md",children:[(0,_a.jsx)(Le,{className:"pb-2",children:(0,_a.jsx)("div",{className:"flex justify-between items-start",children:(0,_a.jsx)(ze,{className:"text-lg font-semibold",children:o?"Loading...":r.name})})}),(0,_a.jsx)(De,{className:"pb-2",children:o?(0,_a.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):s?(0,_a.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,_a.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,_a.jsx)(Ct,{className:"pt-2 flex items-center justify-between",children:(0,_a.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,_a.jsx)($o.Clock,{className:"h-3 w-3 mr-1"}),(0,_a.jsxs)("span",{children:["Created ",l]}),(0,_a.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,_a.jsxs)("span",{children:["Task #",r.id]})]})})]})}var Ro=G(require("react"));var To=({isOpen:e=!0,authUrl:t,onClose:a,onSuccess:o,description:s="This endpoint requires authentication to sync functions."})=>{let[r,l]=(0,rt.useState)(!1),[n,p]=(0,rt.useState)(""),u=()=>{if(!t){p("$o authentication URL provided");return}l(!0),p("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){p("Popup blocked. Please allow popups for this site and try again."),l(!1);return}let h=setInterval(()=>{try{f.closed&&(clearInterval(h),l(!1),o(),a())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(h),l(!1),p("Authentication timed out. Please try again."))},6e5)}catch{p("Failed to open authentication window"),l(!1)}},C=async()=>{try{await navigator.clipboard.writeText(t),p("")}catch{p("Failed to copy URL to clipboard")}};return e?(0,_a.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center $o-[1000]",children:(0,_a.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,_a.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,_a.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:s}),n&&(0,_a.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:n}),(0,_a.jsxs)("div",{className:"flex gap-2",children:[(0,_a.jsx)("button",{onClick:u,disabled:r||!t,className:`
7
7
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
8
8
  ${r||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
9
9
  `,children:r?"Authenticating...":"Authenticate"}),(0,_a.jsx)("button",{onClick:C,disabled:!t,className:`
@@ -1,4 +1,4 @@
1
- import{a as n}from"../../chunk-GCXKBUGA.mjs";import"../../chunk-E6UOMRHI.mjs";import"../../chunk-56X4PU43.mjs";import"../../chunk-TIBKVEUZ.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-UGBDJDPW.mjs";import"../../chunk-ZN7NNMB7.mjs";import"../../chunk-3BG2SCNC.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-SIL7AP7H.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-DBY4SXQI.mjs";import"../../chunk-I2PVJQQR.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-QG4QCB5I.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-FGEFYI5E.mjs";import{b as s}from"../../chunk-Q2DPE66H.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";import{useState as r}from"react";import{jsx as e}from"react/jsx-runtime";function u(){let[t,a]=r([{id:"1",role:"user",parts:[{type:"text",text:"Can you help me analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll help you analyze your sales data. Let me fetch the latest information.
1
+ import{a as n}from"../../chunk-DNMPFZJH.mjs";import"../../chunk-CTTBF7F4.mjs";import"../../chunk-56X4PU43.mjs";import"../../chunk-SMDC36XJ.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-UGBDJDPW.mjs";import"../../chunk-ZN7NNMB7.mjs";import"../../chunk-3BG2SCNC.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-SIL7AP7H.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-DBY4SXQI.mjs";import"../../chunk-I2PVJQQR.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import{b as s}from"../../chunk-Q2DPE66H.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";import{useState as r}from"react";import{jsx as e}from"react/jsx-runtime";function u(){let[t,a]=r([{id:"1",role:"user",parts:[{type:"text",text:"Can you help me analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll help you analyze your sales data. Let me fetch the latest information.
2
2
 
3
3
  *\u{1F527} Calling function: fetch_sales_data(period="30d", region="all")*`}]},{id:"3",role:"assistant",parts:[{type:"text",text:`Great! I've retrieved your sales data for the last 30 days. Here's what I found:
4
4