cortex-react-components 1.43.0 → 1.43.1

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 (132) hide show
  1. package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
  2. package/dist/{chunk-DYIUZ4V5.mjs → chunk-44RAJFV6.mjs} +1 -1
  3. package/dist/chunk-4YNA7RS7.mjs +1 -0
  4. package/dist/{chunk-ETINBEVD.mjs → chunk-7322R3ID.mjs} +1 -1
  5. package/dist/{chunk-CNXWMJKB.mjs → chunk-74TGU5CZ.mjs} +1 -1
  6. package/dist/{chunk-GFV75XSU.mjs → chunk-7Z52ZEUX.mjs} +1 -1
  7. package/dist/{chunk-WKMUGV4J.mjs → chunk-AF5ISZTG.mjs} +1 -1
  8. package/dist/{chunk-VOUBXGYO.mjs → chunk-AS3NR4OU.mjs} +1 -1
  9. package/dist/{chunk-5T46XIHN.mjs → chunk-CDYA6NPD.mjs} +1 -1
  10. package/dist/{chunk-NGNSCVVW.mjs → chunk-D3PXELYK.mjs} +1 -1
  11. package/dist/{chunk-FHDQXXOE.mjs → chunk-DF3LBG6O.mjs} +1 -1
  12. package/dist/{chunk-UDX5Y4SA.mjs → chunk-EIAOUSXS.mjs} +1 -1
  13. package/dist/{chunk-3PC5BLK7.mjs → chunk-HN4TEDPU.mjs} +1 -1
  14. package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
  15. package/dist/{chunk-HCN2JMCH.mjs → chunk-HVA2GFDG.mjs} +1 -1
  16. package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
  17. package/dist/{chunk-L3PITDTZ.mjs → chunk-IEQA6MIO.mjs} +1 -1
  18. package/dist/{chunk-EMZQNDA7.mjs → chunk-IMAQJ7N3.mjs} +1 -1
  19. package/dist/{chunk-D43ENVPX.mjs → chunk-IPHHUHS3.mjs} +1 -1
  20. package/dist/{chunk-5PW2VQWX.mjs → chunk-J4SEDIHB.mjs} +1 -1
  21. package/dist/{chunk-ZXPDKKGX.mjs → chunk-K3ZHWH6Y.mjs} +1 -1
  22. package/dist/{chunk-IE2A7UT3.mjs → chunk-LBKMUSVR.mjs} +1 -1
  23. package/dist/{chunk-NUZIMEN5.mjs → chunk-M7BWRL34.mjs} +1 -1
  24. package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
  25. package/dist/{chunk-Z2XTCVEL.mjs → chunk-NLTSDI7A.mjs} +1 -1
  26. package/dist/{chunk-B4HRNOHQ.mjs → chunk-PV5S3GA7.mjs} +1 -1
  27. package/dist/{chunk-DQZTKWPG.mjs → chunk-Q5EQOIL7.mjs} +1 -1
  28. package/dist/{chunk-V2PS7NPM.mjs → chunk-Q77U5BXI.mjs} +1 -1
  29. package/dist/{chunk-CZ5I5OTN.mjs → chunk-QIGWPB3D.mjs} +1 -1
  30. package/dist/{chunk-WC776HFE.mjs → chunk-R7P4VVM3.mjs} +1 -1
  31. package/dist/{chunk-VBYWMFIP.mjs → chunk-UBPXT2KW.mjs} +1 -1
  32. package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
  33. package/dist/{chunk-EWNKVLW7.mjs → chunk-WDREYBFE.mjs} +1 -1
  34. package/dist/{chunk-MP3J7UPZ.mjs → chunk-X5PEHTIN.mjs} +1 -1
  35. package/dist/{chunk-PWVWKURI.mjs → chunk-YOOGQIDR.mjs} +1 -1
  36. package/dist/{chunk-QMTTXYES.mjs → chunk-YQZH5MJU.mjs} +1 -1
  37. package/dist/{chunk-3ZRLTNWG.mjs → chunk-ZSVSTJJR.mjs} +1 -1
  38. package/dist/components/Blocks/Banner.mjs +1 -1
  39. package/dist/components/Blocks/CallToAction.mjs +1 -1
  40. package/dist/components/Blocks/Content.mjs +1 -1
  41. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  42. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  43. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  44. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  45. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  46. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  47. package/dist/components/Blocks/index.mjs +1 -1
  48. package/dist/components/CRM/DealDetails.mjs +1 -1
  49. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  50. package/dist/components/CRM/KanbanBoard.js +1 -1
  51. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  52. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  53. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  54. package/dist/components/CRM/KanbanColumn.js +1 -1
  55. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  56. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  57. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  58. package/dist/components/CRM/NewDealForm.mjs +1 -1
  59. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  60. package/dist/components/CRM/index.js +1 -1
  61. package/dist/components/CRM/index.mjs +1 -1
  62. package/dist/components/Cards/index.mjs +1 -1
  63. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  64. package/dist/components/HeaderFooter/index.mjs +1 -1
  65. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  66. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  67. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  68. package/dist/components/Heros/PostHero/index.mjs +1 -1
  69. package/dist/components/Heros/RenderHero.mjs +1 -1
  70. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  71. package/dist/components/Heros/index.mjs +1 -1
  72. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  73. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  74. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  75. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  76. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  77. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  78. package/dist/components/Holidays/index.mjs +1 -1
  79. package/dist/components/Layouts/BlogList.mjs +1 -1
  80. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  81. package/dist/components/Layouts/SlideShow.mjs +1 -1
  82. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  83. package/dist/components/Layouts/index.mjs +1 -1
  84. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  85. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  86. package/dist/components/Menus/SidebarRight.mjs +1 -1
  87. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  88. package/dist/components/Menus/index.mjs +1 -1
  89. package/dist/components/Payload/Card/index.mjs +1 -1
  90. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  91. package/dist/components/Payload/Media/index.mjs +1 -1
  92. package/dist/components/Payload/RichText/index.mjs +1 -1
  93. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  94. package/dist/components/Payload/RichText.stories.mjs +1 -1
  95. package/dist/components/Payload/index.mjs +1 -1
  96. package/dist/components/index.js +1 -1
  97. package/dist/components/index.mjs +1 -1
  98. package/dist/components/ui/index.mjs +1 -1
  99. package/dist/components/ui/sidebar.mjs +1 -1
  100. package/dist/index.js +1 -1
  101. package/dist/index.mjs +1 -1
  102. package/dist/metafile-cjs.json +1 -1
  103. package/dist/metafile-esm.json +1 -1
  104. package/dist/pages/Blog.mjs +1 -1
  105. package/dist/pages/Blog.stories.mjs +1 -1
  106. package/dist/pages/Documentation.mjs +1 -1
  107. package/dist/pages/Documentation.stories.mjs +1 -1
  108. package/dist/pages/IndexPage.mjs +1 -1
  109. package/dist/pages/IndexPage.stories.mjs +1 -1
  110. package/dist/pages/Intranet.mjs +1 -1
  111. package/dist/pages/Intranet.stories.mjs +1 -1
  112. package/dist/pages/LandingPage.mjs +1 -1
  113. package/dist/pages/LandingPage.stories.mjs +1 -1
  114. package/dist/pages/Page.mjs +1 -1
  115. package/dist/pages/Page.stories.mjs +1 -1
  116. package/dist/pages/Publish.mjs +1 -1
  117. package/dist/pages/Publish.stories.mjs +1 -1
  118. package/dist/pages/Website.mjs +1 -1
  119. package/dist/pages/Website.stories.mjs +1 -1
  120. package/dist/sections/AboutSection.mjs +1 -1
  121. package/dist/sections/AboutSection.stories.mjs +1 -1
  122. package/dist/sections/BlogDetail.mjs +1 -1
  123. package/dist/sections/BlogDetail.stories.mjs +1 -1
  124. package/dist/sections/BlogListSection.mjs +1 -1
  125. package/dist/sections/BlogListSection.stories.mjs +1 -1
  126. package/dist/sections/ContactSection.mjs +1 -1
  127. package/dist/sections/ContactSection.stories.mjs +1 -1
  128. package/dist/sections/PricingSection.mjs +1 -1
  129. package/dist/sections/PricingSection.stories.mjs +1 -1
  130. package/dist/sections/index.mjs +1 -1
  131. package/package.json +1 -1
  132. package/dist/chunk-YDCEDTRV.mjs +0 -1
@@ -15,4 +15,4 @@
15
15
  (min-width:768px) 50vw,
16
16
  (min-width:1024px) 33vw,
17
17
  100vw
18
- `,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,We.jsxs)("div",{className:"relative z-10 flex We-full flex-1 We-full flex-col",children:[o&&(0,We.jsx)("div",{children:(0,We.jsx)("div",{className:"inline-grid We-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,We.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,We.jsx)("span",{className:"block",children:Il(o)})})})}),(0,We.jsxs)("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[(0,We.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,We.jsx)("p",{className:Hl})}),(0,We.jsx)("h3",{className:"text-md font-bold We-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,We.jsx)(ye,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,We.jsx)("div",{children:(0,We.jsxs)(ye,{href:e,className:n(Hl,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,We.jsx)("span",{children:"Read More"}),(0,We.jsx)("span",{className:"text-accent",children:(0,We.jsx)(ro.FaArrowRight,{})})]})})]})]})]})}var qd=e=>{let{posts:t}=e;return(0,We.jsx)("div",{className:n("container"),children:(0,We.jsx)("div",{children:(0,We.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,We.jsx)("div",{className:"col-span-4",children:(0,We.jsx)(yr,{className:"We-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Ol=v(require("clsx")),_l=v(require("next/image")),Jd=e=>{let{loading:t,priority:a,className:r}=e;return(0,We.jsx)(_l.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ol.default)("max-We-[9.375rem] We-full We-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Qd={plural:"Docs",singular:"Doc"},Zd={posts:{plural:"Posts",singular:"Post"}},em=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:l}=e,s=(o?o-1:1)*(i||1)+1;l&&s>l&&(s=0);let m=(o||1)*(i||1);l&&m>l&&(m=l);let{plural:p,singular:c}=r||Zd[a||""]||Qd||{};return(0,We.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced We results.",typeof l!="undefined"&&l>0&&`Showing ${s}${s>0?` - ${m}`:""} of ${l} ${l>1?p:c}`]})};var es=v(require("react")),ts=({className:e,...t})=>(0,We.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex We-full justify-center",e),role:"navigation",...t});ts.displayName="Pagination";var as=es.forwardRef(({className:e,...t},a)=>(0,We.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));as.displayName="PaginationContent";var Lt=es.forwardRef(({className:e,...t},a)=>(0,We.jsx)("li",{className:n("",e),ref:a,...t}));Lt.displayName="PaginationItem";var ya=({className:e,isActive:t,size:a="icon",...r})=>(0,We.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ot({size:a,variant:t?"outline":"ghost"}),e),...r});ya.displayName="PaginationLink";var rs=({className:e,...t})=>(0,We.jsxs)(ya,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,We.jsx)(un.ChevronLeft,{className:"We-4 We-4"}),(0,We.jsx)("span",{children:"Previous"})]});rs.displayName="PaginationPrevious";var os=({className:e,...t})=>(0,We.jsxs)(ya,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,We.jsx)("span",{children:"Next"}),(0,We.jsx)(un.ChevronRight,{className:"We-4 We-4"})]});os.displayName="PaginationNext";var uo=({className:e,...t})=>(0,We.jsxs)("span",{"aria-hidden":!0,className:n("flex We-9 We-9 items-center justify-center",e),...t,children:[(0,We.jsx)(un.MoreHorizontal,{className:"We-4 We-4"}),(0,We.jsx)("span",{className:"sr-only",children:"More pages"})]});uo.displayName="PaginationEllipsis";var tm=e=>{let t=(0,$l.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,l=r>1,s=r-1>1,m=r+1<o;return(0,We.jsx)("div",{className:n("my-12",a),children:(0,We.jsx)(ts,{children:(0,We.jsxs)(as,{children:[(0,We.jsx)(Lt,{children:(0,We.jsx)(rs,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,We.jsx)(Lt,{children:(0,We.jsx)(uo,{})}),l&&(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),m&&(0,We.jsx)(Lt,{children:(0,We.jsx)(uo,{})}),(0,We.jsx)(Lt,{children:(0,We.jsx)(os,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var is=v(require("clsx"));function am({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:l,loading:s=!1,LinkComponent:m,...p}){let d=m?u=>(0,We.jsx)(m,{...u}):l?({href:u,children:f,...y})=>(0,We.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start We-full text-sm text-left px-4 py-2",...y,children:f}):u=>(0,We.jsx)("a",{...u});return(0,We.jsxs)(ra,{...p,variant:"inset",children:[(0,We.jsx)(oa,{children:(0,We.jsx)(Me,{children:(0,We.jsx)(ve,{children:s?(0,We.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,We.jsx)(ae,{className:"bg-gray-200 my-2 We-full We-7"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 my-2 We-5"})]}):(0,We.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,We.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,We.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),s&&(0,We.jsxs)(_t,{children:[(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"})]}),(0,We.jsxs)(_t,{children:[e&&!s&&e.map((u,f)=>(0,We.jsx)(rm,{subNav:u,pathName:o,Link:d},f)),(0,We.jsx)(Ue,{className:"mt-auto",children:(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:t&&!s&&t.map(u=>(0,We.jsx)(ve,{children:(0,We.jsx)(Xe,{asChild:!0,size:"sm",children:(0,We.jsxs)(d,{href:u.url||"",children:[u.icon&&(0,We.jsx)(u.icon,{}),(0,We.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,We.jsx)(ia,{})]})}function rm({subNav:e,pathName:t,Link:a}){var i,l;let r=e,o=!1;return r.links&&r.links.map(s=>{s.url===t&&(o=!0)}),(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsx)(Ue,{className:"py-0",children:(0,We.jsx)(Me,{children:(0,We.jsx)(xt,{asChild:!0,defaultOpen:r.isActive,children:(0,We.jsxs)(ve,{children:[(0,We.jsx)(Xe,{asChild:!0,tooltip:r.label,className:(0,is.default)(o&&"font-bold text-accent"),children:(0,We.jsxs)(a,{href:r.url,children:[r.icon&&(0,We.jsx)(r.icon,{}),(0,We.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(Ft,{asChild:!0,children:(0,We.jsxs)(ar,{className:"data-[state=open]:rotate-90",children:[(0,We.jsx)(un.ChevronRight,{}),(0,We.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,We.jsx)(zt,{children:(0,We.jsx)(Gt,{children:(l=r.links)==null?void 0:l.map(s=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,className:(0,is.default)(s.url===t&&"font-bold text-accent"),children:(0,We.jsx)(a,{href:s.url,children:(0,We.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},r.label)})})})}var Ul=v(require("clsx"));var om=()=>(0,We.jsx)(qe,{iconName:"github",size:"10x"});function im({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:l,onPrintDocument:s,onGithubClick:m,onNavClick:p,LinkComponent:c,...d}){let y=c?g=>(0,We.jsx)(c,{...g}):p?({item:g,children:x,...D})=>(0,We.jsx)("button",{onClick:()=>p&&p(g),className:"flex items-center justify-start We-full text-sm text-left px-4 py-2",...D,children:x}):g=>(0,We.jsx)("a",{href:g.href,...g});return(0,We.jsxs)(ra,{side:"right",variant:"inset",...d,children:[(0,We.jsxs)(oa,{className:"border-We border-sidebar-border",children:[(0,We.jsxs)(Me,{className:"flex-row space-x-1",children:[(0,We.jsx)(ve,{children:(0,We.jsxs)(Xe,{onClick:i,children:[(0,We.jsx)(un.FilePlus,{})," ",(0,We.jsx)("span",{children:"Add Document"})]})}),m&&(0,We.jsx)(ve,{children:(0,We.jsx)(Xe,{onClick:m,tooltip:"Open in GitHub",children:(0,We.jsx)(om,{})})})]}),(0,We.jsxs)(Me,{className:"flex-row space-x-1",children:[(0,We.jsx)(ve,{className:"We-5/12",children:(0,We.jsxs)(Xe,{onClick:()=>l(),variant:o?"outline":"default",className:(0,Ul.default)(o&&"text-accent"),children:[(0,We.jsx)(un.Edit,{})," ",(0,We.jsx)("span",{children:"Edit"})]})}),(0,We.jsx)(ve,{className:"We-5/12",children:(0,We.jsxs)(Xe,{onClick:s,children:[(0,We.jsx)(un.Printer,{})," ",(0,We.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Editor Controls",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:a})})]})}),(0,We.jsx)(tr,{className:"mx-0"})]}),(0,We.jsxs)(_t,{className:"overflow-auto",children:[r&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{children:"Related Content"}),(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:Array.from({length:3}).map((g,x)=>(0,We.jsx)(ve,{children:(0,We.jsx)(ae,{className:"bg-gray-200 We-full We-10"})},x))})})]}),(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{children:"Table of Contents"}),(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:Array.from({length:3}).map((g,x)=>(0,We.jsx)(ve,{children:(0,We.jsx)(ae,{className:"bg-gray-200 We-full We-10"})},x))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Related Content",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:(0,We.jsx)(Me,{children:e&&Object.keys(e).map(g=>(0,We.jsxs)(ve,{children:[(0,We.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,We.jsx)(Gt,{children:e[g].map(x=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,isActive:!1,size:"sm",children:(0,We.jsxs)(y,{href:x.url,item:x,className:"flex justify-between items-center We-full text-xs",children:[(0,We.jsx)("span",{children:x.label}),x.type==="note"&&(0,We.jsx)(un.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,We.jsx)(qe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!r&&(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Table of Contents",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:(0,We.jsx)(Me,{children:t.map(g=>{var x;return(0,We.jsxs)(ve,{children:[(0,We.jsx)(Xe,{asChild:!0,children:(0,We.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,We.jsx)(Gt,{children:g.items.map(D=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,isActive:D.isActive,size:"sm",children:(0,We.jsx)("a",{href:`#${D.url}`,className:"flex justify-between items-center We-full text-xs",children:(0,We.jsx)("span",{children:D.title})})})},D.title))}):null]},g.title)})})})})]})})]}),(0,We.jsx)(ia,{})]})}var jl=v(require("next/image"));function sm({title:e,members:t}){return(0,We.jsx)(ge,{className:"mb-6",children:(0,We.jsxs)("div",{className:"p-6",children:[(0,We.jsxs)("div",{className:"flex items-center mb-4",children:[(0,We.jsx)(un.Users,{className:"We-6 We-6 text-accent mr-2"}),(0,We.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,We.jsx)("div",{className:"space-y-4",children:t.map((a,r)=>(0,We.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,We.jsx)("div",{className:"relative We-12 We-12 rounded-full overflow-hidden",children:a.avatar&&(0,We.jsx)(jl.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,We.jsxs)("div",{children:[(0,We.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,We.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Yl=v(require("next/link"));var nm=({links:e,title:t="Related Content"})=>(0,We.jsxs)(ge,{children:[(0,We.jsx)(Ie,{children:(0,We.jsx)(Ae,{className:"text-accent",children:t})}),(0,We.jsx)(he,{children:(0,We.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,r)=>(0,We.jsxs)(Yl.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,We.jsx)(un.ExternalLink,{className:"ml-1 We-3 We-3"})]},r))})})]});var ss=n("grid We-[45px] We-[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 lm({pages:e}){let t=(0,Nl.useSearchParams)(),a=(0,Nl.usePathname)(),{replace:r}=(0,Nl.useRouter)(),{totalPages:o,page:i}=e,[l,s]=(0,Er.useState)({start:i>3?i-3:1,end:i+2}),m=d=>{d==="left"&&l.start>1?s(u=>({start:u.start-1,end:u.end-1})):d==="right"&&l.end<o&&s(u=>({start:u.start+1,end:u.end+1}))};function p(d){let u=new URLSearchParams(t);d?u.set("page",d):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let d=l.start;d<=l.end;d++)c.push(d);return(0,We.jsx)("div",{className:"mt-12",children:(0,We.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,We.jsx)("li",{children:(0,We.jsx)("button",{className:n(ss,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,We.jsx)(ro.FaArrowLeft,{})})}),c.map((d,u)=>(0,We.jsx)("li",{children:(0,We.jsx)("a",{className:n(ss,d===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${d}`,role:"button",onClick:f=>{f.preventDefault(),p(d.toString())},children:d})},u)),l.end<o&&(0,We.jsx)("li",{children:(0,We.jsx)("button",{className:n(ss,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,We.jsx)(ro.FaArrowRight,{})})})]})})}var $We=n("transition-colors duration-400 hover:text-primary ease-in-out");function cm({title:e,links:t}){let a=(0,$a.useSearchParams)(),r=(0,$a.usePathname)(),{replace:o}=(0,$a.useRouter)();function i(l){let s=new URLSearchParams(a);l?s.set("category",l):s.delete("category"),o(`${r}?${s.toString()}`)}return(0,We.jsxs)(ge,{children:[(0,We.jsx)(Ie,{children:(0,We.jsx)(Ae,{className:"text-accent",children:e&&e})}),(0,We.jsx)(he,{children:t&&t.length>0&&(0,We.jsx)("nav",{"aria-label":"footer links navigation",children:(0,We.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,s)=>(0,We.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:We-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),i(l.href)},children:[l.label,(0,We.jsx)(un.ExternalLink,{className:"ml-1 We-3 We-3"})]},s))})})})]})}function dm({types:e}){let[t,a]=(0,Er.useState)(e&&e[0].href),r=(0,Nl.useSearchParams)(),o=(0,Nl.usePathname)(),{replace:i}=(0,Nl.useRouter)();function l(s){let m=new URLSearchParams(r);s?m.set("type",s):m.delete("type"),a(s),i(`${o}?${m.toString()}`)}return(0,We.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((s,m)=>(0,We.jsx)(T,{variant:s.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",s.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(s.href),children:s.label},m))})}var Zl=v(require("next/image"));var ls=({links:e,media:t,children:a,richText:r})=>(0,We.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,We.jsx)("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:(0,We.jsxs)("div",{className:"text-center",children:[a||r&&(0,We.jsx)(ne,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,We.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,We.jsx)("li",{children:(0,We.jsx)(mt,{...o})},i))})]})}),(0,We.jsxs)("div",{className:"min-We-[80vh] select-none",children:[t&&typeof t=="object"&&(0,We.jsx)(At,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,We.jsx)("div",{children:(0,We.jsx)(Zl.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,We.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var cs=v(require("next/image"));var mm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,We.jsx)(cs.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,We.jsx)("div",{children:(0,We.jsx)(cs.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ds=({links:e,media:t,children:a,richText:r})=>(0,We.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 We-10",children:[t&&(0,We.jsx)(mm,{media:t}),(0,We.jsx)("div",{className:"mx-0 min-We-full relative z-9",children:(0,We.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,We.jsx)(ne,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var ms=({children:e,richText:t})=>(0,We.jsx)("div",{className:"min-We-full py-10 bg-muted mt-24",children:(0,We.jsx)("div",{className:"container",children:e||t&&(0,We.jsx)(ne,{content:t,enableGutter:!1})})});var Nr=v(require("react"));var ec=v(require("next/image")),pm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,We.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,We.jsx)("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,We.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,We.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((s,m)=>{if(typeof s=="object"&&s!==null){let{title:p}=s;return(0,We.jsx)(Ke,{className:"mx-2",children:p||"Untitled category"})}return null})}),(0,We.jsx)("div",{className:"",children:(0,We.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,We.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,We.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,We.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,We.jsx)("p",{className:"text-sm",children:"Author"}),r.map((s,m)=>{let{name:p}=s,c=m===r.length-1,d=m===r.length-2;return(0,We.jsxs)(Nr.default.Fragment,{children:[p,d&&r.length>2&&(0,We.jsx)(Nr.default.Fragment,{children:", "}),d&&r.length===2&&(0,We.jsx)(Nr.default.Fragment,{children:" "}),!c&&r.length>1&&(0,We.jsx)(Nr.default.Fragment,{children:"and "})]},m)})]})}),o&&(0,We.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,We.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,We.jsx)("time",{dateTime:o,children:Ml(o)})]})]})]})}),(0,We.jsxs)("div",{className:"min-We-[50vh] max-We-[50vh] select-none",children:[(0,We.jsx)("div",{children:(0,We.jsx)(ec.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:((l=a&&a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png"})}),(0,We.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 We-full We-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var bo=require("@heroicons/react/20/solid");var tc=v(require("next/image"));function ps({title:e,breadcrumbItems:t,image:a}){return(0,We.jsxs)("section",{className:"-z-10 relative flex min-We-[250px] We-auto items-end",children:[(0,We.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,We.jsx)(tc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,We.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,We.jsx)(ha,{children:(0,We.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:We-[40px] pb-5",children:[(0,We.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:We-1/2",children:e}),t&&t.length>0&&(0,We.jsx)(us,{breadcrumbItems:t})]})})]})}var um={highImpact:ls,lowImpact:ms,mediumImpact:ds,sectionHero:ps},gm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=um[t];return a?(0,We.jsx)(a,{...e}):null};function us({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,We.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,We.jsxs)("We",{role:"list",className:"flex items-center space-x-4",children:[(0,We.jsx)("li",{children:(0,We.jsx)("div",{children:(0,We.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,We.jsx)(bo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,We.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,We.jsx)("li",{children:(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(bo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,We.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,We.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,We.jsx)(We.Fragment,{})}var Ve=require("@headlessui/react"),yo=require("@heroicons/react/24/outline");var fm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,We.jsx)("a",{href:r,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,We.jsxs)("span",{className:"relative",children:[e,(0,We.jsx)("span",{className:"absolute -bottom-1 left-1/2 We-1/2 We-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,We.jsxs)(Ve.Popover,{children:[(0,We.jsxs)(Ve.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,We.jsxs)("span",{className:"relative",children:[e,(0,We.jsx)("span",{className:"absolute bottom-0 left-1/2 We-1/2 We-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,We.jsx)(bo.ChevronDownIcon,{"aria-hidden":"true",className:"We-5 We-5 flex-none text-accent"})]}),(0,We.jsxs)(Ve.PopoverPanel,{transition:!0,className:"absolute inset-x-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,We.jsx)("div",{className:"mx-auto grid max-We-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(o=>(0,We.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,We.jsx)("div",{className:"flex We-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:o.icon&&(0,We.jsx)(ac,{icon:o.icon,size:"4x"})}),(0,We.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,We.jsx)("span",{className:"absolute inset-0"})]}),(0,We.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,We.jsx)("div",{className:"bg-gray-50",children:(0,We.jsx)("div",{className:"mx-auto max-We-7xl px-6 lg:px-8",children:(0,We.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(o=>(0,We.jsxs)("a",{href:o.href,className:"flex items-center max-We-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,We.jsx)(ac,{icon:o.icon,className:"We-5 We-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),ac=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,We.jsx)(qe,{...e,size:a});if("src"in e)return(0,We.jsx)("div",{className:n(t,"We-full max-We-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,We.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},vo=fm;var ho=["light","dark","green"];function bm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Er.useState)(!1),[i,l]=(0,Er.useState)(!1),[s,m]=(0,Er.useState)("light"),p=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[d,u]=(0,Er.useState)(`${p}.${c}`),f=g=>{ho.includes(g)?u(g==="light"?`${p}.${c}`:`${p}-${g}.${c}`):u(`${p}.${c}`)};(0,Er.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";m(g),document.documentElement.setAttribute("class",g),f(g)},[]);let y=()=>{let g=ho[(ho.indexOf(s)+1)%ho.length];m(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,We.jsxs)("header",{className:"relative isolate z-10 bg-background We-14",children:[(0,We.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,We.jsx)("div",{className:"flex lg:flex-1",children:(0,We.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:e}),(0,We.jsx)("img",{alt:e,src:d,className:"We-9 We-auto"})]})}),(0,We.jsx)("div",{className:"flex lg:hidden",children:(0,We.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,We.jsx)(yo.Bars3Icon,{"aria-hidden":"true",className:"We-6 We-6"})]})}),(0,We.jsx)(Ve.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,We.jsx)(vo,{...g},g.name))}),(0,We.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,We.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:s==="dark"?(0,We.jsx)(bo.SunIcon,{className:"We-6 We-6"}):s==="green"?(0,We.jsx)(bo.MoonIcon,{className:"We-6 We-6"}):(0,We.jsx)(bo.SunIcon,{className:"We-6 We-6"})})})]}),(0,We.jsxs)(Ve.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,We.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,We.jsxs)(Ve.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 We-full overflow-y-auto bg-white px-6 py-6 sm:max-We-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,We.jsx)("img",{alt:e,src:t,className:"We-8 We-auto"})]}),(0,We.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,We.jsx)(yo.XMarkIcon,{"aria-hidden":"true",className:"We-6 We-6"})]})]}),(0,We.jsx)("div",{className:"mt-6 flow-root",children:(0,We.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,We.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,We.jsx)(vm,{...g},g.name))})})})]})]})]})}function vm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,We.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,We.jsxs)(Ve.Disclosure,{as:"div",className:"-mx-3",children:[(0,We.jsx)(Ve.DisclosureButton,{className:"group flex We-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,We.jsx)(Ve.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,We.jsx)(Ve.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:o.name},o.name))})]})}var nc=v(require("next/image"));var gs=v(require("next/image"));function ta({logoLight:e,logoDark:t,mobile:a=!1}){return(0,We.jsxs)(ye,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,We.jsx)(gs.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,We.jsx)(gs.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var oc=require("next-themes");function Pr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Er.useState)(!1),[l,s]=(0,Er.useState)(""),m=["light","dark"],{theme:p,setTheme:c}=(0,oc.useTheme)();(0,Er.useEffect)(()=>{s(p||"dark")},[p]);let d=()=>{let u=m[(m.indexOf(l)+1)%m.length];s(u),c(u)};return(0,Er.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,We.jsx)(We.Fragment,{children:(0,We.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,We.jsx)(ha,{className:"px-0",children:(0,We.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-We-xl",children:(0,We.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-We-xl border border-t-0 border-accent",children:[(0,We.jsx)(ta,{logoDark:a,logoLight:t}),(0,We.jsx)(Ve.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r&&r.map(u=>(0,We.jsx)(vo,{...u},u.name))}),(0,We.jsx)("div",{className:"flex items-center space-x-4",children:(0,We.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:d,children:(0,We.jsxs)("div",{className:"relative",children:[(0,We.jsx)(un.Sun,{className:"absolute We-6 We-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,We.jsx)(un.Moon,{className:"absoulte We-6 We-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var fs=["light","dark"];function Rr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Er.useState)(!1),{theme:l,setTheme:s}=(0,oc.useTheme)(),[m,p]=(0,Er.useState)(!1),[c,d]=(0,Er.useState)("light");(0,Er.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Er.useEffect)(()=>{d(l||"dark")},[l]);let u=()=>{let f=fs[(fs.indexOf(c)+1)%fs.length];d(f),s(f)};return(0,We.jsx)(We.Fragment,{children:(0,We.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,We.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",m&&"hidden"),children:(0,We.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&We.logo-light]:[filter:brightness(0)_invert(1)] dark:border-We dark:border-accent",children:[(0,We.jsx)(ta,{logoDark:t,logoLight:e,mobile:!0}),(0,We.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,We.jsxs)("button",{type:"button",onClick:()=>p(!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,We.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,We.jsx)(yo.Bars3Icon,{"aria-hidden":"true",className:"We-4 We-4"})]}),(0,We.jsx)("button",{className:"fixed right-16 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",onClick:u,children:(0,We.jsxs)("div",{className:"relative",children:[(0,We.jsx)(un.Sun,{className:"absolute We-4 We-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,We.jsx)(un.Moon,{className:"absoulte We-4 We-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,We.jsxs)(Ve.Dialog,{open:m,onClose:p,className:"lg:hidden",children:[(0,We.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,We.jsxs)(Ve.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 We-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-We-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,We.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,We.jsx)(ta,{logoDark:t,logoLight:e,mobile:!0}),(0,We.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,We.jsx)(yo.XMarkIcon,{"aria-hidden":"true",className:"We-6 We-6"})]})]}),(0,We.jsx)("div",{className:"mt-6 flow-root",children:(0,We.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,We.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,We.jsx)(hm,{...f},f.name))})})})]})]})]})})}function hm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,We.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,We.jsxs)(Ve.Disclosure,{as:"div",className:"-mx-3",children:[(0,We.jsx)(Ve.DisclosureButton,{className:"group flex We-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,We.jsx)(Ve.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,We.jsx)(Ve.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function ym({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[l,s]=(0,Er.useState)(!1),[m,p]=(0,Er.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Er.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,We.jsxs)("div",{className:"relative We-screen",children:[(0,We.jsxs)("div",{className:"absolute inset-0 We-full We-screen overflow-hidden",children:[(0,We.jsxs)("video",{className:"object-cover We-full We-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,We.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,We.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!l&&!m&&(0,We.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{p(!m)},children:(0,We.jsx)(un.Menu,{className:"We-6 We-6 text-white"})}),(0,We.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,We.jsx)(Pr,{isMenuOpen:l||m,logoLight:t,logoDark:a,menuItems:r}),(0,We.jsx)(Rr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,We.jsxs)("div",{className:"absolute inset-0 We-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,We.jsx)(nc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 We-auto We-auto mt-8 hidden lg:block",m&&"lg:hidden")}),(0,We.jsxs)("div",{className:"absolute top-1/2vv We-full flex flex-col px-4 items-center justify-center",children:[(0,We.jsx)("h1",{className:"text-6xl font-bold We-auto mb-12",children:o&&o}),(0,We.jsx)("div",{className:"text-3xl mb-8 max-We-2xl",children:i&&i})]}),(0,We.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center We-full mb-8",children:(0,We.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,We.jsx)(un.ChevronDown,{size:64})})})]})]})}var lc=v(require("next/image"));var xm=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),bs=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),vs=n("We-10 We-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),hs=n("flex items-center gap-5"),Po=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Nm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:l,columnThree:s,footerBottom:m}=t;return(0,We.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,We.jsx)("div",{className:"py-16 md:py-20",children:(0,We.jsx)("div",{className:"container",children:(0,We.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,We.jsx)(ta,{logoLight:a,logoDark:r}),(0,We.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,We.jsx)("nav",{"aria-label":"social links",children:(0,We.jsx)("ul",{className:"inline-flex min-We-[50px] items-center divide-x rounded-5 bg-accent text-white",children:o.socialLinks.map((p,c)=>(0,We.jsx)("li",{children:(0,We.jsx)(ye,{"aria-label":p.href,className:xm,href:p.href,openNewTab:!0,children:(0,We.jsx)("span",{children:p.icon})})},c))})})]}),(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,We.jsx)("h3",{className:bs,children:i.title}),i.links&&i.links.length>0&&(0,We.jsx)("nav",{"aria-label":"footer links navigation",children:(0,We.jsx)("ul",{className:"grid gap-2",children:i.links.map(p=>(0,We.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,We.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,We.jsx)(ro.FaChevronRight,{})}),(0,We.jsx)(ye,{href:p.href,openNewTab:p.openNewTab,className:Po,children:p.label})]},p.label))})})]}),(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,We.jsx)("h3",{className:bs,children:l.title}),(0,We.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaPaperPlane,{})}),(0,We.jsx)("address",{className:"not-italic",children:l.location})]}),(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,We.jsx)("div",{className:"grid gap-1",children:l.mails.map((p,c)=>(0,We.jsx)("a",{href:`mailto:${p}`,className:Po,children:p},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaPhone,{})}),(0,We.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((p,c)=>(0,We.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Po,children:p},c))})]})]})]}),s&&(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,We.jsx)("h3",{className:bs,children:s.title}),s.blogs&&s.blogs.length>0&&(0,We.jsx)("div",{className:"grid gap-6",children:s.blogs.map((p,c)=>(0,We.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,We.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,We.jsx)(lc.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,We.jsxs)("div",{children:[(0,We.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,We.jsx)("span",{className:"text-accent",children:(0,We.jsx)(ro.FaCalendarDays,{})}),(0,We.jsx)("span",{children:Al(p.date)})]}),(0,We.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,We.jsx)(ye,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},c))})]})]})})}),(0,We.jsx)("div",{className:"flex min-We-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,We.jsx)("div",{className:"container",children:(0,We.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,We.jsx)("p",{children:m.copyrightText}),m.links&&m.links.length>0&&(0,We.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,We.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:m.links.map(p=>(0,We.jsx)("li",{children:(0,We.jsx)(ye,{"aria-label":`Go to page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Po,children:p.label})},p.label))})})]})})})]})}function wm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,We.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",o),children:[(0,We.jsx)(Pr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,We.jsx)(Rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Cm({children:e,...t}){return(0,We.jsx)(oc.ThemeProvider,{...t,children:e})}var wa=require("sonner");function ys({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Er.useState)([]),i=(0,Nl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},s=c=>{o(d=>d.includes(c)?d.filter(u=>u!==c):[...d,c])},m=async()=>{let c=await t(r);c.success?(wa.toast.success(c.message),i.refresh()):wa.toast.error(`Error: ${c.message}`),o([])},p=async()=>{let c=await a(r);c.success?(wa.toast.success(c.message),i.refresh()):wa.toast.error(`Error: ${c.message}`),o([])};return(0,We.jsxs)("div",{className:"space-y-4",children:[(0,We.jsxs)("div",{className:"flex justify-between items-center",children:[(0,We.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,We.jsxs)("div",{className:"space-x-2",children:[(0,We.jsx)(T,{onClick:m,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,We.jsx)(T,{onClick:p,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,We.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,We.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(st,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,We.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,We.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(st,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>s(c.id),className:"border-accent"}),(0,We.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,We.jsxs)(Rt,{className:"We-10 We-10",children:[(0,We.jsx)(St,{src:c.userImage,alt:c.userName}),(0,We.jsx)(kt,{children:c.userName.split(" ").map(d=>d[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-3",children:(0,We.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,We.jsx)(Ke,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,We.jsx)(wa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var xs=require("date-fns"),Pm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,We.jsx)("div",{className:"flex space-x-2",children:e.map((o,i)=>(0,We.jsx)(T,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function ws({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Er.useState)(new Date),[o,i]=(0,Er.useState)(new Date),[l,s]=(0,Er.useState)("Full Day"),[m,p]=(0,Er.useState)(!1),c=(0,Nl.useRouter)();(0,Er.useEffect)(()=>{p(a!==o||!a||!o),m&&s("Full Day")},[a,o]);let d=f=>{s(f)};return(0,We.jsxs)("div",{className:"max-We-2xl",children:[(0,We.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,We.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,We.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){wa.toast.error("Please select both start and end dates");return}let y=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(y=.5),y>e){wa.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",o.toISOString()),g.append("leaveType",l),g.append("duration",y.toString());let x=await(t||Rm)(g);x.success?(wa.toast.success(x.message),r(void 0),i(void 0),s("Full Day"),c.refresh()):wa.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,We.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(Y,{htmlFor:"startDate",children:"Start Date"}),(0,We.jsxs)(dr,{children:[(0,We.jsx)(mr,{asChild:!0,children:(0,We.jsxs)(T,{variant:"outline",className:n("We-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,We.jsx)(un.CalendarIcon,{className:"mr-2 We-4 We-4"}),a?(0,xs.format)(a,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(Ha,{className:"We-auto p-0",align:"start",children:(0,We.jsx)(gr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(Y,{htmlFor:"endDate",children:"End Date"}),(0,We.jsxs)(dr,{children:[(0,We.jsx)(mr,{asChild:!0,children:(0,We.jsxs)(T,{variant:"outline",className:n("We-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,We.jsx)(un.CalendarIcon,{className:"mr-2 We-4 We-4"}),o?(0,xs.format)(o,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(Ha,{className:"We-auto p-0",align:"start",children:(0,We.jsx)(gr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(Y,{children:"Leave Type"}),(0,We.jsx)(Pm,{options:["Full Day","Morning","Afternoon"],value:l,onChange:d,disabled:[!1,m,m]})]}),(0,We.jsx)(T,{type:"submit",className:"We-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,We.jsx)(wa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Rm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function gc(...e){return e.filter(Boolean).join(" ")}function Cs({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{t(new Date)};return(0,We.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,We.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,We.jsxs)("div",{className:"sm:flex-auto",children:[(0,We.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,We.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,We.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,We.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,We.jsx)(un.ChevronLeft,{className:"We-5 We-5","aria-hidden":"true"})]}),(0,We.jsx)(T,{variant:"outline",onClick:s,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,We.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Next month"}),(0,We.jsx)(un.ChevronRight,{className:"We-5 We-5","aria-hidden":"true"})]})]})]}),(0,We.jsx)("div",{className:"mt-8 flow-root",children:(0,We.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,We.jsx)("div",{className:"max-We-[60vh] overflow-y-auto",children:(0,We.jsxs)("table",{className:"min-We-full border-separate border-spacing-0",children:[(0,We.jsx)("thead",{className:"sticky top-0 z-10 bg-white",children:(0,We.jsxs)("tr",{children:[(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((m,p)=>(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We 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",children:p+1},p))]})}),(0,We.jsx)("tbody",{children:r.map((m,p)=>(0,We.jsxs)("tr",{children:[(0,We.jsx)("td",{className:gc(p!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsxs)(Rt,{className:"We-11 We-11",children:[(0,We.jsx)(St,{src:m.image,alt:m.name}),(0,We.jsx)(kt,{children:m.name.split(" ").map(c=>c[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-4",children:(0,We.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(o)].map((c,d)=>{let u=new Date(e.getFullYear(),e.getMonth(),d+1),f=a.find(y=>y.userId===m.id&&new Date(y.startDate)<=u&&new Date(y.endDate)>=u);return(0,We.jsx)("td",{className:gc(p!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,We.jsx)("div",{className:`We-6 We-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${m.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,We.jsx)("div",{className:`We-3 We-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${d}`)})]},m.id))})]})})})})]})}function Ps({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Er.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,d)=>{let u=new Date(e.getFullYear(),e.getMonth(),d-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=u&&new Date(f.endDate)>=u)}}),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,We.jsxs)("div",{className:"lg:flex lg:We-full lg:flex-col",children:[(0,We.jsxs)("header",{className:"flex items-center justify-between border-We border-gray-200 px-6 py-4 lg:flex-none",children:[(0,We.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,We.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,We.jsx)("div",{className:"flex items-center",children:(0,We.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,We.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,We.jsx)(un.ChevronLeft,{className:"We-5 We-5","aria-hidden":"true"})]}),(0,We.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,We.jsxs)(T,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Next month"}),(0,We.jsx)(un.ChevronRight,{className:"We-5 We-5","aria-hidden":"true"})]})]})})]}),(0,We.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,We.jsxs)("div",{className:"grid grid-cols-7 gap-px border-We border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,We.jsxs)("div",{className:"bg-white py-2",children:["M",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"We"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["We",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["We",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"We"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,We.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,We.jsx)("div",{className:"hidden We-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(c=>(0,We.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,We.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex We-6 We-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,We.jsx)("We",{className:"mt-2 space-y-1",children:c.holidays.map(d=>(0,We.jsx)("li",{children:(0,We.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${d.status==="approved"?"border-green-500":"border-gray-500"} border`,children:d.userName})},d.id))})]},c.date.toISOString()))}),(0,We.jsx)("div",{className:"isolate grid We-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,We.jsxs)("button",{type:"button",className:n(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex We-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,We.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===r&&c.isToday&&"flex We-6 We-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex We-6 We-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,We.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,We.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(d=>(0,We.jsx)("span",{className:`mx-0.5 mb-1 We-1.5 We-1.5 rounded-full ${d.status==="approved"?"bg-green-500":"bg-gray-500"}`},d.id))})]},c.date.toISOString()))})]})]})]})}var aa=require("lucide-react");function bc(...e){return e.filter(Boolean).join(" ")}function Sm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:l,rejectLeave:s}){let[m,p]=(0,Er.useState)("Calendar View"),c=(0,Nl.useRouter)(),d=!1,u=(0,xs.parseISO)(a),f=async g=>{let x=(0,xs.format)(g,"dd-MM-yyyy"),D=new URL(window.location.href);return D.searchParams.set("date",x),c.push(D.toString()),{success:!0}};if(d)return(0,We.jsx)("div",{className:"flex justify-center items-center We-screen",children:(0,We.jsx)("div",{className:"animate-spin rounded-full We-32 We-32 border-t-2 border-We-2 border-gray-900"})});let y=[{name:"Grid View",icon:aa.Grid,current:m==="Grid View"},{name:"Calendar View",icon:aa.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:aa.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:aa.CheckSquare,current:m==="Approve Leave"}];return(0,We.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,We.jsxs)("div",{className:"mb-8",children:[(0,We.jsxs)("div",{className:"sm:hidden",children:[(0,We.jsx)("select",{value:m,onChange:g=>p(g.target.value),className:"block We-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(g=>(0,We.jsx)("option",{children:g.name},g.name))}),(0,We.jsx)(un.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 We-5 We-5 text-gray-400","aria-hidden":"true"})]}),(0,We.jsx)("div",{className:"hidden sm:block",children:(0,We.jsx)("div",{className:"border-We border-gray-200",children:(0,We.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(g=>(0,We.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(g.name)},className:bc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-We-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,We.jsx)(g.icon,{className:bc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 We-5 We-5"),"aria-hidden":"true"}),(0,We.jsx)("span",{children:g.name})]},g.name))})})})]}),m==="Grid View"&&(0,We.jsx)(Cs,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),m==="Calendar View"&&(0,We.jsx)(Ps,{currentDate:u,setCurrentDate:f,holidays:e}),m==="Request Leave"&&(0,We.jsx)(ws,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,We.jsx)(ys,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>s?s(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Rs({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:i,onAddComment:l}){var S,X,Ze;let[s,m]=(0,Er.useState)({...e,value:e.value||0}),[p,c]=(0,Er.useState)(""),[d,u]=(0,Er.useState)(!1),[f,y]=(0,Er.useState)(null);(0,Er.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(s))},[e,s]);let g=()=>{i(s),u(!1),y(null)},x=(N,Q)=>{m(et=>({...et,[N]:Q}))},D=N=>{let Q=s.categories.includes(N)?s.categories.filter(et=>et!==N):[...s.categories,N];x("categories",Q)},z=()=>{p.trim()&&(l({id:Date.now().toString(),text:p,timestamp:new Date().toISOString()}),m(N=>({...N,comments:[...N.comments,{id:"0",text:p,timestamp:new Date().toISOString()}]})),c(""))},ee=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},He=(N,Q,et)=>{let ka=f===N;return(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:Q}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[et,ka?(0,We.jsx)(Pe,{value:s[N],onChange:j=>x(N,j.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,We.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>y(N),children:s[N]}),!ka&&(0,We.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>y(N),children:(0,We.jsx)(un.Edit2Icon,{className:"We-4 We-4"})})]})]})};return(0,We.jsx)(Ye,{open:!0,children:(0,We.jsxs)(Oe,{className:"max-We-3xl max-We-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,We.jsxs)(ot,{className:"flex flex-row items-center justify-between",children:[(0,We.jsx)(it,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,We.jsxs)("div",{className:"flex space-x-2",children:[(0,We.jsx)(T,{variant:"outline",onClick:o,children:"Close"}),(0,We.jsxs)(T,{onClick:g,disabled:!d,children:[(0,We.jsx)(un.SaveIcon,{className:"We-4 We-4 mr-2"}),"Save"]})]})]}),(0,We.jsxs)(Xt,{className:"flex-grow pr-4",children:[(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,We.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,We.jsx)(Pe,{type:"number",value:s.value,onChange:N=>x("value",Number(N.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,We.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(S=s.value)==null?void 0:S.toLocaleString()]})}),(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,We.jsxs)(da,{value:((Ze=(X=s==null?void 0:s.assignee)==null?void 0:X.id)==null?void 0:Ze.toString())||"",onValueChange:N=>x("assignee",N),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select assignee"})}),(0,We.jsx)(qt,{children:t&&t.map(N=>{var Q;return(0,We.jsx)(Jt,{value:((Q=N==null?void 0:N.id)==null?void 0:Q.toString())||"",children:N.name},N.id)})})]}):(0,We.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,We.jsx)(un.UserIcon,{className:"We-4 We-4 text-gray-400"}),(0,We.jsx)("span",{children:s.assignee.name})]})]}),(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,We.jsx)(Pe,{type:"date",value:s.closureDate.split("T")[0],onChange:N=>x("closureDate",N.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,We.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,We.jsx)(un.CalendarIcon,{className:"We-4 We-4 text-gray-400"}),(0,We.jsx)("span",{children:new Date(s.closureDate).toLocaleDateString("We-GB")})]})]})]}),(0,We.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,We.jsx)(Qt,{value:s.description,onChange:N=>x("description",N.target.value),onBlur:()=>y(null),className:"min-We-[100px]",autoFocus:!0}):(0,We.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:s.description})]})}),(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 We-2 gap-4",children:[(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,We.jsxs)(da,{value:s.status,onValueChange:N=>{x("status",N),y(null)},children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select status"})}),(0,We.jsx)(qt,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,We.jsx)(Jt,{value:N,children:N},N))})]}):(0,We.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:s.status})]}),(0,We.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,We.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(N=>(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsx)(st,{id:N.id,checked:s.categories.includes(N.id),onCheckedChange:()=>D(N.id)}),(0,We.jsx)("label",{htmlFor:N.id,className:`text-sm font-medium ${ee(N.type)} px-2 py-1 rounded`,children:N.name})]},N.id))}):(0,We.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:s.categories.map(N=>{let Q=r.find(et=>et.id===N);return Q?(0,We.jsx)(Ke,{variant:"secondary",className:ee(Q.type),children:Q.name},Q.id):null})})]})]}),(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 We-4 gap-4",children:[(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,We.jsx)(Xt,{className:"We-[200px] overflow-y-auto",children:(0,We.jsx)("div",{className:"space-y-2",children:s.comments.slice().sort((N,Q)=>new Date(Q.timestamp).getTime()-new Date(N.timestamp).getTime()).map(N=>{var Q;return(0,We.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,We.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,We.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(Q=N==null?void 0:N.author)==null?void 0:Q.name," - ",new Date(N.timestamp).toLocaleString()]})]},N.id)})})}),(0,We.jsxs)("div",{className:"flex mt-2",children:[(0,We.jsx)(Pe,{value:p,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,We.jsxs)(T,{onClick:z,className:"ml-2",children:[(0,We.jsx)(un.PlusIcon,{className:"We-4 We-4 mr-2"}),"Add"]})]})]}),(0,We.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt).toLocaleString()]})]})]})]})})}function Ss({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,We.jsxs)(ge,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,We.jsxs)(Ie,{className:"pb-2",children:[(0,We.jsx)("div",{className:"flex justify-between items-center",children:(0,We.jsx)(Ae,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,We.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,We.jsxs)(he,{children:[(0,We.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,We.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,We.jsx)(un.UserIcon,{className:"We-4 We-4 mr-1 text-xs"}),(0,We.jsx)("span",{children:e.assignee.name})]}),(0,We.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,We.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,We.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,We.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,We.jsx)(un.CalendarIcon,{className:"We-3 We-3 mr-1"}),(0,We.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,We.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,We.jsx)(Ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Do=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function ks({onSubmit:e}){var o;let[t,a]=(0,Er.useState)({name:"",intro:"",active:!0});return(0,$e.jsxs)("form",{onSubmit:i=>{i.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,$e.jsxs)("div",{className:"space-y-2",children:[(0,$e.jsx)(Y,{htmlFor:"customerName",children:"Customer Name"}),(0,$e.jsx)(Pe,{id:"customerName",value:t.name,onChange:i=>a({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,$e.jsxs)("div",{className:"space-y-2",children:[(0,$e.jsx)(Y,{htmlFor:"customerIntro",children:"Intro"}),(0,$e.jsx)(Qt,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:i=>a({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,$e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$e.jsx)(st,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>a({...t,active:i})}),(0,$e.jsx)(Y,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,$e.jsx)(T,{type:"submit",className:"We-full",children:"Add Customer"})]})}function Ts({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:i,onClose:l}){var D,z,ee,He;let[s,m]=(0,Er.useState)(o||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,c]=(0,Er.useState)(!1),[d,u]=(0,Er.useState)({});(0,Er.useEffect)(()=>{o&&m(o)},[o]);let f=()=>{let S={};return s.customer||(S.customer="Customer is required"),s.value||(S.value="Value is required"),s.assignee||(S.assignee="Assignee is required"),s.closureDate||(S.closureDate="Closure Date is required"),u(S),Object.keys(S).length===0},y=S=>{S.preventDefault(),f()&&(r({...s}),m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),u({}),l==null||l())},g=S=>{m(X=>{var Ze;return{...X,categories:(Ze=X.categories)!=null&&Ze.includes(S)?X.categories.filter(N=>N!==S):[...X.categories||[],S]}})},x=S=>{e.push(S),m({...s,customer:S}),c(!1),i(S)};return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,We.jsx)(Xt,{className:"We-[60vh] pr-4",children:(0,We.jsxs)("div",{className:"space-y-6 px-4",children:[(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"customer",children:"Customer"}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsxs)(da,{value:(z=(D=s.customer)==null?void 0:D.id)==null?void 0:z.toString(),onValueChange:S=>m({...s,customer:{id:Number(S)}}),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select customer"})}),(0,We.jsx)(qt,{children:e.map(S=>{var X;return(0,We.jsx)(Jt,{value:((X=S.id)==null?void 0:X.toString())||"",children:S.name},S.id)})})]}),(0,We.jsx)(T,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,We.jsx)(un.PlusIcon,{className:"We-5 We-5"})})]}),d.customerId&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.customerId})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"value",children:"Value"}),(0,We.jsx)(Pe,{id:"value",type:"number",value:s.value||"",onChange:S=>m({...s,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),d.value&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.value})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"assignee",children:"Assignee"}),(0,We.jsxs)(da,{value:(He=(ee=s.assignee)==null?void 0:ee.id)==null?void 0:He.toString(),onValueChange:S=>m({...s,assignee:{id:Number(S)}}),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select assignee"})}),(0,We.jsx)(qt,{children:t&&t.map(S=>{var X;return(0,We.jsx)(Jt,{value:((X=S.id)==null?void 0:X.toString())||"",children:S.name},S.id)})})]}),d.assignee&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.assignee})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"description",children:"Description"}),(0,We.jsx)(Qt,{id:"description",value:s.description||"",onChange:S=>m({...s,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{children:"Categories"}),(0,We.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(S=>(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,We.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(X=>X.type===S).map(X=>{var Ze;return(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsx)(st,{id:X.id,checked:(Ze=s.categories)==null?void 0:Ze.includes(X.id),onCheckedChange:()=>g(X.id)}),(0,We.jsx)("label",{htmlFor:X.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:X.name})]},X.id)})})]},S))})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"closureDate",children:"Closure Date"}),(0,We.jsx)(Pe,{id:"closureDate",type:"date",value:s.closureDate,onChange:S=>m({...s,closureDate:S.target.value})}),d.closureDate&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.closureDate})]})]})}),(0,We.jsx)(T,{type:"submit",className:"We-full",children:o?"Update Deal":"Add Deal"})]}),(0,We.jsx)(Ye,{open:p,onOpenChange:c,children:(0,We.jsxs)(Oe,{children:[(0,We.jsx)(ot,{children:(0,We.jsx)(it,{children:"Add New Customer"})}),(0,We.jsx)(ks,{onSubmit:x})]})})]})}function Ds({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:i,calculateColumnValue:l,calculateWeightedValue:s,addNewDeal:m,onAddCustomer:p}){let[c,d]=(0,Er.useState)(!1);return(0,We.jsxs)("div",{className:"flex flex-col We-80",children:[(0,We.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),m&&(0,We.jsxs)(Ye,{open:c,onOpenChange:d,children:[(0,We.jsx)(Xr,{asChild:!0,children:(0,We.jsxs)(T,{className:"mb-4 We-full bg-green-500 hover:bg-green-600 text-white",children:[(0,We.jsx)(un.PlusCircle,{className:"mr-2 We-4 We-4"}),"Add New Deal"]})}),(0,We.jsxs)(Oe,{children:[(0,We.jsx)(ot,{children:(0,We.jsx)(it,{children:"Add New Deal"})}),(0,We.jsx)(Ts,{customers:r,users:a,categories:o,onSubmit:m,onAddCustomer:p,onClose:()=>d(!1)})]})]}),(0,We.jsx)(Do.Droppable,{droppableId:e,children:u=>(0,We.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-We-[200px] shadow-inner",children:[t.map((f,y)=>(0,We.jsx)(Do.Draggable,{draggableId:f.id.toString(),index:y,children:g=>(0,We.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,We.jsx)(Ss,{deal:f,customer:r.find(x=>x.id===f.customer.id),categories:o,onClick:()=>i(f)})})},f.id)),u.placeholder]})}),(0,We.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,We.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,We.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,We.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,We.jsxs)("span",{className:"text-blue-600",children:["\xA3",s(t,e).toLocaleString()]})]})]})]})}var km=["Cold","Qualified","Proposal","SoW","Won","Lost"];function Tm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){let[i,l]=(0,Er.useState)(null),s=d=>e.deals.filter(u=>u.status===d),m=d=>d.reduce((u,f)=>u+(f.value||0),0),p=(d,u)=>{let f={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return d.reduce((y,g)=>y+(g.value||0)*f[u],0)},c=(0,Er.useCallback)(d=>{let{source:u,destination:f}=d;if(!f||u.droppableId===f.droppableId&&u.index===f.index)return;let y=u.droppableId,g=f.droppableId;console.log("Moving from ",y,"to",g);let x=[...e.deals],[D]=x.splice(u.index,1);D.status=g,x.splice(f.index,0,D),a(D)},[a]);return(0,We.jsx)(Do.DragDropContext,{onDragEnd:c,children:(0,We.jsxs)("div",{className:"p-4",children:[(0,We.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:km.filter(d=>d!=="Won"&&d!=="Lost").map(d=>{let u=s(d);return(0,We.jsx)(Ds,{status:d,deals:u,customers:e.customers,users:e.users,categories:e.categories,onDealClick:l,calculateColumnValue:m,calculateWeightedValue:p,addNewDeal:d==="Cold"?t:void 0,onAddCustomer:o},d)})}),i&&(0,We.jsx)(Rs,{deal:i,users:e.users,customer:e.customers.find(d=>d.id===i.customer.id),categories:e.categories,onClose:()=>l(null),onSave:a,onAddComment:d=>r(i.id.toString(),d)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,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,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
18
+ `,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,We.jsxs)("div",{className:"relative z-10 flex We-full flex-1 We-full flex-col",children:[o&&(0,We.jsx)("div",{children:(0,We.jsx)("div",{className:"inline-grid We-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,We.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,We.jsx)("span",{className:"block",children:Il(o)})})})}),(0,We.jsxs)("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[(0,We.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,We.jsx)("p",{className:Hl})}),(0,We.jsx)("h3",{className:"text-md font-bold We-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,We.jsx)(ye,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,We.jsx)("div",{children:(0,We.jsxs)(ye,{href:e,className:n(Hl,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,We.jsx)("span",{children:"Read More"}),(0,We.jsx)("span",{className:"text-accent",children:(0,We.jsx)(ro.FaArrowRight,{})})]})})]})]})]})}var qd=e=>{let{posts:t}=e;return(0,We.jsx)("div",{className:n("container"),children:(0,We.jsx)("div",{children:(0,We.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,We.jsx)("div",{className:"col-span-4",children:(0,We.jsx)(yr,{className:"We-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Ol=v(require("clsx")),_l=v(require("next/image")),Jd=e=>{let{loading:t,priority:a,className:r}=e;return(0,We.jsx)(_l.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ol.default)("max-We-[9.375rem] We-full We-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Qd={plural:"Docs",singular:"Doc"},Zd={posts:{plural:"Posts",singular:"Post"}},em=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:l}=e,s=(o?o-1:1)*(i||1)+1;l&&s>l&&(s=0);let m=(o||1)*(i||1);l&&m>l&&(m=l);let{plural:p,singular:c}=r||Zd[a||""]||Qd||{};return(0,We.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced We results.",typeof l!="undefined"&&l>0&&`Showing ${s}${s>0?` - ${m}`:""} of ${l} ${l>1?p:c}`]})};var es=v(require("react")),ts=({className:e,...t})=>(0,We.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex We-full justify-center",e),role:"navigation",...t});ts.displayName="Pagination";var as=es.forwardRef(({className:e,...t},a)=>(0,We.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));as.displayName="PaginationContent";var Lt=es.forwardRef(({className:e,...t},a)=>(0,We.jsx)("li",{className:n("",e),ref:a,...t}));Lt.displayName="PaginationItem";var ya=({className:e,isActive:t,size:a="icon",...r})=>(0,We.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ot({size:a,variant:t?"outline":"ghost"}),e),...r});ya.displayName="PaginationLink";var rs=({className:e,...t})=>(0,We.jsxs)(ya,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,We.jsx)(un.ChevronLeft,{className:"We-4 We-4"}),(0,We.jsx)("span",{children:"Previous"})]});rs.displayName="PaginationPrevious";var os=({className:e,...t})=>(0,We.jsxs)(ya,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,We.jsx)("span",{children:"Next"}),(0,We.jsx)(un.ChevronRight,{className:"We-4 We-4"})]});os.displayName="PaginationNext";var uo=({className:e,...t})=>(0,We.jsxs)("span",{"aria-hidden":!0,className:n("flex We-9 We-9 items-center justify-center",e),...t,children:[(0,We.jsx)(un.MoreHorizontal,{className:"We-4 We-4"}),(0,We.jsx)("span",{className:"sr-only",children:"More pages"})]});uo.displayName="PaginationEllipsis";var tm=e=>{let t=(0,$l.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,l=r>1,s=r-1>1,m=r+1<o;return(0,We.jsx)("div",{className:n("my-12",a),children:(0,We.jsx)(ts,{children:(0,We.jsxs)(as,{children:[(0,We.jsx)(Lt,{children:(0,We.jsx)(rs,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,We.jsx)(Lt,{children:(0,We.jsx)(uo,{})}),l&&(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,We.jsx)(Lt,{children:(0,We.jsx)(ya,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),m&&(0,We.jsx)(Lt,{children:(0,We.jsx)(uo,{})}),(0,We.jsx)(Lt,{children:(0,We.jsx)(os,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var is=v(require("clsx"));function am({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:l,loading:s=!1,LinkComponent:m,...p}){let d=m?u=>(0,We.jsx)(m,{...u}):l?({href:u,children:f,...y})=>(0,We.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start We-full text-sm text-left px-4 py-2",...y,children:f}):u=>(0,We.jsx)("a",{...u});return(0,We.jsxs)(ra,{...p,variant:"inset",children:[(0,We.jsx)(oa,{children:(0,We.jsx)(Me,{children:(0,We.jsx)(ve,{children:s?(0,We.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,We.jsx)(ae,{className:"bg-gray-200 my-2 We-full We-7"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 my-2 We-5"})]}):(0,We.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,We.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,We.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),s&&(0,We.jsxs)(_t,{children:[(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"}),(0,We.jsx)(ae,{className:"bg-gray-200 We-3/4 We-5"})]}),(0,We.jsxs)(_t,{children:[e&&!s&&e.map((u,f)=>(0,We.jsx)(rm,{subNav:u,pathName:o,Link:d},f)),(0,We.jsx)(Ue,{className:"mt-auto",children:(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:t&&!s&&t.map(u=>(0,We.jsx)(ve,{children:(0,We.jsx)(Xe,{asChild:!0,size:"sm",children:(0,We.jsxs)(d,{href:u.url||"",children:[u.icon&&(0,We.jsx)(u.icon,{}),(0,We.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,We.jsx)(ia,{})]})}function rm({subNav:e,pathName:t,Link:a}){var i,l;let r=e,o=!1;return r.links&&r.links.map(s=>{s.url===t&&(o=!0)}),(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsx)(Ue,{className:"py-0",children:(0,We.jsx)(Me,{children:(0,We.jsx)(xt,{asChild:!0,defaultOpen:r.isActive,children:(0,We.jsxs)(ve,{children:[(0,We.jsx)(Xe,{asChild:!0,tooltip:r.label,className:(0,is.default)(o&&"font-bold text-accent"),children:(0,We.jsxs)(a,{href:r.url,children:[r.icon&&(0,We.jsx)(r.icon,{}),(0,We.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(Ft,{asChild:!0,children:(0,We.jsxs)(ar,{className:"data-[state=open]:rotate-90",children:[(0,We.jsx)(un.ChevronRight,{}),(0,We.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,We.jsx)(zt,{children:(0,We.jsx)(Gt,{children:(l=r.links)==null?void 0:l.map(s=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,className:(0,is.default)(s.url===t&&"font-bold text-accent"),children:(0,We.jsx)(a,{href:s.url,children:(0,We.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},r.label)})})})}var Ul=v(require("clsx"));var om=()=>(0,We.jsx)(qe,{iconName:"github",size:"10x"});function im({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:l,onPrintDocument:s,onGithubClick:m,onNavClick:p,LinkComponent:c,...d}){let y=c?g=>(0,We.jsx)(c,{...g}):p?({item:g,children:x,...D})=>(0,We.jsx)("button",{onClick:()=>p&&p(g),className:"flex items-center justify-start We-full text-sm text-left px-4 py-2",...D,children:x}):g=>(0,We.jsx)("a",{href:g.href,...g});return(0,We.jsxs)(ra,{side:"right",variant:"inset",...d,children:[(0,We.jsxs)(oa,{className:"border-We border-sidebar-border",children:[(0,We.jsxs)(Me,{className:"flex-row space-x-1",children:[(0,We.jsx)(ve,{children:(0,We.jsxs)(Xe,{onClick:i,children:[(0,We.jsx)(un.FilePlus,{})," ",(0,We.jsx)("span",{children:"Add Document"})]})}),m&&(0,We.jsx)(ve,{children:(0,We.jsx)(Xe,{onClick:m,tooltip:"Open in GitHub",children:(0,We.jsx)(om,{})})})]}),(0,We.jsxs)(Me,{className:"flex-row space-x-1",children:[(0,We.jsx)(ve,{className:"We-5/12",children:(0,We.jsxs)(Xe,{onClick:()=>l(),variant:o?"outline":"default",className:(0,Ul.default)(o&&"text-accent"),children:[(0,We.jsx)(un.Edit,{})," ",(0,We.jsx)("span",{children:"Edit"})]})}),(0,We.jsx)(ve,{className:"We-5/12",children:(0,We.jsxs)(Xe,{onClick:s,children:[(0,We.jsx)(un.Printer,{})," ",(0,We.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Editor Controls",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:a})})]})}),(0,We.jsx)(tr,{className:"mx-0"})]}),(0,We.jsxs)(_t,{className:"overflow-auto",children:[r&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{children:"Related Content"}),(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:Array.from({length:3}).map((g,x)=>(0,We.jsx)(ve,{children:(0,We.jsx)(ae,{className:"bg-gray-200 We-full We-10"})},x))})})]}),(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{children:"Table of Contents"}),(0,We.jsx)(at,{children:(0,We.jsx)(Me,{children:Array.from({length:3}).map((g,x)=>(0,We.jsx)(ve,{children:(0,We.jsx)(ae,{className:"bg-gray-200 We-full We-10"})},x))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Related Content",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:(0,We.jsx)(Me,{children:e&&Object.keys(e).map(g=>(0,We.jsxs)(ve,{children:[(0,We.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,We.jsx)(Gt,{children:e[g].map(x=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,isActive:!1,size:"sm",children:(0,We.jsxs)(y,{href:x.url,item:x,className:"flex justify-between items-center We-full text-xs",children:[(0,We.jsx)("span",{children:x.label}),x.type==="note"&&(0,We.jsx)(un.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,We.jsx)(qe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!r&&(0,We.jsx)(xt,{defaultOpen:!0,className:"group/collapsible",children:(0,We.jsxs)(Ue,{children:[(0,We.jsx)(wt,{asChild:!0,children:(0,We.jsxs)(Ft,{children:["Table of Contents",(0,We.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,We.jsx)(at,{children:(0,We.jsx)(zt,{children:(0,We.jsx)(Me,{children:t.map(g=>{var x;return(0,We.jsxs)(ve,{children:[(0,We.jsx)(Xe,{asChild:!0,children:(0,We.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,We.jsx)(Gt,{children:g.items.map(D=>(0,We.jsx)(Vt,{children:(0,We.jsx)($t,{asChild:!0,isActive:D.isActive,size:"sm",children:(0,We.jsx)("a",{href:`#${D.url}`,className:"flex justify-between items-center We-full text-xs",children:(0,We.jsx)("span",{children:D.title})})})},D.title))}):null]},g.title)})})})})]})})]}),(0,We.jsx)(ia,{})]})}var jl=v(require("next/image"));function sm({title:e,members:t}){return(0,We.jsx)(ge,{className:"mb-6",children:(0,We.jsxs)("div",{className:"p-6",children:[(0,We.jsxs)("div",{className:"flex items-center mb-4",children:[(0,We.jsx)(un.Users,{className:"We-6 We-6 text-accent mr-2"}),(0,We.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,We.jsx)("div",{className:"space-y-4",children:t.map((a,r)=>(0,We.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,We.jsx)("div",{className:"relative We-12 We-12 rounded-full overflow-hidden",children:a.avatar&&(0,We.jsx)(jl.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,We.jsxs)("div",{children:[(0,We.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,We.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Yl=v(require("next/link"));var nm=({links:e,title:t="Related Content"})=>(0,We.jsxs)(ge,{children:[(0,We.jsx)(Ie,{children:(0,We.jsx)(Ae,{className:"text-accent",children:t})}),(0,We.jsx)(he,{children:(0,We.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,r)=>(0,We.jsxs)(Yl.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,We.jsx)(un.ExternalLink,{className:"ml-1 We-3 We-3"})]},r))})})]});var ss=n("grid We-[45px] We-[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 lm({pages:e}){let t=(0,Nl.useSearchParams)(),a=(0,Nl.usePathname)(),{replace:r}=(0,Nl.useRouter)(),{totalPages:o,page:i}=e,[l,s]=(0,Er.useState)({start:i>3?i-3:1,end:i+2}),m=d=>{d==="left"&&l.start>1?s(u=>({start:u.start-1,end:u.end-1})):d==="right"&&l.end<o&&s(u=>({start:u.start+1,end:u.end+1}))};function p(d){let u=new URLSearchParams(t);d?u.set("page",d):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let d=l.start;d<=l.end;d++)c.push(d);return(0,We.jsx)("div",{className:"mt-12",children:(0,We.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,We.jsx)("li",{children:(0,We.jsx)("button",{className:n(ss,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,We.jsx)(ro.FaArrowLeft,{})})}),c.map((d,u)=>(0,We.jsx)("li",{children:(0,We.jsx)("a",{className:n(ss,d===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${d}`,role:"button",onClick:f=>{f.preventDefault(),p(d.toString())},children:d})},u)),l.end<o&&(0,We.jsx)("li",{children:(0,We.jsx)("button",{className:n(ss,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,We.jsx)(ro.FaArrowRight,{})})})]})})}var $We=n("transition-colors duration-400 hover:text-primary ease-in-out");function cm({title:e,links:t}){let a=(0,$a.useSearchParams)(),r=(0,$a.usePathname)(),{replace:o}=(0,$a.useRouter)();function i(l){let s=new URLSearchParams(a);l?s.set("category",l):s.delete("category"),o(`${r}?${s.toString()}`)}return(0,We.jsxs)(ge,{children:[(0,We.jsx)(Ie,{children:(0,We.jsx)(Ae,{className:"text-accent",children:e&&e})}),(0,We.jsx)(he,{children:t&&t.length>0&&(0,We.jsx)("nav",{"aria-label":"footer links navigation",children:(0,We.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,s)=>(0,We.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:We-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),i(l.href)},children:[l.label,(0,We.jsx)(un.ExternalLink,{className:"ml-1 We-3 We-3"})]},s))})})})]})}function dm({types:e}){let[t,a]=(0,Er.useState)(e&&e[0].href),r=(0,Nl.useSearchParams)(),o=(0,Nl.usePathname)(),{replace:i}=(0,Nl.useRouter)();function l(s){let m=new URLSearchParams(r);s?m.set("type",s):m.delete("type"),a(s),i(`${o}?${m.toString()}`)}return(0,We.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((s,m)=>(0,We.jsx)(T,{variant:s.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",s.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(s.href),children:s.label},m))})}var Zl=v(require("next/image"));var ls=({links:e,media:t,children:a,richText:r})=>(0,We.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,We.jsx)("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:(0,We.jsxs)("div",{className:"text-center",children:[a||r&&(0,We.jsx)(ne,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,We.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,We.jsx)("li",{children:(0,We.jsx)(mt,{...o})},i))})]})}),(0,We.jsxs)("div",{className:"min-We-[80vh] select-none",children:[t&&typeof t=="object"&&(0,We.jsx)(At,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,We.jsx)("div",{children:(0,We.jsx)(Zl.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,We.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var cs=v(require("next/image"));var mm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,We.jsx)(cs.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,We.jsx)("div",{children:(0,We.jsx)(cs.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ds=({links:e,media:t,children:a,richText:r})=>(0,We.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 We-10",children:[t&&(0,We.jsx)(mm,{media:t}),(0,We.jsx)("div",{className:"mx-0 min-We-full relative z-9",children:(0,We.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,We.jsx)(ne,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var ms=({children:e,richText:t})=>(0,We.jsx)("div",{className:"min-We-full py-10 bg-muted mt-24",children:(0,We.jsx)("div",{className:"container",children:e||t&&(0,We.jsx)(ne,{content:t,enableGutter:!1})})});var Nr=v(require("react"));var ec=v(require("next/image")),pm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,We.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,We.jsx)("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,We.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,We.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((s,m)=>{if(typeof s=="object"&&s!==null){let{title:p}=s;return(0,We.jsx)(Ke,{className:"mx-2",children:p||"Untitled category"})}return null})}),(0,We.jsx)("div",{className:"",children:(0,We.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,We.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,We.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,We.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,We.jsx)("p",{className:"text-sm",children:"Author"}),r.map((s,m)=>{let{name:p}=s,c=m===r.length-1,d=m===r.length-2;return(0,We.jsxs)(Nr.default.Fragment,{children:[p,d&&r.length>2&&(0,We.jsx)(Nr.default.Fragment,{children:", "}),d&&r.length===2&&(0,We.jsx)(Nr.default.Fragment,{children:" "}),!c&&r.length>1&&(0,We.jsx)(Nr.default.Fragment,{children:"and "})]},m)})]})}),o&&(0,We.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,We.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,We.jsx)("time",{dateTime:o,children:Ml(o)})]})]})]})}),(0,We.jsxs)("div",{className:"min-We-[50vh] max-We-[50vh] select-none",children:[(0,We.jsx)("div",{children:(0,We.jsx)(ec.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:((l=a&&a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png"})}),(0,We.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 We-full We-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var bo=require("@heroicons/react/20/solid");var tc=v(require("next/image"));function ps({title:e,breadcrumbItems:t,image:a}){return(0,We.jsxs)("section",{className:"-z-10 relative flex min-We-[250px] We-auto items-end",children:[(0,We.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,We.jsx)(tc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,We.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,We.jsx)(ha,{children:(0,We.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:We-[40px] pb-5",children:[(0,We.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:We-1/2",children:e}),t&&t.length>0&&(0,We.jsx)(us,{breadcrumbItems:t})]})})]})}var um={highImpact:ls,lowImpact:ms,mediumImpact:ds,sectionHero:ps},gm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=um[t];return a?(0,We.jsx)(a,{...e}):null};function us({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,We.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,We.jsxs)("We",{role:"list",className:"flex items-center space-x-4",children:[(0,We.jsx)("li",{children:(0,We.jsx)("div",{children:(0,We.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,We.jsx)(bo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,We.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,We.jsx)("li",{children:(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(bo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,We.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,We.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,We.jsx)(We.Fragment,{})}var Ve=require("@headlessui/react"),yo=require("@heroicons/react/24/outline");var fm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,We.jsx)("a",{href:r,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,We.jsxs)("span",{className:"relative",children:[e,(0,We.jsx)("span",{className:"absolute -bottom-1 left-1/2 We-1/2 We-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,We.jsxs)(Ve.Popover,{children:[(0,We.jsxs)(Ve.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,We.jsxs)("span",{className:"relative",children:[e,(0,We.jsx)("span",{className:"absolute bottom-0 left-1/2 We-1/2 We-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,We.jsx)(bo.ChevronDownIcon,{"aria-hidden":"true",className:"We-5 We-5 flex-none text-accent"})]}),(0,We.jsxs)(Ve.PopoverPanel,{transition:!0,className:"absolute inset-x-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,We.jsx)("div",{className:"mx-auto grid max-We-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(o=>(0,We.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,We.jsx)("div",{className:"flex We-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:o.icon&&(0,We.jsx)(ac,{icon:o.icon,size:"4x"})}),(0,We.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,We.jsx)("span",{className:"absolute inset-0"})]}),(0,We.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,We.jsx)("div",{className:"bg-gray-50",children:(0,We.jsx)("div",{className:"mx-auto max-We-7xl px-6 lg:px-8",children:(0,We.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(o=>(0,We.jsxs)("a",{href:o.href,className:"flex items-center max-We-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,We.jsx)(ac,{icon:o.icon,className:"We-5 We-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),ac=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,We.jsx)(qe,{...e,size:a});if("src"in e)return(0,We.jsx)("div",{className:n(t,"We-full max-We-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,We.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},vo=fm;var ho=["light","dark","green"];function bm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Er.useState)(!1),[i,l]=(0,Er.useState)(!1),[s,m]=(0,Er.useState)("light"),p=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[d,u]=(0,Er.useState)(`${p}.${c}`),f=g=>{ho.includes(g)?u(g==="light"?`${p}.${c}`:`${p}-${g}.${c}`):u(`${p}.${c}`)};(0,Er.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";m(g),document.documentElement.setAttribute("class",g),f(g)},[]);let y=()=>{let g=ho[(ho.indexOf(s)+1)%ho.length];m(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,We.jsxs)("header",{className:"relative isolate z-10 bg-background We-14",children:[(0,We.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,We.jsx)("div",{className:"flex lg:flex-1",children:(0,We.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:e}),(0,We.jsx)("img",{alt:e,src:d,className:"We-9 We-auto"})]})}),(0,We.jsx)("div",{className:"flex lg:hidden",children:(0,We.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,We.jsx)(yo.Bars3Icon,{"aria-hidden":"true",className:"We-6 We-6"})]})}),(0,We.jsx)(Ve.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,We.jsx)(vo,{...g},g.name))}),(0,We.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,We.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:s==="dark"?(0,We.jsx)(bo.SunIcon,{className:"We-6 We-6"}):s==="green"?(0,We.jsx)(bo.MoonIcon,{className:"We-6 We-6"}):(0,We.jsx)(bo.SunIcon,{className:"We-6 We-6"})})})]}),(0,We.jsxs)(Ve.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,We.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,We.jsxs)(Ve.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 We-full overflow-y-auto bg-white px-6 py-6 sm:max-We-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,We.jsx)("img",{alt:e,src:t,className:"We-8 We-auto"})]}),(0,We.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,We.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,We.jsx)(yo.XMarkIcon,{"aria-hidden":"true",className:"We-6 We-6"})]})]}),(0,We.jsx)("div",{className:"mt-6 flow-root",children:(0,We.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,We.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,We.jsx)(vm,{...g},g.name))})})})]})]})]})}function vm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,We.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,We.jsxs)(Ve.Disclosure,{as:"div",className:"-mx-3",children:[(0,We.jsx)(Ve.DisclosureButton,{className:"group flex We-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,We.jsx)(Ve.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,We.jsx)(Ve.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:o.name},o.name))})]})}var nc=v(require("next/image"));var gs=v(require("next/image"));function ta({logoLight:e,logoDark:t,mobile:a=!1}){return(0,We.jsxs)(ye,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,We.jsx)(gs.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,We.jsx)(gs.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var oc=require("next-themes");function Pr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Er.useState)(!1),[l,s]=(0,Er.useState)(""),m=["light","dark"],{theme:p,setTheme:c}=(0,oc.useTheme)();(0,Er.useEffect)(()=>{s(p||"dark")},[p]);let d=()=>{let u=m[(m.indexOf(l)+1)%m.length];s(u),c(u)};return(0,Er.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,We.jsx)(We.Fragment,{children:(0,We.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,We.jsx)(ha,{className:"px-0",children:(0,We.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-We-xl",children:(0,We.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-We-xl border border-t-0 border-accent",children:[(0,We.jsx)(ta,{logoDark:a,logoLight:t}),(0,We.jsx)(Ve.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r&&r.map(u=>(0,We.jsx)(vo,{...u},u.name))}),(0,We.jsx)("div",{className:"flex items-center space-x-4",children:(0,We.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:d,children:(0,We.jsxs)("div",{className:"relative",children:[(0,We.jsx)(un.Sun,{className:"absolute We-6 We-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,We.jsx)(un.Moon,{className:"absoulte We-6 We-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var fs=["light","dark"];function Rr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Er.useState)(!1),{theme:l,setTheme:s}=(0,oc.useTheme)(),[m,p]=(0,Er.useState)(!1),[c,d]=(0,Er.useState)("light");(0,Er.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Er.useEffect)(()=>{d(l||"dark")},[l]);let u=()=>{let f=fs[(fs.indexOf(c)+1)%fs.length];d(f),s(f)};return(0,We.jsx)(We.Fragment,{children:(0,We.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,We.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",m&&"hidden"),children:(0,We.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&We.logo-light]:[filter:brightness(0)_invert(1)] dark:border-We dark:border-accent",children:[(0,We.jsx)(ta,{logoDark:t,logoLight:e,mobile:!0}),(0,We.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,We.jsxs)("button",{type:"button",onClick:()=>p(!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,We.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,We.jsx)(yo.Bars3Icon,{"aria-hidden":"true",className:"We-4 We-4"})]}),(0,We.jsx)("button",{className:"fixed right-16 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",onClick:u,children:(0,We.jsxs)("div",{className:"relative",children:[(0,We.jsx)(un.Sun,{className:"absolute We-4 We-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,We.jsx)(un.Moon,{className:"absoulte We-4 We-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,We.jsxs)(Ve.Dialog,{open:m,onClose:p,className:"lg:hidden",children:[(0,We.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,We.jsxs)(Ve.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 We-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-We-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,We.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,We.jsx)(ta,{logoDark:t,logoLight:e,mobile:!0}),(0,We.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,We.jsx)(yo.XMarkIcon,{"aria-hidden":"true",className:"We-6 We-6"})]})]}),(0,We.jsx)("div",{className:"mt-6 flow-root",children:(0,We.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,We.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,We.jsx)(hm,{...f},f.name))})})})]})]})]})})}function hm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,We.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,We.jsxs)(Ve.Disclosure,{as:"div",className:"-mx-3",children:[(0,We.jsx)(Ve.DisclosureButton,{className:"group flex We-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,We.jsx)(Ve.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,We.jsx)(Ve.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function ym({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[l,s]=(0,Er.useState)(!1),[m,p]=(0,Er.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Er.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,We.jsxs)("div",{className:"relative We-screen",children:[(0,We.jsxs)("div",{className:"absolute inset-0 We-full We-screen overflow-hidden",children:[(0,We.jsxs)("video",{className:"object-cover We-full We-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,We.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,We.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!l&&!m&&(0,We.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{p(!m)},children:(0,We.jsx)(un.Menu,{className:"We-6 We-6 text-white"})}),(0,We.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,We.jsx)(Pr,{isMenuOpen:l||m,logoLight:t,logoDark:a,menuItems:r}),(0,We.jsx)(Rr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,We.jsxs)("div",{className:"absolute inset-0 We-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,We.jsx)(nc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 We-auto We-auto mt-8 hidden lg:block",m&&"lg:hidden")}),(0,We.jsxs)("div",{className:"absolute top-1/2vv We-full flex flex-col px-4 items-center justify-center",children:[(0,We.jsx)("h1",{className:"text-6xl font-bold We-auto mb-12",children:o&&o}),(0,We.jsx)("div",{className:"text-3xl mb-8 max-We-2xl",children:i&&i})]}),(0,We.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center We-full mb-8",children:(0,We.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,We.jsx)(un.ChevronDown,{size:64})})})]})]})}var lc=v(require("next/image"));var xm=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),bs=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),vs=n("We-10 We-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),hs=n("flex items-center gap-5"),Po=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Nm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:l,columnThree:s,footerBottom:m}=t;return(0,We.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,We.jsx)("div",{className:"py-16 md:py-20",children:(0,We.jsx)("div",{className:"container",children:(0,We.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,We.jsx)(ta,{logoLight:a,logoDark:r}),(0,We.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,We.jsx)("nav",{"aria-label":"social links",children:(0,We.jsx)("ul",{className:"inline-flex min-We-[50px] items-center divide-x rounded-5 bg-accent text-white",children:o.socialLinks.map((p,c)=>(0,We.jsx)("li",{children:(0,We.jsx)(ye,{"aria-label":p.href,className:xm,href:p.href,openNewTab:!0,children:(0,We.jsx)("span",{children:p.icon})})},c))})})]}),(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,We.jsx)("h3",{className:bs,children:i.title}),i.links&&i.links.length>0&&(0,We.jsx)("nav",{"aria-label":"footer links navigation",children:(0,We.jsx)("ul",{className:"grid gap-2",children:i.links.map(p=>(0,We.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,We.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,We.jsx)(ro.FaChevronRight,{})}),(0,We.jsx)(ye,{href:p.href,openNewTab:p.openNewTab,className:Po,children:p.label})]},p.label))})})]}),(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,We.jsx)("h3",{className:bs,children:l.title}),(0,We.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaPaperPlane,{})}),(0,We.jsx)("address",{className:"not-italic",children:l.location})]}),(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,We.jsx)("div",{className:"grid gap-1",children:l.mails.map((p,c)=>(0,We.jsx)("a",{href:`mailto:${p}`,className:Po,children:p},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,We.jsxs)("li",{className:hs,children:[(0,We.jsx)("span",{className:vs,children:(0,We.jsx)(ro.FaPhone,{})}),(0,We.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((p,c)=>(0,We.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Po,children:p},c))})]})]})]}),s&&(0,We.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,We.jsx)("h3",{className:bs,children:s.title}),s.blogs&&s.blogs.length>0&&(0,We.jsx)("div",{className:"grid gap-6",children:s.blogs.map((p,c)=>(0,We.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,We.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,We.jsx)(lc.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,We.jsxs)("div",{children:[(0,We.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,We.jsx)("span",{className:"text-accent",children:(0,We.jsx)(ro.FaCalendarDays,{})}),(0,We.jsx)("span",{children:Al(p.date)})]}),(0,We.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,We.jsx)(ye,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},c))})]})]})})}),(0,We.jsx)("div",{className:"flex min-We-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,We.jsx)("div",{className:"container",children:(0,We.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,We.jsx)("p",{children:m.copyrightText}),m.links&&m.links.length>0&&(0,We.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,We.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:m.links.map(p=>(0,We.jsx)("li",{children:(0,We.jsx)(ye,{"aria-label":`Go to page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Po,children:p.label})},p.label))})})]})})})]})}function wm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,We.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",o),children:[(0,We.jsx)(Pr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,We.jsx)(Rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Cm({children:e,...t}){return(0,We.jsx)(oc.ThemeProvider,{...t,children:e})}var wa=require("sonner");function ys({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Er.useState)([]),i=(0,Nl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},s=c=>{o(d=>d.includes(c)?d.filter(u=>u!==c):[...d,c])},m=async()=>{let c=await t(r);c.success?(wa.toast.success(c.message),i.refresh()):wa.toast.error(`Error: ${c.message}`),o([])},p=async()=>{let c=await a(r);c.success?(wa.toast.success(c.message),i.refresh()):wa.toast.error(`Error: ${c.message}`),o([])};return(0,We.jsxs)("div",{className:"space-y-4",children:[(0,We.jsxs)("div",{className:"flex justify-between items-center",children:[(0,We.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,We.jsxs)("div",{className:"space-x-2",children:[(0,We.jsx)(T,{onClick:m,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,We.jsx)(T,{onClick:p,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,We.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,We.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(st,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,We.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,We.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(st,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>s(c.id),className:"border-accent"}),(0,We.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,We.jsxs)(Rt,{className:"We-10 We-10",children:[(0,We.jsx)(St,{src:c.userImage,alt:c.userName}),(0,We.jsx)(kt,{children:c.userName.split(" ").map(d=>d[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-3",children:(0,We.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,We.jsx)(Ke,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,We.jsx)(wa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var xs=require("date-fns"),Pm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,We.jsx)("div",{className:"flex space-x-2",children:e.map((o,i)=>(0,We.jsx)(T,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function ws({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Er.useState)(new Date),[o,i]=(0,Er.useState)(new Date),[l,s]=(0,Er.useState)("Full Day"),[m,p]=(0,Er.useState)(!1),c=(0,Nl.useRouter)();(0,Er.useEffect)(()=>{p(a!==o||!a||!o),m&&s("Full Day")},[a,o]);let d=f=>{s(f)};return(0,We.jsxs)("div",{className:"max-We-2xl",children:[(0,We.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,We.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,We.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){wa.toast.error("Please select both start and end dates");return}let y=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(y=.5),y>e){wa.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",o.toISOString()),g.append("leaveType",l),g.append("duration",y.toString());let x=await(t||Rm)(g);x.success?(wa.toast.success(x.message),r(void 0),i(void 0),s("Full Day"),c.refresh()):wa.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,We.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(Y,{htmlFor:"startDate",children:"Start Date"}),(0,We.jsxs)(dr,{children:[(0,We.jsx)(mr,{asChild:!0,children:(0,We.jsxs)(T,{variant:"outline",className:n("We-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,We.jsx)(un.CalendarIcon,{className:"mr-2 We-4 We-4"}),a?(0,xs.format)(a,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(Ha,{className:"We-auto p-0",align:"start",children:(0,We.jsx)(gr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(Y,{htmlFor:"endDate",children:"End Date"}),(0,We.jsxs)(dr,{children:[(0,We.jsx)(mr,{asChild:!0,children:(0,We.jsxs)(T,{variant:"outline",className:n("We-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,We.jsx)(un.CalendarIcon,{className:"mr-2 We-4 We-4"}),o?(0,xs.format)(o,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(Ha,{className:"We-auto p-0",align:"start",children:(0,We.jsx)(gr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(Y,{children:"Leave Type"}),(0,We.jsx)(Pm,{options:["Full Day","Morning","Afternoon"],value:l,onChange:d,disabled:[!1,m,m]})]}),(0,We.jsx)(T,{type:"submit",className:"We-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,We.jsx)(wa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Rm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function gc(...e){return e.filter(Boolean).join(" ")}function Cs({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{t(new Date)};return(0,We.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,We.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,We.jsxs)("div",{className:"sm:flex-auto",children:[(0,We.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,We.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,We.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,We.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,We.jsx)(un.ChevronLeft,{className:"We-5 We-5","aria-hidden":"true"})]}),(0,We.jsx)(T,{variant:"outline",onClick:s,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,We.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Next month"}),(0,We.jsx)(un.ChevronRight,{className:"We-5 We-5","aria-hidden":"true"})]})]})]}),(0,We.jsx)("div",{className:"mt-8 flow-root",children:(0,We.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,We.jsx)("div",{className:"max-We-[60vh] overflow-y-auto",children:(0,We.jsxs)("table",{className:"min-We-full border-separate border-spacing-0",children:[(0,We.jsx)("thead",{className:"sticky top-0 z-10 bg-white",children:(0,We.jsxs)("tr",{children:[(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((m,p)=>(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We 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",children:p+1},p))]})}),(0,We.jsx)("tbody",{children:r.map((m,p)=>(0,We.jsxs)("tr",{children:[(0,We.jsx)("td",{className:gc(p!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsxs)(Rt,{className:"We-11 We-11",children:[(0,We.jsx)(St,{src:m.image,alt:m.name}),(0,We.jsx)(kt,{children:m.name.split(" ").map(c=>c[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-4",children:(0,We.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(o)].map((c,d)=>{let u=new Date(e.getFullYear(),e.getMonth(),d+1),f=a.find(y=>y.userId===m.id&&new Date(y.startDate)<=u&&new Date(y.endDate)>=u);return(0,We.jsx)("td",{className:gc(p!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,We.jsx)("div",{className:`We-6 We-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${m.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,We.jsx)("div",{className:`We-3 We-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${d}`)})]},m.id))})]})})})})]})}function Ps({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Er.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,d)=>{let u=new Date(e.getFullYear(),e.getMonth(),d-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=u&&new Date(f.endDate)>=u)}}),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,We.jsxs)("div",{className:"lg:flex lg:We-full lg:flex-col",children:[(0,We.jsxs)("header",{className:"flex items-center justify-between border-We border-gray-200 px-6 py-4 lg:flex-none",children:[(0,We.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,We.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,We.jsx)("div",{className:"flex items-center",children:(0,We.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,We.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,We.jsx)(un.ChevronLeft,{className:"We-5 We-5","aria-hidden":"true"})]}),(0,We.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,We.jsxs)(T,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Next month"}),(0,We.jsx)(un.ChevronRight,{className:"We-5 We-5","aria-hidden":"true"})]})]})})]}),(0,We.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,We.jsxs)("div",{className:"grid grid-cols-7 gap-px border-We border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,We.jsxs)("div",{className:"bg-white py-2",children:["M",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"We"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["We",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["We",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"We"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,We.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,We.jsx)("div",{className:"hidden We-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(c=>(0,We.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,We.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex We-6 We-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,We.jsx)("We",{className:"mt-2 space-y-1",children:c.holidays.map(d=>(0,We.jsx)("li",{children:(0,We.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${d.status==="approved"?"border-green-500":"border-gray-500"} border`,children:d.userName})},d.id))})]},c.date.toISOString()))}),(0,We.jsx)("div",{className:"isolate grid We-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,We.jsxs)("button",{type:"button",className:n(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex We-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,We.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===r&&c.isToday&&"flex We-6 We-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex We-6 We-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,We.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,We.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(d=>(0,We.jsx)("span",{className:`mx-0.5 mb-1 We-1.5 We-1.5 rounded-full ${d.status==="approved"?"bg-green-500":"bg-gray-500"}`},d.id))})]},c.date.toISOString()))})]})]})]})}var aa=require("lucide-react");function bc(...e){return e.filter(Boolean).join(" ")}function Sm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:l,rejectLeave:s}){let[m,p]=(0,Er.useState)("Calendar View"),c=(0,Nl.useRouter)(),d=!1,u=(0,xs.parseISO)(a),f=async g=>{let x=(0,xs.format)(g,"dd-MM-yyyy"),D=new URL(window.location.href);return D.searchParams.set("date",x),c.push(D.toString()),{success:!0}};if(d)return(0,We.jsx)("div",{className:"flex justify-center items-center We-screen",children:(0,We.jsx)("div",{className:"animate-spin rounded-full We-32 We-32 border-t-2 border-We-2 border-gray-900"})});let y=[{name:"Grid View",icon:aa.Grid,current:m==="Grid View"},{name:"Calendar View",icon:aa.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:aa.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:aa.CheckSquare,current:m==="Approve Leave"}];return(0,We.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,We.jsxs)("div",{className:"mb-8",children:[(0,We.jsxs)("div",{className:"sm:hidden",children:[(0,We.jsx)("select",{value:m,onChange:g=>p(g.target.value),className:"block We-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(g=>(0,We.jsx)("option",{children:g.name},g.name))}),(0,We.jsx)(un.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 We-5 We-5 text-gray-400","aria-hidden":"true"})]}),(0,We.jsx)("div",{className:"hidden sm:block",children:(0,We.jsx)("div",{className:"border-We border-gray-200",children:(0,We.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(g=>(0,We.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(g.name)},className:bc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-We-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,We.jsx)(g.icon,{className:bc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 We-5 We-5"),"aria-hidden":"true"}),(0,We.jsx)("span",{children:g.name})]},g.name))})})})]}),m==="Grid View"&&(0,We.jsx)(Cs,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),m==="Calendar View"&&(0,We.jsx)(Ps,{currentDate:u,setCurrentDate:f,holidays:e}),m==="Request Leave"&&(0,We.jsx)(ws,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,We.jsx)(ys,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>s?s(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Rs({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:i,onAddComment:l}){var S,X,Ze;let[s,m]=(0,Er.useState)({...e,value:e.value||0}),[p,c]=(0,Er.useState)(""),[d,u]=(0,Er.useState)(!1),[f,y]=(0,Er.useState)(null);(0,Er.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(s))},[e,s]);let g=()=>{i(s),u(!1),y(null)},x=(N,Q)=>{m(et=>({...et,[N]:Q}))},D=N=>{let Q=s.categories.includes(N)?s.categories.filter(et=>et!==N):[...s.categories,N];x("categories",Q)},z=()=>{p.trim()&&(l({id:Date.now().toString(),text:p,timestamp:new Date().toISOString()}),m(N=>({...N,comments:[...N.comments,{id:"0",text:p,timestamp:new Date().toISOString()}]})),c(""))},ee=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},He=(N,Q,et)=>{let ka=f===N;return(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:Q}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[et,ka?(0,We.jsx)(Pe,{value:s[N],onChange:j=>x(N,j.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,We.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>y(N),children:s[N]}),!ka&&(0,We.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>y(N),children:(0,We.jsx)(un.Edit2Icon,{className:"We-4 We-4"})})]})]})};return(0,We.jsx)(Ye,{open:!0,children:(0,We.jsxs)(Oe,{className:"max-We-3xl max-We-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,We.jsxs)(ot,{className:"flex flex-row items-center justify-between",children:[(0,We.jsx)(it,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,We.jsxs)("div",{className:"flex space-x-2",children:[(0,We.jsx)(T,{variant:"outline",onClick:o,children:"Close"}),(0,We.jsxs)(T,{onClick:g,disabled:!d,children:[(0,We.jsx)(un.SaveIcon,{className:"We-4 We-4 mr-2"}),"Save"]})]})]}),(0,We.jsxs)(Xt,{className:"flex-grow pr-4",children:[(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,We.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,We.jsx)(Pe,{type:"number",value:s.value,onChange:N=>x("value",Number(N.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,We.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(S=s.value)==null?void 0:S.toLocaleString()]})}),(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,We.jsxs)(da,{value:((Ze=(X=s==null?void 0:s.assignee)==null?void 0:X.id)==null?void 0:Ze.toString())||"",onValueChange:N=>x("assignee",N),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select assignee"})}),(0,We.jsx)(qt,{children:t&&t.map(N=>{var Q;return(0,We.jsx)(Jt,{value:((Q=N==null?void 0:N.id)==null?void 0:Q.toString())||"",children:N.name},N.id)})})]}):(0,We.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,We.jsx)(un.UserIcon,{className:"We-4 We-4 text-gray-400"}),(0,We.jsx)("span",{children:s.assignee.name})]})]}),(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,We.jsx)(Pe,{type:"date",value:s.closureDate.split("T")[0],onChange:N=>x("closureDate",N.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,We.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,We.jsx)(un.CalendarIcon,{className:"We-4 We-4 text-gray-400"}),(0,We.jsx)("span",{children:new Date(s.closureDate).toLocaleDateString("We-GB")})]})]})]}),(0,We.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,We.jsx)(Qt,{value:s.description,onChange:N=>x("description",N.target.value),onBlur:()=>y(null),className:"min-We-[100px]",autoFocus:!0}):(0,We.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:s.description})]})}),(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 We-2 gap-4",children:[(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,We.jsxs)(da,{value:s.status,onValueChange:N=>{x("status",N),y(null)},children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select status"})}),(0,We.jsx)(qt,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,We.jsx)(Jt,{value:N,children:N},N))})]}):(0,We.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:s.status})]}),(0,We.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,We.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(N=>(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsx)(st,{id:N.id,checked:s.categories.includes(N.id),onCheckedChange:()=>D(N.id)}),(0,We.jsx)("label",{htmlFor:N.id,className:`text-sm font-medium ${ee(N.type)} px-2 py-1 rounded`,children:N.name})]},N.id))}):(0,We.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:s.categories.map(N=>{let Q=r.find(et=>et.id===N);return Q?(0,We.jsx)(Ke,{variant:"secondary",className:ee(Q.type),children:Q.name},Q.id):null})})]})]}),(0,We.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 We-4 gap-4",children:[(0,We.jsxs)("div",{className:"grid gap-2",children:[(0,We.jsx)(Y,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,We.jsx)(Xt,{className:"We-[200px] overflow-y-auto",children:(0,We.jsx)("div",{className:"space-y-2",children:s.comments.slice().sort((N,Q)=>new Date(Q.timestamp).getTime()-new Date(N.timestamp).getTime()).map(N=>{var Q;return(0,We.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,We.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,We.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(Q=N==null?void 0:N.author)==null?void 0:Q.name," - ",new Date(N.timestamp).toLocaleString()]})]},N.id)})})}),(0,We.jsxs)("div",{className:"flex mt-2",children:[(0,We.jsx)(Pe,{value:p,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,We.jsxs)(T,{onClick:z,className:"ml-2",children:[(0,We.jsx)(un.PlusIcon,{className:"We-4 We-4 mr-2"}),"Add"]})]})]}),(0,We.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt).toLocaleString()]})]})]})]})})}function Ss({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,We.jsxs)(ge,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,We.jsxs)(Ie,{className:"pb-2",children:[(0,We.jsx)("div",{className:"flex justify-between items-center",children:(0,We.jsx)(Ae,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,We.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,We.jsxs)(he,{children:[(0,We.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,We.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,We.jsx)(un.UserIcon,{className:"We-4 We-4 mr-1 text-xs"}),(0,We.jsx)("span",{children:e.assignee.name})]}),(0,We.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,We.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,We.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,We.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,We.jsx)(un.CalendarIcon,{className:"We-3 We-3 mr-1"}),(0,We.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,We.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,We.jsx)(Ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Do=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function ks({onSubmit:e}){var o;let[t,a]=(0,Er.useState)({name:"",intro:"",active:!0});return(0,$e.jsxs)("form",{onSubmit:i=>{i.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,$e.jsxs)("div",{className:"space-y-2",children:[(0,$e.jsx)(Y,{htmlFor:"customerName",children:"Customer Name"}),(0,$e.jsx)(Pe,{id:"customerName",value:t.name,onChange:i=>a({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,$e.jsxs)("div",{className:"space-y-2",children:[(0,$e.jsx)(Y,{htmlFor:"customerIntro",children:"Intro"}),(0,$e.jsx)(Qt,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:i=>a({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,$e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$e.jsx)(st,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>a({...t,active:i})}),(0,$e.jsx)(Y,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,$e.jsx)(T,{type:"submit",className:"We-full",children:"Add Customer"})]})}function Ts({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:i,onClose:l}){var D,z,ee,He;let[s,m]=(0,Er.useState)(o||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,c]=(0,Er.useState)(!1),[d,u]=(0,Er.useState)({});(0,Er.useEffect)(()=>{o&&m(o)},[o]);let f=()=>{let S={};return s.customer||(S.customer="Customer is required"),s.value||(S.value="Value is required"),s.assignee||(S.assignee="Assignee is required"),s.closureDate||(S.closureDate="Closure Date is required"),u(S),Object.keys(S).length===0},y=S=>{S.preventDefault(),f()&&(r({...s}),m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),u({}),l==null||l())},g=S=>{m(X=>{var Ze;return{...X,categories:(Ze=X.categories)!=null&&Ze.includes(S)?X.categories.filter(N=>N!==S):[...X.categories||[],S]}})},x=S=>{e.push(S),m({...s,customer:S}),c(!1),i(S)};return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,We.jsx)(Xt,{className:"We-[60vh] pr-4",children:(0,We.jsxs)("div",{className:"space-y-6 px-4",children:[(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"customer",children:"Customer"}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsxs)(da,{value:(z=(D=s.customer)==null?void 0:D.id)==null?void 0:z.toString(),onValueChange:S=>m({...s,customer:{id:Number(S)}}),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select customer"})}),(0,We.jsx)(qt,{children:e.map(S=>{var X;return(0,We.jsx)(Jt,{value:((X=S.id)==null?void 0:X.toString())||"",children:S.name},S.id)})})]}),(0,We.jsx)(T,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,We.jsx)(un.PlusIcon,{className:"We-5 We-5"})})]}),d.customerId&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.customerId})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"value",children:"Value"}),(0,We.jsx)(Pe,{id:"value",type:"number",value:s.value||"",onChange:S=>m({...s,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),d.value&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.value})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"assignee",children:"Assignee"}),(0,We.jsxs)(da,{value:(He=(ee=s.assignee)==null?void 0:ee.id)==null?void 0:He.toString(),onValueChange:S=>m({...s,assignee:{id:Number(S)}}),children:[(0,We.jsx)(Kt,{children:(0,We.jsx)(ma,{placeholder:"Select assignee"})}),(0,We.jsx)(qt,{children:t&&t.map(S=>{var X;return(0,We.jsx)(Jt,{value:((X=S.id)==null?void 0:X.toString())||"",children:S.name},S.id)})})]}),d.assignee&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.assignee})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"description",children:"Description"}),(0,We.jsx)(Qt,{id:"description",value:s.description||"",onChange:S=>m({...s,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{children:"Categories"}),(0,We.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(S=>(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,We.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(X=>X.type===S).map(X=>{var Ze;return(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsx)(st,{id:X.id,checked:(Ze=s.categories)==null?void 0:Ze.includes(X.id),onCheckedChange:()=>g(X.id)}),(0,We.jsx)("label",{htmlFor:X.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:X.name})]},X.id)})})]},S))})]}),(0,We.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,We.jsx)(Y,{htmlFor:"closureDate",children:"Closure Date"}),(0,We.jsx)(Pe,{id:"closureDate",type:"date",value:s.closureDate,onChange:S=>m({...s,closureDate:S.target.value})}),d.closureDate&&(0,We.jsx)("p",{className:"text-red-500 text-sm",children:d.closureDate})]})]})}),(0,We.jsx)(T,{type:"submit",className:"We-full",children:o?"Update Deal":"Add Deal"})]}),(0,We.jsx)(Ye,{open:p,onOpenChange:c,children:(0,We.jsxs)(Oe,{children:[(0,We.jsx)(ot,{children:(0,We.jsx)(it,{children:"Add New Customer"})}),(0,We.jsx)(ks,{onSubmit:x})]})})]})}function Ds({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:i,calculateColumnValue:l,calculateWeightedValue:s,addNewDeal:m,onAddCustomer:p}){let[c,d]=(0,Er.useState)(!1);return(0,We.jsxs)("div",{className:"flex flex-col We-80",children:[(0,We.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),m&&(0,We.jsxs)(Ye,{open:c,onOpenChange:d,children:[(0,We.jsx)(Xr,{asChild:!0,children:(0,We.jsxs)(T,{className:"mb-4 We-full bg-green-500 hover:bg-green-600 text-white",children:[(0,We.jsx)(un.PlusCircle,{className:"mr-2 We-4 We-4"}),"Add New Deal"]})}),(0,We.jsxs)(Oe,{children:[(0,We.jsx)(ot,{children:(0,We.jsx)(it,{children:"Add New Deal"})}),(0,We.jsx)(Ts,{customers:r,users:a,categories:o,onSubmit:m,onAddCustomer:p,onClose:()=>d(!1)})]})]}),(0,We.jsx)(Do.Droppable,{droppableId:e,isDropDisabled:!0,children:u=>(0,We.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-We-[200px] shadow-inner",children:[t.map((f,y)=>(0,We.jsx)(Do.Draggable,{draggableId:f.id.toString(),index:y,children:g=>(0,We.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,We.jsx)(Ss,{deal:f,customer:r.find(x=>x.id===f.customer.id),categories:o,onClick:()=>i(f)})})},f.id.toString())),u.placeholder]})}),(0,We.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,We.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,We.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,We.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,We.jsxs)("span",{className:"text-blue-600",children:["\xA3",s(t,e).toLocaleString()]})]})]})]})}var km=["Cold","Qualified","Proposal","SoW","Won","Lost"];function Tm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){let[i,l]=(0,Er.useState)(null),s=d=>e.deals.filter(u=>u.status===d),m=d=>d.reduce((u,f)=>u+(f.value||0),0),p=(d,u)=>{let f={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return d.reduce((y,g)=>y+(g.value||0)*f[u],0)},c=(0,Er.useCallback)(d=>{let{source:u,destination:f}=d;if(!f||u.droppableId===f.droppableId&&u.index===f.index)return;let y=u.droppableId,g=f.droppableId;console.log("Moving from ",y,"to",g);let x=[...e.deals],[D]=x.splice(u.index,1);D.status=g,x.splice(f.index,0,D),a(D)},[a]);return(0,We.jsx)(Do.DragDropContext,{onDragEnd:c,children:(0,We.jsxs)("div",{className:"p-4",children:[(0,We.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:km.filter(d=>d!=="Won"&&d!=="Lost").map(d=>{let u=s(d);return(0,We.jsx)(Ds,{status:d,deals:u,customers:e.customers,users:e.users,categories:e.categories,onDealClick:l,calculateColumnValue:m,calculateWeightedValue:p,addNewDeal:d==="Cold"?t:void 0,onAddCustomer:o},d)})}),i&&(0,We.jsx)(Rs,{deal:i,users:e.users,customer:e.customers.find(d=>d.id===i.customer.id),categories:e.categories,onClose:()=>l(null),onSave:a,onAddComment:d=>r(i.id.toString(),d)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,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,ThemeProvider,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 kc}from"../chunk-32GGKWGB.mjs";import{a as ic}from"../chunk-AUBKJ4XO.mjs";import{a as jc}from"../chunk-6YV7RK6Q.mjs";import{a as hc}from"../chunk-UD7JYMRU.mjs";import"../chunk-V7LBBZKS.mjs";import{a as cc}from"../chunk-7DINW2AE.mjs";import{a as bc}from"../chunk-B4HRNOHQ.mjs";import{a as dc}from"../chunk-L2CGDHVO.mjs";import{a as fc,b as gc}from"../chunk-WKMUGV4J.mjs";import{a as Hb}from"../chunk-CSWXKGJE.mjs";import{a as Lc}from"../chunk-3ZRLTNWG.mjs";import{a as Ic}from"../chunk-QNKQEXU3.mjs";import{a as Hc}from"../chunk-DYIUZ4V5.mjs";import{a as Kc}from"../chunk-DE2DIWCC.mjs";import{a as Jc}from"../chunk-MP3J7UPZ.mjs";import{a as Gc}from"../chunk-X5KZKO2V.mjs";import{a as Cb}from"../chunk-FGWIT6CV.mjs";import{a as zb}from"../chunk-ZWKWU7U4.mjs";import{a as Db}from"../chunk-YCX5N23N.mjs";import{a as Rc}from"../chunk-L3PITDTZ.mjs";import{a as Qc}from"../chunk-YDCEDTRV.mjs";import{a as Pc}from"../chunk-ZXPDKKGX.mjs";import{a as Oc}from"../chunk-3FW5YDNM.mjs";import{a as Nc}from"../chunk-QH3BNFVD.mjs";import{a as Mc}from"../chunk-5PW2VQWX.mjs";import{a as Gb}from"../chunk-66ZAIUUI.mjs";import{a as Fb}from"../chunk-TQCGX4Y6.mjs";import"../chunk-SV7NMNDI.mjs";import{a as rc}from"../chunk-6ZNVXWZR.mjs";import{a as pc}from"../chunk-WZLEEZ5C.mjs";import{a as nc}from"../chunk-JODGODRI.mjs";import"../chunk-WC776HFE.mjs";import{a as wc,b as xc,c as yc}from"../chunk-5T46XIHN.mjs";import{a as oc}from"../chunk-MGZMAVEP.mjs";import{a as sc}from"../chunk-DQZTKWPG.mjs";import{a as uc}from"../chunk-ETINBEVD.mjs";import{a as tc}from"../chunk-QMTTXYES.mjs";import{a as mc}from"../chunk-EMZQNDA7.mjs";import{a as Lb}from"../chunk-53QLSQCO.mjs";import{a as Mb}from"../chunk-6HFYLEVF.mjs";import{a as ac}from"../chunk-HCN2JMCH.mjs";import{a as $b}from"../chunk-23EQTK7B.mjs";import{a as Nb}from"../chunk-EPTHSTUM.mjs";import{a as Ib}from"../chunk-UZ2XYB7D.mjs";import"../chunk-KPIWBWE2.mjs";import{a as Zb}from"../chunk-JCH2CCQ7.mjs";import"../chunk-2LJVMEWU.mjs";import"../chunk-6P7CY367.mjs";import{a as _b}from"../chunk-CNXWMJKB.mjs";import{a as Yb}from"../chunk-V2PS7NPM.mjs";import{a as lc}from"../chunk-IE2A7UT3.mjs";import{a as Ab}from"../chunk-VZXLXNVY.mjs";import{a as Bb}from"../chunk-Y2KKUQDU.mjs";import{a as Jb}from"../chunk-H7D3PZKE.mjs";import{a as Kb}from"../chunk-IQPZEEYJ.mjs";import{a as qc}from"../chunk-TXXFXCXB.mjs";import{a as vc}from"../chunk-CWNEDSLD.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-XGQLOPHW.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 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 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 Ob,b as Qb,c as Wb,e as Xb}from"../chunk-CZ5I5OTN.mjs";import{a as Pb}from"../chunk-NWW7KWJK.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as Ub}from"../chunk-PVRWMAHW.mjs";import{a as Vb}from"../chunk-Y6CZVVJF.mjs";import{a as Tb}from"../chunk-NGK3IDFP.mjs";import"../chunk-TFWGOEV7.mjs";import"../chunk-YNDKGRL6.mjs";import{a as Sb}from"../chunk-763KMQIQ.mjs";import"../chunk-J2VQUYES.mjs";import{a as Rb}from"../chunk-SJWGFZJ6.mjs";import"../chunk-44TDI42O.mjs";import"../chunk-BOPZHZ27.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-D43ENVPX.mjs";import{a as O}from"../chunk-BSQVKZCW.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 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 gb,b as hb,c as ib}from"../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../chunk-Q6SEVCRG.mjs";import{a as M,b as N}from"../chunk-GLEWUUGS.mjs";import"../chunk-D76EO57Z.mjs";import{a as Dc}from"../chunk-GOMLTG5W.mjs";import"../chunk-ZDPQXVTF.mjs";import{a as zc}from"../chunk-DRJBYVJB.mjs";import"../chunk-CS77R54Z.mjs";import{a as Ec}from"../chunk-23L5ZJ2U.mjs";import{a as Fc}from"../chunk-DESYC5BB.mjs";import{a as Cc}from"../chunk-XDP6BKTK.mjs";import{a as Bc}from"../chunk-3TIFSACL.mjs";import"../chunk-SV3TTIPR.mjs";import{a as Ac}from"../chunk-HAYRX2WO.mjs";import{a as Eb}from"../chunk-WISCWNL2.mjs";import"../chunk-YNNW2C2U.mjs";import{a as yb}from"../chunk-SFLOMJ2U.mjs";import{a as ec}from"../chunk-UESKYRNK.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-6K2R3OAD.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,Hc as ApproveLeave,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,Ob as BannerBlock,gc as BlogCard,fc as BlogList,Ac as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,yc as Breadcrumbs,N as Button,Pb as CMSLink,Rc as CRMKanbanBoard,xb as Calendar,Kc as CalendarView,Qb as CallToActionBlock,$b as Card,qc as Categories,lb as Checkbox,Sb as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,hc 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,ec as Container,Yb as ContentBlock,Rb as CopyButton,Eb as CustomLink,Ab as CustomerCard,Nc as DealCard,Mc 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,yb as DynamicIcon,Bb as EventCard,zb as FeatureCard,Hb as FeatureGrid,Wb as FeaturesBlock,rc as Filter,Ec as Footer,Fc as Header,Bc as HeaderDesktop,Cc as HeaderMobile,Zb as HeadingImage,sc as HighImpactHero,Jc as HolidayGrid,Lc as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Db as Image,Vb as ImageBlock,Jb as InfoTile,z as Input,Ib as Insight,Qc as KanbanColumn,Ia as Label,ic as Logo,uc as LowImpactHero,Kb as MOTD,Tb as Media,Ub as MediaBlock,tc as MediumImpactHero,Oc as NewCustomerForm,Pc as NewDealForm,cc as NewsGrid,Lb as OrgChart,jc as PageRange,pc as Pagination,kc as PayloadPagination,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,vc as PostHero,Gb as PricingCard,Cb as ProjectCard,nc as ProjectTeam,Mb as ProposalSummary,oc as RelatedContent,ac as RelatedPosts,_b as RenderBlocks,xc as RenderHero,Ic as RequestLeave,Xb as RichText,Ca as ScrollArea,Da as ScrollBar,wc 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,Fb 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,lc 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,mc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,zc as SimpleHeader,O as Skeleton,bc as SlideShow,dc as TextAndImages,wb as Textarea,Gc as ThemeProvider,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,Dc as VideoHeader,Nb as WhyUs,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
1
+ import{a as ic}from"../chunk-AUBKJ4XO.mjs";import{a as jc}from"../chunk-6YV7RK6Q.mjs";import{a as kc}from"../chunk-32GGKWGB.mjs";import{a as hc}from"../chunk-MANZDSTF.mjs";import"../chunk-V7LBBZKS.mjs";import{a as dc}from"../chunk-L2CGDHVO.mjs";import{a as Hb}from"../chunk-CSWXKGJE.mjs";import{a as cc}from"../chunk-7DINW2AE.mjs";import{a as bc}from"../chunk-PV5S3GA7.mjs";import{a as fc,b as gc}from"../chunk-AF5ISZTG.mjs";import{a as Lc}from"../chunk-ZSVSTJJR.mjs";import{a as Kc}from"../chunk-DE2DIWCC.mjs";import{a as Jc}from"../chunk-X5PEHTIN.mjs";import{a as Ic}from"../chunk-QNKQEXU3.mjs";import{a as Hc}from"../chunk-44RAJFV6.mjs";import{a as Gc}from"../chunk-X5KZKO2V.mjs";import{a as Cb}from"../chunk-FGWIT6CV.mjs";import{a as zb}from"../chunk-ZWKWU7U4.mjs";import{a as Db}from"../chunk-YCX5N23N.mjs";import{a as Rc}from"../chunk-IEQA6MIO.mjs";import{a as Qc}from"../chunk-4YNA7RS7.mjs";import{a as Pc}from"../chunk-K3ZHWH6Y.mjs";import{a as Oc}from"../chunk-3FW5YDNM.mjs";import{a as Nc}from"../chunk-QH3BNFVD.mjs";import{a as Mc}from"../chunk-J4SEDIHB.mjs";import{a as Gb}from"../chunk-66ZAIUUI.mjs";import{a as Fb}from"../chunk-TQCGX4Y6.mjs";import"../chunk-SV7NMNDI.mjs";import"../chunk-R7P4VVM3.mjs";import{a as nc}from"../chunk-JODGODRI.mjs";import{a as rc}from"../chunk-6ZNVXWZR.mjs";import{a as pc}from"../chunk-WZLEEZ5C.mjs";import{a as wc,b as xc,c as yc}from"../chunk-CDYA6NPD.mjs";import{a as oc}from"../chunk-MGZMAVEP.mjs";import{a as sc}from"../chunk-Q5EQOIL7.mjs";import{a as uc}from"../chunk-7322R3ID.mjs";import{a as tc}from"../chunk-YQZH5MJU.mjs";import{a as qc}from"../chunk-TXXFXCXB.mjs";import{a as vc}from"../chunk-CWNEDSLD.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-XGQLOPHW.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 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 wb}from"../chunk-A5EYIB3V.mjs";import{a as Ia}from"../chunk-DWRQHV42.mjs";import{a as lb}from"../chunk-Y5ZFXDW5.mjs";import{a as mc}from"../chunk-IMAQJ7N3.mjs";import{a,b,c,d,e,f,g}from"../chunk-AWFQEK7A.mjs";import{a as Mb}from"../chunk-6HFYLEVF.mjs";import{a as ac}from"../chunk-HVA2GFDG.mjs";import{a as $b}from"../chunk-423OEU3K.mjs";import{a as Nb}from"../chunk-EPTHSTUM.mjs";import{a as Ib}from"../chunk-UZ2XYB7D.mjs";import{a as Lb}from"../chunk-53QLSQCO.mjs";import{a as Zb}from"../chunk-JCH2CCQ7.mjs";import"../chunk-2LJVMEWU.mjs";import"../chunk-KPIWBWE2.mjs";import"../chunk-6P7CY367.mjs";import{a as _b}from"../chunk-74TGU5CZ.mjs";import{a as Yb}from"../chunk-Q77U5BXI.mjs";import{a as Ob,b as Qb,c as Wb,e as Xb}from"../chunk-QIGWPB3D.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as Pb}from"../chunk-NWW7KWJK.mjs";import{a as Ub}from"../chunk-UK4IPFAO.mjs";import{a as Vb}from"../chunk-HUN2X4VH.mjs";import{a as Tb}from"../chunk-ICTOXY7D.mjs";import"../chunk-YNDKGRL6.mjs";import"../chunk-TFWGOEV7.mjs";import{a as Sb}from"../chunk-763KMQIQ.mjs";import"../chunk-J2VQUYES.mjs";import{a as Rb}from"../chunk-SJWGFZJ6.mjs";import"../chunk-44TDI42O.mjs";import"../chunk-BOPZHZ27.mjs";import{a as lc}from"../chunk-LBKMUSVR.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-IPHHUHS3.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-GLEWUUGS.mjs";import{a as Ab}from"../chunk-VZXLXNVY.mjs";import{a as Bb}from"../chunk-Y2KKUQDU.mjs";import{a as gb,b as hb,c as ib}from"../chunk-SBM5HULF.mjs";import{a as Jb}from"../chunk-H7D3PZKE.mjs";import{a as Kb}from"../chunk-IQPZEEYJ.mjs";import{a as jb,b as kb}from"../chunk-Q6SEVCRG.mjs";import"../chunk-D76EO57Z.mjs";import{a as Dc}from"../chunk-GOMLTG5W.mjs";import"../chunk-ZDPQXVTF.mjs";import{a as zc}from"../chunk-DRJBYVJB.mjs";import{a as Ec}from"../chunk-23L5ZJ2U.mjs";import{a as Fc}from"../chunk-DESYC5BB.mjs";import{a as Cc}from"../chunk-XDP6BKTK.mjs";import{a as Bc}from"../chunk-3TIFSACL.mjs";import"../chunk-SV3TTIPR.mjs";import{a as Ac}from"../chunk-HAYRX2WO.mjs";import"../chunk-CS77R54Z.mjs";import{a as Eb}from"../chunk-WISCWNL2.mjs";import"../chunk-YNNW2C2U.mjs";import{a as yb}from"../chunk-SFLOMJ2U.mjs";import{a as ec}from"../chunk-UESKYRNK.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-6K2R3OAD.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,Hc as ApproveLeave,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,Ob as BannerBlock,gc as BlogCard,fc as BlogList,Ac as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,yc as Breadcrumbs,N as Button,Pb as CMSLink,Rc as CRMKanbanBoard,xb as Calendar,Kc as CalendarView,Qb as CallToActionBlock,$b as Card,qc as Categories,lb as Checkbox,Sb as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,hc 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,ec as Container,Yb as ContentBlock,Rb as CopyButton,Eb as CustomLink,Ab as CustomerCard,Nc as DealCard,Mc 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,yb as DynamicIcon,Bb as EventCard,zb as FeatureCard,Hb as FeatureGrid,Wb as FeaturesBlock,rc as Filter,Ec as Footer,Fc as Header,Bc as HeaderDesktop,Cc as HeaderMobile,Zb as HeadingImage,sc as HighImpactHero,Jc as HolidayGrid,Lc as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Db as Image,Vb as ImageBlock,Jb as InfoTile,z as Input,Ib as Insight,Qc as KanbanColumn,Ia as Label,ic as Logo,uc as LowImpactHero,Kb as MOTD,Tb as Media,Ub as MediaBlock,tc as MediumImpactHero,Oc as NewCustomerForm,Pc as NewDealForm,cc as NewsGrid,Lb as OrgChart,jc as PageRange,pc as Pagination,kc as PayloadPagination,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,vc as PostHero,Gb as PricingCard,Cb as ProjectCard,nc as ProjectTeam,Mb as ProposalSummary,oc as RelatedContent,ac as RelatedPosts,_b as RenderBlocks,xc as RenderHero,Ic as RequestLeave,Xb as RichText,Ca as ScrollArea,Da as ScrollBar,wc 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,Fb 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,lc 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,mc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,zc as SimpleHeader,O as Skeleton,bc as SlideShow,dc as TextAndImages,wb as Textarea,Gc as ThemeProvider,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,Dc as VideoHeader,Nb 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-XGQLOPHW.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 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 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 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-D43ENVPX.mjs";import{a as O}from"../../chunk-BSQVKZCW.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 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 gb,b as hb,c as ib}from"../../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../../chunk-Q6SEVCRG.mjs";import{a as M,b as N}from"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.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-XGQLOPHW.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 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 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 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-IPHHUHS3.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-GLEWUUGS.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-6K2R3OAD.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,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-D43ENVPX.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-S7OK7D5I.mjs";export{c as Sidebar,k as SidebarContent,i as SidebarFooter,l as SidebarGroup,n as SidebarGroupAction,o as SidebarGroupContent,m as SidebarGroupLabel,h as SidebarHeader,g as SidebarInput,f as SidebarInset,p as SidebarMenu,s as SidebarMenuAction,t as SidebarMenuBadge,r as SidebarMenuButton,q as SidebarMenuItem,u as SidebarMenuSkeleton,v as SidebarMenuSub,x as SidebarMenuSubButton,w as SidebarMenuSubItem,b as SidebarProvider,e as SidebarRail,j as SidebarSeparator,d as SidebarTrigger,a as useSidebar};
2
+ "use strict";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-IPHHUHS3.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-S7OK7D5I.mjs";export{c as Sidebar,k as SidebarContent,i as SidebarFooter,l as SidebarGroup,n as SidebarGroupAction,o as SidebarGroupContent,m as SidebarGroupLabel,h as SidebarHeader,g as SidebarInput,f as SidebarInset,p as SidebarMenu,s as SidebarMenuAction,t as SidebarMenuBadge,r as SidebarMenuButton,q as SidebarMenuItem,u as SidebarMenuSkeleton,v as SidebarMenuSub,x as SidebarMenuSubButton,w as SidebarMenuSubItem,b as SidebarProvider,e as SidebarRail,j as SidebarSeparator,d as SidebarTrigger,a as useSidebar};