cortex-react-components 1.67.0 → 1.67.2
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-DOFKMHT2.mjs → chunk-22SIVBWN.mjs} +1 -1
- package/dist/{chunk-A4BEHDZD.mjs → chunk-2MTAQ2YX.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
- package/dist/{chunk-4GL57G4E.mjs → chunk-5J244QX4.mjs} +1 -1
- package/dist/{chunk-5BZ2F6QC.mjs → chunk-63YL7TOA.mjs} +1 -1
- package/dist/{chunk-SKQYQ4SD.mjs → chunk-737CTHXW.mjs} +1 -1
- package/dist/{chunk-ROEJPYRW.mjs → chunk-77KWI6EL.mjs} +1 -1
- package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
- package/dist/chunk-ATUSSZXR.mjs +4 -0
- package/dist/{chunk-NTWNAEFS.mjs → chunk-DYW75KZH.mjs} +1 -1
- package/dist/{chunk-BMLVI7N2.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/{chunk-OU3PM75Z.mjs → chunk-JBWGBBHF.mjs} +1 -1
- package/dist/{chunk-QPBS5LFV.mjs → chunk-JXW2QARY.mjs} +1 -1
- package/dist/{chunk-NIUDBN75.mjs → chunk-KD7K2ENG.mjs} +1 -1
- package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
- package/dist/{chunk-WLA5QCBE.mjs → chunk-MQRRCCAR.mjs} +1 -1
- package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
- package/dist/{chunk-7UO2RFVS.mjs → chunk-OETXRGQF.mjs} +1 -1
- package/dist/{chunk-RVQIK2IH.mjs → chunk-PKDUSZWL.mjs} +1 -1
- package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
- package/dist/{chunk-XUEFN3EZ.mjs → chunk-RAYTIDSC.mjs} +1 -1
- package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
- package/dist/{chunk-7CT7LUE6.mjs → chunk-T2MQRMLU.mjs} +1 -1
- package/dist/{chunk-3NS4UQ6J.mjs → chunk-T6W76EOH.mjs} +1 -1
- package/dist/{chunk-PIPBEWH5.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-5WKGNZYL.mjs → chunk-TKHAUKFJ.mjs} +1 -1
- package/dist/{chunk-TIX4FFBC.mjs → chunk-V5EOKY7D.mjs} +1 -1
- package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
- package/dist/{chunk-5WLZ6QNH.mjs → chunk-WSDHDEFO.mjs} +1 -1
- package/dist/{chunk-LYCOLJW7.mjs → chunk-ZKBLFPGO.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.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/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -1
- package/dist/components/DeliveryLead/index.js +2 -2
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddTaskModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/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/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- 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/hooks/index.mjs +1 -1
- package/dist/index.js +9 -9
- 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/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HKE5CQ6Y.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-H7D3PZKE.mjs";import{a as o}from"./chunk-FHJDQP4I.mjs";import{a as s}from"./chunk-BLD454AX.mjs";import{a as d}from"./chunk-VFXHLJ45.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as F}from"./chunk-
|
|
4
|
+
import{a as F}from"./chunk-V5EOKY7D.mjs";import{a as T}from"./chunk-ZKBLFPGO.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d}from"./chunk-
|
|
4
|
+
import{a as d}from"./chunk-ANTK5LAD.mjs";import{a as m}from"./chunk-WGEMXPWB.mjs";import{b as i,f as o}from"./chunk-SUO6GOJS.mjs";import{a as l}from"./chunk-H7D3PZKE.mjs";import{a as s}from"./chunk-VFXHLJ45.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-
|
|
4
|
+
import{a as g}from"./chunk-MRJQKF4Z.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as u}from"./chunk-WGEMXPWB.mjs";import{b as n,d as b,f as c}from"./chunk-SUO6GOJS.mjs";import{a as s}from"./chunk-GRCMMAFX.mjs";import{a as p}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:S,logoDark:f,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as b,c as v,d as f,g as h,i as z}from"./chunk-OGZERPA4.mjs";import{a as o}from"./chunk-EECIYMTX.mjs";import{b as g}from"./chunk-BPSLUO5I.mjs";import{useState as i}from"react";import{FileText as H,ListChecks as D,AlertTriangle as J,Users as _,Briefcase as $,ShieldAlert as K,PlusCircle as Q,Trash2 as W}from"lucide-react";import{jsx as r,jsxs as n}from"react/jsx-runtime";var X=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],P=["On-Track","Off-Track","At Risk","Complete"],L=[{name:"Project Summary",icon:H},{name:"Milestones",icon:D},{name:"Project Update",icon:_},{name:"Project Concerns",icon:J},{name:"Opportunities",icon:$},{name:"Risks",icon:K}];function ie({onSubmit:k,customerProjectPairs:y}){let[c,M]=i(L[0].name),[s,T]=i(null),[x,O]=i(null),[Y,Z]=i(""),[C,R]=i(""),[u,m]=i(X),[S,I]=i(""),[N,A]=i(""),[j,F]=i(""),[w,U]=i(""),q=Array.from(new Map(y.map(e=>[e.customer.id,e.customer])).values()),B=y.filter(e=>e.customer.id===s).map(e=>e.project),d=(e,a,t)=>{m(l=>{let p=[...l];return a==="rag"&&!P.includes(t)?l:(p[e]={...p[e],[a]:t},p)})},E=()=>{m(e=>[...e,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},V=e=>{m(a=>a.filter((t,l)=>l!==e))},G=async e=>{e.preventDefault();let a={customer:s,project:x,projectSummary:C,milestones:u.length>0?u:null,projectUpdate:S,projectConcerns:N||null,commercialOpportunities:j||null,commercialRisks:w||null};if(k)return k(a);try{let t=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!t.ok)throw new Error("Failed to submit delivery lead");let l=await t.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(t){return console.error("Error submitting delivery lead:",t),{success:!1,message:"Failed to submit delivery lead"}}};return r("div",{className:"container mx-auto p-4 max-w-3xl",children:n("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[r("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:L.map(e=>n("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
4
|
+
import{a as b,c as v,d as f,g as h,i as z}from"./chunk-OGZERPA4.mjs";import{a as o}from"./chunk-EECIYMTX.mjs";import{b as g}from"./chunk-BPSLUO5I.mjs";import{useState as i}from"react";import{FileText as H,ListChecks as D,AlertTriangle as J,Users as _,Briefcase as $,ShieldAlert as K,PlusCircle as Q,Trash2 as W}from"lucide-react";import{jsx as r,jsxs as n}from"react/jsx-runtime";var X=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],P=["On-Track","Off-Track","At Risk","Complete"],L=[{name:"Project Summary",icon:H},{name:"Milestones",icon:D},{name:"Project Update",icon:_},{name:"Project Concerns",icon:J},{name:"Opportunities",icon:$},{name:"Risks",icon:K}];function ie({onSubmit:k,customerProjectPairs:y}){let[c,M]=i(L[0].name),[s,T]=i(null),[x,O]=i(null),[Y,Z]=i(""),[C,R]=i(""),[u,m]=i(X),[S,I]=i(""),[N,A]=i(""),[j,F]=i(""),[w,U]=i(""),q=Array.from(new Map((y??[]).map(e=>[e.customer.id,e.customer])).values()),B=(y??[]).filter(e=>e.customer.id===s).map(e=>e.project),d=(e,a,t)=>{m(l=>{let p=[...l];return a==="rag"&&!P.includes(t)?l:(p[e]={...p[e],[a]:t},p)})},E=()=>{m(e=>[...e,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},V=e=>{m(a=>a.filter((t,l)=>l!==e))},G=async e=>{e.preventDefault();let a={customer:s,project:x,projectSummary:C,milestones:u.length>0?u:null,projectUpdate:S,projectConcerns:N||null,commercialOpportunities:j||null,commercialRisks:w||null};if(k)return k(a);try{let t=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!t.ok)throw new Error("Failed to submit delivery lead");let l=await t.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(t){return console.error("Error submitting delivery lead:",t),{success:!1,message:"Failed to submit delivery lead"}}};return r("div",{className:"container mx-auto p-4 max-w-3xl",children:n("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[r("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:L.map(e=>n("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
5
5
|
${c===e.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
|
|
6
6
|
text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>M(e.name),type:"button",children:[r(e.icon,{className:"w-5 h-5"}),r("span",{children:e.name})]},e.name))}),n("form",{onSubmit:G,className:"space-y-8",children:[c==="Project Summary"&&n("div",{className:"space-y-6",children:[n("div",{children:[r(o,{children:"Client Name"}),n(b,{value:s?.toString()??"",onValueChange:e=>T(Number(e)),children:[r(f,{children:r(v,{placeholder:"Select client"})}),r(h,{children:q.map(e=>r(z,{value:e.id.toString(),children:e.name},e.id))})]})]}),n("div",{children:[r(o,{children:"Project Name"}),n(b,{value:x?.toString()??"",onValueChange:e=>O(Number(e)),disabled:!s,children:[r(f,{children:r(v,{placeholder:s?"Select project":"Select client first"})}),r(h,{children:B.map(e=>r(z,{value:e.id.toString(),children:e.name},e.id))})]})]}),n("div",{children:[r(o,{children:"Project Summary"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:C,onChange:e=>R(e.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),c==="Milestones"&&n("div",{children:[n("div",{className:"mb-4 flex justify-between items-center",children:[n(o,{className:"text-lg flex items-center gap-2",children:[r(D,{className:"w-5 h-5"}),"Milestones"]}),n(g,{type:"button",onClick:E,variant:"outline",className:"flex items-center gap-1",children:[r(Q,{className:"w-5 h-5"})," Add Milestone"]})]}),r("div",{className:"space-y-4",children:u.map((e,a)=>n("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[n("div",{className:"col-span-1",children:[r(o,{children:"Milestone"}),r("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:e.name,onChange:t=>d(a,"name",t.target.value),required:!0,placeholder:"Milestone name"})]}),n("div",{className:"col-span-2",children:[r(o,{children:"Commentary"}),r("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:e.commentary,onChange:t=>d(a,"commentary",t.target.value),placeholder:"Commentary"})]}),n("div",{className:"col-span-1",children:[r(o,{children:"Due Date"}),r("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:e.dueDate,onChange:t=>d(a,"dueDate",t.target.value),placeholder:"Due date"})]}),n("div",{className:"col-span-1",children:[r(o,{children:"RAG"}),r("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:e.rag,onChange:t=>d(a,"rag",t.target.value),children:P.map(t=>r("option",{value:t,children:t},t))})]}),r("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>V(a),"aria-label":"Remove Milestone",children:r(W,{className:"w-5 h-5 text-red-500"})})]},a))})]}),c==="Project Update"&&n("div",{children:[r(o,{children:"Project Update & Immediate Focus"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:S,onChange:e=>I(e.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),c==="Project Concerns"&&n("div",{children:[r(o,{children:"Project Concerns"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:N,onChange:e=>A(e.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),c==="Opportunities"&&n("div",{children:[r(o,{children:"Commercial Opportunities"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j,onChange:e=>F(e.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),c==="Risks"&&n("div",{children:[r(o,{children:"Commercial Risk/Issue Details"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:w,onChange:e=>U(e.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),r("div",{className:"flex justify-end pt-4",children:r(g,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}export{ie as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-
|
|
4
|
+
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-QUOLG5NC.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-ANTK5LAD.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-SUO6GOJS.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as u}from"./chunk-E6ZAA4QH.mjs";import{a as r}from"./chunk-FWBG46K2.mjs";import{a as c,b as m}from"./chunk-63W64WWD.mjs";import{a as s}from"./chunk-EECIYMTX.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{Calendar as b,Clock as y,User as N,Trash2 as f,BookOpen as h,Bug as C,Zap as S,AlertCircle as w}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var L=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800",icon:h},{value:"task",label:"Task",color:"bg-gray-100 text-gray-800",icon:w},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800",icon:C},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800",icon:S}],T=[{value:"low",label:"Low",color:"bg-green-100 text-green-800"},{value:"medium",label:"Medium",color:"bg-yellow-100 text-yellow-800"},{value:"high",label:"High",color:"bg-red-100 text-red-800"}],D=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],E=({task:t,epics:g,sprints:v,lastUpdated:p,onUpdateTask:o,onClose:d,onDelete:x})=>{let B=e=>e.split(" ").map(i=>i[0]).join("").toUpperCase();return l("div",{className:"flex flex-col h-full",children:[l("div",{className:"space-y-4",children:[l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Status"}),a(r,{label:"",value:t.status,onValueChange:e=>o("status",e),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}]})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Type"}),a(c,{type:"single",value:t.type,onValueChange:e=>e&&o("type",e),className:"grid grid-cols-2 gap-1",children:L.map(e=>{let i=e.icon;return l(m,{value:e.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",children:[a(i,{className:"h-3 w-3"}),e.label]},e.value)})})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Priority"}),a(c,{type:"single",value:t.priority,onValueChange:e=>e&&o("priority",e),className:"grid grid-cols-3 gap-1",children:T.map(e=>a(m,{value:e.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",children:e.label},e.value))})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Story Points"}),a("input",{type:"number",min:"1",max:"100",value:t.points||1,onChange:e=>o("points",e.target.value),className:"w-full h-8 px-2 text-xs border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Epic"}),a(r,{label:"",value:t.epicId,onValueChange:e=>o("epicId",e),options:g.map(e=>({value:e.id,label:e.name,color:e.color})),showColor:!0})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Sprint"}),a(r,{label:"",value:t.sprintId||"none",onValueChange:e=>o("sprintId",e==="none"?"":e),options:[{value:"none",label:"No Sprint"},...v.map(e=>({value:e.id,label:`${e.name}${e.isActive?" (Active)":""}`}))]})]}),l("div",{className:"space-y-2",children:[a(s,{className:"text-xs text-gray-600",children:"Assignee"}),a(u,{label:"",value:t.assignee,onValueChange:e=>o("assignee",e),options:D,placeholder:"Search team members...",allowCustomValue:!0})]})]}),l("div",{className:"mt-auto pt-4 space-y-4",children:[l("div",{className:"space-y-2",children:[a(n,{onClick:d,variant:"outline",className:"w-full h-8 text-xs",children:"Close"}),l(n,{onClick:x,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(f,{className:"h-3 w-3"}),"Delete Task"]})]}),l("div",{className:"pt-4 border-t border-gray-200 space-y-2",children:[a("div",{className:"text-xs text-gray-400 font-medium mb-2",children:"Information"}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Logged By"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(N,{className:"h-3 w-3"}),a("span",{children:"System"})]})]}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Created"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(b,{className:"h-3 w-3"}),a("span",{children:t.createdAt.toLocaleDateString()})]})]}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Last Updated"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(y,{className:"h-3 w-3"}),l("span",{children:[p.toLocaleDateString()," at ",p.toLocaleTimeString()]})]})]})]})]})]})};export{E as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
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-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as r}from"./chunk-63YL7TOA.mjs";import{a}from"./chunk-STFTEKAH.mjs";import{useState as l}from"react";import{ChevronDown as c,ChevronUp as v,List as b}from"lucide-react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function f({submissions:t,onSubmit:o,isLoading:n=!1,customerProjectPairs:m}){let[s,d]=l(!1);return e("div",{className:"min-h-screen ",children:i("div",{className:"container mx-auto p-4 max-w-6xl",children:[i("div",{className:"mb-8",children:[e("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),e("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),e("div",{className:"mb-8",children:e(r,{onSubmit:o,customerProjectPairs:m})}),i("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[i("button",{onClick:()=>d(!s),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[i("div",{className:"flex items-center gap-3",children:[e(b,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),e("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),i("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",t.length,")"]})]}),e("div",{className:"flex items-center gap-2",children:s?e(v,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):e(c,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),s&&e("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:e(a,{submissions:t,isLoading:n})})]})]})})}export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-BFESGJZ4.mjs";import{a as
|
|
4
|
+
import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-BFESGJZ4.mjs";import{a as p}from"./chunk-PYAM4YXE.mjs";import{a as u}from"./chunk-YWVLHQ3L.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-WKFNZUIR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as n}from"./chunk-KJIBE57R.mjs";import{a as u}from"./chunk-CX4XB5W2.mjs";import{a as m}from"./chunk-EECIYMTX.mjs";import{a as i}from"./chunk-JPZJET3B.mjs";import{b as s}from"./chunk-BPSLUO5I.mjs";import{useState as l}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";function N({onSubmit:c}){let[e,r]=l({name:"",intro:"",active:!1});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(c({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerName",children:"Customer Name"}),o(i,{id:"customerName",value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerIntro",children:"Intro"}),o(u,{id:"customerIntro",value:e.intro??"",onChange:t=>r({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[o(n,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>r({...e,active:t})}),o(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),o(s,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-LHL2AONM.mjs";import{a as i}from"./chunk-BFESGJZ4.mjs";import{a as
|
|
1
|
+
import{a as n}from"./chunk-LHL2AONM.mjs";import{a as i}from"./chunk-BFESGJZ4.mjs";import{a as m}from"./chunk-PYAM4YXE.mjs";import{a as l}from"./chunk-YWVLHQ3L.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p}from"./chunk-JRFNBHPL.mjs";import{a as v}from"./chunk-3FZPSPIZ.mjs";import{c as b,d as h}from"./chunk-NLA3SBVN.mjs";import{a as k}from"./chunk-IC57R2EU.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-E6JYZMWA.mjs";import{a}from"./chunk-LSVWCONK.mjs";import{a as
|
|
4
|
+
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-E6JYZMWA.mjs";import{a}from"./chunk-LSVWCONK.mjs";import{a as n}from"./chunk-D6TOSZKM.mjs";import{a as d}from"./chunk-K347D5ZJ.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-ZYYWN6XG.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({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})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,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:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,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:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("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(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("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-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,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?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
|
|
1
|
+
import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-SUO6GOJS.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({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})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,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:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,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:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("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(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("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-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,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?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(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-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-77KWI6EL.mjs";import{a as n}from"./chunk-F2D7YJEV.mjs";import{a as T}from"./chunk-Q5LSCSF7.mjs";import{a as c,f as p,g,i as D}from"./chunk-BUCI7BPM.mjs";import{useState as h}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";var M=({isOpen:C,onClose:o,task:e,epics:v,sprints:S,onUpdateTask:r,onDeleteTask:b})=>{let[u,d]=h(new Date),[l,w]=h([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:e.createdAt},{id:"2",text:"Started working on the implementation.",author:e.assignee,createdAt:new Date(e.createdAt.getTime()+864e5)}]),m=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},k=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},A=t=>{let a={id:Date.now().toString(),text:t,author:"Current User",createdAt:new Date};w([...l,a])},U=()=>{b(e.id),o()};return i(c,{open:C,onOpenChange:o,children:s(p,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(g,{children:i(D,{className:"sr-only",children:e.title})}),s("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s("div",{className:"lg:col-span-2 space-y-4",children:[i(n,{fieldName:"title",value:e.title,label:"",onSave:m,className:"border-b pb-3"}),i(n,{fieldName:"description",value:e.description,label:"Description",multiline:!0,onSave:m}),i(T,{comments:l,onAddComment:A})]}),i(f,{task:e,epics:v,sprints:S,lastUpdated:u,onUpdateTask:k,onClose:o,onDelete:U})]})]})})};export{M as a};
|
|
@@ -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-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as m}from"./chunk-
|
|
4
|
+
import{a as m}from"./chunk-WSDHDEFO.mjs";import{a as i}from"./chunk-JPWY5ADC.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},f=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(D=>D.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:f,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-4AT3EYCF.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-4AT3EYCF.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-WKFNZUIR.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:a,logoDark:m}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d 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-SUO6GOJS.mjs";import{a as f}from"./chunk-RHFLBRXF.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 p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-JBWGBBHF.mjs";import{d as r}from"./chunk-JXW2QARY.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a}from"./chunk-WKFNZUIR.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
|