cortex-react-components 1.41.0 → 1.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZMWHENYB.mjs → chunk-373YJLIH.mjs} +1 -1
- package/dist/{chunk-HN4TEDPU.mjs → chunk-3PC5BLK7.mjs} +1 -1
- package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
- package/dist/chunk-4RKYG7LK.mjs +1 -0
- package/dist/{chunk-UZURFRC5.mjs → chunk-62YZZSOX.mjs} +1 -1
- package/dist/{chunk-4W5BMCYE.mjs → chunk-CNCPREWR.mjs} +1 -1
- package/dist/{chunk-N5ZYYMHK.mjs → chunk-CTCV3L4B.mjs} +1 -1
- package/dist/{chunk-7LTMHU33.mjs → chunk-ET5WFKM7.mjs} +1 -1
- package/dist/chunk-F2YN7SED.mjs +1 -0
- package/dist/{chunk-7HPRTCYO.mjs → chunk-FBFDZOP6.mjs} +1 -1
- package/dist/{chunk-KDVFPMCS.mjs → chunk-HAFP6IMI.mjs} +1 -1
- package/dist/{chunk-PN4KVV3W.mjs → chunk-HRZRAS6Z.mjs} +1 -1
- package/dist/{chunk-NLDFFHUN.mjs → chunk-HTO3HNQS.mjs} +1 -1
- package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
- package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
- package/dist/{chunk-K72QGFAZ.mjs → chunk-IE5X3XS7.mjs} +1 -1
- package/dist/{chunk-QL74DMZ3.mjs → chunk-IMAQJ7N3.mjs} +1 -1
- package/dist/{chunk-AFA6LBJ4.mjs → chunk-IPHHUHS3.mjs} +1 -1
- package/dist/{chunk-TYPDCZRR.mjs → chunk-IS5OUEJJ.mjs} +1 -1
- package/dist/chunk-J3QZZ62Z.mjs +4 -0
- package/dist/{chunk-SZ66VQRH.mjs → chunk-J7TRHWRM.mjs} +1 -1
- package/dist/{chunk-UDRX6THN.mjs → chunk-JK3XF6LP.mjs} +1 -1
- package/dist/{chunk-TRA7DKAI.mjs → chunk-JM6ZXLBG.mjs} +1 -1
- package/dist/{chunk-RTADGEQM.mjs → chunk-JYZW3G3N.mjs} +1 -1
- package/dist/{chunk-ULENDYCU.mjs → chunk-L44KSGUG.mjs} +1 -1
- package/dist/{chunk-4VDJWCUB.mjs → chunk-LBKMUSVR.mjs} +1 -1
- package/dist/{chunk-TV7ZUNYO.mjs → chunk-LVUWQ35N.mjs} +1 -1
- package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
- package/dist/chunk-MP3J7UPZ.mjs +1 -0
- package/dist/{chunk-JHXTO4RC.mjs → chunk-PARYRNXP.mjs} +1 -1
- package/dist/{chunk-5PALJRLI.mjs → chunk-SJWN6J3F.mjs} +1 -1
- package/dist/{chunk-SFVSEAAD.mjs → chunk-TJ6J3OQZ.mjs} +1 -1
- package/dist/{chunk-SAHUDAL7.mjs → chunk-UDVFDGKM.mjs} +1 -1
- package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
- package/dist/chunk-V4CUPKLW.mjs +4 -0
- package/dist/{chunk-DJ5BLICX.mjs → chunk-VP7B5S7N.mjs} +1 -1
- package/dist/{chunk-QMVHDZ5J.mjs → chunk-Y6QUDCQM.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CRMPage.js +1 -1
- package/dist/components/CRM/CRMPage.mjs +1 -1
- package/dist/components/CRM/CRMPage.stories.js +35 -35
- package/dist/components/CRM/CRMPage.stories.mjs +1 -1
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.js +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-37DPIDHA.mjs +0 -1
- package/dist/chunk-AEDQILUE.mjs +0 -1
- package/dist/chunk-FJUYTPO2.mjs +0 -4
- package/dist/chunk-TYFBZ3Q7.mjs +0 -1
- package/dist/chunk-YW54CUCP.mjs +0 -4
package/dist/index.js
CHANGED
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
(min-width:768px) 50vw,
|
|
17
17
|
(min-width:1024px) 33vw,
|
|
18
18
|
100vw
|
|
19
|
-
`,className:s("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,Oe.jsxs)("div",{className:"relative Oe-10 flex h-full flex-1 Oe-full flex-col",children:[o&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"inline-grid Oe-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,Oe.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,Oe.jsx)("span",{className:"block",children:lo(o)})})})}),(0,Oe.jsxs)("div",{className:"mt-auto space-Oe-2 text-white md:space-Oe-5",children:[(0,Oe.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Oe-5 gap-Oe-2",children:(0,Oe.jsx)("p",{className:ql})}),(0,Oe.jsx)("h3",{className:"text-md font-bold Oe-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,Oe.jsx)(ue,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,Oe.jsx)("div",{children:(0,Oe.jsxs)(ue,{href:e,className:s(ql,"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,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaArrowRight,{})})]})})]})]})]})}var vm=e=>{let{posts:t}=e;return(0,Oe.jsx)("div",{className:s("container"),children:(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Oe-4 gap-Oe-4 lg:gap-Oe-8 lg:gap-Oe-8 xl:gap-Oe-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,Oe.jsx)("div",{className:"col-span-4",children:(0,Oe.jsx)(ur,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Zl=v(require("clsx")),ec=v(require("next/image")),hm=e=>{let{loading:t,priority:a,className:r}=e;return(0,Oe.jsx)(ec.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Zl.default)("max-Oe-[9.375rem] Oe-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var xm={plural:"Docs",singular:"Doc"},ym={posts:{plural:"Posts",singular:"Post"}},wm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,l=(o?o-1:1)*(i||1)+1;n&&l>n&&(l=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||ym[a||""]||xm||{};return(0,Oe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Oe results.",typeof n!="undefined"&&n>0&&`Showing ${l}${l>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var ls=v(require("react")),cs=({className:e,...t})=>(0,Oe.jsx)("nav",{"aria-label":"pagination",className:s("mx-auto flex Oe-full justify-center",e),role:"navigation",...t});cs.displayName="Pagination";var ds=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{className:s("flex flex-row items-center gap-1",e),ref:a,...t}));ds.displayName="PaginationContent";var Pt=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{className:s("",e),ref:a,...t}));Pt.displayName="PaginationItem";var sa=({className:e,isActive:t,size:a="icon",...r})=>(0,Oe.jsx)("button",{"aria-current":t?"page":void 0,className:s(Dt({size:a,variant:t?"outline":"ghost"}),e),...r});sa.displayName="PaginationLink";var ms=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to previous page",className:s("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{children:"Previous"})]});ms.displayName="PaginationPrevious";var ps=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to next page",className:s("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Oe.jsx)("span",{children:"Next"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})]});ps.displayName="PaginationNext";var co=({className:e,...t})=>(0,Oe.jsxs)("span",{"aria-hidden":!0,className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Pn.MoreHorizontal,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More pages"})]});co.displayName="PaginationEllipsis";var Nm=e=>{let t=(0,Fl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,l=r-1>1,d=r+1<o;return(0,Oe.jsx)("div",{className:s("my-12",a),children:(0,Oe.jsx)(cs,{children:(0,Oe.jsxs)(ds,{children:[(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ms,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),l&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),n&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ps,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var us=v(require("clsx"));function Pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:l=!1,LinkComponent:d,...m}){let p=d?u=>(0,Oe.jsx)(d,{...u}):n?({href:u,children:f,...N})=>(0,Oe.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...N,children:f}):u=>(0,Oe.jsx)("a",{...u});return(0,Oe.jsxs)(Wt,{...m,variant:"inset",children:[(0,Oe.jsx)(jt,{children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(xe,{children:l?(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)(te,{className:"bg-gray-200 my-2 Oe-full h-7"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 my-2 h-5"})]}):(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,Oe.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),l&&(0,Oe.jsxs)(Mt,{children:[(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"})]}),(0,Oe.jsxs)(Mt,{children:[e&&!l&&e.map((u,f)=>(0,Oe.jsx)(Cm,{subNav:u,pathName:o,Link:p},f)),(0,Oe.jsx)(_e,{className:"mt-auto",children:(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:t&&!l&&t.map(u=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{asChild:!0,size:"sm",children:(0,Oe.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Oe.jsx)(u.icon,{}),(0,Oe.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Oe.jsx)(Xt,{})]})}function Cm({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(l=>{l.url===t&&(o=!0)}),(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsx)(_e,{className:"py-0",children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(dt,{asChild:!0,defaultOpen:r.isActive,children:(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,tooltip:r.label,className:(0,us.default)(o&&"font-bold text-accent"),children:(0,Oe.jsxs)(a,{href:r.url,children:[r.icon&&(0,Oe.jsx)(r.icon,{}),(0,Oe.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(Tt,{asChild:!0,children:(0,Oe.jsxs)(Xa,{className:"data-[state=open]:rotate-90",children:[(0,Oe.jsx)(Pn.ChevronRight,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Oe.jsx)(At,{children:(0,Oe.jsx)(It,{children:(n=r.links)==null?void 0:n.map(l=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,className:(0,us.default)(l.url===t&&"font-bold text-accent"),children:(0,Oe.jsx)(a,{href:l.url,children:(0,Oe.jsx)("span",{children:l.label})})})},l.label))})})]}):null]})},r.label)})})})}var ic=v(require("clsx"));var Rm=()=>(0,Oe.jsx)(Ve,{iconName:"github",size:"10x"});function Sm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:l,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let N=c?g=>(0,Oe.jsx)(c,{...g}):m?({item:g,children:h,...P})=>(0,Oe.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...P,children:h}):g=>(0,Oe.jsx)("a",{href:g.href,...g});return(0,Oe.jsxs)(Wt,{side:"right",variant:"inset",...p,children:[(0,Oe.jsxs)(jt,{className:"border-Oe border-sidebar-border",children:[(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{children:(0,Oe.jsxs)(Ge,{onClick:i,children:[(0,Oe.jsx)(Pn.FilePlus,{})," ",(0,Oe.jsx)("span",{children:"Add Document"})]})}),d&&(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{onClick:d,tooltip:"Open in GitHub",children:(0,Oe.jsx)(Rm,{})})})]}),(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:()=>n(),variant:o?"outline":"default",className:(0,ic.default)(o&&"text-accent"),children:[(0,Oe.jsx)(Pn.Edit,{})," ",(0,Oe.jsx)("span",{children:"Edit"})]})}),(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:l,children:[(0,Oe.jsx)(Pn.Printer,{})," ",(0,Oe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Editor Controls",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:a})})]})}),(0,Oe.jsx)(ja,{className:"mx-0"})]}),(0,Oe.jsxs)(Mt,{className:"overflow-auto",children:[r&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Related Content"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]}),(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Table of Contents"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Related Content",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:e&&Object.keys(e).map(g=>(0,Oe.jsxs)(xe,{children:[(0,Oe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,Oe.jsx)(It,{children:e[g].map(h=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:!1,size:"sm",children:(0,Oe.jsxs)(N,{href:h.url,item:h,className:"flex justify-between items-center Oe-full text-xs",children:[(0,Oe.jsx)("span",{children:h.label}),h.type==="note"&&(0,Oe.jsx)(Pn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Oe.jsx)(Ve,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},g))})})})]})}),t&&!r&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Table of Contents",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:t.map(g=>{var h;return(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,children:(0,Oe.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(h=g.items)!=null&&h.length?(0,Oe.jsx)(It,{children:g.items.map(P=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Oe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Oe-full text-xs",children:(0,Oe.jsx)("span",{children:P.title})})})},P.title))}):null]},g.title)})})})})]})})]}),(0,Oe.jsx)(Xt,{})]})}var nc=v(require("next/image"));function km({title:e,members:t}){return(0,Oe.jsx)(J,{className:"mb-6",children:(0,Oe.jsxs)("div",{className:"p-6",children:[(0,Oe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Oe.jsx)(Pn.Users,{className:"Oe-6 h-6 text-accent mr-2"}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Oe.jsx)("div",{className:"space-Oe-4",children:t.map((a,r)=>(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("div",{className:"relative Oe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Oe.jsx)(nc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Oe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var lc=v(require("next/link"));var gs=({links:e,title:t="Related Content"})=>(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:t})}),(0,Oe.jsx)(se,{children:(0,Oe.jsx)("nav",{className:"flex flex-col space-Oe-2",children:e.map((a,r)=>(0,Oe.jsxs)(lc.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,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},r))})})]});var fs=s("grid h-[45px] Oe-[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 bs({pages:e}){let t=(0,Fl.useSearchParams)(),a=(0,Fl.usePathname)(),{replace:r}=(0,Fl.useRouter)(),{totalPages:o,page:i}=e,[n,l]=(0,Mr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?l(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&l(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,Oe.jsx)("div",{className:"mt-12",children:(0,Oe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,Oe.jsx)(Zr.FaArrowLeft,{})})}),c.map((p,u)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("a",{className:s(fs,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,Oe.jsx)(Zr.FaArrowRight,{})})})]})})}var xv=s("transition-colors duration-400 hover:text-primary ease-in-out");function fr({title:e,links:t}){let a=(0,Fl.useSearchParams)(),r=(0,Fl.usePathname)(),{replace:o}=(0,Fl.useRouter)();function i(n){let l=new URLSearchParams(a);n?l.set("category",n):l.delete("category"),o(`${r}?${l.toString()}`)}return(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:e&&e})}),(0,Oe.jsx)(se,{children:t&&t.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},l))})})})]})}function hs({types:e}){let[t,a]=(0,Mr.useState)(e&&e[0].href),r=(0,Fl.useSearchParams)(),o=(0,Fl.usePathname)(),{replace:i}=(0,Fl.useRouter)();function n(l){let d=new URLSearchParams(r);l?d.set("type",l):d.delete("type"),a(l),i(`${o}?${d.toString()}`)}return(0,Oe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Oe-auto pb-4 mb-6",children:e&&e.map((l,d)=>(0,Oe.jsx)(D,{variant:l.href===t?"default":"ghost",className:s("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",l.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(l.href),children:l.label},d))})}var uc=v(require("next/image"));var xs=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,Oe.jsx)("div",{className:"container mb-8 Oe-10 relative flex items-end justify-center",children:(0,Oe.jsxs)("div",{className:"text-center",children:[a||r&&(0,Oe.jsx)(Z,{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,Oe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(tt,{...o})},i))})]})}),(0,Oe.jsxs)("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&(0,Oe.jsx)(Nt,{fill:!0,imgClassName:"Oe-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)(uc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ys=v(require("next/image"));var Tm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,Oe.jsx)(ys.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,Oe.jsx)("div",{children:(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ws=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Oe.jsx)(Tm,{media:t}),(0,Oe.jsx)("div",{className:"mx-0 min-Oe-full relative Oe-9",children:(0,Oe.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,Oe.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var Ns=({children:e,richText:t})=>(0,Oe.jsx)("div",{className:"min-Oe-full py-10 bg-muted mt-24",children:(0,Oe.jsx)("div",{className:"container",children:e||t&&(0,Oe.jsx)(Z,{content:t,enableGutter:!1})})});var br=v(require("react"));var gc=v(require("next/image")),Am=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,Oe.jsx)("div",{className:"container Oe-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,Oe.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,Oe.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((l,d)=>{if(typeof l=="object"&&l!==null){let{title:m}=l;return(0,Oe.jsx)(Ft,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,Oe.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,Oe.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Author"}),r.map((l,d)=>{let{name:m}=l,c=d===r.length-1,p=d===r.length-2;return(0,Oe.jsxs)(br.default.Fragment,{children:[m,p&&r.length>2&&(0,Oe.jsx)(br.default.Fragment,{children:", "}),p&&r.length===2&&(0,Oe.jsx)(br.default.Fragment,{children:" "}),!c&&r.length>1&&(0,Oe.jsx)(br.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Oe.jsx)("time",{dateTime:o,children:Xl(o)})]})]})]})}),(0,Oe.jsxs)("div",{className:"min-h-[50vh] max-h-[50vh] select-none",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsx)(gc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,Oe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Oe-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var uo=require("@heroicons/react/20/solid");var fc=v(require("next/image"));function Ps({title:e,breadcrumbItems:t,image:a}){return(0,Oe.jsxs)("section",{className:"-Oe-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Oe.jsx)("div",{className:"absolute inset-0 Oe-0",children:a&&(0,Oe.jsx)(fc.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,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"relative Oe-10 flex flex-wrap items-center justify-between gap-Oe-20 gap-Oe-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Oe.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:Oe-1/2",children:e}),t&&t.length>0&&(0,Oe.jsx)(Cs,{breadcrumbItems:t})]})})]})}var Dm={highImpact:xs,lowImpact:Ns,mediumImpact:ws,sectionHero:Ps},Mm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Dm[t];return a?(0,Oe.jsx)(a,{...e}):null};function Cs({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Oe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Oe.jsxs)("ol",{role:"list",className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Oe.jsx)(uo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsx)(uo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Oe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Oe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,Oe.jsx)(Oe.Fragment,{})}var Fe=require("@headlessui/react"),bo=require("@heroicons/react/24/outline");var Im=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,Oe.jsx)("a",{href:r,className:"flex items-center gap-Oe-1 text-sm font-semibold text-foreground group",children:(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute -bottom-1 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]})}):(0,Oe.jsxs)(Fe.Popover,{children:[(0,Oe.jsxs)(Fe.PopoverButton,{className:"flex items-center gap-Oe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute bottom-0 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]}),(0,Oe.jsx)(uo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Oe-5 flex-none text-accent"})]}),(0,Oe.jsxs)(Fe.PopoverPanel,{transition:!0,className:"absolute inset-Oe-0 top-0 -Oe-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Oe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Oe.jsx)("div",{className:"mx-auto grid max-Oe-7xl grid-cols-4 gap-Oe-4 px-6 py-10 lg:px-8 xl:gap-Oe-8 Oe-50",children:t&&t.map(o=>(0,Oe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Oe.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,size:"4x"})}),(0,Oe.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Oe.jsx)("span",{className:"absolute inset-0"})]}),(0,Oe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,Oe.jsx)("div",{className:"bg-gray-50",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"grid grid-cols-3 divide-Oe divide-gray-900/5 border-Oe border-gray-900/5",children:a.map(o=>(0,Oe.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-Oe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,className:"h-5 Oe-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),bc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Oe.jsx)(Ve,{...e,size:a});if("src"in e)return(0,Oe.jsx)("div",{className:s(t,"h-full max-Oe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Oe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},go=Im;var fo=["light","dark","green"];function Lm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Mr.useState)(!1),[i,n]=(0,Mr.useState)(!1),[l,d]=(0,Mr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,Mr.useState)(`${m}.${c}`),f=g=>{fo.includes(g)?u(g==="light"?`${m}.${c}`:`${m}-${g}.${c}`):u(`${m}.${c}`)};(0,Mr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let N=()=>{let g=fo[(fo.indexOf(l)+1)%fo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,Oe.jsxs)("header",{className:"relative isolate Oe-10 bg-background h-14",children:[(0,Oe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Oe.jsx)("div",{className:"flex lg:flex-1",children:(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:e}),(0,Oe.jsx)("img",{alt:e,src:p,className:"h-9 Oe-auto"})]})}),(0,Oe.jsx)("div",{className:"flex lg:hidden",children:(0,Oe.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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:a.map(g=>(0,Oe.jsx)(go,{...g},g.name))}),(0,Oe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Oe.jsx)("button",{onClick:N,className:"p-2 text-gray-700 outline-none",children:l==="dark"?(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"}):l==="green"?(0,Oe.jsx)(uo.MoonIcon,{className:"h-6 Oe-6"}):(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"})})})]}),(0,Oe.jsxs)(Fe.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white px-6 py-6 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Oe.jsx)("img",{alt:e,src:t,className:"h-8 Oe-auto"})]}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 py-6",children:a.map(g=>(0,Oe.jsx)(Em,{...g},g.name))})})})]})]})]})}function Em({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.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,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-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,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"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 wc=v(require("next/image"));var Rs=v(require("next/image"));function Vt({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Oe.jsxs)(ue,{href:"/",className:s(a?"py-1":"py-2"),children:[(0,Oe.jsx)(Rs.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,Oe.jsx)(Rs.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 hc=require("next-themes");function xr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,hc.useTheme)();(0,Mr.useEffect)(()=>{l(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];l(u),c(u)};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)("header",{className:`Oe-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:(0,Oe.jsx)(me,{className:"px-0",children:(0,Oe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-Oe-xl",children:(0,Oe.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-Oe-xl border border-t-0 border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:a,logoLight:t}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:r&&r.map(u=>(0,Oe.jsx)(go,{...u},u.name))}),(0,Oe.jsx)("div",{className:"flex items-center space-Oe-4",children:(0,Oe.jsx)("button",{className:"fixed right-4 Oe-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-6 Oe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-6 Oe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ss=["light","dark"];function yr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Mr.useState)(!1),{theme:n,setTheme:l}=(0,hc.useTheme)(),[d,m]=(0,Mr.useState)(!1),[c,p]=(0,Mr.useState)("light");(0,Mr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Mr.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let f=Ss[(Ss.indexOf(c)+1)%Ss.length];p(f),l(f)};return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("header",{className:`Oe-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:[(0,Oe.jsx)("nav",{className:s("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Oe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-Oe dark:border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Oe-[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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-4 Oe-4"})]}),(0,Oe.jsx)("button",{className:"fixed right-16 Oe-[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,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-4 Oe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-4 Oe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Oe.jsxs)(Fe.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white dark:bg-[#212124] px-2 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 px-2 py-6",children:a&&a.map(f=>(0,Oe.jsx)(Bm,{...f},f.name))})})})]})]})]})})}function Bm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.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,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-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,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"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 Hm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsxs)("div",{className:"relative h-screen",children:[(0,Oe.jsxs)("div",{className:"absolute inset-0 Oe-full h-screen overflow-hidden",children:[(0,Oe.jsxs)("video",{className:"object-cover Oe-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Oe.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Oe.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,Oe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 Oe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,Oe.jsx)(Pn.Menu,{className:"Oe-6 h-6 text-white"})}),(0,Oe.jsxs)("div",{className:"fixed top-0 left-0 right-0 Oe-50",children:[(0,Oe.jsx)(xr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,Oe.jsxs)("div",{className:"absolute inset-0 h-full Oe-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Oe.jsx)(wc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:s("absolute top-2.5 h-auto Oe-auto mt-8 hidden lg:block",d&&"lg:hidden")}),(0,Oe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Oe.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:o&&o}),(0,Oe.jsx)("div",{className:"text-3xl mb-8 max-Oe-2xl",children:i&&i})]}),(0,Oe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Oe-full mb-8",children:(0,Oe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Oe.jsx)(Pn.ChevronDown,{size:64})})})]})]})}var Nc=v(require("next/image"));var zm=s("text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 block px-4"),ks=s("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ts=s("Oe-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),As=s("flex items-center gap-5"),wo=s("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Fm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:l,footerBottom:d}=t;return(0,Oe.jsxs)("footer",{className:s("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Oe.jsx)("div",{className:"py-16 md:py-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)(Vt,{logoLight:a,logoDark:r}),(0,Oe.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Oe rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":m.href,className:zm,href:m.href,openNewTab:!0,children:(0,Oe.jsx)("span",{children:m.icon})})},c))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Oe.jsx)("h3",{className:ks,children:i.title}),i.links&&i.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,Oe.jsxs)("Oe",{className:"flex items-center gap-2.5",children:[(0,Oe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Oe.jsx)(Zr.FaChevronRight,{})}),(0,Oe.jsx)(ue,{href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})]},m.label))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Oe.jsx)("h3",{className:ks,children:n.title}),(0,Oe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPaperPlane,{})}),(0,Oe.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Oe.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,Oe.jsx)("a",{href:`mailto:${m}`,className:wo,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPhone,{})}),(0,Oe.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,Oe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:wo,children:m},c))})]})]})]}),l&&(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Oe.jsx)("h3",{className:ks,children:l.title}),l.blogs&&l.blogs.length>0&&(0,Oe.jsx)("div",{className:"grid gap-6",children:l.blogs.map((m,c)=>(0,Oe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Oe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Oe.jsx)(Nc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaCalendarDays,{})}),(0,Oe.jsx)("span",{children:Yl(m.date)})]}),(0,Oe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Oe.jsx)(ue,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,Oe.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Oe-8 gap-Oe-4 md:gap-Oe-10",children:[(0,Oe.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Oe.jsx)("ul",{className:"flex flex-wrap items-center gap-Oe-4 md:gap-Oe-7",children:d.links.map(m=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})},m.label))})})]})})})]})}function Om({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,Oe.jsxs)("div",{className:s("fixed top-0 left-0 right-0 Oe-50",o),children:[(0,Oe.jsx)(xr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function _m({children:e,...t}){return(0,Oe.jsx)(hc.ThemeProvider,{...t,children:e})}var ca=require("sonner");function Ds({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Mr.useState)([]),i=(0,Fl.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},l=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])};return(0,$.jsxs)("div",{className:"space-Oe-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,$.jsxs)("div",{className:"space-Oe-2",children:[(0,$.jsx)(D,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,$.jsx)(D,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,$.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,$.jsxs)("ul",{className:"divide-Oe divide-gray-200",children:[(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,$.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,$.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>l(c.id),className:"border-accent"}),(0,$.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,$.jsxs)(ft,{className:"h-10 Oe-10",children:[(0,$.jsx)(bt,{src:c.userImage,alt:c.userName}),(0,$.jsx)(vt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,$.jsx)("div",{className:"ml-3",children:(0,$.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,$.jsxs)("div",{className:"flex items-center space-Oe-2",children:[(0,$.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,$.jsx)(Ft,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,$.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Ms=require("date-fns"),Gm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,Oe.jsx)("div",{className:"flex space-Oe-2",children:e.map((o,i)=>(0,Oe.jsx)(D,{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 Ls({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Mr.useState)(new Date),[o,i]=(0,Mr.useState)(new Date),[n,l]=(0,Mr.useState)("Full Day"),[d,m]=(0,Mr.useState)(!1),c=(0,Fl.useRouter)();(0,Mr.useEffect)(()=>{m(a!==o||!a||!o),d&&l("Full Day")},[a,o]);let p=f=>{l(f)};return(0,Oe.jsxs)("div",{className:"max-Oe-2xl",children:[(0,Oe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Oe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Oe.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){ca.toast.error("Please select both start and end dates");return}let N=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(N=.5),N>e){ca.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",n),g.append("duration",N.toString());let h=await(t||$m)(g);h.success?(ca.toast.success(h.message),r(void 0),i(void 0),l("Full Day"),c.refresh()):ca.toast.error(`Error: ${h.message}`)},className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"startDate",children:"Start Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),a?(0,Ms.format)(a,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"endDate",children:"End Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),o?(0,Ms.format)(o,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-2",children:[(0,Oe.jsx)(qt,{children:"Leave Type"}),(0,Oe.jsx)(Gm,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,Oe.jsx)(D,{type:"submit",className:"Oe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Oe.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var $m=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Tc(...e){return e.filter(Boolean).join(" ")}function Es({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))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Oe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Oe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Oe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Oe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:l,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,Oe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})]}),(0,Oe.jsx)("div",{className:"mt-8 flow-root",children:(0,Oe.jsx)("div",{className:"-mx-4 -my-2 overflow-Oe-auto sm:-mx-6 lg:-mx-8",children:(0,Oe.jsx)("div",{className:"inline-block min-Oe-full py-2 align-middle",children:(0,Oe.jsxs)("table",{className:"min-Oe-full border-separate border-spacing-0",children:[(0,Oe.jsx)("thead",{children:(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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((d,m)=>(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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:m+1},m))]})}),(0,Oe.jsx)("tbody",{children:r.map((d,m)=>(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("td",{className:Tc(m!==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,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsxs)(ft,{className:"h-11 Oe-11",children:[(0,Oe.jsx)(bt,{src:d.image,alt:d.name}),(0,Oe.jsx)(vt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,Oe.jsx)("div",{className:"ml-4",children:(0,Oe.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(N=>N.userId===d.id&&new Date(N.startDate)<=u&&new Date(N.endDate)>=u);return(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Oe.jsx)("div",{className:`h-6 Oe-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?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,Oe.jsx)("div",{className:`h-3 Oe-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Bs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Mr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-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)}}),l=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Oe.jsxs)("header",{className:"flex items-center justify-between border-Oe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Oe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Oe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Oe.jsx)("div",{className:"flex items-center",children:(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})})]}),(0,Oe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Oe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Oe"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Oe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Oe.jsx)("div",{className:"hidden Oe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,Oe.jsxs)("div",{className:s(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("flex h-6 Oe-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,Oe.jsx)("ol",{className:"mt-2 space-Oe-1",children:c.holidays.map(p=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,Oe.jsx)("div",{className:"isolate grid Oe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,Oe.jsxs)("button",{type:"button",className:s(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 h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Oe-10"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("ml-auto",c.date===r&&c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,Oe.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,Oe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,Oe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Oe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Ut=require("lucide-react");function Dc(...e){return e.filter(Boolean).join(" ")}function Vm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:l}){let[d,m]=(0,Mr.useState)("Calendar View"),c=(0,Fl.useRouter)(),p=!1,u=(0,Ms.parseISO)(a),f=async g=>{let h=(0,Ms.format)(g,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",h),c.push(P.toString()),{success:!0}};if(p)return(0,Oe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Oe.jsx)("div",{className:"animate-spin rounded-full h-32 Oe-32 border-t-2 border-Oe-2 border-gray-900"})});let N=[{name:"Grid View",icon:Ut.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Ut.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Ut.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Ut.CheckSquare,current:d==="Approve Leave"}];return(0,Oe.jsxs)("div",{className:"container mx-auto p-4",children:[(0,Oe.jsxs)("div",{className:"mb-8",children:[(0,Oe.jsxs)("div",{className:"sm:hidden",children:[(0,Oe.jsx)("select",{value:d,onChange:g=>m(g.target.value),className:"block Oe-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:N.map(g=>(0,Oe.jsx)("option",{children:g.name},g.name))}),(0,Oe.jsx)(Pn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Oe-5 text-gray-400","aria-hidden":"true"})]}),(0,Oe.jsx)("div",{className:"hidden sm:block",children:(0,Oe.jsx)("div",{className:"border-Oe border-gray-200",children:(0,Oe.jsx)("nav",{className:"-mb-px flex space-Oe-8","aria-label":"Tabs",children:N.map(g=>(0,Oe.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:Dc(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-Oe-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,Oe.jsx)(g.icon,{className:Dc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Oe-5"),"aria-hidden":"true"}),(0,Oe.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,Oe.jsx)(Es,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,Oe.jsx)(Bs,{currentDate:u,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,Oe.jsx)(Ls,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Oe.jsx)(Ds,{leaveRequests:r,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>l?l(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Um({services:e,className:t}){return(0,Oe.jsx)("section",{id:"next-section",className:s("section-padding-primary",t),children:(0,Oe.jsx)(me,{className:"py-8",children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"flex flex-wrap justify-center gap-Oe-8",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 lg:Oe-1/3",children:(0,Oe.jsx)(ji,{...a})},r))})})})}function Wm({sectionHeading:e,cards:t}){return(0,Oe.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Oe.jsx)("div",{className:"grid gap-30px",children:t.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"py-2",children:(0,Oe.jsx)(Xi,{...a})},r))})]})})}var Ba=v(require("next/image"));function jm(e){let{images:t,sectionHeading:a,keyPoints:r,description:o}=e;return(0,Oe.jsx)("section",{id:"about-section",className:s("section-padding-primary",e.className||""),children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Oe.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Oe.jsx)($t,{...a}),r&&r.length>0&&(0,Oe.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:r.map((i,n)=>(0,Oe.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,Oe.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:i.icon}),(0,Oe.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:i.title})]},n))}),o&&(0,Oe.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:o})]}),t&&(0,Oe.jsx)("div",{className:"mx-auto text-center",children:(0,Oe.jsxs)("div",{className:"relative mx-auto grid max-Oe-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative flex justify-end overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative Oe-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)("span",{className:"absolute -left-2.5 -top-2.5 -Oe-1 h-full Oe-full rounded-tl-[60px] bg-primary-light"}),(0,Oe.jsx)("div",{className:"relative Oe-[4] overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),(0,Oe.jsx)(Ba.default,{src:t.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] Oe-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),(0,Oe.jsx)("div",{className:"flex overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,Oe.jsx)("div",{className:"ml-auto flex max-Oe-[250px] justify-end overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,Oe.jsx)("div",{className:"overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,Oe.jsx)("div",{className:"absolute left-1/2 top-1/2 Oe-[4] -translate-Oe-1/2 -translate-Oe-1/2 overflow-hidden",children:(0,Oe.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Oe.jsx)("span",{className:"grid h-[100px] Oe-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ec=v(require("next/image"));function Bc({blogs:e}){return(0,Oe.jsx)("div",{children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,Oe.jsx)(Xm,{post:t,id:a},a))})})}var Xm=({post:e,id:t})=>{let{slug:a,image:r,authors:o,categories:i,title:n,description:l,publishedAt:d}=e;return(0,Oe.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Oe.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:Oe-64 lg:shrink-0",children:[r&&(0,Oe.jsx)(Ec.default,{src:r.src,alt:r.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Oe.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-Oe-4 text-xs",children:[(0,Oe.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:lo(e.publishedAt)}),e.categories&&e.categories.map((m,c)=>(0,Oe.jsx)("a",{href:`#${m}`,className:"relative Oe-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},c))]}),(0,Oe.jsxs)("div",{className:"group relative max-Oe-xl",children:[(0,Oe.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Oe.jsxs)("a",{href:e.slug,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Oe.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Oe.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Oe-2 border-gray-200 dark:border-gray-700 pt-6",children:o&&o.map((m,c)=>(0,Oe.jsxs)("div",{className:"relative flex items-center gap-Oe-4",children:[m.image?(0,Oe.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Oe.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Oe.jsx)("div",{className:"text-sm/6",children:(0,Oe.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function Ym({blogs:e,pages:t,categories:a,types:r}){return(0,Oe.jsx)("section",{children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsxs)("div",{children:[r&&(0,Oe.jsx)(hs,{types:r}),(0,Oe.jsx)(Bc,{blogs:e}),(0,Oe.jsx)(bs,{pages:t})]}),(0,Oe.jsx)("div",{className:"grid gap-30px Oe-full self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:(0,Oe.jsx)("div",{className:"lg:-mt-24 Oe-full",children:a&&a.links&&(0,Oe.jsx)(fr,{links:a.links,title:a.title})})})]})})})}var Gc=v(require("next/image"));var Ro="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function So({className:e}){return s("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] Oe-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Km({className:e,...t}){return(0,Oe.jsx)("input",{...t,className:So({className:e})})}function ko({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(Km,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-1/2 Oe-[14px] -translate-Oe-1/2 text-accent",children:e})]})}function qm({className:e,...t}){return(0,Oe.jsx)("textarea",{...t,className:s(So({}),"resize-none md:min-h-[130px]",e)})}function Hc({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(qm,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-[18px] Oe-[14px] text-accent",children:e})]})}var Fc=require("formik"),pa=v(require("yup"));async function zc(e){let{name:t,email:a,subject:r,message:o}=e,i=process.env.TEAMS_WEBHOOK_URL;if(!i)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0}]}]},{type:"TextBlock",text:`${o}`,wrap:!0}]}}]};try{let l=await fetch(i,{method:"POST",mode:"Oe-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var et={tooShort:"Must be Oe least ${min} characters",tooLong:"Must be Oe most ${max} characters",required:"This field is required",email:"Invalid email format"},Qm=pa.object().shape({name:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),email:pa.string().email(et.email).required(et.required),subject:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),message:pa.string().min(2,et.tooShort).max(300,et.tooLong).required(et.required)}),To=s("!pr-[44px]"),Ao=s("!border-red-600 border"),Do=s("sr-only");function _c(){return(0,Oe.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Qm,onSubmit:async(e,{resetForm:t})=>{let a=await zc(e);a.data===null?ca.toast.error(a.message):(ca.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:r,handleBlur:o,isSubmitting:i,handleSubmit:n})=>(0,Oe.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zr.FaUser,{}),className:s(To,e.name&&t.name&&Ao)}),e.name&&t.name&&(0,Oe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Do,children:e.name})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Jm,{}),className:s(To,e.email&&t.email&&Ao)}),e.email&&t.email&&(0,Oe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Do,children:e.email})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(ko,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:r,onBlur:o,disabled:i,className:s(To,e.subject&&t.subject&&Ao)}),e.subject&&t.subject&&(0,Oe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Do,children:e.subject})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(Hc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zm,{}),className:s(To,e.message&&t.message&&Ao)}),e.message&&t.message&&(0,Oe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Do,children:e.message})]}),(0,Oe.jsx)("div",{className:"lg:col-span-2",children:(0,Oe.jsx)(D,{type:"submit",className:"Oe-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:i,children:(0,Oe.jsx)("span",{children:"SEND"})})})]})})}function Jm(){return(0,Oe.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Zm(){return(0,Oe.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function ep(e){let{sectionHeading:t,image:a}=e;return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-2xl space-Oe-16 divide-Oe divide-gray-100 lg:mx-0 lg:max-Oe-none",children:(0,Oe.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,Oe.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Oe have multiple locations across the UK where Oe are based. These are our key locations."})]}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((r,o)=>{var i;return(0,Oe.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Oe.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:r.title}),(0,Oe.jsxs)("address",{className:"mt-3 space-Oe-1 text-sm/6 not-italic text-foreground",children:[(i=r.location.split(","))==null?void 0:i.map((n,l)=>(0,Oe.jsx)("p",{children:n},l))," ",r.mails&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,Oe.jsx)("span",{children:r.mails[0]})]}),r.phoneNumbers&&r.phoneNumbers.length>0&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),r.phoneNumbers[0]]})]})]},o)})})]})})})})}),(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsxs)("div",{className:"relative py-[60px]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 Oe-1 h-full Oe-full overflow-hidden bg-red-500 md:Oe-[56%] md:rounded-r-5",children:(0,Oe.jsx)(Gc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ro})}),(0,Oe.jsx)(me,{children:(0,Oe.jsx)("div",{className:"ml-auto md:Oe-1/2",children:(0,Oe.jsxs)("div",{className:"relative Oe-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Oe.jsx)("div",{className:"mb-30px",children:(0,Oe.jsx)($t,{...t,invert:!0})}),(0,Oe.jsx)(_c,{})]})})})]})})]})}var $c=v(require("next/image"));var Uc=v(require("next/link"));function tp({image:e,name:t,about:a,socialLinks:r}){return!e||!e.src||e.src.length<3||!t?null:(0,Oe.jsx)("div",{className:"mt-1 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(J,{children:(0,Oe.jsxs)(se,{children:[e&&e.src&&(0,Oe.jsx)($c.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ro,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Oe.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Oe.jsx)("p",{children:a}),r&&r.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex items-center divide-Oe divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:r.map((o,i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{href:o.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 hover:text-accents",children:(0,Oe.jsx)("span",{children:o.icon})})},i))})})]})})})}function ap({page:e,categoryList:t,edit:a=!1,path:r="/admin/collections/posts/"}){var u;if(!e)return(0,Fl.notFound)();let{meta:o,populatedAuthors:i,authors:n,categories:l,content:d,title:m}=e,c={image:{src:o&&o.image&&o.image.url||void 0,alt:o&&o.image&&o.image.alt||void 0},authorName:((u=i==null?void 0:i[0])==null?void 0:u.name)||"",category:l,commentCount:0,title:m,description:(o==null?void 0:o.description)||""},p=n==null?void 0:n.map(f=>{var N,g;return{name:f.name||"",about:"",image:{src:f.profilePicture&&((g=(N=f.profilePicture.sizes)==null?void 0:N.square)==null?void 0:g.url)||"",alt:f.name||"blog author"},socialLinks:[]}});return(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Oe.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Oe.jsx)(Z,{content:d,enableGutter:!1})]})}),(0,Oe.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:[a&&(0,Oe.jsx)("div",{className:"mt-4 lg:-mt-10 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(se,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Oe.jsx)(Uc.default,{href:`${r}${e.id}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((f,N)=>(0,Oe.jsx)(tp,{...f},N)),t&&t.links&&(0,Oe.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(fr,{links:t.links,title:t.title})})]})]})})}var zs=v(require("next/link"));var rp=({children:e,pageId:t,tableOfContents:a=[],edit:r=!0,path:o="/admin/collections/pages/",relatedContent:i=[{title:"Related Content",links:[]}]})=>{let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(""),c=(0,Fl.usePathname)(),p=()=>{l(!n)},u=h=>{switch(h){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},f=(h,P)=>{h.preventDefault();let R=document.getElementById(P);if(R){let Ae=R.offsetTop+-100,nt=document.querySelector(".container")||window;nt===window?window.scrollTo({top:Ae,behavior:"smooth"}):nt.scrollTo({top:Ae,behavior:"smooth"}),m(P)}else console.error(`Element with ID "${P}" not found.`)},N=()=>{let P="/print/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()},g=()=>{let P="/present/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()};return(0,Mr.useEffect)(()=>{let h=window.location.hash;if(h){let P=h.substring(1),R=document.getElementById(P);if(R){let Ae=R.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:Ae,behavior:"smooth"})}}},[window.location.hash]),(0,Oe.jsxs)("div",{className:"container py-8",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-8",children:[(0,Oe.jsx)("div",{className:s(n?"col-span-2":"col-span-3","xl:col-span-3"),children:e}),(0,Oe.jsxs)("div",{className:s("space-Oe-6 transform min-Oe-full transition-transform duration-300","col-span-4 md:col-span-1 translate-Oe-0 xl:-mt-20",n?"translate-Oe-0":"md:translate-Oe-full","xl:block xl:col-span-1 xl:translate-Oe-0"),children:[r&&(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(se,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Contribute or create new content."}),(0,Oe.jsx)(zs.default,{href:`${o}${t}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit Page"})}),(0,Oe.jsx)(zs.default,{href:"/admin/collections/pages/create",children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full mt-2 text-accent hover:text-foreground",children:"Create New"})}),(0,Oe.jsxs)("div",{className:"flex space-Oe-2 mt-4",children:[(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:N,children:[(0,Oe.jsx)(Pn.Printer,{className:"mr-2"})," Print"]}),(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:g,children:[(0,Oe.jsx)(Pn.Presentation,{className:"mr-2"})," Present"]})]})]})]}),i&&i.length>0&&i.map((h,P)=>h.links&&h.links.length>0&&(0,Oe.jsx)(gs,{...h},P)),a.length>3&&(0,Oe.jsxs)(J,{className:"Oe-full max-Oe-sm mt-4",children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Oe this page"})}),(0,Oe.jsx)(se,{children:(0,Oe.jsx)("ul",{className:"space-Oe-2",children:a.map((h,P)=>(0,Oe.jsx)("Oe",{className:u(h.tag),children:(0,Oe.jsx)("a",{href:`#${h.id}`,className:`text-xs ${d===h.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:h.text})},P))})})]})]}),(0,Oe.jsx)("button",{onClick:p,className:s("fixed top-1/2 right-0 Oe-50 h-16 Oe-8 bg-accent text-accent-foreground rounded-l-full transform -translate-Oe-1/2 flex items-center justify-center","hidden md:block xl:hidden"),children:"\u22EE"})]}),(0,Oe.jsx)("div",{className:"block md:hidden mt-8",children:(0,Oe.jsx)("div",{className:"space-Oe-6",children:e})})]})};0&&(module.exports={AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,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,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,Oe,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
19
|
+
`,className:s("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,Oe.jsxs)("div",{className:"relative Oe-10 flex h-full flex-1 Oe-full flex-col",children:[o&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"inline-grid Oe-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,Oe.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,Oe.jsx)("span",{className:"block",children:lo(o)})})})}),(0,Oe.jsxs)("div",{className:"mt-auto space-Oe-2 text-white md:space-Oe-5",children:[(0,Oe.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Oe-5 gap-Oe-2",children:(0,Oe.jsx)("p",{className:ql})}),(0,Oe.jsx)("h3",{className:"text-md font-bold Oe-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,Oe.jsx)(ue,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,Oe.jsx)("div",{children:(0,Oe.jsxs)(ue,{href:e,className:s(ql,"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,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaArrowRight,{})})]})})]})]})]})}var vm=e=>{let{posts:t}=e;return(0,Oe.jsx)("div",{className:s("container"),children:(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Oe-4 gap-Oe-4 lg:gap-Oe-8 lg:gap-Oe-8 xl:gap-Oe-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,Oe.jsx)("div",{className:"col-span-4",children:(0,Oe.jsx)(ur,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Zl=v(require("clsx")),ec=v(require("next/image")),hm=e=>{let{loading:t,priority:a,className:r}=e;return(0,Oe.jsx)(ec.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Zl.default)("max-Oe-[9.375rem] Oe-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var xm={plural:"Docs",singular:"Doc"},ym={posts:{plural:"Posts",singular:"Post"}},wm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,l=(o?o-1:1)*(i||1)+1;n&&l>n&&(l=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||ym[a||""]||xm||{};return(0,Oe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Oe results.",typeof n!="undefined"&&n>0&&`Showing ${l}${l>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var ls=v(require("react")),cs=({className:e,...t})=>(0,Oe.jsx)("nav",{"aria-label":"pagination",className:s("mx-auto flex Oe-full justify-center",e),role:"navigation",...t});cs.displayName="Pagination";var ds=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{className:s("flex flex-row items-center gap-1",e),ref:a,...t}));ds.displayName="PaginationContent";var Pt=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{className:s("",e),ref:a,...t}));Pt.displayName="PaginationItem";var sa=({className:e,isActive:t,size:a="icon",...r})=>(0,Oe.jsx)("button",{"aria-current":t?"page":void 0,className:s(Dt({size:a,variant:t?"outline":"ghost"}),e),...r});sa.displayName="PaginationLink";var ms=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to previous page",className:s("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{children:"Previous"})]});ms.displayName="PaginationPrevious";var ps=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to next page",className:s("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Oe.jsx)("span",{children:"Next"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})]});ps.displayName="PaginationNext";var co=({className:e,...t})=>(0,Oe.jsxs)("span",{"aria-hidden":!0,className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Pn.MoreHorizontal,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More pages"})]});co.displayName="PaginationEllipsis";var Nm=e=>{let t=(0,Fl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,l=r-1>1,d=r+1<o;return(0,Oe.jsx)("div",{className:s("my-12",a),children:(0,Oe.jsx)(cs,{children:(0,Oe.jsxs)(ds,{children:[(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ms,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),l&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),n&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ps,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var us=v(require("clsx"));function Pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:l=!1,LinkComponent:d,...m}){let p=d?u=>(0,Oe.jsx)(d,{...u}):n?({href:u,children:f,...N})=>(0,Oe.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...N,children:f}):u=>(0,Oe.jsx)("a",{...u});return(0,Oe.jsxs)(Wt,{...m,variant:"inset",children:[(0,Oe.jsx)(jt,{children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(xe,{children:l?(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)(te,{className:"bg-gray-200 my-2 Oe-full h-7"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 my-2 h-5"})]}):(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,Oe.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),l&&(0,Oe.jsxs)(Mt,{children:[(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"})]}),(0,Oe.jsxs)(Mt,{children:[e&&!l&&e.map((u,f)=>(0,Oe.jsx)(Cm,{subNav:u,pathName:o,Link:p},f)),(0,Oe.jsx)(_e,{className:"mt-auto",children:(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:t&&!l&&t.map(u=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{asChild:!0,size:"sm",children:(0,Oe.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Oe.jsx)(u.icon,{}),(0,Oe.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Oe.jsx)(Xt,{})]})}function Cm({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(l=>{l.url===t&&(o=!0)}),(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsx)(_e,{className:"py-0",children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(dt,{asChild:!0,defaultOpen:r.isActive,children:(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,tooltip:r.label,className:(0,us.default)(o&&"font-bold text-accent"),children:(0,Oe.jsxs)(a,{href:r.url,children:[r.icon&&(0,Oe.jsx)(r.icon,{}),(0,Oe.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(Tt,{asChild:!0,children:(0,Oe.jsxs)(Xa,{className:"data-[state=open]:rotate-90",children:[(0,Oe.jsx)(Pn.ChevronRight,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Oe.jsx)(At,{children:(0,Oe.jsx)(It,{children:(n=r.links)==null?void 0:n.map(l=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,className:(0,us.default)(l.url===t&&"font-bold text-accent"),children:(0,Oe.jsx)(a,{href:l.url,children:(0,Oe.jsx)("span",{children:l.label})})})},l.label))})})]}):null]})},r.label)})})})}var ic=v(require("clsx"));var Rm=()=>(0,Oe.jsx)(Ve,{iconName:"github",size:"10x"});function Sm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:l,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let N=c?g=>(0,Oe.jsx)(c,{...g}):m?({item:g,children:h,...P})=>(0,Oe.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...P,children:h}):g=>(0,Oe.jsx)("a",{href:g.href,...g});return(0,Oe.jsxs)(Wt,{side:"right",variant:"inset",...p,children:[(0,Oe.jsxs)(jt,{className:"border-Oe border-sidebar-border",children:[(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{children:(0,Oe.jsxs)(Ge,{onClick:i,children:[(0,Oe.jsx)(Pn.FilePlus,{})," ",(0,Oe.jsx)("span",{children:"Add Document"})]})}),d&&(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{onClick:d,tooltip:"Open in GitHub",children:(0,Oe.jsx)(Rm,{})})})]}),(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:()=>n(),variant:o?"outline":"default",className:(0,ic.default)(o&&"text-accent"),children:[(0,Oe.jsx)(Pn.Edit,{})," ",(0,Oe.jsx)("span",{children:"Edit"})]})}),(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:l,children:[(0,Oe.jsx)(Pn.Printer,{})," ",(0,Oe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Editor Controls",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:a})})]})}),(0,Oe.jsx)(ja,{className:"mx-0"})]}),(0,Oe.jsxs)(Mt,{className:"overflow-auto",children:[r&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Related Content"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]}),(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Table of Contents"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Related Content",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:e&&Object.keys(e).map(g=>(0,Oe.jsxs)(xe,{children:[(0,Oe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,Oe.jsx)(It,{children:e[g].map(h=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:!1,size:"sm",children:(0,Oe.jsxs)(N,{href:h.url,item:h,className:"flex justify-between items-center Oe-full text-xs",children:[(0,Oe.jsx)("span",{children:h.label}),h.type==="note"&&(0,Oe.jsx)(Pn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Oe.jsx)(Ve,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},g))})})})]})}),t&&!r&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Table of Contents",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:t.map(g=>{var h;return(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,children:(0,Oe.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(h=g.items)!=null&&h.length?(0,Oe.jsx)(It,{children:g.items.map(P=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Oe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Oe-full text-xs",children:(0,Oe.jsx)("span",{children:P.title})})})},P.title))}):null]},g.title)})})})})]})})]}),(0,Oe.jsx)(Xt,{})]})}var nc=v(require("next/image"));function km({title:e,members:t}){return(0,Oe.jsx)(J,{className:"mb-6",children:(0,Oe.jsxs)("div",{className:"p-6",children:[(0,Oe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Oe.jsx)(Pn.Users,{className:"Oe-6 h-6 text-accent mr-2"}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Oe.jsx)("div",{className:"space-Oe-4",children:t.map((a,r)=>(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("div",{className:"relative Oe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Oe.jsx)(nc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Oe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var lc=v(require("next/link"));var gs=({links:e,title:t="Related Content"})=>(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:t})}),(0,Oe.jsx)(se,{children:(0,Oe.jsx)("nav",{className:"flex flex-col space-Oe-2",children:e.map((a,r)=>(0,Oe.jsxs)(lc.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,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},r))})})]});var fs=s("grid h-[45px] Oe-[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 bs({pages:e}){let t=(0,Fl.useSearchParams)(),a=(0,Fl.usePathname)(),{replace:r}=(0,Fl.useRouter)(),{totalPages:o,page:i}=e,[n,l]=(0,Mr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?l(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&l(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,Oe.jsx)("div",{className:"mt-12",children:(0,Oe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,Oe.jsx)(Zr.FaArrowLeft,{})})}),c.map((p,u)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("a",{className:s(fs,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,Oe.jsx)(Zr.FaArrowRight,{})})})]})})}var xv=s("transition-colors duration-400 hover:text-primary ease-in-out");function fr({title:e,links:t}){let a=(0,Fl.useSearchParams)(),r=(0,Fl.usePathname)(),{replace:o}=(0,Fl.useRouter)();function i(n){let l=new URLSearchParams(a);n?l.set("category",n):l.delete("category"),o(`${r}?${l.toString()}`)}return(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:e&&e})}),(0,Oe.jsx)(se,{children:t&&t.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},l))})})})]})}function hs({types:e}){let[t,a]=(0,Mr.useState)(e&&e[0].href),r=(0,Fl.useSearchParams)(),o=(0,Fl.usePathname)(),{replace:i}=(0,Fl.useRouter)();function n(l){let d=new URLSearchParams(r);l?d.set("type",l):d.delete("type"),a(l),i(`${o}?${d.toString()}`)}return(0,Oe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Oe-auto pb-4 mb-6",children:e&&e.map((l,d)=>(0,Oe.jsx)(D,{variant:l.href===t?"default":"ghost",className:s("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",l.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(l.href),children:l.label},d))})}var uc=v(require("next/image"));var xs=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,Oe.jsx)("div",{className:"container mb-8 Oe-10 relative flex items-end justify-center",children:(0,Oe.jsxs)("div",{className:"text-center",children:[a||r&&(0,Oe.jsx)(Z,{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,Oe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(tt,{...o})},i))})]})}),(0,Oe.jsxs)("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&(0,Oe.jsx)(Nt,{fill:!0,imgClassName:"Oe-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)(uc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ys=v(require("next/image"));var Tm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,Oe.jsx)(ys.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,Oe.jsx)("div",{children:(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ws=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Oe.jsx)(Tm,{media:t}),(0,Oe.jsx)("div",{className:"mx-0 min-Oe-full relative Oe-9",children:(0,Oe.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,Oe.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var Ns=({children:e,richText:t})=>(0,Oe.jsx)("div",{className:"min-Oe-full py-10 bg-muted mt-24",children:(0,Oe.jsx)("div",{className:"container",children:e||t&&(0,Oe.jsx)(Z,{content:t,enableGutter:!1})})});var br=v(require("react"));var gc=v(require("next/image")),Am=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,Oe.jsx)("div",{className:"container Oe-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,Oe.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,Oe.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((l,d)=>{if(typeof l=="object"&&l!==null){let{title:m}=l;return(0,Oe.jsx)(Ft,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,Oe.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,Oe.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Author"}),r.map((l,d)=>{let{name:m}=l,c=d===r.length-1,p=d===r.length-2;return(0,Oe.jsxs)(br.default.Fragment,{children:[m,p&&r.length>2&&(0,Oe.jsx)(br.default.Fragment,{children:", "}),p&&r.length===2&&(0,Oe.jsx)(br.default.Fragment,{children:" "}),!c&&r.length>1&&(0,Oe.jsx)(br.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Oe.jsx)("time",{dateTime:o,children:Xl(o)})]})]})]})}),(0,Oe.jsxs)("div",{className:"min-h-[50vh] max-h-[50vh] select-none",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsx)(gc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,Oe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Oe-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var uo=require("@heroicons/react/20/solid");var fc=v(require("next/image"));function Ps({title:e,breadcrumbItems:t,image:a}){return(0,Oe.jsxs)("section",{className:"-Oe-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Oe.jsx)("div",{className:"absolute inset-0 Oe-0",children:a&&(0,Oe.jsx)(fc.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,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"relative Oe-10 flex flex-wrap items-center justify-between gap-Oe-20 gap-Oe-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Oe.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:Oe-1/2",children:e}),t&&t.length>0&&(0,Oe.jsx)(Cs,{breadcrumbItems:t})]})})]})}var Dm={highImpact:xs,lowImpact:Ns,mediumImpact:ws,sectionHero:Ps},Mm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Dm[t];return a?(0,Oe.jsx)(a,{...e}):null};function Cs({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Oe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Oe.jsxs)("ol",{role:"list",className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Oe.jsx)(uo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsx)(uo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Oe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Oe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,Oe.jsx)(Oe.Fragment,{})}var Fe=require("@headlessui/react"),bo=require("@heroicons/react/24/outline");var Im=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,Oe.jsx)("a",{href:r,className:"flex items-center gap-Oe-1 text-sm font-semibold text-foreground group",children:(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute -bottom-1 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]})}):(0,Oe.jsxs)(Fe.Popover,{children:[(0,Oe.jsxs)(Fe.PopoverButton,{className:"flex items-center gap-Oe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute bottom-0 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]}),(0,Oe.jsx)(uo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Oe-5 flex-none text-accent"})]}),(0,Oe.jsxs)(Fe.PopoverPanel,{transition:!0,className:"absolute inset-Oe-0 top-0 -Oe-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Oe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Oe.jsx)("div",{className:"mx-auto grid max-Oe-7xl grid-cols-4 gap-Oe-4 px-6 py-10 lg:px-8 xl:gap-Oe-8 Oe-50",children:t&&t.map(o=>(0,Oe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Oe.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,size:"4x"})}),(0,Oe.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Oe.jsx)("span",{className:"absolute inset-0"})]}),(0,Oe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,Oe.jsx)("div",{className:"bg-gray-50",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"grid grid-cols-3 divide-Oe divide-gray-900/5 border-Oe border-gray-900/5",children:a.map(o=>(0,Oe.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-Oe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,className:"h-5 Oe-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),bc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Oe.jsx)(Ve,{...e,size:a});if("src"in e)return(0,Oe.jsx)("div",{className:s(t,"h-full max-Oe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Oe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},go=Im;var fo=["light","dark","green"];function Lm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Mr.useState)(!1),[i,n]=(0,Mr.useState)(!1),[l,d]=(0,Mr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,Mr.useState)(`${m}.${c}`),f=g=>{fo.includes(g)?u(g==="light"?`${m}.${c}`:`${m}-${g}.${c}`):u(`${m}.${c}`)};(0,Mr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let N=()=>{let g=fo[(fo.indexOf(l)+1)%fo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,Oe.jsxs)("header",{className:"relative isolate Oe-10 bg-background h-14",children:[(0,Oe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Oe.jsx)("div",{className:"flex lg:flex-1",children:(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:e}),(0,Oe.jsx)("img",{alt:e,src:p,className:"h-9 Oe-auto"})]})}),(0,Oe.jsx)("div",{className:"flex lg:hidden",children:(0,Oe.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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:a.map(g=>(0,Oe.jsx)(go,{...g},g.name))}),(0,Oe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Oe.jsx)("button",{onClick:N,className:"p-2 text-gray-700 outline-none",children:l==="dark"?(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"}):l==="green"?(0,Oe.jsx)(uo.MoonIcon,{className:"h-6 Oe-6"}):(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"})})})]}),(0,Oe.jsxs)(Fe.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white px-6 py-6 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Oe.jsx)("img",{alt:e,src:t,className:"h-8 Oe-auto"})]}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 py-6",children:a.map(g=>(0,Oe.jsx)(Em,{...g},g.name))})})})]})]})]})}function Em({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.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,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-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,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"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 wc=v(require("next/image"));var Rs=v(require("next/image"));function Vt({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Oe.jsxs)(ue,{href:"/",className:s(a?"py-1":"py-2"),children:[(0,Oe.jsx)(Rs.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,Oe.jsx)(Rs.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 hc=require("next-themes");function xr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,hc.useTheme)();(0,Mr.useEffect)(()=>{l(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];l(u),c(u)};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)("header",{className:`Oe-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:(0,Oe.jsx)(me,{className:"px-0",children:(0,Oe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-Oe-xl",children:(0,Oe.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-Oe-xl border border-t-0 border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:a,logoLight:t}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:r&&r.map(u=>(0,Oe.jsx)(go,{...u},u.name))}),(0,Oe.jsx)("div",{className:"flex items-center space-Oe-4",children:(0,Oe.jsx)("button",{className:"fixed right-4 Oe-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-6 Oe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-6 Oe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ss=["light","dark"];function yr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Mr.useState)(!1),{theme:n,setTheme:l}=(0,hc.useTheme)(),[d,m]=(0,Mr.useState)(!1),[c,p]=(0,Mr.useState)("light");(0,Mr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Mr.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let f=Ss[(Ss.indexOf(c)+1)%Ss.length];p(f),l(f)};return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("header",{className:`Oe-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:[(0,Oe.jsx)("nav",{className:s("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Oe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-Oe dark:border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Oe-[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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-4 Oe-4"})]}),(0,Oe.jsx)("button",{className:"fixed right-16 Oe-[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,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-4 Oe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-4 Oe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Oe.jsxs)(Fe.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white dark:bg-[#212124] px-2 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 px-2 py-6",children:a&&a.map(f=>(0,Oe.jsx)(Bm,{...f},f.name))})})})]})]})]})})}function Bm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.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,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-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,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"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 Hm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsxs)("div",{className:"relative h-screen",children:[(0,Oe.jsxs)("div",{className:"absolute inset-0 Oe-full h-screen overflow-hidden",children:[(0,Oe.jsxs)("video",{className:"object-cover Oe-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Oe.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Oe.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,Oe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 Oe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,Oe.jsx)(Pn.Menu,{className:"Oe-6 h-6 text-white"})}),(0,Oe.jsxs)("div",{className:"fixed top-0 left-0 right-0 Oe-50",children:[(0,Oe.jsx)(xr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,Oe.jsxs)("div",{className:"absolute inset-0 h-full Oe-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Oe.jsx)(wc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:s("absolute top-2.5 h-auto Oe-auto mt-8 hidden lg:block",d&&"lg:hidden")}),(0,Oe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Oe.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:o&&o}),(0,Oe.jsx)("div",{className:"text-3xl mb-8 max-Oe-2xl",children:i&&i})]}),(0,Oe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Oe-full mb-8",children:(0,Oe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Oe.jsx)(Pn.ChevronDown,{size:64})})})]})]})}var Nc=v(require("next/image"));var zm=s("text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 block px-4"),ks=s("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ts=s("Oe-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),As=s("flex items-center gap-5"),wo=s("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Fm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:l,footerBottom:d}=t;return(0,Oe.jsxs)("footer",{className:s("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Oe.jsx)("div",{className:"py-16 md:py-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)(Vt,{logoLight:a,logoDark:r}),(0,Oe.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Oe rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":m.href,className:zm,href:m.href,openNewTab:!0,children:(0,Oe.jsx)("span",{children:m.icon})})},c))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Oe.jsx)("h3",{className:ks,children:i.title}),i.links&&i.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,Oe.jsxs)("Oe",{className:"flex items-center gap-2.5",children:[(0,Oe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Oe.jsx)(Zr.FaChevronRight,{})}),(0,Oe.jsx)(ue,{href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})]},m.label))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Oe.jsx)("h3",{className:ks,children:n.title}),(0,Oe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPaperPlane,{})}),(0,Oe.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Oe.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,Oe.jsx)("a",{href:`mailto:${m}`,className:wo,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPhone,{})}),(0,Oe.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,Oe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:wo,children:m},c))})]})]})]}),l&&(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Oe.jsx)("h3",{className:ks,children:l.title}),l.blogs&&l.blogs.length>0&&(0,Oe.jsx)("div",{className:"grid gap-6",children:l.blogs.map((m,c)=>(0,Oe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Oe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Oe.jsx)(Nc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaCalendarDays,{})}),(0,Oe.jsx)("span",{children:Yl(m.date)})]}),(0,Oe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Oe.jsx)(ue,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,Oe.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Oe-8 gap-Oe-4 md:gap-Oe-10",children:[(0,Oe.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Oe.jsx)("ul",{className:"flex flex-wrap items-center gap-Oe-4 md:gap-Oe-7",children:d.links.map(m=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})},m.label))})})]})})})]})}function Om({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,Oe.jsxs)("div",{className:s("fixed top-0 left-0 right-0 Oe-50",o),children:[(0,Oe.jsx)(xr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function _m({children:e,...t}){return(0,Oe.jsx)(hc.ThemeProvider,{...t,children:e})}var ca=require("sonner");function Ds({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Mr.useState)([]),i=(0,Fl.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},l=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])};return(0,$.jsxs)("div",{className:"space-Oe-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,$.jsxs)("div",{className:"space-Oe-2",children:[(0,$.jsx)(D,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,$.jsx)(D,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,$.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,$.jsxs)("ul",{className:"divide-Oe divide-gray-200",children:[(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,$.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,$.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>l(c.id),className:"border-accent"}),(0,$.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,$.jsxs)(ft,{className:"h-10 Oe-10",children:[(0,$.jsx)(bt,{src:c.userImage,alt:c.userName}),(0,$.jsx)(vt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,$.jsx)("div",{className:"ml-3",children:(0,$.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,$.jsxs)("div",{className:"flex items-center space-Oe-2",children:[(0,$.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,$.jsx)(Ft,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,$.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Ms=require("date-fns"),Gm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,Oe.jsx)("div",{className:"flex space-Oe-2",children:e.map((o,i)=>(0,Oe.jsx)(D,{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 Ls({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Mr.useState)(new Date),[o,i]=(0,Mr.useState)(new Date),[n,l]=(0,Mr.useState)("Full Day"),[d,m]=(0,Mr.useState)(!1),c=(0,Fl.useRouter)();(0,Mr.useEffect)(()=>{m(a!==o||!a||!o),d&&l("Full Day")},[a,o]);let p=f=>{l(f)};return(0,Oe.jsxs)("div",{className:"max-Oe-2xl",children:[(0,Oe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Oe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Oe.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){ca.toast.error("Please select both start and end dates");return}let N=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(N=.5),N>e){ca.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",n),g.append("duration",N.toString());let h=await(t||$m)(g);h.success?(ca.toast.success(h.message),r(void 0),i(void 0),l("Full Day"),c.refresh()):ca.toast.error(`Error: ${h.message}`)},className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"startDate",children:"Start Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),a?(0,Ms.format)(a,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"endDate",children:"End Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),o?(0,Ms.format)(o,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-2",children:[(0,Oe.jsx)(qt,{children:"Leave Type"}),(0,Oe.jsx)(Gm,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,Oe.jsx)(D,{type:"submit",className:"Oe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Oe.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var $m=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Tc(...e){return e.filter(Boolean).join(" ")}function Es({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))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Oe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Oe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Oe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Oe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:l,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,Oe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})]}),(0,Oe.jsx)("div",{className:"mt-8 flow-root",children:(0,Oe.jsx)("div",{className:"-mx-4 -my-2 overflow-Oe-auto sm:-mx-6 lg:-mx-8",children:(0,Oe.jsx)("div",{className:"max-h-[60vh] overflow-Oe-auto",children:(0,Oe.jsxs)("table",{className:"min-Oe-full border-separate border-spacing-0",children:[(0,Oe.jsx)("thead",{className:"sticky top-0 Oe-10 bg-white",children:(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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((d,m)=>(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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:m+1},m))]})}),(0,Oe.jsx)("tbody",{children:r.map((d,m)=>(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("td",{className:Tc(m!==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,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsxs)(ft,{className:"h-11 Oe-11",children:[(0,Oe.jsx)(bt,{src:d.image,alt:d.name}),(0,Oe.jsx)(vt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,Oe.jsx)("div",{className:"ml-4",children:(0,Oe.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(N=>N.userId===d.id&&new Date(N.startDate)<=u&&new Date(N.endDate)>=u);return(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Oe.jsx)("div",{className:`h-6 Oe-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?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,Oe.jsx)("div",{className:`h-3 Oe-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Bs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Mr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-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)}}),l=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Oe.jsxs)("header",{className:"flex items-center justify-between border-Oe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Oe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Oe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Oe.jsx)("div",{className:"flex items-center",children:(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})})]}),(0,Oe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Oe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Oe"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Oe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Oe.jsx)("div",{className:"hidden Oe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,Oe.jsxs)("div",{className:s(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("flex h-6 Oe-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,Oe.jsx)("ol",{className:"mt-2 space-Oe-1",children:c.holidays.map(p=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,Oe.jsx)("div",{className:"isolate grid Oe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,Oe.jsxs)("button",{type:"button",className:s(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 h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Oe-10"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("ml-auto",c.date===r&&c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,Oe.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,Oe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,Oe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Oe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Ut=require("lucide-react");function Dc(...e){return e.filter(Boolean).join(" ")}function Vm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:l}){let[d,m]=(0,Mr.useState)("Calendar View"),c=(0,Fl.useRouter)(),p=!1,u=(0,Ms.parseISO)(a),f=async g=>{let h=(0,Ms.format)(g,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",h),c.push(P.toString()),{success:!0}};if(p)return(0,Oe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Oe.jsx)("div",{className:"animate-spin rounded-full h-32 Oe-32 border-t-2 border-Oe-2 border-gray-900"})});let N=[{name:"Grid View",icon:Ut.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Ut.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Ut.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Ut.CheckSquare,current:d==="Approve Leave"}];return(0,Oe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Oe.jsxs)("div",{className:"mb-8",children:[(0,Oe.jsxs)("div",{className:"sm:hidden",children:[(0,Oe.jsx)("select",{value:d,onChange:g=>m(g.target.value),className:"block Oe-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:N.map(g=>(0,Oe.jsx)("option",{children:g.name},g.name))}),(0,Oe.jsx)(Pn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Oe-5 text-gray-400","aria-hidden":"true"})]}),(0,Oe.jsx)("div",{className:"hidden sm:block",children:(0,Oe.jsx)("div",{className:"border-Oe border-gray-200",children:(0,Oe.jsx)("nav",{className:"-mb-px flex space-Oe-8","aria-label":"Tabs",children:N.map(g=>(0,Oe.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:Dc(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-Oe-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,Oe.jsx)(g.icon,{className:Dc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Oe-5"),"aria-hidden":"true"}),(0,Oe.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,Oe.jsx)(Es,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,Oe.jsx)(Bs,{currentDate:u,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,Oe.jsx)(Ls,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Oe.jsx)(Ds,{leaveRequests:r,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>l?l(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Um({services:e,className:t}){return(0,Oe.jsx)("section",{id:"next-section",className:s("section-padding-primary",t),children:(0,Oe.jsx)(me,{className:"py-8",children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"flex flex-wrap justify-center gap-Oe-8",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 lg:Oe-1/3",children:(0,Oe.jsx)(ji,{...a})},r))})})})}function Wm({sectionHeading:e,cards:t}){return(0,Oe.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Oe.jsx)("div",{className:"grid gap-30px",children:t.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"py-2",children:(0,Oe.jsx)(Xi,{...a})},r))})]})})}var Ba=v(require("next/image"));function jm(e){let{images:t,sectionHeading:a,keyPoints:r,description:o}=e;return(0,Oe.jsx)("section",{id:"about-section",className:s("section-padding-primary",e.className||""),children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Oe.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Oe.jsx)($t,{...a}),r&&r.length>0&&(0,Oe.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:r.map((i,n)=>(0,Oe.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,Oe.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:i.icon}),(0,Oe.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:i.title})]},n))}),o&&(0,Oe.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:o})]}),t&&(0,Oe.jsx)("div",{className:"mx-auto text-center",children:(0,Oe.jsxs)("div",{className:"relative mx-auto grid max-Oe-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative flex justify-end overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative Oe-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)("span",{className:"absolute -left-2.5 -top-2.5 -Oe-1 h-full Oe-full rounded-tl-[60px] bg-primary-light"}),(0,Oe.jsx)("div",{className:"relative Oe-[4] overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),(0,Oe.jsx)(Ba.default,{src:t.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] Oe-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),(0,Oe.jsx)("div",{className:"flex overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,Oe.jsx)("div",{className:"ml-auto flex max-Oe-[250px] justify-end overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,Oe.jsx)("div",{className:"overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,Oe.jsx)("div",{className:"absolute left-1/2 top-1/2 Oe-[4] -translate-Oe-1/2 -translate-Oe-1/2 overflow-hidden",children:(0,Oe.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Oe.jsx)("span",{className:"grid h-[100px] Oe-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ec=v(require("next/image"));function Bc({blogs:e}){return(0,Oe.jsx)("div",{children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,Oe.jsx)(Xm,{post:t,id:a},a))})})}var Xm=({post:e,id:t})=>{let{slug:a,image:r,authors:o,categories:i,title:n,description:l,publishedAt:d}=e;return(0,Oe.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Oe.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:Oe-64 lg:shrink-0",children:[r&&(0,Oe.jsx)(Ec.default,{src:r.src,alt:r.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Oe.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-Oe-4 text-xs",children:[(0,Oe.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:lo(e.publishedAt)}),e.categories&&e.categories.map((m,c)=>(0,Oe.jsx)("a",{href:`#${m}`,className:"relative Oe-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},c))]}),(0,Oe.jsxs)("div",{className:"group relative max-Oe-xl",children:[(0,Oe.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Oe.jsxs)("a",{href:e.slug,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Oe.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Oe.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Oe-2 border-gray-200 dark:border-gray-700 pt-6",children:o&&o.map((m,c)=>(0,Oe.jsxs)("div",{className:"relative flex items-center gap-Oe-4",children:[m.image?(0,Oe.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Oe.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Oe.jsx)("div",{className:"text-sm/6",children:(0,Oe.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function Ym({blogs:e,pages:t,categories:a,types:r}){return(0,Oe.jsx)("section",{children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsxs)("div",{children:[r&&(0,Oe.jsx)(hs,{types:r}),(0,Oe.jsx)(Bc,{blogs:e}),(0,Oe.jsx)(bs,{pages:t})]}),(0,Oe.jsx)("div",{className:"grid gap-30px Oe-full self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:(0,Oe.jsx)("div",{className:"lg:-mt-24 Oe-full",children:a&&a.links&&(0,Oe.jsx)(fr,{links:a.links,title:a.title})})})]})})})}var Gc=v(require("next/image"));var Ro="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function So({className:e}){return s("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] Oe-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Km({className:e,...t}){return(0,Oe.jsx)("input",{...t,className:So({className:e})})}function ko({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(Km,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-1/2 Oe-[14px] -translate-Oe-1/2 text-accent",children:e})]})}function qm({className:e,...t}){return(0,Oe.jsx)("textarea",{...t,className:s(So({}),"resize-none md:min-h-[130px]",e)})}function Hc({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(qm,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-[18px] Oe-[14px] text-accent",children:e})]})}var Fc=require("formik"),pa=v(require("yup"));async function zc(e){let{name:t,email:a,subject:r,message:o}=e,i=process.env.TEAMS_WEBHOOK_URL;if(!i)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0}]}]},{type:"TextBlock",text:`${o}`,wrap:!0}]}}]};try{let l=await fetch(i,{method:"POST",mode:"Oe-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var et={tooShort:"Must be Oe least ${min} characters",tooLong:"Must be Oe most ${max} characters",required:"This field is required",email:"Invalid email format"},Qm=pa.object().shape({name:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),email:pa.string().email(et.email).required(et.required),subject:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),message:pa.string().min(2,et.tooShort).max(300,et.tooLong).required(et.required)}),To=s("!pr-[44px]"),Ao=s("!border-red-600 border"),Do=s("sr-only");function _c(){return(0,Oe.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Qm,onSubmit:async(e,{resetForm:t})=>{let a=await zc(e);a.data===null?ca.toast.error(a.message):(ca.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:r,handleBlur:o,isSubmitting:i,handleSubmit:n})=>(0,Oe.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zr.FaUser,{}),className:s(To,e.name&&t.name&&Ao)}),e.name&&t.name&&(0,Oe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Do,children:e.name})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Jm,{}),className:s(To,e.email&&t.email&&Ao)}),e.email&&t.email&&(0,Oe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Do,children:e.email})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(ko,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:r,onBlur:o,disabled:i,className:s(To,e.subject&&t.subject&&Ao)}),e.subject&&t.subject&&(0,Oe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Do,children:e.subject})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(Hc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zm,{}),className:s(To,e.message&&t.message&&Ao)}),e.message&&t.message&&(0,Oe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Do,children:e.message})]}),(0,Oe.jsx)("div",{className:"lg:col-span-2",children:(0,Oe.jsx)(D,{type:"submit",className:"Oe-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:i,children:(0,Oe.jsx)("span",{children:"SEND"})})})]})})}function Jm(){return(0,Oe.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Zm(){return(0,Oe.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function ep(e){let{sectionHeading:t,image:a}=e;return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-2xl space-Oe-16 divide-Oe divide-gray-100 lg:mx-0 lg:max-Oe-none",children:(0,Oe.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,Oe.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Oe have multiple locations across the UK where Oe are based. These are our key locations."})]}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((r,o)=>{var i;return(0,Oe.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Oe.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:r.title}),(0,Oe.jsxs)("address",{className:"mt-3 space-Oe-1 text-sm/6 not-italic text-foreground",children:[(i=r.location.split(","))==null?void 0:i.map((n,l)=>(0,Oe.jsx)("p",{children:n},l))," ",r.mails&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,Oe.jsx)("span",{children:r.mails[0]})]}),r.phoneNumbers&&r.phoneNumbers.length>0&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),r.phoneNumbers[0]]})]})]},o)})})]})})})})}),(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsxs)("div",{className:"relative py-[60px]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 Oe-1 h-full Oe-full overflow-hidden bg-red-500 md:Oe-[56%] md:rounded-r-5",children:(0,Oe.jsx)(Gc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ro})}),(0,Oe.jsx)(me,{children:(0,Oe.jsx)("div",{className:"ml-auto md:Oe-1/2",children:(0,Oe.jsxs)("div",{className:"relative Oe-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Oe.jsx)("div",{className:"mb-30px",children:(0,Oe.jsx)($t,{...t,invert:!0})}),(0,Oe.jsx)(_c,{})]})})})]})})]})}var $c=v(require("next/image"));var Uc=v(require("next/link"));function tp({image:e,name:t,about:a,socialLinks:r}){return!e||!e.src||e.src.length<3||!t?null:(0,Oe.jsx)("div",{className:"mt-1 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(J,{children:(0,Oe.jsxs)(se,{children:[e&&e.src&&(0,Oe.jsx)($c.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ro,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Oe.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Oe.jsx)("p",{children:a}),r&&r.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex items-center divide-Oe divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:r.map((o,i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{href:o.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 hover:text-accents",children:(0,Oe.jsx)("span",{children:o.icon})})},i))})})]})})})}function ap({page:e,categoryList:t,edit:a=!1,path:r="/admin/collections/posts/"}){var u;if(!e)return(0,Fl.notFound)();let{meta:o,populatedAuthors:i,authors:n,categories:l,content:d,title:m}=e,c={image:{src:o&&o.image&&o.image.url||void 0,alt:o&&o.image&&o.image.alt||void 0},authorName:((u=i==null?void 0:i[0])==null?void 0:u.name)||"",category:l,commentCount:0,title:m,description:(o==null?void 0:o.description)||""},p=n==null?void 0:n.map(f=>{var N,g;return{name:f.name||"",about:"",image:{src:f.profilePicture&&((g=(N=f.profilePicture.sizes)==null?void 0:N.square)==null?void 0:g.url)||"",alt:f.name||"blog author"},socialLinks:[]}});return(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Oe.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Oe.jsx)(Z,{content:d,enableGutter:!1})]})}),(0,Oe.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:[a&&(0,Oe.jsx)("div",{className:"mt-4 lg:-mt-10 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(se,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Oe.jsx)(Uc.default,{href:`${r}${e.id}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((f,N)=>(0,Oe.jsx)(tp,{...f},N)),t&&t.links&&(0,Oe.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(fr,{links:t.links,title:t.title})})]})]})})}var zs=v(require("next/link"));var rp=({children:e,pageId:t,tableOfContents:a=[],edit:r=!0,path:o="/admin/collections/pages/",relatedContent:i=[{title:"Related Content",links:[]}]})=>{let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(""),c=(0,Fl.usePathname)(),p=()=>{l(!n)},u=h=>{switch(h){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},f=(h,P)=>{h.preventDefault();let R=document.getElementById(P);if(R){let Ae=R.offsetTop+-100,nt=document.querySelector(".container")||window;nt===window?window.scrollTo({top:Ae,behavior:"smooth"}):nt.scrollTo({top:Ae,behavior:"smooth"}),m(P)}else console.error(`Element with ID "${P}" not found.`)},N=()=>{let P="/print/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()},g=()=>{let P="/present/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()};return(0,Mr.useEffect)(()=>{let h=window.location.hash;if(h){let P=h.substring(1),R=document.getElementById(P);if(R){let Ae=R.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:Ae,behavior:"smooth"})}}},[window.location.hash]),(0,Oe.jsxs)("div",{className:"container py-8",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-8",children:[(0,Oe.jsx)("div",{className:s(n?"col-span-2":"col-span-3","xl:col-span-3"),children:e}),(0,Oe.jsxs)("div",{className:s("space-Oe-6 transform min-Oe-full transition-transform duration-300","col-span-4 md:col-span-1 translate-Oe-0 xl:-mt-20",n?"translate-Oe-0":"md:translate-Oe-full","xl:block xl:col-span-1 xl:translate-Oe-0"),children:[r&&(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(se,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Contribute or create new content."}),(0,Oe.jsx)(zs.default,{href:`${o}${t}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit Page"})}),(0,Oe.jsx)(zs.default,{href:"/admin/collections/pages/create",children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full mt-2 text-accent hover:text-foreground",children:"Create New"})}),(0,Oe.jsxs)("div",{className:"flex space-Oe-2 mt-4",children:[(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:N,children:[(0,Oe.jsx)(Pn.Printer,{className:"mr-2"})," Print"]}),(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:g,children:[(0,Oe.jsx)(Pn.Presentation,{className:"mr-2"})," Present"]})]})]})]}),i&&i.length>0&&i.map((h,P)=>h.links&&h.links.length>0&&(0,Oe.jsx)(gs,{...h},P)),a.length>3&&(0,Oe.jsxs)(J,{className:"Oe-full max-Oe-sm mt-4",children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Oe this page"})}),(0,Oe.jsx)(se,{children:(0,Oe.jsx)("ul",{className:"space-Oe-2",children:a.map((h,P)=>(0,Oe.jsx)("Oe",{className:u(h.tag),children:(0,Oe.jsx)("a",{href:`#${h.id}`,className:`text-xs ${d===h.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:h.text})},P))})})]})]}),(0,Oe.jsx)("button",{onClick:p,className:s("fixed top-1/2 right-0 Oe-50 h-16 Oe-8 bg-accent text-accent-foreground rounded-l-full transform -translate-Oe-1/2 flex items-center justify-center","hidden md:block xl:hidden"),children:"\u22EE"})]}),(0,Oe.jsx)("div",{className:"block md:hidden mt-8",children:(0,Oe.jsx)("div",{className:"space-Oe-6",children:e})})]})};0&&(module.exports={AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,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,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,Oe,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Se}from"./chunk-
|
|
1
|
+
import{a as Se}from"./chunk-373YJLIH.mjs";import{a as Re}from"./chunk-SBHCQ2HK.mjs";import{a as Ue}from"./chunk-KKLZ6CCZ.mjs";import"./chunk-AD7PG4E2.mjs";import{a as Ve}from"./chunk-HRZRAS6Z.mjs";import"./chunk-EI7PFWFS.mjs";import"./chunk-CTKUF2I6.mjs";import"./chunk-NOEITQK2.mjs";import"./chunk-EG6XIOOJ.mjs";import"./chunk-MMBUMBDU.mjs";import{a as Xe}from"./chunk-T6LPMF7A.mjs";import{a as Te}from"./chunk-JYZW3G3N.mjs";import{a as We}from"./chunk-FBFDZOP6.mjs";import"./chunk-KML6U7IE.mjs";import{a as ge}from"./chunk-MANZDSTF.mjs";import{a as he}from"./chunk-AUBKJ4XO.mjs";import{a as ie}from"./chunk-6YV7RK6Q.mjs";import{a as je}from"./chunk-32GGKWGB.mjs";import"./chunk-V7LBBZKS.mjs";import{a as ae}from"./chunk-L2CGDHVO.mjs";import{a as Mr}from"./chunk-CSWXKGJE.mjs";import{a as xe}from"./chunk-7DINW2AE.mjs";import{a as te}from"./chunk-LVUWQ35N.mjs";import{a as ce,b as de}from"./chunk-62YZZSOX.mjs";import{a as Qe}from"./chunk-J3QZZ62Z.mjs";import{a as Oe}from"./chunk-MP3J7UPZ.mjs";import{a as Ne}from"./chunk-QNKQEXU3.mjs";import{a as Me}from"./chunk-DYIUZ4V5.mjs";import{a as Pe}from"./chunk-DE2DIWCC.mjs";import{a as Le}from"./chunk-X5KZKO2V.mjs";import{a as Hr}from"./chunk-FGWIT6CV.mjs";import{a as Er}from"./chunk-ZWKWU7U4.mjs";import{a as Ir}from"./chunk-YCX5N23N.mjs";import{a as Lr}from"./chunk-66ZAIUUI.mjs";import{a as Kr}from"./chunk-TQCGX4Y6.mjs";import"./chunk-SV7NMNDI.mjs";import{a as se}from"./chunk-WZLEEZ5C.mjs";import{a as ne}from"./chunk-JODGODRI.mjs";import{a as ve}from"./chunk-6ZNVXWZR.mjs";import{a as Be,b as Ce,c as De}from"./chunk-PARYRNXP.mjs";import{a as qe}from"./chunk-MGZMAVEP.mjs";import{a as we}from"./chunk-ET5WFKM7.mjs";import{a as ye}from"./chunk-CNCPREWR.mjs";import{a as ze}from"./chunk-CTCV3L4B.mjs";import"./chunk-L44KSGUG.mjs";import{a as le}from"./chunk-IMAQJ7N3.mjs";import{a as Qr}from"./chunk-53QLSQCO.mjs";import{a as Rr}from"./chunk-6HFYLEVF.mjs";import{a as pe}from"./chunk-SJWN6J3F.mjs";import{a as me}from"./chunk-423OEU3K.mjs";import{a as Sr}from"./chunk-EPTHSTUM.mjs";import{a as Nr}from"./chunk-UZ2XYB7D.mjs";import"./chunk-KPIWBWE2.mjs";import{a as ee}from"./chunk-JCH2CCQ7.mjs";import"./chunk-6P7CY367.mjs";import"./chunk-2LJVMEWU.mjs";import{a as fe}from"./chunk-IS5OUEJJ.mjs";import{a as re}from"./chunk-HTO3HNQS.mjs";import{a as ke}from"./chunk-LBKMUSVR.mjs";import{a as Fr}from"./chunk-VZXLXNVY.mjs";import{a as Gr}from"./chunk-Y2KKUQDU.mjs";import{a as Or}from"./chunk-H7D3PZKE.mjs";import{a as Pr}from"./chunk-IQPZEEYJ.mjs";import{a as ue}from"./chunk-TXXFXCXB.mjs";import{a as Ae}from"./chunk-CWNEDSLD.mjs";import{a as Fo,b as Go}from"./chunk-PRUIYGQW.mjs";import{a as Do,b as Eo}from"./chunk-H4Y4SZIU.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u,k as v,l as w,m as y,n as z,o as A}from"./chunk-7VKHSE4O.mjs";import{a as Oo,b as Po,c as Qo}from"./chunk-RBZMFLLA.mjs";import{a as $o,b as or,c as rr,d as er,e as fr,f as mr,g as pr,h as tr,i as xr}from"./chunk-WRPART4J.mjs";import{a as ar,b as br,c as cr}from"./chunk-N6EJQZAV.mjs";import{a as Jo,b as Ko,c as Lo,d as Mo}from"./chunk-HWEPDRG6.mjs";import{a as Cr}from"./chunk-XGQLOPHW.mjs";import{a as lr,b as nr,c as qr,d as sr,e as ur,f as vr,g as wr,h as yr,i as zr,j as Ar}from"./chunk-4JC2TJML.mjs";import{a as kr}from"./chunk-Y5ZFXDW5.mjs";import{a as Ho,b as Io}from"./chunk-4NKKWJ2X.mjs";import{a as Ro,b as So,c as To,d as Uo,e as Vo,f as Wo,g as Xo,h as Yo,i as Zo,j as _o}from"./chunk-JWDVKGZL.mjs";import{a as Br}from"./chunk-A5EYIB3V.mjs";import{a as No}from"./chunk-DWRQHV42.mjs";import{a as e,b as f,c as m,d as p,e as t,f as x,g as a}from"./chunk-AWFQEK7A.mjs";import{a as Tr,b as Vr,c as $r,e as oe}from"./chunk-Y6QUDCQM.mjs";import"./chunk-O5BAW5XQ.mjs";import{a as Ur}from"./chunk-NWW7KWJK.mjs";import{a as _r}from"./chunk-HUN2X4VH.mjs";import{a as Zr}from"./chunk-UK4IPFAO.mjs";import{a as Yr}from"./chunk-ICTOXY7D.mjs";import"./chunk-YNDKGRL6.mjs";import"./chunk-TFWGOEV7.mjs";import{a as Xr}from"./chunk-763KMQIQ.mjs";import"./chunk-J2VQUYES.mjs";import{a as Wr}from"./chunk-SJWGFZJ6.mjs";import"./chunk-44TDI42O.mjs";import"./chunk-BOPZHZ27.mjs";import{a as Co}from"./chunk-3YZN4MJB.mjs";import{a as uo,b as vo,c as wo,d as yo,e as zo,f as Ao,g as Bo}from"./chunk-WNPA7YT3.mjs";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $,h as oo,i as ro,j as eo,k as fo,l as mo,m as po,n as to,o as xo,p as ao,q as bo,r as co,s as go,t as ho,u as io,v as jo,w as ko,x as lo}from"./chunk-IPHHUHS3.mjs";import{a as C}from"./chunk-Y5VTKEKS.mjs";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J,h as K,i as L,j as M}from"./chunk-CGBVZQYY.mjs";import{a as Q}from"./chunk-BSQVKZCW.mjs";import{a as b,b as c,c as d}from"./chunk-YNCJATT7.mjs";import{a as B}from"./chunk-QOIH63J3.mjs";import{a as R,b as S,c as T,d as U}from"./chunk-OAOCXXC2.mjs";import{a as dr,b as gr,c as hr}from"./chunk-SBM5HULF.mjs";import{a as ir,b as jr}from"./chunk-Q6SEVCRG.mjs";import{a as O,b as P}from"./chunk-GLEWUUGS.mjs";import"./chunk-D76EO57Z.mjs";import{a as Ie}from"./chunk-GOMLTG5W.mjs";import"./chunk-ZDPQXVTF.mjs";import{a as Ee}from"./chunk-DRJBYVJB.mjs";import"./chunk-CS77R54Z.mjs";import{a as Je}from"./chunk-23L5ZJ2U.mjs";import{a as Ke}from"./chunk-DESYC5BB.mjs";import{a as He}from"./chunk-XDP6BKTK.mjs";import{a as Ge}from"./chunk-3TIFSACL.mjs";import"./chunk-SV3TTIPR.mjs";import{a as Fe}from"./chunk-HAYRX2WO.mjs";import{a as Jr}from"./chunk-WISCWNL2.mjs";import"./chunk-YNNW2C2U.mjs";import{a as Dr}from"./chunk-SFLOMJ2U.mjs";import{a as be}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{a as r}from"./chunk-6K2R3OAD.mjs";import{a as N}from"./chunk-FRWX5YES.mjs";import{a as no,b as qo,c as so}from"./chunk-CV7PH2KH.mjs";import"./chunk-S7OK7D5I.mjs";export{Te as AboutSection,ar as Alert,cr as AlertDescription,br as AlertTitle,Me as ApproveLeave,dr as Avatar,hr as AvatarFallback,gr as AvatarImage,jr as Badge,Tr as BannerBlock,de as BlogCard,We as BlogDetail,ce as BlogList,Ue as BlogListSection,Fe as BrandLogo,e as Breadcrumb,a as BreadcrumbEllipsis,m as BreadcrumbItem,p as BreadcrumbLink,f as BreadcrumbList,t as BreadcrumbPage,x as BreadcrumbSeparator,De as Breadcrumbs,P as Button,Ur as CMSLink,Cr as Calendar,Pe as CalendarView,Vr as CallToActionBlock,me as Card,ue as Categories,kr as Checkbox,Xr as CodeBlock,b as Collapsible,d as CollapsibleContent,c as CollapsibleTrigger,ge as CollectionArchive,$o as Command,or as CommandDialog,fr as CommandEmpty,mr as CommandGroup,rr as CommandInput,tr as CommandItem,er as CommandList,pr as CommandSeparator,xr as CommandShortcut,Ve as ContactSection,be as Container,re as ContentBlock,Wr as CopyButton,Jr as CustomLink,Fr as CustomerCard,Ro as Dialog,Uo as DialogClose,Wo as DialogContent,_o as DialogDescription,Yo as DialogFooter,Xo as DialogHeader,Vo as DialogOverlay,To as DialogPortal,Zo as DialogTitle,So as DialogTrigger,g as DropdownMenu,v as DropdownMenuCheckboxItem,s as DropdownMenuContent,i as DropdownMenuGroup,u as DropdownMenuItem,y as DropdownMenuLabel,j as DropdownMenuPortal,l as DropdownMenuRadioGroup,w as DropdownMenuRadioItem,z as DropdownMenuSeparator,A as DropdownMenuShortcut,k as DropdownMenuSub,q as DropdownMenuSubContent,n as DropdownMenuSubTrigger,h as DropdownMenuTrigger,Dr as DynamicIcon,Gr as EventCard,Er as FeatureCard,Mr as FeatureGrid,$r as FeaturesBlock,ve as Filter,Je as Footer,Ke as Header,Ge as HeaderDesktop,He as HeaderMobile,ee as HeadingImage,we as HighImpactHero,Oe as HolidayGrid,Qe as HolidayTracker,Oo as HoverCard,Qo as HoverCardContent,Po as HoverCardTrigger,Ir as Image,_r as ImageBlock,Or as InfoTile,B as Input,Nr as Insight,No as Label,he as Logo,ze as LowImpactHero,Pr as MOTD,Xe as MainPageSection,Yr as Media,Zr as MediaBlock,ye as MediumImpactHero,xe as NewsGrid,Qr as OrgChart,ie as PageRange,se as Pagination,je as PayloadPagination,Jo as Popover,Lo as PopoverAnchor,Mo as PopoverContent,Ko as PopoverTrigger,Ae as PostHero,Lr as PricingCard,Se as PricingSection,Hr as ProjectCard,ne as ProjectTeam,Rr as ProposalSummary,qe as RelatedContent,pe as RelatedPosts,fe as RenderBlocks,Ce as RenderHero,Ne as RequestLeave,oe as RichText,Ho as ScrollArea,Io as ScrollBar,Be as SectionHero,lr as Select,wr as SelectContent,nr as SelectGroup,zr as SelectItem,yr as SelectLabel,vr as SelectScrollDownButton,ur as SelectScrollUpButton,Ar as SelectSeparator,sr as SelectTrigger,qr as SelectValue,C as Separator,Kr as ServiceCard,Re as ServiceSection,D as Sheet,F as SheetClose,I as SheetContent,M as SheetDescription,K as SheetFooter,J as SheetHeader,H as SheetOverlay,G as SheetPortal,L as SheetTitle,E as SheetTrigger,X as Sidebar,fo as SidebarContent,ro as SidebarFooter,mo as SidebarGroup,to as SidebarGroupAction,xo as SidebarGroupContent,po as SidebarGroupLabel,oo as SidebarHeader,$ as SidebarInput,_ as SidebarInset,ke as SidebarLeft,ao as SidebarMenu,go as SidebarMenuAction,ho as SidebarMenuBadge,co as SidebarMenuButton,bo as SidebarMenuItem,io as SidebarMenuSkeleton,jo as SidebarMenuSub,lo as SidebarMenuSubButton,ko as SidebarMenuSubItem,W as SidebarProvider,Z as SidebarRail,le as SidebarRight,eo as SidebarSeparator,Y as SidebarTrigger,Ee as SimpleHeader,Q as Skeleton,te as SlideShow,ae as TextAndImages,Br as Textarea,Le as ThemeProvider,wo as Toast,yo as ToastAction,zo as ToastClose,Bo as ToastDescription,uo as ToastProvider,Ao as ToastTitle,vo as ToastViewport,Co as Toaster,Eo as Toggle,Fo as ToggleGroup,Go as ToggleGroupItem,S as Tooltip,U as TooltipContent,R as TooltipProvider,T as TooltipTrigger,Ie as VideoHeader,Sr as WhyUs,ir as badgeVariants,O as buttonVariants,o as cn,r as getTableOfContents,no as reducer,qo as toast,Do as toggleVariants,N as useIsMobile,V as useSidebar,so as useToast};
|