cortex-react-components 1.59.3 → 1.59.5

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 (134) hide show
  1. package/dist/{chunk-262AEZUO.mjs → chunk-4WJNMYVD.mjs} +1 -1
  2. package/dist/{chunk-DFB6DJCW.mjs → chunk-5RBQ77B3.mjs} +1 -1
  3. package/dist/{chunk-75OAUMGO.mjs → chunk-73IYAOWE.mjs} +1 -1
  4. package/dist/{chunk-X3HZAJYJ.mjs → chunk-HONBH7ZV.mjs} +1 -1
  5. package/dist/{chunk-C2GNS62O.mjs → chunk-IWJDKMC2.mjs} +1 -1
  6. package/dist/{chunk-PJSCXNH4.mjs → chunk-JFHFMU42.mjs} +1 -1
  7. package/dist/{chunk-2IKC7MAP.mjs → chunk-KB6PO4K4.mjs} +1 -1
  8. package/dist/{chunk-23BDC5JG.mjs → chunk-KIICLHKI.mjs} +1 -1
  9. package/dist/{chunk-CSNKYRV5.mjs → chunk-LAVVUPY7.mjs} +1 -1
  10. package/dist/{chunk-WDVSSHIB.mjs → chunk-LRRSTGJW.mjs} +1 -1
  11. package/dist/{chunk-AJNVUHYN.mjs → chunk-NTPMLZVP.mjs} +1 -1
  12. package/dist/{chunk-7PNAXVQ2.mjs → chunk-PWCOSXXO.mjs} +1 -1
  13. package/dist/{chunk-QMFZRG7O.mjs → chunk-PY53YVFX.mjs} +1 -1
  14. package/dist/{chunk-IO222G5L.mjs → chunk-SBAFXZVU.mjs} +1 -1
  15. package/dist/{chunk-D44ZXHH4.mjs → chunk-T4I5D4XZ.mjs} +1 -1
  16. package/dist/{chunk-3BBZH3T3.mjs → chunk-V5N56VWG.mjs} +1 -1
  17. package/dist/{chunk-KUJXSGYS.mjs → chunk-WARSIFKB.mjs} +1 -1
  18. package/dist/{chunk-LLJZRF3C.mjs → chunk-WRPTP2UD.mjs} +1 -1
  19. package/dist/{chunk-K7XFS6IQ.mjs → chunk-ZLQ5NW4D.mjs} +1 -1
  20. package/dist/components/Blocks/Banner.mjs +1 -1
  21. package/dist/components/Blocks/CallToAction.mjs +1 -1
  22. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  23. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  24. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  25. package/dist/components/Blocks/Content.mjs +1 -1
  26. package/dist/components/Blocks/Content.stories.mjs +1 -1
  27. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  28. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  29. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  30. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  31. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  32. package/dist/components/Blocks/index.mjs +1 -1
  33. package/dist/components/CRM/DealDetails.mjs +1 -1
  34. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  35. package/dist/components/CRM/KanbanBoard.js +1 -1
  36. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  37. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  38. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  39. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  40. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  41. package/dist/components/CRM/NewDealForm.mjs +1 -1
  42. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  43. package/dist/components/CRM/index.js +1 -1
  44. package/dist/components/CRM/index.mjs +1 -1
  45. package/dist/components/Cards/ContentCard.mjs +1 -1
  46. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  47. package/dist/components/Cards/FeatureCard.mjs +1 -1
  48. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  49. package/dist/components/Cards/index.mjs +1 -1
  50. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  51. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  52. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  53. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  54. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  55. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  56. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  57. package/dist/components/Heros/PostHero/index.mjs +1 -1
  58. package/dist/components/Heros/RenderHero.mjs +1 -1
  59. package/dist/components/Heros/index.mjs +1 -1
  60. package/dist/components/Holidays/HolidayGrid.js +1 -1
  61. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  62. package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
  63. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  64. package/dist/components/Holidays/HolidayTracker.js +1 -1
  65. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  66. package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
  67. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  68. package/dist/components/Holidays/index.js +1 -1
  69. package/dist/components/Holidays/index.mjs +1 -1
  70. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  71. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  72. package/dist/components/Layouts/Print.mjs +1 -1
  73. package/dist/components/Layouts/Print.stories.mjs +1 -1
  74. package/dist/components/Layouts/SlideShow.mjs +1 -1
  75. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  76. package/dist/components/Layouts/index.mjs +1 -1
  77. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  78. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  79. package/dist/components/Menus/SidebarRight.mjs +1 -1
  80. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  81. package/dist/components/Menus/index.mjs +1 -1
  82. package/dist/components/Payload/RichText/index.mjs +1 -1
  83. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  84. package/dist/components/Payload/RichText.stories.mjs +1 -1
  85. package/dist/components/Payload/index.mjs +1 -1
  86. package/dist/components/index.js +1 -1
  87. package/dist/components/index.mjs +1 -1
  88. package/dist/components/ui/index.mjs +1 -1
  89. package/dist/components/ui/sidebar.mjs +1 -1
  90. package/dist/globals.css +1 -1
  91. package/dist/hooks/index.mjs +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/index.mjs +1 -1
  94. package/dist/metafile-cjs.json +1 -1
  95. package/dist/metafile-esm.json +1 -1
  96. package/dist/pages/Blog.mjs +1 -1
  97. package/dist/pages/Blog.stories.mjs +1 -1
  98. package/dist/pages/Documentation.mjs +1 -1
  99. package/dist/pages/Documentation.stories.mjs +1 -1
  100. package/dist/pages/IndexPage.mjs +1 -1
  101. package/dist/pages/IndexPage.stories.mjs +1 -1
  102. package/dist/pages/Intranet.mjs +1 -1
  103. package/dist/pages/Intranet.stories.mjs +1 -1
  104. package/dist/pages/LandingPage.mjs +1 -1
  105. package/dist/pages/LandingPage.stories.mjs +1 -1
  106. package/dist/pages/Page.mjs +1 -1
  107. package/dist/pages/Page.stories.mjs +1 -1
  108. package/dist/pages/Printable.stories.mjs +1 -1
  109. package/dist/pages/Publish.mjs +1 -1
  110. package/dist/pages/Publish.stories.mjs +1 -1
  111. package/dist/pages/Website.mjs +1 -1
  112. package/dist/pages/Website.stories.mjs +1 -1
  113. package/dist/sections/AboutSection.mjs +1 -1
  114. package/dist/sections/AboutSection.stories.mjs +1 -1
  115. package/dist/sections/BlogDetail.mjs +1 -1
  116. package/dist/sections/BlogDetail.stories.mjs +1 -1
  117. package/dist/sections/BlogList.mjs +1 -1
  118. package/dist/sections/BlogList.stories.mjs +1 -1
  119. package/dist/sections/BlogListSection.mjs +1 -1
  120. package/dist/sections/BlogListSection.stories.mjs +1 -1
  121. package/dist/sections/ContactSection.mjs +1 -1
  122. package/dist/sections/ContactSection.stories.mjs +1 -1
  123. package/dist/sections/ImageSection.stories.mjs +1 -1
  124. package/dist/sections/PageSections.mjs +1 -1
  125. package/dist/sections/PageSections.stories.mjs +1 -1
  126. package/dist/sections/PricingSection.mjs +1 -1
  127. package/dist/sections/PricingSection.stories.mjs +1 -1
  128. package/dist/sections/ServiceDetail.mjs +1 -1
  129. package/dist/sections/ServiceDetailSection.mjs +1 -1
  130. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  131. package/dist/sections/ServiceSection.mjs +1 -1
  132. package/dist/sections/ServiceSection.stories.mjs +1 -1
  133. package/dist/sections/index.mjs +1 -1
  134. package/package.json +1 -1
@@ -11,4 +11,4 @@
11
11
  dark bg-background text-primary`,children:[(0,Qe.jsxs)("div",{className:"flex px-6 items-center space-Qe-2",children:[e&&(0,Qe.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Qe.jsx)("span",{className:"Qe-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),zo=({title:e})=>(0,Qe.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Oo=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return(0,Qe.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Qe.jsx)("div",{className:"absolute inset-0",children:(0,Qe.jsx)(Ai.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Qe.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Qe.jsx)("div",{className:"h-24",children:(0,Qe.jsx)(Ai.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Qe.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Qe.jsxs)("div",{className:"relative Qe-24 z-10 max-w-3xl",children:[(0,Qe.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Qe.jsx)(J,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var gd=e=>{let[t,a]=(0,Zo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],u=m=>{a(m)},d=()=>{a(m=>(m+1)%c.length)},p=()=>{a(m=>(m-1+c.length)%c.length)},f=(0,Zo.useCallback)(((m,y)=>{let w;return(..._)=>{clearTimeout(w),w=setTimeout(()=>m(..._),y)}})(m=>{m.deltaY>0?d():p()},300),[]),b=m=>{m.key==="ArrowDown"?d():m.key==="ArrowUp"&&p()};return(0,Zo.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",b)}),[]),(0,Qe.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Qe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((m,y)=>(0,Qe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===y?"bg-accent":"bg-gray-600"}`,onClick:()=>u(y),children:(0,Qe.jsx)("span",{className:"absolute An-7 left-full text-left transform -translate-y-1/2 translate-Qe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Qe-2 transition-all duration-300",children:m.blockName})},m.id))}),(0,Qe.jsx)(ao.AnimatePresence,{children:c.map((m,y)=>(0,Qe.jsx)("div",{id:`slide-${y}`,className:"print-section",children:(0,Qe.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
12
12
  ${y===t?"opacity-100":"opacity-0"}
13
13
  w-full h-full bg-cover bg-center`,children:y===0?(0,Qe.jsx)(Oo,{hero:r,title:e.title,logoImage:s}):(0,Qe.jsxs)(Qe.Fragment,{children:[m.blockName&&(0,Qe.jsx)(zo,{title:m.blockName}),(0,Qe.jsx)(fa,{blocks:[m],fill:!0}),(0,Qe.jsx)(fd,{logoImage:s})]})})},y))}),(0,Qe.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Qe.jsx)(qm,{})})]})},qm=()=>(0,Qe.jsx)(ao.AnimatePresence,{children:(0,Qe.jsx)(ao.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:i("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Qe.jsx)(ao.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:i("w-[12px] h-[12px] rounded-full","bg-accent")})})});var bd=h(require("next/link")),yd=h(require("next/image"));function vd({blogs:e,width:t=3}){return(0,Qe.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Qe.jsx)("div",{className:`grid Qe:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Qe.jsx)(bd.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,Qe.jsxs)("div",{className:"relative size-full",children:[(0,Qe.jsx)(yd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Qe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-$n-t from-card $n-transparrent flex flex-col justify-end",children:[(0,Qe.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Qe.jsx)("h2",{className:"text-Qe font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function hd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:n,dealsClosed:c,leadsGenerated:u}){return(0,Qe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Qe.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Qe.jsxs)("div",{className:"max-w-4xl",children:[(0,Qe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Qe.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Qe.jsx)("p",{className:"mt-6 text-balance text-Qe/8 text-gray-700",children:a})]}),(0,Qe.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Qe-8 lg:gap-y-16",children:[(0,Qe.jsxs)("div",{className:"lg:pr-8",children:[(0,Qe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Qe.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Qe.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 Qe:mr-auto",children:(0,Qe.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 Qe:gap-8",children:s.map((d,p)=>(0,Qe.jsx)("div",{className:"aspect-square overflow-hidden rounded-Qe shadow-Qe outline-1 -outline-offset-1 outline-black/10",children:(0,Qe.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Qe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Qe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Qe.jsx)("Qe",{className:"mt-6 border-t border-gray-200"}),(0,Qe.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Qe-8 gap-y-4 sm:grid-cols-2",children:[(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Qe"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Qe"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"Qe"]})]})]})]})]})]})})}function Km(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 ro=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Qm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Qe.jsx)(xd,{page:e,layout:t,logoImage:a}):(0,Qe.jsx)(wd,{page:e,layout:t,logoImage:a}),xd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=rs(e),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),l=(0,Zo.useRef)(new Yy.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Zo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; width: ${ro(d.offsetWidth)}mm }; .container : { max-width: ${ro(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,Zo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Zo.useEffect)(()=>{l.current=new Yy.Previewer},[c,t]);let u=[n,...o];return(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Qe.jsxs)("div",{id:"printable-content",ref:r,children:[u.map((d,p)=>(0,Qe.jsx)(Qe.Fragment,{children:p===0?(0,Qe.jsx)("section",{className:"title-page w-full h-full",children:(0,Qe.jsx)(Oo,{hero:e.hero,title:e.title})},p):(0,Qe.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Qe.jsx)(zo,{title:d.blockName}),(0,Qe.jsx)(fa,{blocks:[d],fill:!0})]},p)})),(0,Qe.jsx)("section",{className:"normal-page",children:(0,Qe.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
14
- dark bg-background text-primary`,children:[(0,Qe.jsxs)("div",{className:"flex px-6 items-center space-Qe-2",children:[a&&(0,Qe.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Qe.jsx)("span",{className:"Qe-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Qe.jsx)("div",{ref:s,className:"preview-container"})]})},wd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=rs(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new Yy.Previewer),[l,n]=(0,Zo.useState)(0),u=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Zo.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=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new Yy.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Qe.jsxs)("div",{className:"pagedjs-container",children:[(0,Qe.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((p,g)=>{var f,b;return(0,Qe.jsx)(Qe.Fragment,{children:g===0?(0,Qe.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Qe.jsx)(Oo,{hero:e.hero,title:e.title})},g):(0,Qe.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${Km("185mm")}px]`,((b=(f=p.theme)==null?void 0:f.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Qe.jsx)(zo,{title:p.blockName}),(0,Qe.jsx)(fa,{blocks:[p],fill:!0})]},g)})})}),(0,Qe.jsx)("div",{ref:o,className:"preview-container"})]})};var Bi=h(require("clsx"));function Jm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...u}){let p=c?g=>(0,Qe.jsx)(c,{...g}):l?({href:g,children:f,...b})=>(0,Qe.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:f}):g=>(0,Qe.jsx)("a",{...g});return(0,Qe.jsxs)(ha,{...u,variant:"inset",children:[(0,Qe.jsx)(xa,{children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(Se,{children:n?(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)(le,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Qe.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Qe.jsxs)(Zt,{children:[(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Qe.jsxs)(Zt,{children:[e&&!n&&e.map((g,f)=>(0,Qe.jsx)(Zm,{subNav:g,pathName:r,Link:p},f)),(0,Qe.jsx)(Je,{className:"mt-auto",children:(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:t&&!n&&t.map(g=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(Ze,{asChild:!0,size:"sm",children:(0,Qe.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,Qe.jsx)(g.icon,{}),(0,Qe.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,Qe.jsx)(wa,{})]})}function Zm({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsx)(Je,{className:"py-0",children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(It,{asChild:!0,defaultOpen:o.isActive,children:(0,Qe.jsxs)(Se,{children:[(0,Qe.jsx)(Ze,{asChild:!0,tooltip:o.label,className:(0,Bi.default)(r&&"font-bold text-accent"),children:(0,Qe.jsxs)(a,{href:o.url,children:[o.icon&&(0,Qe.jsx)(o.icon,{}),(0,Qe.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(Kt,{asChild:!0,children:(0,Qe.jsxs)(xo,{className:"data-[state=open]:rotate-90",children:[(0,Qe.jsx)($n.ChevronRight,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(ea,{children:(l=o.links)==null?void 0:l.map(n=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,className:(0,Bi.default)(n.url===t&&"font-bold text-accent"),children:(0,Qe.jsx)(a,{href:n.url,children:(0,Qe.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var Cd=h(require("clsx"));var ep=()=>(0,Qe.jsx)(Re,{iconName:"github",size:"10x"});function tp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...p}){let b=d?m=>(0,Qe.jsx)(d,{...m}):u?({item:m,children:y,...w})=>(0,Qe.jsx)("button",{onClick:()=>u&&u(m),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:y}):m=>(0,Qe.jsx)("a",{href:m.href,...m});return(0,Qe.jsxs)(ha,{side:"right",variant:"inset",...p,children:[(0,Qe.jsxs)(xa,{className:"border-b border-sidebar-border",children:[(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Se,{children:(0,Qe.jsxs)(Ze,{onClick:s,children:[(0,Qe.jsx)($n.FilePlus,{})," ",(0,Qe.jsx)("span",{children:"Add Document"})]})}),c&&(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(Ze,{onClick:c,tooltip:"Open in GitHub",children:(0,Qe.jsx)(ep,{})})})]}),(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Se,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Cd.default)(r&&"text-accent"),children:[(0,Qe.jsx)($n.Edit,{})," ",(0,Qe.jsx)("span",{children:"Edit"})]})}),(0,Qe.jsx)(Se,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:n,children:[(0,Qe.jsx)($n.Printer,{})," ",(0,Qe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Editor Controls",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:a})})]})}),(0,Qe.jsx)(ho,{className:"mx-0"})]}),(0,Qe.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Related Content"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Table of Contents"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Related Content",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:e&&Object.keys(e).map(m=>(0,Qe.jsxs)(Se,{children:[(0,Qe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",m.charAt(0).toUpperCase()+m.slice(1)]}),m&&e[m]&&(0,Qe.jsx)(ea,{children:e[m].map(y=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,Qe.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,Qe.jsx)("span",{children:y.label}),y.type==="note"&&(0,Qe.jsx)($n.PencilLine,{className:"An-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,Qe.jsx)(Re,{iconName:"code-pull-request-draft",className:"An-2 text-gray-400 !important"})]})})},y.label))})]},m))})})})]})}),t&&!o&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Table of Contents",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:t.map(m=>{var y;return(0,Qe.jsxs)(Se,{children:[(0,Qe.jsx)(Ze,{asChild:!0,children:(0,Qe.jsx)("a",{href:`#${m.url}`,className:"text-xs",children:m.title})}),(y=m.items)!=null&&y.length?(0,Qe.jsx)(ea,{children:m.items.map(w=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,Qe.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Qe.jsx)("span",{children:w.title})})})},w.title))}):null]},m.title)})})})})]})})]}),(0,Qe.jsx)(wa,{})]})}var kd=h(require("next/image"));function ap({title:e,members:t}){return(0,Qe.jsx)(Ce,{className:"mb-6",children:(0,Qe.jsxs)("div",{className:"p-6",children:[(0,Qe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Qe.jsx)($n.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Qe.jsx)("h2",{className:"text-Qe font-semibold text-foreground",children:e})]}),(0,Qe.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Qe.jsx)(kd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Qe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Sd=h(require("next/link"));var op=({links:e,title:t="Related Content"})=>(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:t})}),(0,Qe.jsx)(Te,{children:(0,Qe.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Qe.jsxs)(Sd.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,Qe.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},o))})})]});var Li=i("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 rp({pages:e}){let t=(0,sd.useSearchParams)(),a=(0,sd.usePathname)(),{replace:o}=(0,sd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&n(g=>({start:g.start+1,end:g.end+1}))};function u(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,Qe.jsx)("div",{className:"mt-12",children:(0,Qe.jsxs)("$n",{className:"flex flex-wrap items-center justify-center gap-3 Qe:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Qe.jsx)(Pl.FaArrowLeft,{})})}),d.map((p,g)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("a",{className:i(Li,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},g)),l.end<r&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Qe.jsx)(Pl.FaArrowRight,{})})})]})})}var Dv=i("transition-colors duration-400 hover:text-primary ease-in-out");function sp({title:e,links:t}){let a=(0,sd.useSearchParams)(),o=(0,sd.usePathname)(),{replace:r}=(0,sd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:e&&e})}),(0,Qe.jsx)(Te,{children:t&&t.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,Qe.jsxs)("li",{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(l.href)},children:[l.label,(0,Qe.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},n))})})})]})}function ip({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,sd.useSearchParams)(),r=(0,sd.usePathname)(),{replace:s}=(0,sd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Qe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Qe-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Qe.jsx)(D,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Id=h(require("next/image"));var Hi=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Qe.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Qe.jsx)(J,{className:"max-w-none mb-6 An-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Qe.jsx)("$n",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(yt,{...r})},s))})]}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(Gt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Qe.jsx)("div",{children:(0,Qe.jsx)(Id.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(np,{})]})}),np=()=>(0,Qe.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Fi=h(require("next/image"));var lp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Qe.jsx)(Fi.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,Qe.jsx)("div",{children:(0,Qe.jsx)(Fi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},zi=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Qe.jsx)(lp,{media:t}),(0,Qe.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Qe.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Qe.jsx)(J,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Oi=({children:e,richText:t})=>(0,Qe.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Qe.jsx)("div",{className:"container",children:e||t&&(0,Qe.jsx)(J,{content:t,enableGutter:!1})})});var Bd=h(require("react")),Ld=h(require("next/image"));var Ad=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var dp=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Qe.jsxs)("div",{className:"relative grid pt-24",children:[(0,Qe.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Qe.jsxs)("div",{className:"container mx-auto",children:[(0,Qe.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-4 Qe:flex-row Qe:gap-16 ",children:[o&&o.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Qe.jsx)("p",{children:o.map((n,c)=>(0,Qe.jsxs)(Bd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Qe.jsx)("time",{dateTime:r,children:Ad(r)})]}),t&&t.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Qe.jsx)(at,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Qe.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Qe.jsx)(Ld.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Qe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-$n-t from-background dark:from-black $n-transparent"})]})]})};var _r=require("@heroicons/react/20/solid");var _i=h(require("next/image"));function Gi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"sd-padding",o);return(0,Qe.jsx)("div",{className:r,children:e})}var Hd=require("next-themes");function cp({children:e,...t}){return(0,Qe.jsx)(Hd.ThemeProvider,{...t,children:e})}var _o=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Qe.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Qe.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Qe.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},mp=({className:e})=>(0,Qe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Qe.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var $i=({title:e,image:t})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-6xl",children:e})}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(_i.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Qe.jsx)("div",{children:(0,Qe.jsx)(_i.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(_o,{className:"text-black z-10",position:"header"})]})});var pp={highImpact:Hi,lowImpact:Oi,mediumImpact:zi,sectionHero:$i},up=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=pp[t];return a?(0,Qe.jsx)(a,{...e}):null};function fp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Qe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Qe.jsxs)("ol",{role:"list",className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Qe.jsx)(_r.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Qe.jsx)("li",{children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(_r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Qe.jsx)("a",{href:a.href,className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Qe.jsx)("div",{className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Qe.jsx)(Qe.Fragment,{})}var qe=require("@headlessui/react"),Wr=require("@heroicons/react/24/outline");var gp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Qe.jsx)("a",{href:o,className:"flex items-center gap-Qe-1 text-sm text-foreground group",children:(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]})}):(0,Qe.jsxs)(qe.Popover,{children:[(0,Qe.jsxs)(qe.PopoverButton,{className:"flex items-center gap-Qe-1 text-sm/6 text-foreground outline-none group",children:[(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]}),(0,Qe.jsx)(_r.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Qe.jsxs)(qe.PopoverPanel,{transition:!0,className:"absolute inset-Qe-0 top-0 -z-10 bg-popover mt-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,Qe.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Qe-4 px-6 py-10 lg:px-8 Qe:gap-Qe-8 z-50",children:t&&t.map(r=>(0,Qe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Qe.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,Qe.jsx)(zd,{icon:r.icon,size:"4x"})}),(0,Qe.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Qe.jsx)("span",{className:"absolute inset-0"})]}),(0,Qe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Qe.jsx)("div",{className:"bg-gray-50",children:(0,Qe.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Qe.jsx)("div",{className:"grid grid-cols-3 divide-Qe divide-gray-900/5 border-Qe border-gray-900/5",children:a.map(r=>(0,Qe.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Qe-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Qe.jsx)(zd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),zd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Qe.jsx)(Re,{...e,size:a});if("src"in e)return(0,Qe.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Qe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},$r=gp;var Vr=["light","dark","green"];function bp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Zo.useState)(!1),[s,l]=(0,Zo.useState)(!1),[n,c]=(0,Zo.useState)("light"),u=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,g]=(0,Zo.useState)(`${u}.${d}`),f=m=>{Vr.includes(m)?g(m==="light"?`${u}.${d}`:`${u}-${m}.${d}`):g(`${u}.${d}`)};(0,Zo.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";c(m),document.documentElement.setAttribute("class",m),f(m)},[]);let b=()=>{let m=Vr[(Vr.indexOf(n)+1)%Vr.length];c(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m),f(m)};return(0,Qe.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Qe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Qe.jsx)("div",{className:"flex lg:flex-1",children:(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:e}),(0,Qe.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Qe.jsx)("div",{className:"flex lg:hidden",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Qe.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:a.map(m=>(0,Qe.jsx)($r,{...m},m.name))}),(0,Qe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Qe.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Qe.jsx)($o.MoonIcon,{className:"h-6 w-6"}):(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"})})})]}),(0,Qe.jsxs)(qe.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-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,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Qe.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Wr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 py-6",children:a.map(m=>(0,Qe.jsx)(yp,{...m},m.name))})})})]})]})]})}function yp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.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,Qe.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function vp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Qe.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Qe.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Qe.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Qe.jsx)(Gi,{children:(0,Qe.jsxs)("div",{className:"flex flex-col items-start Qe:w-2/3 mb-10 z-0 Qe:mb-0",children:[(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-7xl mb-6",children:r&&r}),(0,Qe.jsx)("div",{className:"text-lg Qe:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Qe.jsx)(_o,{className:"text-black z-10",position:"header"})]})})}var Vi=h(require("next/image"));function ga({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Qe.jsxs)(ot,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,Qe.jsx)(Vi.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,Qe.jsx)(Vi.default,{className:"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}})]})}function Wi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,u]=(0,Zo.useState)(""),d=["light","dark"],{theme:p,setTheme:g}=(0,Hd.useTheme)();(0,Zo.useEffect)(()=>{u(p||"dark")},[p]);let f=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),g(b)};return(0,Zo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Qe.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Qe.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Qe.jsx)(ga,{logoDark:a,logoLight:t}),(0,Qe.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:o&&o.map(b=>(0,Qe.jsx)($r,{...b},b.name))}),r&&(0,Qe.jsx)("button",{className:"fixed right-4 z-[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:f,children:(0,Qe.jsxs)("div",{className:"relative",children:[(0,Qe.jsx)($n.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Qe.jsx)($n.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ji=["light","dark"];function Ui({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,$d.useTheme)(),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Zo.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=ji[(ji.indexOf(d)+1)%ji.length];p(f),n(f)};return(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Qe.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Qe.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsx)("div",{className:"flex items-center space-Qe-4",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 z-[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,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Qe.jsxs)(qe.Dialog,{open:c,onClose:u,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Qe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-Qe p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Wr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,Qe.jsx)(hp,{...f},f.name))})})})]})]})]})})}function hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Qe.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Ih=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Vd=i("text-brand-green text-Qe leading-[1.25] Qe:text-lg mb-5 Qe:mb-[1.5rem]"),Xi=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Yi=i("flex items-center text-white gap-3"),Xr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function xp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,Qe.jsxs)("footer",{className:i("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Qe.jsx)("div",{className:"py-16 Qe:py-20",children:(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"grid gap-10 Qe:grid-cols-2 Qe:grid-cols-3",children:[(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Qe.jsx)(ga,{logoDark:o,logoLight:a}),(0,Qe.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Qe.jsx)("nav",{"aria-label":"social links",children:(0,Qe.jsx)("$n",{className:"inline-flex Qe-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((u,d)=>(0,Qe.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Qe.jsx)(ot,{"aria-label":u.href,className:"text-2xl",href:u.href,openNewTab:!0,children:(0,Qe.jsx)("span",{children:u.icon})})},d))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Qe.jsx)("h3",{className:Vd,children:s.title}),s.links&&s.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid Qe-0 gap-2",children:s.links.map(u=>(0,Qe.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Qe.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,Qe.jsx)(Pl.FaChevronRight,{})}),(0,Qe.jsx)(ot,{href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})]},u.label))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Qe.jsx)("h3",{className:Vd,children:l.title}),(0,Qe.jsxs)("$n",{"aria-label":"addresses",className:"grid gap-2 Qe-0",children:[(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPaperPlane,{})}),(0,Qe.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Qe.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,d)=>(0,Qe.jsx)("a",{href:`mailto:${u}`,className:Xr,children:u},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPhone,{})}),(0,Qe.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,d)=>(0,Qe.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:Xr,children:u},d))})]})]})]})]})})}),(0,Qe.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,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Qe-8 gap-y-4 Qe:gap-Qe-10",children:[(0,Qe.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Qe.jsx)("$n",{className:"flex flex-wrap items-center gap-Qe-4 Qe:gap-Qe-7",children:n.links.map(u=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(ot,{"aria-label":`Yy $n page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})},u.label))})})]})})})]})}function wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Qe.jsxs)("div",{className:i("fixed top-0 left-0 right-0 z-50",r),children:[(0,Qe.jsx)(Wi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Qe.jsx)(Ui,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function qi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,sd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])};return(0,Qe.jsxs)("div",{className:"space-y-4",children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Qe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)(D,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Qe.jsx)(D,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Qe.jsx)("div",{className:"overflow-hidden sm:rounded-Qe",children:(0,Qe.jsxs)("$n",{className:"divide-y divide-gray-200",children:[(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Qe.jsx)("label",{htmlFor:"select-all",className:"An-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Qe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Qe.jsxs)("div",{className:"An-3 flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-10 w-10",children:[(0,Qe.jsx)(Ft,{src:d.userImage,alt:d.userName}),(0,Qe.jsx)(zt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-3",children:(0,Qe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.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,Qe.jsx)(at,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Qe.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ki=require("date-fns");var Ud=[{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 jo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Ud.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Xd=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!jo(o))return .5;for(;o<=r;)jo(o)||s++,o.setDate(o.getDate()+1);return s},Yd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Np=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Qe.jsx)("div",{className:"flex space-Qe-2",children:e.map((r,s)=>(0,Qe.jsx)(D,{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 Ji({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Zo.useState)(new Date),[r,s]=(0,Zo.useState)(new Date),[l,n]=(0,Zo.useState)("Full Day"),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)(1),g=(0,sd.useRouter)();(0,Zo.useEffect)(()=>{let m=Yd(a,r);u(m),m&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){p(0);return}let m=Xd(a,r,l!=="Full Day");p(m)},[a,r,l]);let f=m=>{n(m)};return(0,Qe.jsxs)("div",{className:"max-w-2xl",children:[(0,Qe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Qe.jsxs)("form",{onSubmit:async m=>{if(m.preventDefault(),!a||!r){mi.toast.error("Please select both start and end dates");return}if(d>e){mi.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",l),y.append("duration",d.toString());let w=await(t||Cp)(y);w.success?(mi.toast.success(w.message),o(void 0),s(void 0),n("Full Day"),g.refresh()):mi.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"startDate",children:"Start Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ki.format)(a,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:a,onSelect:m=>{o(m),m&&(!r||m>r)&&s(m)},initialFocus:!0})})]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"endDate",children:"End Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ki.format)(r,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:r,onSelect:s,disabled:m=>a?m<a:!1,initialFocus:!0})})]})]})]}),(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{children:"Leave Type"}),(0,Qe.jsx)(Np,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Qe.jsx)(D,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Qe.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Cp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Kd(...e){return e.filter(Boolean).join(" ")}function Zi({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))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=u=>u.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Qe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Qe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Qe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Qe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Qe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(D,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Qe.jsx)("div",{className:"mt-8 flow-root",children:(0,Qe.jsx)("div",{className:"-mx-4 -my-2 overflow-Qe-auto sm:-mx-6 lg:-mx-8",children:(0,Qe.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Qe.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Qe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Qe-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Qe-6 lg:Qe-8",children:"Employee"}),[...Array(r)].map((u,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Qe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${jo(p)?"bg-gray-200":""}`,children:[(0,Qe.jsx)("div",{children:c(p)}),(0,Qe.jsx)("div",{children:d+1})]},d)})]})}),(0,Qe.jsx)("tbody",{children:o.map((u,d)=>(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Qe-4 pr-3 text-sm font-medium text-gray-900 sm:Qe-6 lg:Qe-8"),children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-11 w-11",children:[(0,Qe.jsx)(Ft,{src:u.image,alt:u.name}),(0,Qe.jsx)(zt,{children:u.name.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-4",children:(0,Qe.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),b=a.find(m=>m.userId===u.id&&new Date(m.startDate)<=f&&new Date(m.endDate)>=f);return(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",jo(f)?"bg-gray-200":""),children:(0,Qe.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${u.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Qe.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${u.id}-${g}`)})]},u.id))})]})})})})]})}function en({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Zo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,Qe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Qe.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Qe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Qe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Qe.jsx)("div",{className:"flex items-center",children:(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{variant:"outline",onClick:u,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(D,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Qe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Qe"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Qe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Qe.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(d=>(0,Qe.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:i("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,Qe.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Qe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Qe.jsxs)("button",{type:"button",className:i(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:z-10"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:i("An-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,Qe.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Qe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Qe.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.id))})]},d.date.toISOString()))})]})]})]})}var ya=require("lucide-react");function Jd(...e){return e.filter(Boolean).join(" ")}function Pp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,u]=(0,Zo.useState)("Calendar View"),d=(0,sd.useRouter)(),p=!1,g=(0,Ki.parseISO)(a),f=async m=>{let y=(0,Ki.format)(m,"dd-MM-yyyy"),w=new URL(window.location.href);return w.searchParams.set("date",y),d.push(w.toString()),{success:!0}};if(p)return(0,Qe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Qe.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ya.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ya.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ya.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ya.CheckSquare,current:c==="Approve Leave"}];return(0,Qe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Qe.jsxs)("div",{className:"mb-8",children:[(0,Qe.jsxs)("div",{className:"sm:hidden",children:[(0,Qe.jsx)("select",{value:c,onChange:m=>u(m.target.value),className:"block w-full rounded-Qe border-gray-300 py-2 Qe-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(m=>(0,Qe.jsx)("option",{children:m.name},m.name))}),(0,Qe.jsx)($n.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Qe.jsx)("div",{className:"hidden sm:block",children:(0,Qe.jsx)("div",{className:"border-b border-gray-200",children:(0,Qe.jsx)("nav",{className:"-mb-px flex space-Qe-8","aria-label":"Tabs",children:b.map(m=>(0,Qe.jsxs)("a",{onClick:()=>{(m.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(m.name)},className:Jd(m.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",m.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":m.current?"page":void 0,children:[(0,Qe.jsx)(m.icon,{className:Jd(m.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-An-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Qe.jsx)("span",{children:m.name})]},m.name))})})})]}),c==="Grid View"&&(0,Qe.jsx)(Zi,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,Qe.jsx)(en,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,Qe.jsx)(Ji,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:m=>s?s(m):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Qe.jsx)(qi,{leaveRequests:o,onApprove:m=>l?l(m):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:m=>n?n(m):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function tn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var ze,Pt,R,z,ct;let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Zo.useState)(""),[p,g]=(0,Zo.useState)(!1),[f,b]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let m=async()=>{try{let N=await s(n);N.success?(g(!1),b(null)):console.error("Failed $n save deal:",N.errors)}catch(N){console.error("Failed $n save deal:",N)}},y=(N,$)=>{c(U=>({...U,[N]:$}))},w=N=>{let $=(n.categories||[]).includes(N)?(n.categories||[]).filter(U=>U!==N):[...n.categories||[],N];y("categories",$)},_=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let $=await l(N);if(!$.success){console.error("Failed $n add comment:",$.errors);return}}catch($){console.error("Failed $n add comment:",$)}c($=>({...$,comments:[...$.comments||[],N]})),d("")}},ee=N=>{switch(N){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},fe=N=>t==null?void 0:t.find($=>$.id===Number(N));return(0,Qe.jsx)(tt,{open:!0,children:(0,Qe.jsxs)(Xe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Qe.jsxs)(ft,{className:"flex flex-row items-center justify-between",children:[(0,Qe.jsx)(gt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Qe.jsxs)("div",{className:"flex space-Qe-2",children:[(0,Qe.jsx)(D,{variant:"outline",onClick:r,children:"Close"}),(0,Qe.jsxs)(D,{onClick:m,disabled:!p,children:[(0,Qe.jsx)($n.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Qe.jsxs)(sa,{className:"flex-grow pr-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Qe.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,Qe.jsx)(Oe,{type:"number",value:n.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",(ze=n.value)==null?void 0:ze.toLocaleString()]})}),(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,Qe.jsxs)(Sa,{value:((R=(Pt=n==null?void 0:n.assignee)==null?void 0:Pt.id)==null?void 0:R.toString())||"",onValueChange:N=>y("assignee",fe(N)),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(N=>{var $;return(0,Qe.jsx)(ca,{value:(($=N==null?void 0:N.id)==null?void 0:$.toString())||"",children:N.name},N.id)})})]}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Qe.jsx)($n.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.assignee.name})]})]}),(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,Qe.jsx)(Oe,{type:"date",value:(ct=(z=n.closureDate)==null?void 0:z.split("Qe")[0])!=null?ct:"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/Qe"})]})]})]}),(0,Qe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Description"}),f==="description"?(0,Qe.jsx)(ma,{value:n.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Qe.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Status"}),f==="status"?(0,Qe.jsxs)(Sa,{value:n.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select status"})}),(0,Qe.jsx)(da,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,Qe.jsx)(ca,{value:N,children:N},N))})]}):(0,Qe.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:n.status})]}),(0,Qe.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Categories"}),f==="categories"?(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>{var $,U;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:(($=N.id)==null?void 0:$.toString())||"",checked:(n.categories||[]).some(Uo=>Uo.id===N.id),onCheckedChange:()=>N.id!==void 0&&w(N)}),(0,Qe.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${ee(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(N=>{let $=N;return $?(0,Qe.jsx)(at,{variant:"outline",className:ee($.type||"sector"),children:$.name},$.id):null})})]})]}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,Qe.jsx)(sa,{className:"h-[200px] overflow-y-auto",children:(0,Qe.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((N,$)=>new Date($.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var $;return(0,Qe.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Qe.jsx)("p",{className:"text-sm text-foreground",children:N.text}),(0,Qe.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[($=N==null?void 0:N.author)==null?void 0:$.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Qe.jsxs)("div",{className:"flex mt-2",children:[(0,Qe.jsx)(Oe,{value:u,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow An-1"}),(0,Qe.jsxs)(D,{onClick:_,className:"An-2",children:[(0,Qe.jsx)($n.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Qe.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function an({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,Qe.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-Qe transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Qe.jsxs)(_e,{className:"pb-2",children:[(0,Qe.jsx)("div",{className:"flex justify-between items-center",children:(0,Qe.jsx)($e,{className:"text-lg font-semibold text-foreground",children:t==null?void 0:t.name})}),(0,Qe.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Qe.jsxs)(Te,{children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Qe.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Qe.jsx)($n.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Qe.jsx)("span",{children:e.assignee.name})]}),(0,Qe.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Qe.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Qe.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Qe.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Qe.jsx)($n.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Qe.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Qe.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Qe.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Jr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function on({onSubmit:e}){var r;let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!1});return(0,Qe.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,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerName",children:"Customer Name"}),(0,Qe.jsx)(Oe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerIntro",children:"Intro"}),(0,Qe.jsx)(ma,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Qe.jsx)(ae,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:"Add Customer"})]})}function rn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var ee,fe,ze,Pt;let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Qe")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Zo.useState)(!1),[p,g]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let R={};return n.customer||(R.customer="Customer is required"),n.value||(R.value="Value is required"),n.assignee||(R.assignee="Assignee is required"),n.closureDate||(R.closureDate="Closure Date is required"),g(R),Object.keys(R).length===0},b=async R=>{R.preventDefault(),g({});try{if(f()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):g(z.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},m=R=>{c(z=>({...z,categories:(z.categories||[]).includes(R.id)?(z.categories||[]).filter(ct=>ct!==R.id):[...z.categories||[],R.id]}))},y=async R=>{c({...n,customer:R});try{let z=await s(R);z.success?d(!1):g(z.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},w=R=>t==null?void 0:t.find(z=>z.id===Number(R)),_=R=>e==null?void 0:e.find(z=>z.id===Number(R));return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,Qe.jsx)(sa,{className:"h-[60vh] pr-4",children:(0,Qe.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customer",children:"Customer"}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsxs)(Sa,{value:(fe=(ee=n.customer)==null?void 0:ee.id)==null?void 0:fe.toString(),onValueChange:R=>c({...n,customer:_(R)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select customer"})}),(0,Qe.jsx)(da,{children:e.map(R=>{var z;return(0,Qe.jsx)(ca,{value:((z=R.id)==null?void 0:z.toString())||"",children:R.name},R.id)})})]}),(0,Qe.jsx)(D,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Qe.jsx)($n.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"value",children:"Value"}),(0,Qe.jsx)(Oe,{id:"value",type:"number",value:n.value||"",onChange:R=>c({...n,value:Number.parseFloat(R.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"assignee",children:"Assignee"}),(0,Qe.jsxs)(Sa,{value:(Pt=(ze=n.assignee)==null?void 0:ze.id)==null?void 0:Pt.toString(),onValueChange:R=>c({...n,assignee:w(R)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(R=>{var z;return(0,Qe.jsx)(ca,{value:((z=R.id)==null?void 0:z.toString())||"",children:R.name},R.id)})})]}),p.assignee&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"description",children:"Description"}),(0,Qe.jsx)(ma,{id:"description",value:n.description||"",onChange:R=>c({...n,description:R.target.value}),placeholder:"Enter deal description"})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{children:"Categories"}),(0,Qe.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(R=>(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)("h4",{className:"text-sm font-medium",children:R.charAt(0).toUpperCase()+R.slice(1)}),(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===R).map(z=>{var ct;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:z.id.toString(),checked:(ct=n.categories)==null?void 0:ct.includes(z.id),onCheckedChange:()=>m(z)}),(0,Qe.jsx)("label",{htmlFor:z.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.id)})})]},R))})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"closureDate",children:"Closure Date"}),(0,Qe.jsx)(Oe,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:R=>c({...n,closureDate:R.target.value})}),p.closureDate&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Qe.jsx)(tt,{open:u,onOpenChange:d,children:(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Customer"})}),(0,Qe.jsx)(on,{onSubmit:y})]})})]})}function sn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,p]=(0,Zo.useState)(!1);return(0,Qe.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Qe.jsx)("h2",{className:"text-Qe font-semibold mb-4",children:e}),c&&(0,Qe.jsxs)(tt,{open:d,onOpenChange:p,children:[(0,Qe.jsx)(mr,{asChild:!0,children:(0,Qe.jsxs)(D,{className:"mb-4 w-full",children:[(0,Qe.jsx)($n.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Deal"})}),(0,Qe.jsx)(rn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,Qe.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Qe.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,b)=>(0,Qe.jsx)(Jr.Draggable,{draggableId:f.id.toString(),index:f.id,children:m=>(0,Qe.jsx)("div",{ref:m.innerRef,...m.draggableProps,...m.dragHandleProps,children:(0,Qe.jsx)(an,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),g.placeholder]})}),(0,Qe.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,Qe.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Qe.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Qe.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Qe.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var kp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Sp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,Zo.useState)(null),n=g=>{var f;return((f=e.deals)!=null?f:[]).filter(b=>b.status===g)},c=g=>g.reduce((f,b)=>f+(b.value||0),0),u=(g,f)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((m,y)=>m+(y.value||0)*b[f],0)},d=(0,Zo.useCallback)(g=>{var ee,fe;let{source:f,destination:b}=g;if(!b||f.droppableId===b.droppableId&&f.index===b.index)return;let m=f.droppableId,y=b.droppableId,w=(ee=e.deals)==null?void 0:ee.filter(ze=>ze.id===f.index)[0],_=[...(fe=e.deals)!=null?fe:[]];w&&(w.status=y,a(w))},[a]);return(0,Qe.jsx)(Jr.DragDropContext,{onDragEnd:d,children:(0,Qe.jsxs)("div",{className:"p-4 h-3/4 overflow-auto",children:[(0,Qe.jsx)("div",{className:"flex space-Qe-4 pb-4",children:kp.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var b,m;let f=n(g);return(0,Qe.jsx)(sn,{status:g,deals:f,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(m=e.categories)!=null?m:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:r},g)})}),s&&(0,Qe.jsx)(tn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:g=>o(s.id.toString(),g)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,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,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,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,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
14
+ dark bg-background text-primary`,children:[(0,Qe.jsxs)("div",{className:"flex px-6 items-center space-Qe-2",children:[a&&(0,Qe.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Qe.jsx)("span",{className:"Qe-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Qe.jsx)("div",{ref:s,className:"preview-container"})]})},wd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=rs(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new Yy.Previewer),[l,n]=(0,Zo.useState)(0),u=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Zo.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=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new Yy.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Qe.jsxs)("div",{className:"pagedjs-container",children:[(0,Qe.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((p,g)=>{var f,b;return(0,Qe.jsx)(Qe.Fragment,{children:g===0?(0,Qe.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Qe.jsx)(Oo,{hero:e.hero,title:e.title})},g):(0,Qe.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${Km("185mm")}px]`,((b=(f=p.theme)==null?void 0:f.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Qe.jsx)(zo,{title:p.blockName}),(0,Qe.jsx)(fa,{blocks:[p],fill:!0})]},g)})})}),(0,Qe.jsx)("div",{ref:o,className:"preview-container"})]})};var Bi=h(require("clsx"));function Jm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...u}){let p=c?g=>(0,Qe.jsx)(c,{...g}):l?({href:g,children:f,...b})=>(0,Qe.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:f}):g=>(0,Qe.jsx)("a",{...g});return(0,Qe.jsxs)(ha,{...u,variant:"inset",children:[(0,Qe.jsx)(xa,{children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(Se,{children:n?(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)(le,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Qe.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Qe.jsxs)(Zt,{children:[(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Qe.jsxs)(Zt,{children:[e&&!n&&e.map((g,f)=>(0,Qe.jsx)(Zm,{subNav:g,pathName:r,Link:p},f)),(0,Qe.jsx)(Je,{className:"mt-auto",children:(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:t&&!n&&t.map(g=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(Ze,{asChild:!0,size:"sm",children:(0,Qe.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,Qe.jsx)(g.icon,{}),(0,Qe.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,Qe.jsx)(wa,{})]})}function Zm({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsx)(Je,{className:"py-0",children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(It,{asChild:!0,defaultOpen:o.isActive,children:(0,Qe.jsxs)(Se,{children:[(0,Qe.jsx)(Ze,{asChild:!0,tooltip:o.label,className:(0,Bi.default)(r&&"font-bold text-accent"),children:(0,Qe.jsxs)(a,{href:o.url,children:[o.icon&&(0,Qe.jsx)(o.icon,{}),(0,Qe.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(Kt,{asChild:!0,children:(0,Qe.jsxs)(xo,{className:"data-[state=open]:rotate-90",children:[(0,Qe.jsx)($n.ChevronRight,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(ea,{children:(l=o.links)==null?void 0:l.map(n=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,className:(0,Bi.default)(n.url===t&&"font-bold text-accent"),children:(0,Qe.jsx)(a,{href:n.url,children:(0,Qe.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var Cd=h(require("clsx"));var ep=()=>(0,Qe.jsx)(Re,{iconName:"github",size:"10x"});function tp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...p}){let b=d?m=>(0,Qe.jsx)(d,{...m}):u?({item:m,children:y,...w})=>(0,Qe.jsx)("button",{onClick:()=>u&&u(m),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:y}):m=>(0,Qe.jsx)("a",{href:m.href,...m});return(0,Qe.jsxs)(ha,{side:"right",variant:"inset",...p,children:[(0,Qe.jsxs)(xa,{className:"border-b border-sidebar-border",children:[(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Se,{children:(0,Qe.jsxs)(Ze,{onClick:s,children:[(0,Qe.jsx)($n.FilePlus,{})," ",(0,Qe.jsx)("span",{children:"Add Document"})]})}),c&&(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(Ze,{onClick:c,tooltip:"Open in GitHub",children:(0,Qe.jsx)(ep,{})})})]}),(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Se,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Cd.default)(r&&"text-accent"),children:[(0,Qe.jsx)($n.Edit,{})," ",(0,Qe.jsx)("span",{children:"Edit"})]})}),(0,Qe.jsx)(Se,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:n,children:[(0,Qe.jsx)($n.Printer,{})," ",(0,Qe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Editor Controls",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:a})})]})}),(0,Qe.jsx)(ho,{className:"mx-0"})]}),(0,Qe.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Related Content"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Table of Contents"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Se,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Related Content",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:e&&Object.keys(e).map(m=>(0,Qe.jsxs)(Se,{children:[(0,Qe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",m.charAt(0).toUpperCase()+m.slice(1)]}),m&&e[m]&&(0,Qe.jsx)(ea,{children:e[m].map(y=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,Qe.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,Qe.jsx)("span",{children:y.label}),y.type==="note"&&(0,Qe.jsx)($n.PencilLine,{className:"An-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,Qe.jsx)(Re,{iconName:"code-pull-request-draft",className:"An-2 text-gray-400 !important"})]})})},y.label))})]},m))})})})]})}),t&&!o&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Table of Contents",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:t.map(m=>{var y;return(0,Qe.jsxs)(Se,{children:[(0,Qe.jsx)(Ze,{asChild:!0,children:(0,Qe.jsx)("a",{href:`#${m.url}`,className:"text-xs",children:m.title})}),(y=m.items)!=null&&y.length?(0,Qe.jsx)(ea,{children:m.items.map(w=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,Qe.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Qe.jsx)("span",{children:w.title})})})},w.title))}):null]},m.title)})})})})]})})]}),(0,Qe.jsx)(wa,{})]})}var kd=h(require("next/image"));function ap({title:e,members:t}){return(0,Qe.jsx)(Ce,{className:"mb-6",children:(0,Qe.jsxs)("div",{className:"p-6",children:[(0,Qe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Qe.jsx)($n.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Qe.jsx)("h2",{className:"text-Qe font-semibold text-foreground",children:e})]}),(0,Qe.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Qe.jsx)(kd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Qe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Sd=h(require("next/link"));var op=({links:e,title:t="Related Content"})=>(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:t})}),(0,Qe.jsx)(Te,{children:(0,Qe.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Qe.jsxs)(Sd.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,Qe.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},o))})})]});var Li=i("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 rp({pages:e}){let t=(0,sd.useSearchParams)(),a=(0,sd.usePathname)(),{replace:o}=(0,sd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&n(g=>({start:g.start+1,end:g.end+1}))};function u(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,Qe.jsx)("div",{className:"mt-12",children:(0,Qe.jsxs)("$n",{className:"flex flex-wrap items-center justify-center gap-3 Qe:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Qe.jsx)(Pl.FaArrowLeft,{})})}),d.map((p,g)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("a",{className:i(Li,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},g)),l.end<r&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Qe.jsx)(Pl.FaArrowRight,{})})})]})})}var Dv=i("transition-colors duration-400 hover:text-primary ease-in-out");function sp({title:e,links:t}){let a=(0,sd.useSearchParams)(),o=(0,sd.usePathname)(),{replace:r}=(0,sd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:e&&e})}),(0,Qe.jsx)(Te,{children:t&&t.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,Qe.jsxs)("li",{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(l.href)},children:[l.label,(0,Qe.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},n))})})})]})}function ip({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,sd.useSearchParams)(),r=(0,sd.usePathname)(),{replace:s}=(0,sd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Qe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Qe-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Qe.jsx)(D,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Id=h(require("next/image"));var Hi=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Qe.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Qe.jsx)(J,{className:"max-w-none mb-6 An-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Qe.jsx)("$n",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(yt,{...r})},s))})]}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(Gt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Qe.jsx)("div",{children:(0,Qe.jsx)(Id.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(np,{})]})}),np=()=>(0,Qe.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Fi=h(require("next/image"));var lp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Qe.jsx)(Fi.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,Qe.jsx)("div",{children:(0,Qe.jsx)(Fi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},zi=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Qe.jsx)(lp,{media:t}),(0,Qe.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Qe.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Qe.jsx)(J,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Oi=({children:e,richText:t})=>(0,Qe.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Qe.jsx)("div",{className:"container",children:e||t&&(0,Qe.jsx)(J,{content:t,enableGutter:!1})})});var Bd=h(require("react")),Ld=h(require("next/image"));var Ad=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var dp=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Qe.jsxs)("div",{className:"relative grid pt-24",children:[(0,Qe.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Qe.jsxs)("div",{className:"container mx-auto",children:[(0,Qe.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-4 Qe:flex-row Qe:gap-16 ",children:[o&&o.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Qe.jsx)("p",{children:o.map((n,c)=>(0,Qe.jsxs)(Bd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Qe.jsx)("time",{dateTime:r,children:Ad(r)})]}),t&&t.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Qe.jsx)(at,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Qe.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Qe.jsx)(Ld.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Qe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-$n-t from-background dark:from-black $n-transparent"})]})]})};var _r=require("@heroicons/react/20/solid");var _i=h(require("next/image"));function Gi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"sd-padding",o);return(0,Qe.jsx)("div",{className:r,children:e})}var Hd=require("next-themes");function cp({children:e,...t}){return(0,Qe.jsx)(Hd.ThemeProvider,{...t,children:e})}var _o=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Qe.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Qe.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Qe.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},mp=({className:e})=>(0,Qe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Qe.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var $i=({title:e,image:t})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-6xl",children:e})}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(_i.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Qe.jsx)("div",{children:(0,Qe.jsx)(_i.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(_o,{className:"text-black z-10",position:"header"})]})});var pp={highImpact:Hi,lowImpact:Oi,mediumImpact:zi,sectionHero:$i},up=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=pp[t];return a?(0,Qe.jsx)(a,{...e}):null};function fp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Qe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Qe.jsxs)("ol",{role:"list",className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Qe.jsx)(_r.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Qe.jsx)("li",{children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(_r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Qe.jsx)("a",{href:a.href,className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Qe.jsx)("div",{className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Qe.jsx)(Qe.Fragment,{})}var qe=require("@headlessui/react"),Wr=require("@heroicons/react/24/outline");var gp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Qe.jsx)("a",{href:o,className:"flex items-center gap-Qe-1 text-sm text-foreground group",children:(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]})}):(0,Qe.jsxs)(qe.Popover,{children:[(0,Qe.jsxs)(qe.PopoverButton,{className:"flex items-center gap-Qe-1 text-sm/6 text-foreground outline-none group",children:[(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]}),(0,Qe.jsx)(_r.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Qe.jsxs)(qe.PopoverPanel,{transition:!0,className:"absolute inset-Qe-0 top-0 -z-10 bg-popover mt-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,Qe.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Qe-4 px-6 py-10 lg:px-8 Qe:gap-Qe-8 z-50",children:t&&t.map(r=>(0,Qe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Qe.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,Qe.jsx)(zd,{icon:r.icon,size:"4x"})}),(0,Qe.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Qe.jsx)("span",{className:"absolute inset-0"})]}),(0,Qe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Qe.jsx)("div",{className:"bg-gray-50",children:(0,Qe.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Qe.jsx)("div",{className:"grid grid-cols-3 divide-Qe divide-gray-900/5 border-Qe border-gray-900/5",children:a.map(r=>(0,Qe.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Qe-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Qe.jsx)(zd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),zd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Qe.jsx)(Re,{...e,size:a});if("src"in e)return(0,Qe.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Qe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},$r=gp;var Vr=["light","dark","green"];function bp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Zo.useState)(!1),[s,l]=(0,Zo.useState)(!1),[n,c]=(0,Zo.useState)("light"),u=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,g]=(0,Zo.useState)(`${u}.${d}`),f=m=>{Vr.includes(m)?g(m==="light"?`${u}.${d}`:`${u}-${m}.${d}`):g(`${u}.${d}`)};(0,Zo.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";c(m),document.documentElement.setAttribute("class",m),f(m)},[]);let b=()=>{let m=Vr[(Vr.indexOf(n)+1)%Vr.length];c(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m),f(m)};return(0,Qe.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Qe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Qe.jsx)("div",{className:"flex lg:flex-1",children:(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:e}),(0,Qe.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Qe.jsx)("div",{className:"flex lg:hidden",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Qe.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:a.map(m=>(0,Qe.jsx)($r,{...m},m.name))}),(0,Qe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Qe.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Qe.jsx)($o.MoonIcon,{className:"h-6 w-6"}):(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"})})})]}),(0,Qe.jsxs)(qe.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-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,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Qe.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Wr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 py-6",children:a.map(m=>(0,Qe.jsx)(yp,{...m},m.name))})})})]})]})]})}function yp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.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,Qe.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function vp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Qe.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Qe.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Qe.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Qe.jsx)(Gi,{children:(0,Qe.jsxs)("div",{className:"flex flex-col items-start Qe:w-2/3 mb-10 z-0 Qe:mb-0",children:[(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-7xl mb-6",children:r&&r}),(0,Qe.jsx)("div",{className:"text-lg Qe:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Qe.jsx)(_o,{className:"text-black z-10",position:"header"})]})})}var Vi=h(require("next/image"));function ga({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Qe.jsxs)(ot,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,Qe.jsx)(Vi.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,Qe.jsx)(Vi.default,{className:"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}})]})}function Wi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,u]=(0,Zo.useState)(""),d=["light","dark"],{theme:p,setTheme:g}=(0,Hd.useTheme)();(0,Zo.useEffect)(()=>{u(p||"dark")},[p]);let f=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),g(b)};return(0,Zo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Qe.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Qe.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Qe.jsx)(ga,{logoDark:a,logoLight:t}),(0,Qe.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:o&&o.map(b=>(0,Qe.jsx)($r,{...b},b.name))}),r&&(0,Qe.jsx)("button",{className:"fixed right-4 z-[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:f,children:(0,Qe.jsxs)("div",{className:"relative",children:[(0,Qe.jsx)($n.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Qe.jsx)($n.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ji=["light","dark"];function Ui({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,$d.useTheme)(),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Zo.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=ji[(ji.indexOf(d)+1)%ji.length];p(f),n(f)};return(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Qe.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Qe.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsx)("div",{className:"flex items-center space-Qe-4",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 z-[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,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Qe.jsxs)(qe.Dialog,{open:c,onClose:u,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Qe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-Qe p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Wr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,Qe.jsx)(hp,{...f},f.name))})})})]})]})]})})}function hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Qe.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Ih=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Vd=i("text-brand-green text-Qe leading-[1.25] Qe:text-lg mb-5 Qe:mb-[1.5rem]"),Xi=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Yi=i("flex items-center text-white gap-3"),Xr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function xp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,Qe.jsxs)("footer",{className:i("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Qe.jsx)("div",{className:"py-16 Qe:py-20",children:(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"grid gap-10 Qe:grid-cols-2 Qe:grid-cols-3",children:[(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Qe.jsx)(ga,{logoDark:o,logoLight:a}),(0,Qe.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Qe.jsx)("nav",{"aria-label":"social links",children:(0,Qe.jsx)("$n",{className:"inline-flex Qe-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((u,d)=>(0,Qe.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Qe.jsx)(ot,{"aria-label":u.href,className:"text-2xl",href:u.href,openNewTab:!0,children:(0,Qe.jsx)("span",{children:u.icon})})},d))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Qe.jsx)("h3",{className:Vd,children:s.title}),s.links&&s.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid Qe-0 gap-2",children:s.links.map(u=>(0,Qe.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Qe.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,Qe.jsx)(Pl.FaChevronRight,{})}),(0,Qe.jsx)(ot,{href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})]},u.label))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Qe.jsx)("h3",{className:Vd,children:l.title}),(0,Qe.jsxs)("$n",{"aria-label":"addresses",className:"grid gap-2 Qe-0",children:[(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPaperPlane,{})}),(0,Qe.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Qe.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,d)=>(0,Qe.jsx)("a",{href:`mailto:${u}`,className:Xr,children:u},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPhone,{})}),(0,Qe.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,d)=>(0,Qe.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:Xr,children:u},d))})]})]})]})]})})}),(0,Qe.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,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Qe-8 gap-y-4 Qe:gap-Qe-10",children:[(0,Qe.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Qe.jsx)("$n",{className:"flex flex-wrap items-center gap-Qe-4 Qe:gap-Qe-7",children:n.links.map(u=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(ot,{"aria-label":`Yy $n page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})},u.label))})})]})})})]})}function wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Qe.jsxs)("div",{className:i("fixed top-0 left-0 right-0 z-50",r),children:[(0,Qe.jsx)(Wi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Qe.jsx)(Ui,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function qi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,sd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])};return(0,Qe.jsxs)("div",{className:"space-y-4",children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Qe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)(D,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Qe.jsx)(D,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Qe.jsx)("div",{className:"overflow-hidden sm:rounded-Qe",children:(0,Qe.jsxs)("$n",{className:"divide-y divide-gray-200",children:[(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Qe.jsx)("label",{htmlFor:"select-all",className:"An-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Qe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Qe.jsxs)("div",{className:"An-3 flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-10 w-10",children:[(0,Qe.jsx)(Ft,{src:d.userImage,alt:d.userName}),(0,Qe.jsx)(zt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-3",children:(0,Qe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.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,Qe.jsx)(at,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Qe.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ki=require("date-fns");var Ud=[{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 jo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Ud.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Xd=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!jo(o))return .5;for(;o<=r;)jo(o)||s++,o.setDate(o.getDate()+1);return s},Yd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Np=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Qe.jsx)("div",{className:"flex space-Qe-2",children:e.map((r,s)=>(0,Qe.jsx)(D,{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 Ji({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Zo.useState)(new Date),[r,s]=(0,Zo.useState)(new Date),[l,n]=(0,Zo.useState)("Full Day"),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)(1),g=(0,sd.useRouter)();(0,Zo.useEffect)(()=>{let m=Yd(a,r);u(m),m&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){p(0);return}let m=Xd(a,r,l!=="Full Day");p(m)},[a,r,l]);let f=m=>{n(m)};return(0,Qe.jsxs)("div",{className:"max-w-2xl",children:[(0,Qe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Qe.jsxs)("form",{onSubmit:async m=>{if(m.preventDefault(),!a||!r){mi.toast.error("Please select both start and end dates");return}if(d>e){mi.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",l),y.append("duration",d.toString());let w=await(t||Cp)(y);w.success?(mi.toast.success(w.message),o(void 0),s(void 0),n("Full Day"),g.refresh()):mi.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"startDate",children:"Start Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ki.format)(a,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:a,onSelect:m=>{o(m),m&&(!r||m>r)&&s(m)},initialFocus:!0})})]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"endDate",children:"End Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ki.format)(r,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:r,onSelect:s,disabled:m=>a?m<a:!1,initialFocus:!0})})]})]})]}),(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{children:"Leave Type"}),(0,Qe.jsx)(Np,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Qe.jsx)(D,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Qe.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Cp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Kd(...e){return e.filter(Boolean).join(" ")}function Zi({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))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=u=>u.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Qe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Qe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Qe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Qe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Qe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(D,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Qe.jsx)("div",{className:"mt-8 flow-root",children:(0,Qe.jsx)("div",{className:"-mx-4 -my-2 overflow-Qe-auto sm:-mx-6 lg:-mx-8",children:(0,Qe.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Qe.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Qe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Qe-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Qe-6 lg:Qe-8",children:"Employee"}),[...Array(r)].map((u,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Qe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${jo(p)?"bg-gray-200":""}`,children:[(0,Qe.jsx)("div",{children:c(p)}),(0,Qe.jsx)("div",{children:d+1})]},d)})]})}),(0,Qe.jsx)("tbody",{children:o.map((u,d)=>(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Qe-4 pr-3 text-sm font-medium text-gray-900 sm:Qe-6 lg:Qe-8"),children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-11 w-11",children:[(0,Qe.jsx)(Ft,{src:u.image,alt:u.name}),(0,Qe.jsx)(zt,{children:u.name.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-4",children:(0,Qe.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),b=a.find(m=>m.userId===u.id&&new Date(m.startDate)<=f&&new Date(m.endDate)>=f);return(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",jo(f)?"bg-gray-200":"bg-white"),children:(0,Qe.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${u.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Qe.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${u.id}-${g}`)})]},u.id))})]})})})})]})}function en({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Zo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,Qe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Qe.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Qe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Qe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Qe.jsx)("div",{className:"flex items-center",children:(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{variant:"outline",onClick:u,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(D,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Qe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Qe"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Qe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Qe.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(d=>(0,Qe.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:i("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,Qe.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Qe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Qe.jsxs)("button",{type:"button",className:i(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:z-10"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:i("An-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,Qe.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Qe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Qe.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.id))})]},d.date.toISOString()))})]})]})]})}var ya=require("lucide-react");function Jd(...e){return e.filter(Boolean).join(" ")}function Pp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,u]=(0,Zo.useState)("Calendar View"),d=(0,sd.useRouter)(),p=!1,g=(0,Ki.parseISO)(a),f=async m=>{let y=(0,Ki.format)(m,"dd-MM-yyyy"),w=new URL(window.location.href);return w.searchParams.set("date",y),d.push(w.toString()),{success:!0}};if(p)return(0,Qe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Qe.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ya.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ya.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ya.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ya.CheckSquare,current:c==="Approve Leave"}];return(0,Qe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Qe.jsxs)("div",{className:"mb-8",children:[(0,Qe.jsxs)("div",{className:"sm:hidden",children:[(0,Qe.jsx)("select",{value:c,onChange:m=>u(m.target.value),className:"block w-full rounded-Qe border-gray-300 py-2 Qe-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(m=>(0,Qe.jsx)("option",{children:m.name},m.name))}),(0,Qe.jsx)($n.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Qe.jsx)("div",{className:"hidden sm:block",children:(0,Qe.jsx)("div",{className:"border-b border-gray-200",children:(0,Qe.jsx)("nav",{className:"-mb-px flex space-Qe-8","aria-label":"Tabs",children:b.map(m=>(0,Qe.jsxs)("a",{onClick:()=>{(m.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(m.name)},className:Jd(m.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",m.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":m.current?"page":void 0,children:[(0,Qe.jsx)(m.icon,{className:Jd(m.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-An-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Qe.jsx)("span",{children:m.name})]},m.name))})})})]}),c==="Grid View"&&(0,Qe.jsx)(Zi,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,Qe.jsx)(en,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,Qe.jsx)(Ji,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:m=>s?s(m):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Qe.jsx)(qi,{leaveRequests:o,onApprove:m=>l?l(m):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:m=>n?n(m):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function tn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var ze,Pt,R,z,ct;let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Zo.useState)(""),[p,g]=(0,Zo.useState)(!1),[f,b]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let m=async()=>{try{let N=await s(n);N.success?(g(!1),b(null)):console.error("Failed $n save deal:",N.errors)}catch(N){console.error("Failed $n save deal:",N)}},y=(N,$)=>{c(U=>({...U,[N]:$}))},w=N=>{let $=(n.categories||[]).includes(N)?(n.categories||[]).filter(U=>U!==N):[...n.categories||[],N];y("categories",$)},_=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let $=await l(N);if(!$.success){console.error("Failed $n add comment:",$.errors);return}}catch($){console.error("Failed $n add comment:",$)}c($=>({...$,comments:[...$.comments||[],N]})),d("")}},ee=N=>{switch(N){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},fe=N=>t==null?void 0:t.find($=>$.id===Number(N));return(0,Qe.jsx)(tt,{open:!0,children:(0,Qe.jsxs)(Xe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Qe.jsxs)(ft,{className:"flex flex-row items-center justify-between",children:[(0,Qe.jsx)(gt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Qe.jsxs)("div",{className:"flex space-Qe-2",children:[(0,Qe.jsx)(D,{variant:"outline",onClick:r,children:"Close"}),(0,Qe.jsxs)(D,{onClick:m,disabled:!p,children:[(0,Qe.jsx)($n.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Qe.jsxs)(sa,{className:"flex-grow pr-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Qe.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,Qe.jsx)(Oe,{type:"number",value:n.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",(ze=n.value)==null?void 0:ze.toLocaleString()]})}),(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,Qe.jsxs)(Sa,{value:((R=(Pt=n==null?void 0:n.assignee)==null?void 0:Pt.id)==null?void 0:R.toString())||"",onValueChange:N=>y("assignee",fe(N)),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(N=>{var $;return(0,Qe.jsx)(ca,{value:(($=N==null?void 0:N.id)==null?void 0:$.toString())||"",children:N.name},N.id)})})]}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Qe.jsx)($n.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.assignee.name})]})]}),(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,Qe.jsx)(Oe,{type:"date",value:(ct=(z=n.closureDate)==null?void 0:z.split("Qe")[0])!=null?ct:"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/Qe"})]})]})]}),(0,Qe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Description"}),f==="description"?(0,Qe.jsx)(ma,{value:n.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Qe.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Status"}),f==="status"?(0,Qe.jsxs)(Sa,{value:n.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select status"})}),(0,Qe.jsx)(da,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,Qe.jsx)(ca,{value:N,children:N},N))})]}):(0,Qe.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:n.status})]}),(0,Qe.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Categories"}),f==="categories"?(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>{var $,U;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:(($=N.id)==null?void 0:$.toString())||"",checked:(n.categories||[]).some(Uo=>Uo.id===N.id),onCheckedChange:()=>N.id!==void 0&&w(N)}),(0,Qe.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${ee(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(N=>{let $=N;return $?(0,Qe.jsx)(at,{variant:"outline",className:ee($.type||"sector"),children:$.name},$.id):null})})]})]}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,Qe.jsx)(sa,{className:"h-[200px] overflow-y-auto",children:(0,Qe.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((N,$)=>new Date($.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var $;return(0,Qe.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Qe.jsx)("p",{className:"text-sm text-foreground",children:N.text}),(0,Qe.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[($=N==null?void 0:N.author)==null?void 0:$.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Qe.jsxs)("div",{className:"flex mt-2",children:[(0,Qe.jsx)(Oe,{value:u,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow An-1"}),(0,Qe.jsxs)(D,{onClick:_,className:"An-2",children:[(0,Qe.jsx)($n.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Qe.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function an({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,Qe.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-Qe transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Qe.jsxs)(_e,{className:"pb-2",children:[(0,Qe.jsx)("div",{className:"flex justify-between items-center",children:(0,Qe.jsx)($e,{className:"text-lg font-semibold text-foreground",children:t==null?void 0:t.name})}),(0,Qe.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Qe.jsxs)(Te,{children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Qe.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Qe.jsx)($n.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Qe.jsx)("span",{children:e.assignee.name})]}),(0,Qe.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Qe.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Qe.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Qe.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Qe.jsx)($n.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Qe.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Qe.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Qe.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Jr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function on({onSubmit:e}){var r;let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!1});return(0,Qe.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,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerName",children:"Customer Name"}),(0,Qe.jsx)(Oe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerIntro",children:"Intro"}),(0,Qe.jsx)(ma,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Qe.jsx)(ae,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:"Add Customer"})]})}function rn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var ee,fe,ze,Pt;let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Qe")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Zo.useState)(!1),[p,g]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let R={};return n.customer||(R.customer="Customer is required"),n.value||(R.value="Value is required"),n.assignee||(R.assignee="Assignee is required"),n.closureDate||(R.closureDate="Closure Date is required"),g(R),Object.keys(R).length===0},b=async R=>{R.preventDefault(),g({});try{if(f()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):g(z.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},m=R=>{c(z=>({...z,categories:(z.categories||[]).includes(R.id)?(z.categories||[]).filter(ct=>ct!==R.id):[...z.categories||[],R.id]}))},y=async R=>{c({...n,customer:R});try{let z=await s(R);z.success?d(!1):g(z.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},w=R=>t==null?void 0:t.find(z=>z.id===Number(R)),_=R=>e==null?void 0:e.find(z=>z.id===Number(R));return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,Qe.jsx)(sa,{className:"h-[60vh] pr-4",children:(0,Qe.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customer",children:"Customer"}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsxs)(Sa,{value:(fe=(ee=n.customer)==null?void 0:ee.id)==null?void 0:fe.toString(),onValueChange:R=>c({...n,customer:_(R)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select customer"})}),(0,Qe.jsx)(da,{children:e.map(R=>{var z;return(0,Qe.jsx)(ca,{value:((z=R.id)==null?void 0:z.toString())||"",children:R.name},R.id)})})]}),(0,Qe.jsx)(D,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Qe.jsx)($n.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"value",children:"Value"}),(0,Qe.jsx)(Oe,{id:"value",type:"number",value:n.value||"",onChange:R=>c({...n,value:Number.parseFloat(R.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"assignee",children:"Assignee"}),(0,Qe.jsxs)(Sa,{value:(Pt=(ze=n.assignee)==null?void 0:ze.id)==null?void 0:Pt.toString(),onValueChange:R=>c({...n,assignee:w(R)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Ra,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(R=>{var z;return(0,Qe.jsx)(ca,{value:((z=R.id)==null?void 0:z.toString())||"",children:R.name},R.id)})})]}),p.assignee&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"description",children:"Description"}),(0,Qe.jsx)(ma,{id:"description",value:n.description||"",onChange:R=>c({...n,description:R.target.value}),placeholder:"Enter deal description"})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{children:"Categories"}),(0,Qe.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(R=>(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)("h4",{className:"text-sm font-medium",children:R.charAt(0).toUpperCase()+R.slice(1)}),(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===R).map(z=>{var ct;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:z.id.toString(),checked:(ct=n.categories)==null?void 0:ct.includes(z.id),onCheckedChange:()=>m(z)}),(0,Qe.jsx)("label",{htmlFor:z.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.id)})})]},R))})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"closureDate",children:"Closure Date"}),(0,Qe.jsx)(Oe,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:R=>c({...n,closureDate:R.target.value})}),p.closureDate&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Qe.jsx)(tt,{open:u,onOpenChange:d,children:(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Customer"})}),(0,Qe.jsx)(on,{onSubmit:y})]})})]})}function sn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,p]=(0,Zo.useState)(!1);return(0,Qe.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Qe.jsx)("h2",{className:"text-Qe font-semibold mb-4",children:e}),c&&(0,Qe.jsxs)(tt,{open:d,onOpenChange:p,children:[(0,Qe.jsx)(mr,{asChild:!0,children:(0,Qe.jsxs)(D,{className:"mb-4 w-full",children:[(0,Qe.jsx)($n.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Deal"})}),(0,Qe.jsx)(rn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,Qe.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Qe.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,b)=>(0,Qe.jsx)(Jr.Draggable,{draggableId:f.id.toString(),index:f.id,children:m=>(0,Qe.jsx)("div",{ref:m.innerRef,...m.draggableProps,...m.dragHandleProps,children:(0,Qe.jsx)(an,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),g.placeholder]})}),(0,Qe.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,Qe.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Qe.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Qe.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Qe.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var kp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Sp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,Zo.useState)(null),n=g=>{var f;return((f=e.deals)!=null?f:[]).filter(b=>b.status===g)},c=g=>g.reduce((f,b)=>f+(b.value||0),0),u=(g,f)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((m,y)=>m+(y.value||0)*b[f],0)},d=(0,Zo.useCallback)(g=>{var ee,fe;let{source:f,destination:b}=g;if(!b||f.droppableId===b.droppableId&&f.index===b.index)return;let m=f.droppableId,y=b.droppableId,w=(ee=e.deals)==null?void 0:ee.filter(ze=>ze.id===f.index)[0],_=[...(fe=e.deals)!=null?fe:[]];w&&(w.status=y,a(w))},[a]);return(0,Qe.jsx)(Jr.DragDropContext,{onDragEnd:d,children:(0,Qe.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Qe.jsx)("div",{className:"flex space-Qe-4 pb-4",children:kp.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var b,m;let f=n(g);return(0,Qe.jsx)(sn,{status:g,deals:f,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(m=e.categories)!=null?m:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:r},g)})}),s&&(0,Qe.jsx)(tn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:g=>o(s.id.toString(),g)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,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,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,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,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
@@ -1 +1 @@
1
- import{a as rc,b as sc,c as tc}from"../chunk-K7XFS6IQ.mjs";import{a as oc}from"../chunk-75OAUMGO.mjs";import{a as qc}from"../chunk-L2CGDHVO.mjs";import{a as Ub}from"../chunk-CSWXKGJE.mjs";import{a as pc}from"../chunk-7DINW2AE.mjs";import"../chunk-JZE6HGP6.mjs";import{a as mc}from"../chunk-6YV7RK6Q.mjs";import{a as nc}from"../chunk-NRL4U42W.mjs";import{a as kc}from"../chunk-KEPEJWQO.mjs";import{a as lc}from"../chunk-AUBKJ4XO.mjs";import"../chunk-6LKCK2EH.mjs";import{a as Xc}from"../chunk-CSNKYRV5.mjs";import{a as Uc}from"../chunk-XB5WL3OT.mjs";import{a as Tc}from"../chunk-SPAW5K3E.mjs";import{a as Wc}from"../chunk-IJCMUPNH.mjs";import{a as Vc}from"../chunk-PJSCXNH4.mjs";import{a as bd}from"../chunk-AJNVUHYN.mjs";import{a as Yc}from"../chunk-KUJXSGYS.mjs";import{a as ad}from"../chunk-262AEZUO.mjs";import{a as $c}from"../chunk-7PNAXVQ2.mjs";import{a as _c}from"../chunk-Z2EKZZJU.mjs";import{a as Zc}from"../chunk-KTQEW4OB.mjs";import"../chunk-A24EPYUY.mjs";import"../chunk-QKGEV7LG.mjs";import{a as Ac}from"../chunk-TXB5Y6PG.mjs";import{a as yc}from"../chunk-IT7DSLCX.mjs";import{a as wc}from"../chunk-JODGODRI.mjs";import{a as xc}from"../chunk-MGZMAVEP.mjs";import{a as Kc,b as Lc}from"../chunk-VV6P75VN.mjs";import{a as Jc}from"../chunk-B67CUKBL.mjs";import{a as Dc}from"../chunk-Q32SRZ5X.mjs";import{a as Cc}from"../chunk-3TNHR4R3.mjs";import{a as Bc}from"../chunk-UFDQJZAB.mjs";import{a as zc}from"../chunk-TXXFXCXB.mjs";import{a as Ec}from"../chunk-A7563CVR.mjs";import{a as Aa,b as Ba}from"../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../chunk-H4Y4SZIU.mjs";import{a as Ja,b as Ka,c as La}from"../chunk-RBZMFLLA.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../chunk-WRPART4J.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../chunk-7VKHSE4O.mjs";import{a as db,b as eb,c as fb}from"../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../chunk-HWEPDRG6.mjs";import{a as xb}from"../chunk-3LJZCM5A.mjs";import{a as Ca,b as Da}from"../chunk-4NKKWJ2X.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../chunk-4JC2TJML.mjs";import{a as wb}from"../chunk-A5EYIB3V.mjs";import{a as Ia}from"../chunk-DWRQHV42.mjs";import{a as lb}from"../chunk-Y5ZFXDW5.mjs";import"../chunk-YNNW2C2U.mjs";import{a as vc}from"../chunk-IO222G5L.mjs";import{a,b,c,d,e,f,g}from"../chunk-AWFQEK7A.mjs";import{a as _b}from"../chunk-EPTHSTUM.mjs";import{a as Yb}from"../chunk-53QLSQCO.mjs";import{a as Zb}from"../chunk-6HFYLEVF.mjs";import{a as jc}from"../chunk-IAP7Y2DK.mjs";import{a as ic}from"../chunk-J2IXHXCA.mjs";import{a as ac}from"../chunk-JCH2CCQ7.mjs";import{a as Vb}from"../chunk-UZ2XYB7D.mjs";import"../chunk-KPIWBWE2.mjs";import"../chunk-2LJVMEWU.mjs";import"../chunk-6P7CY367.mjs";import{a as bc,b as cc,c as dc,d as ec,e as fc,f as gc,g as hc}from"../chunk-C2GNS62O.mjs";import{a as $b}from"../chunk-IABQ3JMG.mjs";import"../chunk-C3TKY5VE.mjs";import{a as yb,b as Ab,c as Bb,d as Hb,f as Ib,g as Kb,h as Tb}from"../chunk-HPMQRCDC.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as zb}from"../chunk-44VMK4FL.mjs";import"../chunk-L2QAYSRV.mjs";import"../chunk-NOEITQK2.mjs";import"../chunk-EG6XIOOJ.mjs";import"../chunk-MMBUMBDU.mjs";import"../chunk-CTKUF2I6.mjs";import{a as Ob}from"../chunk-YCX5N23N.mjs";import{a as Rb}from"../chunk-M6M43TLT.mjs";import{a as Nb}from"../chunk-FGWIT6CV.mjs";import{a as Qb}from"../chunk-OI2YT2ZF.mjs";import{a as Sb}from"../chunk-EY5QX73B.mjs";import{a as Fb}from"../chunk-UKJ3TIPX.mjs";import{a as Gb}from"../chunk-6LPSD3MQ.mjs";import{a as Eb}from"../chunk-SQWRG4U3.mjs";import"../chunk-WLBZXBU3.mjs";import"../chunk-FPQBVIUS.mjs";import{a as Db}from"../chunk-Z2PPN7EJ.mjs";import"../chunk-6WLJQKDF.mjs";import{a as Cb}from"../chunk-PZT3KAUV.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../chunk-JWDVKGZL.mjs";import{a as uc}from"../chunk-QMFZRG7O.mjs";import{a as xa}from"../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../chunk-2IKC7MAP.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../chunk-CGBVZQYY.mjs";import{a as O}from"../chunk-BSQVKZCW.mjs";import{a as A}from"../chunk-Y5VTKEKS.mjs";import{a as h,b as i,c as j}from"../chunk-YNCJATT7.mjs";import{a as z}from"../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../chunk-BDX257W2.mjs";import{a as Wb}from"../chunk-H7D3PZKE.mjs";import{a as Xb}from"../chunk-IQPZEEYJ.mjs";import{a as Lb}from"../chunk-VZXLXNVY.mjs";import{a as Mb}from"../chunk-Y2KKUQDU.mjs";import{a as gb,b as hb,c as ib}from"../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../chunk-Q6SEVCRG.mjs";import"../chunk-D76EO57Z.mjs";import{a as Mc}from"../chunk-54Y2MUCQ.mjs";import{a as Nc}from"../chunk-TEORJDWG.mjs";import{a as Hc,b as Ic}from"../chunk-4YUYG6QU.mjs";import"../chunk-ZDPQXVTF.mjs";import"../chunk-CS77R54Z.mjs";import{a as Rc}from"../chunk-JFR3WUHP.mjs";import{a as Gc}from"../chunk-X5KZKO2V.mjs";import{a as Sc}from"../chunk-F55C2C5H.mjs";import{a as Pc}from"../chunk-CQOXWC6U.mjs";import"../chunk-AY65F2J7.mjs";import{a as Qc}from"../chunk-DHEI2PBB.mjs";import{a as Oc}from"../chunk-VQJUNVRU.mjs";import{a as Fc}from"../chunk-UESKYRNK.mjs";import{a as Pb}from"../chunk-WISCWNL2.mjs";import{a as Jb}from"../chunk-SFLOMJ2U.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-SPOYKTBR.mjs";import{a as L}from"../chunk-FRWX5YES.mjs";import{c as pa}from"../chunk-CV7PH2KH.mjs";import"../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,Tc as ApproveLeave,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,yb as BannerBlock,Oc as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,Lc as Breadcrumbs,N as Button,zb as CMSLink,bd as CRMKanbanBoard,xb as Calendar,Wc as CalendarView,Bb as CallToActionBlock,Ab as CallToActionBlockOld,ic as Card,zc as Categories,lb as Checkbox,Db as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,kc as CollectionArchive,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,Fc as Container,$b as ContentBlock,Tb as ContentCard,Cb as CopyButton,Pb as CustomLink,Lb as CustomerCard,gc as DarkTop,Zc as DealCard,Yc as DealDetails,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Jb as DynamicIcon,Mb as EventCard,Kb as FeatureCard,Ub as FeatureGrid,Hb as FeaturesBlock,Ac as Filter,sc as FlowPrintable,Rc as Footer,Sc as Header,Pc as HeaderDesktop,Qc as HeaderMobile,ac as HeadingImage,Sb as Hero,Bc as HighImpactHero,Vc as HolidayGrid,Xc as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Ob as Image,Gb as ImageBlock,Wb as InfoTile,z as Input,Vb as Insight,ad as KanbanColumn,Ia as Label,hc as LightTop,lc as Logo,Dc as LowImpactHero,Xb as MOTD,Ic as Mask,Eb as Media,Fb as MediaBlock,Cc as MediumImpactHero,_c as NewCustomerForm,$c as NewDealForm,pc as NewsGrid,Yb as OrgChart,tc as PagePrintable,mc as PageRange,Hc as PageShape,yc as Pagination,nc as PayloadPagination,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ec as PostHero,Rb as PricingCard,rc as Printable,Nb as ProjectCard,wc as ProjectTeam,Zb as ProposalSummary,xc as RelatedContent,jc as RelatedPosts,cc as RenderBlocks,ec as RenderBlocksWithShapes,Kc as RenderHero,Uc as RequestLeave,bc as ReusableContentBlock,Ib as RichText,Ca as ScrollArea,Da as ScrollBar,Jc as SectionHero,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,Qb as ServiceCard,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,uc as SidebarLeft,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,vc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,Mc as SimpleHeader,O as Skeleton,oc as SlideShow,qc as TextAndImages,wb as Textarea,dc as Theme,Gc as ThemeProvider,fc as ThemeWithShapes,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,Nc as VideoHeader,_b as WhyUs,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
1
+ import{a as rc,b as sc,c as tc}from"../chunk-ZLQ5NW4D.mjs";import{a as oc}from"../chunk-73IYAOWE.mjs";import{a as qc}from"../chunk-L2CGDHVO.mjs";import{a as Ub}from"../chunk-CSWXKGJE.mjs";import{a as pc}from"../chunk-7DINW2AE.mjs";import"../chunk-JZE6HGP6.mjs";import{a as mc}from"../chunk-6YV7RK6Q.mjs";import{a as nc}from"../chunk-NRL4U42W.mjs";import{a as kc}from"../chunk-KEPEJWQO.mjs";import{a as lc}from"../chunk-AUBKJ4XO.mjs";import"../chunk-6LKCK2EH.mjs";import{a as Xc}from"../chunk-LAVVUPY7.mjs";import{a as Uc}from"../chunk-XB5WL3OT.mjs";import{a as Tc}from"../chunk-SPAW5K3E.mjs";import{a as Wc}from"../chunk-IJCMUPNH.mjs";import{a as Vc}from"../chunk-JFHFMU42.mjs";import{a as bd}from"../chunk-NTPMLZVP.mjs";import{a as ad}from"../chunk-4WJNMYVD.mjs";import{a as $c}from"../chunk-PWCOSXXO.mjs";import{a as _c}from"../chunk-Z2EKZZJU.mjs";import{a as Zc}from"../chunk-KTQEW4OB.mjs";import{a as Yc}from"../chunk-WARSIFKB.mjs";import"../chunk-A24EPYUY.mjs";import"../chunk-QKGEV7LG.mjs";import{a as Ac}from"../chunk-TXB5Y6PG.mjs";import{a as yc}from"../chunk-IT7DSLCX.mjs";import{a as wc}from"../chunk-JODGODRI.mjs";import{a as xc}from"../chunk-MGZMAVEP.mjs";import{a as Kc,b as Lc}from"../chunk-VV6P75VN.mjs";import{a as Jc}from"../chunk-B67CUKBL.mjs";import{a as Dc}from"../chunk-Q32SRZ5X.mjs";import{a as Cc}from"../chunk-3TNHR4R3.mjs";import{a as Bc}from"../chunk-UFDQJZAB.mjs";import{a as zc}from"../chunk-TXXFXCXB.mjs";import{a as Ec}from"../chunk-A7563CVR.mjs";import{a as Aa,b as Ba}from"../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../chunk-H4Y4SZIU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../chunk-7VKHSE4O.mjs";import{a as Ja,b as Ka,c as La}from"../chunk-RBZMFLLA.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../chunk-WRPART4J.mjs";import{a as db,b as eb,c as fb}from"../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../chunk-HWEPDRG6.mjs";import{a as xb}from"../chunk-3LJZCM5A.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../chunk-4JC2TJML.mjs";import{a as Ca,b as Da}from"../chunk-4NKKWJ2X.mjs";import{a as wb}from"../chunk-A5EYIB3V.mjs";import{a as Ia}from"../chunk-DWRQHV42.mjs";import{a as lb}from"../chunk-Y5ZFXDW5.mjs";import"../chunk-YNNW2C2U.mjs";import{a as vc}from"../chunk-SBAFXZVU.mjs";import{a,b,c,d,e,f,g}from"../chunk-AWFQEK7A.mjs";import{a as _b}from"../chunk-EPTHSTUM.mjs";import{a as Yb}from"../chunk-53QLSQCO.mjs";import{a as Zb}from"../chunk-6HFYLEVF.mjs";import{a as jc}from"../chunk-IAP7Y2DK.mjs";import{a as ic}from"../chunk-J2IXHXCA.mjs";import{a as ac}from"../chunk-JCH2CCQ7.mjs";import{a as Vb}from"../chunk-UZ2XYB7D.mjs";import"../chunk-KPIWBWE2.mjs";import"../chunk-6P7CY367.mjs";import"../chunk-2LJVMEWU.mjs";import{a as bc,b as cc,c as dc,d as ec,e as fc,f as gc,g as hc}from"../chunk-IWJDKMC2.mjs";import"../chunk-C3TKY5VE.mjs";import{a as $b}from"../chunk-IABQ3JMG.mjs";import{a as yb,b as Ab,c as Bb,d as Hb,f as Ib,g as Kb,h as Tb}from"../chunk-HPMQRCDC.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as zb}from"../chunk-44VMK4FL.mjs";import"../chunk-L2QAYSRV.mjs";import"../chunk-NOEITQK2.mjs";import"../chunk-EG6XIOOJ.mjs";import"../chunk-MMBUMBDU.mjs";import"../chunk-CTKUF2I6.mjs";import{a as Rb}from"../chunk-M6M43TLT.mjs";import{a as Nb}from"../chunk-FGWIT6CV.mjs";import{a as Qb}from"../chunk-OI2YT2ZF.mjs";import{a as Sb}from"../chunk-EY5QX73B.mjs";import{a as Ob}from"../chunk-YCX5N23N.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../chunk-JWDVKGZL.mjs";import{a as Fb}from"../chunk-UKJ3TIPX.mjs";import{a as Gb}from"../chunk-6LPSD3MQ.mjs";import{a as Eb}from"../chunk-SQWRG4U3.mjs";import"../chunk-WLBZXBU3.mjs";import"../chunk-FPQBVIUS.mjs";import{a as Db}from"../chunk-Z2PPN7EJ.mjs";import"../chunk-6WLJQKDF.mjs";import{a as Cb}from"../chunk-PZT3KAUV.mjs";import{a as uc}from"../chunk-PY53YVFX.mjs";import{a as xa}from"../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../chunk-KB6PO4K4.mjs";import{a as A}from"../chunk-Y5VTKEKS.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../chunk-CGBVZQYY.mjs";import{a as O}from"../chunk-BSQVKZCW.mjs";import{a as h,b as i,c as j}from"../chunk-YNCJATT7.mjs";import{a as z}from"../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../chunk-BDX257W2.mjs";import{a as Xb}from"../chunk-IQPZEEYJ.mjs";import{a as Wb}from"../chunk-H7D3PZKE.mjs";import{a as Mb}from"../chunk-Y2KKUQDU.mjs";import{a as gb,b as hb,c as ib}from"../chunk-SBM5HULF.mjs";import{a as Lb}from"../chunk-VZXLXNVY.mjs";import{a as jb,b as kb}from"../chunk-Q6SEVCRG.mjs";import"../chunk-D76EO57Z.mjs";import{a as Mc}from"../chunk-54Y2MUCQ.mjs";import{a as Nc}from"../chunk-TEORJDWG.mjs";import{a as Hc,b as Ic}from"../chunk-4YUYG6QU.mjs";import"../chunk-ZDPQXVTF.mjs";import"../chunk-CS77R54Z.mjs";import{a as Rc}from"../chunk-JFR3WUHP.mjs";import{a as Gc}from"../chunk-X5KZKO2V.mjs";import{a as Sc}from"../chunk-F55C2C5H.mjs";import{a as Pc}from"../chunk-CQOXWC6U.mjs";import"../chunk-AY65F2J7.mjs";import{a as Qc}from"../chunk-DHEI2PBB.mjs";import{a as Oc}from"../chunk-VQJUNVRU.mjs";import{a as Fc}from"../chunk-UESKYRNK.mjs";import{a as Pb}from"../chunk-WISCWNL2.mjs";import{a as Jb}from"../chunk-SFLOMJ2U.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-SPOYKTBR.mjs";import{c as pa}from"../chunk-CV7PH2KH.mjs";import{a as L}from"../chunk-FRWX5YES.mjs";import"../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,Tc as ApproveLeave,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,yb as BannerBlock,Oc as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,Lc as Breadcrumbs,N as Button,zb as CMSLink,bd as CRMKanbanBoard,xb as Calendar,Wc as CalendarView,Bb as CallToActionBlock,Ab as CallToActionBlockOld,ic as Card,zc as Categories,lb as Checkbox,Db as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,kc as CollectionArchive,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,Fc as Container,$b as ContentBlock,Tb as ContentCard,Cb as CopyButton,Pb as CustomLink,Lb as CustomerCard,gc as DarkTop,Zc as DealCard,Yc as DealDetails,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Jb as DynamicIcon,Mb as EventCard,Kb as FeatureCard,Ub as FeatureGrid,Hb as FeaturesBlock,Ac as Filter,sc as FlowPrintable,Rc as Footer,Sc as Header,Pc as HeaderDesktop,Qc as HeaderMobile,ac as HeadingImage,Sb as Hero,Bc as HighImpactHero,Vc as HolidayGrid,Xc as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Ob as Image,Gb as ImageBlock,Wb as InfoTile,z as Input,Vb as Insight,ad as KanbanColumn,Ia as Label,hc as LightTop,lc as Logo,Dc as LowImpactHero,Xb as MOTD,Ic as Mask,Eb as Media,Fb as MediaBlock,Cc as MediumImpactHero,_c as NewCustomerForm,$c as NewDealForm,pc as NewsGrid,Yb as OrgChart,tc as PagePrintable,mc as PageRange,Hc as PageShape,yc as Pagination,nc as PayloadPagination,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ec as PostHero,Rb as PricingCard,rc as Printable,Nb as ProjectCard,wc as ProjectTeam,Zb as ProposalSummary,xc as RelatedContent,jc as RelatedPosts,cc as RenderBlocks,ec as RenderBlocksWithShapes,Kc as RenderHero,Uc as RequestLeave,bc as ReusableContentBlock,Ib as RichText,Ca as ScrollArea,Da as ScrollBar,Jc as SectionHero,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,Qb as ServiceCard,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,uc as SidebarLeft,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,vc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,Mc as SimpleHeader,O as Skeleton,oc as SlideShow,qc as TextAndImages,wb as Textarea,dc as Theme,Gc as ThemeProvider,fc as ThemeWithShapes,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,Nc as VideoHeader,_b as WhyUs,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
@@ -1 +1 @@
1
- import{a as Aa,b as Ba}from"../../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../../chunk-H4Y4SZIU.mjs";import{a as Ja,b as Ka,c as La}from"../../chunk-RBZMFLLA.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../../chunk-WRPART4J.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../../chunk-7VKHSE4O.mjs";import{a as db,b as eb,c as fb}from"../../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../../chunk-HWEPDRG6.mjs";import{a as xb}from"../../chunk-3LJZCM5A.mjs";import{a as Ca,b as Da}from"../../chunk-4NKKWJ2X.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../../chunk-4JC2TJML.mjs";import{a as wb}from"../../chunk-A5EYIB3V.mjs";import{a as Ia}from"../../chunk-DWRQHV42.mjs";import{a as lb}from"../../chunk-Y5ZFXDW5.mjs";import{a,b,c,d,e,f,g}from"../../chunk-AWFQEK7A.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../../chunk-JWDVKGZL.mjs";import{a as xa}from"../../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../../chunk-2IKC7MAP.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../../chunk-CGBVZQYY.mjs";import{a as O}from"../../chunk-BSQVKZCW.mjs";import{a as A}from"../../chunk-Y5VTKEKS.mjs";import{a as h,b as i,c as j}from"../../chunk-YNCJATT7.mjs";import{a as z}from"../../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../../chunk-BDX257W2.mjs";import{a as gb,b as hb,c as ib}from"../../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../../chunk-Q6SEVCRG.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import{a as L}from"../../chunk-FRWX5YES.mjs";import{c as pa}from"../../chunk-CV7PH2KH.mjs";import"../../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,N as Button,xb as Calendar,lb as Checkbox,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,z as Input,Ia as Label,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ca as ScrollArea,Da as ScrollBar,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,aa as SidebarSeparator,W as SidebarTrigger,O as Skeleton,wb as Textarea,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
1
+ import{a as Aa,b as Ba}from"../../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../../chunk-H4Y4SZIU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../../chunk-7VKHSE4O.mjs";import{a as Ja,b as Ka,c as La}from"../../chunk-RBZMFLLA.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../../chunk-WRPART4J.mjs";import{a as db,b as eb,c as fb}from"../../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../../chunk-HWEPDRG6.mjs";import{a as xb}from"../../chunk-3LJZCM5A.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../../chunk-4JC2TJML.mjs";import{a as Ca,b as Da}from"../../chunk-4NKKWJ2X.mjs";import{a as wb}from"../../chunk-A5EYIB3V.mjs";import{a as Ia}from"../../chunk-DWRQHV42.mjs";import{a as lb}from"../../chunk-Y5ZFXDW5.mjs";import{a,b,c,d,e,f,g}from"../../chunk-AWFQEK7A.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../../chunk-JWDVKGZL.mjs";import{a as xa}from"../../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../../chunk-KB6PO4K4.mjs";import{a as A}from"../../chunk-Y5VTKEKS.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../../chunk-CGBVZQYY.mjs";import{a as O}from"../../chunk-BSQVKZCW.mjs";import{a as h,b as i,c as j}from"../../chunk-YNCJATT7.mjs";import{a as z}from"../../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../../chunk-BDX257W2.mjs";import{a as gb,b as hb,c as ib}from"../../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../../chunk-Q6SEVCRG.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import{c as pa}from"../../chunk-CV7PH2KH.mjs";import{a as L}from"../../chunk-FRWX5YES.mjs";import"../../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,N as Button,xb as Calendar,lb as Checkbox,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,z as Input,Ia as Label,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ca as ScrollArea,Da as ScrollBar,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,aa as SidebarSeparator,W as SidebarTrigger,O as Skeleton,wb as Textarea,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};