cortex-react-components 1.51.6 → 1.51.7

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 (148) hide show
  1. package/dist/{chunk-KIICLHKI.mjs → chunk-23BDC5JG.mjs} +1 -1
  2. package/dist/{chunk-XYRN4ZV2.mjs → chunk-2CYLZPSC.mjs} +1 -1
  3. package/dist/{chunk-52MRKKN7.mjs → chunk-2DP4IQGY.mjs} +1 -1
  4. package/dist/{chunk-KB6PO4K4.mjs → chunk-2IKC7MAP.mjs} +1 -1
  5. package/dist/{chunk-NAONLHIH.mjs → chunk-4PIJGROA.mjs} +1 -1
  6. package/dist/{chunk-4YJ3HV64.mjs → chunk-6DHYRATS.mjs} +1 -1
  7. package/dist/{chunk-664WGLB4.mjs → chunk-7X6YCMFM.mjs} +1 -1
  8. package/dist/{chunk-YRJ7YWPV.mjs → chunk-B6XQQEVP.mjs} +1 -1
  9. package/dist/{chunk-U3TLYVTV.mjs → chunk-D6XCEVAV.mjs} +1 -1
  10. package/dist/{chunk-HPMMYTRI.mjs → chunk-FZA6JAZJ.mjs} +1 -1
  11. package/dist/{chunk-SEG6IDDX.mjs → chunk-G5HD4IFA.mjs} +1 -1
  12. package/dist/{chunk-F4V6VUT7.mjs → chunk-HED3JMOM.mjs} +1 -1
  13. package/dist/{chunk-ZIWHUQ4D.mjs → chunk-HER7J6HM.mjs} +1 -1
  14. package/dist/{chunk-WMMLX5GC.mjs → chunk-HS66GGJO.mjs} +1 -1
  15. package/dist/{chunk-HJX2VPMY.mjs → chunk-IJXVKGMO.mjs} +1 -1
  16. package/dist/{chunk-G4YWSH4Q.mjs → chunk-IK6UDXVX.mjs} +1 -1
  17. package/dist/{chunk-SBAFXZVU.mjs → chunk-IO222G5L.mjs} +1 -1
  18. package/dist/{chunk-MY3PX5GI.mjs → chunk-IQ7LAP7P.mjs} +1 -1
  19. package/dist/{chunk-FCCL6W7R.mjs → chunk-JPFBD2KD.mjs} +1 -1
  20. package/dist/{chunk-Z2DEMZLU.mjs → chunk-KQCAHQ73.mjs} +1 -1
  21. package/dist/{chunk-FBEB6K6X.mjs → chunk-L7T2H3E6.mjs} +1 -1
  22. package/dist/{chunk-2FDK3K3W.mjs → chunk-N6PIPF2S.mjs} +1 -1
  23. package/dist/{chunk-OFQF5AEG.mjs → chunk-NETY6BCN.mjs} +1 -1
  24. package/dist/chunk-PJG4KQPA.mjs +4 -0
  25. package/dist/{chunk-L7YJN6PG.mjs → chunk-PPLTBR2F.mjs} +1 -1
  26. package/dist/{chunk-ABCL62TB.mjs → chunk-PZ5HTDDZ.mjs} +1 -1
  27. package/dist/{chunk-7XMGPUGL.mjs → chunk-QCBYOH2U.mjs} +1 -1
  28. package/dist/{chunk-PY53YVFX.mjs → chunk-QMFZRG7O.mjs} +1 -1
  29. package/dist/{chunk-2A6JF3LE.mjs → chunk-RJGKFNZL.mjs} +1 -1
  30. package/dist/{chunk-MNLXTN7B.mjs → chunk-S4WN4VC5.mjs} +1 -1
  31. package/dist/{chunk-6MY4ZWHR.mjs → chunk-SCXSEUXJ.mjs} +1 -1
  32. package/dist/{chunk-TVSMN2BG.mjs → chunk-UBQ3R4OQ.mjs} +1 -1
  33. package/dist/{chunk-KRRS75EK.mjs → chunk-UV7LYBJZ.mjs} +1 -1
  34. package/dist/{chunk-NMHAXISV.mjs → chunk-VZWV4G25.mjs} +1 -1
  35. package/dist/{chunk-3AA3AMNV.mjs → chunk-X3E7MVRQ.mjs} +1 -1
  36. package/dist/{chunk-6NMCAPQL.mjs → chunk-XJCFHE25.mjs} +1 -1
  37. package/dist/{chunk-MGS3DQ22.mjs → chunk-XXTN5HMN.mjs} +1 -1
  38. package/dist/{chunk-23L5ZJ2U.mjs → chunk-Z4CK655R.mjs} +1 -1
  39. package/dist/{chunk-R2WQNVEX.mjs → chunk-ZKTDA3UN.mjs} +1 -1
  40. package/dist/components/Blocks/Banner.mjs +1 -1
  41. package/dist/components/Blocks/CallToAction.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  43. package/dist/components/Blocks/Content.mjs +1 -1
  44. package/dist/components/Blocks/Content.stories.mjs +1 -1
  45. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  46. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  47. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  48. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  49. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  50. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  51. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  52. package/dist/components/Blocks/index.mjs +1 -1
  53. package/dist/components/CRM/DealDetails.mjs +1 -1
  54. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  55. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  56. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  57. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  58. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  59. package/dist/components/CRM/NewDealForm.mjs +1 -1
  60. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  61. package/dist/components/CRM/index.mjs +1 -1
  62. package/dist/components/Cards/ContentCard.mjs +1 -1
  63. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  64. package/dist/components/Cards/index.mjs +1 -1
  65. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  66. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  67. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  68. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  69. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  70. package/dist/components/HeaderFooter/Header.mjs +1 -1
  71. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  72. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  73. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  74. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  75. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  76. package/dist/components/HeaderFooter/index.mjs +1 -1
  77. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  78. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  79. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  80. package/dist/components/Heros/PostHero/index.mjs +1 -1
  81. package/dist/components/Heros/RenderHero.mjs +1 -1
  82. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  83. package/dist/components/Heros/index.mjs +1 -1
  84. package/dist/components/Layouts/BlogList.mjs +1 -1
  85. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  86. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  87. package/dist/components/Layouts/Print.mjs +1 -1
  88. package/dist/components/Layouts/Print.stories.mjs +1 -1
  89. package/dist/components/Layouts/SlideShow.mjs +1 -1
  90. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  91. package/dist/components/Layouts/index.mjs +1 -1
  92. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  93. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  94. package/dist/components/Menus/SidebarRight.mjs +1 -1
  95. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  96. package/dist/components/Menus/index.mjs +1 -1
  97. package/dist/components/Other/index.mjs +1 -1
  98. package/dist/components/Payload/Card/index.mjs +1 -1
  99. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  100. package/dist/components/Payload/Media/index.mjs +1 -1
  101. package/dist/components/Payload/RichText/index.mjs +1 -1
  102. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  103. package/dist/components/Payload/RichText.stories.mjs +1 -1
  104. package/dist/components/Payload/index.mjs +1 -1
  105. package/dist/components/index.mjs +1 -1
  106. package/dist/components/ui/index.mjs +1 -1
  107. package/dist/components/ui/sidebar.mjs +1 -1
  108. package/dist/index.js +1 -1
  109. package/dist/index.mjs +1 -1
  110. package/dist/metafile-cjs.json +1 -1
  111. package/dist/metafile-esm.json +1 -1
  112. package/dist/pages/Blog.mjs +1 -1
  113. package/dist/pages/Blog.stories.mjs +1 -1
  114. package/dist/pages/Documentation.mjs +1 -1
  115. package/dist/pages/Documentation.stories.mjs +1 -1
  116. package/dist/pages/IndexPage.mjs +1 -1
  117. package/dist/pages/IndexPage.stories.mjs +1 -1
  118. package/dist/pages/Intranet.mjs +1 -1
  119. package/dist/pages/Intranet.stories.mjs +1 -1
  120. package/dist/pages/LandingPage.mjs +1 -1
  121. package/dist/pages/LandingPage.stories.mjs +1 -1
  122. package/dist/pages/Page.mjs +1 -1
  123. package/dist/pages/Page.stories.mjs +1 -1
  124. package/dist/pages/Printable.stories.js +1 -1
  125. package/dist/pages/Printable.stories.mjs +1 -1
  126. package/dist/pages/Publish.d.ts +2 -0
  127. package/dist/pages/Publish.js +1 -1
  128. package/dist/pages/Publish.mjs +1 -1
  129. package/dist/pages/Publish.stories.js +1 -1
  130. package/dist/pages/Publish.stories.mjs +1 -1
  131. package/dist/pages/Website.mjs +1 -1
  132. package/dist/pages/Website.stories.mjs +1 -1
  133. package/dist/sections/AboutSection.mjs +1 -1
  134. package/dist/sections/AboutSection.stories.mjs +1 -1
  135. package/dist/sections/BlogDetail.mjs +1 -1
  136. package/dist/sections/BlogDetail.stories.mjs +1 -1
  137. package/dist/sections/BlogListSection.mjs +1 -1
  138. package/dist/sections/BlogListSection.stories.mjs +1 -1
  139. package/dist/sections/ContactSection.mjs +1 -1
  140. package/dist/sections/ContactSection.stories.mjs +1 -1
  141. package/dist/sections/ImageSection.stories.mjs +1 -1
  142. package/dist/sections/PricingSection.mjs +1 -1
  143. package/dist/sections/PricingSection.stories.mjs +1 -1
  144. package/dist/sections/ServiceSection.mjs +1 -1
  145. package/dist/sections/ServiceSection.stories.mjs +1 -1
  146. package/dist/sections/index.mjs +1 -1
  147. package/package.json +1 -1
  148. package/dist/chunk-LFX7M5VY.mjs +0 -4
package/dist/index.js CHANGED
@@ -24,4 +24,4 @@
24
24
  (min-width:1024px) 33vw,
25
25
  100vw
26
26
  `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,wt.jsxs)("div",{className:"relative wt-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,wt.jsx)("div",{children:(0,wt.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,wt.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,wt.jsx)("span",{className:"block",children:ms(r)})})})}),(0,wt.jsxs)("div",{className:"wt-auto space-y-2 text-white md:space-y-5",children:[(0,wt.jsx)("div",{className:"inline-flex flex-wrap items-center gap-wt-5 gap-y-2",children:(0,wt.jsx)("p",{className:sc})}),(0,wt.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,wt.jsx)(Ge,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,wt.jsx)("div",{children:(0,wt.jsxs)(Ge,{href:e,className:l(sc,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,wt.jsx)("span",{children:"Read More"}),(0,wt.jsx)("span",{className:"text-accent",children:(0,wt.jsx)(as.FaArrowRight,{})})]})})]})]})]})}function Wp(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var gn=({page:e,layout:t="portrait"})=>t==="flow"?(0,wt.jsx)(lc,{page:e,layout:t}):(0,wt.jsx)(dc,{page:e,layout:t}),lc=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=No(e),s=[{wt:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o];return(0,wt.jsx)("div",{className:"w-[297mm]",children:(0,wt.jsxs)("div",{wt:"printable-content",children:[s.map((n,i)=>(0,wt.jsx)(wt.Fragment,{children:i===0?(0,wt.jsx)("section",{className:"title-page w-full h-full",children:(0,wt.jsx)(hr,{hero:e.hero,title:e.title})},i):(0,wt.jsxs)("section",{className:"normal-page overflow-hidden",children:[n.blockName&&(0,wt.jsx)(vr,{title:n.blockName}),(0,wt.jsx)(Ao,{blocks:[n],fill:!0})]},i)})),(0,wt.jsx)("section",{className:"normal-page",children:(0,wt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
27
- dark bg-background text-primary`,children:[(0,wt.jsxs)("div",{className:"flex px-6 items-center space-wt-2",children:[a&&(0,wt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,wt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,wt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})})},dc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=No(e),o=(0,rl.useRef)(null),r=(0,rl.useRef)(null),s=(0,rl.useRef)(new By.Previewer),[n,i]=(0,rl.useState)(0),m=[{wt:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,rl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[]);return(0,rl.useEffect)(()=>{s.current=new By.Previewer,d()},[d,t]),(0,wt.jsxs)("div",{className:"pagedjs-container",children:[(0,wt.jsx)("div",{wt:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>{var g,y;return(0,wt.jsx)(wt.Fragment,{children:u===0?(0,wt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,wt.jsx)(hr,{hero:e.hero,title:e.title})},u):(0,wt.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Wp("185mm")}px]`,((y=(g=p.theme)==null?void 0:g.settings)==null?void 0:y.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,wt.jsx)(vr,{title:p.blockName}),(0,wt.jsx)(Ao,{blocks:[p],fill:!0})]},u)})})}),(0,wt.jsx)("div",{ref:o,className:"preview-container"})]})};var bn=h(require("clsx"));function Up({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,wt.jsx)(c,{...u}):n?({href:u,children:g,...y})=>(0,wt.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:g}):u=>(0,wt.jsx)("a",{...u});return(0,wt.jsxs)(Ya,{...m,variant:"inset",children:[(0,wt.jsx)(qa,{children:(0,wt.jsx)(lt,{children:(0,wt.jsx)(We,{children:i?(0,wt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,wt.jsx)(Ne,{className:"bg-gray-200 my-2 w-full h-7"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,wt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,wt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,wt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,wt.jsxs)(Ra,{children:[(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,wt.jsxs)(Ra,{children:[e&&!i&&e.map((u,g)=>(0,wt.jsx)(Xp,{subNav:u,pathName:r,Link:p},g)),(0,wt.jsx)(Nt,{className:"wt-auto",children:(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:t&&!i&&t.map(u=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ct,{asChild:!0,size:"sm",children:(0,wt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,wt.jsx)(u.icon,{}),(0,wt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,wt.jsx)(Ka,{})]})}function Xp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsx)(Nt,{className:"py-0",children:(0,wt.jsx)(lt,{children:(0,wt.jsx)(Zt,{asChild:!0,defaultOpen:o.isActive,children:(0,wt.jsxs)(We,{children:[(0,wt.jsx)(Ct,{asChild:!0,tooltip:o.label,className:(0,bn.default)(r&&"font-bold text-accent"),children:(0,wt.jsxs)(a,{href:o.url,children:[o.icon&&(0,wt.jsx)(o.icon,{}),(0,wt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Pa,{asChild:!0,children:(0,wt.jsxs)(er,{className:"data-[state=open]:rotate-90",children:[(0,wt.jsx)(Tl.ChevronRight,{}),(0,wt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,wt.jsx)(ka,{children:(0,wt.jsx)(Ta,{children:(n=o.links)==null?void 0:n.map(i=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,className:(0,bn.default)(i.url===t&&"font-bold text-accent"),children:(0,wt.jsx)(a,{href:i.url,children:(0,wt.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var mc=h(require("clsx"));var Yp=()=>(0,wt.jsx)(Ze,{iconName:"github",size:"10x"});function qp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let y=d?f=>(0,wt.jsx)(d,{...f}):m?({item:f,children:v,...k})=>(0,wt.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:v}):f=>(0,wt.jsx)("a",{href:f.href,...f});return(0,wt.jsxs)(Ya,{side:"right",variant:"inset",...p,children:[(0,wt.jsxs)(qa,{className:"border-b border-sidebar-border",children:[(0,wt.jsxs)(lt,{className:"flex-row space-wt-1",children:[(0,wt.jsx)(We,{children:(0,wt.jsxs)(Ct,{onClick:s,children:[(0,wt.jsx)(Tl.FilePlus,{})," ",(0,wt.jsx)("span",{children:"Add Document"})]})}),c&&(0,wt.jsx)(We,{children:(0,wt.jsx)(Ct,{onClick:c,tooltip:"Open in GitHub",children:(0,wt.jsx)(Yp,{})})})]}),(0,wt.jsxs)(lt,{className:"flex-row space-wt-1",children:[(0,wt.jsx)(We,{className:"w-5/12",children:(0,wt.jsxs)(Ct,{onClick:()=>n(),variant:r?"outline":"default",className:(0,mc.default)(r&&"text-accent"),children:[(0,wt.jsx)(Tl.Edit,{})," ",(0,wt.jsx)("span",{children:"Edit"})]})}),(0,wt.jsx)(We,{className:"w-5/12",children:(0,wt.jsxs)(Ct,{onClick:i,children:[(0,wt.jsx)(Tl.Printer,{})," ",(0,wt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Editor Controls",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:a})})]})}),(0,wt.jsx)(Zo,{className:"mx-0"})]}),(0,wt.jsxs)(Ra,{className:"overflow-auto",children:[o&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{children:"Related Content"}),(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:Array.from({length:3}).map((f,v)=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ne,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{children:"Table of Contents"}),(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:Array.from({length:3}).map((f,v)=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ne,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Related Content",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:(0,wt.jsx)(lt,{children:e&&Object.keys(e).map(f=>(0,wt.jsxs)(We,{children:[(0,wt.jsxs)("span",{className:"p-2 text-Tl text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,wt.jsx)(Ta,{children:e[f].map(v=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,isActive:!1,size:"sm",children:(0,wt.jsxs)(y,{href:v.url,item:v,className:"flex justify-between items-center w-full text-Tl",children:[(0,wt.jsx)("span",{children:v.label}),v.type==="note"&&(0,wt.jsx)(Tl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,wt.jsx)(Ze,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},f))})})})]})}),t&&!o&&(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Table of Contents",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:(0,wt.jsx)(lt,{children:t.map(f=>{var v;return(0,wt.jsxs)(We,{children:[(0,wt.jsx)(Ct,{asChild:!0,children:(0,wt.jsx)("a",{href:`#${f.url}`,className:"text-Tl",children:f.title})}),(v=f.items)!=null&&v.length?(0,wt.jsx)(Ta,{children:f.items.map(k=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,isActive:k.isActive,size:"sm",children:(0,wt.jsx)("a",{href:`#${k.url}`,className:"flex justify-between items-center w-full text-Tl",children:(0,wt.jsx)("span",{children:k.title})})})},k.title))}):null]},f.title)})})})})]})})]}),(0,wt.jsx)(Ka,{})]})}var uc=h(require("next/image"));function Kp({title:e,members:t}){return(0,wt.jsx)(ke,{className:"mb-6",children:(0,wt.jsxs)("div",{className:"p-6",children:[(0,wt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,wt.jsx)(Tl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,wt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,wt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,wt.jsxs)("div",{className:"flex items-center space-wt-4",children:[(0,wt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,wt.jsx)(uc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,wt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var fc=h(require("next/link"));var Qp=({links:e,title:t="Related Content"})=>(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:t})}),(0,wt.jsx)(ze,{children:(0,wt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,wt.jsxs)(fc.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,wt.jsx)(Tl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var yn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function vn({pages:e}){let t=(0,jd.useSearchParams)(),a=(0,jd.usePathname)(),{replace:o}=(0,jd.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,rl.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,wt.jsx)("div",{className:"wt-12",children:(0,wt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,wt.jsx)("wt",{children:(0,wt.jsx)("button",{className:l(yn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,wt.jsx)(as.FaArrowLeft,{})})}),d.map((p,u)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)("a",{className:l(yn,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,wt.jsx)("wt",{children:(0,wt.jsx)("button",{className:l(yn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,wt.jsx)(as.FaArrowRight,{})})})]})})}var Iv=l("transition-colors duration-400 hover:text-primary ease-in-out");function xr({title:e,links:t}){let a=(0,jd.useSearchParams)(),o=(0,jd.usePathname)(),{replace:r}=(0,jd.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,wt.jsx)(ze,{children:t&&t.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,wt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,wt.jsxs)("wt",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,wt.jsx)(Tl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function xn({types:e}){let[t,a]=(0,rl.useState)(e&&e[0].href),o=(0,jd.useSearchParams)(),r=(0,jd.usePathname)(),{replace:s}=(0,jd.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,wt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-wt-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,wt.jsx)(L,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var hc=h(require("next/image"));var wn=({links:e,media:t,children:a,richText:o})=>(0,wt.jsxs)("div",{className:"relative -wt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,wt.jsx)("div",{className:"container wt-[20rem] mb-8 wt-10 relative flex items-end justify-center",children:(0,wt.jsxs)("div",{className:"text-center container",children:[a||o&&(0,wt.jsx)(fe,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,wt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Vt,{...r})},s))})]})}),(0,wt.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,wt.jsx)(ca,{fill:!0,imgClassName:"wt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,wt.jsx)("div",{children:(0,wt.jsx)(hc.default,{className:"-wt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,wt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var Nn=h(require("next/image"));var Jp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,wt.jsx)(Nn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,wt.jsx)("div",{children:(0,wt.jsx)(Nn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Cn=({links:e,media:t,children:a,richText:o})=>(0,wt.jsxs)("div",{className:"relative bg-brand-one pb-12 wt-20 pt-10",children:[t&&(0,wt.jsx)(Jp,{media:t}),(0,wt.jsx)("div",{className:"mx-0 min-w-full relative wt-9",children:(0,wt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,wt.jsx)(fe,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Pn=({children:e,richText:t})=>(0,wt.jsx)("div",{className:"min-w-full py-10 bg-muted wt-24",children:(0,wt.jsx)("div",{className:"container",children:e||t&&(0,wt.jsx)(fe,{content:t,enableGutter:!1})})});var xc=h(require("react")),wc=h(require("next/image"));var Zp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,wt.jsxs)("div",{className:"relative grid",children:[(0,wt.jsx)("div",{className:"relative wt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,wt.jsxs)("div",{className:"container mx-auto",children:[(0,wt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,wt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,wt.jsx)("p",{children:o.map((i,c)=>(0,wt.jsxs)(xc.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.wt))})]}),r&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,wt.jsx)("time",{dateTime:r,children:ac(r)})]}),t&&t.length>0&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,wt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,wt.jsx)(St,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.wt||c))})]})]})]})}),(0,wt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,wt.jsx)(wc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,wt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var fs=require("@heroicons/react/20/solid");var Nc=h(require("next/image"));function kn({title:e,breadcrumbItems:t,image:a}){return(0,wt.jsxs)("section",{className:"-wt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,wt.jsx)("div",{className:"absolute inset-0 wt-0",children:a&&(0,wt.jsx)(Nc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,wt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"relative wt-10 flex flex-wrap items-center justify-between gap-wt-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,wt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,wt.jsx)(Sn,{breadcrumbItems:t})]})})]})}var eu={highImpact:wn,lowImpact:Pn,mediumImpact:Cn,sectionHero:kn},tu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=eu[t];return a?(0,wt.jsx)(a,{...e}):null};function Sn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,wt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,wt.jsxs)("ol",{role:"list",className:"flex items-center space-wt-4",children:[(0,wt.jsx)("wt",{children:(0,wt.jsx)("div",{children:(0,wt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,wt.jsx)(fs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,wt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,wt.jsx)("wt",{children:(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(fs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,wt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,wt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,wt.jsx)(wt.Fragment,{})}var vt=require("@headlessui/react"),ys=require("@heroicons/react/24/outline");var au=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,wt.jsx)("a",{href:o,className:"flex items-center gap-wt-1 text-sm font-semibold text-foreground group",children:(0,wt.jsxs)("span",{className:"relative",children:[e,(0,wt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-wt-1/2 scale-wt-0 transition-transform duration-300 ease-in-out group-hover:scale-wt-100"})]})}):(0,wt.jsxs)(vt.Popover,{children:[(0,wt.jsxs)(vt.PopoverButton,{className:"flex items-center gap-wt-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,wt.jsxs)("span",{className:"relative",children:[e,(0,wt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-wt-1/2 scale-wt-0 transition-transform duration-300 ease-in-out group-hover:scale-wt-100"})]}),(0,wt.jsx)(fs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,wt.jsxs)(vt.PopoverPanel,{transition:!0,className:"absolute inset-wt-0 top-0 -wt-10 bg-popover wt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,wt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-wt-4 px-6 py-10 lg:px-8 xl:gap-wt-8 wt-50",children:t&&t.map(r=>(0,wt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,wt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,wt.jsx)(Cc,{icon:r.icon,size:"4x"})}),(0,wt.jsxs)("a",{href:r.href,className:"wt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,wt.jsx)("span",{className:"absolute inset-0"})]}),(0,wt.jsx)("p",{className:"wt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,wt.jsx)("div",{className:"bg-gray-50",children:(0,wt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,wt.jsx)("div",{className:"grid grid-cols-3 divide-wt divide-gray-900/5 border-wt border-gray-900/5",children:a.map(r=>(0,wt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-wt-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,wt.jsx)(Cc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Cc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,wt.jsx)(Ze,{...e,size:a});if("src"in e)return(0,wt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,wt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},gs=au;var bs=["light","dark","green"];function ou({title:e,logo:t,menuItems:a}){let[o,r]=(0,rl.useState)(!1),[s,n]=(0,rl.useState)(!1),[i,c]=(0,rl.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,rl.useState)(`${m}.${d}`),g=f=>{bs.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,rl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let y=()=>{let f=bs[(bs.indexOf(i)+1)%bs.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,wt.jsxs)("header",{className:"relative isolate wt-10 bg-background h-14",children:[(0,wt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,wt.jsx)("div",{className:"flex lg:flex-1",children:(0,wt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:e}),(0,wt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,wt.jsx)("div",{className:"flex lg:hidden",children:(0,wt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,wt.jsx)(ys.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,wt.jsx)(vt.PopoverGroup,{className:"hidden lg:flex lg:gap-wt-12",children:a.map(f=>(0,wt.jsx)(gs,{...f},f.name))}),(0,wt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,wt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,wt.jsx)(fs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,wt.jsx)(fs.MoonIcon,{className:"h-6 w-6"}):(0,wt.jsx)(fs.SunIcon,{className:"h-6 w-6"})})})]}),(0,wt.jsxs)(vt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,wt.jsx)("div",{className:"fixed inset-0 wt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,wt.jsxs)(vt.DialogPanel,{className:"fixed inset-y-0 right-0 wt-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,wt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,wt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,wt.jsx)(ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,wt.jsx)("div",{className:"wt-6 flow-root",children:(0,wt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,wt.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,wt.jsx)(ru,{...f},f.name))})})})]})]})]})}function ru({name:e,items:t,actions:a,href:o}){return!t&&o?(0,wt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,wt.jsxs)(vt.Disclosure,{as:"div",className:"-mx-3",children:[(0,wt.jsx)(vt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,wt.jsx)(vt.DisclosurePanel,{className:"wt-2 space-y-2",children:t&&t.map(r=>(0,wt.jsx)(vt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var Tc=h(require("next/image"));var Rn=h(require("next/image"));function Va({logoLight:e,logoDark:t,mobile:a=!1}){return(0,wt.jsxs)(Ge,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,wt.jsx)(Rn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,wt.jsx)(Rn.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var kc=require("next-themes");function Cr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,rl.useState)(!1),[n,i]=(0,rl.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,kc.useTheme)();(0,rl.useEffect)(()=>{i(m||"dark")},[m]);let p=()=>{let u=c[(c.indexOf(n)+1)%c.length];i(u),d(u)};return(0,rl.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsx)("header",{className:`wt-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,wt.jsx)(Oe,{className:"px-0",children:(0,wt.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,wt.jsx)(Va,{logoDark:a,logoLight:t}),(0,wt.jsx)(vt.PopoverGroup,{className:"hidden lg:flex lg:gap-wt-12",children:o&&o.map(u=>(0,wt.jsx)(gs,{...u},u.name))}),(0,wt.jsx)("div",{className:"flex items-center space-wt-4",children:(0,wt.jsx)("button",{className:"fixed right-4 wt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(Tl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(Tl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Tn=["light","dark"];function Pr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,rl.useState)(!1),{theme:n,setTheme:i}=(0,kc.useTheme)(),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)("light");(0,rl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,rl.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=Tn[(Tn.indexOf(d)+1)%Tn.length];p(g),i(g)};return(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)("header",{className:`wt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,wt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,wt.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&wt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,wt.jsx)(Va,{logoDark:t,logoLight:e,mobile:!0}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-4",children:[(0,wt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,wt.jsx)(ys.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,wt.jsx)("button",{className:"fixed right-16 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(Tl.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(Tl.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,wt.jsxs)(vt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,wt.jsx)("div",{className:"fixed inset-0 wt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,wt.jsxs)(vt.DialogPanel,{className:"fixed inset-y-0 right-0 wt-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,wt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,wt.jsx)(Va,{logoDark:t,logoLight:e,mobile:!0}),(0,wt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,wt.jsx)(ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,wt.jsx)("div",{className:"wt-6 flow-root",children:(0,wt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,wt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,wt.jsx)(su,{...g},g.name))})})})]})]})]})})}function su({name:e,items:t,actions:a,href:o}){return!t&&o?(0,wt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,wt.jsxs)(vt.Disclosure,{as:"div",className:"-mx-3",children:[(0,wt.jsx)(vt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,wt.jsx)(vt.DisclosurePanel,{className:"wt-2 space-y-2",children:t&&t.map(r=>(0,wt.jsx)(vt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function iu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,rl.useState)(!1),[c,m]=(0,rl.useState)(!1),d=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,rl.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,wt.jsxs)("div",{className:"relative h-screen",children:[(0,wt.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,wt.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,wt.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,wt.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,wt.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,wt.jsx)(Tl.Menu,{className:"w-6 h-6 text-white"})}),(0,wt.jsxs)("div",{className:"fixed top-0 left-0 right-0 wt-50",children:[(0,wt.jsx)(Cr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,wt.jsx)(Pr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,wt.jsxs)("div",{className:"absolute inset-0 h-full wt-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,wt.jsx)(Tc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto wt-8 hidden lg:block",c&&"lg:hidden")}),(0,wt.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,wt.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,wt.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,wt.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,wt.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,wt.jsx)(Tl.ChevronDown,{size:64})})})]})]})}var Dc=h(require("next/image"));var nu=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Dn=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),An=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Mn=l("flex items-center gap-5"),Ns=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function lu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,wt.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,wt.jsx)("div",{className:"py-16 md:py-20",children:(0,wt.jsx)("div",{className:"container",children:(0,wt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,wt.jsx)(Va,{logoLight:a,logoDark:o}),(0,wt.jsx)("p",{className:"mb-7 wt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,wt.jsx)("nav",{"aria-label":"social links",children:(0,wt.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-wt rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{"aria-label":m.href,className:nu,href:m.href,openNewTab:!0,children:(0,wt.jsx)("span",{children:m.icon})})},d))})})]}),(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,wt.jsx)("h3",{className:Dn,children:s.title}),s.links&&s.links.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,wt.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,wt.jsxs)("wt",{className:"flex items-center gap-2.5",children:[(0,wt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,wt.jsx)(as.FaChevronRight,{})}),(0,wt.jsx)(Ge,{href:m.href,openNewTab:m.openNewTab,className:Ns,children:m.label})]},m.label))})})]}),(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,wt.jsx)("h3",{className:Dn,children:n.title}),(0,wt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaPaperPlane,{})}),(0,wt.jsx)("address",{className:"not-italic",children:n.location})]}),(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,wt.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,wt.jsx)("a",{href:`mailto:${m}`,className:Ns,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaPhone,{})}),(0,wt.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,wt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ns,children:m},d))})]})]})]}),i&&(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,wt.jsx)("h3",{className:Dn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,wt.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,wt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,wt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,wt.jsx)(Dc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,wt.jsx)("span",{className:"text-accent",children:(0,wt.jsx)(as.FaCalendarDays,{})}),(0,wt.jsx)("span",{children:oc(m.date)})]}),(0,wt.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,wt.jsx)(Ge,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,wt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,wt.jsx)("div",{className:"container",children:(0,wt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-wt-8 gap-y-4 md:gap-wt-10",children:[(0,wt.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,wt.jsx)("ul",{className:"flex flex-wrap items-center gap-wt-4 md:gap-wt-7",children:c.links.map(m=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{"aria-label":`rl to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ns,children:m.label})},m.label))})})]})})})]})}function du({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,wt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 wt-50",r),children:[(0,wt.jsx)(Cr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,wt.jsx)(Pr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function cu({children:e,...t}){return(0,wt.jsx)(kc.ThemeProvider,{...t,children:e})}var fo=require("sonner");function In({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,rl.useState)([]),s=(0,jd.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.wt))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(fo.toast.success(d.message),s.refresh()):fo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(fo.toast.success(d.message),s.refresh()):fo.toast.error(`Error: ${d.message}`),r([])};return(0,wt.jsxs)("div",{className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,wt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,wt.jsxs)("div",{className:"space-wt-2",children:[(0,wt.jsx)(L,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,wt.jsx)(L,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,wt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,wt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,wt.jsx)("wt",{className:"px-4 py-4 sm:px-6",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(zt,{wt:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,wt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,wt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,wt.jsx)("wt",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(zt,{wt:`select-${d.wt}`,checked:o.includes(d.wt),onCheckedChange:()=>i(d.wt),className:"border-accent"}),(0,wt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,wt.jsxs)(ra,{className:"h-10 w-10",children:[(0,wt.jsx)(sa,{src:d.userImage,alt:d.userName}),(0,wt.jsx)(ia,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,wt.jsx)("div",{className:"ml-3",children:(0,wt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,wt.jsx)(St,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.wt))]})}),(0,wt.jsx)(fo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"wt-50"})]})}var Ln=require("date-fns");var Bc=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Rr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Ec=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Rr(o))return .5;for(;o<=r;)Rr(o)||s++,o.setDate(o.getDate()+1);return s},zc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var mu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,wt.jsx)("div",{className:"flex space-wt-2",children:e.map((r,s)=>(0,wt.jsx)(L,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function En({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,rl.useState)(new Date),[r,s]=(0,rl.useState)(new Date),[n,i]=(0,rl.useState)("Full Day"),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)(1),u=(0,jd.useRouter)();(0,rl.useEffect)(()=>{let f=zc(a,r);m(f),f&&i("Full Day")},[a,r]),(0,rl.useEffect)(()=>{if(!a||!r){p(0);return}let f=Ec(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return(0,wt.jsxs)("div",{className:"max-w-2xl",children:[(0,wt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,wt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,wt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){fo.toast.error("Please select both start and end dates");return}if(d>e){fo.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",n),v.append("duration",d.toString());let k=await(t||pu)(v);k.success?(fo.toast.success(k.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):fo.toast.error(`Error: ${k.message}`)},className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,wt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"startDate",children:"Start Date"}),(0,wt.jsxs)(lr,{children:[(0,wt.jsx)(dr,{asChild:!0,children:(0,wt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ln.format)(a,"PPP"):(0,wt.jsx)("span",{children:"Pick a date"})]})}),(0,wt.jsx)(Do,{className:"w-auto p-0",align:"start",children:(0,wt.jsx)(pr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,wt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"endDate",children:"End Date"}),(0,wt.jsxs)(lr,{children:[(0,wt.jsx)(dr,{asChild:!0,children:(0,wt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ln.format)(r,"PPP"):(0,wt.jsx)("span",{children:"Pick a date"})]})}),(0,wt.jsx)(Do,{className:"w-auto p-0",align:"start",children:(0,wt.jsx)(pr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{children:"Leave Type"}),(0,wt.jsx)(mu,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,c,c]})]}),(0,wt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,wt.jsx)(L,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,wt.jsx)(fo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"wt-50"})]})}var pu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Fc(...e){return e.filter(Boolean).join(" ")}function zn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,wt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,wt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,wt.jsxs)("div",{className:"sm:flex-auto",children:[(0,wt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,wt.jsx)("p",{className:"wt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,wt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,wt.jsxs)(L,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,wt.jsx)(Tl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,wt.jsx)(L,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,wt.jsxs)(L,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,wt.jsx)(Tl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,wt.jsx)("div",{className:"wt-8 flow-root",children:(0,wt.jsx)("div",{className:"-mx-4 -my-2 overflow-wt-auto sm:-mx-6 lg:-mx-8",children:(0,wt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,wt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,wt.jsx)("thead",{className:"sticky top-0 wt-20 bg-white",children:(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 wt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,wt.jsxs)("th",{scope:"col",className:`sticky top-0 wt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Rr(p)?"bg-gray-200":""}`,children:[(0,wt.jsx)("div",{children:c(p)}),(0,wt.jsx)("div",{children:d+1})]},d)})]})}),(0,wt.jsx)("tbody",{children:o.map((m,d)=>(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("Tl",{className:Fc(d!==o.length-1?"border-gray-200":"","sticky left-0 wt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsxs)(ra,{className:"h-11 w-11",children:[(0,wt.jsx)(sa,{src:m.image,alt:m.name}),(0,wt.jsx)(ia,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,wt.jsx)("div",{className:"ml-4",children:(0,wt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),y=a.find(f=>f.userId===m.wt&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,wt.jsx)("Tl",{className:Fc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Rr(g)?"bg-gray-200":""),children:(0,wt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${m.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,wt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.wt}-${u}`)})]},m.wt))})]})})})})]})}function Hn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,rl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,wt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,wt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,wt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,wt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,wt.jsx)("div",{className:"flex items-center",children:(0,wt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,wt.jsxs)(L,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,wt.jsx)(Tl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,wt.jsx)(L,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,wt.jsxs)(L,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,wt.jsx)(Tl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,wt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-Tl font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["W",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"wt"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"wt"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,wt.jsxs)("div",{className:"flex bg-gray-200 text-Tl leading-6 text-gray-700 lg:flex-auto",children:[(0,wt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,wt.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,wt.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,wt.jsx)("ol",{className:"wt-2 space-y-1",children:d.holidays.map(p=>(0,wt.jsx)("wt",{children:(0,wt.jsx)("div",{className:`text-Tl px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.wt))})]},d.date.toISOString()))}),(0,wt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,wt.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:wt-10"),children:[(0,wt.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,wt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,wt.jsx)("span",{className:"-mx-0.5 wt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,wt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.wt))})]},d.date.toISOString()))})]})]})]})}var Wa=require("lucide-react");function _c(...e){return e.filter(Boolean).join(" ")}function uu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,rl.useState)("Calendar View"),d=(0,$c.useRouter)(),p=!1,u=(0,Ln.parseISO)(a),g=async f=>{let v=(0,Ln.format)(f,"wt-MM-yyyy"),k=new URL(window.location.href);return k.searchParams.set("date",v),d.push(k.toString()),{success:!0}};if(p)return(0,wt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,wt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let y=[{name:"Grid View",icon:Wa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Wa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Wa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Wa.CheckSquare,current:c==="Approve Leave"}];return(0,wt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,wt.jsxs)("div",{className:"mb-8",children:[(0,wt.jsxs)("div",{className:"sm:hidden",children:[(0,wt.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(f=>(0,wt.jsx)("option",{children:f.name},f.name))}),(0,wt.jsx)(Tl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,wt.jsx)("div",{className:"hidden sm:block",children:(0,wt.jsx)("div",{className:"border-b border-gray-200",children:(0,wt.jsx)("nav",{className:"-mb-px flex space-wt-8","aria-label":"Tabs",children:y.map(f=>(0,wt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:_c(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,wt.jsx)(f.icon,{className:_c(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,wt.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,wt.jsx)(zn,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,wt.jsx)(Hn,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,wt.jsx)(En,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,wt.jsx)(In,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Fn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var le,j,C,I,S;let[i,c]=(0,rl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,rl.useState)(""),[p,u]=(0,rl.useState)(!1),[g,y]=(0,rl.useState)(null);(0,rl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(u(!1),y(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},v=(b,N)=>{c(w=>({...w,[b]:N}))},k=b=>{let N=(i.categories||[]).includes(b)?(i.categories||[]).filter(w=>w!==b):[...i.categories||[],b];v("categories",N)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let N=await n(b);if(!N.success){console.error("Failed to add comment:",N.errors);return}}catch(N){console.error("Failed to add comment:",N)}c(N=>({...N,comments:[...N.comments||[],b]})),d("")}},E=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},B=b=>t==null?void 0:t.find(N=>N.wt===Number(b));return(0,wt.jsx)(kt,{open:!0,children:(0,wt.jsxs)(bt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,wt.jsxs)(Bt,{className:"flex flex-row items-center justify-between",children:[(0,wt.jsx)(Et,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,wt.jsxs)("div",{className:"flex space-wt-2",children:[(0,wt.jsx)(L,{variant:"outline",onClick:r,children:"Close"}),(0,wt.jsxs)(L,{onClick:f,disabled:!p,children:[(0,wt.jsx)(Tl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,wt.jsxs)(La,{className:"flex-grow pr-4",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,wt.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,wt.jsx)(nt,{type:"number",value:i.value,onChange:b=>v("value",Number(b.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,wt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(le=i.value)==null?void 0:le.toLocaleString()]})}),(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,wt.jsxs)(to,{value:((C=(j=i==null?void 0:i.assignee)==null?void 0:j.wt)==null?void 0:C.toString())||"",onValueChange:b=>v("assignee",B(b)),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select assignee"})}),(0,wt.jsx)(Ha,{children:t&&t.map(b=>{var N;return(0,wt.jsx)(Fa,{value:((N=b==null?void 0:b.wt)==null?void 0:N.toString())||"",children:b.name},b.wt)})})]}):(0,wt.jsxs)("div",{className:"flex items-center space-wt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,wt.jsx)(Tl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,wt.jsx)("span",{children:i.assignee.name})]})]}),(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,wt.jsx)(nt,{type:"date",value:(S=(I=i.closureDate)==null?void 0:I.split("wt")[0])!=null?S:"",onChange:b=>v("closureDate",b.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,wt.jsxs)("div",{className:"flex items-center space-wt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,wt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("wt-GB"):"N/wt"})]})]})]}),(0,wt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,wt.jsx)(Oa,{value:i.description||"",onChange:b=>v("description",b.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,wt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,wt.jsxs)(to,{value:i.status,onValueChange:b=>{v("status",b),y(null)},children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select status"})}),(0,wt.jsx)(Ha,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,wt.jsx)(Fa,{value:b,children:b},b))})]}):(0,wt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:i.status})]}),(0,wt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,wt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var N,w;return(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:((N=b.wt)==null?void 0:N.toString())||"",checked:(i.categories||[]).some(ye=>ye.wt===b.wt),onCheckedChange:()=>b.wt!==void 0&&k(b)}),(0,wt.jsx)("label",{htmlFor:((w=b.wt)!=null?w:"").toString(),className:`text-sm font-medium ${E(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.wt)})}):(0,wt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let N=b;return N?(0,wt.jsx)(St,{variant:"secondary",className:E(N.type||"sector"),children:N.name},N.wt):null})})]})]}),(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,wt.jsx)(La,{className:"h-[200px] overflow-y-auto",children:(0,wt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((b,N)=>new Date(N.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var N;return(0,wt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,wt.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,wt.jsxs)("p",{className:"text-Tl text-gray-500 wt-1",children:[(N=b==null?void 0:b.author)==null?void 0:N.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.wt)})})}),(0,wt.jsxs)("div",{className:"flex wt-2",children:[(0,wt.jsx)(nt,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,wt.jsxs)(L,{onClick:D,className:"ml-2",children:[(0,wt.jsx)(Tl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,wt.jsxs)("div",{className:"text-Tl text-gray-500 wt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function On({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.wt)});return(0,wt.jsxs)(ke,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,wt.jsxs)(Ue,{className:"pb-2",children:[(0,wt.jsx)("div",{className:"flex justify-between items-center",children:(0,wt.jsx)(Xe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,wt.jsx)("p",{className:"text-sm text-gray-500 wt-1",children:e.description})]}),(0,wt.jsxs)(ze,{children:[(0,wt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,wt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,wt.jsx)(Tl.UserIcon,{className:"w-4 h-4 mr-1 text-Tl"}),(0,wt.jsx)("span",{children:e.assignee.name})]}),(0,wt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,wt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,wt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,wt.jsxs)("div",{className:"flex items-center text-Tl text-gray-500",children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,wt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,wt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,wt.jsx)(St,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-Tl",children:r.name})})]})]})}var Rs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function _n({onSubmit:e}){var r;let[t,a]=(0,rl.useState)({name:"",intro:"",active:!0});return(0,wt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"customerName",children:"Customer Name"}),(0,wt.jsx)(nt,{wt:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"customerIntro",children:"Intro"}),(0,wt.jsx)(Oa,{wt:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,wt.jsx)(ue,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,wt.jsx)(L,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Gn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var E,B,le,j;let[i,c]=(0,rl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("wt")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,rl.useState)(!1),[p,u]=(0,rl.useState)({});(0,rl.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let C={};return i.customer||(C.customer="Customer wt required"),i.value||(C.value="Value wt required"),i.assignee||(C.assignee="Assignee wt required"),i.closureDate||(C.closureDate="Closure Date wt required"),u(C),Object.keys(C).length===0},y=async C=>{C.preventDefault(),u({});try{if(g()){let I=await o({...i});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):u(I.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=C=>{console.log(C),c(I=>({...I,categories:(I.categories||[]).includes(C.wt)?(I.categories||[]).filter(S=>S!==C.wt):[...I.categories||[],C.wt]}))},v=async C=>{c({...i,customer:C});try{let I=await s(C);I.success?d(!1):u(I.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},k=C=>t==null?void 0:t.find(I=>I.wt===Number(C)),D=C=>e==null?void 0:e.find(I=>I.wt===Number(C));return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,wt.jsx)(La,{className:"h-[60vh] pr-4",children:(0,wt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"customer",children:"Customer"}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsxs)(to,{value:(B=(E=i.customer)==null?void 0:E.wt)==null?void 0:B.toString(),onValueChange:C=>c({...i,customer:D(C)}),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select customer"})}),(0,wt.jsx)(Ha,{children:e.map(C=>{var I;return(0,wt.jsx)(Fa,{value:((I=C.wt)==null?void 0:I.toString())||"",children:C.name},C.wt)})})]}),(0,wt.jsx)(L,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,wt.jsx)(Tl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"value",children:"Value"}),(0,wt.jsx)(nt,{wt:"value",type:"number",value:i.value||"",onChange:C=>c({...i,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"assignee",children:"Assignee"}),(0,wt.jsxs)(to,{value:(j=(le=i.assignee)==null?void 0:le.wt)==null?void 0:j.toString(),onValueChange:C=>c({...i,assignee:k(C)}),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select assignee"})}),(0,wt.jsx)(Ha,{children:t&&t.map(C=>{var I;return(0,wt.jsx)(Fa,{value:((I=C.wt)==null?void 0:I.toString())||"",children:C.name},C.wt)})})]}),p.assignee&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"description",children:"Description"}),(0,wt.jsx)(Oa,{wt:"description",value:i.description||"",onChange:C=>c({...i,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{children:"Categories"}),(0,wt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)("h4",{className:"text-sm font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,wt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===C).map(I=>{var S;return(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:I.wt.toString(),checked:(S=i.categories)==null?void 0:S.includes(I.wt),onCheckedChange:()=>f(I)}),(0,wt.jsx)("label",{htmlFor:I.wt.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.wt)})})]},C))})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"closureDate",children:"Closure Date"}),(0,wt.jsx)(nt,{wt:"closureDate",type:"date",value:i.closureDate||"",onChange:C=>c({...i,closureDate:C.target.value})}),p.closureDate&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,wt.jsx)(L,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,wt.jsx)(kt,{open:m,onOpenChange:d,children:(0,wt.jsxs)(bt,{children:[(0,wt.jsx)(Bt,{children:(0,wt.jsx)(Et,{children:"Add New Customer"})}),(0,wt.jsx)(_n,{onSubmit:v})]})})]})}function jn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,rl.useState)(!1);return(0,wt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,wt.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,wt.jsxs)(kt,{open:d,onOpenChange:p,children:[(0,wt.jsx)(Wr,{asChild:!0,children:(0,wt.jsxs)(L,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,wt.jsx)(Tl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,wt.jsxs)(bt,{children:[(0,wt.jsx)(Bt,{children:(0,wt.jsx)(Et,{children:"Add New Deal"})}),(0,wt.jsx)(Gn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,wt.jsx)(Rs.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,wt.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,y)=>(0,wt.jsx)(Rs.Draggable,{draggableId:g.wt.toString(),index:g.wt,children:f=>(0,wt.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,wt.jsx)(On,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.wt.toString())),u.placeholder]})}),(0,wt.jsxs)("div",{className:"wt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,wt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,wt.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,wt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,wt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var fu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function gu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,n]=(0,rl.useState)(null),i=u=>{var g;return((g=e.deals)!=null?g:[]).filter(y=>y.status===u)},c=u=>u.reduce((g,y)=>g+(y.value||0),0),m=(u,g)=>{let y={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,v)=>f+(v.value||0)*y[g],0)},d=(0,rl.useCallback)(u=>{var E,B;let{source:g,destination:y}=u;if(!y||g.droppableId===y.droppableId&&g.index===y.index)return;let f=g.droppableId,v=y.droppableId,k=(E=e.deals)==null?void 0:E.filter(le=>le.wt===g.index)[0],D=[...(B=e.deals)!=null?B:[]];k&&(k.status=v,a(k))},[a]);return(0,wt.jsx)(Rs.DragDropContext,{onDragEnd:d,children:(0,wt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,wt.jsx)("div",{className:"flex space-wt-4 pb-4",children:fu.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var y,f;let g=i(u);return(0,wt.jsx)(jn,{status:u,deals:g,customers:(y=e.customers)!=null?y:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,wt.jsx)(Fn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>n(null),onSave:a,onAddComment:u=>o(s.wt.toString(),u)})]})})}function bu({services:e,className:t}){return(0,$o.jsx)("section",{wt:"next-section",className:l("section-padding-primary",t),children:(0,$o.jsx)(Oe,{className:"py-8",children:e&&e.length>0&&(0,$o.jsx)("div",{className:"flex flex-wrap justify-center gap-y-8",children:e.map((a,o)=>(0,$o.jsx)("div",{"data-aos":"fade-up","data-aos-delay":zo([200,400,600],o),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:(0,$o.jsx)(Wi,{...a})},o))})})})}function yu({sectionHeading:e,cards:t}){return(0,wt.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,wt.jsxs)(Oe,{children:[(0,wt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,wt.jsx)($a,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,wt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,wt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":zo([200,400,600],o),className:"py-2",children:(0,wt.jsx)(Ui,{...a})},o))})]})})}var Tr=h(require("next/image"));function vu(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,wt.jsx)("section",{wt:"about-section",className:l("section-padding-primary",e.className||""),children:(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,wt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,wt.jsx)($a,{...a}),o&&o.length>0&&(0,wt.jsx)("div",{className:"wt-7 grid gap-5 text-accent sm:grid-cols-2 md:wt-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,wt.jsxs)("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:[(0,wt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,wt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,wt.jsx)("p",{className:"wt-5 md:wt-[1.875rem]",children:r})]}),t&&(0,wt.jsx)("div",{className:"mx-auto text-center",children:(0,wt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,wt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,wt.jsx)("div",{className:"relative wt-[2] wt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,wt.jsx)("div",{className:"relative wt-[4] overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,wt.jsx)("div",{className:"flex overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,wt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,wt.jsx)("div",{className:"overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,wt.jsx)("div",{className:"absolute left-1/2 top-1/2 wt-[4] -translate-wt-1/2 -translate-y-1/2 overflow-hidden",children:(0,wt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,wt.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,wt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("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"})})})})})]})})]})})})}var qc=h(require("next/image"));function Kc({blogs:e}){return(0,wt.jsx)("div",{children:e&&e.length>0&&(0,wt.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,wt.jsx)(hu,{post:t,wt:a},a))})})}var hu=({post:e,wt:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,wt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,wt.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,wt.jsx)(qc.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,wt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("div",{className:"flex items-center gap-wt-4 text-Tl",children:[(0,wt.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:ms(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,wt.jsx)("a",{href:`#${m}`,className:"relative wt-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,wt.jsxs)("div",{className:"group relative max-w-xl",children:[(0,wt.jsx)("h3",{className:"wt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,wt.jsxs)("a",{href:e.slug,children:[(0,wt.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,wt.jsx)("p",{className:"wt-5 text-sm/6 text-foreground",children:e.description})]}),(0,wt.jsx)("div",{className:"wt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,wt.jsxs)("div",{className:"relative flex items-center gap-wt-4",children:[m.image?(0,wt.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,wt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,wt.jsx)("div",{className:"text-sm/6",children:(0,wt.jsxs)("p",{className:"text-foreground pr-6",children:[(0,wt.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function xu({blogs:e,pages:t,categories:a,types:o}){return(0,wt.jsx)("section",{children:(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,wt.jsxs)("div",{children:[o&&(0,wt.jsx)(xn,{types:o}),(0,wt.jsx)(Kc,{blogs:e}),(0,wt.jsx)(vn,{pages:t})]}),(0,wt.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,wt.jsx)("div",{className:"lg:-wt-24 w-full",children:a&&a.links&&(0,wt.jsx)(xr,{links:a.links,title:a.title})})})]})})})}var am=h(require("next/image"));var Ds="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//wt";function As({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function wu({className:e,...t}){return(0,wt.jsx)("input",{...t,className:As({className:e})})}function Ms({icon:e,...t}){return(0,wt.jsxs)("div",{className:"relative w-full",children:[(0,wt.jsx)(wu,{...t}),e&&(0,wt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Nu({className:e,...t}){return(0,wt.jsx)("textarea",{...t,className:l(As({}),"resize-none md:min-h-[130px]",e)})}function Qc({icon:e,...t}){return(0,wt.jsxs)("div",{className:"relative w-full",children:[(0,wt.jsx)(Nu,{...t}),e&&(0,wt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Zc=require("formik"),vo=h(require("yup"));async function Jc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL wt not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"wt-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var jt={tooShort:"Must wt wt least ${min} characters",tooLong:"Must wt wt most ${max} characters",required:"This field wt required",email:"Invalid email format"},Cu=vo.object().shape({name:vo.string().min(2,jt.tooShort).max(50,jt.tooLong).required(jt.required),email:vo.string().email(jt.email).required(jt.required),subject:vo.string().min(2,jt.tooShort).max(50,jt.tooLong).required(jt.required),message:vo.string().min(2,jt.tooShort).max(300,jt.tooLong).required(jt.required)}),Is=l("!pr-[44px]"),Ls=l("!border-red-600 border"),Bs=l("sr-only");function tm(){return(0,wt.jsx)(Zc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Cu,onSubmit:async(e,{resetForm:t})=>{let a=await Jc(e);a.data===null?$n.toast.error(a.message):($n.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,wt.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,wt.jsxs)("div",{children:[(0,wt.jsx)(Ms,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(as.FaUser,{}),className:l(Is,e.name&&t.name&&Ls)}),e.name&&t.name&&(0,wt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Bs,children:e.name})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)(Ms,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(Pu,{}),className:l(Is,e.email&&t.email&&Ls)}),e.email&&t.email&&(0,wt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Bs,children:e.email})]}),(0,wt.jsxs)("div",{className:"lg:col-span-2",children:[(0,wt.jsx)(Ms,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Is,e.subject&&t.subject&&Ls)}),e.subject&&t.subject&&(0,wt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Bs,children:e.subject})]}),(0,wt.jsxs)("div",{className:"lg:col-span-2",children:[(0,wt.jsx)(Qc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(ku,{}),className:l(Is,e.message&&t.message&&Ls)}),e.message&&t.message&&(0,wt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Bs,children:e.message})]}),(0,wt.jsx)("div",{className:"lg:col-span-2",children:(0,wt.jsx)(L,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,wt.jsx)("span",{children:"SEND"})})})]})})}function Pu(){return(0,wt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function ku(){return(0,wt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function Su(e){let{sectionHeading:t,image:a}=e;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("section",{className:"section-padding-primary",children:(0,wt.jsx)("div",{className:"",children:(0,wt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,wt.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,wt.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,wt.jsx)("p",{className:"wt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),(0,wt.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,wt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,wt.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,wt.jsxs)("address",{className:"wt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,wt.jsx)("p",{children:n},i))," ",o.mails&&(0,wt.jsxs)("p",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(as.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,wt.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,wt.jsxs)("p",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(as.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,wt.jsx)("section",{className:"section-padding-primary",children:(0,wt.jsxs)("div",{className:"relative py-[60px]",children:[(0,wt.jsx)("div",{className:"absolute left-0 top-0 wt-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:(0,wt.jsx)(am.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ds})}),(0,wt.jsx)(Oe,{children:(0,wt.jsx)("div",{className:"ml-auto md:w-1/2",children:(0,wt.jsxs)("div",{className:"relative wt-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,wt.jsx)("div",{className:"mb-30px",children:(0,wt.jsx)($a,{...t,invert:!0})}),(0,wt.jsx)(tm,{})]})})})]})})]})}var om=h(require("next/image"));var sm=h(require("next/link"));function Ru({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,wt.jsx)("div",{className:"wt-1 wt-10 px-0 pt-0 lg:px-10",children:(0,wt.jsx)(ke,{children:(0,wt.jsxs)(ze,{children:[e&&e.src&&(0,wt.jsx)(om.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ds,className:"mx-auto wt-6 rounded-full object-cover"}),(0,wt.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,wt.jsx)("p",{children:a}),o&&o.length>0&&(0,wt.jsx)("nav",{"aria-label":"social links",children:(0,wt.jsx)("ul",{className:"inline-flex items-center divide-wt divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,wt.jsx)("span",{children:r.icon})})},s))})})]})})})}function Tu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,jd.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=n==null?void 0:n.map(g=>{var y,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(y=g.profilePicture.sizes)==null?void 0:y.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,wt.jsx)("div",{children:(0,wt.jsxs)("div",{className:"[&_p+wt]:wt-4",children:[(0,wt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,wt.jsx)(fe,{content:c,enableGutter:!1})]})}),(0,wt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,wt.jsx)("div",{className:"wt-4 lg:-wt-10 wt-10 px-0 pt-0 lg:px-10",children:(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:"Content Actions"})}),(0,wt.jsxs)(ze,{children:[(0,wt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,wt.jsx)(sm.default,{href:`${o}${e.wt}`,children:(0,wt.jsx)(L,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,y)=>(0,wt.jsx)(Ru,{...g},y)),t&&t.links&&(0,wt.jsx)("div",{className:"wt-4 px-0 pt-0 lg:px-10",children:(0,wt.jsx)(xr,{links:t.links,title:t.title})})]})]})})}var Vn=h(require("next/link"));var lm=require("lucide-react"),Du=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,rl.useState)(!1),c=()=>{i(!n)};return(0,rl.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,wt.jsx)(Au,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,wt.jsx)("div",{className:"block md:hidden wt-8",children:(0,wt.jsx)("div",{className:"space-y-6",children:e})})]})};var Au=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,rl.useState)(""),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)(!1),u=(0,jd.usePathname)(),g=()=>{m(!c),p(!1)},y=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},v=()=>{let D=u.split("/"),E="/print"+u,B=window.open(E,"Print","width=1754,height=1240,toolbar=wt,location=wt,status=wt,menubar=wt,scrollbars=yes,resizable=yes");B&&B.focus()},k=()=>{let D=u.split("/"),E="/present"+u;console.log(E);let B=window.open(E,"Print","width=1754,height=1240,toolbar=wt,location=wt,status=wt,menubar=wt,scrollbars=yes,resizable=yes");B&&B.focus()};return(0,wt.jsx)("div",{className:l("fixed right-2 wt-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-wt-full",s?"translate-wt-0":"md:translate-wt-0"),children:(0,wt.jsxs)("div",{className:"flex flex-row-reverse wt-20 min-w-64 gap-4",children:[(0,wt.jsxs)("nav",{className:"wt-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:[(0,wt.jsxs)(Vn.default,{href:`${o}${e}`,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Edit "})]}),(0,wt.jsxs)("a",{onClick:g,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Contents "})]}),(0,wt.jsxs)("a",{onClick:y,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Related "})]}),(0,wt.jsx)("hr",{className:"dark:border-gray-400"}),(0,wt.jsxs)("a",{onClick:k,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Present"})]}),(0,wt.jsxs)("a",{onClick:v,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Print"})]})]}),c&&(0,wt.jsx)("div",{className:l("wt-50 flex shrink-0 grow-0 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:(0,wt.jsxs)("div",{className:"flex flex-col m-2 justify-start wt-50 min-w-64",children:[(0,wt.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,wt.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((D,E)=>(0,wt.jsx)("wt",{className:f(D.tag),children:(0,wt.jsx)("a",{href:`#${D.wt}`,className:`text-Tl ${n===D.wt?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},E))})]})}),d&&r&&r.length>0&&(0,wt.jsx)("div",{className:l("wt-50 flex shrink-0 grow-0 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:(0,wt.jsxs)("div",{className:"flex flex-col m-2 justify-start wt-50 min-w-64",children:[(0,wt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,wt.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((D,E)=>D.links&&D.links.length>0?D.links.map((B,le)=>(0,wt.jsxs)(Vn.default,{href:B.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[B.title,B.url.startsWith("http")&&(0,wt.jsx)(lm.ExternalLink,{className:"ml-1 h-3 w-3"})]},le)):null)})]})})]})})};var dm=h(require("next/image"));function Mu({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?wt=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,wt.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,wt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,wt.jsx)(dm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,wt.jsx)("div",{className:"absolute inset-0",style:{background:r==="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%)"}})]}),(0,wt.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,wt.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var mm=h(require("html2canvas")),Wn=require("jspdf");function Iu({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,rl.useState)(t);console.log("args",a);let{contentWithIds:n,tableOfContents:i}=No(o);if(e==="slideshow")return(0,wt.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,wt.jsx)(cs,{blocks:n,hero:a.hero,title:a.page.title})});if(e==="print")return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Lu,{layout:r,changeLayout:s}),(0,wt.jsx)(gn,{page:a.page,layout:r})]})}var Lu=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{t==="flow"?r("printable-content"):(await new Promise(s=>setTimeout(s,300)),window.print())},o=s=>{e&&e(s)},r=async s=>{console.log("elementToPrintId",s);let n=document.getElementById(s);if(!n)throw new Error(`Element with wt ${s} not found`);let i=document.createElement("canvas"),c=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*c,i.height=Math.max(n.clientHeight||0)*c+100;let m=i.getContext("2d");if(!m)throw new Error("Failed to get 2D context");let d=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((j,C)=>(j[C.src]=C,j),{});m.drawImage=function(...j){let[C,I,S,b,N,w,ye,ve,_e]=j;if(C instanceof HTMLImageElement){let ot=p[C.src].style.objectFit||"fill",xt=p[C.src].style.objectPosition||"center center";N=C.height,b=C.width;let pt=b/N,rt=ve/_e,[st,ne]=xt.split(" ");switch(ne||(ne=st),ot){case"cover":if(pt>rt){let re=N*rt,de=(b-re)/2;st==="left"&&(de=0),st==="right"&&(de=b-re),I+=de,b=re}else{let re=b/rt,de=(N-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=N-re),S+=de,N=re}break;case"contain":if(pt>rt){let re=ve/pt,de=(_e-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=_e-re),ye+=de,_e=re}else{let re=_e*pt,de=(ve-re)/2;st==="left"&&(de=0),st==="right"&&(de=ve-re),w+=de,ve=re}break;case"fill":break}}return d.call(m,C,I,S,b,N,w,ye,ve,_e)};let u=document.getElementById(s);if(!u)throw new Error(`Element with wt ${s} not found`);var g=i.width,y=i.height;let v=(await(0,mm.default)(u,{canvas:i,windowHeight:y,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),D=new Wn.jsPDF({}).getImageProperties(v),E=297,B=E*(D.height/D.width),le=new Wn.jsPDF({unit:"mm",format:[E,B]});le.addImage(v,"PNG",0,0,E,B),le.save("print.pdf")};return(0,wt.jsx)("div",{className:l("fixed right-2 wt-20 top-20 space-y-6 print:hidden"),children:(0,wt.jsx)("div",{className:"flex flex-row-reverse wt-20 min-w-70 gap-4",children:(0,wt.jsxs)("nav",{className:"wt-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:[(0,wt.jsxs)("a",{onClick:a,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Print"})]}),(0,wt.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,wt.jsxs)("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Portrait"})]}),(0,wt.jsxs)("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Landscape"})]}),(0,wt.jsxs)("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
27
+ dark bg-background text-primary`,children:[(0,wt.jsxs)("div",{className:"flex px-6 items-center space-wt-2",children:[a&&(0,wt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,wt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,wt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})})},dc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=No(e),o=(0,rl.useRef)(null),r=(0,rl.useRef)(null),s=(0,rl.useRef)(new By.Previewer),[n,i]=(0,rl.useState)(0),m=[{wt:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,rl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[]);return(0,rl.useEffect)(()=>{s.current=new By.Previewer,d()},[d,t]),(0,wt.jsxs)("div",{className:"pagedjs-container",children:[(0,wt.jsx)("div",{wt:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>{var g,y;return(0,wt.jsx)(wt.Fragment,{children:u===0?(0,wt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,wt.jsx)(hr,{hero:e.hero,title:e.title})},u):(0,wt.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Wp("185mm")}px]`,((y=(g=p.theme)==null?void 0:g.settings)==null?void 0:y.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,wt.jsx)(vr,{title:p.blockName}),(0,wt.jsx)(Ao,{blocks:[p],fill:!0})]},u)})})}),(0,wt.jsx)("div",{ref:o,className:"preview-container"})]})};var bn=h(require("clsx"));function Up({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,wt.jsx)(c,{...u}):n?({href:u,children:g,...y})=>(0,wt.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:g}):u=>(0,wt.jsx)("a",{...u});return(0,wt.jsxs)(Ya,{...m,variant:"inset",children:[(0,wt.jsx)(qa,{children:(0,wt.jsx)(lt,{children:(0,wt.jsx)(We,{children:i?(0,wt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,wt.jsx)(Ne,{className:"bg-gray-200 my-2 w-full h-7"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,wt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,wt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,wt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,wt.jsxs)(Ra,{children:[(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,wt.jsx)(Ne,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,wt.jsxs)(Ra,{children:[e&&!i&&e.map((u,g)=>(0,wt.jsx)(Xp,{subNav:u,pathName:r,Link:p},g)),(0,wt.jsx)(Nt,{className:"wt-auto",children:(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:t&&!i&&t.map(u=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ct,{asChild:!0,size:"sm",children:(0,wt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,wt.jsx)(u.icon,{}),(0,wt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,wt.jsx)(Ka,{})]})}function Xp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsx)(Nt,{className:"py-0",children:(0,wt.jsx)(lt,{children:(0,wt.jsx)(Zt,{asChild:!0,defaultOpen:o.isActive,children:(0,wt.jsxs)(We,{children:[(0,wt.jsx)(Ct,{asChild:!0,tooltip:o.label,className:(0,bn.default)(r&&"font-bold text-accent"),children:(0,wt.jsxs)(a,{href:o.url,children:[o.icon&&(0,wt.jsx)(o.icon,{}),(0,wt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Pa,{asChild:!0,children:(0,wt.jsxs)(er,{className:"data-[state=open]:rotate-90",children:[(0,wt.jsx)(Tl.ChevronRight,{}),(0,wt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,wt.jsx)(ka,{children:(0,wt.jsx)(Ta,{children:(n=o.links)==null?void 0:n.map(i=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,className:(0,bn.default)(i.url===t&&"font-bold text-accent"),children:(0,wt.jsx)(a,{href:i.url,children:(0,wt.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var mc=h(require("clsx"));var Yp=()=>(0,wt.jsx)(Ze,{iconName:"github",size:"10x"});function qp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let y=d?f=>(0,wt.jsx)(d,{...f}):m?({item:f,children:v,...k})=>(0,wt.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:v}):f=>(0,wt.jsx)("a",{href:f.href,...f});return(0,wt.jsxs)(Ya,{side:"right",variant:"inset",...p,children:[(0,wt.jsxs)(qa,{className:"border-b border-sidebar-border",children:[(0,wt.jsxs)(lt,{className:"flex-row space-wt-1",children:[(0,wt.jsx)(We,{children:(0,wt.jsxs)(Ct,{onClick:s,children:[(0,wt.jsx)(Tl.FilePlus,{})," ",(0,wt.jsx)("span",{children:"Add Document"})]})}),c&&(0,wt.jsx)(We,{children:(0,wt.jsx)(Ct,{onClick:c,tooltip:"Open in GitHub",children:(0,wt.jsx)(Yp,{})})})]}),(0,wt.jsxs)(lt,{className:"flex-row space-wt-1",children:[(0,wt.jsx)(We,{className:"w-5/12",children:(0,wt.jsxs)(Ct,{onClick:()=>n(),variant:r?"outline":"default",className:(0,mc.default)(r&&"text-accent"),children:[(0,wt.jsx)(Tl.Edit,{})," ",(0,wt.jsx)("span",{children:"Edit"})]})}),(0,wt.jsx)(We,{className:"w-5/12",children:(0,wt.jsxs)(Ct,{onClick:i,children:[(0,wt.jsx)(Tl.Printer,{})," ",(0,wt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Editor Controls",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:a})})]})}),(0,wt.jsx)(Zo,{className:"mx-0"})]}),(0,wt.jsxs)(Ra,{className:"overflow-auto",children:[o&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{children:"Related Content"}),(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:Array.from({length:3}).map((f,v)=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ne,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{children:"Table of Contents"}),(0,wt.jsx)(It,{children:(0,wt.jsx)(lt,{children:Array.from({length:3}).map((f,v)=>(0,wt.jsx)(We,{children:(0,wt.jsx)(Ne,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Related Content",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:(0,wt.jsx)(lt,{children:e&&Object.keys(e).map(f=>(0,wt.jsxs)(We,{children:[(0,wt.jsxs)("span",{className:"p-2 text-Tl text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,wt.jsx)(Ta,{children:e[f].map(v=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,isActive:!1,size:"sm",children:(0,wt.jsxs)(y,{href:v.url,item:v,className:"flex justify-between items-center w-full text-Tl",children:[(0,wt.jsx)("span",{children:v.label}),v.type==="note"&&(0,wt.jsx)(Tl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,wt.jsx)(Ze,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},f))})})})]})}),t&&!o&&(0,wt.jsx)(Zt,{defaultOpen:!0,className:"group/collapsible",children:(0,wt.jsxs)(Nt,{children:[(0,wt.jsx)(ta,{asChild:!0,children:(0,wt.jsxs)(Pa,{children:["Table of Contents",(0,wt.jsx)(Tl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,wt.jsx)(It,{children:(0,wt.jsx)(ka,{children:(0,wt.jsx)(lt,{children:t.map(f=>{var v;return(0,wt.jsxs)(We,{children:[(0,wt.jsx)(Ct,{asChild:!0,children:(0,wt.jsx)("a",{href:`#${f.url}`,className:"text-Tl",children:f.title})}),(v=f.items)!=null&&v.length?(0,wt.jsx)(Ta,{children:f.items.map(k=>(0,wt.jsx)(Da,{children:(0,wt.jsx)(Aa,{asChild:!0,isActive:k.isActive,size:"sm",children:(0,wt.jsx)("a",{href:`#${k.url}`,className:"flex justify-between items-center w-full text-Tl",children:(0,wt.jsx)("span",{children:k.title})})})},k.title))}):null]},f.title)})})})})]})})]}),(0,wt.jsx)(Ka,{})]})}var uc=h(require("next/image"));function Kp({title:e,members:t}){return(0,wt.jsx)(ke,{className:"mb-6",children:(0,wt.jsxs)("div",{className:"p-6",children:[(0,wt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,wt.jsx)(Tl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,wt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,wt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,wt.jsxs)("div",{className:"flex items-center space-wt-4",children:[(0,wt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,wt.jsx)(uc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,wt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var fc=h(require("next/link"));var Qp=({links:e,title:t="Related Content"})=>(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:t})}),(0,wt.jsx)(ze,{children:(0,wt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,wt.jsxs)(fc.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,wt.jsx)(Tl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var yn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function vn({pages:e}){let t=(0,jd.useSearchParams)(),a=(0,jd.usePathname)(),{replace:o}=(0,jd.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,rl.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,wt.jsx)("div",{className:"wt-12",children:(0,wt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,wt.jsx)("wt",{children:(0,wt.jsx)("button",{className:l(yn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,wt.jsx)(as.FaArrowLeft,{})})}),d.map((p,u)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)("a",{className:l(yn,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,wt.jsx)("wt",{children:(0,wt.jsx)("button",{className:l(yn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,wt.jsx)(as.FaArrowRight,{})})})]})})}var Iv=l("transition-colors duration-400 hover:text-primary ease-in-out");function xr({title:e,links:t}){let a=(0,jd.useSearchParams)(),o=(0,jd.usePathname)(),{replace:r}=(0,jd.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,wt.jsx)(ze,{children:t&&t.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,wt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,wt.jsxs)("wt",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,wt.jsx)(Tl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function xn({types:e}){let[t,a]=(0,rl.useState)(e&&e[0].href),o=(0,jd.useSearchParams)(),r=(0,jd.usePathname)(),{replace:s}=(0,jd.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,wt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-wt-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,wt.jsx)(L,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var hc=h(require("next/image"));var wn=({links:e,media:t,children:a,richText:o})=>(0,wt.jsxs)("div",{className:"relative -wt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,wt.jsx)("div",{className:"container wt-[20rem] mb-8 wt-10 relative flex items-end justify-center",children:(0,wt.jsxs)("div",{className:"text-center container",children:[a||o&&(0,wt.jsx)(fe,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,wt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Vt,{...r})},s))})]})}),(0,wt.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,wt.jsx)(ca,{fill:!0,imgClassName:"wt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,wt.jsx)("div",{children:(0,wt.jsx)(hc.default,{className:"-wt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,wt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var Nn=h(require("next/image"));var Jp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,wt.jsx)(Nn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,wt.jsx)("div",{children:(0,wt.jsx)(Nn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Cn=({links:e,media:t,children:a,richText:o})=>(0,wt.jsxs)("div",{className:"relative bg-brand-one pb-12 wt-20 pt-10",children:[t&&(0,wt.jsx)(Jp,{media:t}),(0,wt.jsx)("div",{className:"mx-0 min-w-full relative wt-9",children:(0,wt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,wt.jsx)(fe,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Pn=({children:e,richText:t})=>(0,wt.jsx)("div",{className:"min-w-full py-10 bg-muted wt-24",children:(0,wt.jsx)("div",{className:"container",children:e||t&&(0,wt.jsx)(fe,{content:t,enableGutter:!1})})});var xc=h(require("react")),wc=h(require("next/image"));var Zp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,wt.jsxs)("div",{className:"relative grid",children:[(0,wt.jsx)("div",{className:"relative wt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,wt.jsxs)("div",{className:"container mx-auto",children:[(0,wt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,wt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,wt.jsx)("p",{children:o.map((i,c)=>(0,wt.jsxs)(xc.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.wt))})]}),r&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,wt.jsx)("time",{dateTime:r,children:ac(r)})]}),t&&t.length>0&&(0,wt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,wt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,wt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,wt.jsx)(St,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.wt||c))})]})]})]})}),(0,wt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,wt.jsx)(wc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,wt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var fs=require("@heroicons/react/20/solid");var Nc=h(require("next/image"));function kn({title:e,breadcrumbItems:t,image:a}){return(0,wt.jsxs)("section",{className:"-wt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,wt.jsx)("div",{className:"absolute inset-0 wt-0",children:a&&(0,wt.jsx)(Nc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,wt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"relative wt-10 flex flex-wrap items-center justify-between gap-wt-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,wt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,wt.jsx)(Sn,{breadcrumbItems:t})]})})]})}var eu={highImpact:wn,lowImpact:Pn,mediumImpact:Cn,sectionHero:kn},tu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=eu[t];return a?(0,wt.jsx)(a,{...e}):null};function Sn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,wt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,wt.jsxs)("ol",{role:"list",className:"flex items-center space-wt-4",children:[(0,wt.jsx)("wt",{children:(0,wt.jsx)("div",{children:(0,wt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,wt.jsx)(fs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,wt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,wt.jsx)("wt",{children:(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(fs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,wt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,wt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,wt.jsx)(wt.Fragment,{})}var vt=require("@headlessui/react"),ys=require("@heroicons/react/24/outline");var au=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,wt.jsx)("a",{href:o,className:"flex items-center gap-wt-1 text-sm font-semibold text-foreground group",children:(0,wt.jsxs)("span",{className:"relative",children:[e,(0,wt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-wt-1/2 scale-wt-0 transition-transform duration-300 ease-in-out group-hover:scale-wt-100"})]})}):(0,wt.jsxs)(vt.Popover,{children:[(0,wt.jsxs)(vt.PopoverButton,{className:"flex items-center gap-wt-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,wt.jsxs)("span",{className:"relative",children:[e,(0,wt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-wt-1/2 scale-wt-0 transition-transform duration-300 ease-in-out group-hover:scale-wt-100"})]}),(0,wt.jsx)(fs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,wt.jsxs)(vt.PopoverPanel,{transition:!0,className:"absolute inset-wt-0 top-0 -wt-10 bg-popover wt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,wt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-wt-4 px-6 py-10 lg:px-8 xl:gap-wt-8 wt-50",children:t&&t.map(r=>(0,wt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,wt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,wt.jsx)(Cc,{icon:r.icon,size:"4x"})}),(0,wt.jsxs)("a",{href:r.href,className:"wt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,wt.jsx)("span",{className:"absolute inset-0"})]}),(0,wt.jsx)("p",{className:"wt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,wt.jsx)("div",{className:"bg-gray-50",children:(0,wt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,wt.jsx)("div",{className:"grid grid-cols-3 divide-wt divide-gray-900/5 border-wt border-gray-900/5",children:a.map(r=>(0,wt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-wt-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,wt.jsx)(Cc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Cc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,wt.jsx)(Ze,{...e,size:a});if("src"in e)return(0,wt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,wt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},gs=au;var bs=["light","dark","green"];function ou({title:e,logo:t,menuItems:a}){let[o,r]=(0,rl.useState)(!1),[s,n]=(0,rl.useState)(!1),[i,c]=(0,rl.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,rl.useState)(`${m}.${d}`),g=f=>{bs.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,rl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let y=()=>{let f=bs[(bs.indexOf(i)+1)%bs.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,wt.jsxs)("header",{className:"relative isolate wt-10 bg-background h-14",children:[(0,wt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,wt.jsx)("div",{className:"flex lg:flex-1",children:(0,wt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:e}),(0,wt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,wt.jsx)("div",{className:"flex lg:hidden",children:(0,wt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,wt.jsx)(ys.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,wt.jsx)(vt.PopoverGroup,{className:"hidden lg:flex lg:gap-wt-12",children:a.map(f=>(0,wt.jsx)(gs,{...f},f.name))}),(0,wt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,wt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,wt.jsx)(fs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,wt.jsx)(fs.MoonIcon,{className:"h-6 w-6"}):(0,wt.jsx)(fs.SunIcon,{className:"h-6 w-6"})})})]}),(0,wt.jsxs)(vt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,wt.jsx)("div",{className:"fixed inset-0 wt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,wt.jsxs)(vt.DialogPanel,{className:"fixed inset-y-0 right-0 wt-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,wt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,wt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,wt.jsx)(ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,wt.jsx)("div",{className:"wt-6 flow-root",children:(0,wt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,wt.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,wt.jsx)(ru,{...f},f.name))})})})]})]})]})}function ru({name:e,items:t,actions:a,href:o}){return!t&&o?(0,wt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,wt.jsxs)(vt.Disclosure,{as:"div",className:"-mx-3",children:[(0,wt.jsx)(vt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,wt.jsx)(vt.DisclosurePanel,{className:"wt-2 space-y-2",children:t&&t.map(r=>(0,wt.jsx)(vt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var Tc=h(require("next/image"));var Rn=h(require("next/image"));function Va({logoLight:e,logoDark:t,mobile:a=!1}){return(0,wt.jsxs)(Ge,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,wt.jsx)(Rn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,wt.jsx)(Rn.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var kc=require("next-themes");function Cr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,rl.useState)(!1),[n,i]=(0,rl.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,kc.useTheme)();(0,rl.useEffect)(()=>{i(m||"dark")},[m]);let p=()=>{let u=c[(c.indexOf(n)+1)%c.length];i(u),d(u)};return(0,rl.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsx)("header",{className:`wt-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,wt.jsx)(Oe,{className:"px-0",children:(0,wt.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,wt.jsx)(Va,{logoDark:a,logoLight:t}),(0,wt.jsx)(vt.PopoverGroup,{className:"hidden lg:flex lg:gap-wt-12",children:o&&o.map(u=>(0,wt.jsx)(gs,{...u},u.name))}),(0,wt.jsx)("div",{className:"flex items-center space-wt-4",children:(0,wt.jsx)("button",{className:"fixed right-4 wt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(Tl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(Tl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Tn=["light","dark"];function Pr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,rl.useState)(!1),{theme:n,setTheme:i}=(0,kc.useTheme)(),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)("light");(0,rl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,rl.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=Tn[(Tn.indexOf(d)+1)%Tn.length];p(g),i(g)};return(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)("header",{className:`wt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,wt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,wt.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&wt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,wt.jsx)(Va,{logoDark:t,logoLight:e,mobile:!0}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-4",children:[(0,wt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,wt.jsx)(ys.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,wt.jsx)("button",{className:"fixed right-16 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(Tl.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(Tl.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,wt.jsxs)(vt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,wt.jsx)("div",{className:"fixed inset-0 wt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,wt.jsxs)(vt.DialogPanel,{className:"fixed inset-y-0 right-0 wt-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,wt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,wt.jsx)(Va,{logoDark:t,logoLight:e,mobile:!0}),(0,wt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,wt.jsx)(ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,wt.jsx)("div",{className:"wt-6 flow-root",children:(0,wt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,wt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,wt.jsx)(su,{...g},g.name))})})})]})]})]})})}function su({name:e,items:t,actions:a,href:o}){return!t&&o?(0,wt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,wt.jsxs)(vt.Disclosure,{as:"div",className:"-mx-3",children:[(0,wt.jsx)(vt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,wt.jsx)(vt.DisclosurePanel,{className:"wt-2 space-y-2",children:t&&t.map(r=>(0,wt.jsx)(vt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function iu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,rl.useState)(!1),[c,m]=(0,rl.useState)(!1),d=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,rl.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,wt.jsxs)("div",{className:"relative h-screen",children:[(0,wt.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,wt.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,wt.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,wt.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,wt.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 wt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,wt.jsx)(Tl.Menu,{className:"w-6 h-6 text-white"})}),(0,wt.jsxs)("div",{className:"fixed top-0 left-0 right-0 wt-50",children:[(0,wt.jsx)(Cr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,wt.jsx)(Pr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,wt.jsxs)("div",{className:"absolute inset-0 h-full wt-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,wt.jsx)(Tc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto wt-8 hidden lg:block",c&&"lg:hidden")}),(0,wt.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,wt.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,wt.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,wt.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,wt.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,wt.jsx)(Tl.ChevronDown,{size:64})})})]})]})}var Dc=h(require("next/image"));var nu=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Dn=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),An=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Mn=l("flex items-center gap-5"),Ns=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function lu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,wt.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,wt.jsx)("div",{className:"py-16 md:py-20",children:(0,wt.jsx)("div",{className:"container",children:(0,wt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,wt.jsx)(Va,{logoLight:a,logoDark:o}),(0,wt.jsx)("p",{className:"mb-7 wt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,wt.jsx)("nav",{"aria-label":"social links",children:(0,wt.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-wt rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{"aria-label":m.href,className:nu,href:m.href,openNewTab:!0,children:(0,wt.jsx)("span",{children:m.icon})})},d))})})]}),(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,wt.jsx)("h3",{className:Dn,children:s.title}),s.links&&s.links.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,wt.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,wt.jsxs)("wt",{className:"flex items-center gap-2.5",children:[(0,wt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,wt.jsx)(as.FaChevronRight,{})}),(0,wt.jsx)(Ge,{href:m.href,openNewTab:m.openNewTab,className:Ns,children:m.label})]},m.label))})})]}),(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,wt.jsx)("h3",{className:Dn,children:n.title}),(0,wt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaPaperPlane,{})}),(0,wt.jsx)("address",{className:"not-italic",children:n.location})]}),(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,wt.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,wt.jsx)("a",{href:`mailto:${m}`,className:Ns,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,wt.jsxs)("wt",{className:Mn,children:[(0,wt.jsx)("span",{className:An,children:(0,wt.jsx)(as.FaPhone,{})}),(0,wt.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,wt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ns,children:m},d))})]})]})]}),i&&(0,wt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,wt.jsx)("h3",{className:Dn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,wt.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,wt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,wt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,wt.jsx)(Dc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,wt.jsx)("span",{className:"text-accent",children:(0,wt.jsx)(as.FaCalendarDays,{})}),(0,wt.jsx)("span",{children:oc(m.date)})]}),(0,wt.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,wt.jsx)(Ge,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,wt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,wt.jsx)("div",{className:"container",children:(0,wt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-wt-8 gap-y-4 md:gap-wt-10",children:[(0,wt.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,wt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,wt.jsx)("ul",{className:"flex flex-wrap items-center gap-wt-4 md:gap-wt-7",children:c.links.map(m=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{"aria-label":`rl to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ns,children:m.label})},m.label))})})]})})})]})}function du({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,wt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 wt-50",r),children:[(0,wt.jsx)(Cr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,wt.jsx)(Pr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function cu({children:e,...t}){return(0,wt.jsx)(kc.ThemeProvider,{...t,children:e})}var fo=require("sonner");function In({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,rl.useState)([]),s=(0,jd.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.wt))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(fo.toast.success(d.message),s.refresh()):fo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(fo.toast.success(d.message),s.refresh()):fo.toast.error(`Error: ${d.message}`),r([])};return(0,wt.jsxs)("div",{className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,wt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,wt.jsxs)("div",{className:"space-wt-2",children:[(0,wt.jsx)(L,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,wt.jsx)(L,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,wt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,wt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,wt.jsx)("wt",{className:"px-4 py-4 sm:px-6",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(zt,{wt:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,wt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,wt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,wt.jsx)("wt",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsx)(zt,{wt:`select-${d.wt}`,checked:o.includes(d.wt),onCheckedChange:()=>i(d.wt),className:"border-accent"}),(0,wt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,wt.jsxs)(ra,{className:"h-10 w-10",children:[(0,wt.jsx)(sa,{src:d.userImage,alt:d.userName}),(0,wt.jsx)(ia,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,wt.jsx)("div",{className:"ml-3",children:(0,wt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,wt.jsx)(St,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.wt))]})}),(0,wt.jsx)(fo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"wt-50"})]})}var Ln=require("date-fns");var Bc=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Rr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Ec=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Rr(o))return .5;for(;o<=r;)Rr(o)||s++,o.setDate(o.getDate()+1);return s},zc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var mu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,wt.jsx)("div",{className:"flex space-wt-2",children:e.map((r,s)=>(0,wt.jsx)(L,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function En({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,rl.useState)(new Date),[r,s]=(0,rl.useState)(new Date),[n,i]=(0,rl.useState)("Full Day"),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)(1),u=(0,jd.useRouter)();(0,rl.useEffect)(()=>{let f=zc(a,r);m(f),f&&i("Full Day")},[a,r]),(0,rl.useEffect)(()=>{if(!a||!r){p(0);return}let f=Ec(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return(0,wt.jsxs)("div",{className:"max-w-2xl",children:[(0,wt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,wt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,wt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){fo.toast.error("Please select both start and end dates");return}if(d>e){fo.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",n),v.append("duration",d.toString());let k=await(t||pu)(v);k.success?(fo.toast.success(k.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):fo.toast.error(`Error: ${k.message}`)},className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,wt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"startDate",children:"Start Date"}),(0,wt.jsxs)(lr,{children:[(0,wt.jsx)(dr,{asChild:!0,children:(0,wt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ln.format)(a,"PPP"):(0,wt.jsx)("span",{children:"Pick a date"})]})}),(0,wt.jsx)(Do,{className:"w-auto p-0",align:"start",children:(0,wt.jsx)(pr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,wt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"endDate",children:"End Date"}),(0,wt.jsxs)(lr,{children:[(0,wt.jsx)(dr,{asChild:!0,children:(0,wt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ln.format)(r,"PPP"):(0,wt.jsx)("span",{children:"Pick a date"})]})}),(0,wt.jsx)(Do,{className:"w-auto p-0",align:"start",children:(0,wt.jsx)(pr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{children:"Leave Type"}),(0,wt.jsx)(mu,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,c,c]})]}),(0,wt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,wt.jsx)(L,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,wt.jsx)(fo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"wt-50"})]})}var pu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Fc(...e){return e.filter(Boolean).join(" ")}function zn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,wt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,wt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,wt.jsxs)("div",{className:"sm:flex-auto",children:[(0,wt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,wt.jsx)("p",{className:"wt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,wt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,wt.jsxs)(L,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,wt.jsx)(Tl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,wt.jsx)(L,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,wt.jsxs)(L,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,wt.jsx)(Tl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,wt.jsx)("div",{className:"wt-8 flow-root",children:(0,wt.jsx)("div",{className:"-mx-4 -my-2 overflow-wt-auto sm:-mx-6 lg:-mx-8",children:(0,wt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,wt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,wt.jsx)("thead",{className:"sticky top-0 wt-20 bg-white",children:(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 wt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,wt.jsxs)("th",{scope:"col",className:`sticky top-0 wt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Rr(p)?"bg-gray-200":""}`,children:[(0,wt.jsx)("div",{children:c(p)}),(0,wt.jsx)("div",{children:d+1})]},d)})]})}),(0,wt.jsx)("tbody",{children:o.map((m,d)=>(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("Tl",{className:Fc(d!==o.length-1?"border-gray-200":"","sticky left-0 wt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,wt.jsxs)("div",{className:"flex items-center",children:[(0,wt.jsxs)(ra,{className:"h-11 w-11",children:[(0,wt.jsx)(sa,{src:m.image,alt:m.name}),(0,wt.jsx)(ia,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,wt.jsx)("div",{className:"ml-4",children:(0,wt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),y=a.find(f=>f.userId===m.wt&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,wt.jsx)("Tl",{className:Fc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Rr(g)?"bg-gray-200":""),children:(0,wt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${m.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,wt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.wt}-${u}`)})]},m.wt))})]})})})})]})}function Hn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,rl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,wt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,wt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,wt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,wt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,wt.jsx)("div",{className:"flex items-center",children:(0,wt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,wt.jsxs)(L,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,wt.jsx)(Tl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,wt.jsx)(L,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,wt.jsxs)(L,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,wt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,wt.jsx)(Tl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,wt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-Tl font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["W",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"wt"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["wt",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"wt"})]}),(0,wt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,wt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,wt.jsxs)("div",{className:"flex bg-gray-200 text-Tl leading-6 text-gray-700 lg:flex-auto",children:[(0,wt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,wt.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,wt.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,wt.jsx)("ol",{className:"wt-2 space-y-1",children:d.holidays.map(p=>(0,wt.jsx)("wt",{children:(0,wt.jsx)("div",{className:`text-Tl px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.wt))})]},d.date.toISOString()))}),(0,wt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,wt.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:wt-10"),children:[(0,wt.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,wt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,wt.jsx)("span",{className:"-mx-0.5 wt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,wt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.wt))})]},d.date.toISOString()))})]})]})]})}var Wa=require("lucide-react");function _c(...e){return e.filter(Boolean).join(" ")}function uu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,rl.useState)("Calendar View"),d=(0,$c.useRouter)(),p=!1,u=(0,Ln.parseISO)(a),g=async f=>{let v=(0,Ln.format)(f,"wt-MM-yyyy"),k=new URL(window.location.href);return k.searchParams.set("date",v),d.push(k.toString()),{success:!0}};if(p)return(0,wt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,wt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let y=[{name:"Grid View",icon:Wa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Wa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Wa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Wa.CheckSquare,current:c==="Approve Leave"}];return(0,wt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,wt.jsxs)("div",{className:"mb-8",children:[(0,wt.jsxs)("div",{className:"sm:hidden",children:[(0,wt.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(f=>(0,wt.jsx)("option",{children:f.name},f.name))}),(0,wt.jsx)(Tl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,wt.jsx)("div",{className:"hidden sm:block",children:(0,wt.jsx)("div",{className:"border-b border-gray-200",children:(0,wt.jsx)("nav",{className:"-mb-px flex space-wt-8","aria-label":"Tabs",children:y.map(f=>(0,wt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:_c(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,wt.jsx)(f.icon,{className:_c(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,wt.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,wt.jsx)(zn,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,wt.jsx)(Hn,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,wt.jsx)(En,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,wt.jsx)(In,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Fn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var le,j,C,I,S;let[i,c]=(0,rl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,rl.useState)(""),[p,u]=(0,rl.useState)(!1),[g,y]=(0,rl.useState)(null);(0,rl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(u(!1),y(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},v=(b,N)=>{c(w=>({...w,[b]:N}))},k=b=>{let N=(i.categories||[]).includes(b)?(i.categories||[]).filter(w=>w!==b):[...i.categories||[],b];v("categories",N)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let N=await n(b);if(!N.success){console.error("Failed to add comment:",N.errors);return}}catch(N){console.error("Failed to add comment:",N)}c(N=>({...N,comments:[...N.comments||[],b]})),d("")}},E=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},B=b=>t==null?void 0:t.find(N=>N.wt===Number(b));return(0,wt.jsx)(kt,{open:!0,children:(0,wt.jsxs)(bt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,wt.jsxs)(Bt,{className:"flex flex-row items-center justify-between",children:[(0,wt.jsx)(Et,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,wt.jsxs)("div",{className:"flex space-wt-2",children:[(0,wt.jsx)(L,{variant:"outline",onClick:r,children:"Close"}),(0,wt.jsxs)(L,{onClick:f,disabled:!p,children:[(0,wt.jsx)(Tl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,wt.jsxs)(La,{className:"flex-grow pr-4",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,wt.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,wt.jsx)(nt,{type:"number",value:i.value,onChange:b=>v("value",Number(b.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,wt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(le=i.value)==null?void 0:le.toLocaleString()]})}),(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,wt.jsxs)(to,{value:((C=(j=i==null?void 0:i.assignee)==null?void 0:j.wt)==null?void 0:C.toString())||"",onValueChange:b=>v("assignee",B(b)),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select assignee"})}),(0,wt.jsx)(Ha,{children:t&&t.map(b=>{var N;return(0,wt.jsx)(Fa,{value:((N=b==null?void 0:b.wt)==null?void 0:N.toString())||"",children:b.name},b.wt)})})]}):(0,wt.jsxs)("div",{className:"flex items-center space-wt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,wt.jsx)(Tl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,wt.jsx)("span",{children:i.assignee.name})]})]}),(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,wt.jsx)(nt,{type:"date",value:(S=(I=i.closureDate)==null?void 0:I.split("wt")[0])!=null?S:"",onChange:b=>v("closureDate",b.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,wt.jsxs)("div",{className:"flex items-center space-wt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,wt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("wt-GB"):"N/wt"})]})]})]}),(0,wt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,wt.jsx)(Oa,{value:i.description||"",onChange:b=>v("description",b.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,wt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,wt.jsxs)(to,{value:i.status,onValueChange:b=>{v("status",b),y(null)},children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select status"})}),(0,wt.jsx)(Ha,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,wt.jsx)(Fa,{value:b,children:b},b))})]}):(0,wt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:i.status})]}),(0,wt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,wt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var N,w;return(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:((N=b.wt)==null?void 0:N.toString())||"",checked:(i.categories||[]).some(ye=>ye.wt===b.wt),onCheckedChange:()=>b.wt!==void 0&&k(b)}),(0,wt.jsx)("label",{htmlFor:((w=b.wt)!=null?w:"").toString(),className:`text-sm font-medium ${E(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.wt)})}):(0,wt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let N=b;return N?(0,wt.jsx)(St,{variant:"secondary",className:E(N.type||"sector"),children:N.name},N.wt):null})})]})]}),(0,wt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,wt.jsxs)("div",{className:"grid gap-2",children:[(0,wt.jsx)(ue,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,wt.jsx)(La,{className:"h-[200px] overflow-y-auto",children:(0,wt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((b,N)=>new Date(N.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var N;return(0,wt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,wt.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,wt.jsxs)("p",{className:"text-Tl text-gray-500 wt-1",children:[(N=b==null?void 0:b.author)==null?void 0:N.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.wt)})})}),(0,wt.jsxs)("div",{className:"flex wt-2",children:[(0,wt.jsx)(nt,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,wt.jsxs)(L,{onClick:D,className:"ml-2",children:[(0,wt.jsx)(Tl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,wt.jsxs)("div",{className:"text-Tl text-gray-500 wt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function On({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.wt)});return(0,wt.jsxs)(ke,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,wt.jsxs)(Ue,{className:"pb-2",children:[(0,wt.jsx)("div",{className:"flex justify-between items-center",children:(0,wt.jsx)(Xe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,wt.jsx)("p",{className:"text-sm text-gray-500 wt-1",children:e.description})]}),(0,wt.jsxs)(ze,{children:[(0,wt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,wt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,wt.jsx)(Tl.UserIcon,{className:"w-4 h-4 mr-1 text-Tl"}),(0,wt.jsx)("span",{children:e.assignee.name})]}),(0,wt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,wt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,wt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,wt.jsxs)("div",{className:"flex items-center text-Tl text-gray-500",children:[(0,wt.jsx)(Tl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,wt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,wt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,wt.jsx)(St,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-Tl",children:r.name})})]})]})}var Rs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function _n({onSubmit:e}){var r;let[t,a]=(0,rl.useState)({name:"",intro:"",active:!0});return(0,wt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"customerName",children:"Customer Name"}),(0,wt.jsx)(nt,{wt:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)(ue,{htmlFor:"customerIntro",children:"Intro"}),(0,wt.jsx)(Oa,{wt:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,wt.jsx)(ue,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,wt.jsx)(L,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Gn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var E,B,le,j;let[i,c]=(0,rl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("wt")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,rl.useState)(!1),[p,u]=(0,rl.useState)({});(0,rl.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let C={};return i.customer||(C.customer="Customer wt required"),i.value||(C.value="Value wt required"),i.assignee||(C.assignee="Assignee wt required"),i.closureDate||(C.closureDate="Closure Date wt required"),u(C),Object.keys(C).length===0},y=async C=>{C.preventDefault(),u({});try{if(g()){let I=await o({...i});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):u(I.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=C=>{console.log(C),c(I=>({...I,categories:(I.categories||[]).includes(C.wt)?(I.categories||[]).filter(S=>S!==C.wt):[...I.categories||[],C.wt]}))},v=async C=>{c({...i,customer:C});try{let I=await s(C);I.success?d(!1):u(I.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},k=C=>t==null?void 0:t.find(I=>I.wt===Number(C)),D=C=>e==null?void 0:e.find(I=>I.wt===Number(C));return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,wt.jsx)(La,{className:"h-[60vh] pr-4",children:(0,wt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"customer",children:"Customer"}),(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsxs)(to,{value:(B=(E=i.customer)==null?void 0:E.wt)==null?void 0:B.toString(),onValueChange:C=>c({...i,customer:D(C)}),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select customer"})}),(0,wt.jsx)(Ha,{children:e.map(C=>{var I;return(0,wt.jsx)(Fa,{value:((I=C.wt)==null?void 0:I.toString())||"",children:C.name},C.wt)})})]}),(0,wt.jsx)(L,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,wt.jsx)(Tl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"value",children:"Value"}),(0,wt.jsx)(nt,{wt:"value",type:"number",value:i.value||"",onChange:C=>c({...i,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"assignee",children:"Assignee"}),(0,wt.jsxs)(to,{value:(j=(le=i.assignee)==null?void 0:le.wt)==null?void 0:j.toString(),onValueChange:C=>c({...i,assignee:k(C)}),children:[(0,wt.jsx)(za,{children:(0,wt.jsx)(ao,{placeholder:"Select assignee"})}),(0,wt.jsx)(Ha,{children:t&&t.map(C=>{var I;return(0,wt.jsx)(Fa,{value:((I=C.wt)==null?void 0:I.toString())||"",children:C.name},C.wt)})})]}),p.assignee&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"description",children:"Description"}),(0,wt.jsx)(Oa,{wt:"description",value:i.description||"",onChange:C=>c({...i,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{children:"Categories"}),(0,wt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,wt.jsxs)("div",{className:"space-y-2",children:[(0,wt.jsx)("h4",{className:"text-sm font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,wt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===C).map(I=>{var S;return(0,wt.jsxs)("div",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(zt,{wt:I.wt.toString(),checked:(S=i.categories)==null?void 0:S.includes(I.wt),onCheckedChange:()=>f(I)}),(0,wt.jsx)("label",{htmlFor:I.wt.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.wt)})})]},C))})]}),(0,wt.jsxs)("div",{className:"space-y-2 space-wt-2",children:[(0,wt.jsx)(ue,{htmlFor:"closureDate",children:"Closure Date"}),(0,wt.jsx)(nt,{wt:"closureDate",type:"date",value:i.closureDate||"",onChange:C=>c({...i,closureDate:C.target.value})}),p.closureDate&&(0,wt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,wt.jsx)(L,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,wt.jsx)(kt,{open:m,onOpenChange:d,children:(0,wt.jsxs)(bt,{children:[(0,wt.jsx)(Bt,{children:(0,wt.jsx)(Et,{children:"Add New Customer"})}),(0,wt.jsx)(_n,{onSubmit:v})]})})]})}function jn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,rl.useState)(!1);return(0,wt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,wt.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,wt.jsxs)(kt,{open:d,onOpenChange:p,children:[(0,wt.jsx)(Wr,{asChild:!0,children:(0,wt.jsxs)(L,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,wt.jsx)(Tl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,wt.jsxs)(bt,{children:[(0,wt.jsx)(Bt,{children:(0,wt.jsx)(Et,{children:"Add New Deal"})}),(0,wt.jsx)(Gn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,wt.jsx)(Rs.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,wt.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,y)=>(0,wt.jsx)(Rs.Draggable,{draggableId:g.wt.toString(),index:g.wt,children:f=>(0,wt.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,wt.jsx)(On,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.wt.toString())),u.placeholder]})}),(0,wt.jsxs)("div",{className:"wt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,wt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,wt.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,wt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,wt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var fu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function gu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,n]=(0,rl.useState)(null),i=u=>{var g;return((g=e.deals)!=null?g:[]).filter(y=>y.status===u)},c=u=>u.reduce((g,y)=>g+(y.value||0),0),m=(u,g)=>{let y={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,v)=>f+(v.value||0)*y[g],0)},d=(0,rl.useCallback)(u=>{var E,B;let{source:g,destination:y}=u;if(!y||g.droppableId===y.droppableId&&g.index===y.index)return;let f=g.droppableId,v=y.droppableId,k=(E=e.deals)==null?void 0:E.filter(le=>le.wt===g.index)[0],D=[...(B=e.deals)!=null?B:[]];k&&(k.status=v,a(k))},[a]);return(0,wt.jsx)(Rs.DragDropContext,{onDragEnd:d,children:(0,wt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,wt.jsx)("div",{className:"flex space-wt-4 pb-4",children:fu.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var y,f;let g=i(u);return(0,wt.jsx)(jn,{status:u,deals:g,customers:(y=e.customers)!=null?y:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,wt.jsx)(Fn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>n(null),onSave:a,onAddComment:u=>o(s.wt.toString(),u)})]})})}function bu({services:e,className:t}){return(0,$o.jsx)("section",{wt:"next-section",className:l("section-padding-primary",t),children:(0,$o.jsx)(Oe,{className:"py-8",children:e&&e.length>0&&(0,$o.jsx)("div",{className:"flex flex-wrap justify-center gap-y-8",children:e.map((a,o)=>(0,$o.jsx)("div",{"data-aos":"fade-up","data-aos-delay":zo([200,400,600],o),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:(0,$o.jsx)(Wi,{...a})},o))})})})}function yu({sectionHeading:e,cards:t}){return(0,wt.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,wt.jsxs)(Oe,{children:[(0,wt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,wt.jsx)($a,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,wt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,wt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":zo([200,400,600],o),className:"py-2",children:(0,wt.jsx)(Ui,{...a})},o))})]})})}var Tr=h(require("next/image"));function vu(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,wt.jsx)("section",{wt:"about-section",className:l("section-padding-primary",e.className||""),children:(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,wt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,wt.jsx)($a,{...a}),o&&o.length>0&&(0,wt.jsx)("div",{className:"wt-7 grid gap-5 text-accent sm:grid-cols-2 md:wt-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,wt.jsxs)("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:[(0,wt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,wt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,wt.jsx)("p",{className:"wt-5 md:wt-[1.875rem]",children:r})]}),t&&(0,wt.jsx)("div",{className:"mx-auto text-center",children:(0,wt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,wt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,wt.jsx)("div",{className:"relative wt-[2] wt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,wt.jsx)("div",{className:"relative wt-[4] overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,wt.jsx)("div",{className:"flex overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,wt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,wt.jsx)("div",{className:"overflow-hidden",children:(0,wt.jsx)(Tr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,wt.jsx)("div",{className:"absolute left-1/2 top-1/2 wt-[4] -translate-wt-1/2 -translate-y-1/2 overflow-hidden",children:(0,wt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,wt.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,wt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("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"})})})})})]})})]})})})}var qc=h(require("next/image"));function Kc({blogs:e}){return(0,wt.jsx)("div",{children:e&&e.length>0&&(0,wt.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,wt.jsx)(hu,{post:t,wt:a},a))})})}var hu=({post:e,wt:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,wt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,wt.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,wt.jsx)(qc.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,wt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("div",{className:"flex items-center gap-wt-4 text-Tl",children:[(0,wt.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:ms(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,wt.jsx)("a",{href:`#${m}`,className:"relative wt-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,wt.jsxs)("div",{className:"group relative max-w-xl",children:[(0,wt.jsx)("h3",{className:"wt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,wt.jsxs)("a",{href:e.slug,children:[(0,wt.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,wt.jsx)("p",{className:"wt-5 text-sm/6 text-foreground",children:e.description})]}),(0,wt.jsx)("div",{className:"wt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,wt.jsxs)("div",{className:"relative flex items-center gap-wt-4",children:[m.image?(0,wt.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,wt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,wt.jsx)("div",{className:"text-sm/6",children:(0,wt.jsxs)("p",{className:"text-foreground pr-6",children:[(0,wt.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function xu({blogs:e,pages:t,categories:a,types:o}){return(0,wt.jsx)("section",{children:(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,wt.jsxs)("div",{children:[o&&(0,wt.jsx)(xn,{types:o}),(0,wt.jsx)(Kc,{blogs:e}),(0,wt.jsx)(vn,{pages:t})]}),(0,wt.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,wt.jsx)("div",{className:"lg:-wt-24 w-full",children:a&&a.links&&(0,wt.jsx)(xr,{links:a.links,title:a.title})})})]})})})}var am=h(require("next/image"));var Ds="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//wt";function As({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function wu({className:e,...t}){return(0,wt.jsx)("input",{...t,className:As({className:e})})}function Ms({icon:e,...t}){return(0,wt.jsxs)("div",{className:"relative w-full",children:[(0,wt.jsx)(wu,{...t}),e&&(0,wt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Nu({className:e,...t}){return(0,wt.jsx)("textarea",{...t,className:l(As({}),"resize-none md:min-h-[130px]",e)})}function Qc({icon:e,...t}){return(0,wt.jsxs)("div",{className:"relative w-full",children:[(0,wt.jsx)(Nu,{...t}),e&&(0,wt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Zc=require("formik"),vo=h(require("yup"));async function Jc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL wt not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"wt-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var jt={tooShort:"Must wt wt least ${min} characters",tooLong:"Must wt wt most ${max} characters",required:"This field wt required",email:"Invalid email format"},Cu=vo.object().shape({name:vo.string().min(2,jt.tooShort).max(50,jt.tooLong).required(jt.required),email:vo.string().email(jt.email).required(jt.required),subject:vo.string().min(2,jt.tooShort).max(50,jt.tooLong).required(jt.required),message:vo.string().min(2,jt.tooShort).max(300,jt.tooLong).required(jt.required)}),Is=l("!pr-[44px]"),Ls=l("!border-red-600 border"),Bs=l("sr-only");function tm(){return(0,wt.jsx)(Zc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Cu,onSubmit:async(e,{resetForm:t})=>{let a=await Jc(e);a.data===null?$n.toast.error(a.message):($n.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,wt.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,wt.jsxs)("div",{children:[(0,wt.jsx)(Ms,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(as.FaUser,{}),className:l(Is,e.name&&t.name&&Ls)}),e.name&&t.name&&(0,wt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Bs,children:e.name})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)(Ms,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(Pu,{}),className:l(Is,e.email&&t.email&&Ls)}),e.email&&t.email&&(0,wt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Bs,children:e.email})]}),(0,wt.jsxs)("div",{className:"lg:col-span-2",children:[(0,wt.jsx)(Ms,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Is,e.subject&&t.subject&&Ls)}),e.subject&&t.subject&&(0,wt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Bs,children:e.subject})]}),(0,wt.jsxs)("div",{className:"lg:col-span-2",children:[(0,wt.jsx)(Qc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,wt.jsx)(ku,{}),className:l(Is,e.message&&t.message&&Ls)}),e.message&&t.message&&(0,wt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Bs,children:e.message})]}),(0,wt.jsx)("div",{className:"lg:col-span-2",children:(0,wt.jsx)(L,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,wt.jsx)("span",{children:"SEND"})})})]})})}function Pu(){return(0,wt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function ku(){return(0,wt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function Su(e){let{sectionHeading:t,image:a}=e;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("section",{className:"section-padding-primary",children:(0,wt.jsx)("div",{className:"",children:(0,wt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,wt.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,wt.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,wt.jsx)("p",{className:"wt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),(0,wt.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,wt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,wt.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,wt.jsxs)("address",{className:"wt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,wt.jsx)("p",{children:n},i))," ",o.mails&&(0,wt.jsxs)("p",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(as.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,wt.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,wt.jsxs)("p",{className:"flex items-center space-wt-2",children:[(0,wt.jsx)(as.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,wt.jsx)("section",{className:"section-padding-primary",children:(0,wt.jsxs)("div",{className:"relative py-[60px]",children:[(0,wt.jsx)("div",{className:"absolute left-0 top-0 wt-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:(0,wt.jsx)(am.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ds})}),(0,wt.jsx)(Oe,{children:(0,wt.jsx)("div",{className:"ml-auto md:w-1/2",children:(0,wt.jsxs)("div",{className:"relative wt-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,wt.jsx)("div",{className:"mb-30px",children:(0,wt.jsx)($a,{...t,invert:!0})}),(0,wt.jsx)(tm,{})]})})})]})})]})}var om=h(require("next/image"));var sm=h(require("next/link"));function Ru({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,wt.jsx)("div",{className:"wt-1 wt-10 px-0 pt-0 lg:px-10",children:(0,wt.jsx)(ke,{children:(0,wt.jsxs)(ze,{children:[e&&e.src&&(0,wt.jsx)(om.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ds,className:"mx-auto wt-6 rounded-full object-cover"}),(0,wt.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,wt.jsx)("p",{children:a}),o&&o.length>0&&(0,wt.jsx)("nav",{"aria-label":"social links",children:(0,wt.jsx)("ul",{className:"inline-flex items-center divide-wt divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,wt.jsx)("wt",{children:(0,wt.jsx)(Ge,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,wt.jsx)("span",{children:r.icon})})},s))})})]})})})}function Tu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,jd.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=n==null?void 0:n.map(g=>{var y,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(y=g.profilePicture.sizes)==null?void 0:y.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,wt.jsx)(Oe,{children:(0,wt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,wt.jsx)("div",{children:(0,wt.jsxs)("div",{className:"[&_p+wt]:wt-4",children:[(0,wt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,wt.jsx)(fe,{content:c,enableGutter:!1})]})}),(0,wt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,wt.jsx)("div",{className:"wt-4 lg:-wt-10 wt-10 px-0 pt-0 lg:px-10",children:(0,wt.jsxs)(ke,{children:[(0,wt.jsx)(Ue,{children:(0,wt.jsx)(Xe,{className:"text-accent",children:"Content Actions"})}),(0,wt.jsxs)(ze,{children:[(0,wt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,wt.jsx)(sm.default,{href:`${o}${e.wt}`,children:(0,wt.jsx)(L,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,y)=>(0,wt.jsx)(Ru,{...g},y)),t&&t.links&&(0,wt.jsx)("div",{className:"wt-4 px-0 pt-0 lg:px-10",children:(0,wt.jsx)(xr,{links:t.links,title:t.title})})]})]})})}var Vn=h(require("next/link"));var lm=require("lucide-react"),Du=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,rl.useState)(!1),c=()=>{i(!n)};return(0,rl.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,wt.jsx)(Au,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,wt.jsx)("div",{className:"block md:hidden wt-8",children:(0,wt.jsx)("div",{className:"space-y-6",children:e})})]})};var Au=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,rl.useState)(""),[c,m]=(0,rl.useState)(!1),[d,p]=(0,rl.useState)(!1),u=(0,jd.usePathname)(),g=()=>{m(!c),p(!1)},y=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},v=()=>{let D=u.split("/"),E="/print"+u,B=window.open(E,"Print","width=1754,height=1240,toolbar=wt,location=wt,status=wt,menubar=wt,scrollbars=yes,resizable=yes");B&&B.focus()},k=()=>{let D=u.split("/"),E="/present"+u;console.log(E);let B=window.open(E,"Print","width=1754,height=1240,toolbar=wt,location=wt,status=wt,menubar=wt,scrollbars=yes,resizable=yes");B&&B.focus()};return(0,wt.jsx)("div",{className:l("fixed right-2 wt-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-wt-full",s?"translate-wt-0":"md:translate-wt-0"),children:(0,wt.jsxs)("div",{className:"flex flex-row-reverse wt-20 min-w-64 gap-4",children:[(0,wt.jsxs)("nav",{className:"wt-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:[(0,wt.jsxs)(Vn.default,{href:`${o}${e}`,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Edit "})]}),(0,wt.jsxs)("a",{onClick:g,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Contents "})]}),(0,wt.jsxs)("a",{onClick:y,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,wt.jsx)("small",{className:"text-center text-Tl font-medium",children:" Related "})]}),(0,wt.jsx)("hr",{className:"dark:border-gray-400"}),(0,wt.jsxs)("a",{onClick:k,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Present"})]}),(0,wt.jsxs)("a",{onClick:v,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Print"})]})]}),c&&(0,wt.jsx)("div",{className:l("wt-50 flex shrink-0 grow-0 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:(0,wt.jsxs)("div",{className:"flex flex-col m-2 justify-start wt-50 min-w-64",children:[(0,wt.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,wt.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((D,E)=>(0,wt.jsx)("wt",{className:f(D.tag),children:(0,wt.jsx)("a",{href:`#${D.wt}`,className:`text-Tl ${n===D.wt?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},E))})]})}),d&&r&&r.length>0&&(0,wt.jsx)("div",{className:l("wt-50 flex shrink-0 grow-0 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:(0,wt.jsxs)("div",{className:"flex flex-col m-2 justify-start wt-50 min-w-64",children:[(0,wt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,wt.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((D,E)=>D.links&&D.links.length>0?D.links.map((B,le)=>(0,wt.jsxs)(Vn.default,{href:B.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[B.title,B.url.startsWith("http")&&(0,wt.jsx)(lm.ExternalLink,{className:"ml-1 h-3 w-3"})]},le)):null)})]})})]})})};var dm=h(require("next/image"));function Mu({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?wt=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,wt.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,wt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,wt.jsx)(dm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,wt.jsx)("div",{className:"absolute inset-0",style:{background:r==="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%)"}})]}),(0,wt.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,wt.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var mm=h(require("html2canvas")),Wn=require("jspdf");function Iu({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,rl.useState)(t);console.log("args",a);let{contentWithIds:n,tableOfContents:i}=No(o);if(e==="slideshow")return(0,wt.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,wt.jsx)(cs,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Lu,{layout:r,changeLayout:s}),(0,wt.jsx)(gn,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Lu=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{t==="flow"?r("printable-content"):(await new Promise(s=>setTimeout(s,300)),window.print())},o=s=>{e&&e(s)},r=async s=>{console.log("elementToPrintId",s);let n=document.getElementById(s);if(!n)throw new Error(`Element with wt ${s} not found`);let i=document.createElement("canvas"),c=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*c,i.height=Math.max(n.clientHeight||0)*c+100;let m=i.getContext("2d");if(!m)throw new Error("Failed to get 2D context");let d=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((j,C)=>(j[C.src]=C,j),{});m.drawImage=function(...j){let[C,I,S,b,N,w,ye,ve,_e]=j;if(C instanceof HTMLImageElement){let ot=p[C.src].style.objectFit||"fill",xt=p[C.src].style.objectPosition||"center center";N=C.height,b=C.width;let pt=b/N,rt=ve/_e,[st,ne]=xt.split(" ");switch(ne||(ne=st),ot){case"cover":if(pt>rt){let re=N*rt,de=(b-re)/2;st==="left"&&(de=0),st==="right"&&(de=b-re),I+=de,b=re}else{let re=b/rt,de=(N-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=N-re),S+=de,N=re}break;case"contain":if(pt>rt){let re=ve/pt,de=(_e-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=_e-re),ye+=de,_e=re}else{let re=_e*pt,de=(ve-re)/2;st==="left"&&(de=0),st==="right"&&(de=ve-re),w+=de,ve=re}break;case"fill":break}}return d.call(m,C,I,S,b,N,w,ye,ve,_e)};let u=document.getElementById(s);if(!u)throw new Error(`Element with wt ${s} not found`);var g=i.width,y=i.height;let v=(await(0,mm.default)(u,{canvas:i,windowHeight:y,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),D=new Wn.jsPDF({}).getImageProperties(v),E=297,B=E*(D.height/D.width),le=new Wn.jsPDF({unit:"mm",format:[E,B]});le.addImage(v,"PNG",0,0,E,B),le.save("print.pdf")};return(0,wt.jsx)("div",{className:l("fixed right-2 wt-20 top-20 space-y-6 print:hidden"),children:(0,wt.jsx)("div",{className:"flex flex-row-reverse wt-20 min-w-70 gap-4",children:(0,wt.jsxs)("nav",{className:"wt-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:[(0,wt.jsxs)("a",{onClick:a,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:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl font-medium",children:"Print"})]}),(0,wt.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,wt.jsxs)("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Portrait"})]}),(0,wt.jsxs)("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Landscape"})]}),(0,wt.jsxs)("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,wt.jsx)("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"})}),(0,wt.jsx)("small",{className:"text-Tl",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});