cortex-react-components 1.65.0 → 1.65.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-SKQYQ4SD.mjs → chunk-26JAUUHC.mjs} +1 -1
- package/dist/{chunk-ILBKV7ZM.mjs → chunk-2MTAQ2YX.mjs} +1 -1
- package/dist/{chunk-XDLNQPZY.mjs → chunk-35SLQX5Z.mjs} +1 -1
- package/dist/{chunk-APNL5YEF.mjs → chunk-3FZPSPIZ.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-4MFTG62S.mjs} +1 -1
- package/dist/{chunk-33ZXPMQU.mjs → chunk-4NRRPFAV.mjs} +1 -1
- package/dist/{chunk-E6ZAA4QH.mjs → chunk-5C4F3OYA.mjs} +1 -1
- package/dist/{chunk-YZ47PIHK.mjs → chunk-5CCW24XE.mjs} +1 -1
- package/dist/chunk-5UQKSJU5.mjs +4 -0
- package/dist/chunk-5V2PNTEF.mjs +1 -0
- package/dist/{chunk-CZIRJUID.mjs → chunk-6E5WHIW6.mjs} +1 -1
- package/dist/{chunk-E7W2GFKO.mjs → chunk-6YHRHDB7.mjs} +1 -1
- package/dist/{chunk-EGYV6SU2.mjs → chunk-BFESGJZ4.mjs} +1 -1
- package/dist/{chunk-I5DSZMH2.mjs → chunk-D6TOSZKM.mjs} +1 -1
- package/dist/{chunk-4A43BI3C.mjs → chunk-E6JYZMWA.mjs} +1 -1
- package/dist/{chunk-Z3YAIJQT.mjs → chunk-FCNEFWQ7.mjs} +1 -1
- package/dist/{chunk-2ELJOFU3.mjs → chunk-GWBCK4SV.mjs} +1 -1
- package/dist/chunk-IEQL2U53.mjs +4 -0
- package/dist/{chunk-5OMUHSTO.mjs → chunk-JBWGBBHF.mjs} +1 -1
- package/dist/{chunk-DJQUKJMH.mjs → chunk-JRB2R6LE.mjs} +1 -1
- package/dist/{chunk-ZJSR6A6I.mjs → chunk-JRFNBHPL.mjs} +1 -1
- package/dist/{chunk-IISHIQBQ.mjs → chunk-JXW2QARY.mjs} +1 -1
- package/dist/{chunk-3XV6OBSL.mjs → chunk-K347D5ZJ.mjs} +1 -1
- package/dist/{chunk-BYSEFJFA.mjs → chunk-KFQ3L3TO.mjs} +1 -1
- package/dist/{chunk-3QWSFRVM.mjs → chunk-KJ7DELAG.mjs} +1 -1
- package/dist/{chunk-5DJ7VOAO.mjs → chunk-KWTCUGN5.mjs} +1 -1
- package/dist/{chunk-P3PIMDIR.mjs → chunk-L74JGLMR.mjs} +1 -1
- package/dist/{chunk-U5XA76PE.mjs → chunk-LSVWCONK.mjs} +1 -1
- package/dist/{chunk-JTQWVSV5.mjs → chunk-NGBQVG6N.mjs} +1 -1
- package/dist/{chunk-L7FUS5TO.mjs → chunk-NIUDBN75.mjs} +1 -1
- package/dist/{chunk-3UA62APP.mjs → chunk-NLA3SBVN.mjs} +1 -1
- package/dist/{chunk-TWPRI2XQ.mjs → chunk-NUPPPEG7.mjs} +1 -1
- package/dist/{chunk-AKH3ER3D.mjs → chunk-OQR6YVKI.mjs} +1 -1
- package/dist/{chunk-R64KZZJP.mjs → chunk-PYAM4YXE.mjs} +1 -1
- package/dist/chunk-QYMXR42G.mjs +4 -0
- package/dist/{chunk-4GL57G4E.mjs → chunk-RGWP2OVM.mjs} +1 -1
- package/dist/{chunk-AN6TXGAM.mjs → chunk-S7FH27PL.mjs} +1 -1
- package/dist/{chunk-YWUPEMYN.mjs → chunk-TFP6VQ32.mjs} +1 -1
- package/dist/{chunk-STHWCR5K.mjs → chunk-TT4SPGZU.mjs} +1 -1
- package/dist/{chunk-ZEOV7BEN.mjs → chunk-TTRDD6M2.mjs} +1 -1
- package/dist/{chunk-Q5LSCSF7.mjs → chunk-TYBLC6LO.mjs} +1 -1
- package/dist/{chunk-6L2BDKJU.mjs → chunk-ULWFOWF2.mjs} +1 -1
- package/dist/{chunk-Y6RAHEXF.mjs → chunk-V5EOKY7D.mjs} +1 -1
- package/dist/chunk-W3ONOYB6.mjs +1 -0
- package/dist/{chunk-NVN7UJT6.mjs → chunk-WG2HHJYU.mjs} +1 -1
- package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
- package/dist/{chunk-7SPGDJJI.mjs → chunk-Y5ZPWPOT.mjs} +1 -1
- package/dist/{chunk-ROEJPYRW.mjs → chunk-Y73QTPA6.mjs} +1 -1
- package/dist/{chunk-IDRYG7HP.mjs → chunk-YWVLHQ3L.mjs} +1 -1
- package/dist/{chunk-6OS3ZJBB.mjs → chunk-ZKBLFPGO.mjs} +1 -1
- package/dist/{chunk-WSKZ2N7J.mjs → chunk-ZOP4SDLB.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.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.js +1 -1
- package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +1 -9
- package/dist/components/CRM/KanbanColumn.js +1 -4
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -4
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/index.js +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/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.stories.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/PlanningView.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.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/DigitalColleagues/TeamSwitcher.mjs +1 -1
- package/dist/components/DigitalColleagues/TeamSwitcher.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/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/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/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 +8 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/tabs.stories.css +1 -0
- package/dist/components/ui/tabs.stories.js +4 -0
- package/dist/components/ui/tabs.stories.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/index.js +14 -14
- 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/MainPageSection.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/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6BOIU52Z.mjs +0 -4
- package/dist/chunk-DVF55CWB.mjs +0 -4
- package/dist/chunk-H3V6RZEI.mjs +0 -4
- package/dist/chunk-MEWCJ4MA.mjs +0 -1
- package/dist/chunk-PFWODHNV.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-A24EPYUY.mjs";import{b as
|
|
1
|
+
import{a as g}from"./chunk-A24EPYUY.mjs";import{a as v,b as p,c as f}from"./chunk-4BHOIXJM.mjs";import{b as d}from"./chunk-BPSLUO5I.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":"bg-white"),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
|
|
@@ -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-
|
|
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 d}from"./chunk-K347D5ZJ.mjs";import{a as n}from"./chunk-D6TOSZKM.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-C4DU747D.mjs";import{a as T}from"./chunk-STHWCR5K.mjs";import{a as S}from"./chunk-IC57R2EU.mjs";import{a as R}from"./chunk-PBRC3UOA.mjs";import{a as I}from"./chunk-7PBTM4J4.mjs";import{b as P}from"./chunk-BPSLUO5I.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
4
|
+
import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-C4DU747D.mjs";import{a as T}from"./chunk-TT4SPGZU.mjs";import{a as S}from"./chunk-IC57R2EU.mjs";import{a as R}from"./chunk-PBRC3UOA.mjs";import{a as I}from"./chunk-7PBTM4J4.mjs";import{b as P}from"./chunk-BPSLUO5I.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-6NZJ2VXQ.mjs";import{b as
|
|
1
|
+
import{a as c}from"./chunk-6NZJ2VXQ.mjs";import{b as r}from"./chunk-J2IHT57D.mjs";import{a as d}from"./chunk-4YFMDLHL.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{useState as E}from"react";import{Plus as m,Move as C}from"lucide-react";import{jsx as a,jsxs as s}from"react/jsx-runtime";var z=({tasks:g,epics:p,sprints:P,onUpdateTask:v,onTaskClick:u,onAddTaskToEpic:f,onAddEpic:x})=>{let[i,l]=E(null),N=e=>{l(e)},h=e=>{e.preventDefault()},b=(e,t)=>{e.preventDefault(),i&&i.epicId!==t&&(v(i.id,{epicId:t}),l(null))},k=e=>g.filter(t=>t.epicId===e),y=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,w=e=>{switch(e){case"high":return"bg-green-100 text-green-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return a("div",{className:"p-6 py-0",children:s("div",{className:"max-w-7xl mx-auto",children:[s("div",{className:"mb-8 flex items-center justify-between",children:[s("div",{children:[a("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Epic Planning"}),a("p",{className:"text-gray-600",children:"Manage and organize your project epics"})]}),s(o,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[a(m,{className:"h-4 w-4"}),"Add Epic"]})]}),a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:p.map(e=>{let t=k(e.id),T=t.reduce((n,D)=>n+D.points,0);return s(d,{className:"flex flex-col h-[600px]",onDragOver:h,onDrop:n=>b(n,e.id),children:[s("div",{className:"p-4 border-b",children:[s("div",{className:"flex items-center gap-2 mb-2",children:[a("div",{className:`w-4 h-4 rounded-full ${e.color}`}),a("h3",{className:"font-semibold text-gray-900 select-none",children:e.name})]}),s("div",{className:"flex flex-wrap gap-2 mb-3",children:[s(r,{className:`text-xs ${w(e.confidence)}`,children:[e.confidence," confidence"]}),a(r,{variant:"outline",className:"text-xs",children:y(e.phase)}),s(r,{variant:"secondary",className:"text-xs",children:[t.length," tasks"]}),s(r,{variant:"secondary",className:"text-xs",children:[T," pts"]})]}),e.description&&a("p",{className:"text-sm text-gray-600 mb-3 select-none",children:e.description}),s("div",{className:"mb-3",children:[s("div",{className:"flex justify-between text-xs text-gray-600 mb-1",children:[a("span",{className:"select-none",children:"Progress"}),s("span",{className:"select-none",children:[e.progress,"%"]})]}),a("div",{className:"w-full bg-gray-200 rounded-full h-2",children:a("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),s(o,{onClick:()=>f(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[a(m,{className:"h-4 w-4"}),"Add Task"]})]}),a("div",{className:"flex-1 p-4 overflow-y-auto",children:a("div",{className:"space-y-3 min-h-[200px]",children:t.length===0?s("div",{className:"flex flex-col items-center justify-center h-32 text-gray-400 border-2 border-dashed border-gray-200 rounded-lg",children:[a(C,{className:"h-8 w-8 mb-2"}),a("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):t.map(n=>a(c,{task:n,epic:e,onDragStart:N,onTaskClick:u,isCompact:!0},n.id))})})]},e.id)})})]})})};export{z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as y}from"./chunk-
|
|
4
|
+
import{a as y}from"./chunk-LSVWCONK.mjs";import{a as S}from"./chunk-K347D5ZJ.mjs";import{a as b,b as k}from"./chunk-D6TOSZKM.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-LHL2AONM.mjs";import{a as u}from"./chunk-BFESGJZ4.mjs";import{a as f}from"./chunk-PYAM4YXE.mjs";import{a as v}from"./chunk-YWVLHQ3L.mjs";import{c as m,f as p}from"./chunk-NLA3SBVN.mjs";import{a as d}from"./chunk-SX5U74MW.mjs";import{a as s}from"./chunk-INOUDNCK.mjs";import{a as x}from"./chunk-BONRVXMX.mjs";import{a as N}from"./chunk-WKFNZUIR.mjs";import{a as h}from"./chunk-KTXQBXXJ.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-NLA3SBVN.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as i}from"./chunk-W3ONOYB6.mjs";import{a as m}from"./chunk-5V2PNTEF.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-VNGK6ACI.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-ZYYWN6XG.mjs";import{a as s}from"./chunk-GRCMMAFX.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as g}from"./chunk-VNGK6ACI.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-ZYYWN6XG.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 +1 @@
|
|
|
1
|
-
import{f as t}from"./chunk-
|
|
1
|
+
import{f as t}from"./chunk-NLA3SBVN.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-GWBCK4SV.mjs";import{a as o}from"./chunk-E6KVX2UG.mjs";import{a as e}from"./chunk-KTXQBXXJ.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as C}from"./chunk-L3PFZ7PW.mjs";import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as p}from"./chunk-56RXRTGZ.mjs";import{b as v}from"./chunk-BPSLUO5I.mjs";import{a as i}from"./chunk-HTVHCBXQ.mjs";import{Formik as h}from"formik";import{FaUser as N}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as a,jsxs as r}from"react/jsx-runtime";var t={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),email:m.string().email(t.email).required(t.required),subject:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),message:m.string().min(2,t.tooShort).max(300,t.tooLong).required(t.required)}),u=i("!pr-[44px] text-foreground"),g=i("!border-red-600 border"),d=i("sr-only");function T(){return a(h,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(e,{resetForm:s})=>{let o=await f(e);o.data===null?b.error(o.message):(b.success(o.message),s())},children:({errors:e,touched:s,values:o,handleChange:n,handleBlur:c,isSubmitting:l,handleSubmit:x})=>r("form",{onSubmit:x,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[r("div",{children:[a(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:n,onBlur:c,disabled:l,icon:a(N,{className:"text-primary"}),className:i(u,e.name&&s.name&&g)}),e.name&&s.name&&a("p",{title:e.name,"aria-live":"polite",role:"error message",className:d,children:e.name})]}),r("div",{children:[a(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:n,onBlur:c,disabled:l,icon:a(y,{}),className:i(u,e.email&&s.email&&g)}),e.email&&s.email&&a("p",{title:e.email,"aria-live":"polite",role:"error message",className:d,children:e.email})]}),r("div",{className:"lg:col-span-2",children:[a(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:n,onBlur:c,disabled:l,className:i(u,e.subject&&s.subject&&g)}),e.subject&&s.subject&&a("p",{title:e.subject,"aria-live":"polite",role:"error message",className:d,children:e.subject})]}),r("div",{className:"lg:col-span-2",children:[a(C,{placeholder:"Message...",name:"message",value:o.message,onChange:n,onBlur:c,disabled:l,icon:a(w,{}),className:i(u,e.message&&s.message&&g)}),e.message&&s.message&&a("p",{title:e.message,"aria-live":"polite",role:"error message",className:d,children:e.message})]}),a("div",{className:"lg:col-span-2 light grid justify-items-center",children:a(v,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:l,children:"Send"})})]})})}function y(){return a("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function w(){return a("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-K44ECXTN.mjs";import{b as
|
|
1
|
+
import{a as k}from"./chunk-K44ECXTN.mjs";import{b as r}from"./chunk-J2IHT57D.mjs";import{a as i}from"./chunk-4YFMDLHL.mjs";import{b as c}from"./chunk-BPSLUO5I.mjs";import{useState as m}from"react";import{Calendar as M,Plus as U}from"lucide-react";import{Fragment as F,jsx as t,jsxs as s}from"react/jsx-runtime";var X=({tasks:g,epics:S,sprints:p,onUpdateTask:w,onTaskClick:C,onAddSprint:D})=>{let[l,T]=m(["2"]),[v,f]=m(null),[B,d]=m(!1),o=g.filter(e=>!e.sprintId),A=g.filter(e=>e.sprintId&&l.includes(e.sprintId)),u=[...p].filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()),I=e=>S.find(a=>a.id===e),P=e=>p.find(a=>a.id===e),O=e=>{switch(e){case"high":return"bg-red-100 text-red-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},j=e=>e.split(" ").map(a=>a[0]).join("").toUpperCase(),E=e=>{f(e)},h=e=>{e.preventDefault()},x=(e,a)=>{e.preventDefault(),v&&(w(v.id,{sprintId:a==="backlog"?void 0:a}),f(null))},R=e=>{e==="backlog"||e==="all-tasks"||T(a=>a.includes(e)?a.filter(n=>n!==e):[...a,e])},V=e=>{D(e),d(!1)},y=({task:e,showSprint:a=!1})=>{let n=I(e.epicId),b=e.sprintId?P(e.sprintId):null;return t(i,{className:"p-2 cursor-grab transition-all duration-200 hover:shadow-md bg-white active:cursor-grabbing",draggable:!0,onDragStart:N=>{E(e)},onClick:N=>{N.defaultPrevented||C(e)},children:s("div",{className:"space-y-2",children:[s("div",{className:"flex items-start justify-between",children:[t("h4",{className:"font-medium text-sm text-gray-900 line-clamp-1 select-none pointer-events-none",children:e.title}),t(r,{className:`text-xs select-none pointer-events-none ${O(e.priority)}`,children:e.priority[0].toUpperCase()})]}),s("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[s("div",{className:"flex items-center gap-1",children:[n&&t("div",{className:`w-2 h-2 rounded-full ${n.color}`}),t("span",{className:"text-gray-600 truncate select-none",children:n?.name})]}),t("span",{className:"text-gray-500 select-none",children:j(e.assignee)})]}),a&&b&&s("div",{className:"flex items-center gap-1 text-xs text-gray-500 pointer-events-none",children:[t(M,{className:"h-3 w-3"}),t("span",{className:"select-none",children:b.name})]})]})})};return s(F,{children:[s("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[t("div",{className:"lg:col-span-1",children:s(i,{className:"p-4 h-full",onDragOver:h,onDrop:e=>x(e,"backlog"),children:[s("div",{className:"flex items-center justify-between mb-4",children:[t("h3",{className:"font-semibold text-gray-900 select-none",children:"Backlog"}),t(r,{variant:"secondary",children:o.length})]}),s("div",{className:"space-y-2 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[o.map(e=>t(y,{task:e},e.id)),o.length===0&&t("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),t("div",{className:"lg:col-span-3",children:s("div",{className:"space-y-4",children:[s(i,{className:"p-4",children:[s("div",{className:"flex items-center justify-between mb-3",children:[t("h3",{className:"font-semibold text-gray-900 select-none",children:"Select Sprints to View"}),s(c,{onClick:()=>d(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",size:"sm",children:[t(U,{className:"h-4 w-4"}),"Add Sprint"]})]}),t("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:u.map(e=>s(c,{variant:l.includes(e.id)?"default":"outline",size:"sm",onClick:()=>R(e.id),className:"text-xs h-8",children:[e.name,e.isActive&&t("span",{className:"ml-1 text-green-400",children:"\u25CF"})]},e.id))})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(e=>u.find(a=>a.id===e)).filter(Boolean).sort((e,a)=>e.startDate.getTime()-a.startDate.getTime()).map(e=>{let a=A.filter(n=>n.sprintId===e.id);return s(i,{className:"p-4",onDragOver:h,onDrop:n=>x(n,e.id),children:[s("div",{className:"flex items-center justify-between mb-4",children:[s("div",{children:[t("h3",{className:"font-semibold text-gray-900 select-none",children:e.name}),e.isActive&&t("span",{className:"text-xs text-green-600 font-medium select-none",children:"Active Sprint"})]}),t(r,{variant:"secondary",children:a.length})]}),s("div",{className:"space-y-2 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[a.map(n=>t(y,{task:n},n.id)),a.length===0&&t("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here"})]})]},e.id)})})]})})]}),t(k,{isOpen:B,onClose:()=>d(!1),onAddSprint:V})]})};export{X as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-CX4XB5W2.mjs";import{a as i}from"./chunk-EECIYMTX.mjs";import{
|
|
1
|
+
import{a as c}from"./chunk-CX4XB5W2.mjs";import{a as i}from"./chunk-EECIYMTX.mjs";import{a as n,c as l}from"./chunk-4BHOIXJM.mjs";import{b as d}from"./chunk-J2IHT57D.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{useState as f}from"react";import{MessageSquare as N,Send as u}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var B=({comments:m,onAddComment:p})=>{let[s,r]=f(""),g=a=>a.split(" ").map(x=>x[0]).join("").toUpperCase(),v=()=>{s.trim()&&(p(s),r(""))};return t("div",{className:"space-y-4",children:[t("div",{className:"flex items-center gap-2",children:[e(N,{className:"h-5 w-5"}),e(i,{className:"text-lg font-medium",children:"Comments"}),e(d,{variant:"secondary",children:m.length})]}),e("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:m.map(a=>t("div",{className:"flex gap-3 p-3 bg-gray-50 rounded-lg",children:[e(n,{className:"h-8 w-8 mt-1",children:e(l,{className:"text-xs bg-gray-200 text-gray-700",children:g(a.author)})}),t("div",{className:"flex-1",children:[t("div",{className:"flex items-center gap-2 mb-1",children:[e("span",{className:"font-medium text-sm",children:a.author}),t("span",{className:"text-xs text-gray-500",children:[a.createdAt.toLocaleDateString()," at ",a.createdAt.toLocaleTimeString()]})]}),e("p",{className:"text-sm text-gray-700",children:a.text})]})]},a.id))}),t("div",{className:"flex gap-2",children:[e(c,{value:s,onChange:a=>r(a.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),e(o,{onClick:v,disabled:!s.trim(),size:"sm",className:"self-end",children:e(u,{className:"h-4 w-4"})})]})]})};export{B as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as N}from"./chunk-6T322YHB.mjs";import{
|
|
1
|
+
import{a as N}from"./chunk-6T322YHB.mjs";import{b as S}from"./chunk-J2IHT57D.mjs";import{a as I,b as B,e as A}from"./chunk-4YFMDLHL.mjs";import{a as k}from"./chunk-JPZJET3B.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{a as m}from"./chunk-HTVHCBXQ.mjs";import{useState as u}from"react";import{Send as j,Bot as L,Users as O,Plus as E,X as M,Menu as q}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";var $=[{id:"it",name:"IT",color:"bg-blue-600"},{id:"hr",name:"HR",color:"bg-green-600"},{id:"marketing",name:"Marketing",color:"bg-purple-600"},{id:"finance",name:"Finance",color:"bg-orange-600"},{id:"operations",name:"Operations",color:"bg-red-600"},{id:"sales",name:"Sales",color:"bg-indigo-600"}],Q=({mode:s,onModeChange:T})=>{let[h,w]=u(""),[c,z]=u("it"),[x,b]=u(!1),[i,g]=u([{id:"1",name:"General Chat",mode:"copilot",messages:[{id:"1",content:"Hello! I'm your AI assistant. How can I help you today?",sender:"assistant",timestamp:new Date}]}]),[p,v]=u("1"),l=i.find(e=>e.id===p),r=$.find(e=>e.id===c),D=()=>{let e=Date.now().toString(),n={id:e,name:`${s==="copilot"?"AI Chat":r?.name+" Chat"} ${i.length+1}`,mode:s,selectedTeam:s==="teams"?c:void 0,messages:[{id:"1",content:s==="copilot"?"Hello! I'm your AI assistant. How can I help you today?":`Welcome to ${r?.name} team chat!`,sender:s==="copilot"?"assistant":"team",timestamp:new Date,senderName:s==="teams"?`${r?.name} Bot`:void 0}]};g([...i,n]),v(e)},H=e=>{if(i.length===1)return;let n=i.filter(d=>d.id!==e);g(n),p===e&&v(n[0].id)},C=()=>{if(!h.trim()||!l)return;let e={id:Date.now().toString(),content:h,sender:"user",timestamp:new Date},n=[...l.messages,e];g(i.map(d=>d.id===p?{...d,messages:n}:d)),w(""),setTimeout(()=>{let d={id:(Date.now()+1).toString(),content:l.mode==="copilot"?"I understand your request. Let me help you with that.":`Message sent to ${r?.name} team channel.`,sender:l.mode==="copilot"?"assistant":"team",timestamp:new Date,senderName:l.mode==="teams"?`${r?.name} Bot`:void 0};g(P=>P.map(f=>f.id===p?{...f,messages:[...f.messages,d]}:f))},1e3)},y=e=>{T(e),l&&g(i.map(n=>n.id===p?{...n,mode:e,selectedTeam:e==="teams"?c:void 0}:n))};return a(I,{className:"h-full flex shadow-lg border-0 bg-white/50 backdrop-blur-sm relative overflow-hidden",children:[a("div",{className:`
|
|
2
2
|
w-64 border-r bg-gradient-to-b from-blue-50 to-purple-50 dark:from-blue-950 dark:to-purple-950 flex flex-col
|
|
3
3
|
transition-transform duration-300 ease-in-out
|
|
4
4
|
lg:translate-x-0 lg:static lg:flex
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-JXW2QARY.mjs";import{a as P}from"./chunk-HTVHCBXQ.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-FFESN4FM.mjs";import{Droppable as u,Draggable as d}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as t,jsxs as e}from"react/jsx-runtime";function S({status:o,deals:r,users:b,customers:f,categories:i,onDealClick:n,calculateColumnValue:p,calculateWeightedValue:c,compact:g=!1}){return e("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:[" ",o.charAt(0).toUpperCase()+o.slice(1)]}),t(u,{droppableId:o,isDropDisabled:!1,children:l=>e("div",{ref:l.innerRef,...l.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[r.map((a,D)=>t(d,{draggableId:a.id.toString(),index:a.id,children:s=>t("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:t(m,{deal:a,customer:a.customer,categories:i,onClick:()=>n(a),compact:g})})},a.id.toString())),l.placeholder]})}),e("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[e("p",{className:"font-semibold",children:["Total:"," ",e("span",{className:"text-green-600",children:["\xA3",p(r).toLocaleString()]})]}),e("p",{className:"font-semibold",children:["Weighted:"," ",e("span",{className:"text-blue-600",children:["\xA3",c(r,o).toLocaleString()]})]})]})]})}export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as q}from"./chunk-33ZXPMQU.mjs";import{a as $}from"./chunk-E7W2GFKO.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e as a};
|
|
1
|
+
import{a as $}from"./chunk-6YHRHDB7.mjs";import{a as L}from"./chunk-TTRDD6M2.mjs";import{a as q}from"./chunk-4NRRPFAV.mjs";import{a as J}from"./chunk-NUPPPEG7.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as K}from"./chunk-L74JGLMR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as i}from"./chunk-6MWXSKBH.mjs";import{a as m}from"./chunk-H6POT4A7.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as w,b as f,i as g,j as n,m as s,n as r}from"./chunk-K4RVBOIC.mjs";import{b as
|
|
1
|
+
import{a as w,b as f,i as g,j as n,m as s,n as r}from"./chunk-K4RVBOIC.mjs";import{b as i}from"./chunk-J2IHT57D.mjs";import{b as x}from"./chunk-BPSLUO5I.mjs";import{useState as D}from"react";import{ChevronDown as h,Users as N,Plus as M}from"lucide-react";import{Fragment as v,jsx as e,jsxs as a}from"react/jsx-runtime";var d=[{id:"1",name:"Product Development",avatar:"PD",isRecent:!0},{id:"2",name:"Engineering",avatar:"ENG",isRecent:!0},{id:"3",name:"Marketing Team",avatar:"MT",isRecent:!0},{id:"4",name:"Design System",avatar:"DS",isRecent:!1},{id:"5",name:"Sales Operations",avatar:"SO",isRecent:!1},{id:"6",name:"Customer Success",avatar:"CS",isRecent:!1}],I=({currentTeam:o=d[0],onTeamChange:c})=>{let[m,l]=D(!1),u=d.filter(t=>t.isRecent),p=d,T=m?p:u;return a(w,{children:[e(f,{asChild:!0,children:a(x,{variant:"outline",className:"gap-2 h-9",children:[a("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:o.avatar}),e("span",{className:"font-medium",children:o.name})]}),e(h,{className:"h-4 w-4 opacity-50"})]})}),a(g,{className:"w-64",align:"start",children:[a(s,{className:"flex items-center gap-2",children:[e(N,{className:"h-4 w-4"}),"Switch Team"]}),e(r,{}),!m&&a(v,{children:[e(s,{className:"text-xs text-muted-foreground px-2 py-1",children:"Recent Teams"}),u.map(t=>a(n,{onClick:()=>c(t),className:"flex items-center gap-2 cursor-pointer",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:t.avatar}),e("span",{children:t.name}),t.id===o.id&&e(i,{variant:"secondary",className:"ml-auto text-xs",children:"Current"})]},t.id)),e(r,{}),e(n,{onClick:()=>l(!0),className:"text-muted-foreground cursor-pointer",children:"Show all teams"})]}),m&&a(v,{children:[e(s,{className:"text-xs text-muted-foreground px-2 py-1",children:"All Teams"}),p.map(t=>a(n,{onClick:()=>c(t),className:"flex items-center gap-2 cursor-pointer",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:t.avatar}),e("span",{children:t.name}),t.id===o.id&&e(i,{variant:"secondary",className:"ml-auto text-xs",children:"Current"})]},t.id)),e(r,{}),e(n,{onClick:()=>l(!1),className:"text-muted-foreground cursor-pointer",children:"Show recent teams only"})]}),e(r,{}),a(n,{className:"text-muted-foreground cursor-pointer",children:[e(M,{className:"h-4 w-4 mr-2"}),"Create new team"]})]})]})};export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-FWBG46K2.mjs";import{a as u}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-FWBG46K2.mjs";import{a as u}from"./chunk-5C4F3OYA.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 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-NLA3SBVN.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g,b as h,c as b}from"./chunk-
|
|
4
|
+
import{a as g,b as h,c as b}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-JXW2QARY.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
5
5
|
${o===s?"opacity-100":"opacity-0"}
|
|
6
6
|
w-full h-full bg-cover bg-center`,children:o===0?t(b,{hero:x,title:c.title,logoImage:m}):w(I,{children:[e.blockName&&t(h,{title:e.blockName}),t(y,{blocks:[e],fill:!0}),t(g,{logoImage:m})]})})},o))}),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:r,children:t(E,{})})]})},E=()=>t(k,{children:t(v.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:t(v.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});export{K 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-
|
|
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{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{b as n}from"./chunk-BPSLUO5I.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}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as BannerBlock};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{b as a,c as b}from"../../chunk-
|
|
2
|
+
"use strict";import{b as a,c as b}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{b as CallToActionBlock,a as CallToActionBlockOld};
|