cortex-react-components 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/dist/{chunk-YVI5URXW.mjs → chunk-2NMVE5M4.mjs} +1 -1
  2. package/dist/{chunk-GQVNL534.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  3. package/dist/{chunk-ZFBEBFCI.mjs → chunk-3KITWLRN.mjs} +1 -1
  4. package/dist/{chunk-3OKVKXQT.mjs → chunk-436WKDWG.mjs} +1 -1
  5. package/dist/{chunk-S7SHOCHM.mjs → chunk-6SWKEZN6.mjs} +1 -1
  6. package/dist/{chunk-AV5SA2JB.mjs → chunk-6T4OEOJH.mjs} +1 -1
  7. package/dist/{chunk-VM25PG5R.mjs → chunk-A2AEX4YB.mjs} +1 -1
  8. package/dist/{chunk-CG2SBWT7.mjs → chunk-A3SUL73A.mjs} +1 -1
  9. package/dist/{chunk-HIHXHTK3.mjs → chunk-ABGNIQRP.mjs} +1 -1
  10. package/dist/{chunk-PANOPGUW.mjs → chunk-AVHFRD6D.mjs} +1 -1
  11. package/dist/{chunk-6QSBVWNG.mjs → chunk-BADFWNRL.mjs} +1 -1
  12. package/dist/{chunk-KN65DDFI.mjs → chunk-CVLUVZR3.mjs} +1 -1
  13. package/dist/{chunk-CXV6AWOX.mjs → chunk-D3B2YO7G.mjs} +1 -1
  14. package/dist/{chunk-BWTA3BKK.mjs → chunk-DLUWDQSW.mjs} +1 -1
  15. package/dist/{chunk-VN7TASR4.mjs → chunk-DUEPJ3F4.mjs} +1 -1
  16. package/dist/{chunk-BPTRLIWH.mjs → chunk-DY2G774J.mjs} +1 -1
  17. package/dist/{chunk-RENPEB5D.mjs → chunk-EG646342.mjs} +1 -1
  18. package/dist/{chunk-SRCJSWQF.mjs → chunk-EOXVYLPB.mjs} +1 -1
  19. package/dist/{chunk-RTAA6HZ2.mjs → chunk-EVZSRWUW.mjs} +1 -1
  20. package/dist/{chunk-BXHNSQWH.mjs → chunk-FOISWNF5.mjs} +1 -1
  21. package/dist/{chunk-E37JPSPB.mjs → chunk-FRKGQKEM.mjs} +1 -1
  22. package/dist/{chunk-XHMVS6GT.mjs → chunk-FV3W3WL7.mjs} +1 -1
  23. package/dist/{chunk-7A3BV5SJ.mjs → chunk-G6ED5Z4J.mjs} +1 -1
  24. package/dist/{chunk-IN55EBPV.mjs → chunk-GS2VFNHY.mjs} +1 -1
  25. package/dist/{chunk-MWXZUSRT.mjs → chunk-HH3AWPYB.mjs} +1 -1
  26. package/dist/{chunk-IEUDWPYZ.mjs → chunk-IQ3TUH7O.mjs} +1 -1
  27. package/dist/{chunk-6LZRVGXZ.mjs → chunk-IUT6JJHY.mjs} +1 -1
  28. package/dist/{chunk-LALFQI3P.mjs → chunk-IV5HRCWW.mjs} +1 -1
  29. package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
  30. package/dist/{chunk-UKYWLNKE.mjs → chunk-KJMXSFJA.mjs} +1 -1
  31. package/dist/{chunk-QQ36F4C4.mjs → chunk-KOXC4RIH.mjs} +1 -1
  32. package/dist/{chunk-QRJOCPHI.mjs → chunk-KTET6W73.mjs} +1 -1
  33. package/dist/{chunk-DYHW653F.mjs → chunk-KXZFR7TI.mjs} +1 -1
  34. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  35. package/dist/{chunk-75WE6ZXB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  36. package/dist/{chunk-KDSAOIPC.mjs → chunk-LC2RBE7W.mjs} +1 -1
  37. package/dist/{chunk-OFXZKSCN.mjs → chunk-M4NJB4NN.mjs} +1 -1
  38. package/dist/{chunk-6VPRGZON.mjs → chunk-MNI6AM7Q.mjs} +1 -1
  39. package/dist/{chunk-KLEXMJR2.mjs → chunk-NZS3XKXU.mjs} +1 -1
  40. package/dist/{chunk-XP4XLR2J.mjs → chunk-OB5WMODY.mjs} +1 -1
  41. package/dist/{chunk-ALI7Z4HH.mjs → chunk-OEFXIEY3.mjs} +1 -1
  42. package/dist/{chunk-MGJTWNXD.mjs → chunk-OJYMSL24.mjs} +1 -1
  43. package/dist/{chunk-ZDOLX6I2.mjs → chunk-PEQOQ7BK.mjs} +1 -1
  44. package/dist/{chunk-GLLR2OOI.mjs → chunk-PFLESLNT.mjs} +1 -1
  45. package/dist/{chunk-66WBIP2O.mjs → chunk-PLTKMHUH.mjs} +1 -1
  46. package/dist/{chunk-TAYYCGWX.mjs → chunk-PM35MWKG.mjs} +1 -1
  47. package/dist/{chunk-AQLCYCLG.mjs → chunk-PXPSM7OQ.mjs} +1 -1
  48. package/dist/{chunk-RIK7YEA6.mjs → chunk-QDAJ7QAD.mjs} +1 -1
  49. package/dist/{chunk-UDPQ4MXR.mjs → chunk-R7LPCFUJ.mjs} +1 -1
  50. package/dist/{chunk-4TVYOBYI.mjs → chunk-RK2CAIEF.mjs} +1 -1
  51. package/dist/{chunk-BHKBIYMM.mjs → chunk-RUOYGMOR.mjs} +1 -1
  52. package/dist/{chunk-EGHHWTFA.mjs → chunk-S562PA5P.mjs} +1 -1
  53. package/dist/{chunk-43IUXVGW.mjs → chunk-SNZ5BAQQ.mjs} +1 -1
  54. package/dist/chunk-SRUG246N.mjs +4 -0
  55. package/dist/{chunk-NOHO4XDS.mjs → chunk-TO2UDP5T.mjs} +1 -1
  56. package/dist/{chunk-SG5QL77J.mjs → chunk-TO7KJNKC.mjs} +1 -1
  57. package/dist/{chunk-QDYF4Z2F.mjs → chunk-TUI4S4GI.mjs} +1 -1
  58. package/dist/{chunk-N25B5TQ5.mjs → chunk-TZKQXT7Y.mjs} +1 -1
  59. package/dist/{chunk-VNMKCJBJ.mjs → chunk-U7GAPI7X.mjs} +1 -1
  60. package/dist/{chunk-OFFFATED.mjs → chunk-UIMLXZPF.mjs} +1 -1
  61. package/dist/{chunk-6U2XBCMC.mjs → chunk-UNS6CTQZ.mjs} +1 -1
  62. package/dist/{chunk-XCCL5CIT.mjs → chunk-V2KCUPP5.mjs} +1 -1
  63. package/dist/{chunk-D6W4VUUS.mjs → chunk-VKJ7E6OL.mjs} +1 -1
  64. package/dist/{chunk-IQKWNF37.mjs → chunk-WHDJPD5E.mjs} +1 -1
  65. package/dist/{chunk-4TU4OACM.mjs → chunk-WN2LPOQP.mjs} +1 -1
  66. package/dist/{chunk-ZLSF5YXT.mjs → chunk-XGRRLABA.mjs} +1 -1
  67. package/dist/{chunk-C4UPRDGQ.mjs → chunk-XI5H6WLY.mjs} +1 -1
  68. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  69. package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
  70. package/dist/common-types.mjs +1 -1
  71. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  72. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  73. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +1 -1
  74. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  75. package/dist/components/AdvancedComponents/index.mjs +1 -1
  76. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  77. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  78. package/dist/components/AdvancedComponents/sidebar.mjs +1 -1
  79. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  80. package/dist/components/AdvancedComponents/theme-provider.mjs +3 -1
  81. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  82. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  83. package/dist/components/Blocks/Banner.js +1 -2
  84. package/dist/components/Blocks/Banner.mjs +1 -1
  85. package/dist/components/Blocks/CallToAction.js +1 -2
  86. package/dist/components/Blocks/CallToAction.mjs +1 -1
  87. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  88. package/dist/components/Blocks/Code.client.mjs +1 -1
  89. package/dist/components/Blocks/Code.mjs +1 -1
  90. package/dist/components/Blocks/CollapsibleArea.js +1 -2
  91. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  92. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  93. package/dist/components/Blocks/Content.js +1 -2
  94. package/dist/components/Blocks/Content.mjs +1 -1
  95. package/dist/components/Blocks/CopyButton.mjs +1 -1
  96. package/dist/components/Blocks/FeaturesBlock.js +1 -2
  97. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  98. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  99. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  100. package/dist/components/Blocks/InfoTile.mjs +1 -1
  101. package/dist/components/Blocks/Insight.mjs +1 -1
  102. package/dist/components/Blocks/MOTD.mjs +1 -1
  103. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  104. package/dist/components/Blocks/OrgChart.mjs +1 -1
  105. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  106. package/dist/components/Blocks/RelatedPosts.js +1 -2
  107. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  108. package/dist/components/Blocks/RenderBlocks.js +1 -2
  109. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  110. package/dist/components/Blocks/ReusableContentBlock.js +1 -2
  111. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  112. package/dist/components/Blocks/WhyUs.mjs +1 -1
  113. package/dist/components/Blocks/index.js +1 -2
  114. package/dist/components/Blocks/index.mjs +1 -1
  115. package/dist/components/CRM/CogeBoard.mjs +1 -1
  116. package/dist/components/CRM/DealCard.mjs +1 -1
  117. package/dist/components/CRM/DealDetails.mjs +1 -1
  118. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  119. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  120. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  121. package/dist/components/CRM/NewDealForm.mjs +1 -1
  122. package/dist/components/CRM/index.mjs +1 -1
  123. package/dist/components/CRM/mockData.mjs +1 -1
  124. package/dist/components/Cards/ContentCard.js +1 -2
  125. package/dist/components/Cards/ContentCard.mjs +1 -1
  126. package/dist/components/Cards/CustomerCard.mjs +1 -1
  127. package/dist/components/Cards/EventCard.mjs +1 -1
  128. package/dist/components/Cards/FeatureCard.js +1 -2
  129. package/dist/components/Cards/FeatureCard.mjs +1 -1
  130. package/dist/components/Cards/HeroCard.mjs +1 -1
  131. package/dist/components/Cards/Image.mjs +1 -1
  132. package/dist/components/Cards/PricingCard.mjs +1 -1
  133. package/dist/components/Cards/ProjectCard.mjs +1 -1
  134. package/dist/components/Cards/ServiceCard.mjs +1 -1
  135. package/dist/components/Cards/index.js +4 -5
  136. package/dist/components/Cards/index.mjs +1 -1
  137. package/dist/components/Chat/CAPABILITIES_README.mjs +1 -1
  138. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  139. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  140. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  141. package/dist/components/Chat/ChatMessage.mjs +1 -1
  142. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  143. package/dist/components/Chat/EnhancedChatInterface.mjs +1 -1
  144. package/dist/components/Chat/ai-chat-interface.mjs +3 -1
  145. package/dist/components/Chat/capabilities-config.mjs +1 -1
  146. package/dist/components/Chat/capabilities-data.mjs +1 -1
  147. package/dist/components/Chat/capabilities.mjs +1 -1
  148. package/dist/components/Chat/capability-menu.mjs +1 -1
  149. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  150. package/dist/components/Chat/hooks/useTask.mjs +1 -1
  151. package/dist/components/Chat/index.mjs +1 -1
  152. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  153. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  154. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  155. package/dist/components/DeliveryLead/index.mjs +1 -1
  156. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  157. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  158. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  159. package/dist/components/DigitalColleagues/MainPage.mjs +3 -1
  160. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  161. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +3 -1
  162. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  163. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  164. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  165. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  166. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  167. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  168. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  169. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  170. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  171. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  172. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  173. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  174. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  175. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  176. package/dist/components/HeaderFooter/Header.mjs +1 -1
  177. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  178. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  179. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  180. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  181. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  182. package/dist/components/HeaderFooter/SectionHeading.js +1 -2
  183. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  184. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  185. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  186. package/dist/components/HeaderFooter/index.mjs +1 -1
  187. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  188. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  189. package/dist/components/Heros/HighImpact/index.js +1 -2
  190. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  191. package/dist/components/Heros/LowImpact/index.js +1 -2
  192. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  193. package/dist/components/Heros/MediumImpact/index.js +1 -2
  194. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  195. package/dist/components/Heros/PostHero/index.mjs +1 -1
  196. package/dist/components/Heros/RenderHero.js +1 -2
  197. package/dist/components/Heros/RenderHero.mjs +1 -1
  198. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  199. package/dist/components/Heros/index.js +1 -2
  200. package/dist/components/Heros/index.mjs +1 -1
  201. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  202. package/dist/components/Holidays/CalendarView.mjs +1 -1
  203. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  204. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  205. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  206. package/dist/components/Holidays/index.mjs +1 -1
  207. package/dist/components/Icons/ScrollDownIcon.mjs +3 -1
  208. package/dist/components/Images/DynamicIcon.mjs +1 -1
  209. package/dist/components/Images/IconIndex.mjs +1 -1
  210. package/dist/components/Images/customIconList.mjs +1 -1
  211. package/dist/components/Images/index.mjs +1 -1
  212. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  213. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  214. package/dist/components/Layouts/NewsList.mjs +1 -1
  215. package/dist/components/Layouts/OutputHeaderFooter.js +2 -3
  216. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  217. package/dist/components/Layouts/Print.js +2 -3
  218. package/dist/components/Layouts/Print.mjs +1 -1
  219. package/dist/components/Layouts/SlideShow.js +3 -4
  220. package/dist/components/Layouts/SlideShow.mjs +1 -1
  221. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  222. package/dist/components/Layouts/index.js +5 -6
  223. package/dist/components/Layouts/index.mjs +1 -1
  224. package/dist/components/Menus/Categories.mjs +1 -1
  225. package/dist/components/Menus/Filter.mjs +1 -1
  226. package/dist/components/Menus/Pagination.mjs +1 -1
  227. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  228. package/dist/components/Menus/RelatedContent.mjs +1 -1
  229. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  230. package/dist/components/Menus/SidebarRight.mjs +1 -1
  231. package/dist/components/Menus/index.mjs +1 -1
  232. package/dist/components/Other/AnimatedBorder.mjs +3 -1
  233. package/dist/components/Other/Container.mjs +1 -1
  234. package/dist/components/Other/CustomLink.mjs +1 -1
  235. package/dist/components/Other/PageShape.mjs +1 -1
  236. package/dist/components/Other/ThemeProvider.mjs +1 -1
  237. package/dist/components/Other/index.mjs +1 -1
  238. package/dist/components/Payload/Card/index.mjs +1 -1
  239. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  240. package/dist/components/Payload/Link/index.mjs +1 -1
  241. package/dist/components/Payload/Logo/index.mjs +1 -1
  242. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  243. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  244. package/dist/components/Payload/Media/index.mjs +1 -1
  245. package/dist/components/Payload/PageRange/index.mjs +1 -1
  246. package/dist/components/Payload/Pagination/index.mjs +1 -1
  247. package/dist/components/Payload/RichText/index.js +1 -2
  248. package/dist/components/Payload/RichText/index.mjs +1 -1
  249. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  250. package/dist/components/Payload/RichText/serialize.js +1 -2
  251. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  252. package/dist/components/Payload/index.js +1 -2
  253. package/dist/components/Payload/index.mjs +1 -1
  254. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  255. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  256. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  257. package/dist/components/Projects/EpicFilter.mjs +1 -1
  258. package/dist/components/Projects/EpicsView.mjs +1 -1
  259. package/dist/components/Projects/FileView.mjs +1 -1
  260. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  261. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  262. package/dist/components/Projects/PlanningView.mjs +1 -1
  263. package/dist/components/Projects/ProjectPage.mjs +3 -1
  264. package/dist/components/Projects/ProjectView.mjs +1 -1
  265. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  266. package/dist/components/Projects/TaskCard.mjs +1 -1
  267. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  268. package/dist/components/Projects/TaskSelect.mjs +1 -1
  269. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  270. package/dist/components/Projects/TasksView.mjs +1 -1
  271. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  272. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  273. package/dist/components/Projects/business-units.mjs +1 -1
  274. package/dist/components/Projects/file-list.mjs +1 -1
  275. package/dist/components/Projects/project-card.mjs +1 -1
  276. package/dist/components/Projects/project-form.mjs +1 -1
  277. package/dist/components/Projects/team-card.mjs +1 -1
  278. package/dist/components/Projects/team-switcher-bar.mjs +3 -1
  279. package/dist/components/Projects/test-data.mjs +1 -1
  280. package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +1 -1
  281. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +1 -1
  282. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +1 -1
  283. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +1 -1
  284. package/dist/components/dc-temp/TEAMS_README.mjs +1 -1
  285. package/dist/components/dc-temp/creative.mjs +1 -1
  286. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  287. package/dist/components/dc-temp/enhanced-header.mjs +3 -1
  288. package/dist/components/dc-temp/headerlogo.mjs +1 -1
  289. package/dist/components/dc-temp/icon-mapper.mjs +1 -1
  290. package/dist/components/dc-temp/index.mjs +1 -1
  291. package/dist/components/dc-temp/knowledge-browser.mjs +1 -1
  292. package/dist/components/dc-temp/knowledge-search.mjs +1 -1
  293. package/dist/components/dc-temp/loading.mjs +1 -1
  294. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  295. package/dist/components/dc-temp/mock-data.mjs +1 -1
  296. package/dist/components/dc-temp/sidebar.mjs +3 -1
  297. package/dist/components/dc-temp/utils.mjs +1 -1
  298. package/dist/components/index.js +9 -10
  299. package/dist/components/index.mjs +1 -1
  300. package/dist/components/ui/alert.mjs +1 -1
  301. package/dist/components/ui/avatar.mjs +1 -1
  302. package/dist/components/ui/badge.mjs +1 -1
  303. package/dist/components/ui/breadcrumb.mjs +1 -1
  304. package/dist/components/ui/button.mjs +1 -1
  305. package/dist/components/ui/calendar.mjs +1 -1
  306. package/dist/components/ui/card.mjs +1 -1
  307. package/dist/components/ui/checkbox.mjs +1 -1
  308. package/dist/components/ui/collapsible.mjs +1 -1
  309. package/dist/components/ui/command.mjs +1 -1
  310. package/dist/components/ui/dialog.mjs +1 -1
  311. package/dist/components/ui/dropdown-menu.mjs +1 -1
  312. package/dist/components/ui/hover-card.mjs +1 -1
  313. package/dist/components/ui/index.mjs +1 -1
  314. package/dist/components/ui/input.mjs +1 -1
  315. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  316. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  317. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  318. package/dist/components/ui/label.mjs +1 -1
  319. package/dist/components/ui/pagination.mjs +1 -1
  320. package/dist/components/ui/popover.mjs +1 -1
  321. package/dist/components/ui/progress.mjs +1 -1
  322. package/dist/components/ui/scroll-area.mjs +1 -1
  323. package/dist/components/ui/select.mjs +1 -1
  324. package/dist/components/ui/separator.mjs +1 -1
  325. package/dist/components/ui/sheet.mjs +1 -1
  326. package/dist/components/ui/sidebar.mjs +1 -1
  327. package/dist/components/ui/skeleton.mjs +1 -1
  328. package/dist/components/ui/switch.mjs +1 -1
  329. package/dist/components/ui/tabs.mjs +1 -1
  330. package/dist/components/ui/textarea.mjs +1 -1
  331. package/dist/components/ui/toast.mjs +1 -1
  332. package/dist/components/ui/toaster.mjs +1 -1
  333. package/dist/components/ui/toggle-group.mjs +1 -1
  334. package/dist/components/ui/toggle.mjs +1 -1
  335. package/dist/components/ui/tooltip.mjs +1 -1
  336. package/dist/constants.mjs +1 -1
  337. package/dist/fonts/Manrope-Bold.mjs +1 -1
  338. package/dist/fonts/Manrope-ExtraBold.mjs +1 -1
  339. package/dist/fonts/Manrope-ExtraLight.mjs +1 -1
  340. package/dist/fonts/Manrope-Light.mjs +1 -1
  341. package/dist/fonts/Manrope-Medium.mjs +1 -1
  342. package/dist/fonts/Manrope-Regular.mjs +1 -1
  343. package/dist/fonts/Manrope-SemiBold.mjs +1 -1
  344. package/dist/hooks/index.mjs +1 -1
  345. package/dist/hooks/use-local-storage.mjs +1 -1
  346. package/dist/hooks/use-mobile.mjs +1 -1
  347. package/dist/hooks/use-toast.mjs +1 -1
  348. package/dist/images/cortex-reply-bw.mjs +1 -1
  349. package/dist/images/cortex-reply-dark.mjs +1 -1
  350. package/dist/images/cortex-reply-gradient.mjs +1 -1
  351. package/dist/images/cortex-reply-light.mjs +1 -1
  352. package/dist/images/cortex-reply.mjs +1 -1
  353. package/dist/images/hero/hero-3.mjs +1 -1
  354. package/dist/images/hero/image-hero1.mjs +1 -1
  355. package/dist/images/hero/pattern-1.mjs +1 -1
  356. package/dist/images/hero/pattern-2.mjs +1 -1
  357. package/dist/index.js +11 -12
  358. package/dist/index.mjs +1 -1
  359. package/dist/metafile-cjs.json +1 -1
  360. package/dist/metafile-esm.json +1 -1
  361. package/dist/pages/Blog.js +1 -2
  362. package/dist/pages/Blog.mjs +1 -1
  363. package/dist/pages/Documentation.mjs +3 -1
  364. package/dist/pages/IndexPage.mjs +3 -1
  365. package/dist/pages/Intranet.mjs +1 -1
  366. package/dist/pages/LandingPage.js +3 -4
  367. package/dist/pages/LandingPage.mjs +3 -1
  368. package/dist/pages/Page.js +1 -2
  369. package/dist/pages/Page.mjs +3 -1
  370. package/dist/pages/Publish.js +5 -6
  371. package/dist/pages/Publish.mjs +1 -1
  372. package/dist/pages/Website.js +1 -2
  373. package/dist/pages/Website.mjs +1 -1
  374. package/dist/sections/AboutSection.js +1 -2
  375. package/dist/sections/AboutSection.mjs +1 -1
  376. package/dist/sections/BlogDetail.js +1 -2
  377. package/dist/sections/BlogDetail.mjs +1 -1
  378. package/dist/sections/BlogList.js +2 -3
  379. package/dist/sections/BlogList.mjs +1 -1
  380. package/dist/sections/BlogListSection.mjs +1 -1
  381. package/dist/sections/ContactSection.js +1 -2
  382. package/dist/sections/ContactSection.mjs +1 -1
  383. package/dist/sections/ImageSection.mjs +1 -1
  384. package/dist/sections/MainPageSection.mjs +1 -1
  385. package/dist/sections/PageSections.js +2 -3
  386. package/dist/sections/PageSections.mjs +1 -1
  387. package/dist/sections/PricingSection.js +1 -2
  388. package/dist/sections/PricingSection.mjs +1 -1
  389. package/dist/sections/ServiceDetail.js +1 -2
  390. package/dist/sections/ServiceDetail.mjs +1 -1
  391. package/dist/sections/ServiceDetailSection.js +1 -2
  392. package/dist/sections/ServiceDetailSection.mjs +1 -1
  393. package/dist/sections/ServiceSection.js +1 -2
  394. package/dist/sections/ServiceSection.mjs +1 -1
  395. package/dist/sections/form/index.d.ts +5 -1
  396. package/dist/sections/form/index.js +1 -2
  397. package/dist/sections/form/index.mjs +1 -1
  398. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  399. package/dist/sections/form/server/index.d.ts +2 -0
  400. package/dist/sections/form/server/index.js +4 -0
  401. package/dist/sections/form/server/index.mjs +1 -0
  402. package/dist/sections/index.d.ts +1 -0
  403. package/dist/sections/index.js +3 -4
  404. package/dist/sections/index.mjs +1 -1
  405. package/dist/styles/Colors.mjs +1 -1
  406. package/dist/styles/Typography.mjs +1 -1
  407. package/dist/test-data/capabilities.mjs +1 -1
  408. package/dist/tests/payload.mjs +1 -1
  409. package/dist/utils/AOSInit.mjs +1 -1
  410. package/dist/utils/BankHolidays.mjs +1 -1
  411. package/dist/utils/DaysUtil.mjs +1 -1
  412. package/dist/utils/canUseDOM.mjs +1 -1
  413. package/dist/utils/cn.mjs +1 -1
  414. package/dist/utils/formatDateTime.mjs +1 -1
  415. package/dist/utils/getTableOfContents.mjs +1 -1
  416. package/dist/utils/getURL.mjs +1 -1
  417. package/dist/utils/index.mjs +1 -1
  418. package/dist/utils/setStaggeredDelay.mjs +1 -1
  419. package/dist/utils/useClickableCard.mjs +1 -1
  420. package/package.json +7 -1
  421. package/dist/about-1-ANS44UVM.png +0 -0
  422. package/dist/about-2-NDWHP4QV.png +0 -0
  423. package/dist/about-3-RNUOVF6S.png +0 -0
  424. package/dist/about-4-V5ITRBOZ.png +0 -0
  425. package/dist/chunk-3ALU5XV6.mjs +0 -1
  426. package/dist/chunk-3MKCQLBY.mjs +0 -4
  427. package/dist/chunk-3RJA57BI.mjs +0 -4
  428. package/dist/chunk-3SK6PULC.mjs +0 -4
  429. package/dist/chunk-3TVLETYW.mjs +0 -1
  430. package/dist/chunk-3WPEAKCQ.mjs +0 -4
  431. package/dist/chunk-44QDT35M.mjs +0 -1
  432. package/dist/chunk-4BUBW5TX.mjs +0 -4
  433. package/dist/chunk-5C2TR5P3.mjs +0 -4
  434. package/dist/chunk-5ME75SQ2.mjs +0 -218
  435. package/dist/chunk-6AFX6PFG.mjs +0 -470
  436. package/dist/chunk-6XXAI7IR.mjs +0 -1
  437. package/dist/chunk-7DICAJS4.mjs +0 -1
  438. package/dist/chunk-A24IEDVI.mjs +0 -1
  439. package/dist/chunk-BUC3OG2I.mjs +0 -4
  440. package/dist/chunk-CA7JDZIQ.mjs +0 -4
  441. package/dist/chunk-DBVX4BDP.mjs +0 -4
  442. package/dist/chunk-H4X3VQIN.mjs +0 -4
  443. package/dist/chunk-IB6VPDZQ.mjs +0 -1
  444. package/dist/chunk-IZ3PDOST.mjs +0 -1
  445. package/dist/chunk-KGYX6TIY.mjs +0 -4
  446. package/dist/chunk-KSYES4GX.mjs +0 -1
  447. package/dist/chunk-KUVGGKGR.mjs +0 -4
  448. package/dist/chunk-M6LJ4BNZ.mjs +0 -1
  449. package/dist/chunk-N5SEZED7.mjs +0 -1
  450. package/dist/chunk-OJLQ6G4W.mjs +0 -4
  451. package/dist/chunk-PA3BZDTY.mjs +0 -245
  452. package/dist/chunk-PPZXBKTO.mjs +0 -4
  453. package/dist/chunk-TLBLUYXL.mjs +0 -1
  454. package/dist/chunk-U3ZHU3UY.mjs +0 -1
  455. package/dist/chunk-UG7D3VNG.mjs +0 -1
  456. package/dist/chunk-VBGNLDO6.mjs +0 -4
  457. package/dist/chunk-WV2LZOPM.mjs +0 -1
  458. package/dist/chunk-YX3BAJ2N.mjs +0 -1
  459. package/dist/graphql-NFIL2UYH.mjs +0 -177
  460. package/dist/pattern-1-B7SDCBJ3.png +0 -0
  461. package/dist/waves-6HGOFMRK.jpg +0 -0
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as p}from"./chunk-3U3PZBHQ.mjs";import{a as B}from"./chunk-YVI5URXW.mjs";import{a as I}from"./chunk-M245YHYF.mjs";import{a as R,c as D,d as H,g as E,i as b}from"./chunk-YFAZQYK4.mjs";import{a,b as c,c as m,e as i}from"./chunk-YO3GQYRJ.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as N}from"./chunk-ZUA4KNIR.mjs";import{useState as f}from"react";import{Plus as M,Search as O,File as u,Filter as W}from"lucide-react";import{motion as J,AnimatePresence as K}from"framer-motion";import{jsx as e,jsxs as t}from"react/jsx-runtime";function Q({initialFiles:P=[],onFileAdd:X,onFileEdit:U,onFileDelete:V,onFileClick:$,compactView:g=!1,className:j}){let[n,G]=f(P),[r,y]=f(""),[o,w]=f("all"),[d,L]=f("all"),q=Array.from(new Set(n.map(l=>l.app))),s=n.filter(l=>{let h=l.name.toLowerCase().includes(r.toLowerCase()),x=o==="all"||l.app===o;return h&&x}),S=s.slice(0,10),A=s.filter(l=>l.shared),T=()=>{console.log("Add file clicked")},F=l=>{console.log("Edit file:",l.name),U?.(l)},v=l=>{G(h=>h.filter(x=>x.name!==l.name)),V?.(l.name)},C=l=>{console.log("File clicked:",l.name),$?.(l)},z=()=>{y(""),w("all")};return e("div",{className:"px-2 md:px-4 py-4 space-y-8",children:e(K,{mode:"wait",children:e(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${j||""}`,children:[e(B,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:T},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Total Files"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:n.length}),t("p",{className:"text-xs text-muted-foreground",children:[n.filter(l=>l.shared).length," shared"]})]})]}),t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Storage Used"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:"2.4 GB"}),e("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Recent Activity"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:"12"}),e("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),e(a,{children:e(i,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:t("div",{className:"relative",children:[e(O,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(k,{placeholder:"Search files...",value:r,onChange:l=>y(l.target.value),className:"pl-9"})]})}),t(R,{value:o,onValueChange:w,children:[e(H,{className:"w-full md:w-[180px]",children:e(D,{placeholder:"Filter by app"})}),t(E,{children:[e(b,{value:"all",children:"All Apps"}),q.map(l=>e(b,{value:l,children:l},l))]})]}),(r||o!=="all")&&t(N,{variant:"outline",onClick:z,className:"gap-2",children:[e(W,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[e(I,{activeTab:d,onTabChange:L,tabOptions:[{value:"all",label:`All Files (${s.length})`},{value:"recent",label:`Recent (${S.length})`},{value:"shared",label:`Shared (${A.length})`}],maxWidth:"500px",gridCols:3}),d==="all"&&e(p,{files:s,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g}),d==="recent"&&e(p,{files:S,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g}),d==="shared"&&e(p,{files:A,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g})]}),s.length===0&&e(a,{children:e(i,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[e(u,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:r||o!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),t(N,{onClick:T,className:"gap-2",children:[e(M,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}export{Q as a};
4
+ import{a as p}from"./chunk-3U3PZBHQ.mjs";import{a as B}from"./chunk-2NMVE5M4.mjs";import{a as I}from"./chunk-M245YHYF.mjs";import{a as R,c as D,d as H,g as E,i as b}from"./chunk-YFAZQYK4.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as N}from"./chunk-ZUA4KNIR.mjs";import{a,b as c,c as m,e as i}from"./chunk-YO3GQYRJ.mjs";import{useState as f}from"react";import{Plus as M,Search as O,File as u,Filter as W}from"lucide-react";import{motion as J,AnimatePresence as K}from"framer-motion";import{jsx as e,jsxs as t}from"react/jsx-runtime";function Q({initialFiles:P=[],onFileAdd:X,onFileEdit:U,onFileDelete:V,onFileClick:$,compactView:g=!1,className:j}){let[n,G]=f(P),[r,y]=f(""),[o,w]=f("all"),[d,L]=f("all"),q=Array.from(new Set(n.map(l=>l.app))),s=n.filter(l=>{let h=l.name.toLowerCase().includes(r.toLowerCase()),x=o==="all"||l.app===o;return h&&x}),S=s.slice(0,10),A=s.filter(l=>l.shared),T=()=>{console.log("Add file clicked")},F=l=>{console.log("Edit file:",l.name),U?.(l)},v=l=>{G(h=>h.filter(x=>x.name!==l.name)),V?.(l.name)},C=l=>{console.log("File clicked:",l.name),$?.(l)},z=()=>{y(""),w("all")};return e("div",{className:"px-2 md:px-4 py-4 space-y-8",children:e(K,{mode:"wait",children:e(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${j||""}`,children:[e(B,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:T},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Total Files"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:n.length}),t("p",{className:"text-xs text-muted-foreground",children:[n.filter(l=>l.shared).length," shared"]})]})]}),t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Storage Used"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:"2.4 GB"}),e("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),t(a,{children:[t(c,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(m,{className:"text-sm font-medium",children:"Recent Activity"}),e(u,{className:"h-4 w-4 text-muted-foreground"})]}),t(i,{children:[e("div",{className:"text-2xl font-bold",children:"12"}),e("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),e(a,{children:e(i,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:t("div",{className:"relative",children:[e(O,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(k,{placeholder:"Search files...",value:r,onChange:l=>y(l.target.value),className:"pl-9"})]})}),t(R,{value:o,onValueChange:w,children:[e(H,{className:"w-full md:w-[180px]",children:e(D,{placeholder:"Filter by app"})}),t(E,{children:[e(b,{value:"all",children:"All Apps"}),q.map(l=>e(b,{value:l,children:l},l))]})]}),(r||o!=="all")&&t(N,{variant:"outline",onClick:z,className:"gap-2",children:[e(W,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[e(I,{activeTab:d,onTabChange:L,tabOptions:[{value:"all",label:`All Files (${s.length})`},{value:"recent",label:`Recent (${S.length})`},{value:"shared",label:`Shared (${A.length})`}],maxWidth:"500px",gridCols:3}),d==="all"&&e(p,{files:s,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g}),d==="recent"&&e(p,{files:S,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g}),d==="shared"&&e(p,{files:A,onFileClick:C,onFileEdit:F,onFileDelete:v,showHeader:!g})]}),s.length===0&&e(a,{children:e(i,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[e(u,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:r||o!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),t(N,{onClick:T,className:"gap-2",children:[e(M,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}export{Q as a};
@@ -1 +1 @@
1
- import{f as u}from"./chunk-6LZRVGXZ.mjs";import{a as m}from"./chunk-2QZUKVBA.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{jsx as r,jsxs as h}from"react/jsx-runtime";var B=g=>{let{columns:a,theme:i}=g,y={full:"12",half:"6",oneThird:"4",twoThirds:"8"},b={none:"",line:"border border-primary p-4 rounded-lg"},c=e=>{if(e.type&&e.type==="block"&&e.fields&&(e.fields.blockType==="imageBlock"||e.fields.blockType==="mediaBlock"))return!0;if(e.root&&e.root.children){for(let o of e.root.children)if(c(o))return!0}if(e.children){for(let o of e.children)if(c(o))return!0}return!1},k=(e,o,n)=>{if(o==="none"||n==="full")return{processedRichText:e,heading:null};let l=e,t=null;return e&&e.root&&e.root.children&&e.root.children[0].tag==="h2"&&(l={...e,root:{...e.root,children:e.root.children.slice(1)}},t=e.root.children[0]),{processedRichText:l,heading:t}};return r("div",{className:"my-6",children:r("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",i?.settings?.box?"gap-x-8":"gap-x-16"),children:a&&a.length>0&&a.map((e,o)=>{let{enableLink:n,link:l,richText:t,size:s}=e,{processedRichText:p,heading:f}=k(t,i?.settings?.box||"none",s||"full");return h("div",{className:d(`col-span-4 lg:col-span-${y[s]}`,{"md:col-span-2":s!=="full"},b[s!=="full"&&!c(t)&&i?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${o+1}00`),children:[f&&r("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),p&&r(u,{content:p,enableGutter:!1,className:"rich-text"}),n&&r(m,{...l})]},o)})})})};export{B as a};
1
+ import{f as u}from"./chunk-IUT6JJHY.mjs";import{a as m}from"./chunk-2QZUKVBA.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{jsx as r,jsxs as h}from"react/jsx-runtime";var B=g=>{let{columns:a,theme:i}=g,y={full:"12",half:"6",oneThird:"4",twoThirds:"8"},b={none:"",line:"border border-primary p-4 rounded-lg"},c=e=>{if(e.type&&e.type==="block"&&e.fields&&(e.fields.blockType==="imageBlock"||e.fields.blockType==="mediaBlock"))return!0;if(e.root&&e.root.children){for(let o of e.root.children)if(c(o))return!0}if(e.children){for(let o of e.children)if(c(o))return!0}return!1},k=(e,o,n)=>{if(o==="none"||n==="full")return{processedRichText:e,heading:null};let l=e,t=null;return e&&e.root&&e.root.children&&e.root.children[0].tag==="h2"&&(l={...e,root:{...e.root,children:e.root.children.slice(1)}},t=e.root.children[0]),{processedRichText:l,heading:t}};return r("div",{className:"my-6",children:r("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",i?.settings?.box?"gap-x-8":"gap-x-16"),children:a&&a.length>0&&a.map((e,o)=>{let{enableLink:n,link:l,richText:t,size:s}=e,{processedRichText:p,heading:f}=k(t,i?.settings?.box||"none",s||"full");return h("div",{className:d(`col-span-4 lg:col-span-${y[s]}`,{"md:col-span-2":s!=="full"},b[s!=="full"&&!c(t)&&i?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${o+1}00`),children:[f&&r("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),p&&r(u,{content:p,enableGutter:!1,className:"rich-text"}),n&&r(m,{...l})]},o)})})})};export{B as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-A24EPYUY.mjs";import{a as v,b as p,c as f}from"./chunk-SOLZ4VQH.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":"bg-white"),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
1
+ import{a as g}from"./chunk-A24EPYUY.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as p,c as f}from"./chunk-SOLZ4VQH.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":"bg-white"),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{f as l}from"./chunk-6LZRVGXZ.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-2BR55L74.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
4
+ import{f as l}from"./chunk-IUT6JJHY.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-2BR55L74.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-6LZRVGXZ.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
1
+ import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-IUT6JJHY.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-2QZUKVBA.mjs";import{a as T}from"./chunk-H4X3VQIN.mjs";import{a as S}from"./chunk-X3JZSN3W.mjs";import{a as R}from"./chunk-XGIYNUGC.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
4
+ import{a as y}from"./chunk-2QZUKVBA.mjs";import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as T}from"./chunk-SRUG246N.mjs";import{a as S}from"./chunk-X3JZSN3W.mjs";import{a as R}from"./chunk-XGIYNUGC.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-KN65DDFI.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,u]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,n=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];n&&(n.status=d,l(n))},[l]);return r(P,{onDragEnd:b,children:M("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:u,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
4
+ import{a as m}from"./chunk-CVLUVZR3.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,u]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,n=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];n&&(n.status=d,l(n))},[l]);return r(P,{onDragEnd:b,children:M("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:u,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
@@ -1 +1 @@
1
- import{a as s}from"./chunk-AEBUMA72.mjs";import{a as e}from"./chunk-OM5ZUHCN.mjs";import{a as r}from"./chunk-FMH5CZ7X.mjs";import{a as o}from"./chunk-FMJBJ3HN.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function c({blogs:n,pages:g,categories:p,types:i,base:a}){return t("section",{children:t(o,{children:t("div",{className:"grid",children:m("div",{children:[i&&t(e,{types:i}),t(s,{blogs:n,base:a}),t(r,{pages:g})]})})})})}export{c as a};
1
+ import{a as s}from"./chunk-AEBUMA72.mjs";import{a as r}from"./chunk-FMH5CZ7X.mjs";import{a as e}from"./chunk-OM5ZUHCN.mjs";import{a as o}from"./chunk-FMJBJ3HN.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function c({blogs:n,pages:g,categories:p,types:i,base:a}){return t("section",{children:t(o,{children:t("div",{className:"grid",children:m("div",{children:[i&&t(e,{types:i}),t(s,{blogs:n,base:a}),t(r,{pages:g})]})})})})}export{c as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-C4UPRDGQ.mjs";import{a as l}from"./chunk-FMJBJ3HN.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
1
+ import{a as c}from"./chunk-XI5H6WLY.mjs";import{a as l}from"./chunk-FMJBJ3HN.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
@@ -1 +1 @@
1
- import{a as E}from"./chunk-6YHVVP3S.mjs";import{a as w}from"./chunk-YVI5URXW.mjs";import{a as u,c as v,d as f,g as h,i as l}from"./chunk-YFAZQYK4.mjs";import{a as b}from"./chunk-B4H6T2GP.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as k}from"./chunk-YO3GQYRJ.mjs";import{a as p}from"./chunk-L5JPAKPM.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{useState as x}from"react";import{Plus as U,Move as X,Edit2 as q,Trash2 as G,Check as J,X as K}from"lucide-react";import{Fragment as Q,jsx as s,jsxs as t}from"react/jsx-runtime";var le=({tasks:C,epics:y,sprints:W,onUpdateTask:S,onTaskClick:T,onAddTaskToEpic:D,onAddEpic:P,onUpdateEpic:I,onDeleteEpic:B})=>{let[c,N]=x(null),[m,g]=x(null),[r,n]=x({}),z=e=>{N(e)},A=e=>{e.preventDefault()},V=(e,i)=>{e.preventDefault(),c&&c.epicId!==i&&(S(c.id,{epicId:i}),N(null))},$=e=>C.filter(i=>i.epicId===e),R=e=>{g(e.id),n({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase,progress:e.progress})},M=()=>{m&&r.name&&(I(m,r),g(null),n({}))},O=()=>{g(null),n({})},j=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&B(e)},Y=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,F=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[s(w,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:P}}),s("div",{className:"flex-1",children:s("div",{className:"w-full",children:s("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:y.map(e=>{let i=$(e.id),H=i.reduce((a,L)=>a+L.points,0);return t(k,{className:`flex flex-col ${m===e.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:A,onDrop:a=>V(a,e.id),children:[s("div",{className:"p-4 border-b border-border",children:m===e.id?t("div",{className:"space-y-4",children:[t("div",{className:"flex items-center justify-between",children:[s(p,{value:r.name||"",onChange:a=>n({...r,name:a.target.value}),placeholder:"Epic name",className:"font-semibold"}),t("div",{className:"flex gap-2 ml-2",children:[s(o,{size:"sm",variant:"ghost",onClick:M,className:"p-1 h-8 w-8",children:s(J,{className:"h-4 w-4"})}),s(o,{size:"sm",variant:"ghost",onClick:O,className:"p-1 h-8 w-8",children:s(K,{className:"h-4 w-4"})})]})]}),s(b,{value:r.description||"",onChange:a=>n({...r,description:a.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),t(u,{value:r.confidence||e.confidence,onValueChange:a=>n({...r,confidence:a}),children:[s(f,{className:"text-xs",children:s(v,{})}),t(h,{children:[s(l,{value:"low",children:"Low"}),s(l,{value:"medium",children:"Medium"}),s(l,{value:"high",children:"High"})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t(u,{value:r.phase?.toString()||e.phase.toString(),onValueChange:a=>n({...r,phase:parseInt(a)}),children:[s(f,{className:"text-xs",children:s(v,{})}),s(h,{children:[1,2,3,4,5,6,7,8,9].map(a=>t(l,{value:a.toString(),children:["Phase ",a]},a))})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),s(p,{type:"number",min:"0",max:"100",value:r.progress||e.progress,onChange:a=>n({...r,progress:parseInt(a.target.value)||0}),className:"text-xs"})]})]}):t(Q,{children:[t("div",{className:"flex items-center gap-2 mb-2",children:[s("div",{className:`w-4 h-4 rounded-full ${e.color}`}),s("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),t("div",{className:"flex gap-1",children:[s(o,{size:"sm",variant:"ghost",onClick:()=>R(e),className:"p-1 h-8 w-8",children:s(q,{className:"h-3 w-3"})}),s(o,{size:"sm",variant:"ghost",onClick:()=>j(e.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:s(G,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex flex-wrap gap-2 mb-3",children:[t(d,{className:`text-xs ${F(e.confidence)}`,children:[e.confidence," confidence"]}),t(d,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[i.length," tasks"]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[H," pts"]})]}),e.description&&s("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),t("div",{className:"mb-3",children:[t("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[s("span",{className:"select-none",children:"Progress"}),t("span",{className:"select-none",children:[e.progress,"%"]})]}),s("div",{className:"w-full bg-muted rounded-full h-2",children:s("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),t(o,{onClick:()=>D(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[s(U,{className:"h-4 w-4"}),"Add Task"]})]})}),s("div",{className:"flex-1 p-4 overflow-y-auto",children:s("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${c?"border-primary bg-primary/10":"border-border"}`,children:i.length===0?t("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[s(X,{className:"h-8 w-8 mb-2"}),s("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):i.map(a=>s(E,{task:a,epic:e,onDragStart:z,onTaskClick:T,isCompact:!0},a.id))})})]},e.id)})})})})]})};export{le as a};
1
+ import{a as E}from"./chunk-6YHVVP3S.mjs";import{a as w}from"./chunk-2NMVE5M4.mjs";import{a as u,c as v,d as f,g as h,i as l}from"./chunk-YFAZQYK4.mjs";import{a as b}from"./chunk-B4H6T2GP.mjs";import{a as p}from"./chunk-L5JPAKPM.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as k}from"./chunk-YO3GQYRJ.mjs";import{useState as x}from"react";import{Plus as U,Move as X,Edit2 as q,Trash2 as G,Check as J,X as K}from"lucide-react";import{Fragment as Q,jsx as s,jsxs as t}from"react/jsx-runtime";var le=({tasks:C,epics:y,sprints:W,onUpdateTask:S,onTaskClick:T,onAddTaskToEpic:D,onAddEpic:P,onUpdateEpic:I,onDeleteEpic:B})=>{let[c,N]=x(null),[m,g]=x(null),[r,n]=x({}),z=e=>{N(e)},A=e=>{e.preventDefault()},V=(e,i)=>{e.preventDefault(),c&&c.epicId!==i&&(S(c.id,{epicId:i}),N(null))},$=e=>C.filter(i=>i.epicId===e),R=e=>{g(e.id),n({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase,progress:e.progress})},M=()=>{m&&r.name&&(I(m,r),g(null),n({}))},O=()=>{g(null),n({})},j=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&B(e)},Y=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,F=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[s(w,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:P}}),s("div",{className:"flex-1",children:s("div",{className:"w-full",children:s("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:y.map(e=>{let i=$(e.id),H=i.reduce((a,L)=>a+L.points,0);return t(k,{className:`flex flex-col ${m===e.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:A,onDrop:a=>V(a,e.id),children:[s("div",{className:"p-4 border-b border-border",children:m===e.id?t("div",{className:"space-y-4",children:[t("div",{className:"flex items-center justify-between",children:[s(p,{value:r.name||"",onChange:a=>n({...r,name:a.target.value}),placeholder:"Epic name",className:"font-semibold"}),t("div",{className:"flex gap-2 ml-2",children:[s(o,{size:"sm",variant:"ghost",onClick:M,className:"p-1 h-8 w-8",children:s(J,{className:"h-4 w-4"})}),s(o,{size:"sm",variant:"ghost",onClick:O,className:"p-1 h-8 w-8",children:s(K,{className:"h-4 w-4"})})]})]}),s(b,{value:r.description||"",onChange:a=>n({...r,description:a.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),t(u,{value:r.confidence||e.confidence,onValueChange:a=>n({...r,confidence:a}),children:[s(f,{className:"text-xs",children:s(v,{})}),t(h,{children:[s(l,{value:"low",children:"Low"}),s(l,{value:"medium",children:"Medium"}),s(l,{value:"high",children:"High"})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t(u,{value:r.phase?.toString()||e.phase.toString(),onValueChange:a=>n({...r,phase:parseInt(a)}),children:[s(f,{className:"text-xs",children:s(v,{})}),s(h,{children:[1,2,3,4,5,6,7,8,9].map(a=>t(l,{value:a.toString(),children:["Phase ",a]},a))})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),s(p,{type:"number",min:"0",max:"100",value:r.progress||e.progress,onChange:a=>n({...r,progress:parseInt(a.target.value)||0}),className:"text-xs"})]})]}):t(Q,{children:[t("div",{className:"flex items-center gap-2 mb-2",children:[s("div",{className:`w-4 h-4 rounded-full ${e.color}`}),s("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),t("div",{className:"flex gap-1",children:[s(o,{size:"sm",variant:"ghost",onClick:()=>R(e),className:"p-1 h-8 w-8",children:s(q,{className:"h-3 w-3"})}),s(o,{size:"sm",variant:"ghost",onClick:()=>j(e.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:s(G,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex flex-wrap gap-2 mb-3",children:[t(d,{className:`text-xs ${F(e.confidence)}`,children:[e.confidence," confidence"]}),t(d,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[i.length," tasks"]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[H," pts"]})]}),e.description&&s("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),t("div",{className:"mb-3",children:[t("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[s("span",{className:"select-none",children:"Progress"}),t("span",{className:"select-none",children:[e.progress,"%"]})]}),s("div",{className:"w-full bg-muted rounded-full h-2",children:s("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),t(o,{onClick:()=>D(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[s(U,{className:"h-4 w-4"}),"Add Task"]})]})}),s("div",{className:"flex-1 p-4 overflow-y-auto",children:s("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${c?"border-primary bg-primary/10":"border-border"}`,children:i.length===0?t("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[s(X,{className:"h-8 w-8 mb-2"}),s("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):i.map(a=>s(E,{task:a,epic:e,onDragStart:z,onTaskClick:T,isCompact:!0},a.id))})})]},e.id)})})})})]})};export{le as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-637VXITY.mjs";import{a as d}from"./chunk-YVI5URXW.mjs";import{useState as u}from"react";import{Server as p,Code as g,Users as f,BookOpen as w}from"lucide-react";import{jsx as e,jsxs as n}from"react/jsx-runtime";var v=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:e(w,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:e(p,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:e(g,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:e(f,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function y({documents:a=[],contexts:r=v,onDocumentClick:c=o=>console.log("Document clicked:",o),onDocumentShare:s=o=>console.log("Share document:",o),selectedDocumentId:l}){let[o,m]=u(r[0]);return n("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[n("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[e(d,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),n("div",{className:"mt-6",children:[e("div",{className:"border-b border-border",children:e("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:r.map(t=>n("button",{onClick:()=>m(t),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${o.id===t.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[t.icon,t.label]},t.id))})}),o.description&&e("div",{className:"mt-3 px-1",children:e("p",{className:"text-sm text-muted-foreground",children:o.description})})]})]}),e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:e("div",{className:"h-full rounded-3xl border overflow-hidden",children:e(i,{documents:a,menuConfig:o.menuConfig,onDocumentClick:c,onDocumentShare:s,selectedDocumentId:l})})})]})}export{y as a};
1
+ import{a as i}from"./chunk-637VXITY.mjs";import{a as d}from"./chunk-2NMVE5M4.mjs";import{useState as u}from"react";import{Server as p,Code as g,Users as f,BookOpen as w}from"lucide-react";import{jsx as e,jsxs as n}from"react/jsx-runtime";var v=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:e(w,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:e(p,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:e(g,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:e(f,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function y({documents:a=[],contexts:r=v,onDocumentClick:c=o=>console.log("Document clicked:",o),onDocumentShare:s=o=>console.log("Share document:",o),selectedDocumentId:l}){let[o,m]=u(r[0]);return n("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[n("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[e(d,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),n("div",{className:"mt-6",children:[e("div",{className:"border-b border-border",children:e("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:r.map(t=>n("button",{onClick:()=>m(t),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${o.id===t.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[t.icon,t.label]},t.id))})}),o.description&&e("div",{className:"mt-3 px-1",children:e("p",{className:"text-sm text-muted-foreground",children:o.description})})]})]}),e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:e("div",{className:"h-full rounded-3xl border overflow-hidden",children:e(i,{documents:a,menuConfig:o.menuConfig,onDocumentClick:c,onDocumentShare:s,selectedDocumentId:l})})})]})}export{y as a};
@@ -1 +1 @@
1
- import{a as v}from"./chunk-7A3BV5SJ.mjs";import{a as p}from"./chunk-3OKVKXQT.mjs";import{c as b,d as h}from"./chunk-6LZRVGXZ.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
1
+ import{a as p}from"./chunk-436WKDWG.mjs";import{a as v}from"./chunk-G6ED5Z4J.mjs";import{c as b,d as h}from"./chunk-IUT6JJHY.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-WISC5QJV.mjs";import{a as c}from"./chunk-Q5XT55O3.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as m,useEffect as d}from"react";import{useTheme as S}from"next-themes";import{Moon as N,Sun as y}from"lucide-react";import{PopoverGroup as D}from"@headlessui/react";import{Fragment as H,jsx as e,jsxs as p}from"react/jsx-runtime";function z({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1,wide:b=!1}){let[v,a]=m(!1),[k,n]=m(""),r=["light","dark"],{theme:s,setTheme:w}=S();d(()=>{n(s||"dark")},[s]);let x=()=>{let t=r[(r.indexOf(k)+1)%r.length];n(t),w(t)};return d(()=>{let t=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(H,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${v||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:p("div",{className:l("flex items-center justify-between px-9 py-0",!b&&"container"),children:[e(c,{logoDark:f,logoLight:h}),e(D,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(i,{...t},t.name))}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:p("div",{className:"relative",children:[e(y,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}export{z as a};
4
+ import{a as c}from"./chunk-Q5XT55O3.mjs";import{a as i}from"./chunk-WISC5QJV.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as m,useEffect as d}from"react";import{useTheme as S}from"next-themes";import{Moon as N,Sun as y}from"lucide-react";import{PopoverGroup as D}from"@headlessui/react";import{Fragment as H,jsx as e,jsxs as p}from"react/jsx-runtime";function z({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1,wide:b=!1}){let[v,a]=m(!1),[k,n]=m(""),r=["light","dark"],{theme:s,setTheme:w}=S();d(()=>{n(s||"dark")},[s]);let x=()=>{let t=r[(r.indexOf(k)+1)%r.length];n(t),w(t)};return d(()=>{let t=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(H,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${v||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:p("div",{className:l("flex items-center justify-between px-9 py-0",!b&&"container"),children:[e(c,{logoDark:f,logoLight:h}),e(D,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(i,{...t},t.name))}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:p("div",{className:"relative",children:[e(y,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}export{z as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as i}from"./chunk-WUA65ZZB.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
1
+ import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as i}from"./chunk-L3BLBPSR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-AQLCYCLG.mjs";import{a as W}from"./chunk-KLEXMJR2.mjs";import{a as G}from"./chunk-QQ36F4C4.mjs";import{a as K}from"./chunk-NOHO4XDS.mjs";import{a as H}from"./chunk-BXHNSQWH.mjs";import{a as N}from"./chunk-ORNGKQM7.mjs";import{a as x}from"./chunk-2VZWOBGP.mjs";import{a as B}from"./chunk-HIHXHTK3.mjs";import{a as I}from"./chunk-XHMVS6GT.mjs";import{useState as s}from"react";import{useRouter as $e}from"next/navigation";import{jsx as a,jsxs as ze}from"react/jsx-runtime";function qe({title:Je="",initialTasks:q=[],initialEpics:z=[],initialSprints:J=[],initialProjects:L=[],initialReminders:Q=[],initialColleagues:X=[],initialFiles:Y=[],onAddTask:Le,onUpdateTask:v,onDeleteTask:Qe,onTaskClick:Xe,onAddEpic:Ye,onUpdateEpic:Z,onDeleteEpic:_,onAddTaskToEpic:Ze,onAddSprint:ee,onUpdateSprint:ie,onDeleteSprint:te,onAddProject:ne,onUpdateProject:se,onDeleteProject:ae,onFileAdd:oe,onFileEdit:de,onFileDelete:le,onFileClick:re,onAddReminder:ce,onUpdateReminder:pe,onDeleteReminder:ge,onViewChange:_e,onToggleMobileMenu:me,onTeamClick:ei,onTeamChange:ii,onCopilotClick:ti}){let[c,r]=s(q),[o,k]=s(z),[d,T]=s(J),[A,u]=s(L),[ke,f]=s(Q),[Te,ni]=s(X),[ue,C]=s(Y),[fe,P]=s(!1),[he,w]=s(!1),[p,h]=s(null),[De,R]=s(null),[b,U]=s(null),[l,Se]=s("kanban"),[Ee,ve]=s(!1),F=$e(),Ae=o.filter(e=>e.isSelected).map(e=>e.id),g=d.find(e=>e.isSelected),Ce=c.filter(e=>{let i=Ae.includes(e.epicId);return!g||g.id==="all-tasks"?i:g.id==="backlog"?i&&!e.sprintId:i&&e.sprintId===g.id}),si=e=>Ce.filter(i=>i.status===e),ai=e=>{let i={};return o.forEach(t=>{i[t.id]=e.filter(n=>n.epicId===t.id)}),i},oi=e=>{U(e)},di=e=>{b&&(r(i=>i.map(t=>t.id===b.id?{...t,status:e}:t)),U(null))},M=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};r(t=>[...t,i]),v?.(i.id,i)},m=(e,i)=>{r(t=>t.map(n=>n.id===e?{...n,...i}:n)),v?.(e,i)},Pe=async(e,i)=>{m(e,i)},O=e=>{r(i=>i.filter(t=>t.id!==e)),p?.id===e&&h(null)},we=async e=>{O(e)},Re=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};u(t=>[...t,i]),ne?.(e)},be=(e,i)=>{u(t=>t.map(n=>n.id===e?i.isSelected?(F.push(`/kanban/${e}`),{...n,...i}):{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),se?.(e,i)},Ue=e=>{u(i=>i.filter(t=>t.id!==e)),ae?.(e)},Fe=e=>{let i={...e,id:Date.now().toString(),isSelected:!0};k(t=>[...t,i])},D=()=>{w(!0)},j=(e,i)=>{k(t=>t.map(n=>n.id===e?{...n,...i}:n)),Z?.(e,i)},y=e=>{k(i=>i.filter(t=>t.id!==e)),r(i=>i.filter(t=>t.epicId!==e)),_?.(e)},V=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};T(t=>[...t,i]),ee?.(e)},Me=(e,i)=>{T(t=>t.map(n=>n.id===e?i.isSelected?{...n,...i}:{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),ie?.(e,i)},Oe=e=>{e==="backlog"||e==="all-tasks"||(T(i=>i.filter(t=>t.id!==e)),r(i=>i.map(t=>t.sprintId===e?{...t,sprintId:void 0}:t)),te?.(e))},S=e=>{h(e)},je=e=>{e==="planning"&&window.innerWidth<768||Se(e)},ye=()=>{ve(e=>!e),me?.()},li=()=>{F.push("/")},ri=e=>{console.log("Switching to team:",e)},ci=e=>{console.log("Switching to team:",e)},Ve=e=>{R(e),P(!0)},Ie=()=>{P(!1),R(null)},Be=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};f(t=>[...t,i]),ce?.(e)},Ne=(e,i)=>{f(t=>t.map(n=>n.id===e?{...n,...i}:n)),pe?.(e,i)},xe=e=>{f(i=>i.filter(t=>t.id!==e)),ge?.(e)},Ge=e=>{C(i=>[...i,e]),oe?.(e)},He=e=>{de?.(e)},Ke=e=>{C(i=>i.filter(t=>t.name!==e)),le?.(e)},We=e=>{re?.(e)},pi=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],gi=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},E=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],mi=E.sort((e,i)=>i.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ki=E.length>3,Ti=E.slice(3);return ze(B,{projects:A,epics:o,sprints:d,currentView:l,onUpdateProject:be,onDeleteProject:Ue,onAddProject:Re,onUpdateEpic:j,onDeleteEpic:y,onAddEpic:D,onAddSprint:V,onUpdateSprint:Me,onDeleteSprint:Oe,onViewChange:je,mobileMenuOpen:Ee,onToggleMobileMenu:ye,children:[l==="kanban"&&a("div",{className:"h-full",children:a(K,{initialProjects:A,initialEpics:o,initialSprints:d,initialTasks:c,onAddTask:M,onUpdateTask:m,onDeleteTask:O,onTaskClick:S,onAddEpic:D})}),l==="planning"&&a("div",{className:"hidden md:block h-full",children:a(W,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddSprint:V})}),l==="tasks"&&a("div",{className:"h-full",children:a($,{initialReminders:ke,initialColleagues:Te,onAddReminder:Be,onUpdateReminder:Ne,onDeleteReminder:xe})}),l==="files"&&a("div",{className:"h-full",children:a(I,{initialFiles:ue,onFileAdd:Ge,onFileEdit:He,onFileDelete:Ke,onFileClick:We,compactView:!1})}),l==="epics"&&a("div",{className:"h-full",children:a(G,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddTaskToEpic:Ve,onAddEpic:D,onUpdateEpic:j,onDeleteEpic:y})}),a(x,{isOpen:fe,onClose:Ie,onAddTask:M,epics:o,sprints:d,defaultEpicId:De||void 0}),a(N,{isOpen:he,onClose:()=>w(!1),onAddEpic:Fe}),p&&a(H,{isOpen:!!p,onClose:()=>h(null),task:p,onUpdateTask:Pe,onDeleteTask:we,epics:o,sprints:d})]})}export{qe as a};
1
+ import{a as $}from"./chunk-PXPSM7OQ.mjs";import{a as W}from"./chunk-NZS3XKXU.mjs";import{a as G}from"./chunk-KOXC4RIH.mjs";import{a as K}from"./chunk-TO2UDP5T.mjs";import{a as H}from"./chunk-FOISWNF5.mjs";import{a as N}from"./chunk-ORNGKQM7.mjs";import{a as x}from"./chunk-2VZWOBGP.mjs";import{a as B}from"./chunk-ABGNIQRP.mjs";import{a as I}from"./chunk-FV3W3WL7.mjs";import{useState as s}from"react";import{useRouter as $e}from"next/navigation";import{jsx as a,jsxs as ze}from"react/jsx-runtime";function qe({title:Je="",initialTasks:q=[],initialEpics:z=[],initialSprints:J=[],initialProjects:L=[],initialReminders:Q=[],initialColleagues:X=[],initialFiles:Y=[],onAddTask:Le,onUpdateTask:v,onDeleteTask:Qe,onTaskClick:Xe,onAddEpic:Ye,onUpdateEpic:Z,onDeleteEpic:_,onAddTaskToEpic:Ze,onAddSprint:ee,onUpdateSprint:ie,onDeleteSprint:te,onAddProject:ne,onUpdateProject:se,onDeleteProject:ae,onFileAdd:oe,onFileEdit:de,onFileDelete:le,onFileClick:re,onAddReminder:ce,onUpdateReminder:pe,onDeleteReminder:ge,onViewChange:_e,onToggleMobileMenu:me,onTeamClick:ei,onTeamChange:ii,onCopilotClick:ti}){let[c,r]=s(q),[o,k]=s(z),[d,T]=s(J),[A,u]=s(L),[ke,f]=s(Q),[Te,ni]=s(X),[ue,C]=s(Y),[fe,P]=s(!1),[he,w]=s(!1),[p,h]=s(null),[De,R]=s(null),[b,U]=s(null),[l,Se]=s("kanban"),[Ee,ve]=s(!1),F=$e(),Ae=o.filter(e=>e.isSelected).map(e=>e.id),g=d.find(e=>e.isSelected),Ce=c.filter(e=>{let i=Ae.includes(e.epicId);return!g||g.id==="all-tasks"?i:g.id==="backlog"?i&&!e.sprintId:i&&e.sprintId===g.id}),si=e=>Ce.filter(i=>i.status===e),ai=e=>{let i={};return o.forEach(t=>{i[t.id]=e.filter(n=>n.epicId===t.id)}),i},oi=e=>{U(e)},di=e=>{b&&(r(i=>i.map(t=>t.id===b.id?{...t,status:e}:t)),U(null))},M=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};r(t=>[...t,i]),v?.(i.id,i)},m=(e,i)=>{r(t=>t.map(n=>n.id===e?{...n,...i}:n)),v?.(e,i)},Pe=async(e,i)=>{m(e,i)},O=e=>{r(i=>i.filter(t=>t.id!==e)),p?.id===e&&h(null)},we=async e=>{O(e)},Re=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};u(t=>[...t,i]),ne?.(e)},be=(e,i)=>{u(t=>t.map(n=>n.id===e?i.isSelected?(F.push(`/kanban/${e}`),{...n,...i}):{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),se?.(e,i)},Ue=e=>{u(i=>i.filter(t=>t.id!==e)),ae?.(e)},Fe=e=>{let i={...e,id:Date.now().toString(),isSelected:!0};k(t=>[...t,i])},D=()=>{w(!0)},j=(e,i)=>{k(t=>t.map(n=>n.id===e?{...n,...i}:n)),Z?.(e,i)},y=e=>{k(i=>i.filter(t=>t.id!==e)),r(i=>i.filter(t=>t.epicId!==e)),_?.(e)},V=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};T(t=>[...t,i]),ee?.(e)},Me=(e,i)=>{T(t=>t.map(n=>n.id===e?i.isSelected?{...n,...i}:{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),ie?.(e,i)},Oe=e=>{e==="backlog"||e==="all-tasks"||(T(i=>i.filter(t=>t.id!==e)),r(i=>i.map(t=>t.sprintId===e?{...t,sprintId:void 0}:t)),te?.(e))},S=e=>{h(e)},je=e=>{e==="planning"&&window.innerWidth<768||Se(e)},ye=()=>{ve(e=>!e),me?.()},li=()=>{F.push("/")},ri=e=>{console.log("Switching to team:",e)},ci=e=>{console.log("Switching to team:",e)},Ve=e=>{R(e),P(!0)},Ie=()=>{P(!1),R(null)},Be=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};f(t=>[...t,i]),ce?.(e)},Ne=(e,i)=>{f(t=>t.map(n=>n.id===e?{...n,...i}:n)),pe?.(e,i)},xe=e=>{f(i=>i.filter(t=>t.id!==e)),ge?.(e)},Ge=e=>{C(i=>[...i,e]),oe?.(e)},He=e=>{de?.(e)},Ke=e=>{C(i=>i.filter(t=>t.name!==e)),le?.(e)},We=e=>{re?.(e)},pi=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],gi=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},E=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],mi=E.sort((e,i)=>i.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ki=E.length>3,Ti=E.slice(3);return ze(B,{projects:A,epics:o,sprints:d,currentView:l,onUpdateProject:be,onDeleteProject:Ue,onAddProject:Re,onUpdateEpic:j,onDeleteEpic:y,onAddEpic:D,onAddSprint:V,onUpdateSprint:Me,onDeleteSprint:Oe,onViewChange:je,mobileMenuOpen:Ee,onToggleMobileMenu:ye,children:[l==="kanban"&&a("div",{className:"h-full",children:a(K,{initialProjects:A,initialEpics:o,initialSprints:d,initialTasks:c,onAddTask:M,onUpdateTask:m,onDeleteTask:O,onTaskClick:S,onAddEpic:D})}),l==="planning"&&a("div",{className:"hidden md:block h-full",children:a(W,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddSprint:V})}),l==="tasks"&&a("div",{className:"h-full",children:a($,{initialReminders:ke,initialColleagues:Te,onAddReminder:Be,onUpdateReminder:Ne,onDeleteReminder:xe})}),l==="files"&&a("div",{className:"h-full",children:a(I,{initialFiles:ue,onFileAdd:Ge,onFileEdit:He,onFileDelete:Ke,onFileClick:We,compactView:!1})}),l==="epics"&&a("div",{className:"h-full",children:a(G,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddTaskToEpic:Ve,onAddEpic:D,onUpdateEpic:j,onDeleteEpic:y})}),a(x,{isOpen:fe,onClose:Ie,onAddTask:M,epics:o,sprints:d,defaultEpicId:De||void 0}),a(N,{isOpen:he,onClose:()=>w(!1),onAddEpic:Fe}),p&&a(H,{isOpen:!!p,onClose:()=>h(null),task:p,onUpdateTask:Pe,onDeleteTask:we,epics:o,sprints:d})]})}export{qe as a};
@@ -1 +1 @@
1
- import{f as r}from"./chunk-6LZRVGXZ.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
1
+ import{f as r}from"./chunk-IUT6JJHY.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as r,b as i,c as m,d as l,e as n,f as o}from"./chunk-YO3GQYRJ.mjs";import{b as t}from"./chunk-ZUA4KNIR.mjs";import{motion as p}from"framer-motion";import{Users as u,Bot as f,FolderOpen as v}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({team:s,onOpen:d,className:c}){return e(p.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:c,children:a(r,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[a(i,{children:[e(m,{className:"text-lg",children:s.name}),e(l,{className:"mt-1 text-sm",children:s.description})]}),a(n,{className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{className:"flex items-center justify-between text-sm",children:[a("div",{className:"flex items-center gap-2",children:[e(u,{className:"h-4 w-4 text-blue-500"}),e("span",{children:"Human"})]}),e("span",{className:"font-medium",children:s.humanColleagues})]}),a("div",{className:"flex items-center justify-between text-sm",children:[a("div",{className:"flex items-center gap-2",children:[e(f,{className:"h-4 w-4 text-purple-500"}),e("span",{children:"Digital"})]}),e("span",{className:"font-medium",children:s.digitalColleagues})]})]}),a("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[a("div",{className:"flex items-center gap-2",children:[e(v,{className:"h-4 w-4 text-green-500"}),e("span",{children:"Projects"})]}),e("span",{className:"font-medium",children:s.projects})]})]}),e(o,{className:"flex gap-2",children:e(t,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>d?.(s),children:"View Team"})})]})})}export{y as a};
4
+ import{b as t}from"./chunk-ZUA4KNIR.mjs";import{a as r,b as i,c as m,d as l,e as n,f as o}from"./chunk-YO3GQYRJ.mjs";import{motion as p}from"framer-motion";import{Users as u,Bot as f,FolderOpen as v}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({team:s,onOpen:d,className:c}){return e(p.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:c,children:a(r,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[a(i,{children:[e(m,{className:"text-lg",children:s.name}),e(l,{className:"mt-1 text-sm",children:s.description})]}),a(n,{className:"space-y-4",children:[a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{className:"flex items-center justify-between text-sm",children:[a("div",{className:"flex items-center gap-2",children:[e(u,{className:"h-4 w-4 text-blue-500"}),e("span",{children:"Human"})]}),e("span",{className:"font-medium",children:s.humanColleagues})]}),a("div",{className:"flex items-center justify-between text-sm",children:[a("div",{className:"flex items-center gap-2",children:[e(f,{className:"h-4 w-4 text-purple-500"}),e("span",{children:"Digital"})]}),e("span",{className:"font-medium",children:s.digitalColleagues})]})]}),a("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[a("div",{className:"flex items-center gap-2",children:[e(v,{className:"h-4 w-4 text-green-500"}),e("span",{children:"Projects"})]}),e("span",{className:"font-medium",children:s.projects})]})]}),e(o,{className:"flex gap-2",children:e(t,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>d?.(s),children:"View Team"})})]})})}export{y as a};
@@ -1 +1 @@
1
- import{a as E}from"./chunk-6DEY5ZDD.mjs";import{a as A}from"./chunk-YVI5URXW.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as n}from"./chunk-YO3GQYRJ.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{useState as i}from"react";import{Calendar as K,Plus as Q}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var ne=({tasks:u,epics:B,sprints:v,onUpdateTask:I,onTaskClick:P,onAddSprint:O})=>{let[l,j]=i(["2"]),[c,f]=i(null),[R,o]=i(!1),[b,m]=i(null),g=u.filter(e=>!e.sprintId),$=u.filter(e=>e.sprintId&&l.includes(e.sprintId)),h=[...v].filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()),V=e=>B.find(a=>a.id===e),M=e=>v.find(a=>a.id===e),U=e=>{switch(e){case"high":return"bg-destructive/20 text-destructive";case"medium":return"bg-warning/20 text-warning";case"low":return"bg-success/20 text-success";default:return"bg-muted text-muted-foreground"}},z=e=>e.split(" ").map(a=>a[0]).join("").toUpperCase(),F=e=>{f(e)},x=e=>{e.preventDefault()},N=e=>{m(e)},y=()=>{m(null)},D=(e,a)=>{e.preventDefault(),m(null),c&&(I(c.id,{sprintId:a==="backlog"?void 0:a}),f(null))},L=e=>{e==="backlog"||e==="all-tasks"||j(a=>a.includes(e)?a.filter(r=>r!==e):[...a,e])},H=e=>{O(e),o(!1)},k=({task:e,showSprint:a=!1})=>{let r=V(e.epicId),w=e.sprintId?M(e.sprintId):null,[S,C]=i(!1),q=T=>{T.defaultPrevented||S||P(e)},G=T=>{C(!0),F(e)},J=()=>{C(!1)};return t(n,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${S?"opacity-50 shadow-lg scale-105":""} ${c?.id===e.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:G,onDragEnd:J,onClick:q,children:s("div",{className:"space-y-2",children:[s("div",{className:"flex items-start justify-between",children:[t("h4",{className:"font-medium text-sm text-foreground line-clamp-1 select-none pointer-events-none",children:e.title}),t(d,{className:`text-xs select-none pointer-events-none ${U(e.priority)}`,children:e.priority[0].toUpperCase()})]}),s("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[s("div",{className:"flex items-center gap-1",children:[r&&t("div",{className:`w-2 h-2 rounded-full ${r.color}`}),t("span",{className:"text-muted-foreground truncate select-none",children:r?.name})]}),t("span",{className:"text-muted-foreground select-none",children:z(e.assignee)})]}),a&&w&&s("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[t(K,{className:"h-3 w-3"}),t("span",{className:"select-none",children:w.name})]})]})})};return s("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t(A,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-r from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>o(!0)}}),t("div",{className:"flex-1",children:s("div",{className:"w-full",children:[s("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[t("div",{className:"lg:col-span-1",children:s(n,{className:"p-4 h-full bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N("backlog"),onDragLeave:y,onDrop:e=>D(e,"backlog"),children:[s("div",{className:"flex items-center justify-between mb-4",children:[t("h3",{className:"font-semibold text-foreground select-none",children:"Backlog"}),t(d,{variant:"secondary",className:"bg-muted text-muted-foreground",children:g.length})]}),s("div",{className:`space-y-3 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${b==="backlog"?"border-primary bg-primary/10":"border-border"}`,children:[g.map(e=>t(k,{task:e},e.id)),g.length===0&&t("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),t("div",{className:"lg:col-span-3",children:s("div",{className:"space-y-4",children:[s(n,{className:"p-4 bg-card shadow-sm",children:[s("div",{className:"flex items-center justify-between mb-3",children:[t("h3",{className:"font-semibold text-foreground select-none",children:"Select Sprints to View"}),s(p,{onClick:()=>o(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[t(Q,{className:"h-4 w-4"}),"Add Sprint"]})]}),t("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:h.map(e=>s(p,{variant:l.includes(e.id)?"default":"outline",size:"sm",onClick:()=>L(e.id),className:"text-xs h-8",children:[e.name,e.isActive&&t("span",{className:"ml-1 text-success",children:"\u25CF"})]},e.id))})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(e=>h.find(a=>a.id===e)).filter(Boolean).sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()).map(e=>{let a=$.filter(r=>r.sprintId===e.id);return s(n,{className:"p-4 bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N(e.id),onDragLeave:y,onDrop:r=>D(r,e.id),children:[s("div",{className:"flex items-center justify-between mb-4",children:[s("div",{children:[t("h3",{className:"font-semibold text-foreground select-none",children:e.name}),e.isActive&&t("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),t(d,{variant:"secondary",className:"bg-muted text-muted-foreground",children:a.length})]}),s("div",{className:`space-y-3 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${b===e.id?"border-primary bg-primary/10":"border-border"}`,children:[a.map(r=>t(k,{task:r},r.id)),a.length===0&&t("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})]},e.id)})})," "]})})]}),t(E,{isOpen:R,onClose:()=>o(!1),onAddSprint:H})]})})]})};export{ne as a};
1
+ import{a as E}from"./chunk-6DEY5ZDD.mjs";import{a as A}from"./chunk-2NMVE5M4.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as n}from"./chunk-YO3GQYRJ.mjs";import{useState as i}from"react";import{Calendar as K,Plus as Q}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var ne=({tasks:u,epics:B,sprints:v,onUpdateTask:I,onTaskClick:P,onAddSprint:O})=>{let[l,j]=i(["2"]),[c,f]=i(null),[R,o]=i(!1),[b,m]=i(null),g=u.filter(e=>!e.sprintId),$=u.filter(e=>e.sprintId&&l.includes(e.sprintId)),h=[...v].filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()),V=e=>B.find(a=>a.id===e),M=e=>v.find(a=>a.id===e),U=e=>{switch(e){case"high":return"bg-destructive/20 text-destructive";case"medium":return"bg-warning/20 text-warning";case"low":return"bg-success/20 text-success";default:return"bg-muted text-muted-foreground"}},z=e=>e.split(" ").map(a=>a[0]).join("").toUpperCase(),F=e=>{f(e)},x=e=>{e.preventDefault()},N=e=>{m(e)},y=()=>{m(null)},D=(e,a)=>{e.preventDefault(),m(null),c&&(I(c.id,{sprintId:a==="backlog"?void 0:a}),f(null))},L=e=>{e==="backlog"||e==="all-tasks"||j(a=>a.includes(e)?a.filter(r=>r!==e):[...a,e])},H=e=>{O(e),o(!1)},k=({task:e,showSprint:a=!1})=>{let r=V(e.epicId),w=e.sprintId?M(e.sprintId):null,[S,C]=i(!1),q=T=>{T.defaultPrevented||S||P(e)},G=T=>{C(!0),F(e)},J=()=>{C(!1)};return t(n,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${S?"opacity-50 shadow-lg scale-105":""} ${c?.id===e.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:G,onDragEnd:J,onClick:q,children:s("div",{className:"space-y-2",children:[s("div",{className:"flex items-start justify-between",children:[t("h4",{className:"font-medium text-sm text-foreground line-clamp-1 select-none pointer-events-none",children:e.title}),t(d,{className:`text-xs select-none pointer-events-none ${U(e.priority)}`,children:e.priority[0].toUpperCase()})]}),s("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[s("div",{className:"flex items-center gap-1",children:[r&&t("div",{className:`w-2 h-2 rounded-full ${r.color}`}),t("span",{className:"text-muted-foreground truncate select-none",children:r?.name})]}),t("span",{className:"text-muted-foreground select-none",children:z(e.assignee)})]}),a&&w&&s("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[t(K,{className:"h-3 w-3"}),t("span",{className:"select-none",children:w.name})]})]})})};return s("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t(A,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-r from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>o(!0)}}),t("div",{className:"flex-1",children:s("div",{className:"w-full",children:[s("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[t("div",{className:"lg:col-span-1",children:s(n,{className:"p-4 h-full bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N("backlog"),onDragLeave:y,onDrop:e=>D(e,"backlog"),children:[s("div",{className:"flex items-center justify-between mb-4",children:[t("h3",{className:"font-semibold text-foreground select-none",children:"Backlog"}),t(d,{variant:"secondary",className:"bg-muted text-muted-foreground",children:g.length})]}),s("div",{className:`space-y-3 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${b==="backlog"?"border-primary bg-primary/10":"border-border"}`,children:[g.map(e=>t(k,{task:e},e.id)),g.length===0&&t("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),t("div",{className:"lg:col-span-3",children:s("div",{className:"space-y-4",children:[s(n,{className:"p-4 bg-card shadow-sm",children:[s("div",{className:"flex items-center justify-between mb-3",children:[t("h3",{className:"font-semibold text-foreground select-none",children:"Select Sprints to View"}),s(p,{onClick:()=>o(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[t(Q,{className:"h-4 w-4"}),"Add Sprint"]})]}),t("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:h.map(e=>s(p,{variant:l.includes(e.id)?"default":"outline",size:"sm",onClick:()=>L(e.id),className:"text-xs h-8",children:[e.name,e.isActive&&t("span",{className:"ml-1 text-success",children:"\u25CF"})]},e.id))})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(e=>h.find(a=>a.id===e)).filter(Boolean).sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()).map(e=>{let a=$.filter(r=>r.sprintId===e.id);return s(n,{className:"p-4 bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N(e.id),onDragLeave:y,onDrop:r=>D(r,e.id),children:[s("div",{className:"flex items-center justify-between mb-4",children:[s("div",{children:[t("h3",{className:"font-semibold text-foreground select-none",children:e.name}),e.isActive&&t("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),t(d,{variant:"secondary",className:"bg-muted text-muted-foreground",children:a.length})]}),s("div",{className:`space-y-3 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${b===e.id?"border-primary bg-primary/10":"border-border"}`,children:[a.map(r=>t(k,{task:r},r.id)),a.length===0&&t("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})]},e.id)})})," "]})})]}),t(E,{isOpen:R,onClose:()=>o(!1),onAddSprint:H})]})})]})};export{ne as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as w}from"./chunk-43IUXVGW.mjs";import{a as g}from"./chunk-B4H6T2GP.mjs";import{a as p}from"./chunk-TVZOULLL.mjs";import{b as h}from"./chunk-CSBGSBEU.mjs";import{a as k,b as N,c as S,e as x}from"./chunk-YO3GQYRJ.mjs";import{a as C}from"./chunk-L5JPAKPM.mjs";import{b as u}from"./chunk-ZUA4KNIR.mjs";import{useState as b,useEffect as J}from"react";import{Bot as O,Plus as W,X,Edit as _}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function le({colleague:d,onSave:I,onCancel:A,isLoading:i=!1,title:F,submitLabel:K,cancelLabel:B="Cancel",readOnly:E=!1,availableKnowledgeDocuments:D=[]}){let[e,r]=b({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...d}),[G,Q]=b(""),[j,P]=b(""),[l,T]=b(!E);J(()=>{d&&r(d)},[d]);let R=t=>{t.preventDefault();let s=e.version?parseInt(e.version):0,n=d?(s+1).toString():"1",c={id:e.id||Date.now().toString(),name:e.name,type:"digital",status:"active",joinedDate:e.joinedDate||new Date,lastActive:e.lastActive||new Date,description:e.description,jobDescription:e.jobDescription||"",workInstructions:e.workInstructions||"",capabilities:e.capabilities||[],knowledge:e.knowledge||[],coreKnowledge:e.coreKnowledge||[],version:n,lastUpdated:e.lastUpdated||new Date,isActive:!0};I(c)},f=(t,s,n)=>{if(!s.trim())return;let c=e[t]||[];r({...e,[t]:[...c,s.trim()]}),n("")},U=(t,s)=>{let n=e[t]||[];r({...e,[t]:n.filter((c,v)=>v!==s)})},$=t=>{t.preventDefault(),T(!l)},q=(t,s,n,c,v)=>{let M=e[t]||[];return o("div",{className:"space-y-2",children:[a(p,{children:s}),l&&o("div",{className:"flex gap-2",children:[a(C,{value:n,onChange:m=>c(m.target.value),placeholder:v,onKeyPress:m=>{m.key==="Enter"&&(m.preventDefault(),f(t,n,c))},disabled:i}),a(u,{type:"button",variant:"outline",size:"icon",onClick:()=>f(t,n,c),disabled:i,children:a(W,{className:"h-4 w-4"})})]}),a("div",{className:"flex flex-wrap gap-2",children:M.map((m,y)=>o(h,{className:"gap-1",children:[m,l&&a(u,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>U(t,y),disabled:i,children:a(X,{className:"h-3 w-3"})})]},`${t}-${y}-${m}`))})]})},z=F||(l?d?"Edit Colleague":"Add New Colleague":"View Colleague"),H=K||(d?"Update Colleague":"Add Colleague");return o(k,{className:"m-8 w-full max-w-4xl mx-auto",children:[a(N,{children:o(S,{className:"flex items-center gap-2",children:[a(O,{className:"h-5 w-5"}),z]})}),a(x,{children:o("form",{onSubmit:R,className:"space-y-6",children:[o("div",{className:"space-y-4",children:[o("div",{className:"space-y-2",children:[a(p,{htmlFor:"name",children:"Name *"}),a(C,{id:"name",value:e.name||"",onChange:t=>r({...e,name:t.target.value}),required:!0,disabled:i||!l})]}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"description",children:"Description"}),a(g,{id:"description",value:e.description||"",onChange:t=>r({...e,description:t.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:i||!l})]})]}),o("div",{className:"space-y-4",children:[a("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"jobDescription",children:"Job Description *"}),a(g,{id:"jobDescription",value:e.jobDescription||"",onChange:t=>r({...e,jobDescription:t.target.value}),rows:4,required:e.type==="digital",disabled:i||!l})]}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"workInstructions",children:"Work Instructions"}),a(g,{id:"workInstructions",value:e.workInstructions||"",onChange:t=>r({...e,workInstructions:t.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:i||!l})]}),q("capabilities","Capabilities",j,P,"Add capability"),a(w,{selectedDocuments:e.knowledge||[],onDocumentsChange:t=>r({...e,knowledge:t}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:i||!l,availableDocuments:D}),a(w,{selectedDocuments:e.coreKnowledge||[],onDocumentsChange:t=>r({...e,coreKnowledge:t}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:i||!l,availableDocuments:D})]}),o("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[a(u,{type:"button",variant:"outline",onClick:A,disabled:i,children:l?B:"Close"}),l?a(u,{type:"submit",disabled:i,children:i?"Saving...":H}):o(u,{type:"button",onClick:$,disabled:i,className:"gap-2",children:[a(_,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}export{le as a};
4
+ import{a as w}from"./chunk-SNZ5BAQQ.mjs";import{a as g}from"./chunk-B4H6T2GP.mjs";import{a as p}from"./chunk-TVZOULLL.mjs";import{a as C}from"./chunk-L5JPAKPM.mjs";import{b as u}from"./chunk-ZUA4KNIR.mjs";import{b as h}from"./chunk-CSBGSBEU.mjs";import{a as k,b as N,c as S,e as x}from"./chunk-YO3GQYRJ.mjs";import{useState as b,useEffect as J}from"react";import{Bot as O,Plus as W,X,Edit as _}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function le({colleague:d,onSave:I,onCancel:A,isLoading:i=!1,title:F,submitLabel:K,cancelLabel:B="Cancel",readOnly:E=!1,availableKnowledgeDocuments:D=[]}){let[e,r]=b({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...d}),[G,Q]=b(""),[j,P]=b(""),[l,T]=b(!E);J(()=>{d&&r(d)},[d]);let R=t=>{t.preventDefault();let s=e.version?parseInt(e.version):0,n=d?(s+1).toString():"1",c={id:e.id||Date.now().toString(),name:e.name,type:"digital",status:"active",joinedDate:e.joinedDate||new Date,lastActive:e.lastActive||new Date,description:e.description,jobDescription:e.jobDescription||"",workInstructions:e.workInstructions||"",capabilities:e.capabilities||[],knowledge:e.knowledge||[],coreKnowledge:e.coreKnowledge||[],version:n,lastUpdated:e.lastUpdated||new Date,isActive:!0};I(c)},f=(t,s,n)=>{if(!s.trim())return;let c=e[t]||[];r({...e,[t]:[...c,s.trim()]}),n("")},U=(t,s)=>{let n=e[t]||[];r({...e,[t]:n.filter((c,v)=>v!==s)})},$=t=>{t.preventDefault(),T(!l)},q=(t,s,n,c,v)=>{let M=e[t]||[];return o("div",{className:"space-y-2",children:[a(p,{children:s}),l&&o("div",{className:"flex gap-2",children:[a(C,{value:n,onChange:m=>c(m.target.value),placeholder:v,onKeyPress:m=>{m.key==="Enter"&&(m.preventDefault(),f(t,n,c))},disabled:i}),a(u,{type:"button",variant:"outline",size:"icon",onClick:()=>f(t,n,c),disabled:i,children:a(W,{className:"h-4 w-4"})})]}),a("div",{className:"flex flex-wrap gap-2",children:M.map((m,y)=>o(h,{className:"gap-1",children:[m,l&&a(u,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>U(t,y),disabled:i,children:a(X,{className:"h-3 w-3"})})]},`${t}-${y}-${m}`))})]})},z=F||(l?d?"Edit Colleague":"Add New Colleague":"View Colleague"),H=K||(d?"Update Colleague":"Add Colleague");return o(k,{className:"m-8 w-full max-w-4xl mx-auto",children:[a(N,{children:o(S,{className:"flex items-center gap-2",children:[a(O,{className:"h-5 w-5"}),z]})}),a(x,{children:o("form",{onSubmit:R,className:"space-y-6",children:[o("div",{className:"space-y-4",children:[o("div",{className:"space-y-2",children:[a(p,{htmlFor:"name",children:"Name *"}),a(C,{id:"name",value:e.name||"",onChange:t=>r({...e,name:t.target.value}),required:!0,disabled:i||!l})]}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"description",children:"Description"}),a(g,{id:"description",value:e.description||"",onChange:t=>r({...e,description:t.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:i||!l})]})]}),o("div",{className:"space-y-4",children:[a("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"jobDescription",children:"Job Description *"}),a(g,{id:"jobDescription",value:e.jobDescription||"",onChange:t=>r({...e,jobDescription:t.target.value}),rows:4,required:e.type==="digital",disabled:i||!l})]}),o("div",{className:"space-y-2",children:[a(p,{htmlFor:"workInstructions",children:"Work Instructions"}),a(g,{id:"workInstructions",value:e.workInstructions||"",onChange:t=>r({...e,workInstructions:t.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:i||!l})]}),q("capabilities","Capabilities",j,P,"Add capability"),a(w,{selectedDocuments:e.knowledge||[],onDocumentsChange:t=>r({...e,knowledge:t}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:i||!l,availableDocuments:D}),a(w,{selectedDocuments:e.coreKnowledge||[],onDocumentsChange:t=>r({...e,coreKnowledge:t}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:i||!l,availableDocuments:D})]}),o("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[a(u,{type:"button",variant:"outline",onClick:A,disabled:i,children:l?B:"Close"}),l?a(u,{type:"submit",disabled:i,children:i?"Saving...":H}):o(u,{type:"button",onClick:$,disabled:i,className:"gap-2",children:[a(_,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}export{le as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g}from"./chunk-7EXAS7HK.mjs";import{a as v}from"./chunk-N25B5TQ5.mjs";import{a as y}from"./chunk-5AWZJAK3.mjs";import{a as f}from"./chunk-IN55EBPV.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as k,CheckSquare as A}from"lucide-react";import{useRouter as V}from"next/navigation";import{format as S,parseISO as H}from"date-fns";import{jsx as r,jsxs as t}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:o,currentDate:h,leaveApprovals:w,employees:x,submitLeaveRequest:n,approveLeave:i,rejectLeave:m}){let[a,c]=N("Calendar View"),L=V(),C=!1,d=H(h),l=async e=>{let D=S(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",D),L.push(p.toString()),{success:!0}};if(C)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let u=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:k,current:a==="Request Leave"},{name:"Approve Leave",icon:A,current:a==="Approve Leave"}];return t("div",{className:"container mx-auto p-4 h-full",children:[t("div",{className:"mb-8",children:[t("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>c(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:u.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:u.map(e=>t("a",{onClick:()=>{(e.name!=="Approve Leave"||o.grade==="Manager"||o.grade==="Senior Manager"||o.grade==="Partner")&&c(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&o.grade!=="Manager"&&o.grade!=="Senior Manager"&&o.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:d,setCurrentDate:l,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:d,setCurrentDate:l,holidays:s}),a==="Request Leave"&&r(g,{remainingDays:o.remainingLeaveDays,submitLeaveRequest:e=>n?n(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(v,{leaveRequests:w,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>m?m(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
4
+ import{a as f}from"./chunk-GS2VFNHY.mjs";import{a as g}from"./chunk-7EXAS7HK.mjs";import{a as v}from"./chunk-TZKQXT7Y.mjs";import{a as y}from"./chunk-5AWZJAK3.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as k,CheckSquare as A}from"lucide-react";import{useRouter as V}from"next/navigation";import{format as S,parseISO as H}from"date-fns";import{jsx as r,jsxs as t}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:o,currentDate:h,leaveApprovals:w,employees:x,submitLeaveRequest:n,approveLeave:i,rejectLeave:m}){let[a,c]=N("Calendar View"),L=V(),C=!1,d=H(h),l=async e=>{let D=S(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",D),L.push(p.toString()),{success:!0}};if(C)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let u=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:k,current:a==="Request Leave"},{name:"Approve Leave",icon:A,current:a==="Approve Leave"}];return t("div",{className:"container mx-auto p-4 h-full",children:[t("div",{className:"mb-8",children:[t("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>c(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:u.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:u.map(e=>t("a",{onClick:()=>{(e.name!=="Approve Leave"||o.grade==="Manager"||o.grade==="Senior Manager"||o.grade==="Partner")&&c(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&o.grade!=="Manager"&&o.grade!=="Senior Manager"&&o.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:d,setCurrentDate:l,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:d,setCurrentDate:l,holidays:s}),a==="Request Leave"&&r(g,{remainingDays:o.remainingLeaveDays,submitLeaveRequest:e=>n?n(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(v,{leaveRequests:w,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>m?m(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-6LZRVGXZ.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
1
+ import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-IUT6JJHY.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import{a as u}from"./chunk-KML6U7IE.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as c}from"./chunk-5RTGHMF3.mjs";import{b as t}from"./chunk-CSBGSBEU.mjs";import{a as o,b as i,c as m,d,e as n,f as l}from"./chunk-YO3GQYRJ.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{motion as v}from"framer-motion";import{FileText as C,Share2 as N,Users as x}from"lucide-react";import{jsx as r,jsxs as e}from"react/jsx-runtime";function S({project:a,onOpen:u,onShare:f,className:p}){return r(v.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:p,children:e(o,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[e(i,{children:[e("div",{className:"flex items-center justify-between",children:[r(m,{children:a.name}),e(t,{variant:"outline",className:"rounded-xl",children:["Due ",a.dueDate]})]}),r(d,{children:a.description})]}),e(n,{className:"space-y-4",children:[e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center justify-between text-sm",children:[r("span",{children:"Progress"}),e("span",{children:[a.progress,"%"]})]}),r(c,{value:a.progress,className:"h-2 rounded-xl"})]}),e("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e("div",{className:"flex items-center",children:[r(x,{className:"mr-1 h-4 w-4"}),a.members," members"]}),e("div",{className:"flex items-center",children:[r(C,{className:"mr-1 h-4 w-4"}),a.files," files"]})]})]}),e(l,{className:"flex gap-2",children:[r(s,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>u?.(a),children:"Open Project"}),r(s,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>f?.(a),children:r(N,{className:"h-4 w-4"})})]})]})})}export{S as a};
4
+ import{a as c}from"./chunk-5RTGHMF3.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{b as t}from"./chunk-CSBGSBEU.mjs";import{a as o,b as i,c as m,d,e as n,f as l}from"./chunk-YO3GQYRJ.mjs";import{motion as v}from"framer-motion";import{FileText as C,Share2 as N,Users as x}from"lucide-react";import{jsx as r,jsxs as e}from"react/jsx-runtime";function S({project:a,onOpen:u,onShare:f,className:p}){return r(v.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:p,children:e(o,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[e(i,{children:[e("div",{className:"flex items-center justify-between",children:[r(m,{children:a.name}),e(t,{variant:"outline",className:"rounded-xl",children:["Due ",a.dueDate]})]}),r(d,{children:a.description})]}),e(n,{className:"space-y-4",children:[e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center justify-between text-sm",children:[r("span",{children:"Progress"}),e("span",{children:[a.progress,"%"]})]}),r(c,{value:a.progress,className:"h-2 rounded-xl"})]}),e("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e("div",{className:"flex items-center",children:[r(x,{className:"mr-1 h-4 w-4"}),a.members," members"]}),e("div",{className:"flex items-center",children:[r(C,{className:"mr-1 h-4 w-4"}),a.files," files"]})]})]}),e(l,{className:"flex gap-2",children:[r(s,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>u?.(a),children:"Open Project"}),r(s,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>f?.(a),children:r(N,{className:"h-4 w-4"})})]})]})})}export{S as a};