cortex-react-components 2.12.3 → 2.12.5
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.
- package/dist/chunk-33XEFJDE.mjs +4 -0
- package/dist/{chunk-IK3GOCAU.mjs → chunk-3AWUWWR4.mjs} +1 -1
- package/dist/{chunk-DKT6U7AO.mjs → chunk-4RX6WI4T.mjs} +1 -1
- package/dist/chunk-54K53IWE.mjs +4 -0
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-75WE6ZXB.mjs} +1 -1
- package/dist/{chunk-VWLPVN4M.mjs → chunk-AP32JABH.mjs} +1 -1
- package/dist/{chunk-FEI5NFYO.mjs → chunk-EMY52VZA.mjs} +1 -1
- package/dist/{chunk-444KBVNL.mjs → chunk-GNXLNZ6A.mjs} +1 -1
- package/dist/chunk-JXIKSSGH.mjs +1 -0
- package/dist/{chunk-3QZKRKMP.mjs → chunk-KW6L6KBY.mjs} +1 -1
- package/dist/{chunk-I2GNNRFH.mjs → chunk-LJOWXPWW.mjs} +1 -1
- package/dist/{chunk-MW25VRWC.mjs → chunk-MBPTBEOX.mjs} +1 -1
- package/dist/{chunk-LSRLBDA7.mjs → chunk-NKDFAFWH.mjs} +1 -1
- package/dist/chunk-NO3FZ27F.mjs +1 -0
- package/dist/chunk-O6GWOXTH.mjs +1 -0
- package/dist/{chunk-YOETYY5S.mjs → chunk-RNMPX2AU.mjs} +1 -1
- package/dist/{chunk-GSOFCLPO.mjs → chunk-TL2RQFU5.mjs} +1 -1
- package/dist/chunk-VFUTR2R2.mjs +4 -0
- package/dist/chunk-W2JTSWVJ.mjs +4 -0
- package/dist/chunk-WDI7JGA6.mjs +1 -0
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +0 -3
- package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.d.ts +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-card.d.ts +1 -1
- package/dist/components/DigitalColleagues/colleague-card.js +1 -2
- package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/EpicsView.js +1 -2
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +1 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/KanbanColumn.d.ts +1 -0
- package/dist/components/Projects/KanbanColumn.js +1 -1
- package/dist/components/Projects/KanbanColumn.mjs +1 -1
- package/dist/components/Projects/PlanningView.d.ts +2 -0
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSidebar.js +1 -1
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +12 -12
- package/dist/components/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +19 -19
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-AMV3MECK.mjs +0 -1
- package/dist/chunk-MDPXCQ7P.mjs +0 -4
- package/dist/chunk-MEMUW7BY.mjs +0 -1
- package/dist/chunk-MTNQADIW.mjs +0 -1
- package/dist/chunk-Q2JJZ5FY.mjs +0 -4
- package/dist/chunk-Q6VAKKW3.mjs +0 -4
- package/dist/chunk-TUI4S4GI.mjs +0 -4
- package/dist/chunk-Z422YAPB.mjs +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as v,b as c,i as h,j as d}from"./chunk-OCPX4QPC.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as x,b as f,c as w}from"./chunk-SOLZ4VQH.mjs";import{b as o}from"./chunk-CSBGSBEU.mjs";import{a as N,b as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{useState as S}from"react";import{MoreHorizontal as T,Mail as E,Phone as $,MapPin as z,Clock as P,Settings as C,Trash2 as H,Edit as F,User as L,Bot as U}from"lucide-react";import{Fragment as y,jsx as t,jsxs as a}from"react/jsx-runtime";function X({colleague:e,onEdit:M,onDelete:D,onViewDetails:b,showActions:k=!0,compact:i=!1,className:B}){let[r,p]=S(!1),V=s=>{switch(s){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},A=s=>{switch(s){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},I=s=>{if(!s)return"Never";let m=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return m<1?"Just now":m<60?`${m}m ago`:m<1440?`${Math.floor(m/60)}h ago`:`${Math.floor(m/1440)}d ago`};return a(N,{className:n("hover:shadow-md transition-shadow",i&&"p-2",B),children:[t(u,{className:n("pb-3",i&&"pb-2"),children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t("div",{className:"relative",children:a(x,{className:n("h-12 w-12",i&&"h-8 w-8"),children:[t(f,{src:"/placeholder.svg",alt:e.name}),t(w,{children:e.name.split(" ").map(s=>s[0]).join("")})]})}),a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2",children:[t("h3",{className:n("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?t(U,{className:n("h-4 w-4 text-blue-500",i&&"h-3 w-3")}):t(L,{className:n("h-4 w-4 text-green-500",i&&"h-3 w-3")})]}),t("p",{className:n("text-sm text-muted-foreground truncate",i&&"text-xs"),children:e.type==="human"?e.role:e.description}),!i&&a("div",{className:"flex items-center gap-2 mt-1",children:[e.type==="human"&&t(o,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&a(o,{variant:"secondary",className:"text-xs",children:["v",e.version]}),t(o,{variant:"outline",className:"text-xs",children:A(e.status)})]})]})]}),k&&a(v,{children:[t(c,{asChild:!0,children:t(l,{variant:"ghost",size:"icon",className:n("h-8 w-8",i&&"h-6 w-6"),children:t(T,{className:n("h-4 w-4",i&&"h-3 w-3")})})}),a(h,{align:"end",children:[e.type==="digital"&&a(y,{children:[a(d,{onClick:()=>b?.(e),children:[t(C,{className:"h-4 w-4 mr-2"}),"View Details"]}),a(d,{onClick:()=>M?.(e),children:[t(F,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),a(d,{onClick:()=>D?.(e.id),className:"text-destructive focus:text-destructive",children:[t(H,{className:"h-4 w-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!i&&a(g,{className:"pt-0",children:[a("div",{className:"space-y-2 text-sm",children:[e.type==="human"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(E,{className:"h-3 w-3"}),t("span",{className:"truncate",children:e.email})]}),e.type==="human"&&a(y,{children:[e.phone&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t($,{className:"h-3 w-3"}),t("span",{children:e.phone})]}),e.location&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(z,{className:"h-3 w-3"}),t("span",{children:e.location})]})]}),e.type==="digital"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(C,{className:"h-3 w-3"}),a("span",{children:["v",e.version]})]}),a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(P,{className:"h-3 w-3"}),a("span",{children:["Last active: ",I(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,r?e.skills.length:3).map(s=>t(o,{variant:"outline",className:"text-xs",children:s},s)),e.skills.length>3&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,r?e.capabilities.length:2).map(s=>t(o,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>2&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}export{X as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a}from"./chunk-4WA47ZQA.mjs";import{a as f}from"./chunk-Q67RF7VO.mjs";import{a as g}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as P}from"lucide-react";import{jsx as e,jsxs as v}from"react/jsx-runtime";var b=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:e(P,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function E({sidebarItems:r,children:h,title:U="Digital Colleagues",notifications:C=[],currentBusinessUnit:N=b[0],onBusinessUnitChange:B,onSearch:c,businessUnits:D=b,activeTab:x,onTabChange:T,showTabs:y=!1,onActionClick:A,actionIcon:R,actionText:S="Action",onNotificationRemove:k,onRemoveAll:w,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform",sidebarInitiallyClosed:M=!1}){let[i,O]=l(!M),[d,t]=l(!1),[u,I]=l(N),m=p=>{I(p),B?.(p)};return v("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[d&&e("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),e("div",{className:"md:hidden",children:e(a,{items:r,isOpen:d,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),e("div",{className:"hidden md:block",children:e(a,{items:r,isOpen:i,isMobile:!1,currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),v("div",{className:g("min-h-screen fixed w-full transition-all duration-300 ease-in-out",i?"md:pl-64":"md:pl-0"),children:[e(f,{title:U,notifications:C,onToggleSidebar:()=>O(!i),onToggleMobileMenu:()=>t(!0),sidebarOpen:i,activeTab:x,onTabChange:T,showTabs:y,onActionClick:A,actionIcon:R,actionText:S,onNotificationRemove:k,onRemoveAll:w,logo:n,appName:o,tagline:s}),e("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-
|
|
4
|
+
import{a}from"./chunk-4WA47ZQA.mjs";import{a as f}from"./chunk-Q67RF7VO.mjs";import{a as g}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as P}from"lucide-react";import{jsx as e,jsxs as v}from"react/jsx-runtime";var b=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:e(P,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function E({sidebarItems:r,children:h,title:U="Digital Colleagues",notifications:C=[],currentBusinessUnit:N=b[0],onBusinessUnitChange:B,onSearch:c,businessUnits:D=b,activeTab:x,onTabChange:T,showTabs:y=!1,onActionClick:A,actionIcon:R,actionText:S="Action",onNotificationRemove:k,onRemoveAll:w,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform",sidebarInitiallyClosed:M=!1}){let[i,O]=l(!M),[d,t]=l(!1),[u,I]=l(N),m=p=>{I(p),B?.(p)};return v("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[d&&e("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),e("div",{className:"md:hidden",children:e(a,{items:r,isOpen:d,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),e("div",{className:"hidden md:block",children:e(a,{items:r,isOpen:i,isMobile:!1,currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),v("div",{className:g("min-h-screen fixed w-full transition-all duration-300 ease-in-out",i?"md:pl-64":"md:pl-0"),children:[e(f,{title:U,notifications:C,onToggleSidebar:()=>O(!i),onToggleMobileMenu:()=>t(!0),sidebarOpen:i,activeTab:x,onTabChange:T,showTabs:y,onActionClick:A,actionIcon:R,actionText:S,onNotificationRemove:k,onRemoveAll:w,logo:n,appName:o,tagline:s}),e("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:h})]})]})}export{E as a};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
import{a as O}from"./chunk-
|
|
5
|
+
import{a as O}from"./chunk-54K53IWE.mjs";import{a as S}from"./chunk-2RGAV55J.mjs";import{a as T}from"./chunk-5RTGHMF3.mjs";import{a as D}from"./chunk-5BV4MHV6.mjs";import{a as I}from"./chunk-DSSHQ6K7.mjs";import{a as v,b as U,d as B}from"./chunk-ENRNRNPQ.mjs";import{a as i}from"./chunk-Z22NSJMF.mjs";import{a as F}from"./chunk-3AWUWWR4.mjs";import{a as P,b as j}from"./chunk-NPVUICIF.mjs";import{b as u}from"./chunk-ZUA4KNIR.mjs";import{b as N}from"./chunk-CSBGSBEU.mjs";import{a as C,b as x,c as y,d as w,e as A,f as k}from"./chunk-YO3GQYRJ.mjs";import{useState as H}from"react";import{motion as oe,AnimatePresence as te}from"motion/react";import{Bot as ae}from"lucide-react";import{motion as Z}from"motion/react";import{Star as ee}from"lucide-react";import{jsx as s,jsxs as l}from"react/jsx-runtime";function f({app:a,onOpen:r,onFavorite:n,showProgress:c=!1,className:d}){return s(Z.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:d,children:l(C,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[s(x,{className:"pb-2",children:l("div",{className:"flex items-center justify-between",children:[s("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-muted",children:a.icon}),a.new?s(N,{className:"rounded-xl bg-amber-500",children:"New"}):s(u,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-2xl",onClick:()=>n?.(a),children:s(ee,{className:"h-4 w-4"})})]})}),l(A,{className:"pb-2",children:[s(y,{className:"text-lg",children:a.name}),s(w,{children:a.description}),c&&a.progress<100&&l("div",{className:"mt-2",children:[l("div",{className:"flex items-center justify-between text-sm",children:[s("span",{children:"Installation"}),l("span",{children:[a.progress,"%"]})]}),s(T,{value:a.progress,className:"h-2 mt-1 rounded-xl"})]})]}),s(k,{children:s(u,{variant:"secondary",className:"w-full rounded-2xl",onClick:()=>r?.(a),children:a.progress<100?"Continue Install":"Open"})})]})})}import{jsx as e,jsxs as t}from"react/jsx-runtime";function se({title:a="Digital Colleagues",businessUnits:r,projects:n,fileCount:c,teamMemberCount:d,onCreateProject:R,onOpenProject:L,sidebarItems:ie,initialColleagues:E,users:M,onColleagueAdd:V,onColleagueEdit:z,onColleagueDelete:G}){let[m,p]=H("home"),[g,Y]=H(r[0]),b=o=>{console.log("Opening app:",o.name)},h=o=>{console.log("Favoriting app:",o.name)},K=o=>{console.log("Opening file:",o.name)},le=o=>{console.log("Sharing file:",o.name)},W=o=>{console.log("Opening project:",o.name),L(o)},_=o=>{console.log("Sharing project:",o.name)},$=o=>{Y(o),console.log("Business unit changed to:",o.name)},q=()=>{console.log("Copilot clicked - navigating to chat"),p("chat")},J=o=>{console.log("Notification removed:",o)},Q=()=>{console.log("All notifications removed")},X=()=>{switch(m){case"home":return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t("section",{className:"text-center py-12",children:[t("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",g.name," team"]}),e("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),t("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),e("p",{className:"text-3xl font-bold text-primary",children:n.length}),e("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),t("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),e("p",{className:"text-3xl font-bold text-primary",children:d}),e("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),t("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),e("p",{className:"text-3xl font-bold text-primary",children:c}),e("p",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),e(i,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Go",onClick:()=>p("chat")}})]});case"colleagues":return e(O,{initialColleagues:E,availableUsers:M,onColleagueAdd:V,onColleagueEdit:z,onColleagueDelete:G});case"chat":return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[t("section",{className:"text-center py-12",children:[e("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),t("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",g.name," team members and collaborate in real-time."]})]}),e(i,{title:"Launch Full Chat Interface",description:"Access the complete chat experience with AI assistance.",gradient:"bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600",primaryAction:{label:"Open Chat",onClick:()=>console.log("Open full chat interface")}})]});case"apps":return t("div",{className:"space-y-8",children:[e(i,{title:"Creative Apps Collection",description:"Discover our full suite of professional design and creative applications.",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Install Desktop App",onClick:()=>console.log("Install desktop app clicked")}}),t("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"New Releases"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:v.filter(o=>o.new).map(o=>e(f,{app:o,showProgress:!0,onOpen:b,onFavorite:h},o.name))})]}),t("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"All Apps"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:v.map(o=>e(f,{app:o,onOpen:b,onFavorite:h},o.name))})]})]});case"knowledge":return e(D,{});case"files":return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(i,{title:"Your Creative Files",description:"Access, manage, and share all your design files in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Upload Files",onClick:()=>console.log("Upload files clicked")}}),t("section",{className:"space-y-4",children:[e("div",{className:"flex items-center justify-between",children:e("h2",{className:"text-2xl font-semibold",children:"All Files"})}),e(I,{files:U,onFileClick:K})]})]});case"projects":return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(i,{title:"Project Management",description:"Organize your creative work into projects and collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:R}}),t("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),e("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:n.map(o=>e(S,{project:o,onOpen:W,onShare:_},o.name))})]})]});case"learn":return t("div",{className:"space-y-8",children:[e(i,{title:"Learn & Grow",description:"Expand your creative skills with tutorials, courses, and resources.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Upgrade to Pro",onClick:()=>console.log("Upgrade to pro clicked")}}),t("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),e("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:B.slice(0,3).map(o=>t("div",{className:"rounded-3xl border p-6",children:[e("h3",{className:"font-semibold mb-2",children:o.title}),e("p",{className:"text-sm text-muted-foreground mb-4",children:o.description}),t("div",{className:"flex items-center justify-between text-sm",children:[e("span",{children:o.duration}),e("span",{children:o.level})]})]},o.title))})]})]});default:return null}};return e(F,{sidebarItems:P,title:a,notifications:j,businessUnits:r,currentBusinessUnit:g,onBusinessUnitChange:$,activeTab:m,onTabChange:p,showTabs:!0,onActionClick:q,actionIcon:e(ae,{className:"mr-2 h-4 w-4"}),actionText:"Start Chat",onNotificationRemove:J,onRemoveAll:Q,children:e(te,{mode:"wait",children:e(oe.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:X()},m)})})}export{se as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as Y}from"./chunk-Z22NSJMF.mjs";import{a as N}from"./chunk-33XEFJDE.mjs";import{a as I}from"./chunk-EAFH3DTH.mjs";import{a as _}from"./chunk-6XUIHSKG.mjs";import{a as ee}from"./chunk-6WQXZ6IE.mjs";import{a as te}from"./chunk-CO6AQNZ5.mjs";import{a as le}from"./chunk-PWXCBW2H.mjs";import{a as Z}from"./chunk-FGEFYI5E.mjs";import{a as H,c as U,d as $,g as F,i as g}from"./chunk-YFAZQYK4.mjs";import{a as X}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{a as u,b as x,c as D,e as p}from"./chunk-YO3GQYRJ.mjs";import{useEffect as ve,useState as s}from"react";import{Plus as ye,Search as he,Users as ae,Bot as we,User as xe,Filter as De}from"lucide-react";import{motion as Ne,AnimatePresence as Se}from"motion/react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function be({initialColleagues:S,onColleagueAdd:b,onColleagueEdit:O,onColleagueDelete:ie,compactView:d=!1,departments:oe=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ne,availableUsers:L=[],existingDigitalColleagues:j=[]}){let[n,m]=s(S||[]),[r,P]=s(""),[C,B]=s("all"),[f,M]=s("all"),[h,se]=s("all"),[q,v]=s(null),[A,w]=s(null);ve(()=>{m(S||[])},[S]);let re=Array.isArray(L)?L:[],z=Array.isArray(j)?j:[],[c,i]=s("main"),y=n.filter(e=>{if(!e||!e.name)return!1;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()),l=C==="all"||e.type==="human"&&e.department===C,K=f==="all"||e.status===f;return o&&l&&K}),G=y.filter(e=>e.type==="human"),W=y.filter(e=>e.type==="digital"),J=()=>{i("typeSelection")},T=e=>{e.type==="digital"&&(v(e),i("form")),console.log("Editing colleague:",e),O?.(e)},k=e=>{e.type==="digital"&&(w(e),i("view"))},de=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(l=>[...l,o]),b?.(o),i("main")},me=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}m(o=>[...o,e]),b?.(e),i("main")},ce=()=>{v(null),i("form")},Q=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}q?(m(o=>o.map(l=>l.id===e.id?e:l)),O?.(e)):(m(o=>[...o,e]),b?.(e)),i("main"),v(null)},ge=()=>{i("main"),v(null),w(null)},ue=()=>{i("main"),w(null)},Ae=()=>{A&&(v(A),w(null),i("form"))},E=e=>{ie?.(e,n.find(o=>o.id===e).type),m(o=>o.filter(l=>l.id!==e))},pe=()=>{P(""),B("all"),M("all")},R=()=>{let e=[];return z.forEach(l=>{l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge)}),n.forEach(l=>{l.type==="digital"&&(l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge))}),e.filter((l,K,Ce)=>K===Ce.findIndex(fe=>fe.id===l.id))};return c==="typeSelection"?t(_,{onSelectHuman:()=>i("userSelection"),onSelectDigital:()=>i("digitalOptions"),onCancel:()=>i("main")}):c==="userSelection"?t(le,{users:re,onUserSelect:de,onCancel:()=>i("typeSelection")}):c==="digitalOptions"?t(te,{onCloneExisting:()=>i("digitalClone"),onCreateNew:ce,onCancel:()=>i("typeSelection")}):c==="digitalClone"?t(ee,{digitalColleagues:z,onColleagueClone:me,onCancel:()=>i("digitalOptions")}):c==="form"?t(I,{colleague:q||void 0,onSave:Q,onCancel:ge,availableKnowledgeDocuments:R()}):c==="view"?t(I,{colleague:A||void 0,onSave:Q,onCancel:ue,readOnly:!0,availableKnowledgeDocuments:R()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(Se,{mode:"wait",children:t(Ne.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:a("div",{className:`space-y-6 ${ne||""}`,children:[t(Y,{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:J}}),a("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a(u,{children:[a(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(ae,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),a(u,{children:[a(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(xe,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," ","active"]})]})]}),a(u,{children:[a(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(we,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),a("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:a("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:a("div",{className:"relative",children:[t(he,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(X,{placeholder:"Search colleagues...",value:r,onChange:e=>P(e.target.value),className:"pl-9"})]})}),a(H,{value:C,onValueChange:B,children:[t($,{className:"w-full md:w-[180px]",children:t(U,{placeholder:"Department"})}),a(F,{children:[t(g,{value:"all",children:"All Departments"}),oe.map(e=>t(g,{value:e,children:e},e))]})]}),a(H,{value:f,onValueChange:M,children:[t($,{className:"w-full md:w-[140px]",children:t(U,{placeholder:"Status"})}),a(F,{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")&&a(V,{variant:"outline",onClick:pe,className:"gap-2",children:[t(De,{className:"h-4 w-4"}),"Clear"]})]})})}),a("div",{className:"space-y-4",children:[t(Z,{activeTab:h,onTabChange:se,tabOptions:[{value:"all",label:`All (${y.length})`},{value:"human",label:`Human (${G.length})`},{value:"digital",label:`Digital (${W.length})`}],maxWidth:"400px",gridCols:3}),h==="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:y.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},`${e}-${e.id}`))}),h==="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:G.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))}),h==="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:W.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))})]}),y.length===0&&t(u,{children:t(p,{className:"pt-6",children:a("div",{className:"text-center py-8",children:[t(ae,{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."}),a(V,{onClick:J,className:"gap-2",children:[t(ye,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{be as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as i}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as i}from"./chunk-WUA65ZZB.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as S}from"./chunk-7VDNUJZC.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-O5P35LEY.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as S}from"./chunk-7VDNUJZC.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-O5P35LEY.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-75WE6ZXB.mjs";import{a as g}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:f,logoDark:g,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(S,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
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-75WE6ZXB.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as b}from"./chunk-
|
|
4
|
+
import{a as b}from"./chunk-3AWUWWR4.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-NUHGPB5U.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 @@
|
|
|
1
|
+
import{b as o}from"./chunk-CSBGSBEU.mjs";import{a as n}from"./chunk-YO3GQYRJ.mjs";import{jsx as r,jsxs as s}from"react/jsx-runtime";var p=({title:l,status:t,taskCount:d,children:c,onDrop:i,isCompact:a=!1,height:m})=>{let u=e=>{e.preventDefault()},g=e=>{e.preventDefault(),i(t)};return s(n,{className:`p-4 bg-card border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col ${a?"lg:max-w-xs":""}`,style:{height:m||"calc(100vh - 350px)"},onDragOver:u,onDrop:g,children:[s("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[r("h3",{className:`font-semibold text-foreground select-none-important ${a?"text-base":"text-lg"}`,children:l}),r(o,{variant:"secondary",className:"bg-muted text-muted-foreground",children:d})]}),r("div",{className:"flex-1 overflow-y-auto space-y-4 min-h-0",children:c})]})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-YO3GQYRJ.mjs";import{User as
|
|
1
|
+
import{a}from"./chunk-YO3GQYRJ.mjs";import{User as u,AlertCircle as p,Bug as g,Zap as f,BookOpen as b}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var y=({task:r,epic:x,onDragStart:i,onTaskClick:d,isCompact:m=!1})=>{let s=v=>{i(r)},o=()=>{d(r)},l=()=>{switch(r.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},n=()=>{switch(r.type){case"story":return e(b,{className:"h-3 w-3"});case"bug":return e(g,{className:"h-3 w-3"});case"spike":return e(f,{className:"h-3 w-3"});case"task":default:return e(p,{className:"h-3 w-3"})}},c=()=>{switch(r.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return m?e(a,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:s,onClick:o,children:t("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${c()}`,children:n()}),e("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:r.name})]})}):t(a,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:s,onClick:o,children:[t("div",{className:"flex items-center justify-between mb-3",children:[t("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${c()}`,children:[n(),e("span",{className:"capitalize",children:r.type})]}),t("div",{className:"flex gap-1",children:[e("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${l()}`,children:r.priority}),e("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:r.points})]})]}),e("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:r.name}),e("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:r.description}),e("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:t("div",{className:"flex items-center gap-1",children:[e(u,{className:"h-4 w-4"}),e("span",{children:r.assignee?.value?.name})]})})]})};export{y 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
|
|
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:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-AB43AQKL.mjs";import{a as
|
|
1
|
+
import{a as n}from"./chunk-AB43AQKL.mjs";import{a as g}from"./chunk-EOXVYLPB.mjs";import{a as u,b as m}from"./chunk-E4TE4NV6.mjs";import{a as o}from"./chunk-TVZOULLL.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{Calendar as w,Clock as C,User as D,Trash2 as S,BookOpen as T,Bug as L,Zap as B,AlertCircle as k,Loader2 as I,Check as A,X as G}from"lucide-react";import{jsx as a,jsxs as t}from"react/jsx-runtime";var P=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:T},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:k},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:L},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:B}],V=[{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"}];var R=({task:s,epics:b,sprints:x,lastUpdated:v,onUpdateTask:r,onClose:f,onDelete:N,isUpdating:l=!1,isDeleting:p=!1,deleteState:d="idle",teamMembers:y})=>{let J=e=>e.split(" ").map(c=>c[0]).join("").toUpperCase(),h=()=>d==="loading"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(I,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(A,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?t(i,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(G,{className:"h-3 w-3"}),"Delete failed"]}):t(i,{onClick:N,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:l||p,children:[a(S,{className:"h-3 w-3"}),"Delete Task"]});return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"space-y-4",style:{opacity:l?.6:1},children:[t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Status"}),a(n,{label:"",value:s.status,onValueChange:e=>r("status",e),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Type"}),a(u,{type:"single",value:s.type,onValueChange:e=>e&&r("type",e),className:"grid grid-cols-2 gap-1",disabled:l,children:P.map(e=>{let c=e.icon;return t(m,{value:e.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:[a(c,{className:"h-3 w-3"}),e.label]},e.value)})})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Priority"}),a(u,{type:"single",value:s.priority,onValueChange:e=>e&&r("priority",e),className:"grid grid-cols-3 gap-1",disabled:l,children:V.map(e=>a(m,{value:e.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:l,children:e.label},e.value))})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Story Points"}),a("input",{type:"number",min:"1",max:"100",value:s.points||1,onChange:e=>r("points",e.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Epic"}),a(n,{label:"",value:s.epicId,onValueChange:e=>r("epicId",e),options:(b||[]).map(e=>({value:e.id,label:e?.name,color:e.color})),showColor:!0,disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Sprint"}),a(n,{label:"",value:s.sprintId||"none",onValueChange:e=>r("sprintId",e==="none"?"":e),options:[{value:"none",label:"No Sprint"},...(x||[]).map(e=>({value:e.id,label:`${e?.name}${e.isActive?" (Active)":""}`}))],disabled:l})]}),t("div",{className:"space-y-2",children:[a(o,{className:"text-xs text-muted-foreground",children:"Assignee"}),a(g,{label:"",value:s.assignee?.value?.name,onValueChange:e=>r("assignee",e),options:y.map(e=>({value:`${typeof e.email=="string"?"users":"digital-colleagues"}:${e.id}`,label:e?.name})),placeholder:"Search team members...",allowCustomValue:!0,disabled:l})]})]}),t("div",{className:"mt-auto pt-4 space-y-4",children:[t("div",{className:"space-y-2",children:[a(i,{onClick:f,variant:"outline",className:"w-full h-8 text-xs",disabled:l||p,children:"Close"}),h()]}),t("div",{className:"pt-4 border-t border-border space-y-2",children:[a("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(D,{className:"h-3 w-3"}),a("span",{children:"System"})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Created"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(w,{className:"h-3 w-3"}),a("span",{children:new Date(s.createdAt)?.toLocaleDateString()})]})]}),t("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),t("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a(C,{className:"h-3 w-3"}),t("span",{children:[new Date(v).toLocaleDateString()," at"," ",new Date(v).toLocaleTimeString()]})]})]})]})]})]})};export{R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-MBPTBEOX.mjs";import{a as C}from"./chunk-6SWKEZN6.mjs";import{a as u}from"./chunk-DFIXTV2M.mjs";import{a as x,f as y,g as S,i as w}from"./chunk-3UMMMQEH.mjs";import{useEffect as O,useState as l}from"react";import{Loader2 as R,Check as X,X as j}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var Z=({isOpen:b,onClose:f,initialTask:m,epics:N,sprints:P,onUpdateTask:k,onDeleteTask:I,onAddComment:T,colleagues:A})=>{let[s,c]=l(m),[E,p]=l(new Date),[n,e]=l("idle"),[g,d]=l("idle"),[q,z]=l([]);O(()=>{c(m)},[m]);let D=async(a,i)=>{if(i!==s[a]){e("loading");try{let r=await k(s.id,{[a]:i});c(r),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},M=async(a,i)=>{if(i!==s[a]){e("loading");try{let r=await k(s.id,{[a]:i});c(r),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},F=async a=>{if(T){e("loading");try{let i=await T?.({content:a,taskId:s.id});c(i),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},H=async()=>{d("loading");try{await I(s.id),d("success"),setTimeout(()=>{f(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},v=n!=="loading"&&g!=="loading",h=()=>{v&&f()},L=()=>n==="loading"?o("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t(R,{className:"h-4 w-4 animate-spin"}),t("span",{children:"Updating..."})]}):n==="success"?o("div",{className:"flex items-center gap-2 text-sm text-success",children:[t(X,{className:"h-4 w-4"}),t("span",{children:"Updated successfully"})]}):n==="error"?o("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[t(j,{className:"h-4 w-4"}),t("span",{children:"Update failed"})]}):null;return t(x,{open:b,onOpenChange:h,children:o(y,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[o(S,{children:[t(w,{className:"sr-only",children:s.name}),o("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex-1",children:L()}),!v&&t("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),o("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o("div",{className:"lg:col-span-2 space-y-4",children:[t(u,{fieldName:"name",value:s.name,label:"",onSave:D,className:"border-b border-border pb-3",disabled:n==="loading"}),t(u,{fieldName:"description",value:s.description,label:"Description",multiline:!0,onSave:D,disabled:n==="loading"}),t(C,{comments:(s?.comments||[]).map(a=>({author:a.author.value.name,createdAt:new Date(a.timestamp),text:a.content,id:a.id})),onAddComment:F})]}),t(U,{task:s,epics:N,sprints:P,lastUpdated:E,onUpdateTask:M,onClose:h,onDelete:H,isUpdating:n==="loading",isDeleting:g==="loading",deleteState:g,teamMembers:A})]})]})})};export{Z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as j}from"./chunk-JXIKSSGH.mjs";import{a as $}from"./chunk-NKDFAFWH.mjs";import{a as z}from"./chunk-ORNGKQM7.mjs";import{a as L}from"./chunk-4A3MGS6I.mjs";import{a as K}from"./chunk-KW6L6KBY.mjs";import{a as U}from"./chunk-Z22NSJMF.mjs";import{b as R}from"./chunk-CSBGSBEU.mjs";import{useEffect as l,useState as n,useRef as F}from"react";import{jsx as i,jsxs as w}from"react/jsx-runtime";var Ae=({initialTasks:f=[],initialEpics:k=[],initialSprints:T=[],initialUsers:V=[],initialColleagues:q=[],initialProjects:le=[],onAddTask:G,onUpdateTask:v,onDeleteTask:y,onTaskClick:J,onAddEpic:Q,onAddComment:W})=>{let[b,d]=n(f),[c,S]=n(k),[h,X]=n(T),[x,O]=n(!1),[P,N]=n(!1),[p,E]=n(null),[C,H]=n(null),[B,pe]=n(V),[M,ue]=n(q),[u,I]=n(0),o=F(null),Y=F(null),A=c.filter(e=>!0).map(e=>e.id),m=h.find(e=>e.isSelected);A.push("no-epic"),l(()=>{d(f)},[f]),l(()=>{S(k)},[k]),l(()=>{X(T)},[T]),l(()=>{let e=()=>{if(o.current){let a=o.current.offsetHeight;I(a)}};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)},[x,P]);let Z=b.filter(e=>{let t=A.includes(e.epicId)||!e.epicId;return!m||m.id==="all-tasks"?t:m.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===m.id}),_=e=>Z.filter(t=>t.status===e),ee=e=>{let t={};return c.forEach(s=>{t[s.id]=e.filter(a=>a.epicId===s.id)}),t["no-epic"]=e.filter(s=>!s.epicId),t},te=e=>{H(e)},se=e=>{C&&(d(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),v?.(C.id,{status:e}),H(null))},ie=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(s=>[...s,t]),G?.(e)},ae=async(e,t)=>{d(a=>a.map(r=>r.id===e?{...r,...t}:r)),v&&await v(e,t);let s=b.find(a=>a.id===e);if(!s)throw new Error("Task not found");return{...s,...t}},ne=async e=>{d(t=>t.filter(s=>s.id!==e)),p?.id===e&&E(null),y&&await y(e)},oe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};S(s=>[...s,t]),Q?.(e)},re=e=>{E(e),J?.(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 w("div",{ref:Y,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[i("div",{ref:o,className:"flex-shrink-0",children:i(U,{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:()=>O(!0)},secondaryAction:{label:"Add epic",onClick:()=>N(!0)}})}),i("div",{className:"flex-1 min-h-0 mt-8",children:i("div",{className:"h-full",style:{height:u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)"},children:i("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:de.map(e=>{let t=_(e.status),s=ee(t);return i(j,{title:e.title,status:e.status,taskCount:t.length,onDrop:se,isCompact:e.status==="done",height:ce,children:A.map(a=>{let r=c.find(g=>g.id===a),D=s[a]||[];return D.length===0?null:w("div",{className:"mb-6",children:[w("div",{className:"flex items-center gap-2 mb-3",children:[i("div",{className:`w-3 h-3 rounded-full ${r?.color}`}),i("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:r?.name||"No Epic"}),i(R,{variant:"secondary",className:"text-xs",children:D.length})]})," ",i("div",{className:"space-y-3",children:D.map(g=>i(K,{task:g,epic:r,onDragStart:te,onTaskClick:re,isCompact:e.status==="done"},g.id))})]},a)})},e.id)})})})}),i(L,{isOpen:x,onClose:()=>O(!1),onAddTask:ie,assignees:[...M,...B],epics:c,sprints:h}),i(z,{isOpen:P,onClose:()=>N(!1),onAddEpic:oe}),p&&i($,{isOpen:!!p,onClose:()=>E(null),initialTask:p,epics:c,sprints:h,onUpdateTask:ae,onDeleteTask:ne,colleagues:[...M,...B],onAddComment:W})]})};export{Ae as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ae}from"./chunk-6DEY5ZDD.mjs";import{a as te}from"./chunk-Z22NSJMF.mjs";import{a as ee}from"./chunk-B4H6T2GP.mjs";import{a as _}from"./chunk-L5JPAKPM.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{b as p}from"./chunk-CSBGSBEU.mjs";import{a as f}from"./chunk-YO3GQYRJ.mjs";import{useState as c,useEffect as Ce,useRef as se}from"react";import{Calendar as D,User as De,Plus as Ee,CalendarDays as Te,Edit2 as ne,Trash2 as re,Check as Be,X as $,ChevronDown as E,ChevronUp as T}from"lucide-react";import{Fragment as ie,jsx as t,jsxs as a}from"react/jsx-runtime";var Ue=({tasks:B,epics:le,sprints:x,onUpdateTask:oe,onTaskClick:de,onAddSprint:ce,onUpdateSprint:me,onDeleteSprint:H})=>{let[m,ue]=c([]),[b,pe]=c(new Set),[y,F]=c(null),[ge,k]=c(!1),[ve,A]=c(null),[I,O]=c(null),[u,w]=c({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[z,L]=c("upcoming"),[S,R]=c(!1),[g,fe]=c(0),h=se(null),xe=se(null);Ce(()=>{let e=()=>{h.current&&fe(h.current.offsetHeight)};e();let s=new ResizeObserver(e);return h.current&&s.observe(h.current),()=>s.disconnect()},[]);let j=e=>le.find(s=>s.id===e),he=e=>x.find(s=>s.id===e),Ne=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},Ae=e=>{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}.`},U=e=>{let s={},n=[];return e.forEach(r=>{r.epicId?(s[r.epicId]||(s[r.epicId]=[]),s[r.epicId].push(r)):n.push(r)}),{tasksByEpic:s,unassignedTasks:n}},M=x.filter(e=>e.id!=="backlog"&&e.id!=="all-tasks"),V=M.filter(e=>{switch(z){case"active":return e.isActive;case"upcoming":return!e.isActive;default:return!0}}),X=M.filter(e=>m.includes(e.id)),v=B.filter(e=>!e.sprintId||e.sprintId==="backlog"||e.sprintId==="Backlog"),be=v.reduce((e,s)=>e+(s.points||0),0),q=e=>{ue(s=>s.includes(e)?s.filter(n=>n!==e):s.length<3?[...s,e]:s)},C=e=>{pe(s=>{let n=new Set(s);return n.has(e)?n.delete(e):n.add(e),n})},ye=e=>{ce(e),k(!1)},G=e=>{O(e.id),w({name:e.name,description:e.description||"",startDate:e.startDate instanceof Date?e.startDate.toISOString().split("T")[0]:e.startDate,endDate:e.endDate instanceof Date?e.endDate.toISOString().split("T")[0]:e.endDate,isActive:e.isActive})},ke=()=>{I&&(me(I,{name:u.name,description:u.description,startDate:new Date(u.startDate),endDate:new Date(u.endDate),isActive:u.isActive}),O(null))},we=()=>{O(null),w({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Se=(e,s)=>{F(s),e.dataTransfer.effectAllowed="move"},J=e=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},K=e=>{A(e)},Q=()=>{A(null)},W=(e,s)=>{if(e.preventDefault(),A(null),!y)return;let n=y.sprintId||void 0,r=s==="backlog"?void 0:s;n!==r&&oe(y.id,{sprintId:r}),F(null)},N=({task:e,showSprint:s=!1})=>{let n=e.epicId?j(e.epicId):null,r=e.sprintId?he(e.sprintId):null;return t(f,{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),Se(o,e)},onClick:o=>{y===null&&de(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(p,{className:`text-xs ${Ne(e.priority)}`,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:e.assignee})]}),s&&r&&a("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[t(D,{className:"h-3 w-3"}),t("span",{children:r.name})]})]})})};return a("div",{ref:xe,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:h,className:"flex-shrink-0",children:t(te,{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:()=>k(!0)}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:[a("div",{className:"mb-4",children:[t(f,{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:[t("div",{children:t("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"})}),m.length>0&&t("div",{className:"flex items-center gap-2",children:t("div",{className:"flex flex-wrap gap-1",children:X.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}),e.isActive&&t("span",{className:"text-success text-[10px]",children:"\u25CF"}),t("button",{onClick:()=>q(e.id),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:t($,{className:"h-4 w-4"})})]},e.id))})})]}),a("div",{className:"flex items-center gap-2",children:[a(d,{onClick:()=>k(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[t(Ee,{className:"h-3 w-3"}),"Add"]}),a(d,{onClick:()=>R(!S),variant:"outline",size:"sm",className:"gap-1",children:[t(D,{className:"h-3 w-3"}),S?"Close":"Select"]})]})]})}),S&&t("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>R(!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 ${S?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:a(f,{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:()=>R(!1),className:"h-8 w-8 p-0",children:t($,{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:x.length},{key:"active",label:"Active",count:x.filter(e=>e.isActive).length},{key:"upcoming",label:"Upcoming",count:x.filter(e=>!e.isActive).length}].map(e=>a(d,{variant:z===e.key?"default":"outline",size:"sm",onClick:()=>L(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:V.length>0?V.map(e=>{let s=m.includes(e.id),n=B.filter(i=>i.sprintId===e.id).length,r=!s&&m.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:I===e.id?a("div",{className:"space-y-3",children:[t(_,{value:u.name,onChange:i=>w(l=>({...l,name:i.target.value})),className:"text-sm",placeholder:"Sprint name"}),t(ee,{value:u.description,onChange:i=>w(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:()=>ke(),className:"flex-1",children:[t(Be,{className:"h-3 w-3 mr-1"}),"Save"]}),a(d,{size:"sm",variant:"outline",onClick:we,className:"flex-1",children:[t($,{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}),e.isActive&&t(p,{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(Te,{className:"h-3 w-3"}),new Date(e.startDate).toLocaleDateString()]}),a("span",{className:"flex items-center gap-1",children:[t(De,{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:()=>G(e),className:"h-6 w-6 p-0",children:t(ne,{className:"h-3 w-3"})}),e.id!=="backlog"&&e.id!=="all-tasks"&&t(d,{size:"sm",variant:"ghost",onClick:()=>H(e.id),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:t(re,{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:()=>q(e.id),disabled:!s&&m.length>=3,children:t("span",{className:"pointer-events-none select-none",children:s?"Deselect":m.length>=3?"Limit Reached":"Select"})})})]})},e.id)}):a("div",{className:"text-center py-8 text-muted-foreground",children:[t(D,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),a("p",{className:"text-sm",children:['No sprints found for "',z,'" filter']}),t(d,{variant:"link",size:"sm",onClick:()=>L("all"),className:"text-xs",children:"Show all sprints"})]})}),m.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(D,{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(f,{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:J,onDragEnter:()=>K("backlog"),onDragLeave:Q,onDrop:e=>W(e,"backlog"),style:{height:g>0?`calc(100vh - ${g+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(p,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[v.length," tasks"]}),a(p,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[be," pts"]})]})]}),t("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${ve==="backlog"?"bg-primary/10":""}`,children:(()=>{let{tasksByEpic:e,unassignedTasks:s}=U(v);return a(ie,{children:[Object.entries(e).map(([n,r])=>{let i=j(n);if(!i)return null;let l=b.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:()=>C(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(E,{className:"h-3 w-3 text-muted-foreground"}):t(T,{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=b.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:()=>C("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(E,{className:"h-3 w-3 text-muted-foreground"}):t(T,{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))})]})})(),v.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"}),v.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:"}),v.map(n=>t(N,{task:n},n.id))]})]})})()})]})}),X.map(e=>{let s=B.filter(r=>r.sprintId===e.id),n=s.reduce((r,i)=>r+(i.points||0),0);return a(f,{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:J,onDragEnter:()=>K(e.id),onDragLeave:Q,onDrop:r=>W(r,e.id),style:{height:g>0?`calc(100vh - ${g+200}px)`:"calc(100vh - 16rem)"},children:[a("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[a("div",{children:[t("h3",{className:"font-semibold text-foreground select-none text-lg",children:e.name}),e.isActive&&t("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),a("div",{className:"flex items-center gap-2",children:[a(p,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[s.length," tasks"]}),a(p,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[n," pts"]}),t(d,{size:"sm",variant:"ghost",onClick:()=>G(e),className:"h-6 px-2",children:t(ne,{className:"h-3 w-3"})}),e.id!=="backlog"&&e.id!=="all-tasks"&&t(d,{size:"sm",variant:"ghost",onClick:()=>H(e.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:t(re,{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}=U(s);return a(ie,{children:[Object.entries(r).map(([l,o])=>{let P=j(l);if(!P)return null;let Y=b.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:()=>C(l),children:[t("div",{className:`w-3 h-3 rounded-full ${P.color}`}),t("span",{className:"font-medium text-muted-foreground",children:P.name}),a("span",{className:"text-muted-foreground",children:["(",o.length,")"]}),t("div",{className:"ml-auto",children:Y?t(E,{className:"h-3 w-3 text-muted-foreground"}):t(T,{className:"h-3 w-3 text-muted-foreground"})})]}),!Y&&t("div",{className:"space-y-2 pl-2",children:o.map(Z=>t(N,{task:Z},Z.id))})]},l)}),i.length>0&&(()=>{let l=b.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:()=>C("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(E,{className:"h-3 w-3 text-muted-foreground"}):t(T,{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(ae,{isOpen:ge,onClose:()=>k(!1),onAddSprint:ye})]})})]})};export{Ue as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-N3B3XNV3.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as
|
|
1
|
+
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-N3B3XNV3.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as
|
|
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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as x}from"./chunk-B4H6T2GP.mjs";import{b as $}from"./chunk-O5P35LEY.mjs";import{a as d}from"./chunk-L5JPAKPM.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as C}from"./chunk-YO3GQYRJ.mjs";import{useState as c}from"react";import{X as se,Plus as M,Edit2 as I,Trash2 as A,Calendar as O,Kanban as ne,FileText as ie,FolderOpen as le,Target as oe}from"lucide-react";import{Fragment as K,jsx as e,jsxs as t}from"react/jsx-runtime";var R=({projects:m,epics:L,sprints:re,currentView:u,onUpdateProject:S,onDeleteProject:H,onAddProject:U,onUpdateEpic:j,onDeleteEpic:X,onAddEpic:q,onViewChange:p,mobileMenuOpen:E,onToggleMobileMenu:G})=>{let[v,r]=c(null),[h,N]=c(null),[y,w]=c(null),[g,f]=c({name:"",description:""}),[i,o]=c({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[J,k]=c(!1),[b,P]=c({name:"",description:""}),Q=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],D=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],z=[{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"}],W=a=>{N(a.id),f({name:a.name,description:a.description||""})},Y=()=>{h&&g.name.trim()&&(S(h,{name:g.name.trim(),description:g.description.trim()}),N(null))},Z=()=>{N(null),f({name:"",description:""})},_=()=>{b.name.trim()&&(U({name:b.name.trim(),description:b.description.trim(),isSelected:!1}),P({name:"",description:""}),k(!1))},V=a=>{S(a,{isSelected:!0})},ee=a=>{w(a.id),o({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})},ae=()=>{y&&i.name.trim()&&(j(y,{name:i.name.trim(),description:i.description.trim(),color:i.color,confidence:i.confidence,phase:i.phase,startDate:new Date(i.startDate),endDate:new Date(i.endDate),progress:i.progress}),w(null))},te=()=>{w(null),o({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},B=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),T=a=>{let s=D.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Medium",color:"text-warning"}},F=a=>{let s=z.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Phase 1",color:"text-primary"}};return t(K,{children:[e("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${E?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:t("div",{className:"flex-1 flex flex-col",children:[t("button",{onClick:()=>{p("kanban"),r(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${u==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Kanban View",children:[e(ne,{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:()=>{p("planning"),r(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${u==="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(O,{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:()=>{p("epics"),r(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${u==="epics"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[e(oe,{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:()=>{p("files"),r(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${u==="files"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[e(ie,{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:()=>{p("tasks"),r(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${u==="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(O,{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"})]})]})}),E&&e("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:G}),v&&t(K,{children:[e("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>r(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:[v==="projects"&&"Projects",v==="epics"&&"Manage Epics"]}),e(l,{variant:"ghost",size:"sm",onClick:()=>r(null),children:e(se,{className:"h-4 w-4"})})]}),t("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[v==="projects"&&e(C,{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(l,{size:"sm",onClick:()=>k(!0),className:"gap-1",children:[e(M,{className:"h-3 w-3"}),"Add Project"]})]}),J&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(d,{value:b.name,onChange:a=>P(s=>({...s,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(x,{value:b.description,onChange:a=>P(s=>({...s,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(l,{size:"sm",onClick:_,className:"text-xs h-6",children:"Save"}),e(l,{size:"sm",variant:"outline",onClick:()=>k(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:m.map(a=>e("div",{className:"border rounded p-2",children:h===a.id?t("div",{className:"space-y-2",children:[e(d,{value:g.name,onChange:s=>f(n=>({...n,name:s.target.value})),placeholder:"Project name",className:"text-sm"}),e(x,{value:g.description,onChange:s=>f(n=>({...n,description:s.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(l,{size:"sm",onClick:Y,className:"text-xs h-6",children:"Save"}),e(l,{size:"sm",variant:"outline",onClick:Z,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:()=>V(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(le,{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(l,{size:"sm",variant:"ghost",onClick:()=>W(a),className:"h-5 px-1",children:e(I,{className:"h-3 w-3"})}),e(l,{size:"sm",variant:"ghost",onClick:()=>H(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(A,{className:"h-3 w-3"})})]})]})},a.id))})]})}),v==="epics"&&e(C,{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(l,{size:"sm",onClick:q,className:"gap-1",children:[e(M,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:L.map(a=>e("div",{className:"border rounded-lg p-3",children:y===a.id?t("div",{className:"space-y-3",children:[e(d,{value:i.name,onChange:s=>o(n=>({...n,name:s.target.value})),placeholder:"Epic name",className:"text-sm"}),e(x,{value:i.description,onChange:s=>o(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:Q.map(s=>e("button",{onClick:()=>o(n=>({...n,color:s})),className:`w-6 h-6 rounded-full ${s} ${i.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"}),e("select",{value:i.confidence,onChange:s=>o(n=>({...n,confidence:s.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:D.map(s=>e("option",{value:s.value,children:s.label},s.value))})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),e("select",{value:i.phase.toString(),onChange:s=>o(n=>({...n,phase:parseInt(s.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:z.map(s=>e("option",{value:s.value.toString(),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(d,{type:"date",value:i.startDate,onChange:s=>o(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(d,{type:"date",value:i.endDate,onChange:s=>o(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(d,{type:"number",min:"0",max:"100",value:i.progress,onChange:s=>o(n=>({...n,progress:parseInt(s.target.value)||0})),className:"text-xs h-8"})]}),t("div",{className:"flex gap-2",children:[e(l,{size:"sm",onClick:ae,className:"text-xs",children:"Save"}),e(l,{size:"sm",variant:"outline",onClick:te,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:()=>j(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:T(a.confidence).color,children:T(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:F(a.phase).color,children:F(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:[B(a.startDate)," - ",B(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(l,{size:"sm",variant:"ghost",onClick:()=>ee(a),className:"h-6 px-2",children:e(I,{className:"h-3 w-3"})}),e(l,{size:"sm",variant:"ghost",onClick:()=>X(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:e(A,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},we=m=>e($,{children:t("div",{className:"flex w-full h-full",children:[e("div",{className:"hidden md:block w-12 fixed h-full",children:e(R,{...m})}),e("div",{className:"md:hidden",children:e(R,{...m})}),e("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6 h-full",children:e("div",{className:"w-full h-full",children:m.children})})]})});export{we as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as ee}from"./chunk-ZMB6R6JX.mjs";import{a as _}from"./chunk-O6GWOXTH.mjs";import{a as Z}from"./chunk-WDI7JGA6.mjs";import{a as Y}from"./chunk-NO3FZ27F.mjs";import{a as X}from"./chunk-ORNGKQM7.mjs";import{a as Q}from"./chunk-4A3MGS6I.mjs";import{a as L}from"./chunk-QBUU2AQL.mjs";import{a as J}from"./chunk-VFUTR2R2.mjs";import{useEffect as o,useState as s}from"react";import{useRouter as Ze}from"next/navigation";import{jsx as a,jsxs as et}from"react/jsx-runtime";function _e({title:tt="",initialTasks:h=[],initialEpics:D=[],initialSprints:S=[],initialProjects:E=[],initialReminders:v=[],initialColleagues:A=[],initialUsers:w=[],initialFiles:P=[],initialView:C="kanban",onAddTask:te,onUpdateTask:ie,onDeleteTask:ne,onTaskClick:it,onAddEpic:se,onUpdateEpic:ae,onDeleteEpic:oe,onAddTaskToEpic:nt,onAddSprint:de,onUpdateSprint:re,onDeleteSprint:le,onAddProject:ce,onUpdateProject:pe,onDeleteProject:me,onFileAdd:ge,onFileEdit:ke,onFileDelete:Te,onFileClick:ue,onAddReminder:fe,onUpdateReminder:he,onDeleteReminder:De,onViewChange:Se,onToggleMobileMenu:Ee,onTeamClick:st,onTeamChange:at,onCopilotClick:ot,handleAddComment:ve}){let[p,d]=s(h),[r,m]=s(D),[c,g]=s(S),[F,k]=s(E),[Ae,T]=s(v),[U,we]=s(A),[M,Pe]=s(w),[Ce,O]=s(P),[Ue,R]=s(!1),[be,V]=s(!1),[ye,j]=s(null),[Fe,I]=s(null),[B,N]=s(null),[l,x]=s(C||"kanban"),[Me,Oe]=s(!1),G=Ze();o(()=>{d(h)},[h]),o(()=>{g(S)},[S]),o(()=>{m(D)},[D]),o(()=>{k(E)},[E]),o(()=>{O(P)},[P]),o(()=>{Pe(w)},[w]),o(()=>{we(A)},[A]),o(()=>{T(v)},[v]),o(()=>{x(C)},[C]);let Re=r.filter(e=>e.isSelected).map(e=>e.id),u=c.find(e=>e.isSelected),Ve=p.filter(e=>{let t=Re.includes(e.epicId);return!u||u.id==="all-tasks"?t:u.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===u.id}),dt=e=>Ve.filter(t=>t.status===e),rt=e=>{let t={};return r.forEach(i=>{t[i.id]=e.filter(n=>n.epicId===i.id)}),t},lt=e=>{N(e)},ct=e=>{B&&(d(t=>t.map(i=>i.id===B.id?{...i,status:e}:i)),N(null))},H=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t]),te?.(t)},f=async(e,t)=>(d(i=>i.map(n=>n.id===e?{...n,...t}:n)),await ie?.(e,t)),pt=async(e,t)=>{f(e,t)},K=e=>{d(t=>t.filter(i=>i.id!==e)),ye?.id===e&&j(null),ne?.(e)},mt=async e=>{K(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?(G.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)),me?.(e)},W=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};m(i=>[...i,t]),se?.({...t})},$=()=>{V(!0)},q=(e,t)=>{m(i=>i.map(n=>n.id===e?{...n,...t}:n)),ae?.(e,t)},z=e=>{m(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e)),oe?.(e)},Ne=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};g(i=>[...i,t]),de?.(e)},xe=(e,t)=>{g(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)},Ge=e=>{e==="backlog"||e==="all-tasks"||(g(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)),le?.(e))},b=e=>{j(e)},He=e=>{e==="planning"&&window.innerWidth<768||(x(e),Se?.(e))},Ke=()=>{Oe(e=>!e),Ee?.()},gt=()=>{G.push("/")},kt=e=>{console.log("Switching to team:",e)},Tt=e=>{console.log("Switching to team:",e)},We=e=>{I(e),R(!0)},$e=()=>{R(!1),I(null)},qe=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};T(i=>[...i,t]),fe?.(e)},ze=(e,t)=>{T(i=>i.map(n=>n.id===e?{...n,...t}:n)),he?.(e,t)},Je=e=>{T(t=>t.filter(i=>i.id!==e)),De?.(e)},Le=()=>{ge?.()},Qe=e=>{ke?.(e)},Xe=e=>{O(t=>t.filter(i=>i.name!==e)),Te?.(e)},Ye=e=>{ue?.(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"}],ft=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},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")}],ht=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Dt=y.length>3,St=y.slice(3);return et(J,{projects:F,epics:r,sprints:c,currentView:l,onUpdateProject:Ie,onDeleteProject:Be,onAddProject:je,onUpdateEpic:q,onDeleteEpic:z,onAddEpic:$,onViewChange:He,mobileMenuOpen:Me,onToggleMobileMenu:Ke,children:[l==="kanban"&&a("div",{className:"h-full overflow-hidden",children:a(Y,{initialProjects:F,initialEpics:r,initialSprints:c,initialTasks:p,initialColleagues:U,initialUsers:M,onAddTask:H,onUpdateTask:f,onDeleteTask:K,onTaskClick:b,onAddEpic:W,onAddComment:ve})}),l==="planning"&&a("div",{className:"hidden md:block h-full",children:a(_,{tasks:p,epics:r,sprints:c,onUpdateTask:f,onTaskClick:b,onAddSprint:Ne,onUpdateSprint:xe,onDeleteSprint:Ge})}),l==="tasks"&&a("div",{className:"h-full",children:a(ee,{initialReminders:Ae,initialColleagues:U,onAddReminder:qe,onUpdateReminder:ze,onDeleteReminder:Je})}),l==="files"&&a("div",{className:"h-full",children:a(L,{initialFiles:Ce,onFileAdd:Le,onFileEdit:Qe,onFileDelete:Xe,onFileClick:Ye,compactView:!1})}),l==="epics"&&a("div",{className:"h-full",children:a(Z,{tasks:p,epics:r,sprints:c,onUpdateTask:f,onTaskClick:b,onAddTaskToEpic:We,onAddEpic:$,onUpdateEpic:q,onDeleteEpic:z})}),a(Q,{isOpen:Ue,onClose:$e,onAddTask:H,epics:r,sprints:c,assignees:[...U,...M],defaultEpicId:Fe||void 0}),a(X,{isOpen:be,onClose:()=>V(!1),onAddEpic:W})]})}export{_e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-KW6L6KBY.mjs";import{a as k}from"./chunk-Z22NSJMF.mjs";import{a as N}from"./chunk-B4H6T2GP.mjs";import{a as h}from"./chunk-L5JPAKPM.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{b as c}from"./chunk-CSBGSBEU.mjs";import{a as w}from"./chunk-YO3GQYRJ.mjs";import{useState as p,useRef as y,useEffect as T}from"react";import{Plus as q,Move as G,Edit2 as J,Trash2 as K,Check as Q,X as W}from"lucide-react";import{Fragment as Y,jsx as t,jsxs as s}from"react/jsx-runtime";var ce=({tasks:C,epics:D,sprints:Z,onUpdateTask:P,onTaskClick:H,onAddTaskToEpic:B,onAddEpic:S,onUpdateEpic:z,onDeleteEpic:R})=>{let[m,b]=p(null),[l,f]=p(null),[r,o]=p({}),[u,x]=p(0),n=y(null),I=y(null);T(()=>{let e=()=>{if(n.current){let v=n.current.offsetHeight;x(v)}};e();let i=new ResizeObserver(e);n.current&&i.observe(n.current);let g=()=>{setTimeout(e,100)};return window.addEventListener("storage",g),()=>{i.disconnect(),window.removeEventListener("storage",g)}},[]),T(()=>{let e=setTimeout(()=>{n.current&&x(n.current.offsetHeight)},300);return()=>clearTimeout(e)},[l]);let $=e=>{b(e)},A=e=>{e.preventDefault()},L=(e,i)=>{e.preventDefault(),m&&m.epicId!==i&&(P(m.id,{epicId:i}),b(null))},M=e=>C.filter(i=>i.epicId===e),O=e=>{f(e.id),o({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase,progress:e.progress})},j=()=>{l&&r.name&&(z(l,r),f(null),o({}))},F=()=>{f(null),o({})},V=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&R(e)},_=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,U=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("div",{ref:I,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:n,className:"flex-shrink-0",children:t(k,{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:S}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:t("div",{className:"h-full overflow-y-auto",style:{height:u>0?`calc(100vh - ${u+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:D.map(e=>{let i=M(e.id),g=i.reduce((a,X)=>a+X.points,0),v=u>0?`calc(100vh - ${u+200}px)`:"calc(100vh - 14rem)";return s(w,{className:`flex flex-col ${l===e.id?"h-auto":""} bg-card shadow-sm`,style:{height:l===e.id?"auto":v,minHeight:"400px"},onDragOver:A,onDrop:a=>L(a,e.id),children:[t("div",{className:"p-4 border-b border-border",children:l===e.id?s("div",{className:"space-y-4",children:[s("div",{className:"flex items-center justify-between",children:[t(h,{value:r.name||"",onChange:a=>o({...r,name:a.target.value}),placeholder:"Epic name",className:"font-semibold"}),s("div",{className:"flex gap-2 ml-2",children:[t(d,{size:"sm",variant:"ghost",onClick:j,className:"p-1 h-8 w-8",children:t(Q,{className:"h-4 w-4"})}),t(d,{size:"sm",variant:"ghost",onClick:F,className:"p-1 h-8 w-8",children:t(W,{className:"h-4 w-4"})})]})]}),t(N,{value:r.description||"",onChange:a=>o({...r,description:a.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:r.confidence||e.confidence,onChange:a=>o({...r,confidence:a.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:r.phase?.toString()||e.phase.toString(),onChange:a=>o({...r,phase:parseInt(a.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(a=>s("option",{value:a.toString(),children:["Phase ",a]},a))})]})]}),s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),t(h,{type:"number",min:"0",max:"100",value:r.progress||e.progress,onChange:a=>o({...r,progress:parseInt(a.target.value)||0}),className:"text-xs"})]})]}):s(Y,{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(d,{size:"sm",variant:"ghost",onClick:()=>O(e),className:"p-1 h-8 w-8",children:t(J,{className:"h-3 w-3"})}),t(d,{size:"sm",variant:"ghost",onClick:()=>V(e.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:t(K,{className:"h-3 w-3"})})]})]}),s("div",{className:"flex flex-wrap gap-2 mb-3",children:[s(c,{className:`text-xs ${U(e.confidence)}`,children:[e.confidence," confidence"]}),s(c,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),s(c,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[i.length," tasks"]}),s(c,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[g," pts"]})]}),e.description&&t("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),s("div",{className:"mb-3",children:[s("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[t("span",{className:"select-none",children:"Progress"}),s("span",{className:"select-none",children:[e.progress,"%"]})]}),t("div",{className:"w-full bg-muted rounded-full h-2",children:t("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),s(d,{onClick:()=>B(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[t(q,{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 ${m?"border-primary bg-primary/10":"border-border"}`,children:i.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(G,{className:"h-8 w-8 mb-2"}),t("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):i.map(a=>t(E,{task:a,epic:e,onDragStart:$,onTaskClick:H,isCompact:!0},a.id))})})]},e.id)})})})})]})};export{ce as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as i}from"./chunk-WISC5QJV.mjs";import{a as c}from"./chunk-Q5XT55O3.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as m,useEffect as d}from"react";import{useTheme as S}from"next-themes";import{Moon as N,Sun as y}from"lucide-react";import{PopoverGroup as D}from"@headlessui/react";import{Fragment as H,jsx as e,jsxs as p}from"react/jsx-runtime";function z({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1,wide:b=!1}){let[v,a]=m(!1),[k,n]=m(""),r=["light","dark"],{theme:s,setTheme:w}=S();d(()=>{n(s||"dark")},[s]);let x=()=>{let t=r[(r.indexOf(k)+1)%r.length];n(t),w(t)};return d(()=>{let t=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(H,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${v||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:p("div",{className:l("flex items-center justify-between px-9 py-0",!b&&"container"),children:[e(c,{logoDark:f,logoLight:h}),e(D,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(i,{...t},t.name))}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:p("div",{className:"relative",children:[e(y,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"../../chunk-RULSHTXR.mjs";import{a as x}from"../../chunk-FTZRG54P.mjs";import"../../chunk-ISBVFNWD.mjs";import{a as n}from"../../chunk-EPTHSTUM.mjs";import{a as p}from"../../chunk-JCH2CCQ7.mjs";import{a as i}from"../../chunk-RVRIMD6M.mjs";import{a as l}from"../../chunk-53QLSQCO.mjs";import"../../chunk-IJQC7T2R.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-RYZTCMVC.mjs";import{a as q,b as r,c as s,d as t,e as u,f as v,g as w}from"../../chunk-2RQDJ5XT.mjs";import"../../chunk-PK3OBSCB.mjs";import{a as o}from"../../chunk-LJQPLE4S.mjs";import{a,b,c,d as h}from"../../chunk-N3B3XNV3.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-SRUG246N.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import{a as g}from"../../chunk-XGIYNUGC.mjs";import{a as f}from"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import{a as e}from"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import{a as d}from"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as j}from"../../chunk-H7D3PZKE.mjs";import{a as k}from"../../chunk-IQPZEEYJ.mjs";import"../../chunk-AZ4VR5JX.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.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-YEKQJ4YC.mjs";export{a as BannerBlock,c as CallToActionBlock,b as CallToActionBlockOld,e as CodeBlock,o as ContentBlock,d as CopyButton,v as DarkTop,h as FeaturesBlock,p as HeadingImage,g as ImageBlock,j as InfoTile,i as Insight,w as LightTop,k as MOTD,f as MediaBlock,l as OrgChart,m as ProposalSummary,x as RelatedPosts,r as RenderBlocks,t as RenderBlocksWithShapes,q as ReusableContentBlock,s as Theme,u as ThemeWithShapes,n as WhyUs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as d}from"../../chunk-MFCVMJBO.mjs";import{a as f}from"../../chunk-IQQ7ZWCP.mjs";import{a as e}from"../../chunk-RR4QSUV2.mjs";import{a as g}from"../../chunk-AMVJPDM3.mjs";import{a as c}from"../../chunk-V6GC3UGV.mjs";import{a as b}from"../../chunk-KVD6XDZT.mjs";import{a}from"../../chunk-LLED3RQS.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{g as CRMCogeBoard,d as CRMKanbanBoard,b as DealCard,a as DealDetails,c as KanbanColumn,e as NewCustomerForm,f as NewDealForm};
|