cortex-react-components 2.13.2 → 2.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-6R6NYDWN.mjs → chunk-2HWSTGAP.mjs} +1 -1
- package/dist/chunk-2IMVYO7X.mjs +1 -0
- package/dist/{chunk-GTZJWMZR.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/chunk-5N4WW7O2.mjs +1 -0
- package/dist/{chunk-75F3LJMX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-EM3T2XYC.mjs → chunk-5WVFEIMC.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-62A35O55.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/chunk-6BQNN2KT.mjs +1 -0
- package/dist/chunk-6NED7ZVK.mjs +1 -0
- package/dist/{chunk-CXOVEABI.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-E2OSUDXP.mjs → chunk-CBIULUZQ.mjs} +1 -1
- package/dist/{chunk-ITJH72Z2.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-5EQXJS23.mjs → chunk-DMCFEJ2C.mjs} +1 -1
- package/dist/chunk-DTIHVFME.mjs +4 -0
- package/dist/{chunk-POIHYOIP.mjs → chunk-E6UOMRHI.mjs} +1 -1
- package/dist/chunk-E6Y5COQK.mjs +1 -0
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/chunk-KG7HG2VO.mjs +1 -0
- package/dist/{chunk-LJXTXROJ.mjs → chunk-LJOWXPWW.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-ZKSZJI4F.mjs → chunk-MLMDTZHL.mjs} +1 -1
- package/dist/{chunk-KIYBEYSU.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/chunk-NGX2VCHS.mjs +1 -0
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-NWISIJFD.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-Q67RF7VO.mjs → chunk-QG4QCB5I.mjs} +1 -1
- package/dist/{chunk-A7SGFSI5.mjs → chunk-QSXEJ2NO.mjs} +1 -1
- package/dist/{chunk-KCEJXXM2.mjs → chunk-RVHCTANZ.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-6MSM3CZ6.mjs → chunk-TL2RQFU5.mjs} +1 -1
- package/dist/{chunk-7FWAJQRH.mjs → chunk-TO7SVJIU.mjs} +1 -1
- package/dist/chunk-TOI73VEE.mjs +1 -0
- package/dist/{chunk-ZGQC6O62.mjs → chunk-UEBQJNVT.mjs} +1 -1
- package/dist/chunk-UVHMI3PU.mjs +1 -0
- package/dist/chunk-WSQHAE6Q.mjs +1 -0
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-CR326IJ6.mjs → chunk-X3I4Y44O.mjs} +1 -1
- package/dist/{chunk-3AWUWWR4.mjs → chunk-XHXUT3LD.mjs} +1 -1
- package/dist/chunk-XNEPSYCO.mjs +1 -0
- package/dist/{chunk-C4RWEPVF.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-NSJPZJQF.mjs → chunk-YQW7SMYJ.mjs} +1 -1
- package/dist/{chunk-UXOUJ5YO.mjs → chunk-ZB7RDJRP.mjs} +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/{digital-colleague-clone.mjs → foundary-clone.mjs} +1 -1
- package/dist/components/Foundary/{DigitalColleageusLayout.d.ts → foundary-layout.d.ts} +3 -3
- package/dist/components/Foundary/foundary-layout.js +5 -0
- package/dist/components/Foundary/{DigitalColleageusLayout.mjs → foundary-layout.mjs} +1 -1
- package/dist/components/Foundary/{digital-colleague-options.mjs → foundary-options.mjs} +1 -1
- package/dist/components/Foundary/index.d.ts +3 -3
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/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/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddEpicModal.d.ts +1 -1
- package/dist/components/Projects/AddEpicModal.js +1 -1
- package/dist/components/Projects/AddEpicModal.mjs +1 -1
- package/dist/components/Projects/AddSprintModal.d.ts +1 -1
- package/dist/components/Projects/AddSprintModal.js +1 -1
- package/dist/components/Projects/AddSprintModal.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.d.ts +2 -2
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicsView.d.ts +1 -1
- package/dist/components/Projects/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +6 -4
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.d.ts +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.d.ts +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +1 -42
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/TaskCard.d.ts +2 -2
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSidebar.d.ts +1 -1
- package/dist/components/Projects/TaskSidebar.js +1 -1
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/Projects/TasksView.d.ts +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/creative.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +12 -12
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/index.js +17 -17
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/utils/extract-id.d.ts +1 -0
- package/dist/utils/extract-id.js +1 -0
- package/dist/utils/extract-id.mjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-2C4UDLVF.mjs +0 -1
- package/dist/chunk-4A3MGS6I.mjs +0 -1
- package/dist/chunk-4HHGVL3E.mjs +0 -1
- package/dist/chunk-6DEY5ZDD.mjs +0 -1
- package/dist/chunk-6TUNKKV7.mjs +0 -1
- package/dist/chunk-GGJZVAC4.mjs +0 -4
- package/dist/chunk-KW6L6KBY.mjs +0 -1
- package/dist/chunk-MBPTBEOX.mjs +0 -1
- package/dist/chunk-NKDFAFWH.mjs +0 -1
- package/dist/chunk-O57JJTH5.mjs +0 -1
- package/dist/chunk-ORNGKQM7.mjs +0 -1
- package/dist/components/Foundary/DigitalColleageusLayout.js +0 -5
- /package/dist/{chunk-6LEH6XKI.mjs → chunk-M2REXGQW.mjs} +0 -0
- /package/dist/{chunk-SGK4ZXKR.mjs → chunk-NDZ26EG6.mjs} +0 -0
- /package/dist/components/Foundary/{DigitalColleageusLayout.css → foundary-clone.css} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.d.ts → foundary-clone.d.ts} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.js → foundary-clone.js} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.css → foundary-layout.css} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.css → foundary-options.css} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.d.ts → foundary-options.d.ts} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.js → foundary-options.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as l}from"./chunk-
|
|
4
|
+
import{f as l}from"./chunk-N3B3XNV3.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-2BR55L74.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as S}from"./chunk-5NIEZE7A.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as S}from"./chunk-5NIEZE7A.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-CLGBBNRB.mjs";import{a as g}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:f,logoDark:g,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(S,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Z}from"./chunk-NGX2VCHS.mjs";import{a as Y}from"./chunk-Z22NSJMF.mjs";import{a as m}from"./chunk-UVHMI3PU.mjs";import{a as W}from"./chunk-B4H6T2GP.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{b as h}from"./chunk-CSBGSBEU.mjs";import{a as v}from"./chunk-YO3GQYRJ.mjs";import{useState as c,useEffect as we,useRef as _}from"react";import{Calendar as y,User as ke,Plus as Ce,CalendarDays as De,Edit2 as ee,Trash2 as Ee,Check as Te,X as A,ChevronDown as te,ChevronUp as ae}from"lucide-react";import{Fragment as se,jsx as t,jsxs as a}from"react/jsx-runtime";var Le=({tasks:O,epics:ne,sprints:S,onUpdateTask:Be,onTaskClick:re,onAddSprint:ie,onUpdateSprint:le,onDeleteSprint:oe})=>{let[p,de]=c([]),[z,ce]=c(new Set),[w,R]=c(null),[me,x]=c(!1),[pe,k]=c(null),[C,D]=c(null),[u,N]=c({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[E,P]=c("upcoming"),[b,T]=c(!1),[g,ue]=c(0),f=_(null),ge=_(null);we(()=>{let e=()=>{f.current&&ue(f.current.offsetHeight)};e();let s=new ResizeObserver(e);return f.current&&s.observe(f.current),()=>s.disconnect()},[]);let $=e=>ne.find(s=>s.id===Number(e)),ve=e=>S.find(s=>s.id===Number(e)),fe=e=>{let s={high:"bg-red-100 text-red-800 border-red-200",medium:"bg-orange-100 text-orange-800 border-orange-200",low:"bg-green-100 text-green-800 border-green-200"};return s[e]||s.medium},he=e=>{let s=e.trim().split(" ");if(s.length===1)return s[0];let r=s[0],n=s[s.length-1][0].toUpperCase();return`${r} ${n}`},xe=e=>{let s={},r=[];return e.forEach(n=>{n.epic?(s[m(n.epic)]||(s[m(n.epic)]=[]),s[m(n.epic)].push(n)):r.push(n)}),{tasksByEpic:s,unassignedTasks:r}},j=S.filter(e=>e.id!==1&&e.id!==2),H=j.filter(e=>{switch(E){default:return!0}}),I=j.filter(e=>p.includes(e.id.toString())),U=e=>{de(s=>s.includes(e)?s.filter(r=>r!==e):s.length<3?[...s,e]:s)},F=e=>{ce(s=>{let r=new Set(s);return r.has(e)?r.delete(e):r.add(e),r})},Ne=e=>{ie(e),x(!1)},L=e=>{D(e.id.toString()),N({name:e.name,description:e.description||"",startDate:e.startDate?new Date(e.startDate).toISOString().split("T")[0]:e.startDate,endDate:e.endDate?new Date(e.endDate).toISOString().split("T")[0]:e.endDate,isActive:!1})},be=()=>{C&&(le(C,{name:u.name,description:u.description,startDate:u.startDate,endDate:u.endDate}),D(null))},ye=()=>{D(null),N({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Se=(e,s)=>{R(s),e.dataTransfer.effectAllowed="move"},M=e=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},V=e=>{k(e)},X=()=>{k(null)},q=(e,s)=>{if(e.preventDefault(),k(null),!w)return;let r=m(w.sprint)||void 0,n=s==="backlog"?void 0:s;R(null)},G=({task:e,showSprint:s=!1})=>{let r=e.epic?$(m(e.epic).toString()):null,n=e.sprint?ve(m(e.sprint).toString()):null;return t(v,{className:"p-3 cursor-grab active:cursor-grabbing hover:shadow-md transition-all duration-200 border border-border bg-card hover:bg-accent/50",draggable:!0,onDragStart:d=>{d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",e.id.toString()),Se(d,e)},onClick:d=>{w===null&&re(e)},style:{userSelect:"none"},children:a("div",{className:"space-y-2 pointer-events-none",children:[a("div",{className:"flex items-start justify-between gap-2",children:[t("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:e.name}),t(h,{className:`text-xs ${fe(e.priority||"medium")}`,children:e.priority?.[0]?.toUpperCase()})]}),a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-1",children:[r&&t("div",{className:`w-2 h-2 rounded-full ${r.color}`}),t("span",{className:"text-muted-foreground truncate",children:r?.name})]}),t("span",{className:"text-muted-foreground",children:he(e.assignee?.value?.name)})]}),s&&n&&a("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[t(y,{className:"h-3 w-3"}),t("span",{children:n.name})]})]})})};return a("div",{ref:ge,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:f,className:"flex-shrink-0",children:t(Y,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-r from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>x(!0)}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:[a("div",{className:"mb-4",children:[t(v,{className:"p-3 bg-card shadow-sm",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t("div",{children:t("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"})}),p.length>0&&t("div",{className:"flex items-center gap-2",children:t("div",{className:"flex flex-wrap gap-1",children:I.map(e=>a("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[t("span",{className:"max-w-[80px] truncate",children:e.name}),t("button",{onClick:()=>U(e.id.toString()),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:t(A,{className:"h-4 w-4"})})]},e.id))})})]}),a("div",{className:"flex items-center gap-2",children:[a(o,{onClick:()=>x(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[t(Ce,{className:"h-3 w-3"}),"Add"]}),a(o,{onClick:()=>T(!b),variant:"outline",size:"sm",className:"gap-1",children:[t(y,{className:"h-3 w-3"}),b?"Close":"Select"]})]})]})}),b&&t("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>T(!1)}),t("div",{className:`fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl z-10 transition-all duration-300 ease-in-out ${b?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:a(v,{className:"h-full rounded-none border-0 flex flex-col",children:[a("div",{className:"p-4 border-b bg-muted/30 flex-shrink-0",children:[a("div",{className:"flex items-center justify-between",children:[t("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),t(o,{variant:"ghost",size:"sm",onClick:()=>T(!1),className:"h-8 w-8 p-0",children:t(A,{className:"h-4 w-4"})})]}),t("p",{className:"text-sm text-muted-foreground mt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),a("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[t("div",{className:"flex gap-1 mb-4 bg-muted p-1 rounded-lg",children:[{key:"all",label:"All",count:S.length},{key:"active",label:"Active"},{key:"upcoming",label:"Upcoming"}].map(e=>a(o,{variant:E===e.key?"default":"outline",size:"sm",onClick:()=>P(e.key),className:"text-xs h-8 px-3 flex-1",children:[e.label," (",e.count,")"]},e.key))}),t("div",{className:"space-y-2 flex-1 overflow-y-auto",children:H.length>0?H.map(e=>{let s=p.includes(e.id.toString()),r=O.filter(i=>m(i.sprint)===e.id).length,n=!s&&p.length<3;return t("div",{className:`p-3 rounded-lg border transition-all ${s?"bg-primary/10 border-primary/30":n?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:C===e.id.toString()?a("div",{className:"space-y-3",children:[t(Q,{value:u.name,onChange:i=>N(l=>({...l,name:i.target.value})),className:"text-sm",placeholder:"Sprint name"}),t(W,{value:u.description,onChange:i=>N(l=>({...l,description:i.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),a("div",{className:"flex gap-2",children:[a(o,{size:"sm",onClick:()=>be(),className:"flex-1",children:[t(Te,{className:"h-3 w-3 mr-1"}),"Save"]}),a(o,{size:"sm",variant:"outline",onClick:ye,className:"flex-1",children:[t(A,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):a("div",{children:[a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2 mb-1",children:[t("h4",{className:"font-medium text-sm text-foreground truncate",children:e.name}),t(h,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),t("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:e.description}),a("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[a("span",{className:"flex items-center gap-1",children:[t(De,{className:"h-3 w-3"}),new Date(e.startDate).toLocaleDateString()]}),a("span",{className:"flex items-center gap-1",children:[t(ke,{className:"h-3 w-3"}),r," tasks"]})]})]}),a("div",{className:"flex items-center gap-1 ml-2",children:[t(o,{size:"sm",variant:"ghost",onClick:()=>L(e),className:"h-6 w-6 p-0",children:t(ee,{className:"h-3 w-3"})}),e.id!==1&&e.id!==2&&t(o,{size:"sm",variant:"ghost",onClick:()=>oe(e.id.toString()),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:t(Ee,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex items-center justify-between mt-2",children:t(o,{variant:s?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>U(e.id.toString()),disabled:!s&&p.length>=3,children:t("span",{className:"pointer-events-none select-none",children:s?"Deselect":p.length>=3?"Limit Reached":"Select"})})})]})},e.id)}):a("div",{className:"text-center py-8 text-muted-foreground",children:[t(y,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),a("p",{className:"text-sm",children:['No sprints found for "',E,'" filter']}),t(o,{variant:"link",size:"sm",onClick:()=>P("all"),className:"text-xs",children:"Show all sprints"})]})}),p.length===0&&t("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:a("div",{className:"text-center",children:[t(y,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),t("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),t("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[t("div",{className:"lg:col-span-1",children:a(v,{className:"p-4 h-full bg-card border-l-4 border-l-gray-400 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:M,onDragEnter:()=>V("backlog"),onDragLeave:X,onDrop:e=>q(e,"backlog"),style:{height:g>0?`calc(100vh - ${g+200}px)`:"calc(100vh - 16rem)"},children:[t("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:t("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"})}),t("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${pe==="backlog"?"bg-primary/10":""}`,children:t(se,{})})]})}),I.map(e=>{let s=O.filter(n=>m(n.sprint)===e.id),r=s.reduce((n,i)=>n+(i.storyPoints||0),0);return a(v,{className:"p-4 h-full bg-card border-l-4 border-l-blue-500 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:M,onDragEnter:()=>V(e.id.toString()),onDragLeave:X,onDrop:n=>q(n,e.id.toString()),style:{height:g>0?`calc(100vh - ${g+200}px)`:"calc(100vh - 16rem)"},children:[a("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[t("div",{children:t("h3",{className:"font-semibold text-foreground select-none text-lg",children:e.name})}),a("div",{className:"flex items-center gap-2",children:[a(h,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[s.length," tasks"]}),a(h,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[r," pts"]}),t(o,{size:"sm",variant:"ghost",onClick:()=>L(e),className:"h-6 px-2",children:t(ee,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:n,unassignedTasks:i}=xe(s);return a(se,{children:[Object.entries(n).map(([l,d])=>{let B=$(l);if(!B)return null;let J=z.has(l);return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>F(l),children:[t("div",{className:`w-3 h-3 rounded-full ${B.color}`}),t("span",{className:"font-medium text-muted-foreground",children:B.name}),a("span",{className:"text-muted-foreground",children:["(",d.length,")"]}),t("div",{className:"ml-auto",children:J?t(te,{className:"h-3 w-3 text-muted-foreground"}):t(ae,{className:"h-3 w-3 text-muted-foreground"})})]}),!J&&t("div",{className:"space-y-2 pl-2",children:d.map(K=>t(G,{task:K},K.id))})]},l)}),i.length>0&&(()=>{let l=z.has("no-epic");return a("div",{className:"space-y-2",children:[a("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>F("no-epic"),children:[t("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),t("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),a("span",{className:"text-muted-foreground",children:["(",i.length,")"]}),t("div",{className:"ml-auto",children:l?t(te,{className:"h-3 w-3 text-muted-foreground"}):t(ae,{className:"h-3 w-3 text-muted-foreground"})})]}),!l&&t("div",{className:"space-y-2 pl-2",children:i.map(d=>t(G,{task:d},d.id))})]})})(),s.length===0&&t("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})})()})]},e.id)})]}),t(Z,{isOpen:me,onClose:()=>x(!1),onAddSprint:Ne})]})})]})};export{Le as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-PK3OBSCB.mjs";import{a as v}from"./chunk-LJQPLE4S.mjs";import{c as b,d as h}from"./chunk-N3B3XNV3.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as V}from"./chunk-Z22NSJMF.mjs";import{a as R,c as S,d as T,g as I,i as p}from"./chunk-YFAZQYK4.mjs";import{a as E}from"./chunk-B4H6T2GP.mjs";import{a as u}from"./chunk-TVZOULLL.mjs";import{a as F,f as L,g as A,i as B}from"./chunk-3UMMMQEH.mjs";import{a as D}from"./chunk-L5JPAKPM.mjs";import{b as C}from"./chunk-ZUA4KNIR.mjs";import{a as y,e as U}from"./chunk-YO3GQYRJ.mjs";import{useEffect as z,useState as x}from"react";import{Plus as K,Clock as W,Calendar as Y,User as G,Edit2 as J,Trash2 as Q}from"lucide-react";import{Fragment as re,jsx as e,jsxs as t}from"react/jsx-runtime";var X=a=>a.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),Z=a=>{let[n,m]=a.split(":"),s=new Date;return s.setHours(parseInt(n),parseInt(m)),s.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},O=(a,n)=>{let m=new Date,s=new Date(a);if(n){let[i,d]=n.split(":");s.setHours(parseInt(i),parseInt(d))}return s<m},P=a=>{let n=new Date;return a.toDateString()===n.toDateString()},_=a=>{let n=new Date;return n.setDate(n.getDate()+1),a.toDateString()===n.toDateString()},ee=({colleagues:a,onAddReminder:n,open:m,setOpen:s})=>{let[i,d]=x({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[c,v]=x(!1),f=l=>{if(l.preventDefault(),!a.find(w=>w?.id.toString()===i.colleagueId.toString())){console.error("No valid colleague selected"),v(!0);return}v(!1);let k={title:i.title,description:i.description,dueDate:new Date(i.dueDate).toISOString(),dueTime:i.dueTime||void 0,isRecurring:i.isRecurring,assignedColleague:Number(i.colleagueId),project:1,updatedAt:new Date().toISOString()};n(k),s(!1),d({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};z(()=>{i.colleagueId&&v(!1)},[i.colleagueId]);let o=a.filter(Boolean);return e(F,{open:m,onOpenChange:s,children:t(L,{className:"max-w-2xl",children:[e(A,{children:e(B,{children:"Add New Reminder"})}),t("form",{onSubmit:f,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(u,{htmlFor:"title",children:"Title"}),e(D,{id:"title",value:i.title,onChange:l=>d({...i,title:l.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(u,{htmlFor:"description",children:"Description"}),e(E,{id:"description",value:i.description,onChange:l=>d({...i,description:l.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(u,{htmlFor:"dueDate",children:"Due Date"}),e(D,{id:"dueDate",type:"date",value:i.dueDate,onChange:l=>d({...i,dueDate:l.target.value}),required:!0})]}),t("div",{children:[e(u,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(D,{id:"dueTime",type:"time",value:i.dueTime,onChange:l=>d({...i,dueTime:l.target.value})})]})]}),t("div",{children:[e(u,{className:`${c?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),t(R,{value:i.colleagueId,onValueChange:l=>{d({...i,colleagueId:l})},required:!0,children:[e(T,{className:`${c?"text-destructive border-red-500":""}`,children:e(S,{className:`${c?"text-destructive border-red-500":""}`,placeholder:"Select a digital colleague",children:a.find(l=>l?.id.toString()===i.colleagueId.toString())?.name||"Select a digital colleague"})}),e(I,{children:o.map(l=>e(p,{value:l.id.toString(),children:l.name},l.id))})]}),c&&e("p",{className:"text-destructive text-sm",children:"Please select a digital colleague"})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:i.isRecurring,onChange:l=>d({...i,isRecurring:l.target.checked}),className:"rounded border-border"}),e(u,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(u,{htmlFor:"recurrencePattern",children:"Frequency"}),t(R,{value:i.recurrencePattern,onValueChange:l=>d({...i,recurrencePattern:l}),children:[e(T,{children:e(S,{})}),t(I,{children:[e(p,{value:"daily",children:"Daily"}),e(p,{value:"weekly",children:"Weekly"}),e(p,{value:"monthly",children:"Monthly"}),e(p,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(u,{htmlFor:"recurrenceInterval",children:"Every"}),e(D,{id:"recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:l=>d({...i,recurrenceInterval:parseInt(l.target.value)})})]})]})]}),t("div",{className:"flex justify-end space-x-2",children:[e(C,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),e(C,{type:"submit",children:"Add Reminder"})]})]})]})})},te=({reminder:a,colleagues:n,onUpdateReminder:m,open:s,onClose:i})=>{let[d,c]=x({title:a.title,description:a.description,dueDate:a.dueDate?.toString().split("T")[0],dueTime:a.dueTime||"",isRecurring:a.isRecurring}),v=o=>{o.preventDefault(),m(a.id.toString(),{title:d.title,description:d.description,dueDate:new Date(d.dueDate||"").toISOString(),dueTime:d.dueTime||void 0,isRecurring:d.isRecurring}),i()},f=n.filter(Boolean);return e(F,{open:s,onOpenChange:i,children:t(L,{className:"max-w-2xl",children:[e(A,{children:e(B,{children:"Edit Reminder"})}),t("form",{onSubmit:v,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(u,{htmlFor:"edit-title",children:"Title"}),e(D,{id:"edit-title",value:d.title,onChange:o=>c({...d,title:o.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(u,{htmlFor:"edit-description",children:"Description"}),e(E,{id:"edit-description",value:d.description||"",onChange:o=>c({...d,description:o.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(u,{htmlFor:"edit-dueDate",children:"Due Date"}),e(D,{id:"edit-dueDate",type:"date",value:d.dueDate,onChange:o=>c({...d,dueDate:o.target.value}),required:!0})]}),t("div",{children:[e(u,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(D,{id:"edit-dueTime",type:"time",value:d.dueTime,onChange:o=>c({...d,dueTime:o.target.value})})]})]}),e("div",{className:"space-y-2",children:t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:d.isRecurring||!1,onChange:o=>c({...d,isRecurring:o.target.checked}),className:"rounded border-border"}),e(u,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]})}),t("div",{className:"flex justify-end space-x-2",children:[e(C,{type:"button",variant:"outline",onClick:i,children:"Cancel"}),e(C,{type:"submit",children:"Save Changes"})]})]})]})})},ae=({reminder:a,colleagues:n,onUpdateReminder:m,onDeleteReminder:s})=>{let[i,d]=x(!1);if(!a||!a.id)return null;let c=O(new Date(a.dueDate||""),a.dueTime||""),v=P(new Date(a.dueDate||"")),f=_(new Date(a.dueDate||"")),o=()=>{m(a.id.toString(),{})},l=()=>v?"Today":f?"Tomorrow":X(new Date(a.dueDate||""));return t(re,{children:[e(te,{reminder:a,colleagues:n,onUpdateReminder:m,open:i,onClose:()=>d(!1)}),e(y,{children:e(U,{className:"p-4",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:o,className:"mt-1 text-primary hover:text-primary/80"}),t("div",{className:"flex-1",children:[e("div",{className:"flex items-center space-x-2 mb-1",children:e("h3",{children:a.title})}),e("p",{className:"text-sm text-muted-foreground mb-2",children:a.description}),t("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e("div",{className:"flex items-center space-x-1",children:e(Y,{className:"h-4 w-4"})}),a.dueTime&&t("div",{className:"flex items-center space-x-1",children:[e(W,{className:"h-4 w-4"}),e("span",{children:Z(a.dueTime)})]}),e("div",{className:"flex items-center space-x-1",children:e(G,{className:"h-4 w-4"})})]})]})]}),t("div",{className:"flex items-center space-x-1",children:[e(C,{variant:"ghost",size:"sm",onClick:()=>d(!0),className:"h-8 w-8 p-0",children:e(J,{className:"h-4 w-4"})}),e(C,{variant:"ghost",size:"sm",onClick:()=>s(a.id.toString()),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Q,{className:"h-4 w-4"})})]})]})})})]})},ie=({initialReminders:a=[],initialColleagues:n=[],onAddReminder:m,onUpdateReminder:s,onDeleteReminder:i})=>{let[d,c]=x(a.filter(Boolean)),[v]=x(n.filter(Boolean)),[f,o]=x("all"),[l,M]=x(""),[k,w]=x(!1),q=r=>{if(!r.title){console.error("Invalid reminder data:",r);return}let g={...r,id:Date.now(),createdAt:new Date().toISOString()};c(N=>[...N,g]),m?.(r)},$=(r,g)=>{if(!r){console.error("No reminder ID provided for update");return}c(N=>N.map(b=>b?.id.toString()===r?{...b,...g}:b)),s?.(r,g)},j=r=>{if(!r){console.error("No reminder ID provided for deletion");return}c(g=>g.filter(N=>N?.id.toString()!==r)),i?.(r)},H=d.filter(r=>{if(!r)return!1;if(l){let g=l.toLowerCase();if(!(r.title.toLowerCase().includes(g)||r.description?.toLowerCase().includes(g)))return!1}switch(f){case"pending":case"completed":case"overdue":return O(new Date(r.dueDate||""),r.dueTime||"");case"today":return P(new Date(r.dueDate||""));default:return!0}}).sort((r,g)=>{if(!r||!g)return 0;let N={high:3,medium:2,low:1},b=0;return b!==0?b:new Date(r.dueDate||"").getTime()-new Date(g.dueDate||"").getTime()}),h={total:d.filter(Boolean).length,overdue:d.filter(r=>r&&O(new Date(r.dueDate||""),r.dueTime||"")).length,today:d.filter(r=>r&&P(new Date(r.dueDate||""))).length},le=v.find(Boolean)||{id:"1",name:"Default Colleague",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[]};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(V,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{w(!0)}}}),t("div",{className:"h-full bg-background",children:[e(ee,{colleagues:v,onAddReminder:q,open:k,setOpen:w}),t("div",{className:"p-6",children:[t("div",{className:"flex items-center justify-between mb-6",children:[t("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),t(C,{className:"flex items-center space-x-2",onClick:()=>w(!0),children:[e(K,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})]}),t("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:h.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:h.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:h.today}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:h.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:h.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),t("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(D,{placeholder:"Search reminders...",value:l,onChange:r=>M(r.target.value),className:"max-w-md"})}),t(R,{value:f,onValueChange:r=>o(r),children:[e(T,{className:"w-40",children:e(S,{})}),t(I,{children:[t(p,{value:"all",children:["All (",h.total,")"]}),t(p,{value:"overdue",children:["Overdue (",h.overdue,")"]}),t(p,{value:"overdue",children:["Overdue (",h.overdue,")"]}),t(p,{value:"today",children:["Today (",h.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:H.length===0?t(y,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:l||f!=="all"?"No reminders match your filters":"No reminders yet"}),!l&&f==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):H.map(r=>r&&e(ae,{reminder:r,colleagues:v,onUpdateReminder:$,onDeleteReminder:j},r.id))})]})]})]})},Se=ie;export{ie as a,Se as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-N3B3XNV3.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -1,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-7GMAMIHM.mjs";import{b as y}from"./chunk-2RQDJ5XT.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"motion/react";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
|
|
4
|
+
import{a as T}from"./chunk-5WVFEIMC.mjs";import{a as F}from"./chunk-IF3425JX.mjs";import{a as v}from"./chunk-MDJREBVI.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-M7NV6EFH.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"./chunk-XNEPSYCO.mjs";import{a as C}from"./chunk-6SWKEZN6.mjs";import{a as u}from"./chunk-DFIXTV2M.mjs";import{a as x,f as h,g as y,i as w}from"./chunk-3UMMMQEH.mjs";import{useEffect as O,useState as l}from"react";import{Loader2 as R,Check as X,X as j}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var Z=({isOpen:b,onClose:f,initialTask:m,epics:N,sprints:P,onUpdateTask:k,onDeleteTask:I,onAddComment:T,colleagues:A})=>{let[s,c]=l(m),[E,p]=l(new Date),[n,e]=l("idle"),[g,d]=l("idle"),[q,z]=l([]);O(()=>{c(m)},[m]);let D=async(a,i)=>{if(i!==s[a]){e("loading");try{let r=await k(s.id.toString(),{[a]:i});c(r),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch(r){console.log("error",r),e("error"),setTimeout(()=>e("idle"),3e3)}}},M=async(a,i)=>{if(i!==s[a]){e("loading");try{let r=await k(s.id.toString(),{[a]:i});c(r),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},F=async a=>{if(T){e("loading");try{let i=await T?.({content:a,taskId:s.id.toString()});c(i),p(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},H=async()=>{d("loading");try{await I(s.id.toString()),d("success"),setTimeout(()=>{f(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},v=n!=="loading"&&g!=="loading",S=()=>{v&&f()},L=()=>n==="loading"?o("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t(R,{className:"h-4 w-4 animate-spin"}),t("span",{children:"Updating..."})]}):n==="success"?o("div",{className:"flex items-center gap-2 text-sm text-success",children:[t(X,{className:"h-4 w-4"}),t("span",{children:"Updated successfully"})]}):n==="error"?o("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[t(j,{className:"h-4 w-4"}),t("span",{children:"Update failed"})]}):null;return t(x,{open:b,onOpenChange:S,children:o(h,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[o(y,{children:[t(w,{className:"sr-only",children:s.name}),o("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex-1",children:L()}),!v&&t("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),o("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o("div",{className:"lg:col-span-2 space-y-4",children:[t(u,{fieldName:"name",value:s.name||"",label:"",onSave:D,className:"border-b border-border pb-3",disabled:n==="loading"}),t(u,{fieldName:"description",value:s.description||"",label:"Description",multiline:!0,onSave:D,disabled:n==="loading"}),t(C,{comments:(s?.comments||[]).map(a=>({author:a.author.value.name||"",createdAt:new Date(a.timestamp),text:a.text,id:a.id||""})),onAddComment:F})]}),t(U,{task:s,epics:N,sprints:P,lastUpdated:E,onUpdateTask:M,onClose:S,onDelete:H,isUpdating:n==="loading",isDeleting:g==="loading",deleteState:g,teamMembers:A})]})]})})};export{Z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as $}from"./chunk-KZCIHFTM.mjs";import{a as F}from"./chunk-6BQNN2KT.mjs";import{a as V}from"./chunk-TOI73VEE.mjs";import{a as z}from"./chunk-WSQHAE6Q.mjs";import{a as D}from"./chunk-KG7HG2VO.mjs";import{a as L}from"./chunk-Z22NSJMF.mjs";import{a as S}from"./chunk-UVHMI3PU.mjs";import{b as K}from"./chunk-CSBGSBEU.mjs";import{useEffect as l,useState as n,useRef as q}from"react";import{jsx as a,jsxs as g}from"react/jsx-runtime";var Se=({initialTasks:k=[],initialEpics:f=[],initialSprints:T=[],initialUsers:G=[],initialColleagues:J=[],initialProjects:le=[],onAddTask:Q,onUpdateTask:v,onDeleteTask:b,onTaskClick:W,onAddEpic:X,onAddComment:Y})=>{let[w,d]=n(k),[c,O]=n(f),[h,Z]=n(T),[y,N]=n(!1),[x,P]=n(!1),[p,A]=n(null),[C,H]=n(null),[B,pe]=n(G),[M,ue]=n(J),[u,I]=n(0),o=q(null),_=q(null),R=c.filter(e=>!0).map(e=>e.id),me=h.find(e=>e.isSelected);R.push(0),l(()=>{d(k)},[k]),l(()=>{O(f)},[f]),l(()=>{Z(T)},[T]),l(()=>{let e=()=>{if(o.current){let i=o.current.offsetHeight;I(i)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),l(()=>{let e=setTimeout(()=>{o.current&&I(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[y,x]);let ee=w.filter(e=>!0),te=e=>ee.filter(t=>t.status===e),se=e=>{let t={};return c.forEach(s=>{t[s.id]=e.filter(i=>S(i.epic)===s.id)}),t["no-epic"]=e.filter(s=>!S(s.epic)),t},U=e=>{H(e)},ae=e=>{C&&(d(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),v?.(C.id.toString(),{status:e}),H(null))},ie=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};d(s=>[...s,t]),Q?.(e)},ne=async(e,t)=>{if(d(i=>i.map(r=>r.id===Number(e)?{...r,...t}:r)),v)return await v(e,t);let s=w.find(i=>i.id===Number(e));if(!s)throw new Error("Task not found");return{...s,...t}},oe=async e=>{d(t=>t.filter(s=>s.id!==Number(e))),p?.id===Number(e)&&A(null),b&&await b(e)},re=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};O(s=>[...s,t]),X?.(e)},j=e=>{A(e),W?.(e)},de=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],ce=u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)";return g("div",{ref:_,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[a("div",{ref:o,className:"flex-shrink-0",children:a(L,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>P(!0)}})}),a("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:u>0?`calc(100vh - ${u+120}px)`:"calc(100vh - 12rem)"},children:a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:de.map(e=>{let t=te(e.status),s=se(t);return g($,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",height:ce,children:[s["no-epic"].map(i=>a(D,{epic:null,task:i,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"})),R.map(i=>{let r=c.find(m=>m.id===i),E=s[i]||[];return E.length===0?null:g("div",{className:"mb-6",children:[g("div",{className:"flex items-center gap-2 mb-3",children:[a("div",{className:`w-3 h-3 rounded-full ${r?.color}`}),a("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:r?.name||"No Epic"}),a(K,{variant:"secondary",className:"text-xs",children:E.length})]})," ",a("div",{className:"space-y-3",children:E.map(m=>a(D,{task:m,epic:r,onDragStart:U,onTaskClick:j,isCompact:e.status==="done"},m.id))})]},i)})]},e.id)})})})}),a(z,{isOpen:y,onClose:()=>N(!1),onAddTask:ie,assignees:[...M,...B],epics:c,sprints:h}),a(V,{isOpen:x,onClose:()=>P(!1),onAddEpic:re}),p&&a(F,{isOpen:!!p,onClose:()=>A(null),initialTask:p,epics:c,sprints:h,onUpdateTask:ne,onDeleteTask:oe,colleagues:[...M,...B],onAddComment:Y})]})};export{Se as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-N3B3XNV3.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
2
2
|
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),p=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),h=a=>{let{title:r,hero:t,logoImage:s}=a;return i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(l,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width?t.media.width??1920:1920,height:t.media&&t.media.height?t.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(l,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:r}),t.richText&&e(o,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{n as a,p as b,h as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as v}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as v}from"./chunk-N3B3XNV3.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as g,c as x,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(v,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(g,{children:e(x,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-WUA65ZZB.mjs";import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-AQQCH7Z2.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as g}from"./chunk-AQQCH7Z2.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-CLGBBNRB.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight: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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as X}from"./chunk-5N4WW7O2.mjs";import{a as J}from"./chunk-6NED7ZVK.mjs";import{a as Q}from"./chunk-2IMVYO7X.mjs";import{a as z}from"./chunk-TOI73VEE.mjs";import{a as q}from"./chunk-WSQHAE6Q.mjs";import{a as L}from"./chunk-E6Y5COQK.mjs";import{a as K}from"./chunk-QBUU2AQL.mjs";import{a as W}from"./chunk-EOR2BAI2.mjs";import{a as F}from"./chunk-UVHMI3PU.mjs";import{useEffect as o,useState as s}from"react";import{useRouter as Je}from"next/navigation";import{jsx as a,jsxs as Qe}from"react/jsx-runtime";function Le({title:Xe="",initialTasks:f=[],initialEpics:h=[],initialSprints:D=[],initialProjects:v=[],initialReminders:A=[],initialColleagues:E=[],initialUsers:w=[],initialFiles:S=[],initialView:P="kanban",onAddTask:Y,onUpdateTask:Z,onDeleteTask:_,onTaskClick:Ye,onAddEpic:$,onUpdateEpic:ee,onDeleteEpic:te,onAddTaskToEpic:Ze,onAddSprint:ne,onUpdateSprint:ie,onDeleteSprint:se,onAddProject:ae,onUpdateProject:oe,onDeleteProject:de,onFileAdd:re,onFileEdit:le,onFileDelete:ce,onFileClick:pe,onAddReminder:me,onUpdateReminder:ke,onDeleteReminder:Te,onViewChange:ge,onToggleMobileMenu:ue,onTeamClick:_e,onTeamChange:$e,onCopilotClick:et,handleAddComment:fe}){let[c,d]=s(f),[l,p]=s(h),[m,k]=s(D),[he,T]=s(v),[De,g]=s(A),[C,ve]=s(E),[O,Ae]=s(w),[Ee,y]=s(S),[we,R]=s(!1),[Se,M]=s(!1),[Pe,N]=s(null),[Ce,V]=s(null),[j,I]=s(null),[r,B]=s(P||"kanban"),[tt,Ue]=s(!1),be=Je();o(()=>{d(f)},[f]),o(()=>{k(D)},[D]),o(()=>{p(h)},[h]),o(()=>{T(v)},[v]),o(()=>{y(S)},[S]),o(()=>{Ae(w)},[w]),o(()=>{ve(E)},[E]),o(()=>{g(A)},[A]),o(()=>{B(P)},[P]);let Fe=c.filter(e=>{}),nt=e=>Fe.filter(t=>t.status===e),it=e=>{let t={};return l.forEach(n=>{}),t},st=e=>{I(e)},at=e=>{j&&(d(t=>t.map(n=>n.id===j.id?{...n,status:e}:n)),I(null))},x=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};d(n=>[...n,t]),Y?.(t)},u=async(e,t)=>(d(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),await Z?.(e,t)),ot=async(e,t)=>{u(e,t)},G=e=>{d(t=>t.filter(n=>n.id!==Number(e))),Pe?.id===Number(e)&&N(null),_?.(e)},dt=async e=>{G(e)},rt=e=>{let t={...e,id:Date.now()};T(n=>[...n,t]),ae?.(e)},lt=(e,t)=>{T(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),oe?.(e,t)},ct=e=>{T(t=>t.filter(n=>n.id!==Number(e))),de?.(e)},H=e=>{let t={...e,id:Date.now()};p(n=>[...n,t]),$?.({...t})},Oe=()=>{M(!0)},ye=(e,t)=>{p(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),ee?.(e,t)},Re=e=>{p(t=>t.filter(n=>n.id!==Number(e))),d(t=>t.filter(n=>F(n.epic)!==Number(e))),te?.(e)},Me=e=>{let t={...e,id:Date.now()};k(n=>[...n,t]),ne?.(e)},Ne=(e,t)=>{k(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),ie?.(e,t)},Ve=e=>{e==="backlog"||e==="all-tasks"||(k(t=>t.filter(n=>n.id!==Number(e))),d(t=>t.map(n=>F(n.sprint)===Number(e)?{...n,sprint:void 0}:n)),se?.(e))},U=e=>{N(e)},je=e=>{e==="planning"&&window.innerWidth<768||(B(e),ge?.(e))},pt=()=>{Ue(e=>!e),ue?.()},mt=()=>{be.push("/")},kt=e=>{console.log("Switching to team:",e)},Tt=e=>{console.log("Switching to team:",e)},Ie=e=>{V(e),R(!0)},Be=()=>{R(!1),V(null)},xe=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString()};g(n=>[...n,t]),me?.(e)},Ge=(e,t)=>{g(n=>n.map(i=>i.id===Number(e)?{...i,...t}:i)),ke?.(e,t)},He=e=>{g(t=>t.filter(n=>n.id!==Number(e))),Te?.(e)},Ke=()=>{re?.()},We=e=>{le?.(e)},qe=e=>{y(t=>t.filter(n=>n.name!==e)),ce?.(e)},ze=e=>{pe?.(e)},gt=[{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"}],ut=()=>{switch(r){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},b=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],ft=b.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),ht=b.length>3,Dt=b.slice(3);return Qe(W,{currentView:r,onViewChange:je,children:[r==="kanban"&&a("div",{className:"h-full overflow-hidden",children:a(J,{initialProjects:he,initialEpics:l,initialSprints:m.map(e=>({...e,isSelected:!1})),initialTasks:c,initialColleagues:C,initialUsers:O,onAddTask:x,onUpdateTask:u,onDeleteTask:G,onTaskClick:U,onAddEpic:H,onAddComment:fe})}),r==="planning"&&a("div",{className:"hidden md:block h-full",children:a(Q,{tasks:c,epics:l,sprints:m,onUpdateTask:u,onTaskClick:U,onAddSprint:Me,onUpdateSprint:Ne,onDeleteSprint:Ve})}),r==="tasks"&&a("div",{className:"h-full",children:a(X,{initialReminders:De,initialColleagues:C,onAddReminder:xe,onUpdateReminder:Ge,onDeleteReminder:He})}),r==="files"&&a("div",{className:"h-full",children:a(K,{initialFiles:Ee,onFileAdd:Ke,onFileEdit:We,onFileDelete:qe,onFileClick:ze,compactView:!1})}),r==="epics"&&a("div",{className:"h-full",children:a(L,{tasks:c,epics:l,sprints:m,onUpdateTask:u,onTaskClick:U,onAddTaskToEpic:Ie,onAddEpic:Oe,onUpdateEpic:ye,onDeleteEpic:Re})}),a(q,{isOpen:we,onClose:Be,onAddTask:x,epics:l,sprints:m,assignees:[...C,...O],defaultEpicId:Ce||void 0}),a(z,{isOpen:Se,onClose:()=>M(!1),onAddEpic:H})]})}export{Le as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a}from"./chunk-4WA47ZQA.mjs";import{a as f}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-4WA47ZQA.mjs";import{a as f}from"./chunk-QG4QCB5I.mjs";import{a as g}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as P}from"lucide-react";import{jsx as e,jsxs as v}from"react/jsx-runtime";var b=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:e(P,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function E({sidebarItems:r,children:h,title:U="Digital Colleagues",notifications:C=[],currentBusinessUnit:N=b[0],onBusinessUnitChange:B,onSearch:c,businessUnits:D=b,activeTab:x,onTabChange:T,showTabs:y=!1,onActionClick:A,actionIcon:R,actionText:S="Action",onNotificationRemove:k,onRemoveAll:w,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform",sidebarInitiallyClosed:M=!1}){let[i,O]=l(!M),[d,t]=l(!1),[u,I]=l(N),m=p=>{I(p),B?.(p)};return v("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[d&&e("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),e("div",{className:"md:hidden",children:e(a,{items:r,isOpen:d,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),e("div",{className:"hidden md:block",children:e(a,{items:r,isOpen:i,isMobile:!1,currentBusinessUnit:u,onBusinessUnitChange:m,onSearch:c,logo:n,appName:o,tagline:s})}),v("div",{className:g("min-h-screen fixed w-full transition-all duration-300 ease-in-out",i?"md:pl-64":"md:pl-0"),children:[e(f,{title:U,notifications:C,onToggleSidebar:()=>O(!i),onToggleMobileMenu:()=>t(!0),sidebarOpen:i,activeTab:x,onTabChange:T,showTabs:y,onActionClick:A,actionIcon:R,actionText:S,onNotificationRemove:k,onRemoveAll:w,logo:n,appName:o,tagline:s}),e("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:h})]})]})}export{E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y}from"./chunk-KG7HG2VO.mjs";import{a as E}from"./chunk-Z22NSJMF.mjs";import{a as h}from"./chunk-UVHMI3PU.mjs";import{a as w}from"./chunk-B4H6T2GP.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{b as c}from"./chunk-CSBGSBEU.mjs";import{a as N}from"./chunk-YO3GQYRJ.mjs";import{useState as p,useRef as T,useEffect as C}from"react";import{Plus as G,Move as J,Edit2 as K,Trash2 as Q,Check as W,X as Y}from"lucide-react";import{Fragment as Z,jsx as t,jsxs as s}from"react/jsx-runtime";var ge=({tasks:S,epics:D,sprints:_,onUpdateTask:P,onTaskClick:H,onAddTaskToEpic:B,onAddEpic:z,onUpdateEpic:R,onDeleteEpic:$})=>{let[m,b]=p(null),[d,f]=p(null),[o,r]=p({}),[g,x]=p(0),n=T(null),A=T(null);C(()=>{let e=()=>{if(n.current){let v=n.current.offsetHeight;x(v)}};e();let a=new ResizeObserver(e);n.current&&a.observe(n.current);let u=()=>{setTimeout(e,100)};return window.addEventListener("storage",u),()=>{a.disconnect(),window.removeEventListener("storage",u)}},[]),C(()=>{let e=setTimeout(()=>{n.current&&x(n.current.offsetHeight)},300);return()=>clearTimeout(e)},[d]);let I=e=>{b(e)},L=e=>{e.preventDefault()},M=(e,a)=>{e.preventDefault(),m&&h(m.epic).toString()!==a&&(P(m.id.toString(),{epic:Number(a)}),b(null))},O=e=>S.filter(a=>h(a.epic).toString()===e),F=e=>{f(e.id.toString()),r({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase})},V=()=>{d&&o.name&&(R(d.toString(),o),f(null),r({}))},j=()=>{f(null),r({})},U=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&$(e)},ee=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,X=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return s("div",{ref:A,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:n,className:"flex-shrink-0",children:t(E,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:z}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:t("div",{className:"h-full overflow-y-auto",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:D.map(e=>{let a=O(e.id.toString()),u=a.reduce((i,q)=>i+(q.storyPoints||0),0),v=g>0?`calc(100vh - ${g+200}px)`:"calc(100vh - 14rem)";return s(N,{className:`flex flex-col ${d===e.id.toString()?"h-auto":""} bg-card shadow-sm`,style:{height:d===e.id.toString()?"auto":v,minHeight:"400px"},onDragOver:L,onDrop:i=>M(i,e.id.toString()),children:[t("div",{className:"p-4 border-b border-border",children:d===e.id.toString()?s("div",{className:"space-y-4",children:[s("div",{className:"flex items-center justify-between",children:[t(k,{value:o.name||"",onChange:i=>r({...o,name:i.target.value}),placeholder:"Epic name",className:"font-semibold"}),s("div",{className:"flex gap-2 ml-2",children:[t(l,{size:"sm",variant:"ghost",onClick:V,className:"p-1 h-8 w-8",children:t(W,{className:"h-4 w-4"})}),t(l,{size:"sm",variant:"ghost",onClick:j,className:"p-1 h-8 w-8",children:t(Y,{className:"h-4 w-4"})})]})]}),t(w,{value:o.description||"",onChange:i=>r({...o,description:i.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),s("select",{value:o.confidence||e.confidence,onChange:i=>r({...o,confidence:i.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[t("option",{value:"low",children:"Low"}),t("option",{value:"medium",children:"Medium"}),t("option",{value:"high",children:"High"})]})]}),s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t("select",{value:o.phase?.toString()||e.phase.toString(),onChange:i=>r({...o,phase:parseInt(i.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[1,2,3,4,5,6,7,8,9].map(i=>s("option",{value:i.toString(),children:["Phase ",i]},i))})]})]})]}):s(Z,{children:[s("div",{className:"flex items-center gap-2 mb-2",children:[t("div",{className:`w-4 h-4 rounded-full ${e.color}`}),t("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),s("div",{className:"flex gap-1",children:[t(l,{size:"sm",variant:"ghost",onClick:()=>F(e),className:"p-1 h-8 w-8",children:t(K,{className:"h-3 w-3"})}),t(l,{size:"sm",variant:"ghost",onClick:()=>U(e.id.toString()),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:t(Q,{className:"h-3 w-3"})})]})]}),s("div",{className:"flex flex-wrap gap-2 mb-3",children:[s(c,{className:`text-xs ${X(e.confidence)}`,children:[e.confidence," confidence"]}),s(c,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),s(c,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[a.length," tasks"]}),s(c,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[u," pts"]})]}),e.description&&t("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),s(l,{onClick:()=>B(e.id.toString()),variant:"outline",size:"sm",className:"w-full gap-2",children:[t(G,{className:"h-4 w-4"}),"Add Task"]})]})}),t("div",{className:"flex-1 p-4 overflow-y-auto",children:t("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${m?"border-primary bg-primary/10":"border-border"}`,children:a.length===0?s("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[t(J,{className:"h-8 w-8 mb-2"}),t("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):a.map(i=>t(y,{task:i,epic:e,onDragStart:I,onTaskClick:H,isCompact:!0},i.id))})})]},e.id)})})})})]})};export{ge as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-N3B3XNV3.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-M7NV6EFH.mjs";import{a as l}from"./chunk-FMJBJ3HN.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./chunk-
|
|
1
|
+
import{f as t}from"./chunk-N3B3XNV3.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-N3B3XNV3.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-7GMAMIHM.mjs";import{b as y}from"./chunk-2RQDJ5XT.mjs";import{a as P}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-YO3GQYRJ.mjs";import{User as u,AlertCircle as p,Bug as g,Zap as f,BookOpen as b,Calendar as x}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";var w=({task:t,epic:v,onDragStart:i,onTaskClick:d,isCompact:m=!1})=>{let s=h=>{i(t)},n=()=>{d(t)},l=()=>{switch(t.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},o=()=>{switch(t.type){case"story":return e(b,{className:"h-3 w-3"});case"bug":return e(g,{className:"h-3 w-3"});case"spike":return e(f,{className:"h-3 w-3"});case"task":default:return e(p,{className:"h-3 w-3"})}},c=()=>{switch(t.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return m?e(a,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:s,onClick:n,children:r("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${c()}`,children:o()}),e("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:t.name})]})}):r(a,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:s,onClick:n,children:[r("div",{className:"flex items-center justify-between mb-3",children:[r("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${c()}`,children:[o(),e("span",{className:"capitalize",children:t.type})]}),r("div",{className:"flex gap-1",children:[e("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${l()}`,children:t.priority}),e("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:t.storyPoints})]})]}),e("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:t.name}),e("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:t.description}),r("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[r("div",{className:"flex items-center gap-1",children:[e(u,{className:"h-4 w-4"}),e("span",{children:t.assignee?.value?.name})]}),r("div",{className:"flex items-center gap-1",children:[e(x,{className:"h-4 w-4"}),e("span",{children:new Date(t.createdAt).toLocaleDateString()})]})]})]})};export{w as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-M7NV6EFH.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-FMJBJ3HN.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as u}from"./chunk-
|
|
1
|
+
import{f as u}from"./chunk-N3B3XNV3.mjs";import{a as m}from"./chunk-2QZUKVBA.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{jsx as r,jsxs as h}from"react/jsx-runtime";var B=g=>{let{columns:a,theme:i}=g,y={full:"12",half:"6",oneThird:"4",twoThirds:"8"},b={none:"",line:"border border-primary p-4 rounded-lg"},c=e=>{if(e.type&&e.type==="block"&&e.fields&&(e.fields.blockType==="imageBlock"||e.fields.blockType==="mediaBlock"))return!0;if(e.root&&e.root.children){for(let o of e.root.children)if(c(o))return!0}if(e.children){for(let o of e.children)if(c(o))return!0}return!1},k=(e,o,n)=>{if(o==="none"||n==="full")return{processedRichText:e,heading:null};let l=e,t=null;return e&&e.root&&e.root.children&&e.root.children[0].tag==="h2"&&(l={...e,root:{...e.root,children:e.root.children.slice(1)}},t=e.root.children[0]),{processedRichText:l,heading:t}};return r("div",{className:"my-6",children:r("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",i?.settings?.box?"gap-x-8":"gap-x-16"),children:a&&a.length>0&&a.map((e,o)=>{let{enableLink:n,link:l,richText:t,size:s}=e,{processedRichText:p,heading:f}=k(t,i?.settings?.box||"none",s||"full");return h("div",{className:d(`col-span-4 lg:col-span-${y[s]}`,{"md:col-span-2":s!=="full"},b[s!=="full"&&!c(t)&&i?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${o+1}00`),children:[f&&r("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),p&&r(u,{content:p,enableGutter:!1,className:"rich-text"}),n&&r(m,{...l})]},o)})})})};export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-N3B3XNV3.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as Z}from"./chunk-M2REXGQW.mjs";import{a as w}from"./chunk-ATBKMJU6.mjs";import{a as O}from"./chunk-K5MJYNCD.mjs";import{a as X}from"./chunk-FSCDCSVK.mjs";import{a as Y}from"./chunk-NDZ26EG6.mjs";import{a as Q}from"./chunk-Z22NSJMF.mjs";import{a as R}from"./chunk-FGEFYI5E.mjs";import{a as U,c as $,d as k,g as F,i as u}from"./chunk-YFAZQYK4.mjs";import{a as J}from"./chunk-L5JPAKPM.mjs";import{b as H}from"./chunk-ZUA4KNIR.mjs";import{a as g,b as h,c as x,e as c}from"./chunk-YO3GQYRJ.mjs";import{useEffect as me,useState as o}from"react";import{Plus as ge,Search as ce,Users as _,Bot as ue,User as pe,Filter as Ce}from"lucide-react";import{motion as fe,AnimatePresence as ve}from"motion/react";import{jsx as l,jsxs as t}from"react/jsx-runtime";function ye({initialColleagues:N,onColleagueAdd:S,onColleagueEdit:I,onColleagueDelete:ee,compactView:n=!1,departments:le=["Design","Engineering","Marketing","Product","Sales","Operations"],className:te,availableUsers:L=[],existingDigitalColleagues:P=[]}){let[p,s]=o(N||[]),[r,j]=o(""),[D,B]=o("all"),[b,K]=o("all"),[v,ae]=o("all"),[M,C]=o(null),[A,y]=o(null);me(()=>{s(N||[])},[N]);let he=Array.isArray(L)?L:[],ie=Array.isArray(P)?P:[],[d,a]=o("main"),f=p.filter(e=>!e||!e.name?!1:e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&e.email?.toLowerCase().includes(r.toLowerCase())||e.type==="digital"&&e.jobDescription?.toLowerCase().includes(r.toLowerCase())),G=f.filter(e=>e.type==="human"),W=f.filter(e=>e.type==="digital"),q=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(C(e),a("form")),console.log("Editing colleague:",e),I?.(e)},E=e=>{e.type==="digital"&&(y(e),a("view"))},xe=e=>{let i={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,updatedAt:e.updatedAt,createdAt:e.createdAt,accounts:e.accounts};s(m=>[...m,i]),S?.(i),a("main")},oe=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}s(i=>[...i,{...e,type:"digital"}]),S?.({...e,type:"digital"}),a("main")},ne=()=>{C(null),a("form")},z=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}M?(s(i=>i.map(m=>m.id===e.id?{...e,type:"digital"}:m)),I?.({...e,type:"digital"})):(s(i=>[...i,{...e,type:"digital"}]),S?.({...e,type:"digital"})),a("main"),C(null)},se=()=>{a("main"),C(null),y(null)},re=()=>{a("main"),y(null)},we=()=>{A&&(C(A),y(null),a("form"))},V=e=>{ee?.(e,p.find(i=>i.id===e).type),s(i=>i.filter(m=>m.id!==e))},de=()=>{j(""),B("all"),K("all")};return d==="typeSelection"?l(X,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):d==="userSelection"?l("h1",{children:"User selection"}):d==="digitalOptions"?l(Z,{onCloneExisting:()=>a("digitalClone"),onCreateNew:ne,onCancel:()=>a("typeSelection")}):d==="digitalClone"?l(Y,{digitalColleagues:ie,onColleagueClone:oe,onCancel:()=>a("digitalOptions")}):d==="form"?l(O,{colleague:M||void 0,onSave:z,onCancel:se}):d==="view"?l(O,{colleague:A||void 0,onSave:z,onCancel:re,readOnly:!0}):l("div",{className:"px-2 md:px-4 py-4 space-y-8",children:l(ve,{mode:"wait",children:l(fe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${te||""}`,children:[l(Q,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:q}}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t(g,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(x,{className:"text-sm font-medium",children:"Total Colleagues"}),l(_,{className:"h-4 w-4 text-muted-foreground"})]}),t(c,{children:[l("div",{className:"text-2xl font-bold",children:p.length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),t(g,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(x,{className:"text-sm font-medium",children:"Human Members"}),l(pe,{className:"h-4 w-4 text-muted-foreground"})]}),t(c,{children:[l("div",{className:"text-2xl font-bold",children:p.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),t(g,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(x,{className:"text-sm font-medium",children:"Digital Colleagues"}),l(ue,{className:"h-4 w-4 text-muted-foreground"})]}),t(c,{children:[l("div",{className:"text-2xl font-bold",children:p.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),l(g,{children:l(c,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[l("div",{className:"flex-1",children:t("div",{className:"relative",children:[l(ce,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l(J,{placeholder:"Search colleagues...",value:r,onChange:e=>j(e.target.value),className:"pl-9"})]})}),t(U,{value:D,onValueChange:B,children:[l(k,{className:"w-full md:w-[180px]",children:l($,{placeholder:"Department"})}),t(F,{children:[l(u,{value:"all",children:"All Departments"}),le.map(e=>l(u,{value:e,children:e},e))]})]}),t(U,{value:b,onValueChange:K,children:[l(k,{className:"w-full md:w-[140px]",children:l($,{placeholder:"Status"})}),t(F,{children:[l(u,{value:"all",children:"All Status"}),l(u,{value:"active",children:"Active"}),l(u,{value:"inactive",children:"Inactive"})]})]}),(r||D!=="all"||b!=="all")&&t(H,{variant:"outline",onClick:de,className:"gap-2",children:[l(Ce,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[l(R,{activeTab:v,onTabChange:ae,tabOptions:[{value:"all",label:`All (${f.length})`},{value:"human",label:`Human (${G.length})`},{value:"digital",label:`Digital (${W.length})`}],maxWidth:"400px",gridCols:3}),v==="all"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:f.map(e=>l(w,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},`${e}-${e.id}`))}),v==="human"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:G.map(e=>l(w,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))}),v==="digital"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:W.map(e=>l(w,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))})]}),f.length===0&&l(g,{children:l(c,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[l(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),l("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),l("p",{className:"text-muted-foreground mb-4",children:r||D!=="all"||b!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),t(H,{onClick:q,className:"gap-2",children:[l(ge,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{ye as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-M7NV6EFH.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as o}from"./chunk-SRUG246N.mjs";import p from"next/image";import{FaEnvelope as c,FaPhoneFlip as d}from"react-icons/fa6";import{jsx as e,jsxs as t}from"react/jsx-runtime";function f(s){let{sectionHeading:i,image:a}=s;return e("div",{className:"relative w-full light py-[60px]",children:t("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[e("div",{className:"relative h-full w-full",children:e(p,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:r})}),e("div",{className:"w-full h-full",children:t("div",{className:"bg-white p-10",children:[e("div",{className:"mb-30px",children:e(l,{...i,invert:!0})}),e(o,{})]})})]})})}function y(s){return e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,a)=>t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 text-primary",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[i.location.split(",")?.map((m,n)=>e("p",{children:m},n))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(c,{className:"pr-2 text-primary size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(d,{className:"pr-2 text-primary size-auto"}),i.phoneNumbers[0]]})]})]},a))})]})})})})}export{f as a,y as b};
|