cortex-react-components 2.13.4 → 2.13.6

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 (70) hide show
  1. package/dist/chunk-2R3MJSQ7.mjs +1 -0
  2. package/dist/chunk-6R36YTGY.mjs +1 -0
  3. package/dist/{chunk-YQW7SMYJ.mjs → chunk-76AKO55V.mjs} +1 -1
  4. package/dist/{chunk-TL2RQFU5.mjs → chunk-B7AXSCTN.mjs} +1 -1
  5. package/dist/{chunk-6NED7ZVK.mjs → chunk-CBYI4FLL.mjs} +1 -1
  6. package/dist/chunk-GTXTHH5Y.mjs +4 -0
  7. package/dist/{chunk-LJOWXPWW.mjs → chunk-I2GNNRFH.mjs} +1 -1
  8. package/dist/chunk-QC2UWZWL.mjs +1 -0
  9. package/dist/chunk-USGRM22Y.mjs +1 -0
  10. package/dist/{chunk-CBIULUZQ.mjs → chunk-XKGBG5FX.mjs} +1 -1
  11. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  12. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  13. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  14. package/dist/components/DigitalColleagues/index.js +1 -1
  15. package/dist/components/DigitalColleagues/index.mjs +1 -1
  16. package/dist/components/Foundary/MainPage.mjs +1 -1
  17. package/dist/components/Foundary/Views/index.js +1 -1
  18. package/dist/components/Foundary/Views/index.mjs +1 -1
  19. package/dist/components/Foundary/index.js +1 -1
  20. package/dist/components/Foundary/index.mjs +1 -1
  21. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  22. package/dist/components/HeaderFooter/index.mjs +1 -1
  23. package/dist/components/Heros/RenderHero.mjs +1 -1
  24. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  25. package/dist/components/Heros/index.mjs +1 -1
  26. package/dist/components/Other/index.mjs +1 -1
  27. package/dist/components/Projects/AddEpicModal.js +1 -1
  28. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  29. package/dist/components/Projects/AddTaskModal.js +1 -1
  30. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  31. package/dist/components/Projects/EpicsView.d.ts +1 -1
  32. package/dist/components/Projects/EpicsView.js +2 -1
  33. package/dist/components/Projects/EpicsView.mjs +1 -1
  34. package/dist/components/Projects/KanbanBoardView.js +1 -1
  35. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  36. package/dist/components/Projects/PlanningView.js +1 -1
  37. package/dist/components/Projects/PlanningView.mjs +1 -1
  38. package/dist/components/Projects/ProjectPage.js +1 -1
  39. package/dist/components/Projects/ProjectPage.mjs +1 -1
  40. package/dist/components/Projects/ProjectView.js +1 -1
  41. package/dist/components/Projects/ProjectView.mjs +1 -1
  42. package/dist/components/Projects/index.js +1 -1
  43. package/dist/components/Projects/index.mjs +1 -1
  44. package/dist/components/index.js +12 -12
  45. package/dist/components/index.mjs +1 -1
  46. package/dist/index.js +15 -15
  47. package/dist/index.mjs +1 -1
  48. package/dist/metafile-cjs.json +1 -1
  49. package/dist/metafile-esm.json +1 -1
  50. package/dist/pages/Blog.mjs +1 -1
  51. package/dist/pages/Documentation.mjs +1 -1
  52. package/dist/pages/IndexPage.mjs +1 -1
  53. package/dist/pages/Intranet.mjs +1 -1
  54. package/dist/pages/LandingPage.mjs +1 -1
  55. package/dist/pages/Page.mjs +1 -1
  56. package/dist/pages/Publish.mjs +1 -1
  57. package/dist/pages/Website.mjs +1 -1
  58. package/dist/sections/AboutSection.mjs +1 -1
  59. package/dist/sections/BlogDetail.mjs +1 -1
  60. package/dist/sections/BlogList.mjs +1 -1
  61. package/dist/sections/PageSections.mjs +1 -1
  62. package/dist/sections/PricingSection.mjs +1 -1
  63. package/dist/sections/ServiceSection.mjs +1 -1
  64. package/dist/sections/index.mjs +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunk-2IMVYO7X.mjs +0 -1
  67. package/dist/chunk-DTIHVFME.mjs +0 -4
  68. package/dist/chunk-E6Y5COQK.mjs +0 -1
  69. package/dist/chunk-TOI73VEE.mjs +0 -1
  70. package/dist/chunk-WSQHAE6Q.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as ne}from"./chunk-NGX2VCHS.mjs";import{a as se}from"./chunk-Z22NSJMF.mjs";import{a as u}from"./chunk-UVHMI3PU.mjs";import{a as ae}from"./chunk-B4H6T2GP.mjs";import{a as te}from"./chunk-L5JPAKPM.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{b as g}from"./chunk-CSBGSBEU.mjs";import{a as x}from"./chunk-YO3GQYRJ.mjs";import{useState as c,useEffect as re,useRef as ie}from"react";import{Calendar as B,User as Be,Plus as Oe,CalendarDays as Ae,Edit2 as le,Trash2 as oe,Check as ze,X as F,ChevronDown as O,ChevronUp as A}from"lucide-react";import{Fragment as de,jsx as t,jsxs as a}from"react/jsx-runtime";var Xe=({tasks:z,epics:ce,sprints:b,onUpdateTask:me,onTaskClick:ue,onAddSprint:pe,onUpdateSprint:ge,onDeleteSprint:L})=>{let[p,ve]=c([]),[y,fe]=c(new Set),[S,U]=c(null),[xe,w]=c(!1),[he,j]=c(null),[k,P]=c(null),[m,C]=c({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[M,I]=c([]),[R,V]=c("upcoming"),[D,E]=c(!1),[v,Ne]=c(0),h=ie(null),be=ie(null);re(()=>{let e=()=>{h.current&&Ne(h.current.offsetHeight)};e();let s=new ResizeObserver(e);return h.current&&s.observe(h.current),()=>s.disconnect()},[]);let $=e=>ce.find(s=>s.id===Number(e)),ye=e=>b.find(s=>s.id===Number(e)),Se=e=>{let s={high:"bg-red-100 text-red-800 border-red-200",medium:"bg-orange-100 text-orange-800 border-orange-200",low:"bg-green-100 text-green-800 border-green-200"};return s[e]||s.medium},we=e=>{if(!e||e?.length===0)return"";let s=e?.trim().split(" ");if(s?.length===1)return s[0];let n=s[0],r=s[s.length-1][0].toUpperCase();return`${n} ${r}`},X=e=>{let s={},n=[];return e.forEach(r=>{r.epic?(s[u(r.epic)]||(s[u(r.epic)]=[]),s[u(r.epic)].push(r)):n.push(r)}),{tasksByEpic:s,unassignedTasks:n}};re(()=>{I(b)},[b]);let q=M.filter(e=>{switch(R){default:return!0}}),G=M.filter(e=>p.includes(e.id.toString())),f=z.filter(e=>!e.sprint||e.status==="backlog"),ke=f.reduce((e,s)=>e+(s.storyPoints||0),0),J=e=>{ve(s=>s.includes(e)?s.filter(n=>n!==e):s?.length<3?[...s,e]:s)},T=e=>{fe(s=>{let n=new Set(s);return n.has(e)?n.delete(e):n.add(e),n})},Ce=e=>{pe(e),w(!1)},K=e=>{P(e.id.toString()),C({name:e.name,description:e.description||"",startDate:e.startDate?new Date(e.startDate).toISOString().split("T")[0]:e.startDate,endDate:e.endDate?new Date(e.endDate).toISOString().split("T")[0]:e.endDate,isActive:!1})},De=()=>{k&&(ge(k,{name:m.name,description:m.description,startDate:m.startDate,endDate:m.endDate}),I(e=>e.map(s=>(s.id===Number(k)&&(s.name=m.name,s.description=m.description,s.startDate=m.startDate,s.endDate=m.endDate),s))),P(null))},Ee=()=>{P(null),C({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Te=(e,s)=>{U(s),e.dataTransfer.effectAllowed="move"},Q=e=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},W=e=>{j(e)},Y=()=>{j(null)},Z=(e,s)=>{if(e.preventDefault(),j(null),!S)return;(u(S.sprint)||void 0)!==Number(s)&&me(S.id.toString(),{sprint:Number(s)}),U(null)},N=({task:e,showSprint:s=!1})=>{let n=e.epic?$(u(e.epic).toString()):null,r=e.sprint?ye(u(e.sprint).toString()):null;return t(x,{className:"p-3 cursor-grab active:cursor-grabbing hover:shadow-md transition-all duration-200 border border-border bg-card hover:bg-accent/50",draggable:!0,onDragStart:o=>{o.dataTransfer.effectAllowed="move",o.dataTransfer.setData("text/plain",e.id.toString()),Te(o,e)},onClick:o=>{S===null&&ue(e)},style:{userSelect:"none"},children:a("div",{className:"space-y-2 pointer-events-none",children:[a("div",{className:"flex items-start justify-between gap-2",children:[t("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:e.name}),t(g,{className:`text-xs ${Se(e.priority||"medium")}`,children:e.priority?.[0]?.toUpperCase()})]}),a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-1",children:[n&&t("div",{className:`w-2 h-2 rounded-full ${n.color}`}),t("span",{className:"text-muted-foreground truncate",children:n?.name})]}),t("span",{className:"text-muted-foreground",children:we(e.assignee?.value?.name)})]}),s&&r&&a("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[t(B,{className:"h-3 w-3"}),t("span",{children:r.name})]})]})})};return a("div",{ref:be,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:h,className:"flex-shrink-0",children:t(se,{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:()=>w(!0)}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:v>0?`calc(100vh - ${v+120}px)`:"calc(100vh - 12rem)"},children:[a("div",{className:"mb-4",children:[t(x,{className:"p-3 bg-card shadow-sm",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-3",children:[a("div",{children:[t("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"}),a("p",{className:"text-xs text-muted-foreground",children:[p?.length,"/3 selected"]})]}),p?.length>0&&a("div",{className:"flex items-center gap-2",children:[t("span",{className:"text-xs text-muted-foreground",children:"Viewing:"}),t("div",{className:"flex flex-wrap gap-1",children:G.map(e=>a("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[t("span",{className:"max-w-[80px] truncate",children:e.name}),t("button",{onClick:()=>J(e.id.toString()),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:t(F,{className:"h-4 w-4"})})]},e.id))})]})]}),a("div",{className:"flex items-center gap-2",children:[a(d,{onClick:()=>w(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[t(Oe,{className:"h-3 w-3"}),"Add"]}),a(d,{onClick:()=>E(!D),variant:"outline",size:"sm",className:"gap-1",children:[t(B,{className:"h-3 w-3"}),D?"Close":"Select"]})]})]})}),D&&t("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>E(!1)}),t("div",{className:`fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl z-10 transition-all duration-300 ease-in-out ${D?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:a(x,{className:"h-full rounded-none border-0 flex flex-col",children:[a("div",{className:"p-4 border-b bg-muted/30 flex-shrink-0",children:[a("div",{className:"flex items-center justify-between",children:[t("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),t(d,{variant:"ghost",size:"sm",onClick:()=>E(!1),className:"h-8 w-8 p-0",children:t(F,{className:"h-4 w-4"})})]}),t("p",{className:"text-sm text-muted-foreground mt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),a("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[t("div",{className:"flex gap-1 mb-4 bg-muted p-1 rounded-lg",children:[{key:"all",label:"All",count:b.length},{key:"active",label:"Active"},{key:"upcoming",label:"Upcoming"}].map(e=>a(d,{variant:R===e.key?"default":"outline",size:"sm",onClick:()=>V(e.key),className:"text-xs h-8 px-3 flex-1",children:[e.label," (",e.count,")"]},e.key))}),t("div",{className:"space-y-2 flex-1 overflow-y-auto",children:q.length>0?q.map(e=>{let s=p.includes(e.id.toString()),n=z.filter(i=>u(i.sprint)===e.id).length,r=!s&&p.length<3;return t("div",{className:`p-3 rounded-lg border transition-all ${s?"bg-primary/10 border-primary/30":r?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:k===e.id.toString()?a("div",{className:"space-y-3",children:[t(te,{value:m.name,onChange:i=>C(l=>({...l,name:i.target.value})),className:"text-sm",placeholder:"Sprint name"}),t(ae,{value:m.description,onChange:i=>C(l=>({...l,description:i.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),a("div",{className:"flex gap-2",children:[a(d,{size:"sm",onClick:()=>De(),className:"flex-1",children:[t(ze,{className:"h-3 w-3 mr-1"}),"Save"]}),a(d,{size:"sm",variant:"outline",onClick:Ee,className:"flex-1",children:[t(F,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):a("div",{children:[a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2 mb-1",children:[t("h4",{className:"font-medium text-sm text-foreground truncate",children:e.name}),t(g,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),t("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:e.description}),a("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[a("span",{className:"flex items-center gap-1",children:[t(Ae,{className:"h-3 w-3"}),new Date(e.startDate).toLocaleDateString()]}),a("span",{className:"flex items-center gap-1",children:[t(Be,{className:"h-3 w-3"}),n," tasks"]})]})]}),a("div",{className:"flex items-center gap-1 ml-2",children:[t(d,{size:"sm",variant:"ghost",onClick:()=>K(e),className:"h-6 w-6 p-0",children:t(le,{className:"h-3 w-3"})}),t(d,{size:"sm",variant:"ghost",onClick:()=>L(e.id.toString()),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:t(oe,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex items-center justify-between mt-2",children:t(d,{variant:s?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>J(e.id.toString()),disabled:!s&&p?.length>=3,children:t("span",{className:"pointer-events-none select-none",children:s?"Deselect":p?.length>=3?"Limit Reached":"Select"})})})]})},e.id)}):a("div",{className:"text-center py-8 text-muted-foreground",children:[t(B,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),a("p",{className:"text-sm",children:['No sprints found for "',R,'" filter']}),t(d,{variant:"link",size:"sm",onClick:()=>V("all"),className:"text-xs",children:"Show all sprints"})]})}),p?.length===0&&t("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:a("div",{className:"text-center",children:[t(B,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),t("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),t("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[t("div",{className:"lg:col-span-1",children:a(x,{className:"p-4 h-full bg-card border-l-4 border-l-gray-400 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:Q,onDragEnter:()=>W("backlog"),onDragLeave:Y,onDrop:e=>Z(e,"backlog"),style:{height:v>0?`calc(100vh - ${v+200}px)`:"calc(100vh - 16rem)"},children:[a("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[t("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"}),a("div",{className:"flex items-center gap-2",children:[a(g,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[f?.length," tasks"]}),a(g,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[ke," pts"]})]})]}),t("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${he==="backlog"?"bg-primary/10":""}`,children:(()=>{let{tasksByEpic:e,unassignedTasks:s}=X(f);return a(de,{children:[Object.entries(e).map(([n,r])=>{let i=$(n);if(!i)return null;let l=y.has(n);return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>T(n),children:[t("div",{className:`w-3 h-3 rounded-full ${i.color}`}),t("span",{className:"font-medium text-muted-foreground",children:i.name}),a("span",{className:"text-muted-foreground",children:["(",r?.length,")"]}),t("div",{className:"ml-auto",children:l?t(O,{className:"h-3 w-3 text-muted-foreground"}):t(A,{className:"h-3 w-3 text-muted-foreground"})})]}),!l&&t("div",{className:"space-y-2 pl-2",children:r.map(o=>t(N,{task:o},o.id))})]},n)}),s?.length>0&&(()=>{let n=y.has("no-epic");return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>T("no-epic"),children:[t("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),t("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),a("span",{className:"text-muted-foreground",children:["(",s?.length,")"]}),t("div",{className:"ml-auto",children:n?t(O,{className:"h-3 w-3 text-muted-foreground"}):t(A,{className:"h-3 w-3 text-muted-foreground"})})]}),!n&&t("div",{className:"space-y-2 pl-2",children:s?.map(r=>t(N,{task:r},r.id))})]})})(),f?.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"}),f?.length>0&&Object.keys(e).length===0&&s.length===0&&a("div",{className:"space-y-2",children:[t("div",{className:"text-xs text-muted-foreground mb-2",children:"Direct backlog tasks:"}),f?.map(n=>t(N,{task:n},n.id))]})]})})()})]})}),G.map(e=>{let s=z.filter(r=>u(r?.sprint)===e.id),n=s.reduce((r,i)=>r+(i?.storyPoints||0),0);return a(x,{className:"p-4 h-full bg-card border-l-4 border-l-blue-500 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:Q,onDragEnter:()=>W(e.id.toString()),onDragLeave:Y,onDrop:r=>Z(r,e.id.toString()),style:{height:v>0?`calc(100vh - ${v+200}px)`:"calc(100vh - 16rem)"},children:[a("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[t("div",{children:t("h3",{className:"font-semibold text-foreground select-none text-lg",children:e.name})}),a("div",{className:"flex items-center gap-2",children:[a(g,{variant:"secondary",className:"bg-muted flex items-center justify-center text-muted-foreground",children:[s?.length," tasks"]}),a(g,{variant:"outline",className:"bg-blue-50 flex items-center justify-center text-blue-700 border-blue-200",children:[n," pts"]}),t(d,{size:"sm",variant:"ghost",onClick:()=>{E(!0),K(e)},className:"h-6 px-2",children:t(le,{className:"h-3 w-3"})}),t(d,{size:"sm",variant:"ghost",onClick:()=>L(e.id.toString()),className:"h-6 px-2 text-destructive hover:text-destructive",children:t(oe,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:r,unassignedTasks:i}=X(s);return a(de,{children:[Object.entries(r).map(([l,o])=>{let H=$(l);if(!H)return null;let _=y.has(l);return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>T(l),children:[t("div",{className:`w-3 h-3 rounded-full ${H.color}`}),t("span",{className:"font-medium text-muted-foreground",children:H.name}),a("span",{className:"text-muted-foreground",children:["(",o?.length,")"]}),t("div",{className:"ml-auto",children:_?t(O,{className:"h-3 w-3 text-muted-foreground"}):t(A,{className:"h-3 w-3 text-muted-foreground"})})]}),!_&&t("div",{className:"space-y-2 pl-2",children:o?.map(ee=>t(N,{task:ee},ee.id))})]},l)}),i?.length>0&&(()=>{let l=y.has("no-epic");return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>T("no-epic"),children:[t("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),t("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),a("span",{className:"text-muted-foreground",children:["(",i?.length,")"]}),t("div",{className:"ml-auto",children:l?t(O,{className:"h-3 w-3 text-muted-foreground"}):t(A,{className:"h-3 w-3 text-muted-foreground"})})]}),!l&&t("div",{className:"space-y-2 pl-2",children:i?.map(o=>t(N,{task:o},o.id))})]})})(),s?.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(ne,{isOpen:xe,onClose:()=>w(!1),onAddSprint:Ce})]})})]})};export{Xe as a};
@@ -0,0 +1 @@
1
+ import{a as d,c as s,d as p,g as m,i as g}from"./chunk-YFAZQYK4.mjs";import{a as f}from"./chunk-B4H6T2GP.mjs";import{a as l}from"./chunk-TVZOULLL.mjs";import{a as v,f as b,g as D,h,i as S}from"./chunk-3UMMMQEH.mjs";import{a as o}from"./chunk-L5JPAKPM.mjs";import{b as c}from"./chunk-ZUA4KNIR.mjs";import{useState as T}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var R=({isOpen:y,onClose:r,onAddEpic:C})=>{let[t,u]=T({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),w=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],N=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],E=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],O=e=>{e.preventDefault(),t.name.trim()&&(C({name:t.name.trim(),description:t.description.trim(),color:t.color,confidence:t.confidence,phase:t.phase,startDate:t.startDate,endDate:t.endDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),u({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString(),endDate:new Date().toISOString(),progress:0}),r())},n=(e,I)=>{u(L=>({...L,[e]:I}))};return a(v,{open:y,onOpenChange:r,children:i(b,{className:"sm:max-w-md",children:[a(D,{children:a(S,{children:"Add New Epic"})}),i("form",{onSubmit:O,className:"space-y-4",children:[i("div",{className:"space-y-2",children:[a(l,{htmlFor:"name",children:"Epic Name"}),a(o,{id:"name",value:t.name,onChange:e=>n("name",e.target.value),placeholder:"Enter epic name",required:!0})]}),i("div",{className:"space-y-2",children:[a(l,{htmlFor:"description",children:"Description"}),a(f,{id:"description",value:t.description,onChange:e=>n("description",e.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),i("div",{className:"space-y-2",children:[a(l,{children:"Color"}),a("div",{className:"flex gap-2 flex-wrap",children:w.map(e=>a("button",{type:"button",onClick:()=>n("color",e),className:`w-8 h-8 rounded-full ${e} ${t.color===e?"ring-2 ring-gray-400":""}`},e))})]}),i("div",{className:"grid grid-cols-2 gap-4",children:[i("div",{className:"space-y-2",children:[a(l,{children:"Confidence"}),i(d,{value:t.confidence,onValueChange:e=>n("confidence",e),children:[a(p,{children:a(s,{})}),a(m,{children:N.map(e=>a(g,{value:e.value,children:e.label},e.value))})]})]}),i("div",{className:"space-y-2",children:[a(l,{children:"Phase"}),i(d,{value:t.phase.toString(),onValueChange:e=>n("phase",parseInt(e)),children:[a(p,{children:a(s,{})}),a(m,{children:E.map(e=>a(g,{value:e.value.toString(),children:e.label},e.value))})]})]})]}),i("div",{className:"grid grid-cols-2 gap-4",children:[i("div",{className:"space-y-2",children:[a(l,{children:"Start Date"}),a(o,{type:"date",value:t.startDate,onChange:e=>n("startDate",e.target.value)})]}),i("div",{className:"space-y-2",children:[a(l,{children:"End Date"}),a(o,{type:"date",value:t.endDate,onChange:e=>n("endDate",e.target.value)})]})]}),i(h,{children:[a(c,{type:"button",variant:"outline",onClick:r,children:"Cancel"}),a(c,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};export{R as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as k}from"./chunk-5SHZBJ5R.mjs";import{a as C}from"./chunk-LJOWXPWW.mjs";import{a as S,b as w}from"./chunk-MXCW6SOT.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-255P6K5W.mjs";import{a as f}from"./chunk-YKG4FNS4.mjs";import{a as v}from"./chunk-HKGW6JI2.mjs";import{c as m,f as p}from"./chunk-N3B3XNV3.mjs";import{a as d}from"./chunk-2BR55L74.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 S,b as w}from"./chunk-MXCW6SOT.mjs";import{a as k}from"./chunk-5SHZBJ5R.mjs";import{a as C}from"./chunk-I2GNNRFH.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-255P6K5W.mjs";import{a as v}from"./chunk-HKGW6JI2.mjs";import{a as f}from"./chunk-YKG4FNS4.mjs";import{c as m,f as p}from"./chunk-N3B3XNV3.mjs";import{a as d}from"./chunk-2BR55L74.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};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-255P6K5W.mjs";import{a as m}from"./chunk-YKG4FNS4.mjs";import{a as l}from"./chunk-HKGW6JI2.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
1
+ import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-255P6K5W.mjs";import{a as l}from"./chunk-HKGW6JI2.mjs";import{a as m}from"./chunk-YKG4FNS4.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-KZCIHFTM.mjs";import{a as F}from"./chunk-6BQNN2KT.mjs";import{a as V}from"./chunk-TOI73VEE.mjs";import{a as z}from"./chunk-WSQHAE6Q.mjs";import{a as D}from"./chunk-KG7HG2VO.mjs";import{a as L}from"./chunk-Z22NSJMF.mjs";import{a as S}from"./chunk-UVHMI3PU.mjs";import{b as K}from"./chunk-CSBGSBEU.mjs";import{useEffect as l,useState as n,useRef as q}from"react";import{jsx as a,jsxs as g}from"react/jsx-runtime";var Se=({initialTasks:k=[],initialEpics:f=[],initialSprints:T=[],initialUsers:G=[],initialColleagues:J=[],initialProjects:le=[],onAddTask:Q,onUpdateTask:v,onDeleteTask:b,onTaskClick:W,onAddEpic:X,onAddComment:Y})=>{let[w,d]=n(k),[c,O]=n(f),[h,Z]=n(T),[y,N]=n(!1),[x,P]=n(!1),[p,A]=n(null),[C,H]=n(null),[B,pe]=n(G),[M,ue]=n(J),[u,I]=n(0),o=q(null),_=q(null),R=c.filter(e=>!0).map(e=>e.id),me=h.find(e=>e.isSelected);R.push(0),l(()=>{d(k)},[k]),l(()=>{O(f)},[f]),l(()=>{Z(T)},[T]),l(()=>{let e=()=>{if(o.current){let i=o.current.offsetHeight;I(i)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),l(()=>{let e=setTimeout(()=>{o.current&&I(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[y,x]);let ee=w.filter(e=>!0),te=e=>ee.filter(t=>t.status===e),se=e=>{let t={};return c.forEach(s=>{t[s.id]=e.filter(i=>S(i.epic)===s.id)}),t["no-epic"]=e.filter(s=>!S(s.epic)),t},U=e=>{H(e)},ae=e=>{C&&(d(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),v?.(C.id.toString(),{status:e}),H(null))},ie=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};d(s=>[...s,t]),Q?.(e)},ne=async(e,t)=>{if(d(i=>i.map(r=>r.id===Number(e)?{...r,...t}:r)),v)return await v(e,t);let s=w.find(i=>i.id===Number(e));if(!s)throw new Error("Task not found");return{...s,...t}},oe=async e=>{d(t=>t.filter(s=>s.id!==Number(e))),p?.id===Number(e)&&A(null),b&&await b(e)},re=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};O(s=>[...s,t]),X?.(e)},j=e=>{A(e),W?.(e)},de=[{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"}],ce=u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)";return g("div",{ref:_,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[a("div",{ref:o,className:"flex-shrink-0",children:a(L,{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:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>P(!0)}})}),a("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)"},children:a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:de.map(e=>{let t=te(e.status),s=se(t);return g($,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",height:ce,children:[s["no-epic"].map(i=>a(D,{epic:null,task:i,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"})),R.map(i=>{let r=c.find(m=>m.id===i),E=s[i]||[];return E.length===0?null:g("div",{className:"mb-6",children:[g("div",{className:"flex items-center gap-2 mb-3",children:[a("div",{className:`w-3 h-3 rounded-full ${r?.color}`}),a("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:r?.name||"No Epic"}),a(K,{variant:"secondary",className:"text-xs",children:E.length})]})," ",a("div",{className:"space-y-3",children:E.map(m=>a(D,{task:m,epic:r,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"},m.id))})]},i)})]},e.id)})})})}),a(z,{isOpen:y,onClose:()=>N(!1),onAddTask:ie,assignees:[...M,...B],epics:c,sprints:h}),a(V,{isOpen:x,onClose:()=>P(!1),onAddEpic:re}),p&&a(F,{isOpen:!!p,onClose:()=>A(null),initialTask:p,epics:c,sprints:h,onUpdateTask:ne,onDeleteTask:oe,colleagues:[...M,...B],onAddComment:Y})]})};export{Se as a};
1
+ import{a as $}from"./chunk-KZCIHFTM.mjs";import{a as F}from"./chunk-6BQNN2KT.mjs";import{a as D}from"./chunk-KG7HG2VO.mjs";import{a as V}from"./chunk-6R36YTGY.mjs";import{a as z}from"./chunk-QC2UWZWL.mjs";import{a as L}from"./chunk-Z22NSJMF.mjs";import{a as S}from"./chunk-UVHMI3PU.mjs";import{b as K}from"./chunk-CSBGSBEU.mjs";import{useEffect as l,useState as n,useRef as q}from"react";import{jsx as a,jsxs as g}from"react/jsx-runtime";var Se=({initialTasks:k=[],initialEpics:f=[],initialSprints:T=[],initialUsers:G=[],initialColleagues:J=[],initialProjects:le=[],onAddTask:Q,onUpdateTask:v,onDeleteTask:b,onTaskClick:W,onAddEpic:X,onAddComment:Y})=>{let[w,d]=n(k),[c,O]=n(f),[h,Z]=n(T),[y,N]=n(!1),[x,P]=n(!1),[p,A]=n(null),[C,H]=n(null),[B,pe]=n(G),[M,ue]=n(J),[u,I]=n(0),o=q(null),_=q(null),R=c.filter(e=>!0).map(e=>e.id),me=h.find(e=>e.isSelected);R.push(0),l(()=>{d(k)},[k]),l(()=>{O(f)},[f]),l(()=>{Z(T)},[T]),l(()=>{let e=()=>{if(o.current){let i=o.current.offsetHeight;I(i)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),l(()=>{let e=setTimeout(()=>{o.current&&I(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[y,x]);let ee=w.filter(e=>!0),te=e=>ee.filter(t=>t.status===e),se=e=>{let t={};return c.forEach(s=>{t[s.id]=e.filter(i=>S(i.epic)===s.id)}),t["no-epic"]=e.filter(s=>!S(s.epic)),t},U=e=>{H(e)},ae=e=>{C&&(d(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),v?.(C.id.toString(),{status:e}),H(null))},ie=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};d(s=>[...s,t]),Q?.(e)},ne=async(e,t)=>{if(d(i=>i.map(r=>r.id===Number(e)?{...r,...t}:r)),v)return await v(e,t);let s=w.find(i=>i.id===Number(e));if(!s)throw new Error("Task not found");return{...s,...t}},oe=async e=>{d(t=>t.filter(s=>s.id!==Number(e))),p?.id===Number(e)&&A(null),b&&await b(e)},re=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};O(s=>[...s,t]),X?.(e)},j=e=>{A(e),W?.(e)},de=[{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"}],ce=u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)";return g("div",{ref:_,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[a("div",{ref:o,className:"flex-shrink-0",children:a(L,{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:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>P(!0)}})}),a("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)"},children:a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:de.map(e=>{let t=te(e.status),s=se(t);return g($,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",height:ce,children:[s["no-epic"].map(i=>a(D,{epic:null,task:i,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"})),R.map(i=>{let r=c.find(m=>m.id===i),E=s[i]||[];return E.length===0?null:g("div",{className:"mb-6",children:[g("div",{className:"flex items-center gap-2 mb-3",children:[a("div",{className:`w-3 h-3 rounded-full ${r?.color}`}),a("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:r?.name||"No Epic"}),a(K,{variant:"secondary",className:"text-xs",children:E.length})]})," ",a("div",{className:"space-y-3",children:E.map(m=>a(D,{task:m,epic:r,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"},m.id))})]},i)})]},e.id)})})})}),a(z,{isOpen:y,onClose:()=>N(!1),onAddTask:ie,assignees:[...M,...B],epics:c,sprints:h}),a(V,{isOpen:x,onClose:()=>P(!1),onAddEpic:re}),p&&a(F,{isOpen:!!p,onClose:()=>A(null),initialTask:p,epics:c,sprints:h,onUpdateTask:ne,onDeleteTask:oe,colleagues:[...M,...B],onAddComment:Y})]})};export{Se as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as Q}from"./chunk-5N4WW7O2.mjs";import{a as z}from"./chunk-CBYI4FLL.mjs";import{a as L}from"./chunk-2R3MJSQ7.mjs";import{a as J}from"./chunk-USGRM22Y.mjs";import{a as q}from"./chunk-6R36YTGY.mjs";import{a as W}from"./chunk-QC2UWZWL.mjs";import{a as H}from"./chunk-QBUU2AQL.mjs";import{a as K}from"./chunk-EOR2BAI2.mjs";import{a as F}from"./chunk-UVHMI3PU.mjs";import{useEffect as o,useState as s}from"react";import{useRouter as Je}from"next/navigation";import{jsx as a,jsxs as Qe}from"react/jsx-runtime";function Le({title:Xe="",initialTasks:f=[],initialEpics:h=[],initialSprints:A=[],initialProjects:D=[],initialReminders:v=[],initialColleagues:E=[],initialUsers:w=[],initialFiles:S=[],initialView:P="kanban",onAddTask:X,onUpdateTask:Y,onDeleteTask:Z,onTaskClick:Ye,onAddEpic:_,onUpdateEpic:$,onDeleteEpic:ee,onAddTaskToEpic:Ze,onAddSprint:te,onUpdateSprint:ne,onDeleteSprint:ie,onAddProject:se,onUpdateProject:ae,onDeleteProject:oe,onFileAdd:de,onFileEdit:re,onFileDelete:le,onFileClick:ce,onAddReminder:pe,onUpdateReminder:me,onDeleteReminder:ke,onViewChange:Te,onToggleMobileMenu:ue,onTeamClick:_e,onTeamChange:$e,onCopilotClick:et,handleAddComment:ge}){let[c,d]=s(f),[l,p]=s(h),[m,k]=s(A),[fe,T]=s(D),[he,u]=s(v),[C,Ae]=s(E),[O,De]=s(w),[ve,y]=s(S),[Ee,R]=s(!1),[we,M]=s(!1),[Se,N]=s(null),[Pe,Ce]=s(null),[V,j]=s(null),[r,I]=s(P||"kanban"),[tt,Ue]=s(!1),be=Je();o(()=>{d(f)},[f]),o(()=>{k(A)},[A]),o(()=>{p(h)},[h]),o(()=>{T(D)},[D]),o(()=>{y(S)},[S]),o(()=>{De(w)},[w]),o(()=>{Ae(E)},[E]),o(()=>{u(v)},[v]),o(()=>{I(P)},[P]);let Fe=c.filter(e=>{}),nt=e=>Fe.filter(t=>t.status===e),it=e=>{let t={};return l.forEach(n=>{}),t},st=e=>{j(e)},at=e=>{V&&(d(t=>t.map(n=>n.id===V.id?{...n,status:e}:n)),j(null))},B=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};d(n=>[...n,t]),X?.(t)},g=async(e,t)=>(d(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),await Y?.(e,t)),ot=async(e,t)=>{g(e,t)},x=e=>{d(t=>t.filter(n=>n.id!==Number(e))),Se?.id===Number(e)&&N(null),Z?.(e)},dt=async e=>{x(e)},rt=e=>{let t={...e,id:Date.now()};T(n=>[...n,t]),se?.(e)},lt=(e,t)=>{T(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),ae?.(e,t)},ct=e=>{T(t=>t.filter(n=>n.id!==Number(e))),oe?.(e)},G=e=>{let t={...e,id:Date.now()};p(n=>[...n,t]),_?.({...t})},Oe=()=>{M(!0)},ye=(e,t)=>{p(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),$?.(e,t)},Re=e=>{p(t=>t.filter(n=>n.id!==Number(e))),d(t=>t.filter(n=>F(n.epic)!==Number(e))),ee?.(e)},Me=e=>{let t={...e,id:Date.now()};k(n=>[...n,t]),te?.(e)},Ne=(e,t)=>{k(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),ne?.(e,t)},Ve=e=>{e==="backlog"||e==="all-tasks"||(k(t=>t.filter(n=>n.id!==Number(e))),d(t=>t.map(n=>F(n.sprint)===Number(e)?{...n,sprint:void 0}:n)),ie?.(e))},U=e=>{N(e)},je=e=>{e==="planning"&&window.innerWidth<768||(I(e),Te?.(e))},pt=()=>{Ue(e=>!e),ue?.()},mt=()=>{be.push("/")},kt=e=>{console.log("Switching to team:",e)},Tt=e=>{console.log("Switching to team:",e)},Ie=e=>{R(!0)},Be=()=>{R(!1),Ce(null)},xe=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString()};u(n=>[...n,t]),pe?.(e)},Ge=(e,t)=>{u(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),me?.(e,t)},He=e=>{u(t=>t.filter(n=>n.id!==Number(e))),ke?.(e)},Ke=()=>{de?.()},We=e=>{re?.(e)},qe=e=>{y(t=>t.filter(n=>n.name!==e)),le?.(e)},ze=e=>{ce?.(e)},ut=[{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"}],gt=()=>{switch(r){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"}},b=[{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")}],ft=b.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ht=b.length>3,At=b.slice(3);return Qe(K,{currentView:r,onViewChange:je,children:[r==="kanban"&&a("div",{className:"h-full overflow-hidden",children:a(z,{initialProjects:fe,initialEpics:l,initialSprints:m.map(e=>({...e,isSelected:!1})),initialTasks:c,initialColleagues:C,initialUsers:O,onAddTask:B,onUpdateTask:g,onDeleteTask:x,onTaskClick:U,onAddEpic:G,onAddComment:ge})}),r==="planning"&&a("div",{className:"hidden md:block h-full",children:a(L,{tasks:c,epics:l,sprints:m,onUpdateTask:g,onTaskClick:U,onAddSprint:Me,onUpdateSprint:Ne,onDeleteSprint:Ve})}),r==="tasks"&&a("div",{className:"h-full",children:a(Q,{initialReminders:he,initialColleagues:C,onAddReminder:xe,onUpdateReminder:Ge,onDeleteReminder:He})}),r==="files"&&a("div",{className:"h-full",children:a(H,{initialFiles:ve,onFileAdd:Ke,onFileEdit:We,onFileDelete:qe,onFileClick:ze,compactView:!1})}),r==="epics"&&a("div",{className:"h-full",children:a(J,{tasks:c,epics:l,sprints:m,onUpdateTask:g,onTaskClick:U,onAddTaskToEpic:Ie,onAddEpic:Oe,onUpdateEpic:ye,onDeleteEpic:Re})}),a(W,{isOpen:Ee,onClose:Be,onAddTask:B,epics:l,sprints:m,assignees:[...C,...O],defaultEpicId:Pe||void 0}),a(q,{isOpen:we,onClose:()=>M(!1),onAddEpic:G})]})}export{Le as a};
@@ -1,4 +1,4 @@
1
- import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-M7NV6EFH.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-FMJBJ3HN.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
1
+ import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-M7NV6EFH.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as p}from"./chunk-FMJBJ3HN.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
2
2
  (min-width:768px) 50vw,
3
3
  (min-width:1024px) 33vw,
4
4
  100vw
@@ -0,0 +1 @@
1
+ import{a as S,b as T}from"./chunk-E4TE4NV6.mjs";import{a as p,c as m,d,g,i as l}from"./chunk-YFAZQYK4.mjs";import{a as x}from"./chunk-B4H6T2GP.mjs";import{a as i}from"./chunk-TVZOULLL.mjs";import{a as k,f as h,g as f,h as N,i as C}from"./chunk-3UMMMQEH.mjs";import{a as y}from"./chunk-L5JPAKPM.mjs";import{b}from"./chunk-ZUA4KNIR.mjs";import{useState as B,useEffect as D}from"react";import{BookOpen as G,Bug as V,Zap as E,AlertCircle as M}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var H=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:G},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:M},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:V},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:E}],R=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],X=({isOpen:n,onClose:u,onAddTask:A,epics:F,sprints:L,assignees:P,defaultEpicId:s})=>{let[a,c]=B({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:"",sprint:"none",assignee:""});D(()=>{n&&s&&c(e=>({...e,epic:s}))},[n,s]),D(()=>{n&&c({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:s||"",sprint:"none",assignee:""})},[n]);let w=e=>{e.preventDefault(),a.name.trim()&&(A({name:a.name.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,storyPoints:a.storyPoints,epic:Number(a.epic),sprint:Number(a.sprint),assignee:a.assignee.trim()?{relationTo:"digital-colleagues",value:Number(a.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),c({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:s||"",sprint:"",assignee:""}),u())},r=(e,v)=>{c(I=>({...I,[e]:v}))};return t(k,{open:n,onOpenChange:u,children:o(h,{className:"sm:max-w-md",children:[t(f,{children:t(C,{children:"Add New Task"})}),o("form",{onSubmit:w,className:"space-y-4",children:[o("div",{className:"space-y-2",children:[t(i,{htmlFor:"name",children:"Task Title"}),t(y,{id:"name",value:a.name,onChange:e=>r("name",e.target.value),placeholder:"Enter task title",required:!0})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"description",children:"Description"}),t(x,{id:"description",value:a.description,onChange:e=>r("description",e.target.value),placeholder:"Enter task description",rows:3})]}),o("div",{className:"space-y-2",children:[t(i,{children:"Type"}),t(S,{type:"single",value:a.type||"",onValueChange:e=>e&&r("type",e),children:H.map(e=>{let v=e.icon;return o(T,{value:e.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[t(v,{className:"h-4 w-4"}),e.label]},e.value)})})]}),o("div",{className:"space-y-2",children:[t(i,{children:"Priority"}),t(S,{type:"single",value:a.priority||"",onValueChange:e=>e&&r("priority",e),children:R.map(e=>t(T,{value:e.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:e.label},e.value))})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"points",children:"Story Points"}),t(y,{id:"points",type:"number",min:"1",max:"100",value:a.storyPoints,onChange:e=>r("storyPoints",parseInt(e.target.value)||1),placeholder:"Enter story points",required:!0})]}),!s&&o("div",{className:"space-y-2",children:[t(i,{htmlFor:"epic",children:"Epic"}),o(p,{value:a.epic,onValueChange:e=>r("epic",e),children:[t(d,{children:t(m,{placeholder:"Select an epic"})}),t(g,{children:F.map(e=>t(l,{value:e.id.toString(),children:o("div",{className:"flex items-center gap-2",children:[t("div",{className:`w-3 h-3 rounded-full ${e.color}`}),e.name]})},e.id))})]})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"sprint",children:"Sprint (Optional)"}),o(p,{value:a.sprint,onValueChange:e=>r("sprint",e),children:[t(d,{children:t(m,{placeholder:"Select a sprint"})}),o(g,{children:[t(l,{value:"none",children:"No Sprint"}),L.map(e=>t(l,{value:e.id.toString(),children:t("div",{className:"flex items-center gap-2",children:e.name})},e.id))]})]})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"sprint",children:"Assignee"}),o(p,{value:a.assignee,onValueChange:e=>r("assignee",e),children:[t(d,{children:t(m,{placeholder:"Select an Assignee"})}),o(g,{children:[t(l,{value:"none",children:"No Assignee"}),P.map(e=>t(l,{value:e.id.toString(),children:t("div",{className:"flex items-center gap-2",children:e.name})},e.id))]})]})]}),o(N,{children:[t(b,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),t(b,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};export{X as a};
@@ -0,0 +1 @@
1
+ import{a as A}from"./chunk-KG7HG2VO.mjs";import{a as H}from"./chunk-6R36YTGY.mjs";import{a as P}from"./chunk-QC2UWZWL.mjs";import{a as D}from"./chunk-Z22NSJMF.mjs";import{a as x}from"./chunk-UVHMI3PU.mjs";import{a as S}from"./chunk-B4H6T2GP.mjs";import{a as y}from"./chunk-L5JPAKPM.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{b as u}from"./chunk-CSBGSBEU.mjs";import{a as C}from"./chunk-YO3GQYRJ.mjs";import{useState as n,useRef as O,useEffect as k}from"react";import{Plus as ie,Move as oe,Edit2 as ne,Trash2 as re,Check as de,X as le}from"lucide-react";import{Fragment as B,jsx as t,jsxs as s}from"react/jsx-runtime";var Te=({tasks:M,epics:f,sprints:z,onUpdateTask:R,onTaskClick:I,onAddTaskToEpic:$,onAddEpic:L,onUpdateEpic:F,onDeleteEpic:V})=>{let[j,v]=n(f),[g,E]=n(null),[r,h]=n(null),[o,d]=n({}),[p,w]=n(0),[U,N]=n(!1),[X,T]=n(!1),[q,G]=n(null),l=O(null),J=O(null);k(()=>{v(f)},[f]),k(()=>{let e=()=>{if(l.current){let b=l.current.offsetHeight;w(b)}};e();let a=new ResizeObserver(e);l.current&&a.observe(l.current);let c=()=>{setTimeout(e,100)};return window.addEventListener("storage",c),()=>{a.disconnect(),window.removeEventListener("storage",c)}},[]),k(()=>{let e=setTimeout(()=>{l.current&&w(l.current.offsetHeight)},300);return()=>clearTimeout(e)},[r]);let K=e=>{E(e)},Q=e=>{e.preventDefault()},W=(e,a)=>{e.preventDefault(),g&&x(g.epic).toString()!==a&&(R(g.id.toString(),{epic:Number(a)}),E(null))},Y=e=>M.filter(a=>x(a.epic).toString()===e),Z=e=>{h(e.id.toString()),d({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase})},_=async()=>{r&&o.name&&(await F(r.toString(),o),v(e=>e.map(a=>a.id.toString()===r?{...a,...o}:a)),h(null),d({}))},ee=()=>{h(null),d({})},te=async e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&(await V(e),v(a=>a.filter(c=>c.id.toString()!==e)))},ce=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,se=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 s(B,{children:[s("div",{ref:J,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:l,className:"flex-shrink-0",children:t(D,{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:()=>N(!0)}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:t("div",{className:"h-full overflow-y-auto",style:{height:p>0?`calc(100vh - ${p+120}px)`:"calc(100vh - 12rem)"},children:t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:j.map(e=>{let a=Y(e.id.toString()),c=a.reduce((i,ae)=>i+(ae.storyPoints||0),0),b=p>0?`calc(100vh - ${p+200}px)`:"calc(100vh - 14rem)";return s(C,{className:`flex flex-col ${r===e.id.toString()?"h-auto":""} bg-card shadow-sm`,style:{height:r===e.id.toString()?"auto":b,minHeight:"400px"},onDragOver:Q,onDrop:i=>W(i,e.id.toString()),children:[t("div",{className:"p-4 border-b border-border",children:r===e.id.toString()?s("div",{className:"space-y-4",children:[s("div",{className:"flex items-center justify-between",children:[t(y,{value:o.name||"",onChange:i=>d({...o,name:i.target.value}),placeholder:"Epic name",className:"font-semibold"}),s("div",{className:"flex gap-2 ml-2",children:[t(m,{size:"sm",variant:"ghost",onClick:_,className:"p-1 h-8 w-8",children:t(de,{className:"h-4 w-4"})}),t(m,{size:"sm",variant:"ghost",onClick:ee,className:"p-1 h-8 w-8",children:t(le,{className:"h-4 w-4"})})]})]}),t(S,{value:o.description||"",onChange:i=>d({...o,description:i.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),s("select",{value:o.confidence||e.confidence,onChange:i=>d({...o,confidence:i.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[t("option",{value:"low",children:"Low"}),t("option",{value:"medium",children:"Medium"}),t("option",{value:"high",children:"High"})]})]}),s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t("select",{value:o.phase?.toString()||e.phase.toString(),onChange:i=>d({...o,phase:parseInt(i.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[1,2,3,4,5,6,7,8,9].map(i=>s("option",{value:i.toString(),children:["Phase ",i]},i))})]})]})]}):s(B,{children:[s("div",{className:"flex items-center gap-2 mb-2",children:[t("div",{className:`w-4 h-4 rounded-full ${e.color}`}),t("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),s("div",{className:"flex gap-1",children:[t(m,{size:"sm",variant:"ghost",onClick:()=>Z(e),className:"p-1 h-8 w-8",children:t(ne,{className:"h-3 w-3"})}),t(m,{size:"sm",variant:"ghost",onClick:()=>te(e.id.toString()),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:t(re,{className:"h-3 w-3"})})]})]}),s("div",{className:"flex flex-wrap gap-2 mb-3",children:[s(u,{className:`text-xs ${se(e.confidence)}`,children:[e.confidence," confidence"]}),s(u,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),s(u,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[a.length," tasks"]}),s(u,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[c," pts"]})]}),e.description&&t("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),s(m,{onClick:()=>{T(!0),G(e)},variant:"outline",size:"sm",className:"w-full gap-2",children:[t(ie,{className:"h-4 w-4"}),"Add Task"]})]})}),t("div",{className:"flex-1 p-4 overflow-y-auto",children:t("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${g?"border-primary bg-primary/10":"border-border"}`,children:a.length===0?s("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[t(oe,{className:"h-8 w-8 mb-2"}),t("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):a.map(i=>t(A,{task:i,epic:e,onDragStart:K,onTaskClick:I,isCompact:!0},i.id))})})]},e.id)})})})})]}),t(H,{isOpen:U,onClose:()=>N(!1),onAddEpic:L}),t(P,{isOpen:X,onClose:()=>T(!1),onAddTask:$,assignees:[],epics:[],defaultEpicId:q?.id.toString()||"",sprints:z})]})};export{Te as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as v}from"./chunk-N3B3XNV3.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as g,c as x,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(v,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(g,{children:e(x,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
1
+ import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as v}from"./chunk-N3B3XNV3.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as g,c as x,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(v,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(g,{children:e(x,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-DMCFEJ2C.mjs";import"../../chunk-AQQCH7Z2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-CLGBBNRB.mjs";import"../../chunk-WUA65ZZB.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../chunk-DMCFEJ2C.mjs";import"../../chunk-AQQCH7Z2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-CLGBBNRB.mjs";import"../../chunk-WUA65ZZB.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};