cortex-react-components 2.0.11 → 2.0.13
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-RGOKBIQ5.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-FGH7ESCA.mjs → chunk-2GNX22CR.mjs} +1 -1
- package/dist/{chunk-GTZJWMZR.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/{chunk-YTK3LJ6Z.mjs → chunk-3UMWGTHK.mjs} +1 -1
- package/dist/chunk-5BNMRE6J.mjs +4 -0
- package/dist/{chunk-75F3LJMX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/{chunk-CXOVEABI.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-RAGDUV7M.mjs → chunk-7VDNUJZC.mjs} +1 -1
- package/dist/{chunk-GBTFOUD6.mjs → chunk-AQZEZ3UR.mjs} +1 -1
- package/dist/{chunk-QTILVWJA.mjs → chunk-B2EJGXDG.mjs} +1 -1
- package/dist/{chunk-GVDM4RRN.mjs → chunk-B7AXSCTN.mjs} +1 -1
- package/dist/{chunk-V7F26YS5.mjs → chunk-BE5B22X7.mjs} +1 -1
- package/dist/{chunk-ABGNIQRP.mjs → chunk-ECXVQZBN.mjs} +1 -1
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/{chunk-M4UVNIK2.mjs → chunk-FTZRG54P.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-XXQPX7T3.mjs → chunk-H7PR7Q2X.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-TK4JC5PG.mjs → chunk-INPV5MBU.mjs} +1 -1
- package/dist/{chunk-V25DRKWY.mjs → chunk-JPLBPV7J.mjs} +1 -1
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-75WE6ZXB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/{chunk-KWYJ3XZI.mjs → chunk-LJOWXPWW.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-IPIDKLAW.mjs → chunk-RNMPX2AU.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-OQYER4E7.mjs → chunk-SW7RYGO6.mjs} +1 -1
- package/dist/chunk-TR6RBROH.mjs +1 -0
- package/dist/{chunk-YP5YVY6N.mjs → chunk-VVCAOIYO.mjs} +1 -1
- package/dist/chunk-VWLPVN4M.mjs +4 -0
- package/dist/{chunk-7HR6FNWF.mjs → chunk-XHR2HXMP.mjs} +1 -1
- package/dist/{chunk-C4RWEPVF.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
- package/dist/components/{DigitalColleagues/sidebar.d.ts → AdvancedComponents/AppSidebar.d.ts} +2 -2
- package/dist/components/AdvancedComponents/AppSidebar.js +5 -0
- package/dist/components/{DigitalColleagues/sidebar.mjs → AdvancedComponents/AppSidebar.mjs} +1 -1
- package/dist/components/AdvancedComponents/index.d.ts +3 -0
- package/dist/components/AdvancedComponents/index.js +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +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.js +1 -1
- package/dist/components/Chat/demo.mjs +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.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.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 -3
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -3
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.d.ts +13 -0
- package/dist/components/DigitalColleagues/index.js +5 -0
- package/dist/components/DigitalColleagues/index.mjs +1 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/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/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/business-unit-switcher.mjs +3 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +11 -11
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +15 -15
- 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/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HNCC3AOT.mjs +0 -4
- package/dist/components/AdvancedComponents/sidebar.d.ts +0 -16
- package/dist/components/AdvancedComponents/sidebar.js +0 -5
- package/dist/components/AdvancedComponents/sidebar.mjs +0 -4
- package/dist/components/DigitalColleagues/sidebar-new.d.ts +0 -17
- package/dist/components/DigitalColleagues/sidebar-new.js +0 -5
- package/dist/components/DigitalColleagues/sidebar-new.mjs +0 -4
- package/dist/components/DigitalColleagues/sidebar.css +0 -1
- package/dist/components/DigitalColleagues/sidebar.js +0 -5
- /package/dist/components/AdvancedComponents/{sidebar.css → AppSidebar.css} +0 -0
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/sidebar-favorites-readme.js +0 -0
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/sidebar-favorites-readme.mjs +0 -0
- /package/dist/components/DigitalColleagues/{sidebar-new.css → index.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as l}from"./chunk-
|
|
4
|
+
import{f as l}from"./chunk-N3B3XNV3.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-2BR55L74.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-BE5B22X7.mjs";import{a as f}from"./chunk-CBLP4MXP.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 i,jsxs as v}from"react/jsx-runtime";var b=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:i(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[e,O]=l(!M),[d,t]=l(!1),[m,I]=l(N),u=p=>{I(p),B?.(p)};return v("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[d&&i("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),i("div",{className:"md:hidden",children:i(a,{items:r,isOpen:d,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:m,onBusinessUnitChange:u,onSearch:c,logo:n,appName:o,tagline:s})}),i("div",{className:"hidden md:block",children:i(a,{items:r,isOpen:e,isMobile:!1,currentBusinessUnit:m,onBusinessUnitChange:u,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",e?"md:pl-64":"md:pl-0"),children:[i(f,{title:U,notifications:C,onToggleSidebar:()=>O(!e),onToggleMobileMenu:()=>t(!0),sidebarOpen:e,activeTab:x,onTabChange:T,showTabs:y,onActionClick:A,actionIcon:R,actionText:S,onNotificationRemove:k,onRemoveAll:w,logo:n,appName:o,tagline:s}),i("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:h})]})]})}export{E as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-PK3OBSCB.mjs";import{a as v}from"./chunk-LJQPLE4S.mjs";import{c as b,d as h}from"./chunk-N3B3XNV3.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-PXPSM7OQ.mjs";import{a as K}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-PXPSM7OQ.mjs";import{a as K}from"./chunk-KOXC4RIH.mjs";import{a as H}from"./chunk-AQZEZ3UR.mjs";import{a as x}from"./chunk-HHYHENVF.mjs";import{a as N}from"./chunk-2VZWOBGP.mjs";import{a as W}from"./chunk-NZS3XKXU.mjs";import{a as G}from"./chunk-ORNGKQM7.mjs";import{a as B}from"./chunk-FV3W3WL7.mjs";import{a as I}from"./chunk-ECXVQZBN.mjs";import{useState as s}from"react";import{useRouter as $e}from"next/navigation";import{jsx as a,jsxs as ze}from"react/jsx-runtime";function qe({title:Je="",initialTasks:q=[],initialEpics:z=[],initialSprints:J=[],initialProjects:L=[],initialReminders:Q=[],initialColleagues:X=[],initialFiles:Y=[],onAddTask:Le,onUpdateTask:v,onDeleteTask:Qe,onTaskClick:Xe,onAddEpic:Ye,onUpdateEpic:Z,onDeleteEpic:_,onAddTaskToEpic:Ze,onAddSprint:ee,onUpdateSprint:ie,onDeleteSprint:te,onAddProject:ne,onUpdateProject:se,onDeleteProject:ae,onFileAdd:oe,onFileEdit:de,onFileDelete:le,onFileClick:re,onAddReminder:ce,onUpdateReminder:pe,onDeleteReminder:ge,onViewChange:_e,onToggleMobileMenu:me,onTeamClick:ei,onTeamChange:ii,onCopilotClick:ti}){let[c,r]=s(q),[o,k]=s(z),[d,T]=s(J),[A,u]=s(L),[ke,f]=s(Q),[Te,ni]=s(X),[ue,C]=s(Y),[fe,P]=s(!1),[he,w]=s(!1),[p,h]=s(null),[De,R]=s(null),[b,U]=s(null),[l,Se]=s("kanban"),[Ee,ve]=s(!1),F=$e(),Ae=o.filter(e=>e.isSelected).map(e=>e.id),g=d.find(e=>e.isSelected),Ce=c.filter(e=>{let i=Ae.includes(e.epicId);return!g||g.id==="all-tasks"?i:g.id==="backlog"?i&&!e.sprintId:i&&e.sprintId===g.id}),si=e=>Ce.filter(i=>i.status===e),ai=e=>{let i={};return o.forEach(t=>{i[t.id]=e.filter(n=>n.epicId===t.id)}),i},oi=e=>{U(e)},di=e=>{b&&(r(i=>i.map(t=>t.id===b.id?{...t,status:e}:t)),U(null))},M=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};r(t=>[...t,i]),v?.(i.id,i)},m=(e,i)=>{r(t=>t.map(n=>n.id===e?{...n,...i}:n)),v?.(e,i)},Pe=async(e,i)=>{m(e,i)},O=e=>{r(i=>i.filter(t=>t.id!==e)),p?.id===e&&h(null)},we=async e=>{O(e)},Re=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};u(t=>[...t,i]),ne?.(e)},be=(e,i)=>{u(t=>t.map(n=>n.id===e?i.isSelected?(F.push(`/kanban/${e}`),{...n,...i}):{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),se?.(e,i)},Ue=e=>{u(i=>i.filter(t=>t.id!==e)),ae?.(e)},Fe=e=>{let i={...e,id:Date.now().toString(),isSelected:!0};k(t=>[...t,i])},D=()=>{w(!0)},j=(e,i)=>{k(t=>t.map(n=>n.id===e?{...n,...i}:n)),Z?.(e,i)},y=e=>{k(i=>i.filter(t=>t.id!==e)),r(i=>i.filter(t=>t.epicId!==e)),_?.(e)},V=e=>{let i={...e,id:Date.now().toString(),isSelected:!1};T(t=>[...t,i]),ee?.(e)},Me=(e,i)=>{T(t=>t.map(n=>n.id===e?i.isSelected?{...n,...i}:{...n,...i}:i.isSelected&&e!==n.id?{...n,isSelected:!1}:n)),ie?.(e,i)},Oe=e=>{e==="backlog"||e==="all-tasks"||(T(i=>i.filter(t=>t.id!==e)),r(i=>i.map(t=>t.sprintId===e?{...t,sprintId:void 0}:t)),te?.(e))},S=e=>{h(e)},je=e=>{e==="planning"&&window.innerWidth<768||Se(e)},ye=()=>{ve(e=>!e),me?.()},li=()=>{F.push("/")},ri=e=>{console.log("Switching to team:",e)},ci=e=>{console.log("Switching to team:",e)},Ve=e=>{R(e),P(!0)},Ie=()=>{P(!1),R(null)},Be=e=>{let i={...e,id:Date.now().toString(),createdAt:new Date};f(t=>[...t,i]),ce?.(e)},Ne=(e,i)=>{f(t=>t.map(n=>n.id===e?{...n,...i}:n)),pe?.(e,i)},xe=e=>{f(i=>i.filter(t=>t.id!==e)),ge?.(e)},Ge=e=>{C(i=>[...i,e]),oe?.(e)},He=e=>{de?.(e)},Ke=e=>{C(i=>i.filter(t=>t.name!==e)),le?.(e)},We=e=>{re?.(e)},pi=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],gi=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},E=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],mi=E.sort((e,i)=>i.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ki=E.length>3,Ti=E.slice(3);return ze(I,{projects:A,epics:o,sprints:d,currentView:l,onUpdateProject:be,onDeleteProject:Ue,onAddProject:Re,onUpdateEpic:j,onDeleteEpic:y,onAddEpic:D,onAddSprint:V,onUpdateSprint:Me,onDeleteSprint:Oe,onViewChange:je,mobileMenuOpen:Ee,onToggleMobileMenu:ye,children:[l==="kanban"&&a("div",{className:"h-full",children:a(H,{initialProjects:A,initialEpics:o,initialSprints:d,initialTasks:c,onAddTask:M,onUpdateTask:m,onDeleteTask:O,onTaskClick:S,onAddEpic:D})}),l==="planning"&&a("div",{className:"hidden md:block h-full",children:a(W,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddSprint:V})}),l==="tasks"&&a("div",{className:"h-full",children:a($,{initialReminders:ke,initialColleagues:Te,onAddReminder:Be,onUpdateReminder:Ne,onDeleteReminder:xe})}),l==="files"&&a("div",{className:"h-full",children:a(B,{initialFiles:ue,onFileAdd:Ge,onFileEdit:He,onFileDelete:Ke,onFileClick:We,compactView:!1})}),l==="epics"&&a("div",{className:"h-full",children:a(K,{tasks:c,epics:o,sprints:d,onUpdateTask:m,onTaskClick:S,onAddTaskToEpic:Ve,onAddEpic:D,onUpdateEpic:j,onDeleteEpic:y})}),a(N,{isOpen:fe,onClose:Ie,onAddTask:M,epics:o,sprints:d,defaultEpicId:De||void 0}),a(G,{isOpen:he,onClose:()=>w(!1),onAddEpic:Fe}),p&&a(x,{isOpen:!!p,onClose:()=>h(null),task:p,onUpdateTask:Pe,onDeleteTask:we,epics:o,sprints:d})]})}export{qe as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as O}from"./chunk-VVCAOIYO.mjs";import{a as T}from"./chunk-PEQOQ7BK.mjs";import{a as p,b as B,d as I}from"./chunk-5OQF3MNO.mjs";import{a as S}from"./chunk-KTET6W73.mjs";import{a as j}from"./chunk-3U3PZBHQ.mjs";import{a as F}from"./chunk-5RTGHMF3.mjs";import{a as i}from"./chunk-2NMVE5M4.mjs";import{a as P}from"./chunk-2GNX22CR.mjs";import{a as w,b as k,e as A}from"./chunk-PA4ZBJDO.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{b as v}from"./chunk-CSBGSBEU.mjs";import{a as h,b,c as N,d as x,e as y,f as C}from"./chunk-YO3GQYRJ.mjs";import{useState as U}from"react";import{motion as W,AnimatePresence as _}from"framer-motion";import{Bot as $}from"lucide-react";import{motion as Y}from"framer-motion";import{Star as K}from"lucide-react";import{jsx as s,jsxs as r}from"react/jsx-runtime";function g({app:a,onOpen:d,onFavorite:l,showProgress:n=!1,className:c}){return s(Y.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:c,children:r(h,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[s(b,{className:"pb-2",children:r("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(v,{className:"rounded-xl bg-amber-500",children:"New"}):s(m,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-2xl",onClick:()=>l?.(a),children:s(K,{className:"h-4 w-4"})})]})}),r(y,{className:"pb-2",children:[s(N,{className:"text-lg",children:a.name}),s(x,{children:a.description}),n&&a.progress<100&&r("div",{className:"mt-2",children:[r("div",{className:"flex items-center justify-between text-sm",children:[s("span",{children:"Installation"}),r("span",{children:[a.progress,"%"]})]}),s(F,{value:a.progress,className:"h-2 mt-1 rounded-xl"})]})]}),s(C,{children:s(m,{variant:"secondary",className:"w-full rounded-2xl",onClick:()=>d?.(a),children:a.progress<100?"Continue Install":"Open"})})]})})}import{jsx as e,jsxs as o}from"react/jsx-runtime";function q({title:a="Digital Colleagues",businessUnits:d}){let[l,n]=U("home"),[c,D]=U(d[0]),u=t=>{console.log("Opening app:",t.name)},f=t=>{console.log("Favoriting app:",t.name)},R=t=>{console.log("Opening file:",t.name)},J=t=>{console.log("Sharing file:",t.name)},H=t=>{console.log("Opening project:",t.name)},L=t=>{console.log("Sharing project:",t.name)},V=t=>{D(t),console.log("Business unit changed to:",t.name)},z=()=>{console.log("Copilot clicked - navigating to chat"),n("chat")},E=t=>{console.log("Notification removed:",t)},G=()=>{console.log("All notifications removed")},M=()=>{switch(l){case"home":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[o("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",c.name," team"]}),e("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),o("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o("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:"12"}),e("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),o("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:"8"}),e("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),o("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:"156"}),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:()=>n("chat")}})]});case"colleagues":return e(O,{});case"chat":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[e("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),o("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",c.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 o("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")}}),o("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:p.filter(t=>t.new).map(t=>e(g,{app:t,showProgress:!0,onOpen:u,onFavorite:f},t.name))})]}),o("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:p.map(t=>e(g,{app:t,onOpen:u,onFavorite:f},t.name))})]})]});case"knowledge":return e(S,{});case"files":return o("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")}}),o("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(j,{files:B,onFileClick:R})]})]});case"projects":return o("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:()=>console.log("New project clicked")}}),o("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:A.map(t=>e(T,{project:t,onOpen:H,onShare:L},t.name))})]})]});case"learn":return o("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")}}),o("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:I.slice(0,3).map(t=>o("div",{className:"rounded-3xl border p-6",children:[e("h3",{className:"font-semibold mb-2",children:t.title}),e("p",{className:"text-sm text-muted-foreground mb-4",children:t.description}),o("div",{className:"flex items-center justify-between text-sm",children:[e("span",{children:t.duration}),e("span",{children:t.level})]})]},t.title))})]})]});default:return null}};return e(P,{sidebarItems:w,title:a,notifications:k,businessUnits:d,currentBusinessUnit:c,onBusinessUnitChange:V,activeTab:l,onTabChange:n,showTabs:!0,onActionClick:z,actionIcon:e($,{className:"mr-2 h-4 w-4"}),actionText:"Start Chat",onNotificationRemove:E,onRemoveAll:G,children:e(_,{mode:"wait",children:e(W.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:M()},l)})})}export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-N3B3XNV3.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-M7NV6EFH.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-N3B3XNV3.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
2
2
|
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),p=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),h=a=>{let{title:r,hero:t,logoImage:s}=a;return i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(l,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width?t.media.width??1920:1920,height:t.media&&t.media.height?t.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(l,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:r}),t.richText&&e(o,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{n as a,p as b,h as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as S,b as C,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-
|
|
4
|
+
import{a as S,b as C,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-O5P35LEY.mjs";import{a as n}from"./chunk-7GSXNSLD.mjs";import{ChevronRight as G}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:u,secondaryNav:s,ongoingWork:l,title:t,subTitle:o,pathName:i,menuHeading:O,onNavClick:m,loading:b=!1,LinkComponent:N,...A}){let g=N?a=>e(N,{...a}):m?({href:a,children:p,...I})=>e("button",{onClick:()=>m&&m(a),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:p}):a=>e("a",{...a});return r(k,{...A,variant:"inset",children:[e(v,{children:e(c,{children:e(d,{children:b?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:t}),o&&e("span",{className:"truncate text-sm",children:o})]})})})}),b&&r(f,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(f,{children:[e("div",{className:"px-4 text-sm",children:"Recent Work"}),l&&!b&&l.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e("div",{className:"border-t border-gray-200 my-4"}),u&&!b&&u.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e(y,{className:"mt-auto",children:e(x,{children:e(c,{children:s&&!b&&s.map(a=>e(d,{children:e(h,{asChild:!0,size:"sm",children:r(g,{href:a.url||"",children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})})},a.label))})})})]}),e(R,{})]})}function F({subNav:u,pathName:s,Link:l}){let t=u,o=!1;return t.links&&t.links.map(i=>{i.url===s&&(o=!0)}),e(S,{defaultOpen:!0,className:"group/collapsible",children:e(y,{className:"py-0",children:e(c,{children:e(S,{asChild:!0,defaultOpen:t.isActive,children:r(d,{children:[e(h,{asChild:!0,tooltip:t.label,className:T(o&&"font-bold text-accent"),children:r(l,{href:t.url,children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})}),t.links?.length?r(H,{children:[e(C,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(G,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(L,{children:t.links?.map(i=>e(P,{children:e(B,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(l,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},t.label)})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as w}from"./chunk-HHYHENVF.mjs";import{a as P}from"./chunk-2VZWOBGP.mjs";import{a as b}from"./chunk-6YHVVP3S.mjs";import{a as h}from"./chunk-AMV3MECK.mjs";import{a as O}from"./chunk-ORNGKQM7.mjs";import{a as D}from"./chunk-2NMVE5M4.mjs";import{b as C}from"./chunk-CSBGSBEU.mjs";import{useState as n}from"react";import{Fragment as X,jsx as e,jsxs as d}from"react/jsx-runtime";var cs=({initialTasks:B=[],initialEpics:N=[],initialSprints:x=[],initialProjects:Y=[],onAddTask:M,onUpdateTask:k,onDeleteTask:v,onTaskClick:j,onAddEpic:I})=>{let[K,r]=n(B),[o,R]=n(N),[m,Z]=n(x),[F,E]=n(!1),[H,A]=n(!1),[c,u]=n(null),[T,S]=n(null),y=o.filter(s=>s.isSelected).map(s=>s.id),l=m.find(s=>s.isSelected),U=K.filter(s=>{let t=y.includes(s.epicId);return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),V=s=>U.filter(t=>t.status===s),$=s=>{let t={};return o.forEach(i=>{t[i.id]=s.filter(a=>a.epicId===i.id)}),t},q=s=>{S(s)},z=s=>{T&&(r(t=>t.map(i=>i.id===T.id?{...i,status:s}:i)),k?.(T.id,{status:s}),S(null))},G=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),M?.(s)},J=async(s,t)=>{r(i=>i.map(a=>a.id===s?{...a,...t}:a)),k&&await k(s,t)},L=async s=>{r(t=>t.filter(i=>i.id!==s)),c?.id===s&&u(null),v&&await v(s)},Q=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};R(i=>[...i,t]),I?.(s)},W=s=>{u(s),j?.(s)};return d("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(D,{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:()=>E(!0)},secondaryAction:{label:"Add epic",onClick:()=>A(!0)}}),e("div",{className:"flex-1",children:d("div",{className:"w-full",children:[e("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=V(s.status),i=$(t);return e(h,{title:s.title,status:s.status,taskCount:t.length,onDrop:z,isCompact:s.status==="done",children:y.map(a=>{let f=o.find(p=>p.id===a),g=i[a]||[];return g.length===0?null:d("div",{className:"mb-6",children:[d("div",{className:"flex items-center gap-2 mb-3",children:[e("div",{className:`w-3 h-3 rounded-full ${f?.color}`}),e("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:f?.name}),e(C,{variant:"secondary",className:"text-xs",children:g.length})]})," ",e("div",{className:"space-y-3",children:g.map(p=>e(b,{task:p,epic:f,onDragStart:q,onTaskClick:W,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),d(X,{children:[e(P,{isOpen:F,onClose:()=>E(!1),onAddTask:G,epics:o,sprints:m}),e(O,{isOpen:H,onClose:()=>A(!1),onAddEpic:Q}),c&&e(w,{isOpen:!!c,onClose:()=>u(null),task:c,epics:o,sprints:m,onUpdateTask:J,onDeleteTask:L})]})]})})]})};export{cs as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-
|
|
4
|
+
import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-O5P35LEY.mjs";import{a as f}from"./chunk-7GSXNSLD.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as 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 l}from"./chunk-HKGW6JI2.mjs";import{a as m}from"./chunk-YKG4FNS4.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as
|
|
4
|
+
import{c as L}from"./chunk-PA4ZBJDO.mjs";import{a as I}from"./chunk-INCYANPB.mjs";import{a as f}from"./chunk-FT3AE7L2.mjs";import{a as D,f as B,g as F,i as U}from"./chunk-3UMMMQEH.mjs";import{a as C}from"./chunk-L5JPAKPM.mjs";import{b as k}from"./chunk-ZUA4KNIR.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{a as A}from"./chunk-FLHDNCNY.mjs";import*as u from"react";import R from"next/link";import{ChevronDown as J,Search as Y,Settings as Z,X as _}from"lucide-react";import{Fragment as $,jsx as t,jsxs as n}from"react/jsx-runtime";function he({items:v,isOpen:x,isMobile:l=!1,onClose:g,currentBusinessUnit:ee=L[0],onBusinessUnitChange:E,onSearch:H,className:h,logo:P="/headerlogo.png",appName:j="Nuvia",tagline:T="Collaboration Platform"}){let[b,z]=u.useState({}),[d,K]=A("sidebar-favorites",{}),[N,y]=u.useState(null),[p,Q]=u.useState(""),q=e=>{z(a=>({...a,[e]:!a[e]}))},te=e=>{E?.(e)},M=()=>{p.trim()&&H?.(p.trim())},O=e=>{e.key==="Enter"&&(e.preventDefault(),M())},V=(e,a)=>{let s=d[e]||[],r=s.includes(a)?s.filter(i=>i!==a):s.concat(a);K({...d,[e]:r})},c=e=>{if(!e.items||!e.maxItems||e.items.length<=e.maxItems)return e.items||[];let a=d[e.id]||[],s=e.items.filter(i=>a.includes(i.id)),r=e.items.filter(i=>!a.includes(i.id));return[...s,...r].slice(0,e.maxItems)},S=e=>e.maxItems&&e.items&&e.items.length>e.maxItems,W=v,X=e=>{let a=S(e),s=c(e),r=n($,{children:[n("div",{className:"flex items-center gap-3",children:[e.icon,t("span",{children:e.title})]}),e.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:e.badge}),e.items&&t(J,{className:o("ml-2 h-4 w-4 transition-transform",b[e.title]?"rotate-180":"")})]}),i=o("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",e.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return e.url?t(R,{href:e.url,className:i,onClick:l?g:void 0,children:r}):t("button",{className:i,onClick:()=>e.items&&q(e.title),children:r})},G=()=>{let e=v.find(s=>s.id===N);if(!e||!e.items||!e.maxItems)return null;let a=d[e.id]||[];return t(D,{open:!!N,onOpenChange:s=>!s&&y(null),children:n(B,{className:"sm:max-w-md",children:[n(F,{children:[n(U,{children:["Manage ",e.title," Favorites"]}),n("p",{className:"text-sm text-muted-foreground",children:["Select up to ",e.maxItems," items to show in ",e.title.toLowerCase(),"."]})]}),t(f,{className:"max-h-96 pr-4",children:t("div",{className:"space-y-4",children:e.items.map(s=>n("div",{className:"flex items-center space-x-2",children:[t(I,{id:s.id,checked:a.includes(s.id),onCheckedChange:()=>V(e.id,s.id),disabled:!a.includes(s.id)&&a.length>=(e.maxItems||0)}),n("label",{htmlFor:s.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[s.title,s.badge&&t(m,{variant:"outline",className:"text-xs",children:s.badge})]})]},s.id))})})]})})},w=n("div",{className:"flex h-full flex-col bg-background",children:[n("div",{className:"flex items-center justify-between p-4",children:[n("div",{className:"flex items-center gap-3",children:[t("div",{className:"flex h-14 w-14 items-center justify-center",children:t("img",{src:P,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),n("div",{children:[t("h2",{className:"font-semibold",children:j}),t("p",{className:"text-xs text-muted-foreground",children:T})]})]}),l&&t(k,{variant:"ghost",size:"icon",onClick:g,children:t(_,{className:"h-5 w-5"})})]}),t("div",{className:"px-3 py-2",children:n("div",{className:"relative",children:[t(Y,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(C,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:p,onChange:e=>Q(e.target.value),onKeyPress:O})]})}),t(f,{className:"flex-1 px-3 py-2",children:t("div",{className:"space-y-1",children:W.map(e=>n("div",{className:"mb-1",children:[X(e),e.items&&b[e.title]&&n("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[c(e).map(a=>n(R,{href:a.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:l?g:void 0,children:[a.title,a.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:a.badge})]},a.id)),S(e)&&e.items&&e.items.length>c(e).length&&n("button",{onClick:()=>y(e.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",e.items.length-c(e).length," more available"]})]})]},e.id))})}),t("div",{className:"p-3",children:t("div",{className:"space-y-1",children:n("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[t(Z,{className:"h-5 w-5"}),t("span",{children:"Settings"})]})})}),t(G,{})]});return l?t("div",{className:o("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",x?"translate-x-0":"-translate-x-full",h),children:w}):t("div",{className:o("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",x?"translate-x-0":"-translate-x-full",h),children:w})}export{he as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I,c as T,d as F,g as $,i as M}from"./chunk-YFAZQYK4.mjs";import{a as w}from"./chunk-B4H6T2GP.mjs";import{b as _}from"./chunk-ZFUP5NVF.mjs";import{a as l}from"./chunk-L5JPAKPM.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as S}from"./chunk-YO3GQYRJ.mjs";import{useState as d}from"react";import{X as De,Plus as O,Edit2 as L,Trash2 as R,Calendar as K,Kanban as Pe,FileText as je,FolderOpen as V,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as H,jsx as e,jsxs as t}from"react/jsx-runtime";var ee=({projects:g,epics:ae,sprints:te,currentView:b,onUpdateProject:U,onDeleteProject:se,onAddProject:ne,onUpdateEpic:X,onDeleteEpic:ie,onAddEpic:re,onAddSprint:le,onUpdateSprint:q,onDeleteSprint:oe,onViewChange:h,mobileMenuOpen:G,onToggleMobileMenu:de})=>{let[o,u]=d(null),[k,C]=d(null),[D,P]=d(null),[j,E]=d(null),[x,y]=d({name:"",description:""}),[r,c]=d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,v]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[ce,A]=d(!1),[me,z]=d(!1),[f,B]=d({name:"",description:""}),[p,N]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],J=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],Q=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],ue=a=>{C(a.id),y({name:a.name,description:a.description||""})},ve=()=>{k&&x.name.trim()&&(U(k,{name:x.name.trim(),description:x.description.trim()}),C(null))},ge=()=>{C(null),y({name:"",description:""})},be=()=>{f.name.trim()&&(ne({name:f.name.trim(),description:f.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{U(a,{isSelected:!0})},xe=a=>{P(a.id),c({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},fe=()=>{D&&r.name.trim()&&(X(D,{name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:new Date(r.startDate),endDate:new Date(r.endDate),progress:r.progress}),P(null))},Ne=()=>{P(null),c({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},ye=a=>{E(a.id),v({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},we=()=>{j&&m.name.trim()&&(q(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},Se=()=>{E(null),v({name:"",description:"",startDate:"",endDate:"",isActive:!1})},ke=()=>{p.name.trim()&&(le({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),N({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},Ce=a=>{q(a,{isSelected:!0})},W=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Y=a=>{let s=J.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Medium",color:"text-warning"}},Z=a=>{let s=Q.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Phase 1",color:"text-primary"}};return t(H,{children:[t("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${G?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"border-b border-sidebar-border",children:[t("button",{onClick:()=>{h("kanban"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[e(Pe,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),t("button",{onClick:()=>{h("planning"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),t("button",{onClick:()=>u(o==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[e(V,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),t("button",{onClick:()=>{h("epics"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[e(Ee,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),t("button",{onClick:()=>u(o==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[e(Ae,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),t("button",{onClick:()=>{h("files"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[e(je,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),t("button",{onClick:()=>{h("tasks"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),G&&e("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:de}),o&&t(H,{children:[e("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>u(null)}),t("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[t("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[t("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="files"&&"Files"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>u(null),children:e(De,{className:"h-4 w-4"})})]}),t("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Projects"}),t(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),ce&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:f.name,onChange:a=>B(s=>({...s,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:f.description,onChange:a=>B(s=>({...s,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:be,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:g.map(a=>e("div",{className:"border rounded p-2",children:k===a.id?t("div",{className:"space-y-2",children:[e(l,{value:x.name,onChange:s=>y(n=>({...n,name:s.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:x.description,onChange:s=>y(n=>({...n,description:s.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ve,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ge,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>he(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(V,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-1",children:a.description}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ue(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Epics"}),t(i,{size:"sm",onClick:re,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:D===a.id?t("div",{className:"space-y-3",children:[e(l,{value:r.name,onChange:s=>c(n=>({...n,name:s.target.value})),placeholder:"Epic name",className:"text-sm"}),e(w,{value:r.description,onChange:s=>c(n=>({...n,description:s.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),t("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(s=>e("button",{onClick:()=>c(n=>({...n,color:s})),className:`w-6 h-6 rounded-full ${s} ${r.color===s?"ring-2 ring-ring":""}`},s))})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),t(I,{value:r.confidence,onValueChange:s=>c(n=>({...n,confidence:s})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:J.map(s=>e(M,{value:s.value,children:e("span",{className:s.color,children:s.label})},s.value))})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),t(I,{value:r.phase.toString(),onValueChange:s=>c(n=>({...n,phase:parseInt(s)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:Q.map(s=>e(M,{value:s.value.toString(),children:e("span",{className:s.color,children:s.label})},s.value))})]})]})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(l,{type:"date",value:r.startDate,onChange:s=>c(n=>({...n,startDate:s.target.value})),className:"text-xs h-8"})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(l,{type:"date",value:r.endDate,onChange:s=>c(n=>({...n,endDate:s.target.value})),className:"text-xs h-8"})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(l,{type:"number",min:"0",max:"100",value:r.progress,onChange:s=>c(n=>({...n,progress:parseInt(s.target.value)||0})),className:"text-xs h-8"})]}),t("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:fe,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Ne,className:"text-xs",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>X(a.id,{isSelected:!a.isSelected}),children:[t("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-2",children:a.description}),t("div",{className:"space-y-1 mb-2",children:[t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Confidence:"}),e("span",{className:Y(a.confidence).color,children:Y(a.confidence).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Phase:"}),e("span",{className:Z(a.phase).color,children:Z(a.phase).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Timeline:"}),t("span",{className:"text-foreground",children:[W(a.startDate)," - ",W(a.endDate)]})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Progress:"}),t("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-muted rounded-full",children:e("div",{className:"h-2 bg-primary rounded-full",style:{width:`${a.progress}%`}})}),t("span",{className:"text-foreground",children:[a.progress,"%"]})]})]})]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>xe(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),t(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:p.name,onChange:a=>N(s=>({...s,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:p.startDate,onChange:a=>N(s=>({...s,startDate:a.target.value})),className:"text-xs"}),e(l,{type:"date",value:p.endDate,onChange:a=>N(s=>({...s,endDate:a.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>N(s=>({...s,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ke,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?t("div",{className:"space-y-2",children:[e(l,{value:m.name,onChange:s=>v(n=>({...n,name:s.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&t(H,{children:[t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:m.startDate,onChange:s=>v(n=>({...n,startDate:s.target.value})),className:"text-xs"}),e(l,{type:"date",value:m.endDate,onChange:s=>v(n=>({...n,endDate:s.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:s=>v(n=>({...n,isActive:s.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:we,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Se,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Ce(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(K,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&t("p",{className:"text-xs text-muted-foreground mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ye(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Xe=g=>e(_,{children:t("div",{className:"flex w-full",children:[e("div",{className:"hidden md:block w-12 fixed h-full",children:e(ee,{...g})}),e("div",{className:"md:hidden",children:e(ee,{...g})}),e("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:e("div",{className:"w-full",children:g.children})})]})});export{Xe as a};
|
|
1
|
+
import{a as I,c as T,d as F,g as $,i as M}from"./chunk-YFAZQYK4.mjs";import{a as w}from"./chunk-B4H6T2GP.mjs";import{b as _}from"./chunk-O5P35LEY.mjs";import{a as l}from"./chunk-L5JPAKPM.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as S}from"./chunk-YO3GQYRJ.mjs";import{useState as d}from"react";import{X as De,Plus as O,Edit2 as L,Trash2 as R,Calendar as K,Kanban as Pe,FileText as je,FolderOpen as V,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as H,jsx as e,jsxs as t}from"react/jsx-runtime";var ee=({projects:g,epics:ae,sprints:te,currentView:b,onUpdateProject:U,onDeleteProject:se,onAddProject:ne,onUpdateEpic:X,onDeleteEpic:ie,onAddEpic:re,onAddSprint:le,onUpdateSprint:q,onDeleteSprint:oe,onViewChange:h,mobileMenuOpen:G,onToggleMobileMenu:de})=>{let[o,u]=d(null),[k,C]=d(null),[D,P]=d(null),[j,E]=d(null),[x,y]=d({name:"",description:""}),[r,c]=d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,v]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[ce,A]=d(!1),[me,z]=d(!1),[f,B]=d({name:"",description:""}),[p,N]=d({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],J=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],Q=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],ue=a=>{C(a.id),y({name:a.name,description:a.description||""})},ve=()=>{k&&x.name.trim()&&(U(k,{name:x.name.trim(),description:x.description.trim()}),C(null))},ge=()=>{C(null),y({name:"",description:""})},be=()=>{f.name.trim()&&(ne({name:f.name.trim(),description:f.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{U(a,{isSelected:!0})},xe=a=>{P(a.id),c({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},fe=()=>{D&&r.name.trim()&&(X(D,{name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:new Date(r.startDate),endDate:new Date(r.endDate),progress:r.progress}),P(null))},Ne=()=>{P(null),c({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},ye=a=>{E(a.id),v({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},we=()=>{j&&m.name.trim()&&(q(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},Se=()=>{E(null),v({name:"",description:"",startDate:"",endDate:"",isActive:!1})},ke=()=>{p.name.trim()&&(le({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),N({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},Ce=a=>{q(a,{isSelected:!0})},W=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Y=a=>{let s=J.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Medium",color:"text-warning"}},Z=a=>{let s=Q.find(n=>n.value===a);return s?{label:s.label,color:s.color}:{label:"Phase 1",color:"text-primary"}};return t(H,{children:[t("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${G?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"border-b border-sidebar-border",children:[t("button",{onClick:()=>{h("kanban"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[e(Pe,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),t("button",{onClick:()=>{h("planning"),u(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),t("button",{onClick:()=>u(o==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[e(V,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),t("button",{onClick:()=>{h("epics"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[e(Ee,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),t("button",{onClick:()=>u(o==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[e(Ae,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),t("button",{onClick:()=>{h("files"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[e(je,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),t("button",{onClick:()=>{h("tasks"),u(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[e(K,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),G&&e("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:de}),o&&t(H,{children:[e("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>u(null)}),t("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[t("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[t("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="files"&&"Files"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>u(null),children:e(De,{className:"h-4 w-4"})})]}),t("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Projects"}),t(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),ce&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:f.name,onChange:a=>B(s=>({...s,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:f.description,onChange:a=>B(s=>({...s,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:be,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:g.map(a=>e("div",{className:"border rounded p-2",children:k===a.id?t("div",{className:"space-y-2",children:[e(l,{value:x.name,onChange:s=>y(n=>({...n,name:s.target.value})),placeholder:"Project name",className:"text-sm"}),e(w,{value:x.description,onChange:s=>y(n=>({...n,description:s.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ve,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ge,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>he(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(V,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-1",children:a.description}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ue(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Epics"}),t(i,{size:"sm",onClick:re,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:D===a.id?t("div",{className:"space-y-3",children:[e(l,{value:r.name,onChange:s=>c(n=>({...n,name:s.target.value})),placeholder:"Epic name",className:"text-sm"}),e(w,{value:r.description,onChange:s=>c(n=>({...n,description:s.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),t("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(s=>e("button",{onClick:()=>c(n=>({...n,color:s})),className:`w-6 h-6 rounded-full ${s} ${r.color===s?"ring-2 ring-ring":""}`},s))})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),t(I,{value:r.confidence,onValueChange:s=>c(n=>({...n,confidence:s})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:J.map(s=>e(M,{value:s.value,children:e("span",{className:s.color,children:s.label})},s.value))})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),t(I,{value:r.phase.toString(),onValueChange:s=>c(n=>({...n,phase:parseInt(s)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:Q.map(s=>e(M,{value:s.value.toString(),children:e("span",{className:s.color,children:s.label})},s.value))})]})]})]}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(l,{type:"date",value:r.startDate,onChange:s=>c(n=>({...n,startDate:s.target.value})),className:"text-xs h-8"})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(l,{type:"date",value:r.endDate,onChange:s=>c(n=>({...n,endDate:s.target.value})),className:"text-xs h-8"})]})]}),t("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(l,{type:"number",min:"0",max:"100",value:r.progress,onChange:s=>c(n=>({...n,progress:parseInt(s.target.value)||0})),className:"text-xs h-8"})]}),t("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:fe,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Ne,className:"text-xs",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>X(a.id,{isSelected:!a.isSelected}),children:[t("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-muted-foreground mb-2",children:a.description}),t("div",{className:"space-y-1 mb-2",children:[t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Confidence:"}),e("span",{className:Y(a.confidence).color,children:Y(a.confidence).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Phase:"}),e("span",{className:Z(a.phase).color,children:Z(a.phase).label})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Timeline:"}),t("span",{className:"text-foreground",children:[W(a.startDate)," - ",W(a.endDate)]})]}),t("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-muted-foreground",children:"Progress:"}),t("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-muted rounded-full",children:e("div",{className:"h-2 bg-primary rounded-full",style:{width:`${a.progress}%`}})}),t("span",{className:"text-foreground",children:[a.progress,"%"]})]})]})]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>xe(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(S,{className:"p-3",children:t("div",{className:"space-y-3",children:[t("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),t(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&t("div",{className:"border rounded-lg p-2 space-y-2",children:[e(l,{value:p.name,onChange:a=>N(s=>({...s,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:p.startDate,onChange:a=>N(s=>({...s,startDate:a.target.value})),className:"text-xs"}),e(l,{type:"date",value:p.endDate,onChange:a=>N(s=>({...s,endDate:a.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>N(s=>({...s,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ke,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?t("div",{className:"space-y-2",children:[e(l,{value:m.name,onChange:s=>v(n=>({...n,name:s.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&t(H,{children:[t("div",{className:"grid grid-cols-2 gap-1",children:[e(l,{type:"date",value:m.startDate,onChange:s=>v(n=>({...n,startDate:s.target.value})),className:"text-xs"}),e(l,{type:"date",value:m.endDate,onChange:s=>v(n=>({...n,endDate:s.target.value})),className:"text-xs"})]}),t("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:s=>v(n=>({...n,isActive:s.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),t("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:we,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:Se,className:"text-xs h-6",children:"Cancel"})]})]}):t("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Ce(a.id),children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e(K,{className:"h-3 w-3 text-muted-foreground"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&t("p",{className:"text-xs text-muted-foreground mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),t("div",{className:"flex gap-1",onClick:s=>s.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ye(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Xe=g=>e(_,{children:t("div",{className:"flex w-full",children:[e("div",{className:"hidden md:block w-12 fixed h-full",children:e(ee,{...g})}),e("div",{className:"md:hidden",children:e(ee,{...g})}),e("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:e("div",{className:"w-full",children:g.children})})]})});export{Xe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-N3B3XNV3.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-M7NV6EFH.mjs";import{a as l}from"./chunk-FMJBJ3HN.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-ISBVFNWD.mjs";import{f as s}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-ISBVFNWD.mjs";import{f as s}from"./chunk-N3B3XNV3.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./chunk-
|
|
1
|
+
import{f as t}from"./chunk-N3B3XNV3.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
|
|
@@ -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-2GNX22CR.mjs";import{a as I}from"./chunk-5BK3HTPN.mjs";import{a as S}from"./chunk-FI57DC3P.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as a}from"react";import{motion as ue,AnimatePresence as ge}from"framer-motion";import{Users as fe}from"lucide-react";import{jsx as i,jsxs as he}from"react/jsx-runtime";function Ae({aiConfig:F,useCustomChat:w,enableAI:B=!0,messages:D=[],businessUnits:T=[],capabilities:N=[],sidebarItems:x=[],notifications:R=[],sessions:A=[],onNewChat:M,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=d=>console.log("Search query:",d),initialTeam:z="design",currentSession:g=null,showCapabilities:ye=!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=i(fe,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let d=me(F||{}),r=B?w||d:null,[Y,m]=a(""),[Z,C]=a(!1),_=r?.messages||D,l=Y,j=r?.status==="submitted"||Z,n=T||[],ee={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"},[te,se]=a(()=>n.length===0?ee:n.find(e=>e.id===z)||n[0]),[o,c]=a([]),[ie,ne]=a(!1),oe=e=>{if(!e||!f)return;let s=[];Array.from(e).forEach(t=>{if(t.size>h*1024*1024){alert(`File ${t.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(p=>t.type.match(p))){alert(`File type ${t.type} is not allowed.`);return}let v={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:t,status:"pending",progress:0};if(t.type.startsWith("image/")){let p=new FileReader;p.onload=pe=>{c(de=>de.map(u=>u.id===v.id?{...u,preview:pe.target?.result}:u))},p.readAsDataURL(t)}s.push(v)}),c(t=>[...t,...s])},ae=e=>{c(s=>s.filter(t=>t.id!==e))},U=()=>{if(!(!l.trim()&&o.length===0)){if(r){let e=o.length>0?re(o.map(s=>s.file)):void 0;r.sendMessage({text:l,files:e},{body:{timestamp:Date.now()}}),m("")}else console.log("Message to send:",l),console.log("Files to upload:",o),m(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},re=e=>{let s=new DataTransfer;return e.forEach(t=>s.items.add(t)),s.files},le=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),U())},ce=e=>{m(e)};return i(b,{sidebarItems:x||[],title:W,notifications:R||[],businessUnits:n,currentBusinessUnit:te,onBusinessUnitChange:e=>{e&&(se(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:i(ge,{mode:"wait",children:i(ue.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:he("div",{className:"h-full flex",children:[i("div",{className:"w-80 flex-shrink-0 h-full p-2",children:i(I,{sessions:A||[],currentSession:g,teams:n,onNewChat:M,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),i("div",{className:"flex-1 h-full p-2",children:i(S,{messages:_||[],input:l,isTyping:j,currentSessionTitle:g?.title,capabilities:N||[],onInputChange:ce,onSendMessage:U,onKeyPress:le,fileUploads:o,isDragOver:ie,enableFileUpload:f,onFileUpload:oe,onRemoveFile:ae,onDragOver:ne})})]})},"chat-interface")})})}export{Ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-N3B3XNV3.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-7GMAMIHM.mjs";import{b as y}from"./chunk-2RQDJ5XT.mjs";import{a as P}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
4
|
+
import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-O5P35LEY.mjs";import{a as n}from"./chunk-7GSXNSLD.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
|