cortex-react-components 1.65.3 → 1.65.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.
Files changed (166) hide show
  1. package/dist/{chunk-737CTHXW.mjs → chunk-26JAUUHC.mjs} +1 -1
  2. package/dist/{chunk-BZBPA7IN.mjs → chunk-2MTAQ2YX.mjs} +1 -1
  3. package/dist/{chunk-6BDDYPGK.mjs → chunk-35SLQX5Z.mjs} +1 -1
  4. package/dist/{chunk-EDB4YGKM.mjs → chunk-3FZPSPIZ.mjs} +1 -1
  5. package/dist/{chunk-RVA4WIRX.mjs → chunk-4AT3EYCF.mjs} +1 -1
  6. package/dist/{chunk-R4QBZLWY.mjs → chunk-BFESGJZ4.mjs} +1 -1
  7. package/dist/{chunk-QUOLG5NC.mjs → chunk-BGQKHEB3.mjs} +1 -1
  8. package/dist/{chunk-XLURG5E2.mjs → chunk-CSFID44M.mjs} +1 -1
  9. package/dist/{chunk-LBOJXQGC.mjs → chunk-D6TOSZKM.mjs} +1 -1
  10. package/dist/{chunk-DV2PY5FI.mjs → chunk-DNOTHVMH.mjs} +1 -1
  11. package/dist/{chunk-FM2YMSMY.mjs → chunk-E6JYZMWA.mjs} +1 -1
  12. package/dist/{chunk-L45A6K4C.mjs → chunk-E7W2GFKO.mjs} +1 -1
  13. package/dist/{chunk-OINI2PT2.mjs → chunk-FE7YQRL2.mjs} +1 -1
  14. package/dist/{chunk-BP62X7AM.mjs → chunk-FSQNNG2C.mjs} +1 -1
  15. package/dist/{chunk-UVPODMUO.mjs → chunk-FYEE5UWZ.mjs} +1 -1
  16. package/dist/{chunk-NZKW64NF.mjs → chunk-GWBCK4SV.mjs} +1 -1
  17. package/dist/{chunk-VXGRJCCM.mjs → chunk-IC57R2EU.mjs} +1 -1
  18. package/dist/{chunk-W3ONOYB6.mjs → chunk-JPWY5ADC.mjs} +1 -1
  19. package/dist/{chunk-3RPTKOCL.mjs → chunk-JRFNBHPL.mjs} +1 -1
  20. package/dist/{chunk-MYDBD7LR.mjs → chunk-JXW2QARY.mjs} +1 -1
  21. package/dist/{chunk-MJUFOUCH.mjs → chunk-K347D5ZJ.mjs} +1 -1
  22. package/dist/{chunk-V3H2VIQR.mjs → chunk-KD7K2ENG.mjs} +1 -1
  23. package/dist/{chunk-VEVYFZEV.mjs → chunk-KFQ3L3TO.mjs} +1 -1
  24. package/dist/{chunk-7O2TMDTD.mjs → chunk-KWTCUGN5.mjs} +1 -1
  25. package/dist/{chunk-ND4NY6SK.mjs → chunk-LSVWCONK.mjs} +1 -1
  26. package/dist/{chunk-ANTK5LAD.mjs → chunk-N363IQBL.mjs} +1 -1
  27. package/dist/{chunk-MCE2INP2.mjs → chunk-N4NSSICX.mjs} +1 -1
  28. package/dist/{chunk-6JAIW45L.mjs → chunk-NLA3SBVN.mjs} +1 -1
  29. package/dist/{chunk-ZJZ5HYAW.mjs → chunk-OU3PM75Z.mjs} +1 -1
  30. package/dist/{chunk-37NBXA5G.mjs → chunk-PADGOK5C.mjs} +1 -1
  31. package/dist/{chunk-DAJNZDN6.mjs → chunk-PBRC3UOA.mjs} +1 -1
  32. package/dist/{chunk-CYVVXQ2A.mjs → chunk-PKDUSZWL.mjs} +1 -1
  33. package/dist/{chunk-22KXWTT3.mjs → chunk-PYAM4YXE.mjs} +1 -1
  34. package/dist/{chunk-5J244QX4.mjs → chunk-RGWP2OVM.mjs} +1 -1
  35. package/dist/{chunk-MO44Z74W.mjs → chunk-S7FH27PL.mjs} +1 -1
  36. package/dist/{chunk-KETV2XVN.mjs → chunk-SX5U74MW.mjs} +1 -1
  37. package/dist/{chunk-BA6HNFXB.mjs → chunk-TFP6VQ32.mjs} +1 -1
  38. package/dist/{chunk-4EQF35LM.mjs → chunk-TT4SPGZU.mjs} +1 -1
  39. package/dist/{chunk-HB4BHTNM.mjs → chunk-V5EOKY7D.mjs} +1 -1
  40. package/dist/{chunk-MRJQKF4Z.mjs → chunk-VNGK6ACI.mjs} +1 -1
  41. package/dist/chunk-WXZ3IRTS.mjs +1 -0
  42. package/dist/{chunk-666KIWPS.mjs → chunk-YRJA3PJ5.mjs} +1 -1
  43. package/dist/{chunk-PKSY2IBO.mjs → chunk-YWVLHQ3L.mjs} +1 -1
  44. package/dist/{chunk-HBE5POUB.mjs → chunk-ZKBLFPGO.mjs} +1 -1
  45. package/dist/{chunk-Z6NED523.mjs → chunk-ZY2PDUUB.mjs} +1 -1
  46. package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
  47. package/dist/components/Blocks/Banner.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.mjs +1 -1
  49. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  50. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  51. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  52. package/dist/components/Blocks/Content.mjs +1 -1
  53. package/dist/components/Blocks/Content.stories.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  55. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  56. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  57. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  58. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  59. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  60. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  61. package/dist/components/Blocks/index.mjs +1 -1
  62. package/dist/components/CRM/CogeBoard.js +1 -1
  63. package/dist/components/CRM/CogeBoard.mjs +1 -1
  64. package/dist/components/CRM/CogeBoard.stories.js +1 -1
  65. package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
  66. package/dist/components/CRM/DealCard.js +1 -1
  67. package/dist/components/CRM/DealCard.mjs +1 -1
  68. package/dist/components/CRM/DealCard.stories.js +1 -1
  69. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  70. package/dist/components/CRM/KanbanBoard.js +1 -1
  71. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  72. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  73. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  74. package/dist/components/CRM/KanbanColumn.js +1 -1
  75. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  76. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  77. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  78. package/dist/components/CRM/index.js +1 -1
  79. package/dist/components/CRM/index.mjs +1 -1
  80. package/dist/components/Cards/ContentCard.mjs +1 -1
  81. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  82. package/dist/components/Cards/FeatureCard.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  84. package/dist/components/Cards/index.mjs +1 -1
  85. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  86. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  87. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  88. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  89. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  90. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  91. package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
  92. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  93. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  94. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  95. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  96. package/dist/components/Heros/PostHero/index.mjs +1 -1
  97. package/dist/components/Heros/RenderHero.mjs +1 -1
  98. package/dist/components/Heros/index.mjs +1 -1
  99. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  100. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  101. package/dist/components/Layouts/Print.mjs +1 -1
  102. package/dist/components/Layouts/Print.stories.mjs +1 -1
  103. package/dist/components/Layouts/SlideShow.mjs +1 -1
  104. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  105. package/dist/components/Layouts/index.mjs +1 -1
  106. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  107. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  108. package/dist/components/Menus/SidebarRight.mjs +1 -1
  109. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  110. package/dist/components/Menus/index.mjs +1 -1
  111. package/dist/components/Payload/Card/index.mjs +1 -1
  112. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  113. package/dist/components/Payload/Media/index.mjs +1 -1
  114. package/dist/components/Payload/RichText/index.mjs +1 -1
  115. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  116. package/dist/components/Payload/RichText.stories.mjs +1 -1
  117. package/dist/components/Payload/index.mjs +1 -1
  118. package/dist/components/index.js +1 -1
  119. package/dist/components/index.mjs +1 -1
  120. package/dist/components/ui/index.mjs +1 -1
  121. package/dist/components/ui/sidebar.mjs +1 -1
  122. package/dist/globals.css +1 -1
  123. package/dist/hooks/index.mjs +1 -1
  124. package/dist/index.js +1 -1
  125. package/dist/index.mjs +1 -1
  126. package/dist/metafile-cjs.json +1 -1
  127. package/dist/metafile-esm.json +1 -1
  128. package/dist/pages/Blog.mjs +1 -1
  129. package/dist/pages/Blog.stories.mjs +1 -1
  130. package/dist/pages/Documentation.mjs +1 -1
  131. package/dist/pages/Documentation.stories.mjs +1 -1
  132. package/dist/pages/IndexPage.mjs +1 -1
  133. package/dist/pages/IndexPage.stories.mjs +1 -1
  134. package/dist/pages/LandingPage.mjs +1 -1
  135. package/dist/pages/LandingPage.stories.mjs +1 -1
  136. package/dist/pages/Page.mjs +1 -1
  137. package/dist/pages/Page.stories.mjs +1 -1
  138. package/dist/pages/Printable.stories.mjs +1 -1
  139. package/dist/pages/Publish.mjs +1 -1
  140. package/dist/pages/Publish.stories.mjs +1 -1
  141. package/dist/pages/Website.mjs +1 -1
  142. package/dist/pages/Website.stories.mjs +1 -1
  143. package/dist/sections/AboutSection.mjs +1 -1
  144. package/dist/sections/AboutSection.stories.mjs +1 -1
  145. package/dist/sections/BlogDetail.mjs +1 -1
  146. package/dist/sections/BlogDetail.stories.mjs +1 -1
  147. package/dist/sections/BlogList.mjs +1 -1
  148. package/dist/sections/BlogList.stories.mjs +1 -1
  149. package/dist/sections/BlogListSection.mjs +1 -1
  150. package/dist/sections/BlogListSection.stories.mjs +1 -1
  151. package/dist/sections/ContactSection.mjs +1 -1
  152. package/dist/sections/ContactSection.stories.mjs +1 -1
  153. package/dist/sections/ImageSection.stories.mjs +1 -1
  154. package/dist/sections/PageSections.mjs +1 -1
  155. package/dist/sections/PageSections.stories.mjs +1 -1
  156. package/dist/sections/PricingSection.mjs +1 -1
  157. package/dist/sections/PricingSection.stories.mjs +1 -1
  158. package/dist/sections/ServiceDetail.mjs +1 -1
  159. package/dist/sections/ServiceDetailSection.mjs +1 -1
  160. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  161. package/dist/sections/ServiceSection.mjs +1 -1
  162. package/dist/sections/ServiceSection.stories.mjs +1 -1
  163. package/dist/sections/form/index.mjs +1 -1
  164. package/dist/sections/index.mjs +1 -1
  165. package/package.json +1 -1
  166. package/dist/chunk-FFESN4FM.mjs +0 -1
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-QUOLG5NC.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-ANTK5LAD.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-SUO6GOJS.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
4
+ import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-BGQKHEB3.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-N363IQBL.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as F}from"./chunk-HB4BHTNM.mjs";import{a as T}from"./chunk-HBE5POUB.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
4
+ import{a as F}from"./chunk-V5EOKY7D.mjs";import{a as T}from"./chunk-ZKBLFPGO.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
@@ -1,2 +1,2 @@
1
- import{f as o}from"./chunk-6JAIW45L.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
1
+ import{f as o}from"./chunk-NLA3SBVN.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{f as u}from"./chunk-6JAIW45L.mjs";import{a as m}from"./chunk-C4DU747D.mjs";import{a as d}from"./chunk-HTVHCBXQ.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
+ import{f as u}from"./chunk-NLA3SBVN.mjs";import{a as m}from"./chunk-C4DU747D.mjs";import{a as d}from"./chunk-HTVHCBXQ.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{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-6JAIW45L.mjs";import{b as f}from"./chunk-BPSLUO5I.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-4YFMDLHL.mjs";import{a as b}from"./chunk-KTXQBXXJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
1
+ import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-NLA3SBVN.mjs";import{b as f}from"./chunk-BPSLUO5I.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-4YFMDLHL.mjs";import{a as b}from"./chunk-KTXQBXXJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{f as l}from"./chunk-6JAIW45L.mjs";import{a as r}from"./chunk-C4DU747D.mjs";import{a as s}from"./chunk-KETV2XVN.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};
4
+ import{f as l}from"./chunk-NLA3SBVN.mjs";import{a as r}from"./chunk-C4DU747D.mjs";import{a as s}from"./chunk-SX5U74MW.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 p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-SUO6GOJS.mjs";import{a as f}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
4
+ import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-ZYYWN6XG.mjs";import{a as f}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-R4QBZLWY.mjs";import{a as u}from"./chunk-PKSY2IBO.mjs";import{a as p}from"./chunk-22KXWTT3.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-WKFNZUIR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
4
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-BFESGJZ4.mjs";import{a as u}from"./chunk-YWVLHQ3L.mjs";import{a as p}from"./chunk-PYAM4YXE.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-WKFNZUIR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
@@ -1 +1 @@
1
- import{a as l}from"./chunk-NZKW64NF.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as o}from"./chunk-4EQF35LM.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};
1
+ import{a as l}from"./chunk-GWBCK4SV.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as o}from"./chunk-TT4SPGZU.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};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as y}from"./chunk-ND4NY6SK.mjs";import{a as S}from"./chunk-MJUFOUCH.mjs";import{a as b,b as k}from"./chunk-LBOJXQGC.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-LHL2AONM.mjs";import{a as u}from"./chunk-R4QBZLWY.mjs";import{a as v}from"./chunk-PKSY2IBO.mjs";import{a as f}from"./chunk-22KXWTT3.mjs";import{c as m,f as p}from"./chunk-6JAIW45L.mjs";import{a as d}from"./chunk-KETV2XVN.mjs";import{a as s}from"./chunk-INOUDNCK.mjs";import{a as x}from"./chunk-BONRVXMX.mjs";import{a as N}from"./chunk-WKFNZUIR.mjs";import{a as h}from"./chunk-KTXQBXXJ.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
4
+ import{a as y}from"./chunk-LSVWCONK.mjs";import{a as b,b as k}from"./chunk-D6TOSZKM.mjs";import{a as S}from"./chunk-K347D5ZJ.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-LHL2AONM.mjs";import{a as u}from"./chunk-BFESGJZ4.mjs";import{a as v}from"./chunk-YWVLHQ3L.mjs";import{a as f}from"./chunk-PYAM4YXE.mjs";import{c as m,f as p}from"./chunk-NLA3SBVN.mjs";import{a as d}from"./chunk-SX5U74MW.mjs";import{a as s}from"./chunk-INOUDNCK.mjs";import{a as x}from"./chunk-BONRVXMX.mjs";import{a as N}from"./chunk-WKFNZUIR.mjs";import{a as h}from"./chunk-KTXQBXXJ.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
@@ -1 +1 @@
1
- import{f as c}from"./chunk-6JAIW45L.mjs";import{a as t}from"./chunk-HTVHCBXQ.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
+ import{f as c}from"./chunk-NLA3SBVN.mjs";import{a as t}from"./chunk-HTVHCBXQ.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 I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-SUO6GOJS.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
1
+ import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-ZYYWN6XG.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-ZJZ5HYAW.mjs";import{d as r}from"./chunk-MYDBD7LR.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a}from"./chunk-WKFNZUIR.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
1
+ import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-OU3PM75Z.mjs";import{d as r}from"./chunk-JXW2QARY.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a}from"./chunk-WKFNZUIR.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-W3ONOYB6.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,n]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,u=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];u&&(u.status=d,l(u))},[l]);return r(P,{onDragEnd:b,children:M("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:n,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>n(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
4
+ import{a as i}from"./chunk-JPWY5ADC.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,n]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,u=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];u&&(u.status=d,l(u))},[l]);return r(P,{onDragEnd:b,children:M("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:n,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>n(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-Z6NED523.mjs";import{a as p}from"./chunk-HTVHCBXQ.mjs";import{jsx as o}from"react/jsx-runtime";var c=t=>{let{posts:a}=t;return o("div",{className:p("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:a?.map((s,i)=>typeof s=="object"&&s!==null?o("div",{className:"col-span-4",children:o(r,{className:"h-full",doc:s,relationTo:"posts",showCategories:!0})},i):null)})})})};export{c as a};
1
+ import{a as r}from"./chunk-ZY2PDUUB.mjs";import{a as p}from"./chunk-HTVHCBXQ.mjs";import{jsx as o}from"react/jsx-runtime";var c=t=>{let{posts:a}=t;return o("div",{className:p("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:a?.map((s,i)=>typeof s=="object"&&s!==null?o("div",{className:"col-span-4",children:o(r,{className:"h-full",doc:s,relationTo:"posts",showCategories:!0})},i):null)})})})};export{c as a};
@@ -1 +1 @@
1
- import{f as r}from"./chunk-6JAIW45L.mjs";import{a as n}from"./chunk-HTVHCBXQ.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
+ import{f as r}from"./chunk-NLA3SBVN.mjs";import{a as n}from"./chunk-HTVHCBXQ.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 +1 @@
1
- import{a}from"./chunk-KETV2XVN.mjs";import{a as e}from"./chunk-HTVHCBXQ.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
1
+ import{a}from"./chunk-SX5U74MW.mjs";import{a as e}from"./chunk-HTVHCBXQ.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-FFESN4FM.mjs";import{Droppable as u,Draggable as d}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as t,jsxs as e}from"react/jsx-runtime";function S({status:o,deals:r,users:b,customers:f,categories:i,onDealClick:n,calculateColumnValue:p,calculateWeightedValue:c,compact:g=!1}){return e("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:[" ",o.charAt(0).toUpperCase()+o.slice(1)]}),t(u,{droppableId:o,isDropDisabled:!1,children:l=>e("div",{ref:l.innerRef,...l.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[r.map((a,D)=>t(d,{draggableId:a.id.toString(),index:a.id,children:s=>t("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:t(m,{deal:a,customer:a.customer,categories:i,onClick:()=>n(a),compact:g})})},a.id.toString())),l.placeholder]})}),e("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[e("p",{className:"font-semibold",children:["Total:"," ",e("span",{className:"text-green-600",children:["\xA3",p(r).toLocaleString()]})]}),e("p",{className:"font-semibold",children:["Weighted:"," ",e("span",{className:"text-blue-600",children:["\xA3",c(r,o).toLocaleString()]})]})]})]})}export{S as a};
1
+ import{a as m}from"./chunk-WXZ3IRTS.mjs";import{Droppable as u,Draggable as d}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as t,jsxs as e}from"react/jsx-runtime";function S({status:o,deals:r,users:b,customers:f,categories:i,onDealClick:n,calculateColumnValue:p,calculateWeightedValue:c,compact:g=!1}){return e("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:[" ",o.charAt(0).toUpperCase()+o.slice(1)]}),t(u,{droppableId:o,isDropDisabled:!1,children:l=>e("div",{ref:l.innerRef,...l.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[r.map((a,D)=>t(d,{draggableId:a.id.toString(),index:a.id,children:s=>t("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:t(m,{deal:a,customer:a.customer,categories:i,onClick:()=>n(a),compact:g})})},a.id.toString())),l.placeholder]})}),e("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[e("p",{className:"font-semibold",children:["Total:"," ",e("span",{className:"text-green-600",children:["\xA3",p(r).toLocaleString()]})]}),e("p",{className:"font-semibold",children:["Weighted:"," ",e("span",{className:"text-blue-600",children:["\xA3",c(r,o).toLocaleString()]})]})]})]})}export{S as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{f as t}from"./chunk-6JAIW45L.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import n from"react";import*as l from"@radix-ui/react-collapsible";import{ChevronDownIcon as c,ChevronUpIcon as m}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var h=({title:p,richText:r})=>{let[o,i]=n.useState(!1);return e("div",{className:"border rounded-lg overflow-hidden",children:s(l.Root,{className:a("w-full"),open:o,onOpenChange:i,children:[s(l.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[e("h2",{className:"text-lg font-medium",children:p}),o?e(m,{className:"h-6 w-6"}):e(c,{className:"h-6 w-6"})]}),e(l.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:e("div",{className:"px-4 py-3 bg-white",children:e(t,{content:r||{},enableGutter:!1})})})]})})};export{h as a};
4
+ import{f as t}from"./chunk-NLA3SBVN.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import n from"react";import*as l from"@radix-ui/react-collapsible";import{ChevronDownIcon as c,ChevronUpIcon as m}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var h=({title:p,richText:r})=>{let[o,i]=n.useState(!1);return e("div",{className:"border rounded-lg overflow-hidden",children:s(l.Root,{className:a("w-full"),open:o,onOpenChange:i,children:[s(l.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[e("h2",{className:"text-lg font-medium",children:p}),o?e(m,{className:"h-6 w-6"}):e(c,{className:"h-6 w-6"})]}),e(l.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:e("div",{className:"px-4 py-3 bg-white",children:e(t,{content:r||{},enableGutter:!1})})})]})})};export{h as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-3RPTKOCL.mjs";import{a as v}from"./chunk-EDB4YGKM.mjs";import{c as b,d as h}from"./chunk-6JAIW45L.mjs";import{a as k}from"./chunk-VXGRJCCM.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
1
+ import{a as p}from"./chunk-JRFNBHPL.mjs";import{a as v}from"./chunk-3FZPSPIZ.mjs";import{c as b,d as h}from"./chunk-NLA3SBVN.mjs";import{a as k}from"./chunk-IC57R2EU.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
@@ -1,4 +1,4 @@
1
- import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-NZKW64NF.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-KTXQBXXJ.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-HTVHCBXQ.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:`
1
+ import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-GWBCK4SV.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-KTXQBXXJ.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-HTVHCBXQ.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-FM2YMSMY.mjs";import{a}from"./chunk-ND4NY6SK.mjs";import{a as d}from"./chunk-MJUFOUCH.mjs";import{a as n}from"./chunk-LBOJXQGC.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
4
+ import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-E6JYZMWA.mjs";import{a}from"./chunk-LSVWCONK.mjs";import{a as n}from"./chunk-D6TOSZKM.mjs";import{a as d}from"./chunk-K347D5ZJ.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-NZKW64NF.mjs";import{a as l}from"./chunk-KTXQBXXJ.mjs";import{a as m}from"./chunk-HTVHCBXQ.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
+ import{a as c}from"./chunk-GWBCK4SV.mjs";import{a as l}from"./chunk-KTXQBXXJ.mjs";import{a as m}from"./chunk-HTVHCBXQ.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-Z6NED523.mjs";import{f as s}from"./chunk-6JAIW45L.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
1
+ import{a as r}from"./chunk-ZY2PDUUB.mjs";import{f as s}from"./chunk-NLA3SBVN.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-6JAIW45L.mjs";import{a as o}from"./chunk-HTVHCBXQ.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
+ import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-NLA3SBVN.mjs";import{a as o}from"./chunk-HTVHCBXQ.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
4
+ import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-W3ONOYB6.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},f=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(D=>D.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:f,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
4
+ import{a as i}from"./chunk-JPWY5ADC.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},f=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(D=>D.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:f,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};