cortex-react-components 2.8.0 → 2.9.0

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 (194) hide show
  1. package/dist/chunk-2B5LH5XN.mjs +4 -0
  2. package/dist/chunk-2LINLX4S.mjs +4 -0
  3. package/dist/chunk-2RGAV55J.mjs +4 -0
  4. package/dist/chunk-3IVM6KAB.mjs +4 -0
  5. package/dist/chunk-3R75NUYA.mjs +4 -0
  6. package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
  7. package/dist/{chunk-URYIYEGY.mjs → chunk-5BV4MHV6.mjs} +1 -1
  8. package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
  9. package/dist/chunk-6WQXZ6IE.mjs +4 -0
  10. package/dist/chunk-6XUIHSKG.mjs +4 -0
  11. package/dist/chunk-AREQGH47.mjs +4 -0
  12. package/dist/chunk-BHWGOTCJ.mjs +4 -0
  13. package/dist/chunk-CO6AQNZ5.mjs +4 -0
  14. package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
  15. package/dist/{chunk-X57JQVKC.mjs → chunk-ED7T3BDO.mjs} +1 -1
  16. package/dist/chunk-GHZ6CUY3.mjs +4 -0
  17. package/dist/{chunk-6OZUHBYJ.mjs → chunk-GN25OSET.mjs} +1 -1
  18. package/dist/{chunk-KOXC4RIH.mjs → chunk-I5NNEOCF.mjs} +1 -1
  19. package/dist/{chunk-A3YDFYEB.mjs → chunk-LUM6KEWN.mjs} +1 -1
  20. package/dist/{chunk-GLBQHEMQ.mjs → chunk-MO2B5CDW.mjs} +1 -1
  21. package/dist/chunk-MU5WPW4N.mjs +4 -0
  22. package/dist/chunk-NVHQBM66.mjs +4 -0
  23. package/dist/chunk-O46BOA4T.mjs +1 -0
  24. package/dist/{chunk-NZCHFTHJ.mjs → chunk-OYZX5BM4.mjs} +1 -1
  25. package/dist/chunk-PH67DP3M.mjs +4 -0
  26. package/dist/chunk-PWXCBW2H.mjs +4 -0
  27. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  28. package/dist/{chunk-PIOFHZSJ.mjs → chunk-QQFIVSBW.mjs} +1 -1
  29. package/dist/chunk-R6AYIVIR.mjs +6 -0
  30. package/dist/chunk-RHR3YOLG.mjs +4 -0
  31. package/dist/{chunk-DPZHVBGG.mjs → chunk-RRME4EHD.mjs} +1 -1
  32. package/dist/chunk-U67OTPTT.mjs +4 -0
  33. package/dist/chunk-UML2QHEN.mjs +5 -0
  34. package/dist/chunk-VGWDYD6Z.mjs +4 -0
  35. package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
  36. package/dist/{chunk-2GNX22CR.mjs → chunk-XOH2L4XW.mjs} +1 -1
  37. package/dist/{chunk-S4A4VHOI.mjs → chunk-XW52WZ2B.mjs} +1 -1
  38. package/dist/chunk-Z22NSJMF.mjs +4 -0
  39. package/dist/chunk-ZXPDSSCF.mjs +4 -0
  40. package/dist/components/AdvancedComponents/app-header.js +1 -1
  41. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  42. package/dist/components/AdvancedComponents/index.js +1 -1
  43. package/dist/components/AdvancedComponents/index.mjs +1 -1
  44. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  45. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  46. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  47. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  48. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  49. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  50. package/dist/components/Chat/ChatInterface.js +1 -1
  51. package/dist/components/Chat/ChatInterface.mjs +1 -1
  52. package/dist/components/Chat/CopilotInterface.js +1 -1
  53. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  54. package/dist/components/Chat/capability-menu.js +1 -1
  55. package/dist/components/Chat/capability-menu.mjs +1 -1
  56. package/dist/components/Chat/demo-long-messages.js +1 -1
  57. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  58. package/dist/components/Chat/demo-tests.js +1 -1
  59. package/dist/components/Chat/demo-tests.mjs +1 -1
  60. package/dist/components/Chat/demo.js +1 -1
  61. package/dist/components/Chat/demo.mjs +1 -1
  62. package/dist/components/Chat/example-usage.js +1 -1
  63. package/dist/components/Chat/example-usage.mjs +1 -1
  64. package/dist/components/Chat/example-with-vercel-ai.js +1 -1
  65. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  66. package/dist/components/Chat/index.js +1 -1
  67. package/dist/components/Chat/index.mjs +1 -1
  68. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  69. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  70. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  71. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  72. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  73. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  74. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  75. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  76. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  77. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  78. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  79. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  80. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  81. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  82. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  83. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  84. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  85. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  86. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  87. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  88. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  89. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  90. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  91. package/dist/components/DigitalColleagues/document-preview-examples.js +1 -1
  92. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  93. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  94. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  95. package/dist/components/DigitalColleagues/index.js +1 -1
  96. package/dist/components/DigitalColleagues/index.mjs +1 -1
  97. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  98. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  99. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  100. package/dist/components/HeaderFooter/index.mjs +1 -1
  101. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  102. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  103. package/dist/components/Heros/DashboardHero/index.js +1 -1
  104. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  105. package/dist/components/Heros/PostHero/index.mjs +1 -1
  106. package/dist/components/Heros/RenderHero.mjs +1 -1
  107. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  108. package/dist/components/Heros/index.js +1 -1
  109. package/dist/components/Heros/index.mjs +1 -1
  110. package/dist/components/Icons/ScrollDownIcon.js +1 -1
  111. package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
  112. package/dist/components/Layouts/SlideShow.js +1 -1
  113. package/dist/components/Layouts/SlideShow.mjs +1 -1
  114. package/dist/components/Layouts/index.js +1 -1
  115. package/dist/components/Layouts/index.mjs +1 -1
  116. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  117. package/dist/components/Menus/SidebarRight.mjs +1 -1
  118. package/dist/components/Menus/index.mjs +1 -1
  119. package/dist/components/Other/AnimatedBorder.js +1 -1
  120. package/dist/components/Other/AnimatedBorder.mjs +1 -1
  121. package/dist/components/Other/index.mjs +1 -1
  122. package/dist/components/Projects/EpicsView.js +1 -1
  123. package/dist/components/Projects/EpicsView.mjs +1 -1
  124. package/dist/components/Projects/FileView.js +1 -1
  125. package/dist/components/Projects/FileView.mjs +1 -1
  126. package/dist/components/Projects/KanbanBoardView.js +1 -1
  127. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  128. package/dist/components/Projects/PlanningView.js +1 -1
  129. package/dist/components/Projects/PlanningView.mjs +1 -1
  130. package/dist/components/Projects/ProjectPage.js +1 -1
  131. package/dist/components/Projects/ProjectPage.mjs +1 -1
  132. package/dist/components/Projects/ProjectView.js +1 -1
  133. package/dist/components/Projects/ProjectView.mjs +1 -1
  134. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  135. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  136. package/dist/components/Projects/TasksView.js +1 -1
  137. package/dist/components/Projects/TasksView.mjs +1 -1
  138. package/dist/components/Projects/file-list.js +1 -1
  139. package/dist/components/Projects/file-list.mjs +1 -1
  140. package/dist/components/Projects/project-card.js +1 -1
  141. package/dist/components/Projects/project-card.mjs +1 -1
  142. package/dist/components/Projects/team-card.js +1 -1
  143. package/dist/components/Projects/team-card.mjs +1 -1
  144. package/dist/components/dc-temp/creative.js +1 -1
  145. package/dist/components/dc-temp/creative.mjs +1 -1
  146. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  147. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  148. package/dist/components/dc-temp/index.js +1 -1
  149. package/dist/components/dc-temp/index.mjs +1 -1
  150. package/dist/components/index.js +2 -2
  151. package/dist/components/index.mjs +1 -1
  152. package/dist/components/ui/index.mjs +1 -1
  153. package/dist/components/ui/sidebar.mjs +1 -1
  154. package/dist/index.js +2 -2
  155. package/dist/index.mjs +1 -1
  156. package/dist/metafile-cjs.json +1 -1
  157. package/dist/metafile-esm.json +1 -1
  158. package/dist/pages/Blog.mjs +1 -1
  159. package/dist/pages/Documentation.mjs +1 -1
  160. package/dist/pages/IndexPage.mjs +1 -1
  161. package/dist/pages/Intranet.mjs +1 -1
  162. package/dist/pages/LandingPage.mjs +1 -1
  163. package/dist/pages/Page.mjs +1 -1
  164. package/dist/pages/Publish.js +1 -1
  165. package/dist/pages/Publish.mjs +1 -1
  166. package/dist/pages/Website.mjs +1 -1
  167. package/dist/sections/BlogListSection.mjs +1 -1
  168. package/dist/sections/PageSections.mjs +1 -1
  169. package/dist/sections/ServiceSection.mjs +1 -1
  170. package/dist/sections/index.mjs +1 -1
  171. package/package.json +2 -3
  172. package/dist/chunk-2NMVE5M4.mjs +0 -4
  173. package/dist/chunk-2SAKLSZ4.mjs +0 -4
  174. package/dist/chunk-2THNVSE5.mjs +0 -4
  175. package/dist/chunk-3KITWLRN.mjs +0 -4
  176. package/dist/chunk-3PHJWI4Q.mjs +0 -4
  177. package/dist/chunk-A2AEX4YB.mjs +0 -4
  178. package/dist/chunk-AVHFRD6D.mjs +0 -4
  179. package/dist/chunk-BADFWNRL.mjs +0 -4
  180. package/dist/chunk-CBLP4MXP.mjs +0 -4
  181. package/dist/chunk-FRKGQKEM.mjs +0 -4
  182. package/dist/chunk-G3WMXDFV.mjs +0 -5
  183. package/dist/chunk-HME6CJ6L.mjs +0 -1
  184. package/dist/chunk-JHYWAL24.mjs +0 -6
  185. package/dist/chunk-JVUSZPSP.mjs +0 -4
  186. package/dist/chunk-M245YHYF.mjs +0 -4
  187. package/dist/chunk-MNI6AM7Q.mjs +0 -4
  188. package/dist/chunk-O4GULNQE.mjs +0 -4
  189. package/dist/chunk-PEQOQ7BK.mjs +0 -4
  190. package/dist/chunk-RUOYGMOR.mjs +0 -4
  191. package/dist/chunk-UPQQQYZZ.mjs +0 -4
  192. package/dist/chunk-VGARU7ZT.mjs +0 -4
  193. package/dist/chunk-WN2LPOQP.mjs +0 -4
  194. package/dist/chunk-XKM35QQD.mjs +0 -4
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as R}from"./chunk-Z22NSJMF.mjs";import{a as N}from"./chunk-TUI4S4GI.mjs";import{a as K}from"./chunk-EAFH3DTH.mjs";import{a as Y}from"./chunk-6XUIHSKG.mjs";import{a as Z}from"./chunk-6WQXZ6IE.mjs";import{a as _}from"./chunk-CO6AQNZ5.mjs";import{a as ee}from"./chunk-PWXCBW2H.mjs";import{a as X}from"./chunk-BHWGOTCJ.mjs";import{a as U,c as F,d as O,g as I,i as g}from"./chunk-YFAZQYK4.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as H}from"./chunk-ZUA4KNIR.mjs";import{a as u,b as x,c as D,e as p}from"./chunk-YO3GQYRJ.mjs";import{useEffect as Ce,useState as s}from"react";import{Plus as fe,Search as ve,Users as te,Bot as he,User as ye,Filter as we}from"lucide-react";import{motion as xe,AnimatePresence as De}from"motion/react";import{jsx as t,jsxs as l}from"react/jsx-runtime";function Ne({initialColleagues:S,onColleagueAdd:b,onColleagueEdit:L,onColleagueDelete:le,compactView:d=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:oe=[],existingDigitalColleagues:$=[]}){let[n,m]=s(S||[]),[r,j]=s(""),[C,P]=s("all"),[f,B]=s("all"),[y,ne]=s("all"),[M,v]=s(null),[T,w]=s(null);Ce(()=>{m(S||[])},[S]);let[c,a]=s("main"),h=n.filter(e=>{let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email.toLowerCase().includes(r.toLowerCase())||e.role.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription.toLowerCase().includes(r.toLowerCase()),i=C==="all"||e.type==="human"&&e.department===C,V=f==="all"||e.status===f;return o&&i&&V}),q=h.filter(e=>e.type==="human"),z=h.filter(e=>e.type==="digital"),G=()=>{a("typeSelection")},k=e=>{e.type==="digital"&&(v(e),a("form")),console.log("Editing colleague:",e),L?.(e)},A=e=>{e.type==="digital"&&(w(e),a("view"))},se=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills,bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};m(i=>[...i,o]),b?.(o),a("main")},re=e=>{m(o=>[...o,e]),b?.(e),a("main")},de=()=>{v(null),a("form")},W=e=>{M?(m(o=>o.map(i=>i.id===e.id?e:i)),L?.(e)):(m(o=>[...o,e]),b?.(e)),a("main"),v(null)},me=()=>{a("main"),v(null),w(null)},ce=()=>{a("main"),w(null)},Se=()=>{T&&(v(T),w(null),a("form"))},E=e=>{console.log("handling delete colleague",e),m(o=>o.filter(i=>i.id!==e)),le?.(e)},ge=()=>{j(""),P("all"),B("all")},J=()=>{let e=[];return $.forEach(i=>{e.push(...i.knowledge,...i.coreKnowledge)}),n.forEach(i=>{i.type==="digital"&&e.push(...i.knowledge,...i.coreKnowledge)}),e.filter((i,V,ue)=>V===ue.findIndex(pe=>pe.id===i.id))};return c==="typeSelection"?t(Y,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):c==="userSelection"?t(ee,{users:oe,onUserSelect:se,onCancel:()=>a("typeSelection")}):c==="digitalOptions"?t(_,{onCloneExisting:()=>a("digitalClone"),onCreateNew:de,onCancel:()=>a("typeSelection")}):c==="digitalClone"?t(Z,{digitalColleagues:$,onColleagueClone:re,onCancel:()=>a("digitalOptions")}):c==="form"?t(K,{colleague:M||void 0,onSave:W,onCancel:me,availableKnowledgeDocuments:J()}):c==="view"?t(K,{colleague:T||void 0,onSave:W,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:J()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(De,{mode:"wait",children:t(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:l("div",{className:`space-y-6 ${ie||""}`,children:[t(R,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:G}}),l("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l(u,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(te,{className:"h-4 w-4 text-muted-foreground"})]}),l(p,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),l(u,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(ye,{className:"h-4 w-4 text-muted-foreground"})]}),l(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," ","active"]})]})]}),l(u,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(he,{className:"h-4 w-4 text-muted-foreground"})]}),l(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," ","active"]})]})]})]}),t(u,{children:t(p,{className:"pt-6",children:l("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:l("div",{className:"relative",children:[t(ve,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(Q,{placeholder:"Search colleagues...",value:r,onChange:e=>j(e.target.value),className:"pl-9"})]})}),l(U,{value:C,onValueChange:P,children:[t(O,{className:"w-full md:w-[180px]",children:t(F,{placeholder:"Department"})}),l(I,{children:[t(g,{value:"all",children:"All Departments"}),ae.map(e=>t(g,{value:e,children:e},e))]})]}),l(U,{value:f,onValueChange:B,children:[t(O,{className:"w-full md:w-[140px]",children:t(F,{placeholder:"Status"})}),l(I,{children:[t(g,{value:"all",children:"All Status"}),t(g,{value:"active",children:"Active"}),t(g,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&l(H,{variant:"outline",onClick:ge,className:"gap-2",children:[t(we,{className:"h-4 w-4"}),"Clear"]})]})})}),l("div",{className:"space-y-4",children:[t(X,{activeTab:y,onTabChange:ne,tabOptions:[{value:"all",label:`All (${h.length})`},{value:"human",label:`Human (${q.length})`},{value:"digital",label:`Digital (${z.length})`}],maxWidth:"400px",gridCols:3}),y==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:h.map(e=>t(N,{colleague:e,onEdit:k,onDelete:E,onViewDetails:A,compact:d},e.id))}),y==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:q.map(e=>t(N,{colleague:e,onEdit:k,onDelete:E,onViewDetails:A,compact:d},e.id))}),y==="digital"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:z.map(e=>t(N,{colleague:e,onEdit:k,onDelete:E,onViewDetails:A,compact:d},e.id))})]}),h.length===0&&t(u,{children:t(p,{className:"pt-6",children:l("div",{className:"text-center py-8",children:[t(te,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),l(H,{onClick:G,className:"gap-2",children:[t(fe,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{Ne as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as x}from"./chunk-Q2DPE66H.mjs";import{b as C}from"./chunk-ZUA4KNIR.mjs";import{b as h}from"./chunk-CSBGSBEU.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{useState as y,useEffect as B,useMemo as H}from"react";import{motion as m,AnimatePresence as D}from"motion/react";import{ChevronRight as N,ChevronLeft as I,Menu as L,X as M}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";function K({capabilities:n,isOpen:u,onToggle:r,onActionSelect:e,onContextChange:d,colorScheme:l=x,className:w}){let[s,b]=y([]),[v,f]=y([]),c=s[s.length-1],k=c?.children||n,z=(i,p)=>{switch(i.type){case"category":return l.categories[p%l.categories.length];case"list":return l.lists[p%l.lists.length];case"item":return l.items[p%l.items.length];default:return l.primary}},g=H(()=>({path:s,selectedItems:v,filters:{}}),[s,v]);B(()=>{d&&d(g)},[g,d]);let P=i=>{i.type==="category"||i.type==="list"?b([...s,i]):i.type==="item"&&f([...v,i])},A=()=>{b(s.slice(0,-1))},S=i=>{b(s.slice(0,i+1))},E=()=>c?.actions?c.actions:[];return u?o("div",{className:a("w-full",w),children:[o("div",{className:"flex items-center justify-between mb-3",children:[o("div",{className:"flex items-center gap-2",children:[s.length>0&&t(m.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:A,className:a("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:t(I,{className:a("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),t("h4",{className:"font-medium text-sm",children:c?.name||"Capabilities"})]}),t(m.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:r,className:a("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:t(M,{className:a("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),s.length>0&&o("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[t(m.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>b([]),className:a("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:o("span",{className:"relative",children:["Capabilities",t("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),s.map((i,p)=>o("div",{className:"flex items-center gap-1",children:[t(N,{className:"h-2 w-2"}),t(m.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>S(p),className:a("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:o("span",{className:"relative",children:[i.name,t("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},i.id))]}),t("div",{className:"max-h-40 overflow-y-auto",children:t(D,{mode:"wait",children:t(m.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:c?.type==="list"&&c.data?t(R,{data:c.data,onItemSelect:i=>f([...v,i]),colorScheme:l}):t(T,{capabilities:k,onSelect:P,colorScheme:l})},c?.id||"root")})})]}):o(C,{onClick:r,size:"sm",variant:"outline",className:"rounded-full",children:[t(L,{className:"h-4 w-4"}),t("span",{className:"ml-2",children:"Capabilities"})]})}function T({capabilities:n,onSelect:u,colorScheme:r}){return t("div",{className:"flex flex-wrap gap-2",children:n.map((e,d)=>t(G,{capability:e,onClick:()=>u(e),color:r.categories[d%r.categories.length]},e.id))})}function G({capability:n,onClick:u,selected:r,color:e}){return o(m.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:a("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",r&&"border-primary bg-accent scale-105"),onClick:u,children:[t("div",{className:a("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",e)}),o("span",{className:"truncate relative",children:[n.name,t("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(n.children||n.data)&&t(N,{className:a("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),n.type==="list"&&n.data&&t(h,{variant:"secondary",className:a("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:n.data.length})]})}function R({data:n,onItemSelect:u,colorScheme:r}){return t("div",{className:"flex flex-wrap gap-2",children:n.map((e,d)=>o(m.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:a("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>u(e),children:[t("div",{className:a("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",r.items[d%r.items.length])}),o("div",{className:"flex-1 min-w-0",children:[o("span",{className:"truncate relative font-medium",children:[e.title,t("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),e.subtitle&&t("div",{className:a("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:e.subtitle})]}),e.value&&t(h,{variant:"secondary",className:a("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.value})]},e.id))})}export{K as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
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"motion/react";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};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as b}from"./chunk-XOH2L4XW.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-O46BOA4T.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as r}from"react";import{motion as fe,AnimatePresence as he}from"motion/react";import{Users as ye}from"lucide-react";import{jsx as n,jsxs as Ce}from"react/jsx-runtime";function Le({aiConfig:w,useCustomChat:F,enableAI:D=!0,messages:T=[],businessUnits:B=[],capabilities:R=[],sidebarItems:x=[],notifications:N=[],sessions:M=[],onNewChat:A,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=p=>console.log("Search query:",p),initialTeam:z="design",currentSession:m=null,showCapabilities:ve=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=n(ye,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let p={...w,onError:e=>{i?.setMessages(t=>[...t,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:e.message}]}]),console.error("Error in CopilotInterface:",e)}},Y=me(p||{}),i=D?F||Y:null,[Z,u]=r(""),[_,C]=r(!1),j=i?.messages||T,l=Z,ee=i?.status==="submitted"||_,se=i?.addToolResult?(e,t,s)=>{i.addToolResult({tool:t,toolCallId:e,output:s}),i.sendMessage()}:()=>{},o=B||[],te={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ie,ne]=r(()=>o.length===0?te:o.find(e=>e.id===z)||o[0]),[a,c]=r([]),[oe,ae]=r(!1),re=e=>{if(!e||!f)return;let t=[];Array.from(e).forEach(s=>{if(s.size>h*1024*1024){alert(`File ${s.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(d=>s.type.match(d))){alert(`File type ${s.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:s,status:"pending",progress:0};if(s.type.startsWith("image/")){let d=new FileReader;d.onload=ue=>{c(ge=>ge.map(g=>g.id===U.id?{...g,preview:ue.target?.result}:g))},d.readAsDataURL(s)}t.push(U)}),c(s=>[...s,...t])},le=e=>{c(t=>t.filter(s=>s.id!==e))},v=()=>{if(!(!l.trim()&&a.length===0)){if(i){let e=a.length>0?ce(a.map(t=>t.file)):void 0;i.sendMessage({text:l,files:e},{body:{timestamp:Date.now()}}),u("")}else console.log("Message to send:",l),console.log("Files to upload:",a),u(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},ce=e=>{let t=new DataTransfer;return e.forEach(s=>t.items.add(s)),t.files},de=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),v())},pe=e=>{u(e)};return n(b,{sidebarItems:x||[],title:W,notifications:N||[],businessUnits:o,currentBusinessUnit:ie,onBusinessUnitChange:e=>{e&&(ne(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:n(he,{mode:"wait",children:n(fe.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:Ce("div",{className:"h-full flex",children:[n("div",{className:"w-80 flex-shrink-0 h-full p-2",children:n(I,{sessions:M||[],currentSession:m,teams:o,onNewChat:A,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),n("div",{className:"flex-1 h-full p-2",children:n(S,{messages:j||[],input:l,isTyping:ee,currentSessionTitle:m?.title,capabilities:R||[],onInputChange:pe,addToolResult:se,onSendMessage:v,onKeyPress:de,fileUploads:a,isDragOver:oe,enableFileUpload:f,onFileUpload:re,onRemoveFile:le,onDragOver:ae})})]})},"chat-interface")})})}export{Le as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as c}from"./chunk-VGWDYD6Z.mjs";import{a as d}from"./chunk-Z22NSJMF.mjs";import{a as m,f as n,g as r,i as s,j as l}from"./chunk-3UMMMQEH.mjs";import{useState as f}from"react";import{motion as x,AnimatePresence as v}from"motion/react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({teams:o=[],onCreateTeam:p,onTeamOpen:g}){let[u,i]=f(!1),y=()=>{i(!0),p?.()},T=t=>{g?.(t)};return a("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(v,{mode:"wait",children:a(x.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[e(d,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:y}}),a("section",{className:"space-y-4 mt-8",children:[e("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),o.length===0?a("div",{className:"text-center py-12",children:[e("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),e("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to be added to an existing one."})]}):e("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:o.map(t=>e(c,{team:t,onOpen:T},t.id))})]})]},"teams-index-view")}),e(m,{open:u,onOpenChange:i,children:a(n,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[a(r,{children:[e(s,{children:"Create New Team"}),e(l,{children:"Set up a new team to collaborate with colleagues on projects."})]}),e("div",{className:"p-6 text-center text-muted-foreground",children:e("p",{children:"Team creation form coming soon..."})})]})})]})}export{w as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-ZFUP5NVF.mjs";import{a as f}from"./chunk-7GSXNSLD.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
4
+ import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-PXLSH6S2.mjs";import{a as f}from"./chunk-7GSXNSLD.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-2NMVE5M4.mjs";import{a as l}from"./chunk-O4GULNQE.mjs";import{useState as u}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function p({documents:a=[],contexts:d=[],onDocumentClick:i=o=>console.log("Document clicked:",o),onDocumentShare:m=o=>console.log("Share document:",o),onLoadDocumentContent:g,selectedDocumentId:c}){let[o,s]=u(d[0]);return!d||d.length===0?t("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[e("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:e(r,{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")}})}),e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):t("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[t("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[e(r,{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")}}),t("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:d.map(n=>t("button",{onClick:()=>s(n),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===n.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[n.icon,n.label]},n.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(l,{documents:a,menuConfig:o.menuConfig,onDocumentClick:i,onDocumentShare:m,selectedDocumentId:c})})})]})}export{p as a};
1
+ import{a as r}from"./chunk-Z22NSJMF.mjs";import{a as l}from"./chunk-ZXPDSSCF.mjs";import{useState as u}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function p({documents:a=[],contexts:d=[],onDocumentClick:i=o=>console.log("Document clicked:",o),onDocumentShare:m=o=>console.log("Share document:",o),onLoadDocumentContent:g,selectedDocumentId:c}){let[o,s]=u(d[0]);return!d||d.length===0?t("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[e("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:e(r,{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")}})}),e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):t("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[t("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[e(r,{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")}}),t("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:d.map(n=>t("button",{onClick:()=>s(n),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===n.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[n.icon,n.label]},n.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(l,{documents:a,menuConfig:o.menuConfig,onDocumentClick:i,onDocumentShare:m,selectedDocumentId:c})})})]})}export{p as a};
@@ -1 +1 @@
1
- import{a as I,c as T,d as F,g as $,i as M}from"./chunk-YFAZQYK4.mjs";import{a as w}from"./chunk-B4H6T2GP.mjs";import{b as _}from"./chunk-ZFUP5NVF.mjs";import{a as l}from"./chunk-L5JPAKPM.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as S}from"./chunk-YO3GQYRJ.mjs";import{useState as d}from"react";import{X as De,Plus as O,Edit2 as L,Trash2 as R,Calendar as K,Kanban as Pe,FileText as je,FolderOpen as V,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as H,jsx as e,jsxs as t}from"react/jsx-runtime";var ee=({projects:g,epics:ae,sprints:te,currentView:b,onUpdateProject:U,onDeleteProject:se,onAddProject:ne,onUpdateEpic:X,onDeleteEpic:ie,onAddEpic:re,onAddSprint:le,onUpdateSprint:q,onDeleteSprint:oe,onViewChange:h,mobileMenuOpen:G,onToggleMobileMenu:de})=>{let[o,u]=d(null),[k,C]=d(null),[D,P]=d(null),[j,E]=d(null),[x,y]=d({name:"",description:""}),[r,c]=d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,v]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[ce,A]=d(!1),[me,z]=d(!1),[f,B]=d({name:"",description:""}),[p,N]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],J=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],Q=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],ue=a=>{C(a.id),y({name:a.name,description:a.description||""})},ve=()=>{k&&x.name.trim()&&(U(k,{name:x.name.trim(),description:x.description.trim()}),C(null))},ge=()=>{C(null),y({name:"",description:""})},be=()=>{f.name.trim()&&(ne({name:f.name.trim(),description:f.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{U(a,{isSelected:!0})},xe=a=>{P(a.id),c({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},fe=()=>{D&&r.name.trim()&&(X(D,{name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:new Date(r.startDate),endDate:new Date(r.endDate),progress:r.progress}),P(null))},Ne=()=>{P(null),c({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},ye=a=>{E(a.id),v({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},we=()=>{j&&m.name.trim()&&(q(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},Se=()=>{E(null),v({name:"",description:"",startDate:"",endDate:"",isActive:!1})},ke=()=>{p.name.trim()&&(le({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),N({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},Ce=a=>{q(a,{isSelected:!0})},W=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Y=a=>{let s=J.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Medium",color:"text-warning"}},Z=a=>{let s=Q.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Phase 1",color:"text-primary"}};return t(H,{children:[t("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${G?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"border-b border-sidebar-border",children:[t("button",{onClick:()=>{h("kanban"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[e(Pe,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),t("button",{onClick:()=>{h("planning"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),t("button",{onClick:()=>u(o==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[e(V,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),t("button",{onClick:()=>{h("epics"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[e(Ee,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),t("button",{onClick:()=>u(o==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[e(Ae,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),t("button",{onClick:()=>{h("files"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[e(je,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),t("button",{onClick:()=>{h("tasks"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),G&&e("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:de}),o&&t(H,{children:[e("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>u(null)}),t("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[t("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[t("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="files"&&"Files"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>u(null),children:e(De,{className:"h-4 w-4"})})]}),t("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Projects"}),t(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),ce&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:f.name,onChange:a=>B(s=>({...s,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:f.description,onChange:a=>B(s=>({...s,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:be,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:g.map(a=>e("div",{className:"border rounded p-2",children:k===a.id?t("div",{className:"space-y-2",children:[e(l,{value:x.name,onChange:s=>y(n=>({...n,name:s.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:x.description,onChange:s=>y(n=>({...n,description:s.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ve,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ge,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>he(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(V,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-1",children:a.description}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ue(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Epics"}),t(i,{size:"sm",onClick:re,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:D===a.id?t("div",{className:"space-y-3",children:[e(l,{value:r.name,onChange:s=>c(n=>({...n,name:s.target.value})),placeholder:"Epic name",className:"text-sm"}),e(w,{value:r.description,onChange:s=>c(n=>({...n,description:s.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),t("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(s=>e("button",{onClick:()=>c(n=>({...n,color:s})),className:`w-6 h-6 rounded-full ${s} ${r.color===s?"ring-2 ring-ring":""}`},s))})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),t(I,{value:r.confidence,onValueChange:s=>c(n=>({...n,confidence:s})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:J.map(s=>e(M,{value:s.value,children:e("span",{className:s.color,children:s.label})},s.value))})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),t(I,{value:r.phase.toString(),onValueChange:s=>c(n=>({...n,phase:parseInt(s)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:Q.map(s=>e(M,{value:s.value.toString(),children:e("span",{className:s.color,children:s.label})},s.value))})]})]})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(l,{type:"date",value:r.startDate,onChange:s=>c(n=>({...n,startDate:s.target.value})),className:"text-xs h-8"})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(l,{type:"date",value:r.endDate,onChange:s=>c(n=>({...n,endDate:s.target.value})),className:"text-xs h-8"})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(l,{type:"number",min:"0",max:"100",value:r.progress,onChange:s=>c(n=>({...n,progress:parseInt(s.target.value)||0})),className:"text-xs h-8"})]}),t("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:fe,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Ne,className:"text-xs",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>X(a.id,{isSelected:!a.isSelected}),children:[t("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-2",children:a.description}),t("div",{className:"space-y-1 mb-2",children:[t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Confidence:"}),e("span",{className:Y(a.confidence).color,children:Y(a.confidence).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Phase:"}),e("span",{className:Z(a.phase).color,children:Z(a.phase).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Timeline:"}),t("span",{className:"text-foreground",children:[W(a.startDate)," - ",W(a.endDate)]})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Progress:"}),t("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-muted rounded-full",children:e("div",{className:"h-2 bg-primary rounded-full",style:{width:`${a.progress}%`}})}),t("span",{className:"text-foreground",children:[a.progress,"%"]})]})]})]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>xe(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),t(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:p.name,onChange:a=>N(s=>({...s,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:p.startDate,onChange:a=>N(s=>({...s,startDate:a.target.value})),className:"text-xs"}),e(l,{type:"date",value:p.endDate,onChange:a=>N(s=>({...s,endDate:a.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>N(s=>({...s,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ke,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?t("div",{className:"space-y-2",children:[e(l,{value:m.name,onChange:s=>v(n=>({...n,name:s.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&t(H,{children:[t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:m.startDate,onChange:s=>v(n=>({...n,startDate:s.target.value})),className:"text-xs"}),e(l,{type:"date",value:m.endDate,onChange:s=>v(n=>({...n,endDate:s.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:s=>v(n=>({...n,isActive:s.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:we,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Se,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Ce(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(K,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&t("p",{className:"text-xs text-muted-foreground mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ye(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Xe=g=>e(_,{children:t("div",{className:"flex w-full",children:[e("div",{className:"hidden md:block w-12 fixed h-full",children:e(ee,{...g})}),e("div",{className:"md:hidden",children:e(ee,{...g})}),e("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:e("div",{className:"w-full",children:g.children})})]})});export{Xe as a};
1
+ import{a as I,c as T,d as F,g as $,i as M}from"./chunk-YFAZQYK4.mjs";import{a as w}from"./chunk-B4H6T2GP.mjs";import{b as _}from"./chunk-PXLSH6S2.mjs";import{a as l}from"./chunk-L5JPAKPM.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as S}from"./chunk-YO3GQYRJ.mjs";import{useState as d}from"react";import{X as De,Plus as O,Edit2 as L,Trash2 as R,Calendar as K,Kanban as Pe,FileText as je,FolderOpen as V,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as H,jsx as e,jsxs as t}from"react/jsx-runtime";var ee=({projects:g,epics:ae,sprints:te,currentView:b,onUpdateProject:U,onDeleteProject:se,onAddProject:ne,onUpdateEpic:X,onDeleteEpic:ie,onAddEpic:re,onAddSprint:le,onUpdateSprint:q,onDeleteSprint:oe,onViewChange:h,mobileMenuOpen:G,onToggleMobileMenu:de})=>{let[o,u]=d(null),[k,C]=d(null),[D,P]=d(null),[j,E]=d(null),[x,y]=d({name:"",description:""}),[r,c]=d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,v]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[ce,A]=d(!1),[me,z]=d(!1),[f,B]=d({name:"",description:""}),[p,N]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],J=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],Q=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],ue=a=>{C(a.id),y({name:a.name,description:a.description||""})},ve=()=>{k&&x.name.trim()&&(U(k,{name:x.name.trim(),description:x.description.trim()}),C(null))},ge=()=>{C(null),y({name:"",description:""})},be=()=>{f.name.trim()&&(ne({name:f.name.trim(),description:f.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{U(a,{isSelected:!0})},xe=a=>{P(a.id),c({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},fe=()=>{D&&r.name.trim()&&(X(D,{name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:new Date(r.startDate),endDate:new Date(r.endDate),progress:r.progress}),P(null))},Ne=()=>{P(null),c({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},ye=a=>{E(a.id),v({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},we=()=>{j&&m.name.trim()&&(q(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},Se=()=>{E(null),v({name:"",description:"",startDate:"",endDate:"",isActive:!1})},ke=()=>{p.name.trim()&&(le({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),N({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},Ce=a=>{q(a,{isSelected:!0})},W=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Y=a=>{let s=J.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Medium",color:"text-warning"}},Z=a=>{let s=Q.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Phase 1",color:"text-primary"}};return t(H,{children:[t("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${G?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"border-b border-sidebar-border",children:[t("button",{onClick:()=>{h("kanban"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[e(Pe,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),t("button",{onClick:()=>{h("planning"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),t("button",{onClick:()=>u(o==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[e(V,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),t("button",{onClick:()=>{h("epics"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[e(Ee,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),t("button",{onClick:()=>u(o==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[e(Ae,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),t("button",{onClick:()=>{h("files"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[e(je,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),t("button",{onClick:()=>{h("tasks"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),G&&e("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:de}),o&&t(H,{children:[e("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>u(null)}),t("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[t("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[t("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="files"&&"Files"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>u(null),children:e(De,{className:"h-4 w-4"})})]}),t("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Projects"}),t(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),ce&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:f.name,onChange:a=>B(s=>({...s,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:f.description,onChange:a=>B(s=>({...s,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:be,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:g.map(a=>e("div",{className:"border rounded p-2",children:k===a.id?t("div",{className:"space-y-2",children:[e(l,{value:x.name,onChange:s=>y(n=>({...n,name:s.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:x.description,onChange:s=>y(n=>({...n,description:s.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ve,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ge,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>he(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(V,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-1",children:a.description}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ue(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Epics"}),t(i,{size:"sm",onClick:re,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:D===a.id?t("div",{className:"space-y-3",children:[e(l,{value:r.name,onChange:s=>c(n=>({...n,name:s.target.value})),placeholder:"Epic name",className:"text-sm"}),e(w,{value:r.description,onChange:s=>c(n=>({...n,description:s.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),t("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(s=>e("button",{onClick:()=>c(n=>({...n,color:s})),className:`w-6 h-6 rounded-full ${s} ${r.color===s?"ring-2 ring-ring":""}`},s))})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),t(I,{value:r.confidence,onValueChange:s=>c(n=>({...n,confidence:s})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:J.map(s=>e(M,{value:s.value,children:e("span",{className:s.color,children:s.label})},s.value))})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),t(I,{value:r.phase.toString(),onValueChange:s=>c(n=>({...n,phase:parseInt(s)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:Q.map(s=>e(M,{value:s.value.toString(),children:e("span",{className:s.color,children:s.label})},s.value))})]})]})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(l,{type:"date",value:r.startDate,onChange:s=>c(n=>({...n,startDate:s.target.value})),className:"text-xs h-8"})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(l,{type:"date",value:r.endDate,onChange:s=>c(n=>({...n,endDate:s.target.value})),className:"text-xs h-8"})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(l,{type:"number",min:"0",max:"100",value:r.progress,onChange:s=>c(n=>({...n,progress:parseInt(s.target.value)||0})),className:"text-xs h-8"})]}),t("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:fe,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Ne,className:"text-xs",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>X(a.id,{isSelected:!a.isSelected}),children:[t("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-2",children:a.description}),t("div",{className:"space-y-1 mb-2",children:[t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Confidence:"}),e("span",{className:Y(a.confidence).color,children:Y(a.confidence).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Phase:"}),e("span",{className:Z(a.phase).color,children:Z(a.phase).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Timeline:"}),t("span",{className:"text-foreground",children:[W(a.startDate)," - ",W(a.endDate)]})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Progress:"}),t("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-muted rounded-full",children:e("div",{className:"h-2 bg-primary rounded-full",style:{width:`${a.progress}%`}})}),t("span",{className:"text-foreground",children:[a.progress,"%"]})]})]})]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>xe(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),t(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:p.name,onChange:a=>N(s=>({...s,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:p.startDate,onChange:a=>N(s=>({...s,startDate:a.target.value})),className:"text-xs"}),e(l,{type:"date",value:p.endDate,onChange:a=>N(s=>({...s,endDate:a.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>N(s=>({...s,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ke,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?t("div",{className:"space-y-2",children:[e(l,{value:m.name,onChange:s=>v(n=>({...n,name:s.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&t(H,{children:[t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:m.startDate,onChange:s=>v(n=>({...n,startDate:s.target.value})),className:"text-xs"}),e(l,{type:"date",value:m.endDate,onChange:s=>v(n=>({...n,endDate:s.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:s=>v(n=>({...n,isActive:s.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:we,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Se,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Ce(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(K,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&t("p",{className:"text-xs text-muted-foreground mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ye(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Xe=g=>e(_,{children:t("div",{className:"flex w-full",children:[e("div",{className:"hidden md:block w-12 fixed h-full",children:e(ee,{...g})}),e("div",{className:"md:hidden",children:e(ee,{...g})}),e("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:e("div",{className:"w-full",children:g.children})})]})});export{Xe as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as v}from"./chunk-L5JPAKPM.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{a as u,c as g}from"./chunk-SOLZ4VQH.mjs";import{b as n}from"./chunk-CSBGSBEU.mjs";import{a as r,b as C,c as x,e as l}from"./chunk-YO3GQYRJ.mjs";import{useState as f,useMemo as I}from"react";import{Search as L,Bot as N,ChevronLeft as j,Copy as T,Calendar as F,Users as P}from"lucide-react";import{motion as h,AnimatePresence as U}from"motion/react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function Q({digitalColleagues:m,onColleagueClone:b,onCancel:w,selectedColleagueId:y}){let[i,D]=f(""),[o,k]=f("all"),c=I(()=>m.filter(e=>{let s=e.name.toLowerCase().includes(i.toLowerCase())||e.jobDescription.toLowerCase().includes(i.toLowerCase())||e.capabilities.some(B=>B.toLowerCase().includes(i.toLowerCase()))||e.workInstructions.toLowerCase().includes(i.toLowerCase()),S=o==="all"||e.status===o;return s&&S}),[m,i,o]),p=e=>{let s={...e,id:`${e.id}-clone-${Date.now()}`,name:`${e.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};b(s)},A=e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(e);return t("div",{className:"px-2 md:px-4 py-4 space-y-6",children:t(U,{mode:"wait",children:a(h.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(d,{variant:"ghost",onClick:w,className:"gap-2",children:[t(j,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[t("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),t("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),t(r,{children:t(l,{className:"pt-6",children:a("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:a("div",{className:"relative",children:[t(L,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(v,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:e=>D(e.target.value),className:"pl-9"})]})}),a("select",{value:o,onChange:e=>k(e.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[t("option",{value:"all",children:"All Status"}),t("option",{value:"active",children:"Active"}),t("option",{value:"inactive",children:"Inactive"})]})]})})}),t("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(e=>t(h.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:a(r,{className:`cursor-pointer transition-all hover:shadow-lg ${y===e.id?"ring-2 ring-primary":""}`,onClick:()=>p(e),children:[t(C,{className:"pb-3",children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t(u,{children:t(g,{className:"bg-blue-100",children:t(N,{className:"h-4 w-4 text-blue-600"})})}),a("div",{children:[a(x,{className:"text-lg flex items-center gap-2",children:[e.name,t(n,{variant:e.status==="active"?"default":"secondary",className:"text-xs",children:e.status})]}),a("p",{className:"text-sm text-muted-foreground",children:["v",e.version]})]})]}),a(d,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:s=>{s.stopPropagation(),p(e)},children:[t(T,{className:"h-3 w-3"}),"Clone"]})]})}),t(l,{className:"pt-0",children:a("div",{className:"space-y-3",children:[a("div",{children:[t("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),t("p",{className:"text-sm line-clamp-2",children:e.jobDescription})]}),e.capabilities&&e.capabilities.length>0&&a("div",{children:[t("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,3).map(s=>t(n,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>3&&a(n,{variant:"outline",className:"text-xs",children:["+",e.capabilities.length-3]})]})]}),a("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[a("div",{className:"flex items-center gap-1",children:[t(F,{className:"h-3 w-3"}),a("span",{children:["Updated ",A(e.lastUpdated)]})]}),e.knowledge&&a("div",{className:"flex items-center gap-1",children:[t(P,{className:"h-3 w-3"}),a("span",{children:[e.knowledge.length," docs"]})]})]}),e.workInstructions&&a("div",{children:[t("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),t("p",{className:"text-xs line-clamp-2",children:e.workInstructions})]})]})})]})},e.id))}),c.length===0&&t(r,{children:t(l,{className:"pt-6",children:a("div",{className:"text-center py-8",children:[t(N,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),t("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}export{Q as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{b as t}from"./chunk-ZUA4KNIR.mjs";import{a as s,b as i,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{User as m,Bot as c,ChevronLeft as v,Users as p}from"lucide-react";import{motion as r,AnimatePresence as g}from"motion/react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({onSelectHuman:n,onSelectDigital:d,onCancel:u}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(g,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:u,className:"gap-2",children:[e(v,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Add Human Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Browse existing users"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Import user details automatically"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Select User"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:d,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:e(c,{className:"h-8 w-8 text-purple-600"})}),e(l,{className:"text-xl",children:"Add Digital Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(c,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Clone existing colleagues"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Create from templates"})]})]}),e(t,{className:"mt-6 w-full",onClick:d,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}export{y as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as N,c as b,d as y,g as w,i as g}from"./chunk-YFAZQYK4.mjs";import{a as f}from"./chunk-B4H6T2GP.mjs";import{a as c}from"./chunk-L5JPAKPM.mjs";import{b as r}from"./chunk-ZUA4KNIR.mjs";import{b as h}from"./chunk-CSBGSBEU.mjs";import{motion as z}from"motion/react";import{Edit3 as F,Save as I,X as S,Plus as T}from"lucide-react";import{useState as $}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";function J({document:C,onSave:K,onCancel:D,availableDocuments:p=[],knowledgeContexts:E=[]}){let[l,d]=$({...C,updatedAt:new Date}),k=()=>{let e=new Set,a=new Set;return E.forEach(s=>{s.menuConfig.groupBy.forEach(n=>e.add(n))}),p.forEach(s=>{s.metadata&&Object.keys(s.metadata).forEach(n=>a.add(n))}),{contextKeys:Array.from(e).sort(),documentKeys:Array.from(a).sort(),allKeys:Array.from(new Set([...e,...a])).sort()}},_=e=>{let a=new Set;return p.forEach(s=>{s.metadata?.[e]&&a.add(String(s.metadata[e]))}),Array.from(a).sort()},m=k(),A=()=>{K(l)},i=(e,a)=>{d(s=>({...s,metadata:{...s.metadata,[e]:a}}))},B=(e,a)=>{a==="__custom__"?i(e,""):i(e,a)},M=()=>{let e=`field_${Date.now()}`;i(e,"")},V=e=>{d(a=>{let s={...a.metadata};return delete s[e],{...a,metadata:s}})};return o(z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[o("div",{className:"border-b border-border bg-card p-8",children:[o("div",{className:"flex items-start justify-between gap-4 mb-6",children:[o("div",{className:"flex items-center gap-3",children:[t("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:t(F,{className:"h-6 w-6 text-primary"})}),t("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),o("div",{className:"flex gap-2",children:[o(r,{variant:"outline",size:"sm",onClick:D,className:"gap-2",children:[t(S,{className:"h-4 w-4"}),"Cancel"]}),o(r,{size:"sm",onClick:A,className:"gap-2",children:[t(I,{className:"h-4 w-4"}),"Save Changes"]})]})]}),o("div",{className:"space-y-4",children:[o("div",{children:[t("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),t(c,{value:l.title,onChange:e=>d(a=>({...a,title:e.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),o("div",{children:[t("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),t(f,{value:l.description||"",onChange:e=>d(a=>({...a,description:e.target.value})),placeholder:"Document description...",rows:2})]}),o("div",{children:[o("div",{className:"flex items-center justify-between mb-3",children:[o("div",{children:[t("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),m.contextKeys.length>0&&o("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",m.contextKeys.slice(0,4).join(", "),m.contextKeys.length>4&&` +${m.contextKeys.length-4}`]})]}),o(r,{type:"button",variant:"outline",size:"sm",onClick:M,className:"gap-1 h-8",children:[t(T,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?t("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([e,a])=>{let s=_(e);return o("div",{className:"flex gap-2 items-center",children:[t(c,{value:e,onChange:n=>{let v=n.target.value,j=l.metadata?.[e];d(x=>{let u={...x.metadata};return delete u[e],v&&(u[v]=j||""),{...x,metadata:u}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${e}`}),t("datalist",{id:`metadata-keys-${e}`,children:m.allKeys.map(n=>t("option",{value:n},n))}),t("span",{className:"text-muted-foreground text-sm",children:"="}),s.length>0?o(N,{value:String(a||""),onValueChange:n=>B(e,n),children:[t(y,{className:"flex-1 h-8 text-sm",children:t(b,{placeholder:"Value"})}),o(w,{children:[s.map(n=>t(g,{value:n,children:n},n)),t(g,{value:"__custom__",children:t("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):t(c,{value:String(a||""),onChange:n=>i(e,n.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),t(r,{type:"button",variant:"ghost",size:"sm",onClick:()=>V(e),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:t(S,{className:"h-3 w-3"})})]},e)})}):t("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:t("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),o("div",{className:"flex items-center gap-2",children:[t("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),t(h,{variant:"secondary",className:"font-mono",children:l.format.toUpperCase()})]})]})]}),t("div",{className:"flex-1 overflow-auto",children:o("div",{className:"p-8",children:[t("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),t(f,{value:l.content||"",onChange:e=>d(a=>({...a,content:e.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}export{J as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as u,b as p,c}from"./chunk-RLVKIMGU.mjs";import{a as t,b as l,i as s,j as d}from"./chunk-OCPX4QPC.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{motion as g}from"motion/react";import{ChevronDown as x}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function M({activeTab:i,onTabChange:r,tabOptions:n,className:v="",maxWidth:f="700px",gridCols:h=6}){let w=n.find(e=>e.value===i);return o(g.div,{className:`flex-1 flex justify-center ${v}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[a("div",{className:"hidden md:block",children:a(u,{value:i,onValueChange:r,children:a(p,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:f,gridTemplateColumns:`repeat(${Math.min(h,n.length)}, minmax(0, 1fr))`},children:n.map(e=>a(g.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:a(c,{value:e.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:e.label})},e.value))})})}),a("div",{className:"md:hidden",children:o(t,{children:[a(l,{asChild:!0,children:o(m,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[w?.label||"Select",a(x,{className:"h-4 w-4 ml-2"})]})}),a(s,{align:"center",className:"w-[180px]",children:n.map(e=>a(d,{onClick:()=>r?.(e.value),className:`cursor-pointer ${i===e.value?"bg-accent":""}`,children:e.label},e.value))})]})})]})}export{M as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{b as t}from"./chunk-ZUA4KNIR.mjs";import{a as i,b as s,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{Bot as u,ChevronLeft as g,Copy as d,Plus as v,Sparkles as m}from"lucide-react";import{motion as r,AnimatePresence as f}from"motion/react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({onCloneExisting:n,onCreateNew:c,onCancel:p}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(f,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:p,className:"gap-2",children:[e(g,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(i,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(s,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(d,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Clone Existing"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(u,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Pre-configured capabilities"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(d,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Inherit knowledge base"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Browse & Clone"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(i,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:c,children:[a(s,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-green-600"})}),e(l,{className:"text-xl",children:"Create New"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(v,{className:"h-4 w-4 text-green-600"}),e("span",{children:"Custom job description"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-green-600"}),e("span",{children:"Define unique capabilities"})]})]}),e(t,{className:"mt-6 w-full",onClick:c,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}export{w as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-ZFUP5NVF.mjs";import{a as n}from"./chunk-7GSXNSLD.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
4
+ import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-PXLSH6S2.mjs";import{a as n}from"./chunk-7GSXNSLD.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
@@ -1 +1 @@
1
- import{a as ee}from"./chunk-NZCHFTHJ.mjs";import{a as _}from"./chunk-A3YDFYEB.mjs";import{a as Z}from"./chunk-KOXC4RIH.mjs";import{a as Y}from"./chunk-6OZUHBYJ.mjs";import{a as Q}from"./chunk-HHYHENVF.mjs";import{a as X}from"./chunk-ORNGKQM7.mjs";import{a as L}from"./chunk-EBTFLN5U.mjs";import{a as J}from"./chunk-VGARU7ZT.mjs";import{a as z}from"./chunk-ABGNIQRP.mjs";import{useEffect as d,useState as s}from"react";import{useRouter as Ye}from"next/navigation";import{jsx as a,jsxs as _e}from"react/jsx-runtime";function Ze({title:et="",initialTasks:D=[],initialEpics:S=[],initialSprints:E=[],initialProjects:v=[],initialReminders:A=[],initialColleagues:w=[],initialFiles:P=[],initialView:C="kanban",onAddTask:te,onUpdateTask:ie,onDeleteTask:ne,onTaskClick:tt,onAddEpic:se,onUpdateEpic:ae,onDeleteEpic:oe,onAddTaskToEpic:it,onAddSprint:de,onUpdateSprint:re,onDeleteSprint:le,onAddProject:ce,onUpdateProject:pe,onDeleteProject:ge,onFileAdd:me,onFileEdit:ke,onFileDelete:Te,onFileClick:ue,onAddReminder:fe,onUpdateReminder:he,onDeleteReminder:De,onViewChange:Se,onToggleMobileMenu:Ee,onTeamClick:nt,onTeamChange:st,onCopilotClick:at}){let[p,r]=s(D),[o,g]=s(S),[l,m]=s(E),[F,k]=s(v),[ve,T]=s(A),[Ae,we]=s(w),[Pe,M]=s(P),[Ce,O]=s(!1),[Ue,R]=s(!1),[u,U]=s(null),[be,V]=s(null),[j,I]=s(null),[c,B]=s(C||"kanban"),[ye,Fe]=s(!1),N=Ye();d(()=>{r(D)},[D]),d(()=>{m(E)},[E]),d(()=>{g(S)},[S]),d(()=>{k(v)},[v]),d(()=>{M(P)},[P]),d(()=>{we(w)},[w]),d(()=>{T(A)},[A]),d(()=>{B(C)},[C]);let Me=o.filter(e=>e.isSelected).map(e=>e.id),f=l.find(e=>e.isSelected),Oe=p.filter(e=>{let t=Me.includes(e.epicId);return!f||f.id==="all-tasks"?t:f.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===f.id}),ot=e=>Oe.filter(t=>t.status===e),dt=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(n=>n.epicId===i.id)}),t},rt=e=>{I(e)},lt=e=>{j&&(r(t=>t.map(i=>i.id===j.id?{...i,status:e}:i)),I(null))},x=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),te?.(t)},h=(e,t)=>{r(i=>i.map(n=>n.id===e?{...n,...t}:n)),ie?.(e,t)},Re=async(e,t)=>{h(e,t)},G=e=>{r(t=>t.filter(i=>i.id!==e)),u?.id===e&&U(null),ne?.(e)},Ve=async e=>{G(e)},je=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};k(i=>[...i,t]),ce?.(e)},Ie=(e,t)=>{k(i=>i.map(n=>n.id===e?t.isSelected?(N.push(`/project/${e}`),{...n,...t}):{...n,...t}:t.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),pe?.(e,t)},Be=e=>{k(t=>t.filter(i=>i.id!==e)),ge?.(e)},H=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};g(i=>[...i,t]),se?.({...t})},K=()=>{R(!0)},W=(e,t)=>{g(i=>i.map(n=>n.id===e?{...n,...t}:n)),ae?.(e,t)},$=e=>{g(t=>t.filter(i=>i.id!==e)),r(t=>t.filter(i=>i.epicId!==e)),oe?.(e)},q=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};m(i=>[...i,t]),de?.(e)},Ne=(e,t)=>{m(i=>i.map(n=>n.id===e?t.isSelected?{...n,...t}:{...n,...t}:t.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),re?.(e,t)},xe=e=>{e==="backlog"||e==="all-tasks"||(m(t=>t.filter(i=>i.id!==e)),r(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)),le?.(e))},b=e=>{U(e)},Ge=e=>{e==="planning"&&window.innerWidth<768||(B(e),Se?.(e))},He=()=>{Fe(e=>!e),Ee?.()},ct=()=>{N.push("/")},pt=e=>{console.log("Switching to team:",e)},gt=e=>{console.log("Switching to team:",e)},Ke=e=>{V(e),O(!0)},We=()=>{O(!1),V(null)},$e=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};T(i=>[...i,t]),fe?.(e)},qe=(e,t)=>{T(i=>i.map(n=>n.id===e?{...n,...t}:n)),he?.(e,t)},ze=e=>{T(t=>t.filter(i=>i.id!==e)),De?.(e)},Je=()=>{me?.()},Le=e=>{ke?.(e)},Qe=e=>{M(t=>t.filter(i=>i.name!==e)),Te?.(e)},Xe=e=>{ue?.(e)},mt=[{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"}],kt=()=>{switch(c){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"}},y=[{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")}],Tt=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ut=y.length>3,ft=y.slice(3);return _e(z,{projects:F,epics:o,sprints:l,currentView:c,onUpdateProject:Ie,onDeleteProject:Be,onAddProject:je,onUpdateEpic:W,onDeleteEpic:$,onAddEpic:K,onAddSprint:q,onUpdateSprint:Ne,onDeleteSprint:xe,onViewChange:Ge,mobileMenuOpen:ye,onToggleMobileMenu:He,children:[c==="kanban"&&a("div",{className:"h-full",children:a(Y,{initialProjects:F,initialEpics:o,initialSprints:l,initialTasks:p,onAddTask:x,onUpdateTask:h,onDeleteTask:G,onTaskClick:b,onAddEpic:H})}),c==="planning"&&a("div",{className:"hidden md:block h-full",children:a(_,{tasks:p,epics:o,sprints:l,onUpdateTask:h,onTaskClick:b,onAddSprint:q})}),c==="tasks"&&a("div",{className:"h-full",children:a(ee,{initialReminders:ve,initialColleagues:Ae,onAddReminder:$e,onUpdateReminder:qe,onDeleteReminder:ze})}),c==="files"&&a("div",{className:"h-full",children:a(J,{initialFiles:Pe,onFileAdd:Je,onFileEdit:Le,onFileDelete:Qe,onFileClick:Xe,compactView:!1})}),c==="epics"&&a("div",{className:"h-full",children:a(Z,{tasks:p,epics:o,sprints:l,onUpdateTask:h,onTaskClick:b,onAddTaskToEpic:Ke,onAddEpic:K,onUpdateEpic:W,onDeleteEpic:$})}),a(L,{isOpen:Ce,onClose:We,onAddTask:x,epics:o,sprints:l,defaultEpicId:be||void 0}),a(X,{isOpen:Ue,onClose:()=>R(!1),onAddEpic:H}),u&&a(Q,{isOpen:!!u,onClose:()=>U(null),task:u,onUpdateTask:Re,onDeleteTask:Ve,epics:o,sprints:l})]})}export{Ze as a};
1
+ import{a as ee}from"./chunk-OYZX5BM4.mjs";import{a as Y}from"./chunk-GN25OSET.mjs";import{a as _}from"./chunk-LUM6KEWN.mjs";import{a as Q}from"./chunk-HHYHENVF.mjs";import{a as X}from"./chunk-ORNGKQM7.mjs";import{a as L}from"./chunk-EBTFLN5U.mjs";import{a as Z}from"./chunk-I5NNEOCF.mjs";import{a as J}from"./chunk-PH67DP3M.mjs";import{a as z}from"./chunk-5RDLHKTK.mjs";import{useEffect as d,useState as s}from"react";import{useRouter as Ye}from"next/navigation";import{jsx as a,jsxs as _e}from"react/jsx-runtime";function Ze({title:et="",initialTasks:D=[],initialEpics:S=[],initialSprints:E=[],initialProjects:v=[],initialReminders:A=[],initialColleagues:w=[],initialFiles:P=[],initialView:C="kanban",onAddTask:te,onUpdateTask:ie,onDeleteTask:ne,onTaskClick:tt,onAddEpic:se,onUpdateEpic:ae,onDeleteEpic:oe,onAddTaskToEpic:it,onAddSprint:de,onUpdateSprint:re,onDeleteSprint:le,onAddProject:ce,onUpdateProject:pe,onDeleteProject:ge,onFileAdd:me,onFileEdit:ke,onFileDelete:Te,onFileClick:ue,onAddReminder:fe,onUpdateReminder:he,onDeleteReminder:De,onViewChange:Se,onToggleMobileMenu:Ee,onTeamClick:nt,onTeamChange:st,onCopilotClick:at}){let[p,r]=s(D),[o,g]=s(S),[l,m]=s(E),[F,k]=s(v),[ve,T]=s(A),[Ae,we]=s(w),[Pe,M]=s(P),[Ce,O]=s(!1),[Ue,R]=s(!1),[u,U]=s(null),[be,V]=s(null),[j,I]=s(null),[c,B]=s(C||"kanban"),[ye,Fe]=s(!1),N=Ye();d(()=>{r(D)},[D]),d(()=>{m(E)},[E]),d(()=>{g(S)},[S]),d(()=>{k(v)},[v]),d(()=>{M(P)},[P]),d(()=>{we(w)},[w]),d(()=>{T(A)},[A]),d(()=>{B(C)},[C]);let Me=o.filter(e=>e.isSelected).map(e=>e.id),f=l.find(e=>e.isSelected),Oe=p.filter(e=>{let t=Me.includes(e.epicId);return!f||f.id==="all-tasks"?t:f.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===f.id}),ot=e=>Oe.filter(t=>t.status===e),dt=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(n=>n.epicId===i.id)}),t},rt=e=>{I(e)},lt=e=>{j&&(r(t=>t.map(i=>i.id===j.id?{...i,status:e}:i)),I(null))},x=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),te?.(t)},h=(e,t)=>{r(i=>i.map(n=>n.id===e?{...n,...t}:n)),ie?.(e,t)},Re=async(e,t)=>{h(e,t)},G=e=>{r(t=>t.filter(i=>i.id!==e)),u?.id===e&&U(null),ne?.(e)},Ve=async e=>{G(e)},je=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};k(i=>[...i,t]),ce?.(e)},Ie=(e,t)=>{k(i=>i.map(n=>n.id===e?t.isSelected?(N.push(`/project/${e}`),{...n,...t}):{...n,...t}:t.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),pe?.(e,t)},Be=e=>{k(t=>t.filter(i=>i.id!==e)),ge?.(e)},H=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};g(i=>[...i,t]),se?.({...t})},K=()=>{R(!0)},W=(e,t)=>{g(i=>i.map(n=>n.id===e?{...n,...t}:n)),ae?.(e,t)},$=e=>{g(t=>t.filter(i=>i.id!==e)),r(t=>t.filter(i=>i.epicId!==e)),oe?.(e)},q=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};m(i=>[...i,t]),de?.(e)},Ne=(e,t)=>{m(i=>i.map(n=>n.id===e?t.isSelected?{...n,...t}:{...n,...t}:t.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),re?.(e,t)},xe=e=>{e==="backlog"||e==="all-tasks"||(m(t=>t.filter(i=>i.id!==e)),r(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)),le?.(e))},b=e=>{U(e)},Ge=e=>{e==="planning"&&window.innerWidth<768||(B(e),Se?.(e))},He=()=>{Fe(e=>!e),Ee?.()},ct=()=>{N.push("/")},pt=e=>{console.log("Switching to team:",e)},gt=e=>{console.log("Switching to team:",e)},Ke=e=>{V(e),O(!0)},We=()=>{O(!1),V(null)},$e=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};T(i=>[...i,t]),fe?.(e)},qe=(e,t)=>{T(i=>i.map(n=>n.id===e?{...n,...t}:n)),he?.(e,t)},ze=e=>{T(t=>t.filter(i=>i.id!==e)),De?.(e)},Je=()=>{me?.()},Le=e=>{ke?.(e)},Qe=e=>{M(t=>t.filter(i=>i.name!==e)),Te?.(e)},Xe=e=>{ue?.(e)},mt=[{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"}],kt=()=>{switch(c){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"}},y=[{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")}],Tt=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ut=y.length>3,ft=y.slice(3);return _e(z,{projects:F,epics:o,sprints:l,currentView:c,onUpdateProject:Ie,onDeleteProject:Be,onAddProject:je,onUpdateEpic:W,onDeleteEpic:$,onAddEpic:K,onAddSprint:q,onUpdateSprint:Ne,onDeleteSprint:xe,onViewChange:Ge,mobileMenuOpen:ye,onToggleMobileMenu:He,children:[c==="kanban"&&a("div",{className:"h-full",children:a(Y,{initialProjects:F,initialEpics:o,initialSprints:l,initialTasks:p,onAddTask:x,onUpdateTask:h,onDeleteTask:G,onTaskClick:b,onAddEpic:H})}),c==="planning"&&a("div",{className:"hidden md:block h-full",children:a(_,{tasks:p,epics:o,sprints:l,onUpdateTask:h,onTaskClick:b,onAddSprint:q})}),c==="tasks"&&a("div",{className:"h-full",children:a(ee,{initialReminders:ve,initialColleagues:Ae,onAddReminder:$e,onUpdateReminder:qe,onDeleteReminder:ze})}),c==="files"&&a("div",{className:"h-full",children:a(J,{initialFiles:Pe,onFileAdd:Je,onFileEdit:Le,onFileDelete:Qe,onFileClick:Xe,compactView:!1})}),c==="epics"&&a("div",{className:"h-full",children:a(Z,{tasks:p,epics:o,sprints:l,onUpdateTask:h,onTaskClick:b,onAddTaskToEpic:Ke,onAddEpic:K,onUpdateEpic:W,onDeleteEpic:$})}),a(L,{isOpen:Ce,onClose:We,onAddTask:x,epics:o,sprints:l,defaultEpicId:be||void 0}),a(X,{isOpen:Ue,onClose:()=>R(!1),onAddEpic:H}),u&&a(Q,{isOpen:!!u,onClose:()=>U(null),task:u,onUpdateTask:Re,onDeleteTask:Ve,epics:o,sprints:l})]})}export{Ze as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{b as t}from"./chunk-ZUA4KNIR.mjs";import{motion as n}from"motion/react";import{Trash2 as c}from"lucide-react";import{jsx as e,jsxs as d}from"react/jsx-runtime";function x({files:s,onFileClick:a,onFileEdit:v,onFileDelete:o,showHeader:l=!0,className:m}){return d("div",{className:`rounded-3xl border overflow-hidden ${m||""}`,children:[l&&d("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[e("div",{className:"col-span-6",children:"Name"}),e("div",{className:"col-span-2",children:"Size"}),e("div",{className:"col-span-2",children:"Modified"})]}),e("div",{className:"divide-y",children:s.map(i=>d(n.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>a?.(i),children:[d("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[e("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),e("div",{children:e("p",{className:"font-medium",children:i.name})})]}),e("div",{className:"col-span-2 text-sm md:text-base",children:i.filesize}),d("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[e("span",{className:"text-sm md:text-base",children:typeof i.createdAt=="string"?i.createdAt:i.createdAt.toLocaleDateString()}),e("div",{className:"flex gap-1",children:e(t,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:r=>{r.stopPropagation(),o?.(i)},children:e(c,{className:"h-4 w-4"})})})]})]},i.name))})]})}export{x as a};
@@ -1 +1 @@
1
- import{a as M}from"./chunk-HHYHENVF.mjs";import{a as I}from"./chunk-ORNGKQM7.mjs";import{a as x}from"./chunk-EBTFLN5U.mjs";import{a as B}from"./chunk-6YHVVP3S.mjs";import{a as O}from"./chunk-AMV3MECK.mjs";import{a as N}from"./chunk-2NMVE5M4.mjs";import{b as w}from"./chunk-CSBGSBEU.mjs";import{useEffect as C,useState as o}from"react";import{Fragment as Z,jsx as i,jsxs as r}from"react/jsx-runtime";var ls=({initialTasks:m=[],initialEpics:k=[],initialSprints:u=[],initialProjects:_=[],onAddTask:j,onUpdateTask:f,onDeleteTask:h,onTaskClick:K,onAddEpic:R})=>{let[F,n]=o(m),[d,D]=o(k),[T,H]=o(u),[U,S]=o(!1),[V,b]=o(!1),[c,g]=o(null),[v,P]=o(null),E=d.filter(s=>!0).map(s=>s.id),l=T.find(s=>s.isSelected);E.push("no-epic"),C(()=>{n(m)},[m]),C(()=>{D(k)},[k]),C(()=>{H(u)},[u]);let $=F.filter(s=>{let t=E.includes(s.epicId)||!s.epicId;return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),q=s=>$.filter(t=>t.status===s),z=s=>{let t={};return d.forEach(e=>{t[e.id]=s.filter(a=>a.epicId===e.id)}),t["no-epic"]=s.filter(e=>!e.epicId),t},G=s=>{P(s)},J=s=>{v&&(n(t=>t.map(e=>e.id===v.id?{...e,status:s}:e)),f?.(v.id,{status:s}),P(null))},L=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};n(e=>[...e,t]),j?.(s)},Q=async(s,t)=>{n(e=>e.map(a=>a.id===s?{...a,...t}:a)),f&&await f(s,t)},W=async s=>{n(t=>t.filter(e=>e.id!==s)),c?.id===s&&g(null),h&&await h(s)},X=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};D(e=>[...e,t]),R?.(s)},Y=s=>{g(s),K?.(s)};return r("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[i(N,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>S(!0)},secondaryAction:{label:"Add epic",onClick:()=>b(!0)}}),i("div",{className:"flex-1",children:r("div",{className:"w-full",children:[i("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=q(s.status),e=z(t);return i(O,{title:s.title,status:s.status,taskCount:t.length,onDrop:J,isCompact:s.status==="done",children:E.map(a=>{let A=d.find(p=>p.id===a),y=e[a]||[];return y.length===0?null:r("div",{className:"mb-6",children:[r("div",{className:"flex items-center gap-2 mb-3",children:[i("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),i("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:A?.name||"No Epic"}),i(w,{variant:"secondary",className:"text-xs",children:y.length})]})," ",i("div",{className:"space-y-3",children:y.map(p=>i(B,{task:p,epic:A,onDragStart:G,onTaskClick:Y,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),r(Z,{children:[i(x,{isOpen:U,onClose:()=>S(!1),onAddTask:L,epics:d,sprints:T}),i(I,{isOpen:V,onClose:()=>b(!1),onAddEpic:X}),c&&i(M,{isOpen:!!c,onClose:()=>g(null),task:c,epics:d,sprints:T,onUpdateTask:Q,onDeleteTask:W})]})]})})]})};export{ls as a};
1
+ import{a as O}from"./chunk-AMV3MECK.mjs";import{a as M}from"./chunk-HHYHENVF.mjs";import{a as I}from"./chunk-ORNGKQM7.mjs";import{a as x}from"./chunk-EBTFLN5U.mjs";import{a as B}from"./chunk-6YHVVP3S.mjs";import{a as N}from"./chunk-Z22NSJMF.mjs";import{b as w}from"./chunk-CSBGSBEU.mjs";import{useEffect as C,useState as o}from"react";import{Fragment as Z,jsx as i,jsxs as r}from"react/jsx-runtime";var ls=({initialTasks:m=[],initialEpics:k=[],initialSprints:u=[],initialProjects:_=[],onAddTask:j,onUpdateTask:f,onDeleteTask:h,onTaskClick:K,onAddEpic:R})=>{let[F,n]=o(m),[d,D]=o(k),[T,H]=o(u),[U,S]=o(!1),[V,b]=o(!1),[c,g]=o(null),[v,P]=o(null),E=d.filter(s=>!0).map(s=>s.id),l=T.find(s=>s.isSelected);E.push("no-epic"),C(()=>{n(m)},[m]),C(()=>{D(k)},[k]),C(()=>{H(u)},[u]);let $=F.filter(s=>{let t=E.includes(s.epicId)||!s.epicId;return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),q=s=>$.filter(t=>t.status===s),z=s=>{let t={};return d.forEach(e=>{t[e.id]=s.filter(a=>a.epicId===e.id)}),t["no-epic"]=s.filter(e=>!e.epicId),t},G=s=>{P(s)},J=s=>{v&&(n(t=>t.map(e=>e.id===v.id?{...e,status:s}:e)),f?.(v.id,{status:s}),P(null))},L=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};n(e=>[...e,t]),j?.(s)},Q=async(s,t)=>{n(e=>e.map(a=>a.id===s?{...a,...t}:a)),f&&await f(s,t)},W=async s=>{n(t=>t.filter(e=>e.id!==s)),c?.id===s&&g(null),h&&await h(s)},X=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};D(e=>[...e,t]),R?.(s)},Y=s=>{g(s),K?.(s)};return r("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[i(N,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>S(!0)},secondaryAction:{label:"Add epic",onClick:()=>b(!0)}}),i("div",{className:"flex-1",children:r("div",{className:"w-full",children:[i("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=q(s.status),e=z(t);return i(O,{title:s.title,status:s.status,taskCount:t.length,onDrop:J,isCompact:s.status==="done",children:E.map(a=>{let A=d.find(p=>p.id===a),y=e[a]||[];return y.length===0?null:r("div",{className:"mb-6",children:[r("div",{className:"flex items-center gap-2 mb-3",children:[i("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),i("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:A?.name||"No Epic"}),i(w,{variant:"secondary",className:"text-xs",children:y.length})]})," ",i("div",{className:"space-y-3",children:y.map(p=>i(B,{task:p,epic:A,onDragStart:G,onTaskClick:Y,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),r(Z,{children:[i(x,{isOpen:U,onClose:()=>S(!1),onAddTask:L,epics:d,sprints:T}),i(I,{isOpen:V,onClose:()=>b(!1),onAddEpic:X}),c&&i(M,{isOpen:!!c,onClose:()=>g(null),task:c,epics:d,sprints:T,onUpdateTask:Q,onDeleteTask:W})]})]})})]})};export{ls as a};
@@ -1 +1 @@
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
+ import{a as E}from"./chunk-6YHVVP3S.mjs";import{a as w}from"./chunk-Z22NSJMF.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 E}from"./chunk-6DEY5ZDD.mjs";import{a as I}from"./chunk-2NMVE5M4.mjs";import{b as v}from"./chunk-ZUA4KNIR.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as o}from"./chunk-YO3GQYRJ.mjs";import{useEffect as X,useState as n}from"react";import{Calendar as Y,Plus as Z}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var ce=({tasks:i,epics:A,sprints:l,onUpdateTask:B,onTaskClick:P,onAddSprint:O})=>{let[d,j]=n(["2"]),[g,f]=n(null),[R,c]=n(!1),[b,p]=n(null),[u,$]=n(i.filter(e=>!e.sprintId)),[V,M]=n(i.filter(e=>e.sprintId&&d.includes(e.sprintId))),[h,U]=n(l.filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()));X(()=>{$(i.filter(e=>!e.sprintId)),M(i.filter(e=>e.sprintId&&d.includes(e.sprintId))),U(l.filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()))},[i,l,d]);let z=e=>A.find(a=>a.id===e),F=e=>l.find(a=>a.id===e),L=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"}},H=e=>e.split(" ").map(a=>a[0]).join("").toUpperCase(),q=e=>{f(e)},x=e=>{e.preventDefault()},N=e=>{p(e)},y=()=>{p(null)},k=(e,a)=>{e.preventDefault(),p(null),g&&(B(g.id,{sprintId:a==="backlog"?void 0:a}),f(null))},G=e=>{e==="backlog"||e==="all-tasks"||j(a=>a.includes(e)?a.filter(r=>r!==e):[...a,e])},J=e=>{O(e),c(!1)},D=({task:e,showSprint:a=!1})=>{let r=z(e.epicId),S=e.sprintId?F(e.sprintId):null,[T,w]=n(!1),K=C=>{C.defaultPrevented||T||P(e)},Q=C=>{w(!0),q(e)},W=()=>{w(!1)};return t(o,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${T?"opacity-50 shadow-lg scale-105":""} ${g?.id===e.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:Q,onDragEnd:W,onClick:K,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(m,{className:`text-xs select-none pointer-events-none ${L(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:H(e.assignee)})]}),a&&S&&s("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[t(Y,{className:"h-3 w-3"}),t("span",{className:"select-none",children:S.name})]})]})})};return s("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t(I,{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:()=>c(!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(o,{className:"p-4 h-full bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N("backlog"),onDragLeave:y,onDrop:e=>k(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(m,{variant:"secondary",className:"bg-muted text-muted-foreground",children:u.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:[u.map(e=>t(D,{task:e},e.id)),u.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(o,{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(v,{onClick:()=>c(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[t(Z,{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(v,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>G(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:d.map(e=>h.find(a=>a.id===e)).filter(Boolean).sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()).map(e=>{let a=V.filter(r=>r.sprintId===e.id);return s(o,{className:"p-4 bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N(e.id),onDragLeave:y,onDrop:r=>k(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(m,{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(D,{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:()=>c(!1),onAddSprint:J})]})})]})};export{ce as a};
1
+ import{a as E}from"./chunk-6DEY5ZDD.mjs";import{a as I}from"./chunk-Z22NSJMF.mjs";import{b as v}from"./chunk-ZUA4KNIR.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as o}from"./chunk-YO3GQYRJ.mjs";import{useEffect as X,useState as n}from"react";import{Calendar as Y,Plus as Z}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var ce=({tasks:i,epics:A,sprints:l,onUpdateTask:B,onTaskClick:P,onAddSprint:O})=>{let[d,j]=n(["2"]),[g,f]=n(null),[R,c]=n(!1),[b,p]=n(null),[u,$]=n(i.filter(e=>!e.sprintId)),[V,M]=n(i.filter(e=>e.sprintId&&d.includes(e.sprintId))),[h,U]=n(l.filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()));X(()=>{$(i.filter(e=>!e.sprintId)),M(i.filter(e=>e.sprintId&&d.includes(e.sprintId))),U(l.filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()))},[i,l,d]);let z=e=>A.find(a=>a.id===e),F=e=>l.find(a=>a.id===e),L=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"}},H=e=>e.split(" ").map(a=>a[0]).join("").toUpperCase(),q=e=>{f(e)},x=e=>{e.preventDefault()},N=e=>{p(e)},y=()=>{p(null)},k=(e,a)=>{e.preventDefault(),p(null),g&&(B(g.id,{sprintId:a==="backlog"?void 0:a}),f(null))},G=e=>{e==="backlog"||e==="all-tasks"||j(a=>a.includes(e)?a.filter(r=>r!==e):[...a,e])},J=e=>{O(e),c(!1)},D=({task:e,showSprint:a=!1})=>{let r=z(e.epicId),S=e.sprintId?F(e.sprintId):null,[T,w]=n(!1),K=C=>{C.defaultPrevented||T||P(e)},Q=C=>{w(!0),q(e)},W=()=>{w(!1)};return t(o,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${T?"opacity-50 shadow-lg scale-105":""} ${g?.id===e.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:Q,onDragEnd:W,onClick:K,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(m,{className:`text-xs select-none pointer-events-none ${L(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:H(e.assignee)})]}),a&&S&&s("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[t(Y,{className:"h-3 w-3"}),t("span",{className:"select-none",children:S.name})]})]})})};return s("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t(I,{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:()=>c(!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(o,{className:"p-4 h-full bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N("backlog"),onDragLeave:y,onDrop:e=>k(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(m,{variant:"secondary",className:"bg-muted text-muted-foreground",children:u.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:[u.map(e=>t(D,{task:e},e.id)),u.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(o,{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(v,{onClick:()=>c(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[t(Z,{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(v,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>G(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:d.map(e=>h.find(a=>a.id===e)).filter(Boolean).sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()).map(e=>{let a=V.filter(r=>r.sprintId===e.id);return s(o,{className:"p-4 bg-card shadow-sm",onDragOver:x,onDragEnter:()=>N(e.id),onDragLeave:y,onDrop:r=>k(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(m,{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(D,{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:()=>c(!1),onAddSprint:J})]})})]})};export{ce as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as k}from"./chunk-BQQ4V4PX.mjs";import{a as C}from"./chunk-KZAYLEFB.mjs";import{a as S,b as w}from"./chunk-4SRUEQTP.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-GETYSIZV.mjs";import{a as v}from"./chunk-U3FYDDE2.mjs";import{a as f}from"./chunk-HKMNAXLM.mjs";import{c as m,f as p}from"./chunk-FYQBRCQM.mjs";import{a as d}from"./chunk-VRE6VCHX.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-CLGBBNRB.mjs";import{a as h}from"./chunk-FMJBJ3HN.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-WU3JMLSC.mjs";import{a as y}from"./chunk-BZAYEKYC.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:y,logoDark:b,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(k,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(S,{...t.contact})}),e(c,{theme:"light",style:i,children:e(w,{...t.contact})}),e(c,{theme:"last",style:i,children:e(C,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
4
+ import{a as k}from"./chunk-BQQ4V4PX.mjs";import{a as C}from"./chunk-KZAYLEFB.mjs";import{a as S,b as w}from"./chunk-4SRUEQTP.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-GETYSIZV.mjs";import{a as f}from"./chunk-HKMNAXLM.mjs";import{a as v}from"./chunk-U3FYDDE2.mjs";import{c as m,f as p}from"./chunk-FYQBRCQM.mjs";import{a as d}from"./chunk-VRE6VCHX.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-CLGBBNRB.mjs";import{a as h}from"./chunk-FMJBJ3HN.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-WU3JMLSC.mjs";import{a as y}from"./chunk-BZAYEKYC.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:y,logoDark:b,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(k,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(S,{...t.contact})}),e(c,{theme:"light",style:i,children:e(w,{...t.contact})}),e(c,{theme:"last",style:i,children:e(C,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as r}from"./chunk-FT3AE7L2.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{b as c}from"./chunk-CSBGSBEU.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{motion as m,AnimatePresence as b}from"motion/react";import{Check as d,Info as w,X as y,AlertTriangle as f,Bell as u,ChevronRight as k}from"lucide-react";import{Fragment as C,jsx as e,jsxs as t}from"react/jsx-runtime";function R({notifications:p,open:N,onClose:l,onNotificationRemove:x,onRemoveAll:v,className:g}){let n=p.filter(s=>!s.read),i=n.length,h=s=>{switch(s){case"info":return e(w,{className:"h-5 w-5 text-blue-500"});case"success":return e(d,{className:"h-5 w-5 text-green-500"});case"warning":return e(f,{className:"h-5 w-5 text-amber-500"});case"error":return e(f,{className:"h-5 w-5 text-red-500"})}};return e(b,{children:N&&t(C,{children:[e(m.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:l}),e(m.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:o("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",g),children:t("div",{className:"flex h-full flex-col",children:[t("div",{className:"flex items-center justify-between border-b p-4",children:[t("div",{className:"flex items-center gap-2",children:[e(u,{className:"h-5 w-5"}),e("h2",{className:"text-lg font-semibold",children:"Notifications"}),i>0&&t(c,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[i," new"]})]}),t(a,{variant:"ghost",size:"icon",onClick:l,className:"rounded-full",children:[e(y,{className:"h-5 w-5"}),e("span",{className:"sr-only",children:"Close"})]})]}),i>0&&t("div",{className:"flex items-center justify-between border-b p-2",children:[t("span",{className:"text-sm text-muted-foreground",children:[i," unread notification",i!==1?"s":""]}),e(a,{variant:"ghost",size:"sm",onClick:v,className:"text-sm",children:"Dismiss all"})]}),n.length>0?e(r,{className:"flex-1",children:e("div",{className:"divide-y",children:n.map(s=>t("div",{className:o("flex gap-3 p-4 transition-colors bg-muted/50"),children:[e("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:h(s.type)}),t("div",{className:"flex-1 space-y-1",children:[t("div",{className:"flex items-center justify-between",children:[e("p",{className:"font-medium",children:s.title}),t("div",{className:"flex items-center gap-2",children:[e("p",{className:"text-xs text-muted-foreground",children:s.time}),e(a,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>x?.(s.id),title:"Dismiss",children:e(d,{className:"h-3 w-3"})})]})]}),e("p",{className:"text-sm text-muted-foreground",children:s.description}),s.actionLabel&&t(a,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:s.onAction,children:[s.actionLabel,e(k,{className:"ml-1 h-3 w-3"})]})]})]},s.id))})}):t("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[e("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:e(u,{className:"h-8 w-8 text-muted-foreground"})}),e("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),e("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}export{R as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as u}from"./chunk-AZKOVKSK.mjs";import{a as b}from"./chunk-BHWGOTCJ.mjs";import{a as N}from"./chunk-MU5WPW4N.mjs";import{a as m,b as d,c as p,d as f}from"./chunk-KY7WQYN4.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as g,c as h}from"./chunk-SOLZ4VQH.mjs";import{useState as T}from"react";import{motion as e}from"motion/react";import{Bell as $,Menu as q,PanelLeft as E,Bot as G}from"lucide-react";import{Fragment as J,jsx as t,jsxs as i}from"react/jsx-runtime";function at({title:Q,notifications:x=[],onToggleSidebar:w,onToggleMobileMenu:y,sidebarOpen:C=!0,className:A,activeTab:k="assistant",onTabChange:P,showTabs:O=!0,tabOptions:R=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:B,actionIcon:H=t(G,{className:"mr-2 h-4 w-4"}),actionText:j="Action",onNotificationRemove:z,onRemoveAll:D,logo:I="/headerlogo.png",appName:L="Nuvia",tagline:M="Collaboration Platform"}){let[F,l]=T(!1),[r,c]=T(x),n=r.filter(o=>!o.read).length,S=o=>{c(s=>s.filter(U=>U.id!==o)),z?.(o)},K=()=>{c(o=>o.filter(s=>s.read)),D?.()};return i(J,{children:[i("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${A||""}`,children:[t(a,{variant:"ghost",size:"icon",className:"md:hidden",onClick:y,children:t(q,{className:"h-5 w-5"})}),t(a,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:w,children:t(E,{className:"h-5 w-5"})}),!C&&i(e.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[t("div",{className:"flex h-10 w-10 items-center justify-center",children:t("img",{src:I,alt:"Logo",className:"h-10 w-10 object-contain"})}),i("div",{children:[t("h2",{className:"font-semibold text-sm",children:L}),t("p",{className:"text-xs text-muted-foreground",children:M})]})]}),i("div",{className:"flex flex-1 items-center",children:[O&&t(b,{activeTab:k,onTabChange:P,tabOptions:R}),i("div",{className:"flex items-center gap-3 ml-auto",children:[t(e.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:B,children:[H,j]})})}),t(u,{}),t(m,{children:i(d,{children:[t(p,{asChild:!0,children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>l(!0),children:[t(e.div,{animate:n>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:n>0?1/0:0,repeatDelay:3},children:t($,{className:"h-5 w-5"})}),n>0&&t(e.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:n})]})})}),t(f,{children:"Notifications"})]})}),t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(v,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[t(g,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),t(h,{})]})})]})]})]}),t(N,{notifications:r,open:F,onClose:()=>l(!1),onNotificationRemove:S,onRemoveAll:K})]})}export{at as a};